/* Pieces in the homepage's night style used on other pages: the two nights (pricing), the sieve game (tour), and
   the sign-up chat (signup). static/extras.js moves them. Everything reads fine without the script. */
.xn { --night: #1b1715; --night3: #2f2723; --cream: #f3e6d3; --dim: rgba(243,230,211,.72); --line: rgba(243,230,211,.13); --coral: #e08a7f; --burg: #590907; --paper: #fffcf7;
  --display: "Bricolage Grotesque", "DM Sans", system-ui, sans-serif;
  position: relative; background: var(--night); color: var(--cream); border-radius: 26px; padding: clamp(20px, 4vw, 44px); margin: 0 auto 30px; max-width: 1080px; overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.55); }
.xn::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35; background-image: radial-gradient(rgba(243,230,211,.08) 1px, transparent 1px); background-size: 22px 22px; }
.xn > * { position: relative; }
.xn-kick { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--coral); }
.xn-h { margin: 8px 0 18px; color: var(--cream); font: 800 clamp(28px, 4.2vw, 50px)/.98 var(--display); letter-spacing: -.045em; max-width: 18ch; text-wrap: balance; }
.xn-h em { font-style: normal; background: linear-gradient(transparent 70%, rgba(224,138,127,.45) 70%); }
.xn-note { margin: 14px 0 0; font-size: 12.5px; color: rgba(243,230,211,.5); }

/* the two nights */
.nights { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.night { position: relative; overflow: hidden; border-radius: 18px; padding: 20px; display: grid; gap: 10px; align-content: start; min-height: 300px; }
.night.without { background: linear-gradient(160deg, #3a2a22, #1e1714); } .night.with { background: linear-gradient(160deg, #1d2a33, #11181d); color: #e6eef2; }
.night h3 { margin: 0; font: 800 20px var(--display); color: inherit; }
.night .moon { position: absolute; right: 18px; top: 16px; width: 34px; height: 34px; border-radius: 50%; box-shadow: inset -9px -3px 0 0 #f3e6d3; opacity: .8; }
.night .tl { display: grid; gap: 9px; font-size: 15px; }
.night .tl div { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 10px; }
.night time { font: 700 12.5px ui-monospace, Menlo, monospace; opacity: .7; }
.night .tally { margin-top: auto; border-top: 1px solid rgba(255,255,255,.15); padding-top: 10px; display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; }
.night .tally b { font: 800 18px var(--display); }
.xn.go .night .tl div { opacity: 0; transform: translateY(8px); transition: opacity .45s, transform .5s cubic-bezier(.2,.8,.2,1); transition-delay: calc(var(--k) * .45s + .2s); }
.xn.go.in .night .tl div { opacity: 1; transform: none; }

/* the sieve game */
.sv { position: relative; height: 390px; max-width: 760px; margin: 18px auto 0; }
.sv-chips { position: absolute; inset: 0 0 auto; height: 200px; list-style: none; margin: 0; padding: 0; }
.sv-chips li { position: absolute; top: 0; white-space: nowrap; font-size: 13.5px; font-weight: 600; background: var(--night3); border: 1px solid var(--line); border-radius: 10px; padding: 6px 11px;
  transition: transform 1s cubic-bezier(.3,1.2,.5,1), opacity .6s; }
.sv-chips li em { font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--coral); margin-left: 6px; opacity: 0; transition: opacity .4s .8s; }
.sv-chips li.gold { background: var(--coral); color: var(--night); font-weight: 800; z-index: 2; }
.sv.done .sv-chips li:not(.gold) { opacity: .45; } .sv.done .sv-chips li em { opacity: 1; }
.sv-mesh { position: absolute; left: 0; right: 0; top: 200px; height: 28px; border: 3px solid rgba(243,230,211,.55); border-top: 0; border-radius: 0 0 50% 50% / 0 0 100% 100%;
  background: repeating-linear-gradient(45deg, transparent 0 7px, rgba(243,230,211,.2) 7px 8px), repeating-linear-gradient(-45deg, transparent 0 7px, rgba(243,230,211,.2) 7px 8px); }
.sv.shake .sv-mesh { animation: xn-shake .5s 3; }
@keyframes xn-shake { 25% { transform: translateX(-8px) rotate(-1deg); } 75% { transform: translateX(8px) rotate(1deg); } }
.sv-out { position: absolute; left: 50%; top: 300px; transform: translate(-50%, 20px); width: min(460px, 100%); background: var(--paper); color: #1d1a16; border-radius: 16px; padding: 12px 14px;
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: center; opacity: 0; transition: all .6s .9s; }
.sv.done .sv-out { opacity: 1; transform: translate(-50%, 0); }
.sv-out .g { width: 34px; height: 34px; border-radius: 9px; background: var(--burg); color: var(--cream); display: grid; place-items: center; font: 800 16px var(--display); }
.sv-out b { display: block; font: 800 16px var(--display); } .sv-out span span { font-size: 13.5px; color: #5d564c; }
.xn-btn { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 12px; padding: 12px 20px; font: 800 15px "DM Sans", sans-serif; cursor: pointer; background: var(--coral); color: var(--night); }
.xn-btn:focus-visible, .xn button:focus-visible, .xn input:focus-visible { outline: 3px solid var(--cream); outline-offset: 2px; }
.xn.center { text-align: center; } .xn.center .xn-h { margin-left: auto; margin-right: auto; }
.xn .sub { margin: 0 auto 14px; max-width: 54ch; color: var(--dim); }

@media (max-width: 760px) {
  .nights { grid-template-columns: 1fr; }
  .sv { height: auto; display: grid; gap: 14px; } .sv-chips { position: static; height: auto; display: flex; flex-wrap: wrap; gap: 6px; }
  .sv-chips li { position: static; transform: none !important; } .sv-mesh { display: none; } .sv-out { position: static; transform: none; opacity: 1; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .xn *, .xn *::before { animation: none !important; transition: none !important; } }
