/* THE CROSSING home (02/12, v2). The door is the site: a full-width night scene with the portal in the middle,
   the clock on its left, your stamp and the mint link on its right. Then the four gates, three steps, and the road.
   Everything is scoped to #cx. Data and dates live at the top of crossing-home.js. No purple anywhere: navy and blue. */
#cx { --cx-night: #0c0d0f; --cx-deep: #0a0b0d; --cx-panel: #111316; --cx-line: #2b3035; --cx-ink: #eef3ff; --cx-soft: #d6d9dc; --cx-muted: #a1a6ad;
  --cx-yellow: #ffe900; --cx-cyan: #22e4ff; --cx-green: #64ff00; --cx-blue: #008cff; --cx-red: #ff4b4b;
  --cx-px: 'Pixelify Sans', 'Silkscreen', ui-monospace, monospace; --cx-label: 'Silkscreen', ui-monospace, monospace; --cx-body: 'Space Grotesk', system-ui, sans-serif;
  position: relative; color: var(--cx-ink); background: var(--cx-night); font: 400 16px/1.55 var(--cx-body); overflow-x: clip; }
#cx *, #cx *::before, #cx *::after { box-sizing: border-box; }
#cx p { margin: 0; }
#cx a { color: inherit; }
#cx [hidden] { display: none !important; }
#cx .cx-wrap { max-width: 1400px; margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
#cx .cx-dot { width: 8px; height: 8px; background: currentColor; display: inline-block; flex: none; }
@keyframes cxBlink { 50% { opacity: .25; } }

