
:root { --g-bg: #ECEAE4; --g-ink: #1B1A17; --g-ink-2: #5E5A52; --g-line: #D3CFC6; --g-card: #F7F5F0; }
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--g-bg); color: var(--g-ink); font-family: "Figtree", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
.gallery-head { max-width: 1720px; margin: 0 auto; padding: 40px 24px 8px; }
.gallery-head h1 { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 6px; }
.gallery-head h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 6px; }
.gallery-head p { margin: 0; color: var(--g-ink-2); max-width: 78ch; line-height: 1.5; }
.gallery-head.sub { padding-top: 56px; border-top: 1px solid var(--g-line); margin-top: 24px; }
.gallery { max-width: 1720px; margin: 0 auto; padding: 24px; display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(390px, 1fr)); justify-items: center; }
.option { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 16px; }
.meta { background: var(--g-card); border: 1px solid var(--g-line); border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; min-height: 232px; }
.meta.short { min-height: 168px; }
.meta .kicker { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--g-ink-2); }
.meta h2 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -0.01em; }
.meta p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--g-ink-2); }
.meta p strong { color: var(--g-ink); font-weight: 600; }
.chips { display: flex; gap: 6px; }
.chips span { width: 26px; height: 26px; border-radius: 6px; border: 1px solid rgba(0,0,0,0.12); }
.phone { width: 390px; height: 844px; border-radius: 44px; background: #0B0B0C; padding: 11px; box-shadow: 0 30px 60px -20px rgba(20,18,12,0.45), 0 8px 18px -8px rgba(20,18,12,0.3); flex: none; }
.screen { width: 100%; height: 100%; border-radius: 34px; overflow: hidden; position: relative; display: flex; flex-direction: column; }
.screen-head { flex: none; }
.screen-scroll { flex: 1 1 auto; min-height: 0; overflow-x: hidden; overflow-y: auto; scrollbar-width: none; }
.screen-scroll::-webkit-scrollbar { display: none; }
.screen.coll-open .screen-scroll { overflow: hidden; }
.foot { max-width: 1720px; margin: 0 auto; padding: 8px 24px 48px; color: var(--g-ink-2); font-size: 13px; line-height: 1.5; }
svg.i { width: 1em; height: 1em; display: inline-block; vertical-align: -0.15em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
svg.mark { width: 1em; height: 1em; display: inline-block; vertical-align: -0.15em; fill: currentColor; flex: none; }
.claim .mark, .actions button .mark, .btn.claim .mark, .running-head .mark, .top .mark { margin-right: 6px; }
.tag .band.foot { display: flex; align-items: center; justify-content: center; }
.tag .band.foot .mark { font-size: 16px; }

/* version stamp: deliberately quiet — readable on inspection, invisible in a glance at the work */
.verstamp { position: fixed; top: 10px; right: 12px; z-index: 999; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 10.5px; line-height: 1; letter-spacing: 0.02em; color: rgba(27,26,23,0.40); background: rgba(247,245,240,0.74); border: 1px solid rgba(27,26,23,0.10); border-radius: 999px; padding: 5px 10px; pointer-events: none; -webkit-user-select: none; user-select: none; }

/* ================= A — LEXICON (Oxford-blue book cloth, gilt) ================= */
.lex {
  --bg: #23418F; --bg-deep: #1B3478; --cream: #F3ECD9; --cream-2: #C7C0AC; --rule: rgba(243,236,217,0.42); --gilt: #D9A84A; --ink: #16295C;
  background: var(--bg); color: var(--cream);
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 3px), repeating-linear-gradient(-45deg, rgba(0,0,0,0.05) 0 1px, transparent 1px 3px);
  font-family: "Bricolage Grotesque", sans-serif; font-variation-settings: "opsz" 14; padding: 0 0 40px; min-height: 100%; caret-color: var(--gilt);
}
.lex ::selection { background: var(--gilt); color: var(--ink); }
.lex .running-head { display: flex; justify-content: space-between; align-items: baseline; margin: 0 22px; padding: 54px 0 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; border-bottom: 1.5px solid var(--cream); }
.lex .running-head .guide { font-weight: 500; color: var(--cream-2); font-variant-numeric: tabular-nums; }
.lex .running-head .brand { font-weight: 800; letter-spacing: 0.08em; color: var(--gilt); }
.lex .body { padding: 18px 58px 0 22px; }
.lex .screen-scroll { padding: 0 58px 40px 22px; }
.lex .headword { display: flex; align-items: baseline; gap: 12px; margin-top: 6px; }
.lex .headword b { font-size: 92px; line-height: 0.86; font-weight: 800; letter-spacing: -0.045em; font-variation-settings: "opsz" 96; }
.lex .headword .pron { font-size: 14px; color: var(--cream-2); font-weight: 500; }
.lex .pos { margin: 12px 0 0; font-size: 14px; font-style: italic; color: var(--cream-2); }
.lex ol.senses { margin: 10px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.lex ol.senses li { display: grid; grid-template-columns: 18px 1fr; gap: 6px; font-size: 15.5px; line-height: 1.38; }
.lex ol.senses li > span:first-child { font-weight: 800; color: var(--gilt); }
.lex ol.senses strong { font-weight: 800; }
.lex ol.senses .ex { display: block; margin-top: 3px; font-weight: 700; letter-spacing: 0.01em; color: var(--gilt); }
.lex .entry { margin-top: 22px; border-top: 1.5px solid var(--cream); padding-top: 14px; }
.lex .entry label { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cream-2); margin-bottom: 8px; }
.lex .compose { display: flex; align-items: baseline; gap: 4px; }
.lex .compose .pre { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; font-variation-settings: "opsz" 40; }
.lex .compose input { flex: 1; min-width: 0; background: transparent; border: 0; border-bottom: 2px solid var(--cream); font: inherit; font-size: 40px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; text-transform: uppercase; color: var(--cream); padding: 0 0 2px; outline: none; font-variation-settings: "opsz" 40; }
.lex .compose input::placeholder { color: var(--cream-2); font-weight: 400; text-transform: none; letter-spacing: -0.02em; }
.lex .compose input:focus { border-bottom-color: var(--gilt); box-shadow: 0 2px 0 var(--gilt); }
.lex .claim { margin-top: 16px; width: 100%; background: var(--gilt); color: var(--ink); border: 0; border-radius: 4px; font: inherit; font-size: 16px; font-weight: 800; padding: 15px 16px; text-align: left; display: flex; justify-content: space-between; align-items: center; cursor: pointer; transition: transform .18s cubic-bezier(.2,.8,.2,1); }
.lex .claim:hover { transform: translateY(-1px); }
.lex .claim:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }
.lex .xref { margin-top: 18px; display: flex; flex-direction: column; }
.lex .xref button { background: none; border: 0; border-top: 1px solid var(--rule); padding: 12px 0; text-align: left; font: inherit; font-size: 15px; display: flex; gap: 10px; align-items: baseline; color: var(--cream); cursor: pointer; }
.lex .xref button:last-child { border-bottom: 1px solid var(--rule); }
.lex .xref button:hover .xr { text-decoration: underline; text-underline-offset: 3px; }
.lex .xref .arrow { font-weight: 800; color: var(--gilt); }
.lex .xref .xr { font-weight: 700; }
.lex .xref .sug { margin-left: auto; font-weight: 700; color: var(--gilt); white-space: nowrap; }
.lex .xref button:focus-visible { outline: 2px solid var(--gilt); outline-offset: -2px; }
.lex h3 { margin: 30px 0 4px; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cream-2); border-bottom: 1.5px solid var(--cream); padding-bottom: 6px; display: flex; justify-content: space-between; }
.lex h3 span { font-weight: 500; letter-spacing: 0.02em; text-transform: none; }
.lex .votes { font-size: 12.5px; color: var(--cream-2); display: flex; gap: 12px; font-variant-numeric: tabular-nums; }
.lex .votes span { display: inline-flex; gap: 4px; align-items: center; }
.lex .n { font-size: 13px; font-weight: 600; color: var(--cream-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
/* V1 list */
.lex .cites { margin: 0; padding: 0; list-style: none; }
.lex .cites li { padding: 10px 0; border-bottom: 1px solid var(--rule); }
.lex .cites .hw { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.lex .cites .hw b { font-size: 19px; font-weight: 800; letter-spacing: -0.01em; }
.lex .cites .hw b.cred { display: inline-block; background: var(--gilt); color: var(--ink); padding: 2px 6px 1px; border-radius: 3px; font-size: 15px; letter-spacing: 0.06em; }
.lex .cites .votes { margin-top: 3px; }
/* V2 grid */
.lex .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.lex .grid2 .tile { border: 1px solid var(--rule); border-radius: 4px; padding: 10px 10px 9px; display: flex; flex-direction: column; gap: 4px; }
.lex .grid2 .tile.wide { grid-column: 1 / -1; }
.lex .grid2 .tile b { font-size: 16px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.1; }
.lex .grid2 .tile b.cred { color: var(--gilt); }
.lex .grid2 .votes { gap: 8px; font-size: 11.5px; }
.lex .grid2 .tile.reprint { animation: reprint .5s cubic-bezier(.2,.8,.2,1); }
@keyframes reprint { 0% { opacity: 0; filter: blur(3px); transform: translateY(4px); } 100% { opacity: 1; filter: blur(0); transform: none; } }
/* V3 cloud */
.lex .cloud { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-top: 12px; }
.lex .cloud b { font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; }
.lex .cloud b small { font-size: 11px; font-weight: 600; color: var(--gilt); margin-left: 3px; letter-spacing: 0; vertical-align: super; font-variant-numeric: tabular-nums; }
/* V4 horizontal row */
.lex .hrow { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 10px -58px 0 -22px; padding: 4px 58px 12px 22px; scrollbar-width: none; }
.lex .hrow::-webkit-scrollbar { display: none; }
.lex .hrow .card { flex: none; width: 196px; scroll-snap-align: start; border: 1px solid var(--rule); border-radius: 4px; padding: 14px 12px 12px; display: flex; flex-direction: column; gap: 6px; min-height: 124px; justify-content: space-between; }
.lex .hrow .card:first-child { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.lex .hrow .card:first-child .n, .lex .hrow .card:first-child .votes { color: #4A5A85; }
.lex .hrow .card b { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.lex .hrow .card .votes { gap: 8px; font-size: 11.5px; }
.lex .swipe { font-size: 11.5px; color: var(--cream-2); margin-top: 2px; }
/* V5 big cards */
.lex .bigs { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.lex .bigs .big { border: 1.5px solid var(--cream); border-radius: 4px; padding: 16px 14px 14px; display: flex; flex-direction: column; gap: 6px; }
.lex .bigs .big b { font-size: 34px; font-weight: 800; letter-spacing: -0.035em; line-height: 0.95; font-variation-settings: "opsz" 40; }
.lex .bigs .big .n { font-size: 14px; color: var(--gilt); }
.lex .bigs .big .votes { gap: 12px; }
/* V6 run-in */
.lex .runin { margin: 12px 0 0; font-size: 15.5px; line-height: 1.75; }
.lex .runin b { font-weight: 800; letter-spacing: -0.01em; white-space: nowrap; }
.lex .runin small { font-size: 11px; font-weight: 600; color: var(--gilt); margin: 0 2px 0 3px; font-variant-numeric: tabular-nums; }
.lex .runin .sep { color: var(--cream-2); }
.variants .lex { padding-bottom: 300px; }
/* thumb index */
.lex .thumbs { position: absolute; right: 0; top: 112px; display: flex; flex-direction: column; gap: 3px; }
.lex .thumbs button { writing-mode: vertical-rl; transform: rotate(180deg); background: var(--bg-deep); color: var(--cream); border: 0; border-left: 1.5px solid var(--cream); font: inherit; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 12px 8px; width: 30px; cursor: pointer; border-radius: 0 3px 3px 0; }
.lex .thumbs button[aria-current="true"] { background: var(--gilt); color: var(--ink); border-left-color: var(--gilt); }
.lex .thumbs button:focus-visible { outline: 2px solid var(--gilt); outline-offset: -3px; }

/* ================= B — DEPARTURES (Solari split-flap board) ================= */
.brd {
  --steel: #3B3E44; --steel-2: #24262A; --board: #0E0F11; --flap: #23252A; --flap-lo: #16181B; --seam: #08090A; --cream: #EDE7D8; --amber: #F5B324; --red: #E0523A; --lbl: #9A9585;
  --flapbg: linear-gradient(180deg, var(--flap) 0 49%, var(--seam) 49% 51%, var(--flap-lo) 51% 100%);
  min-height: 100%; background: linear-gradient(180deg, var(--steel) 0, var(--steel-2) 100%); padding: 14px 12px; font-family: "Barlow Condensed", sans-serif; color: var(--cream);
}
.brd ::selection { background: var(--amber); color: var(--board); }
.brd .board { border-radius: 6px 6px 0 0; padding: 50px 14px 16px; background: var(--board); box-shadow: inset 0 0 0 1px #000, inset 0 10px 24px rgba(0,0,0,0.7); position: relative; }
.brd .screen-scroll { background: var(--board); padding: 6px 14px 24px; border-radius: 0 0 6px 6px; box-shadow: inset 0 0 0 1px #000; }
.brd .top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--amber); font-weight: 600; margin-bottom: 24px; font-variant-numeric: tabular-nums; }
.brd .top .wm { color: var(--cream); }
.brd .row { display: flex; gap: 3px; flex-wrap: wrap; margin-bottom: 12px; }
.brd .row.center { justify-content: center; }
.brd .row.nowrap { flex-wrap: nowrap; overflow: hidden; }
.brd .row.nowrap.clip { justify-content: flex-start; }
.brd .clip { mask-image: linear-gradient(90deg, #000 86%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 86%, transparent); }
.brd .br { flex-basis: 100%; height: 0; }
.brd .t {
  font-weight: 600; font-size: 34px; line-height: 1; width: 24px; height: 40px; display: grid; place-items: center; color: var(--cream); position: relative; border-radius: 2px;
  background: var(--flapbg); box-shadow: 0 1px 0 #000, inset 0 1px 0 rgba(255,255,255,0.06);
  text-transform: uppercase; transform-origin: 50% 50%; flex: none;
}
.brd .t.flip { animation: flip .38s cubic-bezier(.2,.8,.2,1); }
@keyframes flip { 0% { transform: rotateX(-90deg); } 60% { transform: rotateX(12deg); } 100% { transform: rotateX(0); } }
.brd .t.sp { background: none; box-shadow: none; }
.brd .t.amber { color: var(--amber); }
.brd .t.sm { font-size: 20px; width: 15px; height: 26px; }
.brd .slot { width: 24px; height: 40px; border-radius: 2px; background: var(--flapbg); box-shadow: 0 1px 0 #000; position: relative; flex: none; }
.brd .slot.caret::after { content: ""; position: absolute; left: 4px; right: 4px; bottom: 5px; height: 2px; background: var(--amber); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.brd .t.xl { width: 27px; height: 46px; font-size: 38px; }
.brd .row.hero { margin-bottom: 10px; }
.brd .hint.plain { text-transform: none; letter-spacing: 0.02em; font-size: 13px; font-weight: 500; }
.brd .cap { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--amber); font-weight: 600; margin: 22px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--rule, #2A2C31); }
.brd .try.main { margin: 0 0 16px; justify-content: center; }
.brd .try button svg.i { margin-right: 4px; vertical-align: -0.1em; }
.brd .flipb { width: 100%; display: flex; align-items: center; gap: 14px; margin: 4px 0 6px; padding: 9px 16px 10px; min-height: 60px; border: 0; border-radius: 3px; cursor: pointer; background: var(--flapbg); color: var(--cream); box-shadow: 0 1px 0 #000, inset 0 1px 0 rgba(255,255,255,0.06); font-family: inherit; font-weight: 600; font-size: 24px; letter-spacing: 0.12em; text-transform: uppercase; text-align: left; transition: filter .15s; }
.brd .flipb:hover { filter: brightness(1.12); }
.brd .flipb:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.brd .flipb svg.i { color: var(--amber); font-size: 22px; flex: none; }
.brd .flipb .txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.brd .flipb .lbl { line-height: 1; white-space: nowrap; }
.brd .flipb .next { font-size: 12px; letter-spacing: 0.08em; color: var(--amber); font-weight: 600; white-space: nowrap; line-height: 1; }
.brd .flipb .next b { font-weight: 600; color: var(--cream); }
/* Destinations rows and Name Tag tiles now clickable: role=button, tabindex=0, keyboard + mouse */
.brd .line[role="button"], .tag .mini[role="button"], .lex .tile[role="button"] { cursor: pointer; user-select: none; }
.brd .line[role="button"]:focus-visible, .tag .mini[role="button"]:focus-visible, .lex .tile[role="button"]:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; border-radius: 3px; }
.brd .mod-note { display: flex; align-items: center; justify-content: space-between; gap: 10px; max-height: 0; opacity: 0; overflow: hidden; margin: 0; padding: 0 14px; border-radius: 3px; background: var(--amber); color: var(--board); font-family: "Figtree", system-ui, sans-serif; font-size: 12.5px; font-weight: 600; line-height: 1.4; letter-spacing: 0; text-transform: none; transition: max-height .3s ease, opacity .25s ease, margin .3s ease, padding .3s ease; }
.brd .mod-note.show { max-height: 140px; opacity: 1; margin: 0 0 10px; padding: 10px 14px; }
.brd .mod-note-text { flex: 1; }
.brd .mod-note-close { flex: none; background: none; border: 0; color: inherit; font-size: 17px; line-height: 1; cursor: pointer; padding: 2px 5px; font-family: inherit; }
.brd .mod-note-close:focus-visible { outline: 2px solid var(--board); outline-offset: 1px; }
/* v4u — review requests (grey zone, masks and reviewable blocks). Beta: nothing leaves the device. */
/* `all: unset` first: each skin styles bare <button>s (Name tag's are black pills), and this must read as a link everywhere */
.screen .rev-note button.review-ask, .screen .mod-note button.review-ask { all: unset; box-sizing: border-box; display: inline; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; text-align: left; }
.screen .rev-note button.review-ask:focus-visible, .screen .mod-note button.review-ask:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.screen.brd .mod-note button.review-ask, .brd .mod-note .review-thanks { display: block; margin-top: 4px; font-weight: 500; }
.rev-note { margin-top: 10px; font-family: "Figtree", system-ui, sans-serif; font-size: 12.5px; line-height: 1.45; letter-spacing: 0; text-transform: none; }
.rev-note[hidden] { display: none; }
.screen .rev-note button.review-ask, .rev-note .review-thanks { display: block; margin-top: 3px; }
/* solid panel: one board-styled word instead of per-letter flaps (hybrid rule) */
.brd .panel { display: inline-flex; align-items: center; height: 40px; padding: 0 12px; border-radius: 2px; background: var(--flapbg); box-shadow: 0 1px 0 #000, inset 0 1px 0 rgba(255,255,255,0.06); font-weight: 600; font-size: 24px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cream); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.brd .panel .pre { color: var(--amber); }
.brd .panel.sm { height: 26px; padding: 0 8px; font-size: 15px; letter-spacing: 0.08em; }
.brd .panel .pcaret { display: inline-block; width: 10px; height: 2px; background: var(--amber); margin-left: 6px; align-self: flex-end; margin-bottom: 6px; animation: blink 1.1s steps(1) infinite; }
.brd .compose { position: relative; margin: 4px 0 20px; }
.brd .compose input { position: absolute; top: 0; right: 0; bottom: 0; left: 0; opacity: 0; width: 100%; font-size: 40px; text-transform: uppercase; }
.brd .compose .hint { text-align: center; color: var(--lbl); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; margin-top: 10px; }
.brd .compose:focus-within .hint { color: var(--amber); }
.brd .try { display: flex; gap: 6px; justify-content: center; margin: -6px 0 14px; flex-wrap: wrap; }
.brd .try button { background: none; border: 1px solid var(--pill, #3A3D44); color: var(--lbl); font: inherit; font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; padding: 5px 8px; border-radius: 2px; cursor: pointer; }
.brd .try button:hover, .brd .try button[aria-pressed="true"] { border-color: var(--amber); color: var(--amber); }
.brd .btn { width: 100%; border: 0; background: none; padding: 0; cursor: pointer; margin-bottom: 10px; display: flex; justify-content: center; gap: 2px; }
.brd [data-sugtiles] { display: contents; }
.brd .btn:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; border-radius: 3px; }
.brd .btn.claim .t { background: var(--amber); color: var(--board); width: auto; max-width: 100%; padding: 8px 16px; min-height: 44px; height: auto; border-radius: 3px; box-shadow: 0 2px 0 #7A5410, 0 6px 12px rgba(0,0,0,0.6); font-size: 28px; letter-spacing: 0.06em; line-height: 1; text-align: center; white-space: nowrap; }
.brd .btn.claim .t.wide { width: 100%; }
.brd .btn.claim .t.long { font-size: 19px; letter-spacing: 0.05em; line-height: 1.1; white-space: normal; word-break: break-word; }
/* v4x — threshold glyph on the Mechanical Flip claim button, as a mask so it survives the JS textContent resets on .t[data-claim] */
.brd.mech .btn.claim .t { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.brd.mech .btn.claim .t::before { content: ""; width: 0.85em; height: 0.72em; flex: none; background: currentColor; -webkit-mask: url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2034%2030%27%3E%3Crect%20x%3D%274%27%20y%3D%273%27%20width%3D%2719%27%20height%3D%276%27/%3E%3Crect%20x%3D%274%27%20y%3D%273%27%20width%3D%276%27%20height%3D%2724%27/%3E%3Crect%20x%3D%2717%27%20y%3D%273%27%20width%3D%276%27%20height%3D%2724%27/%3E%3Cg%20transform%3D%27rotate%28-10%2023%2015%29%27%3E%3Crect%20x%3D%2723%27%20y%3D%2712%27%20width%3D%278%27%20height%3D%276%27/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain; mask: url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2034%2030%27%3E%3Crect%20x%3D%274%27%20y%3D%273%27%20width%3D%2719%27%20height%3D%276%27/%3E%3Crect%20x%3D%274%27%20y%3D%273%27%20width%3D%276%27%20height%3D%2724%27/%3E%3Crect%20x%3D%2717%27%20y%3D%273%27%20width%3D%276%27%20height%3D%2724%27/%3E%3Cg%20transform%3D%27rotate%28-10%2023%2015%29%27%3E%3Crect%20x%3D%2723%27%20y%3D%2712%27%20width%3D%278%27%20height%3D%276%27/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain; }
/* The claim moment: a brightness+scale pop that reads the same regardless of each board's own
   claim-button palette (or the plain buttons on Lexicon/Name Tag), so it needs no per-variant
   color override across eight Departures themes plus the other two screens. */
.claim.pop, .btn.claim.pop { animation: claimPop .45s cubic-bezier(.2,.8,.2,1); }
@keyframes claimPop { 0% { transform: scale(1); filter: brightness(1); } 40% { transform: scale(1.07); filter: brightness(1.3); } 100% { transform: scale(1); filter: brightness(1); } }
@media (prefers-reduced-motion: reduce) { .claim.pop, .btn.claim.pop { animation: none; } }
.brd .btn:hover .t { filter: brightness(1.08); }
.brd .head { display: grid; grid-template-columns: 1fr auto; gap: 8px; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--amber); font-weight: 600; margin: 26px 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--rule, #2A2C31); }
.brd .dep { display: flex; flex-direction: column; gap: 6px; }
.brd .line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 8px; align-items: center; padding: 6px 0 7px; border-bottom: 1px solid var(--rule2, #1B1D21); }
.brd .line .word { display: flex; gap: 2px; min-width: 0; flex-wrap: wrap; align-items: center; }
.brd .line .word.nowrap { flex-wrap: nowrap; overflow: hidden; }
.brd .line .cnt { display: flex; gap: 2px; justify-content: flex-end; }
.brd .line .sub { grid-column: 1 / -1; display: flex; justify-content: space-between; font-size: 12px; letter-spacing: 0.06em; color: var(--lbl); font-variant-numeric: tabular-nums; }
.brd .line .votes { display: flex; gap: 10px; }
.brd .line .votes span { display: inline-flex; gap: 3px; align-items: center; }
/* trending column: value intentionally empty for now; the state hooks below wait for a real rule */
.brd .line .status { font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; min-width: 3ch; text-align: right; }
.brd .line .status:empty::before { content: "—"; color: #4A4D55; }
.brd .line .status.up { color: var(--amber); }
.brd .line .status.steady { color: var(--cream); }
.brd .line .status.down { color: var(--red); }

/* ---- pre- etymology captions, shared by every board theme ---- */
.brd .sign { margin: -10px 0 18px; padding: 8px 10px; border: 1px solid var(--rule, #2A2C31); border-radius: 2px; font-size: 12.5px; line-height: 1.35; letter-spacing: 0.02em; color: var(--lbl); text-align: center; }
.brd .sign b { color: var(--cream); font-weight: 600; letter-spacing: 0.04em; } .brd .sign i { color: var(--amber); font-style: italic; }
.brd .etym { margin: -8px 0 20px; padding: 12px 14px 12px; border: 1px solid var(--rule, #2A2C31); border-radius: 3px; background: var(--placard, transparent); color: var(--placard-ink, var(--cream)); }
.brd .etym .hw { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.brd .etym .hw b { font-size: 34px; line-height: 0.9; font-weight: 700; letter-spacing: -0.01em; }
.brd .etym .hw span { font-size: 12px; letter-spacing: 0.04em; color: var(--placard-muted, var(--lbl)); }
.brd .etym ol { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.brd .etym li { display: grid; grid-template-columns: 14px 1fr; gap: 6px; font-size: 13px; line-height: 1.35; letter-spacing: 0.01em; }
.brd .etym li > span:first-child { color: var(--amber); font-weight: 700; }
.brd .etym strong { font-weight: 700; }

/* ---- Union Terminal, 1958: cream enamel fascia, black lacquer board, brass trim, incandescent glow ---- */
.brd.rail {
  --steel: #F1E9D6; --steel-2: #E6DBC2; --board: #121110; --flap: #262320; --flap-lo: #171512; --seam: #060504; --cream: #FFF1D6; --amber: #D6B06A; --lbl: #B9A77F; --rule: #4A3F2A; --rule2: #2A2419; --pill: #6B5A38;
  --placard: #F1E9D6; --placard-ink: #3A2E17; --placard-muted: #7A6A48;
  font-family: "Jost", sans-serif; padding: 26px 18px; background: radial-gradient(ellipse at 50% 0%, #FBF6EA 0, var(--steel) 45%, var(--steel-2) 100%);
}
.brd.rail .board { border-radius: 10px; border: 2px solid #B08D4A; box-shadow: inset 0 0 0 1px #5E4A22, 0 0 0 5px #EFE5CF, 0 0 0 6px #C9AD70, 0 14px 30px -12px rgba(60,40,10,0.45); padding-top: 44px; min-height: calc(844px - 52px); }
.brd.rail .board::before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; border-radius: 10px; pointer-events: none; background: radial-gradient(ellipse at 50% -5%, rgba(255,196,120,0.22), transparent 55%); }
.brd.rail .top { color: #3A2E17; background: linear-gradient(180deg, #E2C784 0, #B08D4A 100%); margin: -44px -14px 22px; padding: 12px 16px 10px; border-radius: 8px 8px 0 0; font-family: "Jost", sans-serif; font-weight: 600; letter-spacing: 0.22em; font-size: 12px; box-shadow: inset 0 -1px 0 #6B5327; }
.brd.rail .top .wm { color: #2A2010; font-size: 15px; letter-spacing: 0.28em; }
.brd.rail .t, .brd.rail .panel { font-family: "Rubik", sans-serif; font-weight: 600; text-shadow: 0 0 8px rgba(255,200,120,0.35); border-radius: 3px; }
.brd.rail .t.xl { font-size: 30px; }
.brd.rail .hint, .brd.rail .cap, .brd.rail .head, .brd.rail .try button, .brd.rail .flipb, .brd.rail .line .sub { font-family: "Jost", sans-serif; }
.brd.rail .cap, .brd.rail .head { letter-spacing: 0.22em; }
.brd.rail .btn.claim .t { background: linear-gradient(180deg, #E2C784, #B08D4A); color: #2A2010; box-shadow: 0 2px 0 #6B5327, 0 6px 12px rgba(0,0,0,0.6); text-shadow: none; font-family: "Rubik", sans-serif; font-size: 24px; letter-spacing: 0.1em; }
.brd.rail .flipb { border: 1px solid #6B5A38; font-size: 20px; letter-spacing: 0.16em; }
.brd.rail .flipb svg.i, .brd.rail .flipb .next { color: var(--amber); }
.brd.rail .sign, .brd.rail .etym { background: #F1E9D6; color: #3A2E17; border: 1px solid #B08D4A; box-shadow: inset 0 0 0 2px #F1E9D6, inset 0 0 0 3px #C9AD70; }
.brd.rail .sign b, .brd.rail .etym .hw b { color: #2A2010; } .brd.rail .sign i { color: #8A6A2A; } .brd.rail .sign { color: #5A4A2A; }
.brd.rail .etym li > span:first-child { color: #8A6A2A; }

/* ---- Bus terminal, 1974: matte black, scuffed aluminium, yellowed lettering, grime ---- */
.brd.bus {
  --steel: #7A7C7E; --steel-2: #55575A; --board: #121212; --flap: #1F1F1F; --flap-lo: #171717; --seam: #050505; --cream: #FFF0C2; --amber: #F5B940; --lbl: #B3A98C; --rule: #2E2C26; --rule2: #202020; --pill: #4A4740;
  font-family: "Archivo Narrow", sans-serif; padding: 10px 8px;
  background: linear-gradient(180deg, #8A8C8E 0, #5E6063 40%, #4A4C4F 100%);
}
.brd.bus .board { border-radius: 3px; border: 1px solid #3A3A3A; box-shadow: inset 0 0 0 1px #000, inset 0 14px 30px rgba(0,0,0,0.8); min-height: calc(844px - 20px);
  background:
    radial-gradient(ellipse at 15% 90%, rgba(120,100,60,0.18), transparent 40%),
    radial-gradient(ellipse at 85% 20%, rgba(255,255,255,0.03), transparent 35%),
    repeating-linear-gradient(115deg, rgba(255,255,255,0.028) 0 1px, transparent 1px 41px),
    repeating-linear-gradient(-70deg, rgba(255,255,255,0.02) 0 1px, transparent 1px 67px),
    var(--board); }
.brd.bus .board::before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; pointer-events: none; opacity: .55; mix-blend-mode: screen; background-image: radial-gradient(rgba(255,255,255,0.06) 0.6px, transparent 0.8px); background-size: 7px 7px; }
.brd.bus .top { color: var(--cream); letter-spacing: 0.2em; }
.brd.bus .top .wm { color: var(--amber); }
.brd.bus .t, .brd.bus .panel { font-family: "Pathway Gothic One", sans-serif; font-weight: 400; border-radius: 1px; box-shadow: 0 1px 0 #000; }
.brd.bus .t.xl { font-size: 42px; }
.brd.bus .t:nth-child(7n+3) { color: #EEDDA8; }               /* faded flaps (v4o: fading eased for beta) */
.brd.bus .t:nth-child(11n+5) { color: #E2D09A; }
.brd.bus .t:nth-child(5n+2) { transform: rotate(0.7deg); }    /* a few sit crooked */
.brd.bus .t:nth-child(9n+6) { transform: rotate(-0.8deg) translateY(1px); }
.brd.bus .t.amber { color: var(--amber); }
.brd.bus .t { text-shadow: 0 0 9px rgba(255,214,130,0.32); }   /* v4o: faint lamp glow so the letters pop */
.brd.bus .btn.claim .t { text-shadow: none; }
.brd.bus .btn.claim .t { background: #F2C24A; color: #1A1A1A; box-shadow: 0 2px 0 #7A5F14, 0 6px 12px rgba(0,0,0,0.6); font-size: 30px; letter-spacing: 0.1em; transform: none; }
.brd.bus .flipb { border: 1px solid #3A3A3A; }
.brd.bus .sign { background: #F0EBDD; color: #111; border: 0; border-radius: 1px; font-family: "Archivo Narrow", sans-serif; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; font-size: 11.5px; transform: rotate(-0.9deg); box-shadow: 0 2px 5px rgba(0,0,0,0.5); padding: 7px 10px; }
.brd.bus .sign b { color: #111; } .brd.bus .sign i { color: #7A5F14; font-style: normal; }
.brd.bus .etym { background: #F0EBDD; color: #1A1A1A; border: 0; transform: rotate(-0.6deg); box-shadow: 0 3px 8px rgba(0,0,0,0.5); }
.brd.bus .etym .hw span, .brd.bus .etym li > span:first-child { color: #7A5F14; }
/* v4o — My PREDASH list: bus ticket stubs printed on the board's beige label stock, dark ink */
.brd.bus .coll { --pc-bg: #F0EBDD; --pc-ink: #1A1A1A; --pc-muted: #6B624E; --pc-acc: #8A5F0C; --pc-rule: rgba(26,26,26,0.38); }
.brd.bus .pcard { box-shadow: 0 3px 8px rgba(0,0,0,0.55); }
.brd.bus .pcard .pc-word { font-family: "Pathway Gothic One", sans-serif; font-weight: 400; font-size: 29px; letter-spacing: 0.04em; }
.brd.bus .pcard .pc-top, .brd.bus .pcard .pc-meta, .brd.bus .pcard .pc-move button { font-family: "Archivo Narrow", sans-serif; }
.brd.bus .pcard[data-list="retired"] { background-color: #DCD5C3; }
.brd.bus .pcard .pc-move button:hover { border-color: #1A1A1A; background: rgba(26,26,26,0.06); }

/* ---- Stazione Centrale, 1966: Solari original — blue-grey fascia, yellow header band, white grotesk on black ---- */
.brd.euro {
  --steel: #C8C6BF; --steel-2: #A9A7A0; --board: #141516; --flap: #1E1F21; --flap-lo: #101112; --seam: #050505; --cream: #F4F4F0; --amber: #F2C230; --lbl: #A7A9AE; --rule: #3A3D42; --rule2: #24262A; --pill: #4A4E55;
  --placard: #F4F4F0; --placard-ink: #1F3B5E; --placard-muted: #5B6B80;
  font-family: "Archivo", sans-serif; padding: 12px 10px; background: linear-gradient(180deg, #D7D5CE 0, var(--steel) 50%, var(--steel-2) 100%);
}
.brd.euro .board { border-radius: 4px; padding-top: 0; border: 6px solid #243447; box-shadow: inset 0 0 0 1px #0D1620, 0 0 0 1px #5C6E85, 0 10px 24px -10px rgba(0,0,0,0.5); overflow: hidden; min-height: calc(844px - 24px); }
.brd.euro .band { display: flex; justify-content: space-between; align-items: baseline; background: var(--amber); color: #111; margin: 0 -14px 0; padding: 12px 16px 9px; font-weight: 700; font-size: 17px; letter-spacing: 0.02em; }
.brd.euro .band span:last-child { font-style: italic; font-weight: 500; font-size: 13px; color: #3A3000; }
.brd.euro .top { margin: 12px 0 18px; color: var(--lbl); letter-spacing: 0.14em; font-weight: 600; }
.brd.euro .top .wm { color: var(--cream); }
.brd.euro .t, .brd.euro .panel { font-family: "Archivo", sans-serif; font-weight: 600; letter-spacing: 0; border-radius: 1.5px; }
.brd.euro .t.xl { font-size: 29px; }
.brd.euro .cap, .brd.euro .head { color: var(--cream); font-style: italic; font-weight: 500; letter-spacing: 0.08em; text-transform: none; font-size: 12px; }
.brd.euro .head span:last-child { color: var(--lbl); }
.brd.euro .btn.claim .t { background: var(--amber); color: #111; font-family: "Archivo", sans-serif; font-weight: 700; font-size: 22px; letter-spacing: 0.04em; box-shadow: 0 2px 0 #8A6E10, 0 6px 12px rgba(0,0,0,0.6); }
.brd.euro .flipb { font-family: "Archivo", sans-serif; font-weight: 700; font-size: 18px; letter-spacing: 0.06em; text-transform: none; border: 1px solid #3A3D42; }
.brd.euro .flipb .next { text-transform: none; letter-spacing: 0.02em; }
.brd.euro .try button { font-weight: 600; letter-spacing: 0.04em; text-transform: none; font-size: 12px; padding: 5px 7px; }
.brd.euro .try { gap: 5px; }
.brd.euro .etym { border: 0; border-left: 0; }
.brd.euro .etym .hw b { color: #1F3B5E; } .brd.euro .etym li > span:first-child { color: #1F3B5E; }
.brd.euro .sign { background: #F4F4F0; color: #1F3B5E; border: 0; text-align: left; }
.brd.euro .sign b { color: #1F3B5E; } .brd.euro .sign i { color: #5B6B80; }

/* ---- Terminal Deco, 1931: black lacquer, brass sunburst, stepped gilt frame, high-waist geometric type ---- */
.brd.deco {
  --steel: #0B0B0B; --steel-2: #050505; --board: #0E0D0B; --flap: #1E1B16; --flap-lo: #12100C; --seam: #030302; --cream: #F0DEA8; --amber: #D4AF37; --lbl: #9E8B5A; --rule: #4A3D1E; --rule2: #241E10; --pill: #6B5A2A;
  --placard: #0E0D0B; --placard-ink: #F0DEA8; --placard-muted: #9E8B5A;
  font-family: "Josefin Sans", sans-serif; padding: 22px 16px; background: radial-gradient(ellipse at 50% 30%, #1A1712 0, var(--steel) 60%, var(--steel-2) 100%);
}
.brd.deco .board { border-radius: 0; border: 1px solid var(--amber); box-shadow: 0 0 0 4px var(--board), 0 0 0 5px var(--amber), 0 0 0 10px var(--board), 0 0 0 11px rgba(212,175,55,0.45); min-height: calc(844px - 44px); padding: 80px 14px 40px; overflow: hidden; }
.brd.deco .orn { position: absolute; pointer-events: none; color: var(--amber); z-index: 1; }
.brd.deco .orn.crest { top: 10px; left: 50%; width: 240px; height: 60px; transform: translateX(-50%); }
.brd.deco .orn.tl, .brd.deco .orn.tr, .brd.deco .orn.bl, .brd.deco .orn.br { width: 44px; height: 44px; }
.brd.deco .orn.tl { top: 6px; left: 6px; } .brd.deco .orn.tr { top: 6px; right: 6px; transform: scaleX(-1); }
.brd.deco .orn.bl { bottom: 6px; left: 6px; transform: scaleY(-1); } .brd.deco .orn.br { bottom: 6px; right: 6px; transform: scale(-1); }
.brd.deco .top, .brd.deco .row, .brd.deco .compose, .brd.deco .cap, .brd.deco .try, .brd.deco .btn, .brd.deco .flipb, .brd.deco .head, .brd.deco .dep, .brd.deco .sign { position: relative; z-index: 2; }
.brd.deco .board::before { content: ""; position: absolute; left: -40%; right: -40%; top: -10px; height: 300px; pointer-events: none;
  background: repeating-conic-gradient(from -90deg at 50% 0%, rgba(212,175,55,0.07) 0 1.5deg, transparent 1.5deg 9deg); mask-image: linear-gradient(180deg, #000 30%, transparent 100%); -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 100%); }
.brd.deco .top { color: var(--amber); letter-spacing: 0.3em; font-size: 11px; font-weight: 600; justify-content: center; gap: 18px; position: relative; }
.brd.deco .top .wm { font-family: "Limelight", "Didot", Georgia, serif; font-size: 22px; letter-spacing: 0.22em; color: var(--cream); }
.brd.deco .top::after { content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 3px; border-top: 1px solid var(--amber); border-bottom: 1px solid var(--amber); }
.brd.deco .top { margin-bottom: 30px; margin-top: 8px; }
.brd.deco .t, .brd.deco .panel { font-family: "Josefin Sans", sans-serif; font-weight: 700; border-radius: 0; box-shadow: 0 1px 0 #000, inset 0 0 0 1px rgba(212,175,55,0.18); padding-top: 3px; }
.brd.deco .t.xl { font-size: 30px; }
.brd.deco .cap, .brd.deco .head { letter-spacing: 0.3em; border-bottom: 3px double var(--rule); }
.brd.deco .btn.claim .t { background: linear-gradient(180deg, #E8C95A, #B8912A); color: #161208; font-family: "Josefin Sans", sans-serif; font-weight: 700; font-size: 22px; letter-spacing: 0.22em; padding-top: 12px; box-shadow: 0 2px 0 #6B5313, 0 6px 12px rgba(0,0,0,0.7), inset 0 0 0 1px rgba(255,255,255,0.25); }
.brd.deco .btn.claim .t.long { white-space: nowrap; font-size: inherit; }
.brd.deco .flipb { border: 1px solid var(--amber); font-size: 18px; letter-spacing: 0.24em; padding-top: 12px; }
.brd.deco .try button { letter-spacing: 0.12em; padding: 5px 7px; }
.brd.deco .try { gap: 5px; }
.brd.deco .sign { border: 3px double var(--amber); color: var(--cream); letter-spacing: 0.06em; font-size: 12px; }
.brd.deco .sign b { color: var(--amber); } .brd.deco .sign i { color: var(--lbl); }
.brd.deco .etym { border: 3px double var(--amber); }
.brd.deco .etym .hw b { color: var(--amber); font-family: "Limelight", "Didot", Georgia, serif; font-weight: 400; }


/* ---- Newsreel, 1931: the terminal board as Capra would have shot it — no colour anywhere,
       engraved-serif signage, a projector vignette and a running film grain. The palette is
       built grayscale from the ground up rather than filtered, so nothing can leak a hue. ---- */
.brd.news {
  --steel: #8E8E8E; --steel-2: #3E3E3E; --board: #0A0A0A; --flap: #2C2C2C; --flap-lo: #161616; --seam: #000000; --cream: #F7F7F7; --amber: #FFFFFF; --lbl: #9B9B9B; --rule: #4A4A4A; --rule2: #242424; --pill: #5A5A5A; --red: #C9C9C9;
  --placard: #EDEDED; --placard-ink: #141414; --placard-muted: #5E5E5E;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif; padding: 18px 14px;
  background: linear-gradient(180deg, #9C9C9C 0, #6C6C6C 45%, #383838 100%);
}
.brd.news .board { border-radius: 2px; border: 1px solid #000; overflow: hidden; min-height: calc(844px - 36px); padding-top: 42px;
  background: radial-gradient(ellipse at 50% 20%, #242424 0, #0D0D0D 55%, #030303 100%);
  box-shadow: inset 0 0 0 1px #2A2A2A, 0 12px 28px -14px rgba(0,0,0,0.85); }
/* grain: two offset dot fields shuffled on a 3-step timer — reads as 16mm stock, not as noise.
   Deliberately NOT mix-blend-mode: screen. An animated blended layer gets promoted to its own
   composited layer and then blends against an empty backdrop, which drops the whole board out
   of the paint — reproducible in the preview and the same hazard in Safari. The bus board's
   grain can use screen safely only because it is static. Over a near-black ground, plain alpha
   at a slightly higher value is visually the same thing. */
.brd.news .board::before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; pointer-events: none; z-index: 3; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,0.13) 0.5px, transparent 0.7px), radial-gradient(rgba(255,255,255,0.08) 0.5px, transparent 0.7px);
  background-size: 5px 5px, 8px 8px; background-position: 0 0, 3px 4px; animation: grain .9s steps(3) infinite; }
@keyframes grain { 0% { background-position: 0 0, 3px 4px; } 33% { background-position: 2px 3px, 6px 1px; } 66% { background-position: 4px 1px, 1px 6px; } 100% { background-position: 0 0, 3px 4px; } }
/* vignette + lamp flicker */
.brd.news .board::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; pointer-events: none; z-index: 4;
  background: radial-gradient(ellipse at 50% 40%, rgba(255,255,255,0.055) 0, rgba(0,0,0,0) 46%, rgba(0,0,0,0.42) 84%, rgba(0,0,0,0.62) 100%);
  animation: flicker 3.4s ease-in-out infinite; }
@keyframes flicker { 0%, 100% { opacity: 1; } 18% { opacity: .90; } 22% { opacity: 1; } 55% { opacity: .95; } 58% { opacity: 1; } 76% { opacity: .88; } 80% { opacity: 1; } }
.brd.news .top { background: linear-gradient(180deg, #2A2A2A 0, #121212 100%); margin: -42px -14px 22px; padding: 12px 16px 10px; border-bottom: 1px solid #3E3E3E; color: #D8D8D8; font-weight: 600; font-size: 11px; letter-spacing: 0.26em; }
.brd.news .top .wm { color: #FFFFFF; font-size: 17px; letter-spacing: 0.3em; }
.brd.news .t, .brd.news .panel { font-family: "Playfair Display", Georgia, serif; font-weight: 700; border-radius: 1px; text-shadow: 0 1px 0 #000, 0 0 10px rgba(255,255,255,0.14); }
.brd.news .t.xl { font-size: 31px; }
.brd.news .t.amber { background: linear-gradient(180deg, #414141 0 49%, #000000 49% 51%, #2C2C2C 51% 100%); color: #FFFFFF; text-shadow: 0 0 12px rgba(255,255,255,0.55); }
.brd.news .cap, .brd.news .head { color: #DEDEDE; font-weight: 600; letter-spacing: 0.22em; }
.brd.news .hint.plain { font-style: italic; color: #B0B0B0; }
.brd.news .btn.claim .t { background: linear-gradient(180deg, #FAFAFA, #C6C6C6); color: #0C0C0C; text-shadow: none; box-shadow: 0 2px 0 #6A6A6A, 0 6px 12px rgba(0,0,0,0.7); font-size: 24px; letter-spacing: 0.1em; }
.brd.news .flipb { border: 1px solid #3E3E3E; font-size: 18px; letter-spacing: 0.14em; }
.brd.news .flipb svg.i, .brd.news .flipb .next { color: #C4C4C4; }
.brd.news .sign { position: relative; z-index: 2; background: #EDEDED; color: #3A3A3A; border: 1px solid #000; border-radius: 1px; font-family: "Playfair Display", Georgia, serif; font-style: italic; box-shadow: 0 2px 6px rgba(0,0,0,0.6); }
.brd.news .sign b { color: #0C0C0C; font-style: normal; } .brd.news .sign i { color: #4A4A4A; }
.brd.news .line .sub { color: #9B9B9B; }

/* ---- Modern Terminal, now: a current airport monitor — deep-blue LCD ground, geometric sans,
       flat backlit cells instead of flaps, and the BOARD_POOL weight tier shown the way a real
       board shows flight status: one colour per state, legend in the header. ---- */
.brd.air {
  --steel: #16243C; --steel-2: #060D18; --board: #072048; --flap: #10346B; --flap-lo: #0A2551; --seam: #061B3C; --cream: #FFFFFF; --amber: #7FB2FF; --lbl: #8FA8C9; --rule: #1D4278; --rule2: #133059; --pill: #245089;
  --w-light: #34D399; --w-mid: #FBBF24; --w-effort: #F472B6;
  --placard: #0E2A55; --placard-ink: #E8F1FF; --placard-muted: #8FA8C9;
  font-family: "Jost", "Helvetica Neue", sans-serif; padding: 12px 10px;
  background: linear-gradient(180deg, #1B2C48 0, #0B1626 60%, #060D18 100%);
}
.brd.air .board { border-radius: 10px; border: 1px solid #16325E; box-shadow: inset 0 0 0 1px #05142E, 0 14px 32px -16px rgba(0,0,0,0.75); min-height: calc(844px - 24px);
  background: linear-gradient(180deg, #0A2A5C 0, #072048 45%, #05183A 100%); }
/* LCD line structure, kept under 4% so it never turns into a pattern */
.brd.air .board::before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; pointer-events: none; border-radius: 10px;
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 3px), radial-gradient(ellipse at 50% 0%, rgba(127,178,255,0.10), transparent 60%); }
.brd.air .top { color: #BFD6F5; letter-spacing: 0.18em; font-weight: 500; }
.brd.air .top .wm { color: #FFFFFF; letter-spacing: 0.22em; }
.brd.air .t, .brd.air .panel { font-family: "Jost", sans-serif; font-weight: 600; border-radius: 3px; letter-spacing: 0.01em; background: linear-gradient(180deg, #123B78 0, #0A2551 100%); box-shadow: inset 0 0 0 1px rgba(127,178,255,0.18); text-shadow: 0 0 10px rgba(180,214,255,0.35); }
.brd.air .t.xl { font-size: 30px; }
.brd.air .t.amber { color: #7FB2FF; }
.brd.air .slot { background: linear-gradient(180deg, #0E2C5C 0, #08204A 100%); box-shadow: inset 0 0 0 1px rgba(127,178,255,0.12); border-radius: 3px; }
.brd.air .cap, .brd.air .head { color: #9FC2EE; font-weight: 500; letter-spacing: 0.14em; }
.brd.air .cap { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.brd.air .legend { display: inline-flex; align-items: center; gap: 2px; font-size: 9px; letter-spacing: 0.08em; color: var(--lbl); font-weight: 500; }
.brd.air .legend i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; margin: 0 4px 0 8px; font-style: normal; }
.brd.air .legend i.w-light { background: var(--w-light); }
.brd.air .legend i.w-mid { background: var(--w-mid); }
.brd.air .legend i.w-effort { background: var(--w-effort); }
.brd.air .btn.claim .t { background: linear-gradient(180deg, #EAF2FF, #B6D2FF); color: #06203F; text-shadow: none; box-shadow: 0 2px 0 #2B5A9E, 0 6px 14px rgba(0,0,0,0.55); font-size: 24px; letter-spacing: 0.08em; }
.brd.air .flipb { border: 1px solid #1D4278; font-family: "Jost", sans-serif; font-weight: 600; font-size: 18px; letter-spacing: 0.08em; text-transform: none; }
.brd.air .flipb .next { text-transform: none; letter-spacing: 0.02em; }
.brd.air .try button { font-size: 11px; letter-spacing: 0.08em; border-radius: 3px; }
/* weight tier = status colour, exactly as on-time / delayed / final call reads on a real monitor */
.brd.air .line { padding-left: 10px; }
.brd.air .line.w-light { box-shadow: inset 3px 0 0 var(--w-light); }
.brd.air .line.w-mid { box-shadow: inset 3px 0 0 var(--w-mid); }
.brd.air .line.w-effort { box-shadow: inset 3px 0 0 var(--w-effort); }
.brd.air .status { font-size: 12px; letter-spacing: 0.08em; min-width: 8ch; display: inline-flex; align-items: center; justify-content: flex-end; gap: 3px; }
.brd.air .status .tagicon { font-size: 11px; line-height: 1; }
.brd.air .status.w-light { color: var(--w-light); }
.brd.air .status.w-mid { color: var(--w-mid); }
.brd.air .status.w-effort { color: var(--w-effort); }
.brd.air [data-flip-next].w-light { color: var(--w-light); }
.brd.air [data-flip-next].w-mid { color: var(--w-mid); }
.brd.air [data-flip-next].w-effort { color: var(--w-effort); }
.brd.air .sign { border-color: #1D4278; color: #9FC2EE; border-radius: 4px; }
.brd.air .sign b { color: #FFFFFF; } .brd.air .sign i { color: #7FB2FF; }

/* ---- Mechanical Flip, 1962: bone-white flaps with black ink in a teal enamel case — the one
       board here that inverts the dark-flap convention. The point of it is the motion: see
       MECH_RING in the script, where each letter's travel time is its own distance around
       the drum, so a word resolves raggedly, left tile settling long before right. ---- */
.brd.mech {
  --steel: #2F6055; --steel-2: #1B3C35; --board: #14302B; --flap: #F4EFE2; --flap-lo: #DAD3C2; --seam: #A69D8A; --cream: #17150F; --amber: #E2542C; --lbl: #8FB3A9; --rule: #2E6157; --rule2: #1E453E; --pill: #3C7266; --red: #E2542C;
  --placard: #F4EFE2; --placard-ink: #17150F; --placard-muted: #5E6B63;
  font-family: "Jost", sans-serif; padding: 16px 12px; color: #EAF2EE;
  background: linear-gradient(180deg, #3C7568 0, var(--steel) 40%, var(--steel-2) 100%);
}
.brd.mech .board { border-radius: 6px 6px 0 0; border: 3px solid #0E231F; border-bottom: 0; padding-top: 44px;
  box-shadow: inset 0 0 0 1px #0A1A17, 0 0 0 4px #3A7266, 0 0 0 5px #16352E, 0 14px 30px -14px rgba(0,0,0,0.6); }
.brd.mech .screen-scroll { border-radius: 0 0 6px 6px; border: 3px solid #0E231F; border-top: 0;
  box-shadow: inset 0 0 0 1px #0A1A17, 0 0 0 4px #3A7266, 0 0 0 5px #16352E; }
.brd.mech .top { background: linear-gradient(180deg, #41806F 0, #2A5A50 100%); margin: -44px -14px 22px; padding: 13px 16px 10px; border-radius: 3px 3px 0 0; color: #F1E3D0; font-weight: 600; font-size: 12px; letter-spacing: 0.2em; box-shadow: inset 0 -1px 0 #16352E; }
.brd.mech .top .wm { color: #FFFFFF; font-size: 15px; letter-spacing: 0.26em; }
.brd.mech .t, .brd.mech .panel { font-family: "Archivo", "Helvetica Neue", sans-serif; font-weight: 700; border-radius: 2px; box-shadow: 0 1px 0 rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.75); }
.brd.mech .t.xl { font-size: 30px; }
.brd.mech .slot { box-shadow: 0 1px 0 rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.6); }
.brd.mech .cap, .brd.mech .head { letter-spacing: 0.2em; }
.brd.mech .btn.claim .t { font-family: "Archivo", sans-serif; font-size: 25px; letter-spacing: 0.08em; box-shadow: 0 2px 0 #8A2F12, 0 6px 12px rgba(0,0,0,0.5); }
.brd.mech .flipb { border: 1px solid #A69D8A; font-family: "Archivo", sans-serif; font-weight: 700; font-size: 18px; letter-spacing: 0.06em; }
.brd.mech .sign, .brd.mech .etym { box-shadow: 0 2px 6px rgba(0,0,0,0.4); }
.brd.mech .sign { background: var(--placard); color: #4A554E; border: 1px solid #A69D8A; }
.brd.mech .sign b { color: #17150F; } .brd.mech .sign i { color: #8A2F12; }
.brd.mech .line .sub { color: #8FB3A9; }
/* the flip itself: the shared .flip keyframe is switched off here, because every tile is driven
   individually from the script instead — a whole-word animation is the thing this motif rejects */
.brd.mech .t.flip { animation: none; }
/* ...except in the count column, which never enters the drum and keeps the shared flip.
   Re-stated rather than carved out with :not(), which would need a complex :not() that
   older WebKit does not parse. No perspective here either, so numbers turn flat like
   they do on every other board. */
.brd.mech .cnt .t.flip { animation: flip .38s cubic-bezier(.2,.8,.2,1); }
/* ...and the hero line: the try-on/claim reorder is one-off UI chrome, not the drum's signage
   word, so it gets the plain flip like every other motif rather than sitting frozen while
   everything else on this board visibly turns. */
.brd.mech .row.hero .t.flip { animation: flip .38s cubic-bezier(.2,.8,.2,1); }
.brd.mech .row, .brd.mech [data-tiles], .brd.mech .line .word { perspective: 460px; }
.brd.mech .t { transform-origin: 50% 50%; will-change: transform; }
.brd.mech .t.mechrun { box-shadow: 0 1px 0 rgba(0,0,0,0.45), 0 7px 12px -7px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.75); }

/* ================= C — NAME TAG ("HELLO I am" sticker) ================= */
.tag {
  --ground: #E7E4DC; --ink: #17181A; --ink-2: #5C5B57; --red: #D42B2B; --red-d: #B12222; --paper: #FFFFFF;
  min-height: 100%; background: var(--ground); color: var(--ink); font-family: "Archivo", sans-serif; padding: 52px 20px 32px;
  background-image: repeating-linear-gradient(0deg, rgba(0,0,0,0.025) 0 1px, transparent 1px 3px), repeating-linear-gradient(90deg, rgba(0,0,0,0.025) 0 1px, transparent 1px 3px);
}
.tag ::selection { background: var(--red); color: #fff; }
.tag .top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 700; letter-spacing: 0.02em; margin-bottom: 26px; }
.tag .top a { color: var(--ink-2); text-decoration: none; font-weight: 600; }
.tag h1 { margin: 0 0 18px; font-size: 24px; line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; color: var(--ink); }
.tag h1 .h-l1, .tag h1 .h-l2 { display: block; }
.tag h1 .h-l2 { margin-top: 2px; color: var(--red); } /* the question, at full headline size — the sticker's PRE- turns it into "who are you becoming?" */
.tag .sticker { background: var(--paper); border-radius: 18px; overflow: hidden; transform: rotate(-1.6deg); box-shadow: 0 14px 28px -14px rgba(0,0,0,0.45), 0 2px 4px rgba(0,0,0,0.12); border: 1px solid rgba(0,0,0,0.06); }
.tag .band { background: var(--red); color: #fff; padding: 14px 18px 10px; text-align: center; }
.tag .band .hello { font-family: "Archivo Black", sans-serif; font-size: 40px; line-height: 0.95; letter-spacing: 0.02em; }
.tag .band .iam { font-family: "Caveat", "Bradley Hand", "Marker Felt", "Chalkboard SE", sans-serif; font-size: 24px; line-height: 1; margin-top: 2px; }
.tag .write { position: relative; padding: 22px 18px 20px; display: flex; align-items: baseline; gap: 6px; font-family: "Permanent Marker", "Marker Felt", "Chalkboard SE", "Comic Sans MS", sans-serif; font-size: 40px; line-height: 1; color: var(--ink); }
.tag .fit-overlay { display: none; }
.tag .write.wrap input { position: absolute; opacity: 0; pointer-events: none; }
.tag .write.wrap .fit-overlay { display: block; flex-basis: 100%; white-space: normal; overflow-wrap: anywhere; word-break: break-word; line-height: 1.15; text-transform: uppercase; }
.tag .write .pre { white-space: nowrap; }
.tag .write input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font: inherit; color: var(--ink); text-transform: uppercase; border-bottom: 2px dashed rgba(0,0,0,0.25); padding-bottom: 4px; caret-color: var(--red); }
.tag .write input::placeholder { color: #B5B2AA; font-family: "Caveat", "Bradley Hand", "Marker Felt", "Chalkboard SE", sans-serif; font-size: 30px; text-transform: none; }
.tag .write input:focus { border-bottom-color: var(--red); }
.tag .write.stack { flex-wrap: wrap; row-gap: 2px; }
.tag .write.stack .pre { flex-basis: 100%; }
/* Hero sticker states (v4l): A "Are you PRE-___?"  B "Am I PRE-WORD?"  C "I am PRE-WORD".
   The "?" rides right behind the word (the input is sized to its text once something is written)
   and drops only on claim. margin-left cancels the row gap so the "?" sits tight to the word. */
.tag .write .q { white-space: nowrap; margin-left: -6px; color: var(--ink); }
.tag .write[data-state="C"] .q, .tag .write.wrap .q { display: none; }
.tag .sticker .band .iam { min-height: 1em; } /* v4s: blank at rest, so hold the line open and the band never jumps */
.tag .sticker .band .iam.rewrite { animation: iamRewrite .35s cubic-bezier(.2,.8,.2,1); }
@keyframes iamRewrite { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.tag .band.foot { padding: 7px; }
.tag .actions { margin-top: 26px; display: flex; flex-direction: column; gap: 10px; }
.tag .actions button { font: inherit; font-weight: 700; font-size: 16px; border-radius: 999px; padding: 15px 18px; cursor: pointer; border: 1.5px solid var(--ink); background: var(--ink); color: #fff; transition: transform .15s cubic-bezier(.2,.8,.2,1); display: flex; justify-content: space-between; align-items: center; }
.tag .actions button:hover { transform: translateY(-1px); }
.tag .actions button:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.tag .actions .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tag .actions .row2 button { background: transparent; color: var(--ink); font-size: 13px; padding: 12px 14px; justify-content: center; gap: 8px; }
.tag .actions .row2 button span[data-sug] { color: var(--red); }
.tag h2 { margin: 34px 0 12px; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); display: flex; justify-content: space-between; }
.tag h2 a { color: var(--red); text-decoration: none; letter-spacing: 0; text-transform: none; font-weight: 700; }
.tag .wall { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; }
.tag .mini { background: var(--paper); border-radius: 10px; box-shadow: 0 8px 16px -10px rgba(0,0,0,0.4), 0 1px 2px rgba(0,0,0,0.1); position: relative; border: 1px solid rgba(0,0,0,0.06); }
.tag .mini:nth-child(odd) { transform: rotate(-2deg); } .tag .mini:nth-child(even) { transform: rotate(1.8deg); }
.tag .mini:nth-child(3n) { transform: rotate(2.6deg); }
.tag .mini .band { padding: 6px 8px 4px; border-radius: 10px 10px 0 0; }
.tag .mini .band .hello { font-size: 13px; } .tag .mini .band .iam { font-size: 13px; margin-top: 0; }
.tag .mini .w { font-family: "Permanent Marker", "Marker Felt", "Chalkboard SE", "Comic Sans MS", sans-serif; font-size: 17px; padding: 12px 10px 10px; line-height: 1.1; min-height: 58px; display: flex; align-items: center; }
.tag .mini .w.narr { font-size: 14px; }
.tag .mini .n { position: absolute; top: -8px; right: -6px; background: var(--ink); color: #fff; border-radius: 999px; font-size: 11px; font-weight: 700; padding: 4px 8px; font-variant-numeric: tabular-nums; box-shadow: 0 2px 6px rgba(0,0,0,0.3); }
.tag .mini .votes { display: flex; gap: 8px; font-size: 11px; color: var(--ink-2); padding: 0 10px 8px; font-variant-numeric: tabular-nums; }
.tag .mini .votes span { display: inline-flex; gap: 2px; align-items: center; }
.tag .mini .restick { animation: restick .55s cubic-bezier(.2,.8,.2,1); }
@keyframes restick { 0% { opacity: 0; filter: blur(2px); } 100% { opacity: 1; filter: blur(0); } }

/* ================= D — KIT (football shirt, home/away colourway) ================= */
.kit {
  --body: #128A3F; --body-deep: #0D6A30; --name: #FFFFFF; --shadow: #0A0A0A; --gold: #E3B341; --ink: #0F1A12; --lbl: rgba(255,255,255,0.72);
  min-height: 100%; background: var(--body); color: var(--name); font-family: "Archivo", sans-serif; padding: 50px 18px 30px;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.07) 0 1px, transparent 1px 4px), repeating-linear-gradient(-45deg, rgba(0,0,0,0.05) 0 1px, transparent 1px 4px);
  transition: background-color .45s, color .45s;
}
.kit.away { --body: #F4F2EC; --body-deep: #DAD6CC; --name: #128A3F; --shadow: #0A0A0A; --ink: #F4F2EC; --lbl: rgba(15,26,18,0.7); }
.kit ::selection { background: var(--gold); color: #111; }
.kit .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.kit .crest { display: flex; align-items: center; gap: 8px; font-family: "Archivo Black", sans-serif; font-size: 13px; letter-spacing: 0.12em; }
.kit .crest svg { width: 30px; height: 34px; }
.kit .toggle { display: flex; border: 1.5px solid var(--gold); border-radius: 4px; overflow: hidden; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; }
.kit .toggle button { border: 0; background: transparent; color: var(--name); font: inherit; padding: 7px 10px; cursor: pointer; }
.kit .toggle button[aria-pressed="true"] { background: var(--gold); color: #111; }
.kit .toggle button:focus-visible { outline: 2px solid var(--name); outline-offset: -3px; }
.kit .shirt { display: block; width: 100%; height: auto; margin: 0 -4px; }
.kit .shirt .cloth { fill: var(--body-deep); }
.kit .shirt .arch { font-family: "Archivo Black", sans-serif; fill: var(--name); letter-spacing: 0.08em; text-transform: uppercase; }
.kit .shirt .num { font-family: "Anton", sans-serif; fill: var(--name); }
.kit .shirt .num.sh { fill: var(--shadow); }
.kit .shirt .patch rect { fill: var(--gold); } .kit .shirt .patch text { font-family: "Archivo Black", sans-serif; font-size: 9px; fill: #111; letter-spacing: 0.08em; }
.kit .hint { text-align: center; font-size: 12.5px; color: var(--lbl); margin: -4px 0 14px; letter-spacing: 0.02em; }
.kit .field { display: flex; align-items: center; gap: 10px; border: 2px solid var(--name); border-radius: 4px; padding: 6px 6px 6px 14px; }
.kit .field .pre { font-family: "Archivo Black", sans-serif; font-size: 20px; letter-spacing: 0.04em; }
.kit .field input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; font-family: "Archivo Black", sans-serif; font-size: 20px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--name); caret-color: var(--gold); }
.kit .field input::placeholder { color: var(--lbl); font-family: "Archivo", sans-serif; font-weight: 500; text-transform: none; letter-spacing: 0; font-size: 16px; }
.kit .field button { border: 0; background: var(--gold); color: #111; font: inherit; font-weight: 800; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; padding: 12px 14px; border-radius: 3px; cursor: pointer; transition: transform .15s cubic-bezier(.2,.8,.2,1); }
.kit .field button:hover { transform: translateY(-1px); }
.kit .field button:focus-visible { outline: 2px solid var(--name); outline-offset: 2px; }
.kit .doors { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.kit .doors button { border: 1.5px dashed var(--gold); background: transparent; color: var(--name); font: inherit; font-weight: 700; font-size: 13px; padding: 11px 10px; border-radius: 3px; cursor: pointer; text-align: left; line-height: 1.25; }
.kit .doors button small { display: block; font-weight: 500; color: var(--lbl); font-size: 11.5px; }
.kit .doors button:hover { border-style: solid; }
.kit .doors button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.kit h2 { margin: 30px 0 10px; font-family: "Archivo Black", sans-serif; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; display: flex; justify-content: space-between; align-items: baseline; }
.kit h2 a { color: var(--gold); text-decoration: none; font-family: "Archivo", sans-serif; font-weight: 700; letter-spacing: 0.02em; text-transform: none; font-size: 13px; }
.kit .wall { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -18px; padding: 4px 18px 10px; scrollbar-width: none; }
.kit .wall::-webkit-scrollbar { display: none; }
.kit .hang { flex: none; width: 148px; scroll-snap-align: start; }
.kit .hang > svg { width: 100%; height: auto; display: block; }
.kit .hang .cloth { fill: var(--body-deep); stroke: var(--name); stroke-width: 2; }
.kit .hang .arch { font-family: "Archivo Black", sans-serif; fill: var(--name); letter-spacing: 0.06em; }
.kit .hang .num { font-family: "Anton", sans-serif; fill: var(--name); }
.kit .hang .num.sh { fill: var(--shadow); }
.kit .hang .cap { display: flex; justify-content: space-between; align-items: baseline; margin-top: 6px; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.kit .hang .cap small { color: var(--lbl); font-weight: 600; }
.kit .hang .votes { display: flex; gap: 8px; font-size: 11px; color: var(--lbl); margin-top: 2px; font-variant-numeric: tabular-nums; }
.kit .hang .votes span { display: inline-flex; gap: 2px; align-items: center; }

@media (prefers-reduced-motion: reduce) { .brd .slot.caret::after, .brd .t.flip, .brd.news .board::before, .brd.news .board::after, .lex .grid2 .tile.reprint, .tag .mini .restick, .tag .sticker .band .iam.rewrite { animation: none; } * { transition: none !important; } }

/* ================= v4m — COLLECTION: "My PREDASH list" (shared by every UI) ================= */
/* One pill per screen opens a full-screen sheet inside the phone. Three lists — Current,
   Interesting, Retired — each claimed PREDASH is a collectible card that can move between them.
   Structure is shared; each family dresses it in its own world: Lexicon = vocabulary index cards,
   Name Tag = a sticker book, Departures boards = boarding passes in each board's own palette. */
.mylist { display: flex; align-items: center; gap: 8px; width: 100%; cursor: pointer; font: inherit; text-align: left; }
.mylist .ml-lbl { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mylist .ml-n { flex: none; min-width: 24px; padding: 3px 7px; border-radius: 999px; text-align: center; font-size: 12px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; letter-spacing: 0; }
.mylist.bump .ml-n { animation: claimPop .45s cubic-bezier(.2,.8,.2,1); }
.mylist:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.screen.coll-open { overflow: hidden; }
.coll { position: absolute; left: 0; width: 100%; z-index: 60; display: flex; flex-direction: column; border-radius: 34px; overflow: hidden; }
.coll[hidden] { display: none; }
.coll .coll-sheet { flex: 1; overflow-y: auto; padding: 52px 18px 36px; scrollbar-width: none; animation: collUp .32s cubic-bezier(.2,.8,.2,1); background: var(--cl-bg); color: var(--cl-ink); }
.coll .coll-sheet::-webkit-scrollbar { display: none; }
@keyframes collUp { from { transform: translateY(28px); opacity: 0; } to { transform: none; opacity: 1; } }
.coll-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.coll-kicker { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cl-acc); }
.coll h3 { margin: 4px 0 0; font-size: 28px; line-height: 1.02; outline: none; }
.coll-x { flex: none; width: 38px; height: 38px; border-radius: 999px; border: 1.5px solid var(--cl-rule); background: none; color: inherit; font: inherit; font-size: 22px; line-height: 1; cursor: pointer; }
.coll-x:hover { border-color: var(--cl-acc); color: var(--cl-acc); }
.coll-x:focus-visible, .coll button:focus-visible { outline: 2px solid var(--cl-acc); outline-offset: 2px; }
.coll-sum { margin: 10px 0 0; font-size: 13px; color: var(--cl-muted); }
.coll section { margin-top: 24px; }
.coll h4 { margin: 0; display: flex; justify-content: space-between; align-items: baseline; font-size: 12.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding-bottom: 6px; border-bottom: 1.5px solid var(--cl-rule); color: var(--cl-acc); }
.coll h4 span { font-variant-numeric: tabular-nums; }
.coll-note { margin: 6px 0 12px; font-size: 12.5px; font-style: italic; color: var(--cl-muted); }
.coll-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
.pcard, .pc-word { min-width: 0; }
.coll-empty { grid-column: 1 / -1; margin: 0; padding: 14px; border: 1px dashed var(--cl-rule); border-radius: 8px; text-align: center; font-size: 12.5px; color: var(--cl-muted); }
.coll-reset { display: block; margin: 30px auto 0; background: none; border: 0; color: var(--cl-muted); font: inherit; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.coll .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* v4x — Classic/Themes toggle inside My PREDASH list. Themes is an ambient/passive surface, so its
   words come from the curated pool (window.PredashThemeData), never the full canonical list. */
.coll-tabs { display: flex; gap: 8px; margin-top: 16px; }
.coll-tab { flex: 1 1 0; padding: 8px 4px; border: 1.5px solid var(--cl-rule); border-radius: 999px; background: none; color: var(--cl-muted); font: inherit; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; }
.coll-tab[aria-selected="true"] { border-color: var(--cl-acc); background: var(--cl-acc); color: var(--cl-acc-ink, #fff); }
.coll-tab:focus-visible { outline: 2px solid var(--cl-acc); outline-offset: 2px; }
.coll-themes[hidden], .coll-classic[hidden] { display: none; }
.ct-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 16px; }
.ct-tile { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 2px; min-height: 76px; padding: 10px; text-align: left; border: 1.5px solid var(--cl-rule); border-radius: 10px; background: none; color: var(--cl-ink); font: inherit; cursor: pointer; }
.ct-tile:hover, .ct-tile:focus-visible { border-color: var(--cl-acc); }
.ct-tile b { font-size: 14px; line-height: 1.05; }
.ct-tile .ct-blurb { font-size: 10.5px; line-height: 1.2; color: var(--cl-muted); }
.ct-tile .ct-n { position: absolute; top: 8px; right: 8px; font-size: 10px; font-weight: 700; font-variant-numeric: tabular-nums; padding: 2px 6px; border-radius: 999px; background: var(--cl-acc); color: var(--cl-acc-ink, #fff); }
.ct-bar { margin-top: 16px; }
.coll-link { background: none; border: 0; color: var(--cl-acc); font: inherit; font-size: 12.5px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 0; }
.ct-h { margin: 10px 0 0; font-size: 16px; }
.ct-h span { display: block; margin-top: 2px; font-size: 11.5px; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--cl-muted); }
.ct-words { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 12px; }
.ct-words button { min-height: 52px; padding: 6px 4px; border: 1.5px solid var(--cl-rule); border-radius: 8px; background: none; color: var(--cl-ink); font: inherit; font-size: 11.5px; font-weight: 700; letter-spacing: 0.02em; line-height: 1.1; overflow-wrap: anywhere; cursor: pointer; }
.ct-words button:hover, .ct-words button:focus-visible { border-color: var(--cl-acc); }
.ct-words button.claimed { background: var(--cl-acc); color: var(--cl-acc-ink, #fff); border-color: var(--cl-acc); }
.ct-line { margin: 12px 0 0; font-size: 12.5px; color: var(--cl-muted); min-height: 1.4em; }
.pcard { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 12px; min-height: 196px; background: var(--pc-bg); color: var(--pc-ink); outline: none; }
.pcard:focus-visible { outline: 2px solid var(--cl-acc); outline-offset: 3px; }
.pc-top { display: flex; justify-content: space-between; gap: 6px; font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--pc-muted); }
.pc-band { display: none; }
.pc-word { flex: 1; font-size: 22px; line-height: 1.04; white-space: nowrap; }
.pc-word.wrap { white-space: normal; overflow-wrap: anywhere; } /* only when shrink-to-fit bottoms out */
.pc-pre { color: var(--pc-acc); }
.pc-meta { margin: 0; display: grid; gap: 3px; font-size: 11px; }
.pc-meta div { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.pc-meta dt { color: var(--pc-muted); text-transform: uppercase; letter-spacing: 0.1em; font-size: 9.5px; font-weight: 700; }
.pc-meta dd { margin: 0; font-weight: 700; text-align: right; }
.pcard[data-list="current"] .pc-status { color: var(--pc-acc); }
.pc-move { display: flex; flex-direction: column; gap: 4px; margin-top: 2px; }
.pc-move button { background: none; border: 1px solid var(--pc-rule); color: inherit; font: inherit; font-size: 11px; font-weight: 600; padding: 5px 8px; border-radius: 999px; cursor: pointer; text-align: left; }
.pc-move button:hover { border-color: var(--pc-ink); }
.pc-del { align-self: flex-start; margin-top: 2px; background: none; border: 1px solid var(--pc-rule); color: var(--pc-muted); font: inherit; font-size: 11px; font-weight: 600; padding: 5px 8px; border-radius: 999px; cursor: pointer; }
.pc-del:hover { border-color: var(--pc-ink); color: var(--pc-ink); }
.pc-del.confirm { border-color: var(--pc-ink); color: var(--pc-ink); font-weight: 800; text-decoration: underline; text-underline-offset: 2px; }
.pcard.flash { animation: pcFlash .7s cubic-bezier(.2,.8,.2,1); }
@keyframes pcFlash { 0% { transform: scale(.9); opacity: .2; } 60% { transform: scale(1.03); opacity: 1; } 100% { transform: none; } }

/* --- Lexicon: vocabulary index cards on the blue book cloth --- */
.lex .mylist { margin-top: 12px; background: none; border: 1.5px solid var(--gilt); border-radius: 999px; color: var(--cream); font-size: 15px; font-weight: 700; padding: 10px 12px 10px 16px; }
.lex .mylist svg.i { color: var(--gilt); }
.lex .mylist:hover .ml-lbl { text-decoration: underline; text-underline-offset: 3px; }
.lex .mylist .ml-n { background: var(--gilt); color: var(--ink); }
.lex .coll { --cl-bg: var(--bg); --cl-ink: var(--cream); --cl-muted: var(--cream-2); --cl-rule: var(--cream); --cl-acc: var(--gilt);
  --pc-bg: #F3ECD9; --pc-ink: #16295C; --pc-muted: #4A5A85; --pc-acc: #8A6414; --pc-rule: rgba(22,41,92,0.35); }
.lex .coll .coll-sheet { background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 3px), repeating-linear-gradient(-45deg, rgba(0,0,0,0.05) 0 1px, transparent 1px 3px); }
.lex .coll h3 { text-transform: none; border: 0; padding: 0; display: block; color: var(--cream); margin: 4px 0 0; font-size: 34px; font-weight: 800; letter-spacing: -0.03em; font-variation-settings: "opsz" 40; }
.lex .coll h4 { color: var(--cream-2); font-weight: 600; }
.lex .pcard { border-radius: 3px; box-shadow: 0 10px 18px -12px rgba(0,0,0,0.7);
  background-image: linear-gradient(180deg, transparent 31px, rgba(196,74,58,0.65) 31px, rgba(196,74,58,0.65) 32px, transparent 32px), repeating-linear-gradient(180deg, transparent 0, transparent 19px, rgba(35,65,143,0.13) 19px, rgba(35,65,143,0.13) 20px);
  background-position: 0 0, 0 32px; background-repeat: no-repeat, repeat; }
.lex .pc-top { padding-bottom: 4px; }
.lex .pc-word { font-weight: 800; letter-spacing: -0.02em; font-variation-settings: "opsz" 40; }
.lex .pcard[data-list="retired"] { background-color: #E3DAC3; }
.lex .pcard[data-list="interesting"] .pc-word { font-weight: 600; font-style: italic; }

/* --- Name Tag: a sticker book — every card is a HELLO sticker; the band speaks the list's grammar --- */
.tag .actions .mylist { background: var(--paper); color: var(--ink); border: 1.5px solid var(--ink); font-size: 14px; padding: 11px 12px 11px 18px; justify-content: flex-start; }
.tag .actions .mylist svg.i { color: var(--red); }
.tag .mylist .ml-n { background: var(--red); color: #fff; }
.tag .coll { --cl-bg: var(--ground); --cl-ink: var(--ink); --cl-muted: var(--ink-2); --cl-rule: rgba(23,24,26,0.35); --cl-acc: var(--red);
  --pc-bg: var(--paper); --pc-ink: var(--ink); --pc-muted: var(--ink-2); --pc-acc: var(--ink); --pc-rule: rgba(23,24,26,0.3); }
.tag .coll .coll-sheet { background-image: repeating-linear-gradient(0deg, rgba(0,0,0,0.025) 0 1px, transparent 1px 3px), repeating-linear-gradient(90deg, rgba(0,0,0,0.025) 0 1px, transparent 1px 3px); }
.tag .coll h3 { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.tag .coll h4 { color: var(--ink-2); }
.tag .pcard { padding: 0 0 10px; border-radius: 12px; border: 1px solid rgba(0,0,0,0.06); box-shadow: 0 10px 18px -10px rgba(0,0,0,0.45), 0 1px 2px rgba(0,0,0,0.1); }
.tag .coll-cards .pcard:nth-child(odd) { transform: rotate(-1.6deg); } .tag .coll-cards .pcard:nth-child(even) { transform: rotate(1.4deg); }
.tag .pc-top { position: absolute; top: -9px; right: -6px; z-index: 1; }
.tag .pc-brand { display: none; }
.tag .pc-no { background: var(--ink); color: #fff; border-radius: 999px; padding: 4px 8px; letter-spacing: 0.04em; box-shadow: 0 2px 6px rgba(0,0,0,0.3); }
.tag .pc-band { display: block; background: var(--red); color: #fff; text-align: center; padding: 7px 8px 5px; border-radius: 11px 11px 0 0; }
.tag .pc-band b { display: block; font-family: "Archivo Black", sans-serif; font-weight: 400; font-size: 15px; line-height: 1; letter-spacing: 0.02em; }
.tag .pc-band i { display: block; font-family: "Caveat", "Bradley Hand", "Marker Felt", "Chalkboard SE", sans-serif; font-style: normal; font-size: 16px; line-height: 1; margin-top: 1px; }
.tag .pcard[data-list="interesting"] .pc-band { background: var(--paper); color: var(--red); border-bottom: 2px dashed var(--red); }
.tag .pcard[data-list="retired"] .pc-band { background: #8C8984; }
.tag .pc-word { font-family: "Permanent Marker", "Marker Felt", "Chalkboard SE", "Comic Sans MS", sans-serif; margin: 8px 10px 0; font-size: 20px; }
.tag .pc-meta, .tag .pc-move { padding: 0 10px; }
.tag .pcard[data-list="current"] .pc-status { color: var(--red); }

/* --- Departures boards: boarding passes, dressed from each board's own placard/flap palette --- */
.brd .mylist { margin: 0 0 12px; padding: 8px 8px 8px 14px; background: none; border: 1px solid var(--pill, #3A3D44); border-radius: 999px; color: var(--lbl); font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.brd .mylist svg.i { color: var(--amber); font-size: 15px; }
.brd .mylist:hover { border-color: var(--amber); color: var(--amber); }
.brd .mylist .ml-n { background: var(--amber); color: var(--board); }
.brd .coll { --cl-bg: var(--board); --cl-ink: var(--cream); --cl-muted: var(--lbl); --cl-rule: var(--rule, #2A2C31); --cl-acc: var(--amber);
  --pc-bg: var(--placard, var(--flap)); --pc-ink: var(--placard-ink, var(--cream)); --pc-muted: var(--placard-muted, var(--lbl)); --pc-acc: var(--card-acc, var(--amber)); --pc-rule: var(--placard-muted, var(--lbl)); }
.brd.mech .coll { --cl-ink: #EAF2EE; }
.brd.rail { --card-acc: #8B6A2C; } .brd.euro { --card-acc: #1F3B5E; } .brd.news { --card-acc: #141414; }
.brd .coll h3 { font-size: 30px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.brd .coll-note { font-style: normal; letter-spacing: 0.04em; }
.brd .pcard { border-radius: 6px; box-shadow: 0 10px 20px -12px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.06); }
.brd .pcard::before, .brd .pcard::after { content: ""; position: absolute; top: 25px; width: 14px; height: 14px; border-radius: 50%; background: var(--board); }
.brd .pcard::before { left: -7px; } .brd .pcard::after { right: -7px; }
.brd .pc-top { margin: 0 -12px; padding: 0 12px 9px; border-bottom: 1.5px dashed var(--pc-rule); }
.brd .pc-word { text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; font-size: 24px; }
.brd .pc-move button { border-radius: 2px; text-transform: uppercase; letter-spacing: 0.1em; font-size: 10px; }
.brd .pcard[data-list="retired"] .pc-word { color: var(--pc-muted); }

@media (prefers-reduced-motion: reduce) { .coll .coll-sheet, .pcard.flash, .mylist.bump .ml-n { animation: none; } }

/* ================= v4p — GATES, SPIN WHEEL, DAILY QUIZ ================= */
.brd .try.gates { margin-bottom: 12px; }
.brd .try .gate { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.brd .try .gate .g-l { color: var(--amber); font-weight: 700; padding-right: 6px; border-right: 1px solid var(--pill, #3A3D44); }
.brd .try .gate.soon { border-style: dashed; }
.brd .try .gate .g-soon { font-size: 8.5px; letter-spacing: 0.12em; padding: 1px 4px; border-radius: 2px; border: 1px solid currentColor; opacity: 0.75; }
.brd .try .gate.live { border-color: var(--amber); border-width: 1.5px; }
.brd.mech .try .gate.live { color: #F4EFE2; }
.brd.mech .try .gate .g-l { color: #F07A55; }
.gate-note { margin: 0; max-height: 0; opacity: 0; overflow: hidden; text-align: center; font-size: 12px; line-height: 1.4; letter-spacing: 0.02em; transition: opacity .25s, max-height .25s, margin .25s; }
.gate-note.show { max-height: 80px; opacity: 1; margin: 8px 0 4px; }
.brd .gate-note { margin: -6px 0 0; color: var(--lbl); }
.brd .gate-note.show { margin: -6px 0 14px; }
.lex .gate-note { color: var(--cream-2); text-align: left; }
.tag .gate-note { color: var(--ink-2); }
/* Lexicon: gates as a 2x2 grid of pills (dashed while forthcoming, solid once live) */
.lex .gates-h { margin: 20px 0 0; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cream-2); }
.lex .lex-gates { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.lex .lex-gates button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px; padding: 9px 12px; border-radius: 999px; border: 1.5px dashed var(--cream-2); background: none; color: var(--cream); font: inherit; font-size: 14px; font-weight: 700; line-height: 1.15; text-align: center; cursor: pointer; transition: transform .15s cubic-bezier(.2,.8,.2,1), border-color .15s; }
.lex .lex-gates button.live { border-style: solid; border-color: var(--gilt); }
.lex .lex-gates button:hover { transform: translateY(-1px); border-color: var(--gilt); }
.lex .lex-gates button:focus-visible { outline: 2px solid var(--gilt); outline-offset: 3px; }
.lex .lex-gates .g-soon { font-size: 11px; font-weight: 600; font-style: italic; letter-spacing: 0.02em; color: var(--gilt); }
/* Name tag: gates as a 2x2 grid of dashed pills (solid once live) */
.tag .actions .row2.gates button { flex-direction: column; gap: 2px; padding: 9px 12px; border-style: dashed; }
.tag .actions .row2.gates button.live { border-style: solid; }
.tag .actions .row2.gates .g-soon { font-size: 9.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); }
/* My PREDASH list: declarations on retired cards */
.pc-lead { font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--pc-muted); margin-bottom: -6px; }
.tag .pc-lead { display: none; }
.pc-decl { display: grid; gap: 3px; font-size: 9.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--pc-muted); }
.pc-decl select { font: inherit; font-size: 11px; font-weight: 600; letter-spacing: 0.02em; text-transform: none; color: var(--pc-ink); background: transparent; border: 1px solid var(--pc-rule); border-radius: 6px; padding: 5px 4px; width: 100%; min-width: 0; cursor: pointer; }
.pc-decl select option { color: #17150F; background: #FFFFFF; }
.pc-decl select:focus-visible { outline: 2px solid var(--cl-acc); outline-offset: 2px; }
.brd .pc-decl select { border-radius: 2px; }
.tag .pc-decl { padding: 0 10px; }
.gsheet { position: absolute; left: 0; width: 100%; z-index: 60; display: flex; flex-direction: column; border-radius: 34px; overflow: hidden; }
.gsheet[hidden] { display: none; }
.gsheet .gs-in { flex: 1; overflow-y: auto; padding: 48px 18px 32px; scrollbar-width: none; background: var(--board); color: #EAF2EE; animation: collUp .32s cubic-bezier(.2,.8,.2,1); }
.gsheet .gs-in::-webkit-scrollbar { display: none; }
.gs-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.gs-kicker { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: #F07A55; }
.gsheet h3 { margin: 4px 0 0; font-family: "Archivo", sans-serif; font-size: 26px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.05; outline: none; }
.gs-x { flex: none; width: 38px; height: 38px; border-radius: 999px; border: 1.5px solid var(--rule, #2E6157); background: none; color: inherit; font: inherit; font-size: 22px; line-height: 1; cursor: pointer; }
.gs-x:hover { border-color: var(--amber); color: var(--amber); }
.gsheet button:focus-visible { outline: 2px solid #F4EFE2; outline-offset: 2px; }
.gsheet .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.gs-body { margin-top: 18px; }
.wheel-wrap { position: relative; width: 100%; max-width: 300px; margin: 8px auto 0; }
.wheel { display: block; width: 100%; height: auto; }
.wheel .rim { fill: #0E231F; stroke: #3A7266; stroke-width: 3; }
.wheel .seg { stroke: #A69D8A; stroke-width: 1; }
.wheel .seg.s0 { fill: #F4EFE2; } .wheel .seg.s1 { fill: #DAD3C2; }
.wheel .seg.hit { fill: #FFFFFF; }
.wheel text { font-family: "Archivo", sans-serif; font-weight: 700; font-size: 12px; letter-spacing: 0.06em; fill: #17150F; }
.wheel .peg { fill: #2F6055; }
.wheel .hub { fill: #2F6055; stroke: #0E231F; stroke-width: 3; }
.wheel .hub-t { fill: #F4EFE2; font-size: 11px; letter-spacing: 0.1em; }
.wheel-wrap .pointer { position: absolute; top: -6px; left: 50%; width: 0; height: 0; margin-left: -11px; border-left: 11px solid transparent; border-right: 11px solid transparent; border-top: 24px solid var(--amber); filter: drop-shadow(0 2px 2px rgba(0,0,0,0.5)); transform-origin: 50% 0; }
.wheel-wrap .pointer.tick { animation: gsTick .14s ease-out; }
@keyframes gsTick { 0% { transform: rotate(-16deg); } 100% { transform: rotate(0); } }
.gs-flaps { display: flex; justify-content: center; flex-wrap: nowrap; margin: 18px 0 8px; min-height: 36px; perspective: 460px; }
.gs-flaps .t.tk { animation: gsFlap .16s cubic-bezier(.2,.8,.2,1); }
@keyframes gsFlap { 0% { transform: rotateX(-70deg); } 100% { transform: rotateX(0); } }
.gs-line { margin: 4px 0 0; text-align: center; font-size: 14px; line-height: 1.45; color: #CFE1DB; min-height: 1.45em; }
.gs-actions { display: grid; gap: 8px; margin-top: 16px; }
.gs-actions button, .gs-opts button { font-family: "Archivo", sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; cursor: pointer; border-radius: 3px; }
.gs-actions .gs-primary { background: var(--amber); color: #FFFFFF; border: 0; padding: 14px; font-size: 17px; box-shadow: 0 2px 0 #8A2F12, 0 6px 12px rgba(0,0,0,0.4); }
.gs-actions .gs-ghost { background: none; color: #F4EFE2; border: 1px solid #A69D8A; padding: 11px; font-size: 13px; }
.gs-actions .gs-ghost:hover { border-color: #F4EFE2; }
.gs-actions button[disabled] { opacity: 0.5; cursor: default; }
.gs-actions [hidden] { display: none; }
.gs-step { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--lbl); }
.gs-progress { display: flex; gap: 4px; margin: 10px 0 0; }
.gs-progress i { flex: 1; height: 3px; background: var(--rule, #2E6157); border-radius: 2px; }
.gs-progress i.on { background: var(--amber); }
.gs-q { margin: 16px 0 14px; font-family: "Archivo", sans-serif; font-size: 22px; font-weight: 700; line-height: 1.15; }
.gs-opts { display: grid; gap: 8px; }
.gs-opts button { display: flex; align-items: center; gap: 12px; text-align: left; background: #F4EFE2; color: #17150F; border: 0; padding: 13px 14px; font-size: 16px; box-shadow: 0 1px 0 rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.75); }
.gs-opts button .o-l { color: #B8401C; font-size: 13px; }
.gs-opts button:hover:not([disabled]) { background: #FFFFFF; }
.gs-opts button.picked { background: var(--amber); color: #FFFFFF; } .gs-opts button.picked .o-l { color: #FFFFFF; }
.gs-opts button[disabled]:not(.picked) { opacity: 0.55; }
.gs-small { margin: 18px 0 0; text-align: center; font-size: 12px; line-height: 1.5; color: var(--lbl); }
.gs-link { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.gate-tally ul { margin: 6px 0 8px; padding-left: 18px; }
.gate-tally li span { color: var(--g-ink-2); }
.gate-tally button { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .gsheet .gs-in, .wheel-wrap .pointer.tick, .gs-flaps .t.tk { animation: none; } }

/* ================= v4q — CHANCE: wheel / slots / dice ================= */
.gs-chances { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 12px; }
.gs-pips { display: flex; gap: 6px; }
.gs-pips i { width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid var(--amber); }
.gs-pips i.on { background: var(--amber); }
.mech-pick { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid #A69D8A; border-radius: 3px; overflow: hidden; margin-bottom: 12px; }
.mech-pick button { background: none; border: 0; border-left: 1px solid #A69D8A; color: #F4EFE2; font-family: "Archivo", sans-serif; font-weight: 700; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; padding: 10px 4px; cursor: pointer; }
.mech-pick button:first-child { border-left: 0; }
.mech-pick button[aria-checked="true"] { background: #F4EFE2; color: #17150F; }
.mech-pick button[disabled] { opacity: 0.5; cursor: default; }
.chance-stage { min-height: 244px; display: flex; align-items: center; justify-content: center; }
.chance-stage .wheel-wrap { max-width: 244px; margin: 0 auto; }
.wheel .seg.yours { fill: #F4EFE2; } .wheel .seg.fromboard { fill: #C8D6D0; }
.slot-machine { display: flex; align-items: center; gap: 12px; }
.slot-window { position: relative; width: 224px; height: 132px; overflow: hidden; background: #0E231F; border: 3px solid #3A7266; border-radius: 4px; }
.slot-window::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(14,35,31,0.75) 0, rgba(14,35,31,0) 30%, rgba(14,35,31,0) 70%, rgba(14,35,31,0.75) 100%); }
.slot-window::after { content: ""; position: absolute; left: 0; right: 0; top: 44px; height: 44px; z-index: 2; border-top: 2px solid var(--amber); border-bottom: 2px solid var(--amber); pointer-events: none; }
.slot-strip { will-change: transform; }
.slot-strip div { height: 44px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; padding: 0 8px; white-space: nowrap; overflow: hidden; font-family: "Archivo", sans-serif; font-weight: 700; letter-spacing: 0.06em; color: #17150F; background: #F4EFE2; border-bottom: 1px solid #A69D8A; }
.slot-strip div.fromboard { background: #C8D6D0; }
.slot-lever { position: relative; width: 20px; height: 116px; }
.slot-lever::after { content: ""; position: absolute; left: 5px; bottom: 0; width: 10px; height: 16px; border-radius: 2px; background: #3A7266; }
.slot-lever i { position: absolute; left: 7px; bottom: 14px; width: 6px; height: 86px; border-radius: 3px; background: #A69D8A; transform-origin: 50% 100%; transition: transform .22s cubic-bezier(.2,.8,.2,1); }
.slot-lever i::before { content: ""; position: absolute; left: -7px; top: -16px; width: 20px; height: 20px; border-radius: 50%; background: var(--amber); box-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.slot-lever.pulled i { transform: scaleY(0.3); }
.die-wrap { padding: 24px; }
.die { width: 124px; height: 124px; box-sizing: border-box; border-radius: 20px; padding: 16px; display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); background: #F4EFE2; box-shadow: 0 3px 0 #A69D8A, 0 14px 26px rgba(0,0,0,0.5), inset 0 2px 0 #FFFFFF; transition: transform .1s ease-out; }
.die i { width: 22px; height: 22px; border-radius: 50%; place-self: center; background: #17150F; box-shadow: inset 0 2px 3px rgba(0,0,0,0.6); visibility: hidden; }
.die i.on { visibility: visible; }
.die.one i.on { background: var(--amber); width: 28px; height: 28px; }
.cands { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 4px; }
.cands li { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 3px; border: 1px solid transparent; font-size: 13px; transition: background .12s, border-color .12s; }
.cands li b { flex: none; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 4px; background: #F4EFE2; color: #17150F; font-family: "Archivo", sans-serif; font-size: 12px; }
.cands li.fromboard b { background: #C8D6D0; }
.cands li .w { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: "Archivo", sans-serif; font-weight: 700; letter-spacing: 0.04em; color: #F4EFE2; }
.cands li .src { flex: none; font-size: 9.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--lbl); }
.cands li.hit { border-color: var(--amber); background: rgba(226,84,44,0.16); }
@media (prefers-reduced-motion: reduce) { .slot-lever i, .die { transition: none; } }

/* ================= v4r — CHANCE: twelve daily words, d12, date slot ================= */
.gs-chance .cands { grid-template-columns: 1fr 1fr; gap: 4px 6px; }
.gs-chance .cands li { gap: 7px; padding: 5px 6px; }
.gs-chance .cands li .w { font-size: 12px; }
.slot-strip div.s1 { background: #DAD3C2; }
.d12-wrap { padding: 12px; }
.d12 { display: block; width: 156px; height: auto; transition: transform .1s ease-out; filter: drop-shadow(0 12px 18px rgba(0,0,0,0.45)); }
.d12-out { fill: #E9E2D1; stroke: #A69D8A; stroke-width: 1.5; stroke-linejoin: round; }
.d12-facets line { stroke: #A69D8A; stroke-width: 1.2; }
.d12-in { fill: #F7F3E9; stroke: #A69D8A; stroke-width: 1.2; stroke-linejoin: round; }
.d12-n { font-family: "Archivo", sans-serif; font-weight: 800; font-size: 26px; fill: #17150F; }
.d12-n.lo { text-decoration: underline; }
.dateslot.live { cursor: pointer; border-bottom: 1px dotted currentColor; padding-bottom: 1px; }
.dateslot.live:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.tag .top .dateslot { color: var(--ink-2); font-weight: 600; letter-spacing: 0.06em; }
@media (prefers-reduced-motion: reduce) { .d12 { transition: none; } }

/* ================= v4s — bonus pips, column-major list, two tumbling d6 ================= */
.gs-pips i.bonus { border-color: #F2C14E; border-radius: 2px; transform: rotate(45deg) scale(0.9); }
.gs-pips i.bonus.on { background: #F2C14E; }
.gs-chance .cands { grid-auto-flow: column; grid-template-rows: repeat(6, auto); }
.dice2 { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.dice2-row { display: flex; gap: 34px; align-items: flex-end; padding-top: 28px; }
.die3-slot { position: relative; width: 70px; height: 96px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; }
.die3-toss { perspective: 520px; }
.die3 { position: relative; width: 64px; height: 64px; transform-style: preserve-3d; }
.die3 .face { position: absolute; inset: 0; box-sizing: border-box; border-radius: 11px; padding: 8px; display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); backface-visibility: hidden; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.12), inset 0 -3px 6px rgba(0,0,0,0.12); }
.die3 .face i { width: 11px; height: 11px; border-radius: 50%; place-self: center; visibility: hidden; }
.die3 .face i.on { visibility: visible; }
.die3.bone .face { background: #F4EFE2; } .die3.bone .face i { background: #17150F; }
.die3.red .face { background: #E2542C; } .die3.red .face i { background: #FFF6EC; }
.die3 .f1 { transform: translateZ(32px); }
.die3 .f6 { transform: rotateY(180deg) translateZ(32px); }
.die3 .f3 { transform: rotateY(90deg) translateZ(32px); }
.die3 .f4 { transform: rotateY(-90deg) translateZ(32px); }
.die3 .f2 { transform: rotateX(90deg) translateZ(32px); }
.die3 .f5 { transform: rotateX(-90deg) translateZ(32px); }
.die3-shadow { width: 60px; height: 10px; margin-top: 10px; border-radius: 50%; background: radial-gradient(ellipse at center, rgba(0,0,0,0.5), rgba(0,0,0,0) 70%); }
.die3-toss.tossing { animation: dieToss 1.6s cubic-bezier(.2,.7,.3,1) both; }
@keyframes dieToss {
  0%   { transform: translate(-70px, -80px) scale(0.8); }
  35%  { transform: translate(-8px, 0) scale(1); }
  50%  { transform: translate(0, -26px); }
  64%  { transform: translate(4px, 0); }
  74%  { transform: translate(6px, -8px); }
  84%  { transform: translate(7px, 0); }
  92%  { transform: translate(7px, -2px); }
  100% { transform: translate(7px, 0); }
}
.dice2-key { margin: 10px 0 0; font-size: 11px; line-height: 1.4; color: #CFE1DB; text-align: center; }
.dice2-key b { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin: 0 3px 0 8px; vertical-align: -1px; }
.dice2-key .k-red { background: #E2542C; margin-left: 0; } .dice2-key .k-bone { background: #F4EFE2; }
@media (prefers-reduced-motion: reduce) { .die3-toss.tossing { animation: none; } }

/* ================= v4t — gate sheets themed per screen (Chance + Daily quiz on all five UIs) ================= */
.gsheet { --gs-bg: #14302B; --gs-ink: #EAF2EE; --gs-soft: #CFE1DB; --gs-muted: #8FB3A9; --gs-acc: #E2542C; --gs-acc-ink: #FFFFFF; --gs-acc-shadow: #8A2F12; --gs-kicker: #F07A55;
  --gs-rule: #2E6157; --gs-ghost: #A69D8A; --gs-chip: #F4EFE2; --gs-chip-alt: #DAD3C2; --gs-chip-ink: #17150F; --gs-rim: #0E231F; --gs-rim-edge: #3A7266; --gs-hub: #2F6055;
  --gs-optl: #B8401C; --gs-hit: rgba(226,84,44,0.16); --gs-head: "Archivo", sans-serif; --gs-case: uppercase; --gs-track: 0.04em; }
.brd.bus .gsheet { --gs-bg: #121212; --gs-ink: #FFF0C2; --gs-soft: #E8DDBA; --gs-muted: #B3A98C; --gs-acc: #F5B940; --gs-acc-ink: #121212; --gs-acc-shadow: #7A5F14; --gs-kicker: #F5B940;
  --gs-rule: #2E2C26; --gs-ghost: #8E8672; --gs-chip: #F0EBDD; --gs-chip-alt: #DCD5C3; --gs-chip-ink: #1A1A1A; --gs-rim: #0A0A0A; --gs-rim-edge: #55575A; --gs-hub: #3A3A3A;
  --gs-optl: #8A5F0C; --gs-hit: rgba(245,185,64,0.16); --gs-head: "Pathway Gothic One", sans-serif; --gs-track: 0.06em; }
.brd.air .gsheet { --gs-bg: #072048; --gs-ink: #FFFFFF; --gs-soft: #C9DAF2; --gs-muted: #8FA8C9; --gs-acc: #7FB2FF; --gs-acc-ink: #072048; --gs-acc-shadow: #245089; --gs-kicker: #7FB2FF;
  --gs-rule: #1D4278; --gs-ghost: #3D6AA8; --gs-chip: #E8F1FF; --gs-chip-alt: #C9DAF2; --gs-chip-ink: #072048; --gs-rim: #051733; --gs-rim-edge: #245089; --gs-hub: #10346B;
  --gs-optl: #245089; --gs-hit: rgba(127,178,255,0.18); --gs-head: "Jost", sans-serif; --gs-track: 0.08em; }
.lex .gsheet { --gs-bg: #23418F; --gs-ink: #F3ECD9; --gs-soft: #E3DCC8; --gs-muted: #C7C0AC; --gs-acc: #D9A84A; --gs-acc-ink: #16295C; --gs-acc-shadow: #8A6414; --gs-kicker: #D9A84A;
  --gs-rule: rgba(243,236,217,0.3); --gs-ghost: rgba(243,236,217,0.55); --gs-chip: #F3ECD9; --gs-chip-alt: #E3DAC3; --gs-chip-ink: #16295C; --gs-rim: #1B3478; --gs-rim-edge: #D9A84A; --gs-hub: #16295C;
  --gs-optl: #8A6414; --gs-hit: rgba(217,168,74,0.2); --gs-head: "Bricolage Grotesque", sans-serif; --gs-case: none; --gs-track: -0.02em; }
.tag .gsheet { --gs-bg: #E7E4DC; --gs-ink: #17181A; --gs-soft: #3D3C39; --gs-muted: #5C5B57; --gs-acc: #D42B2B; --gs-acc-ink: #FFFFFF; --gs-acc-shadow: #8E1B1B; --gs-kicker: #D42B2B;
  --gs-rule: rgba(23,24,26,0.18); --gs-ghost: rgba(23,24,26,0.45); --gs-chip: #FFFFFF; --gs-chip-alt: #F1EEE7; --gs-chip-ink: #17181A; --gs-rim: #17181A; --gs-rim-edge: #D42B2B; --gs-hub: #D42B2B;
  --gs-optl: #D42B2B; --gs-hit: rgba(212,43,43,0.12); --gs-head: "Archivo", sans-serif; --gs-case: none; --gs-track: -0.02em; }
.gsheet .gs-in { background: var(--gs-bg); color: var(--gs-ink); }
.lex .gsheet .gs-in { font-family: "Bricolage Grotesque", sans-serif; }
.tag .gsheet .gs-in { font-family: "Archivo", sans-serif; }
.gsheet .gs-kicker { color: var(--gs-kicker); }
.gsheet h3 { font-family: var(--gs-head); text-transform: var(--gs-case); letter-spacing: var(--gs-track); }
.lex .gsheet h3, .tag .gsheet h3 { display: block; border: 0; padding: 0; margin: 4px 0 0; color: var(--gs-ink); font-size: 30px; font-weight: 800; line-height: 1.05; }
.gsheet .gs-x { border-color: var(--gs-ghost); }
.gsheet .gs-x:hover { border-color: var(--gs-acc); color: var(--gs-acc); }
.gsheet button:focus-visible { outline-color: var(--gs-ink); }
.gsheet .gs-step, .gsheet .gs-small { color: var(--gs-muted); }
.gsheet .gs-line, .gsheet .dice2-key { color: var(--gs-soft); }
.gsheet .gs-q { font-family: var(--gs-head); }
.gsheet .gs-progress i { background: var(--gs-rule); } .gsheet .gs-progress i.on { background: var(--gs-acc); }
.gsheet .gs-pips i { border: 1.5px solid var(--gs-acc); } .gsheet .gs-pips i.on { background: var(--gs-acc); }
.gsheet .gs-pips i.bonus { border: 1.5px solid #F2C14E; } .gsheet .gs-pips i.bonus.on { background: #F2C14E; }
.gsheet .gs-actions .gs-primary { background: var(--gs-acc); color: var(--gs-acc-ink); box-shadow: 0 2px 0 var(--gs-acc-shadow), 0 6px 12px rgba(0,0,0,0.3); }
.gsheet .gs-actions .gs-ghost { color: var(--gs-ink); border-color: var(--gs-ghost); }
.gsheet .gs-actions .gs-ghost:hover { border-color: var(--gs-ink); }
.gsheet .gs-opts button { background: var(--gs-chip); color: var(--gs-chip-ink); box-shadow: 0 1px 0 rgba(0,0,0,0.3), inset 0 0 0 1px var(--gs-rule); }
.gsheet .gs-opts button .o-l { color: var(--gs-optl); }
.gsheet .gs-opts button:hover:not([disabled]) { background: var(--gs-chip-alt); }
.gsheet .gs-opts button.picked { background: var(--gs-acc); color: var(--gs-acc-ink); } .gsheet .gs-opts button.picked .o-l { color: var(--gs-acc-ink); }
.gsheet .mech-pick { border-color: var(--gs-ghost); }
.gsheet .mech-pick button { color: var(--gs-ink); border-left-color: var(--gs-ghost); }
.gsheet .mech-pick button[aria-checked="true"] { background: var(--gs-chip); color: var(--gs-chip-ink); }
.gsheet .wheel .rim { fill: var(--gs-rim); stroke: var(--gs-rim-edge); }
.gsheet .wheel .seg { stroke: var(--gs-ghost); }
.gsheet .wheel .seg.s0 { fill: var(--gs-chip); } .gsheet .wheel .seg.s1 { fill: var(--gs-chip-alt); } .gsheet .wheel .seg.hit { fill: #FFFFFF; }
.gsheet .wheel text { fill: var(--gs-chip-ink); }
.gsheet .wheel .peg { fill: var(--gs-hub); }
.gsheet .wheel .hub { fill: var(--gs-hub); stroke: var(--gs-rim); }
.gsheet .wheel .hub-t { fill: var(--gs-chip); }
.gsheet .wheel-wrap .pointer { border-top: 24px solid var(--gs-acc); }
.gsheet .slot-window { background: var(--gs-rim); border-color: var(--gs-rim-edge); }
.gsheet .slot-window::before { background: linear-gradient(180deg, color-mix(in srgb, var(--gs-rim) 75%, transparent) 0, transparent 30%, transparent 70%, color-mix(in srgb, var(--gs-rim) 75%, transparent) 100%); }
.gsheet .slot-window::after { border-top: 2px solid var(--gs-acc); border-bottom: 2px solid var(--gs-acc); }
.gsheet .slot-strip div { background: var(--gs-chip); color: var(--gs-chip-ink); border-bottom-color: var(--gs-ghost); }
.gsheet .slot-strip div.s1 { background: var(--gs-chip-alt); }
.gsheet .slot-lever::after { background: var(--gs-rim-edge); } .gsheet .slot-lever i { background: var(--gs-ghost); } .gsheet .slot-lever i::before { background: var(--gs-acc); }
.gsheet .cands li b { background: var(--gs-chip); color: var(--gs-chip-ink); box-shadow: inset 0 0 0 1px var(--gs-rule); }
.gsheet .cands li .w { color: var(--gs-ink); }
.gsheet .cands li.hit { border: 1px solid var(--gs-acc); background: var(--gs-hit); }
.gs-plain { display: inline-block; white-space: nowrap; font-size: 34px; line-height: 1.1; font-weight: 800; letter-spacing: -0.01em; color: var(--gs-ink); }
.gs-plain b { color: var(--gs-acc); font-weight: inherit; }
.lex .gs-plain { font-family: "Bricolage Grotesque", sans-serif; font-variation-settings: "opsz" 48; }
.tag .gs-plain { font-family: "Permanent Marker", "Marker Felt", "Chalkboard SE", "Comic Sans MS", sans-serif; font-weight: 400; }
.tag .gs-plain b { font-family: "Archivo", sans-serif; font-weight: 700; }
.gs-plain.tk { animation: gsPlain .14s ease-out; }
@keyframes gsPlain { from { opacity: 0.35; transform: translateY(3px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .gs-plain.tk { animation: none; } }
.gsheet h3 .gs-sub { display: block; margin-top: 5px; font-family: "Archivo", sans-serif; font-size: 12px; font-weight: 700; line-height: 1.2; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gs-muted); } /* PRE-SAGE / The daily dozen */

/* ================= v4v — PRIMARY NAV, SWIPE MODE, THEMES, SHARE, PREDASH JOURNEY ================= */
.gsheet [hidden] { display: none !important; }
/* -- nav: five pills, sticky along the foot of every screen; Shuffle is a split pill (tap | swipe) -- */
.screen { --pn-bg: rgba(20,48,43,0.94); --pn-ink: #EAF2EE; --pn-muted: #8FB3A9; --pn-chip: rgba(244,239,226,0.06); --pn-rule: #2E6157; --pn-acc: #E2542C; --pn-font: "Archivo", sans-serif; --pn-case: none; }
.lex { --pn-bg: rgba(27,52,120,0.95); --pn-ink: #F3ECD9; --pn-muted: #C7C0AC; --pn-chip: rgba(243,236,217,0.06); --pn-rule: rgba(243,236,217,0.28); --pn-acc: #D9A84A; --pn-font: "Bricolage Grotesque", sans-serif; --pn-case: none; }
.tag { --pn-bg: rgba(231,228,220,0.95); --pn-ink: #17181A; --pn-muted: #5C5B57; --pn-chip: #FFFFFF; --pn-rule: rgba(23,24,26,0.2); --pn-acc: #D42B2B; --pn-font: "Archivo", sans-serif; --pn-case: none; }
nav.pnav { display: flex; gap: 5px; margin: 16px 0; padding: 8px 10px; background: var(--pn-bg); border: 1px solid var(--pn-rule); border-radius: 18px; }
nav.pnav .pn { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 7px 2px 6px; border-radius: 14px; border: 1px solid var(--pn-rule); background: var(--pn-chip); color: var(--pn-ink); font-family: var(--pn-font); font-size: 10px; font-weight: 700; line-height: 1.05; letter-spacing: 0; text-transform: var(--pn-case); text-align: center; cursor: pointer; }
nav.pnav .pn span { max-width: 100%; overflow-wrap: normal; }
nav.pnav .pn svg.i { font-size: 18px; stroke-width: 1.7; }
nav.pnav .pn:hover { border-color: var(--pn-acc); }
nav.pnav .pn:focus-visible { outline: 2px solid var(--pn-acc); outline-offset: 2px; }
nav.pnav .pn svg.i, nav.pnav .pn svg.mark { color: var(--pn-acc); }
nav.pnav .pn-split { flex: 2 1 0; min-width: 0; display: flex; border: 1.5px solid var(--pn-acc); border-radius: 14px; overflow: hidden; background: var(--pn-chip); }
nav.pnav .pn-split .pn { border: 0; border-radius: 0; background: none; }
nav.pnav .pn-split .pn-swipe { border-left: 1.5px dashed var(--pn-acc); }
.tag nav.pnav .pn-split { background: #FFFFFF; }
/* v4w — per-skin pill styling: dictionary tab / sticker badge / enamel switch */
.lex nav.pnav { border-radius: 6px; }
.lex nav.pnav .pn { font-family: "Playfair Display", Georgia, serif; border-radius: 2px; border-top: 2px solid var(--pn-acc); text-transform: none; letter-spacing: 0; font-weight: 700; font-size: 10px; }
.lex nav.pnav .pn-split { border-radius: 2px; overflow: hidden; }
.tag nav.pnav .pn { border: 2px solid var(--pn-ink); border-radius: 16px; box-shadow: 2px 3px 0 rgba(23,24,26,0.14); }
.tag nav.pnav .pn-split { border-width: 2px; box-shadow: 2px 3px 0 rgba(23,24,26,0.14); }
.brd.mech nav.pnav .pn, .brd.mech nav.pnav .pn-split { border-radius: 4px; }
.brd.mech nav.pnav .pn { font-family: "Archivo", sans-serif; font-weight: 800; letter-spacing: 0; text-transform: none; font-size: 10px; box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), inset 0 -1px 0 rgba(0,0,0,0.4); }
/* v4x — word colour consistent per skin (icon/symbol keeps the accent colour set above) */
.lex nav.pnav .pn, .lex nav.pnav .pn-split .pn { color: #FFFFFF; }
.brd.mech nav.pnav .pn, .brd.mech nav.pnav .pn-split .pn { color: #FFFFFF; }
.tag nav.pnav .pn, .tag nav.pnav .pn-split .pn { color: #17181A; }

/* -- sheets reuse the v4t per-skin --gs-* tokens; these are the new parts -- */
.gsheet h4 { margin: 0; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding-bottom: 6px; border-bottom: 1.5px solid var(--gs-rule); font-family: var(--gs-head); font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gs-ink); outline: none; }
.gsheet h4 span { font-family: inherit; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: none; color: var(--gs-muted); }

/* Themes: a matrix of categories, then a 3×3 matrix of words */
.th-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.th-tile { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 2px; aspect-ratio: 1 / 1; padding: 9px; text-align: left; border: 0; border-radius: 10px; background: var(--gs-chip); color: var(--gs-chip-ink); box-shadow: inset 0 0 0 1px var(--gs-rule); cursor: pointer; font: inherit; }
.th-tile:nth-child(2n) { background: var(--gs-chip-alt); }
.th-tile b { font-family: var(--gs-head); font-size: 14.5px; line-height: 1.05; letter-spacing: 0.01em; }
.th-tile .th-blurb { font-size: 10.5px; line-height: 1.2; opacity: 0.72; }
.th-tile .th-n { position: absolute; top: 8px; right: 8px; font-size: 10px; font-weight: 700; font-variant-numeric: tabular-nums; padding: 2px 6px; border-radius: 999px; background: var(--gs-acc); color: var(--gs-acc-ink); }
.th-tile:hover { box-shadow: inset 0 0 0 2px var(--gs-acc); }
.th-bar { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 13px; color: var(--gs-soft); }
.th-h { flex-wrap: wrap; font-size: 20px !important; letter-spacing: 0.02em !important; }
.th-words { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 12px; }
.th-words button { min-height: 56px; padding: 6px 4px; border: 0; border-radius: 8px; background: var(--gs-chip); color: var(--gs-chip-ink); box-shadow: inset 0 0 0 1px var(--gs-rule); font-family: var(--gs-head); font-size: 12px; font-weight: 700; letter-spacing: 0.02em; line-height: 1.1; overflow-wrap: anywhere; cursor: pointer; }
.th-words button[aria-pressed="true"] { background: var(--gs-acc); color: var(--gs-acc-ink); }

/* Share: a caption the person copies themselves */
.sh-text { display: block; width: 100%; margin-top: 10px; padding: 12px; border: 1px solid var(--gs-rule); border-radius: 8px; background: var(--gs-chip); color: var(--gs-chip-ink); font: 500 15px/1.45 ui-monospace, "SFMono-Regular", Menlo, monospace; resize: vertical; }
.pc-move .pc-share { border-style: dashed; color: var(--pc-acc); }

/* Swipe mode: full-screen cards; left = PRE-, right = POST-; Skip is its own striped slab at the foot */
.gs-swipe .gs-in { display: flex; flex-direction: column; overflow: hidden; padding-bottom: 22px; }
.gs-swipe .gs-body { flex: 1; min-height: 0; display: flex; flex-direction: column; margin-top: 12px; }
.sw-status { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sw-badge { padding: 4px 10px; border-radius: 999px; background: var(--gs-acc); color: var(--gs-acc-ink); font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.sw-count { font-size: 12px; color: var(--gs-muted); font-variant-numeric: tabular-nums; }
.sw-rails { display: flex; justify-content: space-between; margin-top: 12px; }
.sw-rail { display: flex; flex-direction: column; font-family: var(--gs-head); color: var(--gs-soft); }
.sw-rail b { font-size: 16px; letter-spacing: 0.06em; color: var(--gs-acc); }
.sw-rail small { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gs-muted); }
.sw-rail.post { align-items: flex-end; }
.sw-rail b { transition: transform .12s ease-out; transform-origin: left center; }
.sw-rail.post b { transform-origin: right center; }
.gs-body[data-lean="pre"] .sw-rail.pre b, .gs-body[data-lean="post"] .sw-rail.post b { transform: scale(1.35); padding: 0 4px; border-radius: 4px; background: var(--gs-acc); color: var(--gs-acc-ink); }
.sw-deck { position: relative; flex: 1; min-height: 220px; margin: 10px 0 8px; }
.sw-card { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 18px; border-radius: 22px; background: var(--gs-chip); color: var(--gs-chip-ink); box-shadow: 0 1px 0 rgba(0,0,0,0.2), 0 14px 30px rgba(0,0,0,0.3), inset 0 0 0 1px var(--gs-rule); -webkit-user-select: none; user-select: none; touch-action: none; overflow: hidden; }
.sw-top { cursor: grab; will-change: transform; outline: none; --lean: 0; }
.sw-top:active { cursor: grabbing; }
.sw-top:focus-visible { box-shadow: 0 0 0 3px var(--gs-acc), 0 14px 30px rgba(0,0,0,0.3); }
.sw-next { transform: translateY(12px) scale(0.94); opacity: 0.6; background: var(--gs-chip-alt); }
.sw-kicker { font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.6; min-height: 1em; }
.sw-w { font-family: var(--gs-head); font-weight: 800; font-size: 48px; line-height: 1; letter-spacing: 0.01em; white-space: nowrap; }
.tag .sw-w { font-family: "Permanent Marker", "Marker Felt", sans-serif; font-weight: 400; }
.sw-stamp { position: absolute; top: 22px; left: 50%; padding: 5px 10px; border: 3px solid var(--gs-acc); border-radius: 8px; color: var(--gs-acc); font-family: var(--gs-head); font-size: 20px; font-weight: 800; letter-spacing: 0.06em; white-space: nowrap; max-width: 86%; overflow: hidden; text-overflow: ellipsis; opacity: 0; pointer-events: none; }
.sw-stamp.pre { transform: translateX(-50%) rotate(-8deg); }
.sw-stamp.post { transform: translateX(-50%) rotate(8deg); }
.sw-top[data-lean="pre"] .sw-stamp.pre, .sw-top[data-lean="post"] .sw-stamp.post { opacity: var(--lean); }
.sw-alt { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.sw-alt button { min-width: 0; padding: 7px 6px; border: 1px solid var(--gs-ghost); border-radius: 8px; background: none; color: var(--gs-soft); font: inherit; font-size: 11.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.sw-alt button:last-child { text-align: right; }
.sw-toast { min-height: 2.9em; margin: 8px 0 6px; font-size: 13px; line-height: 1.45; text-align: center; color: var(--gs-soft); }
.sw-foot { display: flex; gap: 8px; align-items: stretch; }
.sw-undo { flex: none; padding: 0 14px; border: 1px solid var(--gs-ghost); border-radius: 14px; background: none; color: var(--gs-ink); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.sw-skip { flex: 1; display: flex; align-items: center; gap: 12px; padding: 11px 16px; border: 2px solid var(--gs-ink); border-radius: 18px; background: repeating-linear-gradient(-45deg, var(--gs-chip) 0 9px, var(--gs-chip-alt) 9px 18px); color: var(--gs-chip-ink); box-shadow: 0 3px 0 var(--gs-ink); text-align: left; cursor: pointer; font: inherit; }
.sw-skip:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--gs-ink); }
.sw-skip-g { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--gs-chip-ink); color: var(--gs-chip); font-size: 22px; line-height: 1; }
.sw-skip-t { display: flex; flex-direction: column; font-family: var(--gs-head); font-size: 21px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1; }
.sw-skip-t small { margin-top: 4px; font-family: "Figtree", system-ui, sans-serif; font-size: 11px; font-weight: 600; letter-spacing: 0.02em; text-transform: none; opacity: 0.75; }
.gs-swipe button:focus-visible { outline: 2px solid var(--gs-acc); outline-offset: 2px; }

/* PREDASH Journey */
.jr-sec { margin-top: 22px; }
.jr-sec:first-child { margin-top: 0; }
.jr-help, .jr-note, .jr-empty { margin: 8px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--gs-soft); }
.jr-list { margin: 10px 0 0; padding-left: 26px; font-family: var(--gs-head); font-weight: 700; font-size: 15px; letter-spacing: 0.02em; line-height: 1.5; }
.jr-list li::marker { color: var(--gs-acc); font-variant-numeric: tabular-nums; }
.jr-draft { list-style: none; margin: 10px 0 0; padding: 6px; min-height: 60px; border: 2px dashed var(--gs-ghost); border-radius: 12px; }
.jr-dragging .jr-draft { border-color: var(--gs-acc); background: var(--gs-hit); }
.jr-drop-hint { padding: 14px; text-align: center; font-size: 13px; color: var(--gs-muted); }
.jr-item, .jr-card { display: flex; align-items: center; gap: 8px; margin: 5px 0; padding: 6px 8px 6px 4px; border-radius: 10px; background: var(--gs-chip); color: var(--gs-chip-ink); box-shadow: inset 0 0 0 1px var(--gs-rule); }
.jr-draft .jr-item:first-child { margin-top: 0; } .jr-draft .jr-item:last-child { margin-bottom: 0; }
.jr-grip { flex: none; display: flex; flex-direction: column; justify-content: center; gap: 3px; width: 26px; height: 34px; padding: 0 6px; cursor: grab; touch-action: none; }
.jr-grip i { display: block; height: 2px; border-radius: 1px; background: currentColor; opacity: 0.5; }
.jr-n { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--gs-acc); color: var(--gs-acc-ink); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.jr-w { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--gs-head); font-weight: 700; font-size: 14px; letter-spacing: 0.02em; }
.jr-kb { flex: none; display: flex; gap: 3px; }
.jr-kb button, .jr-card [data-add] { width: 28px; height: 28px; padding: 0; border: 1px solid var(--gs-rule); border-radius: 7px; background: none; color: inherit; font: inherit; font-size: 13px; cursor: pointer; }
.jr-kb button[disabled], .jr-card [data-add][disabled] { opacity: 0.3; cursor: default; }
.jr-card [data-add] { border-radius: 50%; background: var(--gs-acc); color: var(--gs-acc-ink); border: 0; font-size: 17px; font-weight: 700; }
.jr-tag { flex: none; font-size: 9.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.6; }
.jr-card[data-list="retired"] .jr-w { opacity: 0.7; }
.jr-ph { list-style: none; margin: 5px 0; border: 2px dashed var(--gs-acc); border-radius: 10px; background: var(--gs-hit); }
.jr-lifted { opacity: 0.35; }
.jr-ghost { position: fixed; top: 0; left: 0; z-index: 200; margin: 0; pointer-events: none; box-shadow: 0 16px 34px rgba(0,0,0,0.4), inset 0 0 0 2px var(--gs-acc); list-style: none; }
.jr-out .jr-ghost { opacity: 0.55; box-shadow: 0 16px 34px rgba(0,0,0,0.4), inset 0 0 0 2px var(--gs-ghost); }
.jr-past-item { margin-top: 10px; padding: 10px 12px; border: 1px solid var(--gs-rule); border-radius: 10px; }
.jr-past-item .jr-list { margin-top: 0; font-size: 13.5px; }
.jr-when { margin: 8px 0; padding: 0; list-style: none; font-size: 11.5px; color: var(--gs-muted); font-variant-numeric: tabular-nums; }
.jr-past-item .gs-link { font-size: 13px; color: var(--gs-soft); }
@media (prefers-reduced-motion: reduce) { .sw-top { transition: none !important; } }
/* Narrow devices: drop the phone mockup and let the UI fill the viewport. */
@media (max-width: 500px) {
  html, body { height: 100%; background: #0B0B0C; }
  .gallery { display: block; max-width: none; margin: 0; padding: 0; min-height: 0 !important; }
  .option { max-width: none; width: 100%; gap: 0; }
  .phone { width: 100%; height: 100vh; height: 100dvh; padding: 0; border-radius: 0; box-shadow: none; background: transparent; }
  .screen { border-radius: 0; }
  .verstamp { display: none; }
}