/* ---------- sky ---------- */
#cx .cx-sky { position: relative; overflow: hidden; background:
  radial-gradient(60% 46% at 50% 78%, rgba(0, 110, 255, .20) 0%, rgba(0, 110, 255, 0) 70%),
  linear-gradient(180deg, #161819 0%, var(--cx-night) 58%, var(--cx-deep) 100%); border-bottom: 2px solid #1d1f22; }
#cx .cx-stars { position: absolute; inset: 0; pointer-events: none; }
#cx .cx-stars i { position: absolute; width: 2px; height: 2px; background: #dfe9ff; opacity: .75; }
#cx .cx-stars i.b { width: 3px; height: 3px; background: #fff; animation: cxBlink 2.6s steps(2) infinite; }
#cx .cx-stars i.c { background: var(--cx-cyan); }

/* ---------- hero ---------- */
#cx .cx-hero { position: relative; padding-block: 26px 0; --W: min(1000px, 72vw, calc((100vh - 330px) * 1.776)); }
#cx .cx-title { text-align: center; position: relative; z-index: 4; }
#cx .cx-eyebrow { font: 400 12px/1.3 var(--cx-label); letter-spacing: .14em; text-transform: uppercase; color: var(--cx-cyan); margin: 0 0 10px; }
#cx h1 { margin: 0; font: 700 clamp(44px, 7.4vw, 104px)/.9 var(--cx-px); letter-spacing: .01em; text-transform: uppercase; color: var(--cx-ink); text-wrap: balance; }
#cx h1 .cx-the { color: var(--cx-yellow); text-shadow: .04em .04em 0 #0c0d0f; }
#cx h1 .cx-big { text-shadow: .045em .045em 0 var(--cx-blue), .09em .09em 0 #0c0d0f; }
#cx .cx-lead { max-width: 52ch; margin: 14px auto 0; color: var(--cx-soft); text-wrap: balance; }

#cx .cx-stage { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; justify-content: space-between; margin-top: 6px; min-height: calc(max(var(--W), 560px) * .563); }
#cx .cx-scene { position: absolute; left: 50%; bottom: 0; width: max(var(--W), 560px); transform: translateX(-50%); aspect-ratio: 1254 / 706; perspective: 1100px; }
#cx .cx-scene > * { position: absolute; }
#cx .cx-base, #cx .cx-leaf, #cx .cx-light { inset: 0; width: 100%; height: 100%; }
#cx .cx-base { display: block; mix-blend-mode: lighten; }
#cx .cx-rays { left: 50%; top: 50%; width: 130%; aspect-ratio: 1; transform: translate(-50%, -50%); opacity: 0; transition: opacity 1.4s ease; pointer-events: none;
  background: repeating-conic-gradient(from 0deg, rgba(34, 228, 255, .16) 0deg 6deg, rgba(34, 228, 255, 0) 6deg 18deg);
  -webkit-mask: radial-gradient(closest-side, #000 0%, rgba(0, 0, 0, .5) 45%, transparent 78%); mask: radial-gradient(closest-side, #000 0%, rgba(0, 0, 0, .5) 45%, transparent 78%); }
#cx .cx-scene.open .cx-rays { opacity: 1; animation: cxSpin 90s linear infinite; }
@keyframes cxSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }
#cx .cx-light { opacity: 0; transition: opacity .9s ease; background:
  repeating-linear-gradient(0deg, rgba(255, 255, 255, .0) 0 6px, rgba(255, 255, 255, .22) 6px 8px),
  radial-gradient(40% 55% at 50% 62%, #fff 0%, #d9fbff 22%, rgba(34, 228, 255, .92) 48%, rgba(0, 140, 255, .8) 75%, rgba(61, 65, 70, .92) 100%); }
#cx .cx-leaf { background: var(--img) 0 0 / 100% 100% no-repeat; transition: transform 1.5s cubic-bezier(.2, .8, .2, 1), filter 1.5s; backface-visibility: hidden; }
#cx .cx-leaf.l { transform-origin: 38.6% 50%; }
#cx .cx-leaf.r { transform-origin: 61.6% 50%; }
#cx .cx-scene:not(.open):has(.cx-doorlink:hover) .cx-leaf.l, #cx .cx-scene.knock .cx-leaf.l { transform: rotateY(-12deg); }
#cx .cx-scene:not(.open):has(.cx-doorlink:hover) .cx-leaf.r, #cx .cx-scene.knock .cx-leaf.r { transform: rotateY(12deg); }
#cx .cx-scene:not(.open):has(.cx-doorlink:hover) .cx-light, #cx .cx-scene.knock .cx-light { opacity: .85; }
#cx .cx-scene.open .cx-light { opacity: 1; animation: cxShimmer 2.4s ease-in-out infinite; }
#cx .cx-scene.open .cx-leaf.l { transform: rotateY(-80deg); filter: brightness(.5); }
#cx .cx-scene.open .cx-leaf.r { transform: rotateY(80deg); filter: brightness(.5); }
@keyframes cxShimmer { 50% { filter: brightness(1.16) saturate(1.2); } }
#cx .cx-spill { left: 26%; right: 26%; bottom: 0; height: 26%; pointer-events: none; opacity: 0; transition: opacity 1.2s; background: radial-gradient(60% 100% at 50% 0%, rgba(140, 240, 255, .6), transparent 70%); mix-blend-mode: screen; }
#cx .cx-scene.open .cx-spill { opacity: 1; }
#cx .cx-sparks { left: 38%; right: 38%; top: 24%; bottom: 20%; pointer-events: none; opacity: 0; transition: opacity 1s; }
#cx .cx-scene.open .cx-sparks { opacity: 1; }
#cx .cx-sparks i { position: absolute; bottom: 0; width: 4px; height: 4px; background: #fff; box-shadow: 0 0 0 1px rgba(34, 228, 255, .6); opacity: 0; animation: cxSparkUp 3.2s steps(16) infinite; }
#cx .cx-sparks i:nth-child(3n) { background: var(--cx-yellow); }
#cx .cx-sparks i:nth-child(4n) { width: 6px; height: 6px; }
@keyframes cxSparkUp { 0% { transform: translate(0, 0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translate(var(--dx, 0), calc(var(--h, 160) * -1px)); opacity: 0; } }
#cx .cx-doorlink { left: 38.6%; right: 38.4%; top: 22%; bottom: 20%; z-index: 4; border-radius: 46% 46% 0 0 / 30% 30% 0 0; cursor: pointer; }
#cx .cx-doorlink:focus-visible { outline: 3px solid var(--cx-yellow); outline-offset: 4px; }
#cx .cx-sign { left: 50%; top: 1.5%; transform: translateX(-50%); z-index: 5; display: inline-flex; align-items: center; gap: 8px; font: 400 clamp(9px, .95vw, 12px)/1 var(--cx-label); letter-spacing: .12em; text-transform: uppercase; color: var(--cx-yellow); background: #0c0d0f; padding: 7px 9px 6px; border: 2px solid #2c2c10; white-space: nowrap; }
#cx .cx-sign .cx-dot { color: var(--cx-red); }
#cx .cx-scene.open .cx-sign { color: #0c0d0f; background: var(--cx-green); border-color: #0c0d0f; }
#cx .cx-scene.open .cx-sign .cx-dot { color: #0c0d0f; animation: cxBlink 1s steps(2) infinite; }
#cx .cx-pet { width: 11.5%; aspect-ratio: 192 / 208; background-repeat: no-repeat; image-rendering: pixelated; z-index: 3; pointer-events: none; }
#cx .cx-pet.smoke { background-size: 800% 100%; animation: cxSmoke 1.19s steps(7) infinite; }
@keyframes cxSmoke { to { background-position: 100% 0; } }

/* panels left and right of the door */
#cx .cx-panel { position: relative; z-index: 4; width: min(372px, 27vw); padding: 16px 18px 18px; background: rgba(16, 17, 18, .82); border: 2px solid var(--cx-line); box-shadow: 6px 6px 0 rgba(0, 0, 0, .45); }
#cx .cx-status { justify-self: start; margin-top: 18px; }
#cx .cx-go { justify-self: end; margin-top: 18px; }
#cx .cx-lbl { display: flex; align-items: center; gap: 10px; font: 400 12px/1.25 var(--cx-label); letter-spacing: .1em; text-transform: uppercase; color: var(--cx-muted); }
#cx .cx-status .cx-dot { color: var(--cx-blue); }
#cx .cx-status[data-state="live"] { border-color: var(--cx-green); }
#cx .cx-status[data-state="live"] .cx-lbl, #cx .cx-status[data-state="live"] .cx-dot { color: var(--cx-green); }
#cx .cx-status[data-state="live"] .cx-dot { animation: cxBlink 1s steps(2) infinite; }
#cx .cx-cd { display: flex; gap: 8px; margin-top: 12px; }
#cx .cx-cd > div { position: relative; flex: 1 1 0; min-width: 0; text-align: center; background: #080809; border: 2px solid #25272a; padding: 10px 4px 7px; }
#cx .cx-cd > div::after { content: ""; position: absolute; left: 0; right: 0; top: calc(50% - 8px); height: 2px; background: rgba(0, 0, 0, .55); }
#cx .cx-cd b { display: block; font: 700 clamp(34px, 3.4vw, 48px)/1 var(--cx-px); color: var(--cx-yellow); font-variant-numeric: tabular-nums; }
#cx .cx-cd span { display: block; margin-top: 4px; font: 400 10px/1 var(--cx-label); letter-spacing: .1em; color: var(--cx-muted); text-transform: uppercase; }
#cx .cx-status.last .cx-cd b { color: var(--cx-green); }
#cx .cx-when { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: baseline; }
#cx .cx-phase { font: 700 22px/1.1 var(--cx-px); color: var(--cx-ink); }
#cx .cx-utc { font: 400 12px/1.3 var(--cx-label); letter-spacing: .06em; text-transform: uppercase; color: var(--cx-cyan); }
#cx .cx-note { margin-top: 6px; font-size: 14px; line-height: 1.45; color: var(--cx-muted); }
#cx .cx-note b { color: var(--cx-ink); font-weight: 600; }

#cx .cx-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
#cx .cx-pick button { font: 700 16px/1 var(--cx-px); padding: 11px 8px 10px; min-height: 44px; color: var(--cx-ink); background: #080809; border: 2px solid #25272a; cursor: pointer; transition: transform .08s steps(2); }
#cx .cx-pick button:hover { border-color: var(--cx-cyan); }
#cx .cx-pick button[aria-pressed="true"] { background: var(--cx-yellow); border-color: var(--cx-yellow); color: #0c0d0f; box-shadow: 3px 3px 0 var(--cx-blue); }
#cx .cx-pick-n { margin-top: 10px; font-size: 13px; line-height: 1.45; color: var(--cx-muted); }
#cx .cx-pick-n a { color: var(--cx-cyan); text-underline-offset: 3px; white-space: nowrap; }
#cx .cx-actions { display: grid; gap: 10px; margin-top: 14px; }
#cx .cx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 13px 16px 12px; font: 700 18px/1 var(--cx-px); text-decoration: none; color: #0c0d0f; background: var(--cx-cyan); box-shadow: 0 0 0 2px #0c0d0f, 4px 4px 0 2px var(--cx-yellow); transition: transform .08s steps(2); cursor: pointer; border: 0; }
#cx .cx-btn:hover, #cx .cx-btn:focus-visible { transform: translate(2px, 2px); box-shadow: 0 0 0 2px #0c0d0f, 2px 2px 0 2px var(--cx-yellow); outline: none; }
#cx .cx-btn.ghost { min-height: 42px; padding-block: 10px 9px; font-size: 16px; background: transparent; color: var(--cx-ink); box-shadow: inset 0 0 0 2px var(--cx-line); }
#cx .cx-btn.ghost:hover, #cx .cx-btn.ghost:focus-visible { transform: none; box-shadow: inset 0 0 0 2px var(--cx-cyan); }
#cx[data-live] .cx-cta { background: var(--cx-green); }

#cx .cx-official { position: relative; z-index: 4; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 18px; margin: 0 -24px; padding: 12px 24px; font-size: 14px; color: var(--cx-soft); background: rgba(8, 9, 9, .86); border-top: 2px solid #1d1f22; }
#cx .cx-official a { color: var(--cx-cyan); text-underline-offset: 3px; }
#cx .cx-tag { font: 400 11px/1 var(--cx-label); letter-spacing: .08em; text-transform: uppercase; color: #0c0d0f; background: var(--cx-green); padding: 5px 7px 4px; }
#cx .cx-ca { display: inline-flex; align-items: center; gap: 8px; }
#cx code { font: 400 13px/1.2 ui-monospace, Menlo, Consolas, monospace; color: var(--cx-ink); background: #121314; border: 1px solid var(--cx-line); padding: 5px 7px; word-break: break-all; }
#cx .cx-copy { font: 400 11px/1 var(--cx-label); text-transform: uppercase; color: #0c0d0f; background: var(--cx-yellow); border: 0; padding: 7px 8px 6px; cursor: pointer; }

/* ---------- sections ---------- */
#cx .cx-sec { padding-block: 60px; }
#cx .cx-dep { background: var(--cx-deep); }
#cx .cx-how { background: var(--cx-night); border-block: 2px solid #1d1f22; }
#cx .cx-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
#cx h2 { margin: 0; font: 700 clamp(30px, 4vw, 46px)/1 var(--cx-px); text-transform: uppercase; text-wrap: balance; color: var(--cx-ink); }
#cx .cx-sub { color: var(--cx-muted); margin-top: 6px; max-width: 60ch; }
#cx .cx-tz { font: 400 11px/1.3 var(--cx-label); letter-spacing: .08em; text-transform: uppercase; color: var(--cx-muted); }
#cx .cx-tz b { color: var(--cx-ink); font-weight: 400; }

/* departures: a track with four stops, then one card per gate */
#cx .cx-track { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; height: 10px; margin-bottom: 14px; }
#cx .cx-track span { background: #1d1f22; }
#cx .cx-track-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: repeating-linear-gradient(90deg, var(--cx-green) 0 8px, #3fb800 8px 16px); z-index: 1; transition: width .6s steps(12); }
#cx .cx-track-fill::after { content: ""; position: absolute; right: -5px; top: -5px; width: 10px; height: 20px; background: var(--cx-ink); box-shadow: 0 0 0 2px #0c0d0f; }
#cx .cx-gates { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
#cx .cx-gate { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 16px; background: var(--cx-panel); border: 2px solid var(--cx-line); }
#cx .cx-gate-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
#cx .cx-gn { font: 400 11px/1 var(--cx-label); letter-spacing: .12em; text-transform: uppercase; color: var(--cx-cyan); }
#cx .cx-st { font: 700 11px/1 var(--cx-label); letter-spacing: .08em; padding: 6px 7px 5px; border: 2px solid currentColor; text-transform: uppercase; white-space: nowrap; }
#cx .cx-gate[data-s="scheduled"] .cx-st { color: var(--cx-blue); }
#cx .cx-gate[data-s="boarding"] .cx-st { color: #0c0d0f; background: var(--cx-green); border-color: var(--cx-green); animation: cxBlink 1s steps(2) infinite; }
#cx .cx-gate[data-s="departed"] .cx-st { color: #626871; }
#cx .cx-gate h3 { margin: 14px 0 0; font: 700 30px/1 var(--cx-px); color: var(--cx-yellow); }
#cx .cx-who { margin-top: 4px; font-size: 14px; color: var(--cx-muted); }
#cx .cx-rows { margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
#cx .cx-rows > div { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 8px; align-items: baseline; padding-top: 10px; border-top: 1px dashed #2b2e32; }
#cx .cx-rows dt { font: 400 10px/1.4 var(--cx-label); letter-spacing: .1em; text-transform: uppercase; color: var(--cx-muted); }
#cx .cx-rows dd { margin: 0; font: 700 14px/1.3 var(--cx-label); letter-spacing: .03em; text-transform: uppercase; color: var(--cx-ink); font-variant-numeric: tabular-nums; }
#cx .cx-rows dd small { display: block; margin-top: 2px; font: 400 13px/1.35 var(--cx-body); letter-spacing: 0; text-transform: none; color: var(--cx-muted); }
#cx .cx-eta { margin-top: 14px !important; padding-top: 12px; border-top: 1px dashed #2b2e32; font: 400 12px/1.3 var(--cx-label); letter-spacing: .06em; text-transform: uppercase; color: var(--cx-soft); }
#cx .cx-prog { height: 6px; margin-top: 8px; background: #080809; border: 1px solid #2b2e32; }
#cx .cx-prog i { display: block; height: 100%; width: 0; background: var(--cx-green); }
#cx .cx-gate[data-s="boarding"][data-open-end] .cx-prog i { width: 100% !important; background: repeating-linear-gradient(90deg, var(--cx-green) 0 8px, #080809 8px 16px); background-size: 16px 100%; animation: cxMarch 1s steps(4) infinite; }
@keyframes cxMarch { to { background-position: 16px 0; } }
#cx .cx-cal { margin-top: auto !important; padding-top: 12px; display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 13px; color: var(--cx-muted); }
#cx .cx-cal a { color: var(--cx-cyan); text-underline-offset: 3px; padding-block: 4px; }
#cx .cx-gate[data-s="boarding"] { border-color: var(--cx-green); box-shadow: 5px 5px 0 rgba(100, 255, 0, .25); }
#cx .cx-gate[data-s="boarding"] .cx-eta { color: var(--cx-green); }
#cx .cx-gate[data-s="departed"] { background: #111213; border-color: #212326; }
#cx .cx-gate[data-s="departed"] h3, #cx .cx-gate[data-s="departed"] .cx-rows dd, #cx .cx-gate[data-s="departed"] .cx-gn, #cx .cx-gate[data-s="departed"] .cx-eta { color: #626871; }
#cx .cx-gate[data-s="departed"] .cx-cal { visibility: hidden; }
#cx .cx-gate[data-mine] { border-color: var(--cx-yellow); }
#cx .cx-gate[data-mine]::before { content: "Your gate"; position: absolute; left: 12px; top: -11px; font: 400 10px/1 var(--cx-label); letter-spacing: .1em; text-transform: uppercase; color: #0c0d0f; background: var(--cx-yellow); padding: 5px 6px 4px; }

/* how to cross */
#cx .cx-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
#cx .cx-step { position: relative; min-width: 0; padding: 18px 18px 18px 74px; background: var(--cx-panel); border: 2px solid var(--cx-line); }
#cx .cx-n { position: absolute; left: 16px; top: 16px; width: 42px; height: 42px; display: grid; place-items: center; font: 700 26px/1 var(--cx-px); color: #0c0d0f; background: var(--cx-cyan); box-shadow: 3px 3px 0 var(--cx-yellow); }
#cx .cx-step h3 { margin: 0 0 6px; font: 700 22px/1.15 var(--cx-px); color: var(--cx-ink); }
#cx .cx-step p { font-size: 15px; color: var(--cx-soft); }
#cx .cx-step b { color: var(--cx-yellow); }
#cx .cx-more { display: inline-block; margin-top: 10px; padding-block: 4px; font: 700 15px/1.2 var(--cx-px); color: var(--cx-cyan); text-underline-offset: 3px; }
#cx .cx-ca-full { margin-top: 10px !important; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 13px !important; color: var(--cx-muted) !important; }
#cx .cx-ca-full code { flex: 1 1 100%; font-size: 12px; }
#cx .cx-step-c { padding-right: 132px; }
#cx .cx-step-c img { position: absolute; right: 10px; bottom: 8px; width: 116px; height: auto; image-rendering: pixelated; }

/* the road */
#cx .cx-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 260px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 14px; scrollbar-color: var(--cx-line) transparent; }
#cx .cx-card { scroll-snap-align: start; position: relative; background: var(--cx-panel); border: 2px solid var(--cx-line); min-width: 0; }
#cx .cx-card img { display: block; width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; }
#cx .cx-card[data-s="ended"] img { filter: grayscale(.85) brightness(.55); }
#cx .cx-card .cx-in { padding: 12px 14px 14px; }
#cx .cx-card .cx-k { font: 400 10px/1 var(--cx-label); letter-spacing: .12em; text-transform: uppercase; color: var(--cx-muted); }
#cx .cx-card h3 { margin: 6px 0 4px; font: 700 20px/1.1 var(--cx-px); color: var(--cx-ink); }
#cx .cx-card p { font-size: 14px; color: var(--cx-soft); }
#cx .cx-card[data-s="ended"] h3, #cx .cx-card[data-s="ended"] p { color: var(--cx-muted); }
#cx .cx-stamp { position: absolute; top: 14px; right: 10px; transform: rotate(-8deg); font: 700 15px/1 var(--cx-px); letter-spacing: .08em; padding: 6px 9px; border: 3px solid currentColor; text-transform: uppercase; background: rgba(8, 8, 9, .6); }
#cx .cx-card[data-s="ended"] .cx-stamp { color: var(--cx-red); }
#cx .cx-card[data-s="now"] { border-color: var(--cx-cyan); box-shadow: 4px 4px 0 var(--cx-yellow); }
#cx .cx-card[data-s="now"] .cx-stamp { color: var(--cx-green); }
#cx .cx-card[data-s="later"] .cx-stamp { color: var(--cx-blue); }
#cx .cx-railnav { display: flex; gap: 8px; }
#cx .cx-railnav button { width: 46px; }

/* ---------- FRAMES (v2b): every window and card shares one frame. A hairline border, two bright corner ticks,
   a thin red/cyan fringe like the outline of the Codex Pets, and a short glitch now and then (and on hover). ---------- */
#cx .cx-panel, #cx .cx-gate, #cx .cx-step, #cx .cx-card {
  --f1: var(--cx-cyan); --f2: var(--cx-yellow); --fb: rgba(181, 185, 191, .28); --fa: rgba(34, 228, 255, .42); --fr: rgba(255, 75, 75, .36); --drop: 0 22px 44px -22px rgba(0, 0, 0, .9);
  border: 1px solid var(--fb);
  background:
    linear-gradient(var(--f1), var(--f1)) left -1px top -1px / 18px 2px no-repeat, linear-gradient(var(--f1), var(--f1)) left -1px top -1px / 2px 18px no-repeat,
    linear-gradient(var(--f2), var(--f2)) right -1px bottom -1px / 18px 2px no-repeat, linear-gradient(var(--f2), var(--f2)) right -1px bottom -1px / 2px 18px no-repeat,
    linear-gradient(180deg, rgba(30, 32, 34, .94) 0%, rgba(14, 15, 16, .94) 100%);
  box-shadow: -2px 0 0 var(--fa), 2px 0 0 var(--fr), var(--drop); }
#cx .cx-panel, #cx .cx-gate { animation: cxFrame 9s steps(1) infinite; }
#cx .cx-go, #cx .cx-gate:nth-child(2) { animation-delay: -3.1s; }
#cx .cx-gate:nth-child(3) { animation-delay: -5.4s; }
#cx .cx-gate:nth-child(4) { animation-delay: -7.2s; }
#cx .cx-step:hover, #cx .cx-card:hover { animation: cxFrame .9s steps(1) 1; animation-delay: -8.3s; }
@keyframes cxFrame {
  0%, 93.9%, 100% { box-shadow: -2px 0 0 var(--fa), 2px 0 0 var(--fr), var(--drop); translate: 0 0; clip-path: none; }
  94% { box-shadow: -6px 0 0 var(--fa), 5px 0 0 var(--fr), var(--drop); translate: 2px 0; clip-path: polygon(0 0, 100% 0, 100% 34%, calc(100% + 8px) 34%, calc(100% + 8px) 46%, 100% 46%, 100% 100%, 0 100%, 0 72%, -8px 72%, -8px 64%, 0 64%); }
  95.5% { box-shadow: 4px 0 0 var(--fa), -5px 0 0 var(--fr), var(--drop); translate: -2px 0; clip-path: none; }
  97% { box-shadow: -3px 1px 0 var(--fa), 3px -1px 0 var(--fr), var(--drop); translate: 1px 0; }
  98% { box-shadow: -2px 0 0 var(--fa), 2px 0 0 var(--fr), var(--drop); translate: 0 0; } }
#cx .cx-status[data-state="live"], #cx .cx-gate[data-s="boarding"] { --f1: var(--cx-green); --f2: var(--cx-green); --fb: rgba(100, 255, 0, .55); --drop: 0 0 34px -8px rgba(100, 255, 0, .45); }
#cx .cx-gate[data-s="boarding"] { box-shadow: -2px 0 0 var(--fa), 2px 0 0 var(--fr), var(--drop); }
#cx .cx-gate[data-mine] { --f1: var(--cx-yellow); --fb: rgba(255, 233, 0, .6); }
#cx .cx-gate[data-s="departed"] { box-shadow: none; animation: none; }
#cx .cx-card[data-s="ended"] { --f1: #44484e; --f2: #44484e; --fa: rgba(34, 228, 255, .18); --fr: rgba(255, 75, 75, .16); }
#cx .cx-card[data-s="now"] { --fb: rgba(34, 228, 255, .7); --drop: 0 0 30px -8px rgba(34, 228, 255, .5); box-shadow: -2px 0 0 var(--fa), 2px 0 0 var(--fr), var(--drop); }
#cx .cx-card img { border-bottom: 1px solid var(--fb); }
#cx .cx-cd > div, #cx .cx-pick button { border-width: 1px; border-color: rgba(181, 185, 191, .26); }
#cx .cx-pick button:hover { border-color: var(--cx-cyan); }
#cx .cx-pick button[aria-pressed="true"] { border-color: var(--cx-yellow); }
#cx .cx-rows > div, #cx .cx-eta { border-top: 1px solid rgba(181, 185, 191, .14); }
#cx .cx-prog { border-color: rgba(181, 185, 191, .2); }
#cx .cx-rail { padding-inline: 6px; }

/* ---------- THE DOOR ANSWERS (v3): knock, peephole, doorman lines, lights out, the cats crossing, the last ten seconds ---------- */
#cx .cx-pet { pointer-events: auto; cursor: pointer; }
#cx .cx-run { width: 11.5%; aspect-ratio: 192 / 208; background-repeat: no-repeat; background-size: 800% 1100%; image-rendering: pixelated; z-index: 2; pointer-events: none; left: 0; bottom: 0; transform-origin: 50% 100%; will-change: transform, opacity; }
#cx .cx-scene.knock .cx-leaf { animation: cxKnock .32s steps(4) 1; }
@keyframes cxKnock { 25% { translate: -.5% 0; } 50% { translate: .5% .3%; } 75% { translate: -.3% 0; } }
#cx .cx-scene.crack .cx-leaf.l { transform: rotateY(-16deg); }
#cx .cx-scene.crack .cx-leaf.r { transform: rotateY(16deg); }
#cx .cx-scene.crack .cx-light { opacity: .9; }
#cx .cx-peep { left: 44.6%; width: 10.8%; top: 46.5%; height: 5.2%; z-index: 4; display: flex; align-items: center; justify-content: center; gap: 22%; background: #040404; box-shadow: 0 0 0 2px #0c0d0f, 0 0 0 4px #5b6472; opacity: 0; scale: 1 .1; transition: opacity .12s steps(2), scale .12s steps(3); pointer-events: none; }
#cx .cx-peep i { width: 17%; height: 52%; background: var(--cx-yellow); box-shadow: 0 0 8px rgba(255, 233, 0, .8); animation: cxEye 2.2s steps(1) infinite; }
@keyframes cxEye { 0%, 86%, 100% { scale: 1 1; } 88%, 94% { scale: 1 .12; } }
#cx .cx-scene.peep:not(.open) .cx-peep { opacity: 1; scale: 1 1; }
#cx .cx-say { left: 50%; top: 8.5%; z-index: 6; translate: -50% 0; max-width: min(74%, 420px); width: max-content; padding: 10px 14px 9px; font: 700 clamp(14px, 1.5vw, 18px)/1.25 var(--cx-px); color: #0c0d0f; background: #f4f7ff; box-shadow: 0 0 0 2px #0c0d0f, 4px 4px 0 2px var(--cx-blue); text-align: center; animation: cxSay .18s steps(3) 1; pointer-events: none; }
#cx .cx-say::after { content: ""; position: absolute; left: 50%; bottom: -10px; width: 12px; height: 10px; translate: -50% 0; background: #f4f7ff; clip-path: polygon(0 0, 100% 0, 50% 100%); }
@keyframes cxSay { from { scale: .6; opacity: 0; } }
#cx .cx-lamp { z-index: 4; width: 7.2%; height: 17%; top: 56.5%; padding: 0; border: 0; background: transparent; cursor: pointer; }
#cx .cx-lamp.l { left: 20.3%; } #cx .cx-lamp.r { left: 72.6%; }
#cx .cx-eyes { inset: 0; pointer-events: none; opacity: 0; transition: opacity .5s .2s; z-index: 3; }
#cx .cx-eyes i { position: absolute; width: 1.1%; aspect-ratio: 1; background: var(--cx-yellow); box-shadow: calc(var(--e, 14px)) 0 0 var(--cx-yellow); animation: cxEye 3.1s steps(1) infinite; }
#cx .cx-eyes i:nth-child(2n) { animation-delay: -1.3s; background: var(--cx-cyan); box-shadow: 14px 0 0 var(--cx-cyan); }
#cx .cx-eyes i:nth-child(3n) { animation-delay: -2.2s; }
#cx .cx-sky::after { content: ""; position: absolute; inset: 0; background: #040405; opacity: 0; transition: opacity .5s; pointer-events: none; z-index: 2; }
#cx[data-dark] .cx-sky::after { opacity: .62; }
#cx[data-dark] .cx-base, #cx[data-dark] .cx-leaf { filter: brightness(.42) saturate(.7); transition: filter .5s; }
#cx[data-dark] .cx-eyes { opacity: 1; }
#cx[data-dark] .cx-scene { z-index: 3; }
#cx[data-dark] .cx-pet, #cx[data-dark] .cx-run { filter: brightness(.55); }
#cx .cx-title, #cx .cx-panel, #cx .cx-official { z-index: 5; }
#cx .cx-ten { left: 50%; top: 50%; translate: -50% -50%; z-index: 7; font: 700 clamp(160px, 34vw, 460px)/1 var(--cx-px); color: var(--cx-yellow); text-shadow: .03em .03em 0 var(--cx-blue), .06em .06em 0 #0c0d0f; pointer-events: none; }
#cx .cx-ten.tick { animation: cxTen .9s steps(9) 1 both; }
@keyframes cxTen { 0% { scale: 1.5; opacity: 0; } 12% { scale: 1; opacity: 1; } 80% { opacity: 1; } 100% { scale: .9; opacity: 0; } }
#cx .cx-flash { position: fixed; inset: 0; z-index: 90; background: radial-gradient(circle at var(--fx, 50%) var(--fy, 50%), #fff 0%, #d9fbff 30%, rgba(34, 228, 255, .9) 60%, rgba(0, 140, 255, 0) 100%); pointer-events: none; animation: cxFlash 1.1s ease-out 1 both; }
@keyframes cxFlash { 0% { opacity: 0; scale: .2; } 18% { opacity: 1; scale: 1.6; } 100% { opacity: 0; scale: 3; } }

/* boarding pass: shows up once you pick a stamp */
#cx .cx-pass { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 250px; margin: 0 0 30px; color: #0c0d0f; filter: drop-shadow(6px 6px 0 var(--cx-blue)); animation: cxPass .5s steps(8) 1; }
@keyframes cxPass { from { translate: 0 -18px; opacity: 0; } }
#cx .cx-pass-main { padding: 18px 22px 20px; background: #f4f7ff; -webkit-mask: radial-gradient(circle 11px at 100% 0, transparent 98%, #000) , radial-gradient(circle 11px at 100% 100%, transparent 98%, #000); -webkit-mask-composite: source-in; mask: radial-gradient(circle 11px at 100% 0, transparent 98%, #000), radial-gradient(circle 11px at 100% 100%, transparent 98%, #000); mask-composite: intersect; }
#cx .cx-pass-stub { display: flex; flex-direction: column; gap: 10px; padding: 18px 18px 20px; background: var(--cx-yellow); border-left: 3px dashed #0c0d0f; -webkit-mask: radial-gradient(circle 11px at 0 0, transparent 98%, #000), radial-gradient(circle 11px at 0 100%, transparent 98%, #000); -webkit-mask-composite: source-in; mask: radial-gradient(circle 11px at 0 0, transparent 98%, #000), radial-gradient(circle 11px at 0 100%, transparent 98%, #000); mask-composite: intersect; }
#cx .cx-pass-k { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font: 700 12px/1.2 var(--cx-label); letter-spacing: .1em; text-transform: uppercase; color: #0c0d0f; padding-bottom: 10px; border-bottom: 2px solid #0c0d0f; }
#cx .cx-pass-k span:last-child { color: #4a4f55; font-weight: 400; }
#cx .cx-pass-route { display: grid; grid-template-columns: auto minmax(30px, 1fr) auto; align-items: center; gap: 16px; margin-top: 12px; }
#cx .cx-pass-route b { display: block; font: 700 clamp(38px, 5vw, 60px)/.9 var(--cx-px); color: #0c0d0f; }
#cx .cx-pass-route span { font: 400 11px/1.3 var(--cx-label); letter-spacing: .06em; text-transform: uppercase; color: #4a4f55; }
#cx .cx-pass-route div:last-child { text-align: right; }
#cx .cx-pass-route i { height: 4px; background: repeating-linear-gradient(90deg, #0c0d0f 0 8px, transparent 8px 14px); position: relative; }
#cx .cx-pass-route i::after { content: ""; position: absolute; right: -2px; top: -6px; width: 16px; height: 16px; background: #0c0d0f; clip-path: polygon(0 0, 100% 50%, 0 100%); }
#cx .cx-pass-f { display: grid; grid-template-columns: 1.5fr .6fr 1fr 1.5fr 1.3fr .9fr; gap: 12px 18px; margin: 16px 0 0; }
#cx .cx-pass-f dt, #cx .cx-pass-f label { font: 400 10px/1.3 var(--cx-label); letter-spacing: .1em; text-transform: uppercase; color: #4a4f55; }
#cx .cx-pass-f dd { margin: 3px 0 0; font: 700 18px/1.15 var(--cx-px); color: #0c0d0f; font-variant-numeric: tabular-nums; }
#cx .cx-pass-gate { font-size: 30px !important; line-height: .9 !important; }
#cx .cx-pass-who dd { display: flex; align-items: center; gap: 2px; border-bottom: 2px dashed #a6abb1; }
#cx .cx-pass-who input { width: 100%; min-width: 0; padding: 2px 0; font: 700 18px/1.15 var(--cx-px); color: #0c0d0f; background: transparent; border: 0; outline: 0; }
#cx .cx-pass-who input::placeholder { color: #a6abb1; }
#cx .cx-pass-bar { height: 54px; background: repeating-linear-gradient(90deg, #0c0d0f 0 3px, transparent 3px 5px, #0c0d0f 5px 6px, transparent 6px 10px, #0c0d0f 10px 14px, transparent 14px 16px, #0c0d0f 16px 17px, transparent 17px 21px); }
#cx .cx-pass-seat { font: 400 11px/1.3 var(--cx-label); letter-spacing: .08em; text-transform: uppercase; color: #0c0d0f; }
#cx .cx-pass-stub .cx-btn { min-height: 42px; padding: 10px 12px 9px; font-size: 16px; background: #0c0d0f; color: #fff; box-shadow: none; }
#cx .cx-pass-stub .cx-btn.ghost { background: transparent; color: #0c0d0f; box-shadow: inset 0 0 0 2px #0c0d0f; }
#cx .cx-pass-stub .cx-btn:hover { transform: none; background: #323539; color: #fff; }
@media (max-width: 1100px) { #cx .cx-pass-f { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  #cx .cx-pass { grid-template-columns: minmax(0, 1fr); filter: drop-shadow(4px 4px 0 var(--cx-blue)); }
  #cx .cx-pass-main { padding: 16px; -webkit-mask: radial-gradient(circle 11px at 0 100%, transparent 98%, #000), radial-gradient(circle 11px at 100% 100%, transparent 98%, #000); -webkit-mask-composite: source-in; mask: radial-gradient(circle 11px at 0 100%, transparent 98%, #000), radial-gradient(circle 11px at 100% 100%, transparent 98%, #000); mask-composite: intersect; }
  #cx .cx-pass-stub { border-left: 0; border-top: 3px dashed #0c0d0f; padding: 16px; -webkit-mask: radial-gradient(circle 11px at 0 0, transparent 98%, #000), radial-gradient(circle 11px at 100% 0, transparent 98%, #000); -webkit-mask-composite: source-in; mask: radial-gradient(circle 11px at 0 0, transparent 98%, #000), radial-gradient(circle 11px at 100% 0, transparent 98%, #000); mask-composite: intersect; }
  #cx .cx-pass-f { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #cx .cx-pass-who { grid-column: 1 / -1; }
  #cx .cx-pass-bar { height: 40px; }
  #cx .cx-say { top: 4%; }
}

/* ---------- GATES (v3b): each gate is a small door. Closed, lit while boarding, dim once departed. ---------- */
#cx .cx-track { display: none; }
#cx .cx-gates { gap: 20px; }
#cx .cx-gate { padding: 0; overflow: visible; }
#cx .cx-g-art { position: relative; height: 168px; overflow: hidden; background: radial-gradient(70% 90% at 50% 100%, rgba(0, 110, 255, .30), rgba(0, 110, 255, 0) 70%), linear-gradient(180deg, #181a1c 0%, #0b0b0c 100%); border-bottom: 1px solid var(--fb); }
#cx .cx-g-art::before { content: ""; position: absolute; inset: 0; opacity: .7; background-image: radial-gradient(1px 1px at 12% 22%, #fff 60%, transparent 61%), radial-gradient(1px 1px at 30% 60%, #cfe 60%, transparent 61%), radial-gradient(2px 2px at 84% 18%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 92% 52%, #bdf 60%, transparent 61%), radial-gradient(1px 1px at 68% 34%, #fff 60%, transparent 61%), radial-gradient(2px 2px at 6% 70%, #22e4ff 50%, transparent 51%); }
#cx .cx-g-mini { position: absolute; left: 50%; top: -30px; width: 400px; height: 225px; translate: -50% 0; }
#cx .cx-g-mini img { display: block; width: 100%; height: 100%; }
#cx .cx-g-light { position: absolute; left: 38.6%; right: 38.4%; top: 22.4%; bottom: 20%; border-radius: 50% 50% 0 0 / 34% 34% 0 0; opacity: 0; background: radial-gradient(60% 60% at 50% 65%, #fff 0%, #d9fbff 30%, rgba(34, 228, 255, .95) 70%, rgba(0, 140, 255, .9) 100%); box-shadow: 0 0 34px 6px rgba(34, 228, 255, .55); }
#cx .cx-gate[data-s="boarding"] .cx-g-light { opacity: 1; animation: cxShimmer 2.4s ease-in-out infinite; }
#cx .cx-gate[data-s="departed"] .cx-g-mini { filter: grayscale(1) brightness(.4); }
#cx .cx-gate[data-s="departed"] .cx-g-art { background: #0c0d0e; }
#cx .cx-g-art .cx-gn { position: absolute; left: 12px; top: 12px; padding: 6px 8px 5px; font: 700 11px/1 var(--cx-label); letter-spacing: .1em; color: #0c0d0f; background: var(--cx-cyan); }
#cx .cx-g-art .cx-st { position: absolute; right: 12px; top: 12px; background: rgba(8, 9, 9, .85); }
#cx .cx-gate[data-s="boarding"] .cx-g-art .cx-st { background: var(--cx-green); }
#cx .cx-gate[data-s="boarding"] .cx-g-art .cx-gn { background: var(--cx-green); }
#cx .cx-gate[data-s="departed"] .cx-g-art .cx-gn { background: #313438; color: #a1a6ad !important; }
#cx .cx-g-body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 14px; }
#cx .cx-gate h3 { margin: 0; font-size: 32px; }
#cx .cx-g-time { display: grid; grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr); gap: 8px; align-items: center; margin-top: 16px; padding: 14px 0; border-block: 1px solid rgba(181, 185, 191, .16); }
#cx .cx-g-time span { display: block; font: 400 10px/1.3 var(--cx-label); letter-spacing: .08em; text-transform: uppercase; color: var(--cx-muted); }
#cx .cx-g-time b { display: block; margin-top: 4px; font: 700 30px/1 var(--cx-px); color: var(--cx-ink); font-variant-numeric: tabular-nums; }
#cx .cx-g-time b small { margin-left: 5px; font: 400 11px/1 var(--cx-label); letter-spacing: .08em; color: var(--cx-cyan); }
#cx .cx-g-time b.cx-g-inf { font-size: 24px; line-height: 30px; }
#cx .cx-g-time em { display: block; margin-top: 4px; font-style: normal; font-size: 13px; line-height: 1.3; color: var(--cx-soft); }
#cx .cx-g-arrow { height: 2px; background: repeating-linear-gradient(90deg, var(--cx-muted) 0 4px, transparent 4px 7px); position: relative; }
#cx .cx-g-arrow::after { content: ""; position: absolute; right: -2px; top: -4px; width: 8px; height: 10px; background: var(--cx-muted); clip-path: polygon(0 0, 100% 50%, 0 100%); }
#cx .cx-g-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
#cx .cx-g-price { font-size: 13px; color: var(--cx-muted); }
#cx .cx-g-price b { margin-right: 8px; padding: 5px 8px 4px; font: 700 14px/1 var(--cx-px); color: #0c0d0f; background: var(--cx-yellow); }
#cx .cx-gate .cx-eta { margin: 0 !important; padding: 0; border: 0 !important; font: 700 12px/1.2 var(--cx-label); letter-spacing: .06em; white-space: nowrap; color: var(--cx-cyan); }
#cx .cx-gate[data-s="boarding"] .cx-eta { color: var(--cx-green); }
#cx .cx-gate .cx-cal { margin-top: 12px !important; padding-top: 0; gap: 4px 14px; }
#cx .cx-gate .cx-cal a { text-decoration: none; font: 400 11px/1.2 var(--cx-label); letter-spacing: .06em; text-transform: uppercase; color: var(--cx-muted); }
#cx .cx-gate .cx-cal a:hover { color: var(--cx-cyan); }
#cx .cx-gate .cx-prog { height: 4px; margin: 0; border: 0; background: rgba(181, 185, 191, .14); }
#cx .cx-gate[data-s="departed"] .cx-prog i { background: #313438; }
#cx .cx-gate[data-s="departed"] .cx-g-time b, #cx .cx-gate[data-s="departed"] .cx-g-time em, #cx .cx-gate[data-s="departed"] .cx-g-time b small { color: #626871; }
#cx .cx-gate[data-s="departed"] .cx-g-price b { background: #313438; color: #a1a6ad; }
#cx .cx-gate[data-mine]::before { z-index: 2; }
@media (max-width: 700px) {
  #cx .cx-g-art { height: 132px; }
  #cx .cx-g-mini { top: -34px; width: 340px; height: 191px; }
}

#cx .cx-g-price { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; min-width: 0; }
#cx .cx-g-price b { margin: 0; white-space: nowrap; }
#cx .cx-g-time span { white-space: nowrap; }

/* ---------- KEYS (v3b): the menu key and the chosen stamp wear the door's light instead of a flat yellow block ---------- */
.v3-header nav.menu > a.cx-key, .v3-header nav.menu > a.cx-key[data-live] { position: relative; gap: 10px; padding: 10px 14px 9px; color: #ffe900; border: 2px solid transparent; box-shadow: none;
  background: linear-gradient(#0c0d0f, #0c0d0f) padding-box, linear-gradient(90deg, #ff4b4b, #ffe900, #64ff00, #22e4ff, #008cff, #22e4ff, #64ff00, #ffe900, #ff4b4b) border-box; background-size: auto, 200% 100%; animation: cxKey 6s linear infinite; transition: color .12s steps(2); }
@keyframes cxKey { to { background-position: 0 0, 200% 0; } }
.v3-header nav.menu > a.cx-key::after { content: ""; position: absolute; inset: -2px; z-index: -1; background: linear-gradient(90deg, #ff4b4b, #ffe900, #64ff00, #22e4ff, #008cff); filter: blur(10px); opacity: .45; }
.v3-header nav.menu > a.cx-key .cx-kdot { width: 10px; height: 13px; border-radius: 5px 5px 0 0; background: #22e4ff; box-shadow: 0 0 8px #22e4ff; }
.v3-header nav.menu > a.cx-key:hover { transform: none; color: #fff; background: linear-gradient(#202224, #202224) padding-box, linear-gradient(90deg, #ff4b4b, #ffe900, #64ff00, #22e4ff, #008cff, #22e4ff, #64ff00, #ffe900, #ff4b4b) border-box; background-size: auto, 200% 100%; }
.v3-header nav.menu > a.cx-key[data-live] { color: #64ff00; }
.v3-header nav.menu > a.cx-key[data-live] .cx-kdot { background: #fff; box-shadow: 0 0 10px #d9fbff; animation: cxBlink 1s steps(2) infinite; }
#cx .cx-pick button { position: relative; background: rgba(8, 9, 9, .8); }
#cx .cx-pick button[aria-pressed="true"] { color: var(--cx-yellow); border-color: var(--cx-yellow); box-shadow: -2px 0 0 rgba(34, 228, 255, .5), 2px 0 0 rgba(255, 75, 75, .45), inset 0 0 18px rgba(255, 233, 0, .16);
  background: linear-gradient(var(--cx-yellow), var(--cx-yellow)) left top / 10px 3px no-repeat, linear-gradient(var(--cx-yellow), var(--cx-yellow)) right bottom / 10px 3px no-repeat, rgba(255, 233, 0, .08); }
#cx .cx-g-price b { color: var(--cx-yellow); background: transparent; box-shadow: inset 0 0 0 1px var(--cx-yellow); }
#cx .cx-gate[data-s="departed"] .cx-g-price b { box-shadow: inset 0 0 0 1px #313438; background: transparent; color: #626871; }

/* small screens: a bar with the clock and the mint link once the hero is out of view */
#cx .cx-bar { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; display: none; align-items: center; justify-content: space-between; gap: 12px; padding: 10px max(14px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(14px, env(safe-area-inset-left, 0px)); background: #080809; border-top: 2px solid var(--cx-line); font: 400 12px/1.3 var(--cx-label); letter-spacing: .05em; text-transform: uppercase; color: var(--cx-soft); }
#cx .cx-bar b { color: var(--cx-yellow); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
#cx .cx-bar .cx-btn { min-height: 42px; padding: 10px 12px 9px; font-size: 16px; flex: none; box-shadow: 0 0 0 2px #0c0d0f, 3px 3px 0 2px var(--cx-yellow); }
#cx[data-live] .cx-bar .cx-btn { background: var(--cx-green); }

/* header key: the mint, replaces the Weirdlist "Open" key */
.v3-header .menu > .cx-key { display: inline-flex; align-items: center; gap: 8px; align-self: center; padding: 9px 12px; margin: 0 6px 0 4px; background: #ffe900; color: #0c0d0f; font: 700 16px/1 'Pixelify Sans', monospace; text-decoration: none; white-space: nowrap; box-shadow: 0 0 0 2px #0c0d0f, 0 0 0 4px #ffe900, 4px 4px 0 4px #008cff; }
.v3-header .menu > .cx-key:hover { transform: translate(2px, 2px); background: #fff; }
.cx-key .cx-kdot { width: 8px; height: 8px; background: #0c0d0f; flex: none; }
.v3-header .menu > .cx-key[data-live] { background: #64ff00; box-shadow: 0 0 0 2px #0c0d0f, 0 0 0 4px #64ff00, 4px 4px 0 4px #008cff; }
.cx-key[data-live] .cx-kdot { animation: cxBlink 1s steps(2) infinite; }
@media (max-width: 760px) { .v3-header .menu > .cx-key { order: -1; flex: 1 1 100%; justify-content: center; margin: 4px 4px 6px; } }

/* ---------- narrower: the door on top, everything else under it ---------- */
@media (max-width: 1100px) {
  #cx .cx-hero { --W: min(760px, 100vw); padding-top: 20px; }
  #cx .cx-stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; min-height: 0; margin-top: 0; padding-bottom: 22px; }
  #cx .cx-scene { position: relative; left: auto; bottom: auto; transform: none; grid-column: 1 / -1; justify-self: center; width: var(--W); }
  #cx .cx-panel { width: auto; margin-top: 0; justify-self: stretch; }
  #cx .cx-sign { font-size: 10px; }
  #cx .cx-gates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #cx .cx-track { display: none; }
  #cx .cx-steps { grid-template-columns: minmax(0, 1fr); }
  #cx .cx-bar:not([hidden]) { display: flex; }
}
@media (max-width: 700px) {
  #cx .cx-wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  #cx .cx-hero { --W: 128vw; }
  #cx h1 { font-size: clamp(40px, 12.6vw, 72px); }
  #cx .cx-eyebrow { font-size: 10px; letter-spacing: .1em; }
  #cx .cx-lead { font-size: 15px; margin-top: 10px; }
  #cx .cx-stage { grid-template-columns: minmax(0, 1fr); }
  #cx .cx-scene { margin: 14px calc(50% - 64vw) 0; }
  #cx .cx-status { margin-top: -8px; }
  #cx .cx-cd b { font-size: clamp(34px, 11vw, 48px); }
  #cx .cx-official { margin: 0 -16px; padding: 12px 16px; justify-content: flex-start; font-size: 13px; }
  #cx .cx-sec { padding-block: 44px; }
  #cx .cx-gates { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  #cx .cx-step-c { padding-right: 18px; padding-bottom: 110px; }
  #cx .cx-step-c img { width: 100px; right: auto; left: 70px; }
  #cx .cx-railnav { display: none; }
  #cx .cx-rail { grid-auto-columns: 78%; }
}
@media (prefers-reduced-motion: reduce) { #cx *, #cx *::before, #cx *::after, .cx-key * { animation: none !important; transition: none !important; } }
#cx :focus-visible { outline: 2px solid var(--cx-yellow); outline-offset: 2px; }

/* ---------- boarding pass, "Night" (02/12): the Weirdlist ticket look. Dark card, rainbow pixel frame, real stamp, a Codex Pet on the stub ---------- */
#cx .cx-pass { color: #f6f7f5; padding: 6px; filter: none; background: linear-gradient(90deg, #ff453a 0 16.66%, #ff9f0a 0 33.33%, #ffe900 0 50%, #64ff00 0 66.66%, #00eadb 0 83.33%, #2f7dff 0); box-shadow: -10px 0 26px -10px #ff453a, 10px 0 26px -10px #2f7dff, 0 -10px 26px -12px #ffe900, 0 10px 26px -12px #64ff00; }
#cx .cx-pass-main, #cx .cx-pass-stub { background: #12151a; -webkit-mask: none; mask: none; }
#cx .cx-pass-stub { border-left: 3px dashed #3a4048; align-items: stretch; }
#cx .cx-pass-k { color: #ffe900; border-bottom: 0; background: linear-gradient(90deg, #ff453a 0 16.66%, #ff9f0a 0 33.33%, #ffe900 0 50%, #64ff00 0 66.66%, #00eadb 0 83.33%, #2f7dff 0) 0 100% / 100% 3px no-repeat; }
#cx .cx-pass-k span:last-child, #cx .cx-pass-route span { color: #a1a6ad; }
#cx .cx-pass-route b, #cx .cx-pass-f dd, #cx .cx-pass-who input { color: #f6f7f5; }
#cx .cx-pass-route i { background: repeating-linear-gradient(90deg, #ff453a 0 8px, transparent 8px 14px, #ff9f0a 14px 22px, transparent 22px 28px, #ffe900 28px 36px, transparent 36px 42px, #64ff00 42px 50px, transparent 50px 56px, #00eadb 56px 64px, transparent 64px 70px, #2f7dff 70px 78px, transparent 78px 84px); }
#cx .cx-pass-route i::after { background: #f6f7f5; }
#cx .cx-pass-f dt, #cx .cx-pass-f label { color: #ffe900; }
#cx .cx-pass-who dd { border-bottom-color: #53585f; }
#cx .cx-pass-who input::placeholder { color: #626871; }
#cx .cx-pass-stamp { display: inline-block; margin-top: 4px !important; padding: 4px 9px 3px; font: 700 14px/1.1 var(--cx-label) !important; letter-spacing: .06em; text-transform: uppercase; color: var(--ink, #ffe900) !important; border: 3px double var(--ink, #ffe900); transform: rotate(-5deg); transform-origin: 0 50%; }
#cx .cx-pass-bar { background: repeating-linear-gradient(90deg, #f6f7f5 0 3px, transparent 3px 5px, #f6f7f5 5px 6px, transparent 6px 10px, #f6f7f5 10px 14px, transparent 14px 16px, #f6f7f5 16px 17px, transparent 17px 21px); height: 40px; }
#cx .cx-pass-seat { color: #a1a6ad; text-align: center; }
#cx .cx-pass-pet { position: relative; align-self: center; width: 112px; height: 112px; border-radius: 50%; background: conic-gradient(#ff453a, #ff9f0a, #ffe900, #64ff00, #00eadb, #2f7dff, #ff453a); display: grid; place-items: center; }
#cx .cx-pass-pet::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: #12151a; }
#cx .cx-pass-pet i { position: relative; width: 96px; height: 104px; margin-top: -8px; background-repeat: no-repeat; background-position: 0 0; image-rendering: pixelated; }
#cx .cx-pass-stub .cx-btn { background: var(--cx-yellow); color: #0c0d0f; }
#cx .cx-pass-stub .cx-btn.ghost { background: transparent; color: #f6f7f5; box-shadow: inset 0 0 0 2px #53585f; }
#cx .cx-pass-stub .cx-btn:hover { background: #fff; color: #0c0d0f; }
@media (max-width: 700px) {
  #cx .cx-pass { padding: 5px; filter: none; }
  #cx .cx-pass-main, #cx .cx-pass-stub { -webkit-mask: none; mask: none; }
  #cx .cx-pass-stub { border-left: 0; border-top: 3px dashed #3a4048; }
}
