/* [play]: the Bankasi Media games room. Same type and surfaces as bankasimedia.com:
   Geist, an 800-weight uppercase wordmark, 600-weight headings with tight tracking,
   light-weight graphite brackets, frosted charcoal cards and the blue-silver halo on hover
   (no lift). */
@font-face { font-family: "Geist"; src: url("fonts/geist-v1.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@property --silver-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes silver-spin { to { --silver-angle: 360deg; } }

:root {
  --ink: #151515; --paper: #f4f3ef; --soft: #e0e0e0; --muted: #a09c94; --bracket: #9b978f; --label: #c9d1d8;
  --card: rgba(24, 26, 29, .52); --line: rgba(255, 255, 255, .16); --line-strong: rgba(255, 255, 255, .34);
  --glow: 0 0 6px rgba(255,255,255,.7), 0 0 22px rgba(227,237,255,.7), 0 0 48px rgba(201,220,246,.45);
  --halo: conic-gradient(from var(--silver-angle),
    rgba(140,152,168,.25) 0deg, rgba(175,190,208,.6) 60deg, rgba(225,238,255,.95) 115deg,
    #fff 145deg, rgba(240,248,255,1) 165deg, rgba(180,195,215,.8) 205deg,
    rgba(125,138,155,.35) 260deg, rgba(140,152,168,.25) 360deg);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
  font-family: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--paper); letter-spacing: -.01em;
  background:
    radial-gradient(1100px 600px at 78% -10%, rgba(201,220,246,.10), transparent 60%),
    radial-gradient(900px 500px at 0% 30%, rgba(255,255,255,.04), transparent 60%),
    #151515;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
a { color: inherit; }
.br { font-weight: 300; color: var(--bracket); }

/* nav */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px clamp(18px, 4vw, 48px); }
.brand { display: flex; align-items: baseline; gap: 16px; text-decoration: none; }
.wordmark { font-weight: 800; font-size: 16.8px; letter-spacing: .18em; text-transform: uppercase; }
.wordmark sup { font-size: 7.4px; letter-spacing: .22em; margin-left: .1em; vertical-align: 1.3em; }
.play-mark { font-size: 17px; font-weight: 600; letter-spacing: .01em; }
.nav-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1px solid #a0a0a0; border-radius: 8px; background: rgba(255,255,255,.07); font-size: 11.4px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.nav-btn svg { width: 14px; height: 14px; }
.nav-btn:hover, .nav-btn:focus-visible { outline: none; border-color: #fff; box-shadow: 0 0 18px rgba(175,202,238,.45); }

/* hero */
main { flex: 1; width: min(1180px, 100%); margin: 0 auto; padding: 0 clamp(18px, 4vw, 48px); }
.hero { padding: clamp(28px, 8vh, 96px) 0 clamp(26px, 5vh, 52px); }
h1 { margin: 0; font-weight: 600; font-size: clamp(48px, 8.4vw, 104px); line-height: 1; letter-spacing: -.035em; }
.glow { text-shadow: var(--glow); }
.lede { max-width: 560px; margin: 20px 0 0; font-size: 17px; line-height: 1.7; color: var(--soft); }

/* game cards */
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 22px; padding-bottom: 56px; }
.game { position: relative; display: flex; flex-direction: column; border-radius: 18px; background: var(--card); border: 1px solid var(--line-strong); box-shadow: 0 10px 30px rgba(0,0,0,.28); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); text-decoration: none; overflow: hidden; isolation: isolate; transition: border-color .3s, box-shadow .3s; }
a.game::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; background: var(--halo); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .3s; pointer-events: none; z-index: 3; }
a.game:hover, a.game:focus-visible { outline: none; border-color: transparent; box-shadow: 0 0 34px rgba(175,202,238,.28), 0 10px 30px rgba(0,0,0,.28); }
a.game:hover::before, a.game:focus-visible::before { opacity: 1; animation: silver-spin 3.6s linear infinite; }
.game-body { display: flex; flex-direction: column; gap: 12px; padding: 22px 24px 24px; flex: 1; }
.game-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.game h2 { margin: 0; font-size: 30px; font-weight: 600; letter-spacing: -.03em; line-height: 1.05; }
.game p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--soft); }
.go { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); color: var(--ink); transition: box-shadow .3s; }
.go svg { width: 18px; height: 18px; }
a.game:hover .go { box-shadow: 0 0 22px 1px rgba(175,202,238,.55), 0 0 8px 1px rgba(255,255,255,.6); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 0; padding: 0; list-style: none; }
.tags li { padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--label); }
.status { margin-top: auto !important; padding-top: 4px; font-size: 13.5px !important; font-weight: 500; color: var(--paper) !important; }
.status::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: #9fd6a8; box-shadow: 0 0 10px rgba(159,214,168,.7); vertical-align: 1px; }
.status.done::before { background: var(--bracket); box-shadow: none; }
.text-link { margin-top: auto; align-self: flex-start; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid var(--line-strong); padding-bottom: 3px; }
.text-link:hover, .text-link:focus-visible { outline: none; border-color: #fff; }
.game.soon { background: rgba(24,26,29,.32); border-color: var(--line); }

/* previews */
.preview { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--line); }

/* Deep Cut preview: a little dig on a loop */
.dc { --t: 9s; background: #f7f7f4; }
.dc-world { position: absolute; left: 0; right: 0; top: 0; height: 300%; animation: dcPan var(--t) cubic-bezier(.45,0,.2,1) infinite; }
.dc-sky { position: absolute; left: 0; right: 0; top: 0; height: 16.67%; background: linear-gradient(180deg, #fbfbf8, #efeee9); }
.dc-strata { position: absolute; left: 0; right: 0; top: 16.67%; bottom: 0; display: flex; flex-direction: column; border-top: 2px solid #151515; }
.dc-strata i { flex: 1; background: var(--c); background-image: radial-gradient(circle at 20% 30%, rgba(0,0,0,.18) 0 2px, transparent 3px), radial-gradient(circle at 70% 60%, rgba(255,255,255,.08) 0 2px, transparent 3px), radial-gradient(circle at 45% 80%, rgba(0,0,0,.14) 0 1.5px, transparent 2.5px); background-size: 46px 30px, 62px 40px, 38px 26px; border-bottom: 1px solid rgba(0,0,0,.18); }
.dc-strata i.magma { background-color: #c4461a; background-image: radial-gradient(ellipse at 50% 0, #f08a3a, transparent 70%); }
.dc-rig { position: absolute; left: 50%; top: 16.67%; width: 15%; max-width: 76px; transform: translate(-50%, -100%); margin-top: 1px; }
.dc-cable { position: absolute; left: 50%; top: 16.67%; width: 2px; margin-left: -1px; height: 0; background: linear-gradient(#151515, rgba(255,255,255,.4)); animation: dcCable var(--t) cubic-bezier(.45,0,.2,1) infinite; }
.dc-drill { position: absolute; left: 50%; top: 16.67%; width: 22px; height: 53px; margin: -50px 0 0 -11px; filter: drop-shadow(0 2px 3px rgba(0,0,0,.55)); animation: dcDrill var(--t) cubic-bezier(.45,0,.2,1) infinite; overflow: visible; }
.dc-flutes { animation: dcAuger .18s linear infinite; }
@keyframes dcAuger { to { transform: translateY(10px); } }
@keyframes dcPan { 0%, 30% { transform: translateY(0); } 72%, 88% { transform: translateY(-56.7%); } 97%, 100% { transform: translateY(0); } }
@keyframes dcDrill { 0%, 30% { top: 16.67%; } 72%, 88% { top: 76.67%; } 97%, 100% { top: 16.67%; } }
@keyframes dcCable { 0%, 30% { height: 0; } 72%, 88% { height: 60%; } 97%, 100% { height: 0; } }

.dc-prompt, .dc-answer, .dc-tier, .dc-depth { position: absolute; z-index: 2; }
.dc-prompt { left: 50%; top: 5%; transform: translateX(-50%); padding: 8px 16px 9px; border-radius: 12px; background: rgba(21,21,21,.86); text-align: center; white-space: nowrap; animation: dcPrompt var(--t) ease infinite; }
.dc-prompt small { display: block; font-size: 8.5px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); }
.dc-prompt b { display: block; margin-top: 2px; font-size: clamp(15px, 2.2vw, 19px); font-weight: 600; letter-spacing: -.03em; }
@keyframes dcPrompt { 0% { opacity: 0; transform: translate(-50%, -8px); } 4%, 90% { opacity: 1; transform: translate(-50%, 0); } 96%, 100% { opacity: 0; transform: translate(-50%, 0); } }
.dc-answer { left: 50%; bottom: 8%; transform: translateX(-50%); min-width: 46%; height: 34px; padding: 0 14px; display: flex; align-items: center; border-radius: 999px; background: var(--paper); color: var(--ink); font-size: 15px; font-weight: 500; box-shadow: 0 0 0 5px rgba(21,21,21,.84); animation: dcAnswer var(--t) ease infinite; }
.dc-typed { display: inline-block; overflow: hidden; white-space: nowrap; width: 0; animation: dcType var(--t) steps(5) infinite; }
.dc-caret { width: 1.5px; height: 17px; margin-left: 1px; background: var(--ink); animation: dcBlink .8s steps(2) infinite; }
@keyframes dcType { 0%, 8% { width: 0; } 20%, 100% { width: 5ch; } }
@keyframes dcBlink { 50% { opacity: 0; } }
@keyframes dcAnswer { 0%, 3% { opacity: 0; } 6%, 22% { opacity: 1; box-shadow: 0 0 0 5px rgba(21,21,21,.84); } 25%, 30% { opacity: 1; box-shadow: 0 0 0 5px rgba(21,21,21,.84), 0 0 26px rgba(175,202,238,.9); } 36%, 100% { opacity: 0; } }
.dc-tier { left: 50%; top: 44%; transform: translate(-50%, -50%); font-size: clamp(22px, 3.6vw, 30px); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #8fb3dc; text-shadow: 0 0 18px rgba(143,179,220,.7), 0 2px 6px rgba(0,0,0,.6); white-space: nowrap; opacity: 0; animation: dcTier var(--t) ease infinite; }
.dc-tier em { font-style: normal; font-size: .6em; color: var(--paper); letter-spacing: .02em; }
@keyframes dcTier { 0%, 72% { opacity: 0; transform: translate(-50%, -50%) scale(.9); } 76%, 88% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 94%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(1); } }
.dc-depth { right: 12px; bottom: 10px; padding: 5px 10px; border-radius: 10px; background: rgba(21,21,21,.84); text-align: right; animation: dcDepthBox var(--t) ease infinite; }
.dc-depth small { display: block; font-size: 8px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.dc-depth b { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
@keyframes dcDepthBox { 0%, 30% { opacity: 0; } 36%, 92% { opacity: 1; } 97%, 100% { opacity: 0; } }

/* placeholder preview */
.blueprint { background: #1b1c1e; display: grid; place-items: center; }
.bp-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(201,220,246,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(201,220,246,.07) 1px, transparent 1px); background-size: 28px 28px; mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 80%); -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 80%); }
.bp-mark { position: relative; font-size: clamp(40px, 6vw, 60px); font-weight: 600; letter-spacing: -.03em; color: rgba(244,243,239,.85); }

.foot { padding: 26px clamp(18px, 4vw, 48px) calc(26px + env(safe-area-inset-bottom)); font-size: 13px; color: var(--muted); border-top: 1px solid rgba(255,255,255,.08); }
.foot a { color: var(--paper); text-decoration: none; font-weight: 600; }
.foot a:hover { text-decoration: underline; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 8px 16px; flex-wrap: wrap; }
.foot .for { color: var(--paper); font-weight: 600; }
.foot .for::before { content: "\2665"; margin-right: 7px; color: #ff6b8b; }

@media (max-width: 560px) {
  .nav { padding: 18px; }
  .brand { gap: 12px; }
  .wordmark { font-size: 15px; }
  .nav-btn { font-size: 0; gap: 0; padding: 8px; }
  .nav-btn svg { width: 16px; height: 16px; }
  .lede { font-size: 15.5px; }
  .game-body { padding: 18px 18px 20px; }
  .game h2 { font-size: 26px; }
}

/* Catnap preview: cats get tucked in one by one while a rival's bar races yours */
.cn { --t: 7s; background: radial-gradient(120% 90% at 50% 0%, rgba(201,220,246,.08), transparent 60%), #1b1c1e; display: grid; place-items: center;
  --b0: #8fb3dc; --b1: #d6b65f; --b2: #9cc595; --b3: #e3987a; --b4: #b39ad6; --b5: #68bdb0; }
.cn-board { --g: 4px; width: 48%; aspect-ratio: 1; display: grid; grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(6, 1fr); gap: var(--g); padding: calc(var(--g) * 1.6); border: 1px solid rgba(255,255,255,.3); border-radius: 16px; background: rgba(24,26,29,.72); box-shadow: 0 16px 34px rgba(0,0,0,.4); margin-top: -9%; }
.cn-cell { position: relative; display: grid; place-items: center; border-radius: 24%; background: var(--c); box-shadow: inset 0 -2px 0 rgba(0,0,0,.14), inset 0 1px 0 rgba(255,255,255,.28); }
.cn-cat { position: absolute; inset: 2px; border-radius: 20%; display: grid; place-items: center; background: rgba(244,243,239,.84); opacity: 0; transform: scale(.4); animation: cnCat var(--t) cubic-bezier(.3,1.6,.5,1) infinite; animation-delay: calc(var(--k) * .7s); }
.cn-cat svg { width: 74%; height: 74%; display: block; }
.cn-cat.on { opacity: 1; transform: none; animation: none; }
.cn-cell.fixed { box-shadow: 0 0 0 1.5px #f4f3ef, 0 0 12px rgba(201,220,246,.55); }
.cn-cell.fixed::after { content: ""; position: absolute; right: 6%; top: 6%; width: 26%; height: 26%; border-radius: 50%; background: #151515 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='6' y='11' width='12' height='9' rx='2' fill='%23f4f3ef'/%3E%3Cpath d='M8.5 11V8.5a3.5 3.5 0 0 1 7 0V11' fill='none' stroke='%23f4f3ef' stroke-width='2.4'/%3E%3C/svg%3E") center / 64% no-repeat; }
@keyframes cnCat { 0% { opacity: 0; transform: scale(.4); } 4%, 72% { opacity: 1; transform: scale(1); } 80%, 100% { opacity: 0; transform: scale(1); } }
.cn-x { width: 34%; height: 34%; opacity: 0; background: linear-gradient(45deg, transparent 40%, rgba(21,21,21,.62) 40% 60%, transparent 60%), linear-gradient(-45deg, transparent 40%, rgba(21,21,21,.62) 40% 60%, transparent 60%); animation: cnX var(--t) ease infinite; animation-delay: calc(var(--k) * .7s + .35s); }
@keyframes cnX { 0% { opacity: 0; } 4%, 72% { opacity: 1; } 80%, 100% { opacity: 0; } }
.cn-race { position: absolute; left: 8%; right: 8%; bottom: 7%; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cn-race span { display: flex; flex-direction: column; gap: 5px; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #a09c94; }
.cn-race b { font-weight: 600; }
.cn-race span.cn-opp { text-align: right; }
.cn-race i { display: block; height: 5px; border-radius: 5px; background: rgba(255,255,255,.1); position: relative; overflow: hidden; }
.cn-race i::after { content: ""; position: absolute; inset: 0; border-radius: 5px; transform-origin: left; transform: scaleX(0); background: #f4f3ef; animation: cnMe var(--t) ease infinite; }
.cn-opp i::after { background: #9fb4c9; transform-origin: right; animation-name: cnOpp; }
@keyframes cnMe { 0% { transform: scaleX(0); } 10% { transform: scaleX(.2); } 20% { transform: scaleX(.4); } 30% { transform: scaleX(.6); } 40% { transform: scaleX(.8); } 50%, 72% { transform: scaleX(1); } 80%, 100% { transform: scaleX(0); } }
@keyframes cnOpp { 0% { transform: scaleX(0); } 15% { transform: scaleX(.2); } 30% { transform: scaleX(.4); } 48% { transform: scaleX(.6); } 72% { transform: scaleX(.8); } 80%, 100% { transform: scaleX(0); } }

/* ---------- Tap Duel: the circle waits, flashes a decoy, then DRAW ---------- */
.td { --t: 6s; background: radial-gradient(120% 90% at 50% 0%, rgba(201,220,246,.07), transparent 60%), #1b1c1e; display: grid; place-items: center; }
.td-ring { position: relative; width: 40%; aspect-ratio: 1; border-radius: 50%; margin-top: -8%; border: 1px solid rgba(255,255,255,.3); background: radial-gradient(circle at 50% 35%, rgba(255,255,255,.07), rgba(24,26,29,.8) 70%); display: grid; place-items: center; animation: tdFlash var(--t) infinite; }
.td-ring span { position: absolute; font-weight: 600; letter-spacing: -.03em; opacity: 0; }
.td-wait { font-size: 15px; animation: tdWait var(--t) infinite; }
.td-decoy { font-size: 22px; color: #e7a39b; animation: tdDecoy var(--t) infinite; }
.td-draw { font-size: 30px; font-weight: 800 !important; letter-spacing: .02em !important; color: #151515; animation: tdDraw var(--t) infinite; }
@keyframes tdWait { 0%, 30% { opacity: 1; } 31%, 42% { opacity: 0; } 43%, 60% { opacity: 1; } 61%, 100% { opacity: 0; } }
@keyframes tdDecoy { 0%, 30% { opacity: 0; } 31%, 42% { opacity: 1; } 43%, 100% { opacity: 0; } }
@keyframes tdDraw { 0%, 60% { opacity: 0; } 61%, 92% { opacity: 1; } 93%, 100% { opacity: 0; } }
@keyframes tdFlash { 0%, 60% { background: radial-gradient(circle at 50% 35%, rgba(255,255,255,.07), rgba(24,26,29,.8) 70%); box-shadow: none; } 61%, 92% { background: #f4f3ef; box-shadow: 0 0 50px rgba(201,220,246,.8); } 93%, 100% { background: radial-gradient(circle at 50% 35%, rgba(255,255,255,.07), rgba(24,26,29,.8) 70%); box-shadow: none; } }
.td-times { position: absolute; left: 8%; right: 8%; bottom: 8%; display: flex; justify-content: space-between; font-size: 12px; font-variant-numeric: tabular-nums; color: #a09c94; opacity: 0; animation: tdTimes var(--t) infinite; }
.td-times b { font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: 10px; margin-right: 6px; color: #f4f3ef; }
.td-times .opp b { color: #9fb4c9; }
@keyframes tdTimes { 0%, 66% { opacity: 0; } 70%, 92% { opacity: 1; } 96%, 100% { opacity: 0; } }

/* ---------- Snap Shot: the star glows, vanishes, then gets redrawn ---------- */
.ss { --t: 7s; background: radial-gradient(120% 90% at 50% 0%, rgba(201,220,246,.07), transparent 60%), #1b1c1e; display: grid; place-items: center; }
.ss-pad { position: relative; width: 44%; aspect-ratio: 1; border-radius: 16px; border: 1px solid rgba(255,255,255,.3); background: rgba(24,26,29,.72); box-shadow: 0 16px 34px rgba(0,0,0,.4); }
.ss-pad svg { width: 100%; height: 100%; display: block; }
.ss-pad path { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100; }
.ss-target { stroke: #f4f3ef; stroke-width: 2.6; filter: drop-shadow(0 0 4px rgba(201,220,246,.9)); animation: ssTarget var(--t) infinite; }
.ss-mine { stroke: #f4f3ef; stroke-width: 2.2; stroke-dashoffset: 100; animation: ssMine var(--t) infinite; }
@keyframes ssTarget { 0%, 4% { opacity: 0; } 8%, 34% { opacity: 1; stroke-width: 2.6; stroke: #f4f3ef; } 38%, 60% { opacity: 0; } 66%, 92% { opacity: .35; stroke-width: 5; } 96%, 100% { opacity: 0; } }
@keyframes ssMine { 0%, 40% { stroke-dashoffset: 100; opacity: 1; } 62%, 92% { stroke-dashoffset: 0; opacity: 1; } 96%, 100% { stroke-dashoffset: 0; opacity: 0; } }
.ss-score { position: absolute; right: -14%; top: -8%; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #f4f3ef; color: #151515; font-weight: 700; font-size: 15px; opacity: 0; transform: scale(.5); animation: ssScore var(--t) cubic-bezier(.3,1.6,.5,1) infinite; }
@keyframes ssScore { 0%, 64% { opacity: 0; transform: scale(.5); } 68%, 92% { opacity: 1; transform: scale(1); } 96%, 100% { opacity: 0; } }

/* ---------- Liar's Grid: warm and cold answers pop in, one of them a lie ---------- */
.lg { --t: 8s; background: radial-gradient(120% 90% at 50% 0%, rgba(201,220,246,.07), transparent 60%), #1b1c1e; display: grid; place-items: center; }
.lg-board { width: 40%; aspect-ratio: 1; margin-top: -8%; display: grid; grid-template-columns: repeat(5, 1fr); grid-template-rows: repeat(5, 1fr); gap: 4px; padding: 6px; border-radius: 14px; border: 1px solid rgba(255,255,255,.3); background: rgba(24,26,29,.72); }
.lg-board i { position: relative; border-radius: 24%; background: rgba(255,255,255,.08); display: grid; place-items: center; }
.lg-board i[class] { animation: lgIn var(--t) infinite; animation-delay: calc(var(--k) * .55s); }
.lg-board .lgw { --c: #e3987a; } .lg-board .lgc { --c: #8fb3dc; } .lg-board .lgcat { --c: #f4f3ef; }
.lg-board .lgcat svg { width: 72%; height: 72%; }
@keyframes lgIn { 0% { background: rgba(255,255,255,.08); transform: scale(1); } 3% { background: var(--c); transform: scale(1.1); } 6%, 80% { background: var(--c); transform: scale(1); } 88%, 100% { background: rgba(255,255,255,.08); } }
.lg-board .lglie::after { content: "LIE"; position: absolute; top: -5px; right: -7px; padding: 1px 3px; border-radius: 4px; background: #151515; border: 1px solid #f4f3ef; color: #f4f3ef; font-size: 7px; font-weight: 800; letter-spacing: .08em; opacity: 0; animation: lgLie var(--t) infinite; }
@keyframes lgLie { 0%, 62% { opacity: 0; } 66%, 80% { opacity: 1; } 88%, 100% { opacity: 0; } }
.lg-ask { position: absolute; left: 8%; right: 8%; bottom: 7%; display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: #c9d1d8; }
.lg-ask b { color: #f4f3ef; text-transform: uppercase; letter-spacing: .08em; }
.lg-ask em { font-style: normal; padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.3); color: #f4f3ef; font-weight: 600; font-size: 11px; }

/* ---------- Chain: word chips land, each underlining the next letter ---------- */
.ch { --t: 7s; background: radial-gradient(120% 90% at 50% 0%, rgba(201,220,246,.07), transparent 60%), #1b1c1e; display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 0 9%; }
.ch-chips { display: flex; flex-wrap: wrap; gap: 7px; min-height: 64px; align-content: flex-end; }
.ch-chips span { padding: 6px 11px; border-radius: 999px; background: #f4f3ef; color: #151515; font-size: 13px; font-weight: 600; opacity: 0; transform: scale(.6); animation: chIn var(--t) cubic-bezier(.3,1.6,.5,1) infinite; animation-delay: calc(var(--k) * .9s); }
.ch-chips span.o { background: #9fb4c9; }
.ch-chips u { font-weight: 800; text-underline-offset: 3px; }
@keyframes chIn { 0% { opacity: 0; transform: scale(.6); } 4%, 70% { opacity: 1; transform: scale(1); } 78%, 100% { opacity: 0; transform: scale(1); } }
.ch-turn { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 14px; border: 1px solid rgba(244,243,239,.6); background: rgba(24,26,29,.72); }
.ch-dial { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(#f4f3ef var(--p, 70%), rgba(255,255,255,.1) 0); animation: chDial var(--t) linear infinite; position: relative; }
.ch-dial::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: #1b1c1e; }
.ch-dial b { position: relative; font-size: 18px; font-weight: 700; text-shadow: 0 0 6px rgba(255,255,255,.7), 0 0 18px rgba(227,237,255,.6); }
@property --p { syntax: "<percentage>"; inherits: false; initial-value: 100%; }
@keyframes chDial { from { --p: 100%; } to { --p: 0%; } }
.ch-text { display: flex; flex-direction: column; }
.ch-text small { font-size: 9.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #a09c94; }
.ch-text b { font-size: 15px; font-weight: 600; }

/* ---------- Redacted: words stamp back onto a classified page ---------- */
.rd { --t: 7s; background: radial-gradient(120% 90% at 50% 0%, rgba(201,220,246,.07), transparent 60%), #1b1c1e; display: grid; place-items: center; }
.rd-doc { width: 70%; padding: 12px 14px; border-radius: 12px; background: #f4f3ef; color: #151515; box-shadow: 0 16px 34px rgba(0,0,0,.45); transform: rotate(-1.5deg); }
.rd-head { display: flex; justify-content: space-between; font-size: 8.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #8a857c; padding-bottom: 7px; border-bottom: 1px dashed rgba(21,21,21,.2); }
.rd-head span:first-child { color: #b0402a; border: 1.2px solid #b0402a; padding: 0 4px; border-radius: 3px; }
.rd-doc p { margin: 10px 0 2px; display: flex; flex-wrap: wrap; gap: 4px 7px; font-size: 21px; font-weight: 600; letter-spacing: -.02em; }
.rd-doc p span { border-radius: 3px; animation: rdWord var(--t) infinite backwards; animation-delay: calc(var(--k) * 1.1s); }
@keyframes rdWord { 0% { color: transparent; background: #151515; transform: none; } 2% { color: #151515; background: transparent; transform: scale(1.25); } 5%, 70% { color: #151515; background: transparent; transform: none; } 74%, 100% { color: transparent; background: #151515; } }

/* shared dark stage for the newer previews */
.pr, .ec, .hb, .bf, .hs, .oo, .cl, .ar { background: radial-gradient(120% 90% at 50% 0%, rgba(201,220,246,.07), transparent 60%), #1b1c1e; display: grid; place-items: center; }

/* ---------- Pour: the glass fills to the line and stops ---------- */
.pr { --t: 5s; }
.pr-glass { position: relative; width: 17%; aspect-ratio: 1 / 1.8; border: 2px solid rgba(244,243,239,.75); border-top-color: rgba(244,243,239,.3); border-radius: 4px 4px 14px 14px; background: rgba(255,255,255,.05); }
.pr-liquid { position: absolute; left: 0; right: 0; bottom: 0; height: 0; border-radius: 0 0 11px 11px; background: linear-gradient(#a9c6e8, #6f97c8); animation: prFill var(--t) infinite; }
@keyframes prFill { 0%, 8% { height: 0; } 50% { height: 61%; animation-timing-function: ease-out; } 54%, 88% { height: 63%; } 96%, 100% { height: 0; } }
.pr-line { position: absolute; left: -10px; right: -10px; bottom: 62%; border-top: 2px dashed #f4f3ef; }
.pr-stream { position: absolute; left: 50%; width: 5px; margin-left: -2.5px; top: -40px; bottom: 30%; border-radius: 3px; background: #8fb3dc; transform-origin: top; animation: prStream var(--t) infinite; }
@keyframes prStream { 0%, 6% { transform: scaleY(0); } 10%, 48% { transform: scaleY(1); } 52%, 100% { transform: scaleY(0); } }
.pr-score { position: absolute; left: 62%; top: 30%; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #f4f3ef; color: #151515; font-weight: 700; font-size: 16px; opacity: 0; animation: ssScore var(--t) cubic-bezier(.3,1.6,.5,1) infinite; }

/* ---------- Echo: tiles light up in turn ---------- */
.ec { --t: 5s; }
.ec-pad { width: 38%; aspect-ratio: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 8px; border-radius: 16px; border: 1px solid rgba(255,255,255,.3); background: rgba(24,26,29,.72); }
.ec-pad i { border-radius: 22%; background: var(--c); opacity: .3; }
.ec-pad i.on { animation: ecLit var(--t) infinite; animation-delay: calc(var(--k) * .6s); }
@keyframes ecLit { 0%, 100% { opacity: .3; transform: none; box-shadow: none; } 4%, 10% { opacity: 1; transform: scale(1.06); box-shadow: 0 0 20px var(--c); } 14% { opacity: .3; transform: none; box-shadow: none; } }

/* ---------- Highball: two cards face to face ---------- */
.hb { --t: 6s; grid-template-rows: auto auto auto; align-content: center; gap: 10px; }
.hb-cards { display: flex; gap: 14px; }
.hb-c { width: 52px; aspect-ratio: 5 / 7; border-radius: 9px; display: grid; place-items: center; font-size: 28px; font-weight: 700; color: #151515; background: #f4f3ef; box-shadow: 0 10px 22px rgba(0,0,0,.4); }
.hb-c.opp { background: #9fb4c9; animation: hbFlip var(--t) infinite; box-shadow: 0 0 0 3px #9fd6a8, 0 10px 22px rgba(0,0,0,.4); }
@keyframes hbFlip { 0%, 30% { transform: rotateY(90deg); } 40%, 100% { transform: none; } }
.hb-verdict { font-size: 13px; color: #c9d1d8; opacity: 0; animation: tdTimes var(--t) infinite; }
.hb-verdict b { color: #f4f3ef; }
.hb-hand { display: flex; gap: 4px; }
.hb-hand span { width: 20px; height: 24px; border-radius: 5px; display: grid; place-items: center; font-size: 11px; font-weight: 700; border: 1px solid rgba(255,255,255,.3); color: #f4f3ef; }
.hb-hand span.u { opacity: .25; text-decoration: line-through; }

/* ---------- Blindfold: a treasure tag gets sold ---------- */
.bf { --t: 6s; }
.bf-lot { position: relative; width: 46%; padding: 12px; border-radius: 14px; background: #f4f3ef; color: #151515; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 3px; box-shadow: 0 14px 30px rgba(0,0,0,.45); overflow: hidden; }
.bf-lot small { font-size: 8.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #8a857c; }
.bf-gem { width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff8, transparent 40%), #c4463a; }
.bf-lot > b { font-size: 17px; font-weight: 600; }
.bf-lot span { font-size: 11px; color: #5f5b54; }
.bf-sold { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(21,21,21,.88); color: #f4f3ef; font-weight: 700; font-size: 16px; opacity: 0; animation: bfSold var(--t) infinite; }
@keyframes bfSold { 0%, 45% { opacity: 0; } 50%, 90% { opacity: 1; } 95%, 100% { opacity: 0; } }

/* ---------- Hot Seat: four doors, one opens ---------- */
.hs { --t: 6s; grid-template-rows: auto auto; align-content: center; gap: 12px; }
.hs-doors { display: flex; gap: 8px; }
.hs-doors i { position: relative; width: 34px; height: 70px; border-radius: 7px 7px 4px 4px; background: linear-gradient(#34363b, #26282c); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.hs-doors i::after { content: ""; position: absolute; right: 6px; top: 52%; width: 4px; height: 4px; border-radius: 50%; background: #d6b65f; }
.hs-doors .hs-pick { animation: hsPick var(--t) infinite; }
@keyframes hsPick { 0%, 25% { box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); } 30%, 92% { box-shadow: inset 0 0 0 2px #f4f3ef, 0 0 16px rgba(201,220,246,.4); } }
.hs-doors .hs-open { animation: hsOpen var(--t) infinite; }
@keyframes hsOpen { 0%, 45% { background: linear-gradient(#34363b, #26282c); } 50%, 92% { background: linear-gradient(#f4f3ef, #dcdcd7); } 96%, 100% { background: linear-gradient(#34363b, #26282c); } }
.hs-open b { position: absolute; left: 50%; top: 38%; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: #d6b65f; box-shadow: 0 0 12px rgba(214,182,95,.8); opacity: 0; animation: bfSold var(--t) infinite; }
.hs-role { font-size: 15px; font-weight: 600; text-shadow: 0 0 6px rgba(255,255,255,.6), 0 0 18px rgba(227,237,255,.5); }

/* ---------- Odd One Out: the odd tile turns coral ---------- */
.oo { --t: 5s; }
.oo-quad { width: 60%; display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.oo-quad span { padding: 14px 6px; border-radius: 12px; border: 1px solid rgba(255,255,255,.3); background: rgba(24,26,29,.72); text-align: center; font-size: 14px; font-weight: 600; }
.oo-quad .oo-odd { animation: ooOdd var(--t) infinite; }
@keyframes ooOdd { 0%, 40% { background: rgba(24,26,29,.72); color: #f4f3ef; } 46%, 92% { background: #e3987a; color: #151515; border-color: #e3987a; box-shadow: 0 0 20px rgba(227,152,122,.45); } 96%, 100% { background: rgba(24,26,29,.72); color: #f4f3ef; } }

/* ---------- Closer: the answer lands between two guesses ---------- */
.cl { --t: 6s; }
.cl-q { width: 72%; padding: 14px 16px 30px; border-radius: 14px; border: 1px solid rgba(255,255,255,.3); background: rgba(24,26,29,.72); text-align: center; display: flex; flex-direction: column; gap: 6px; }
.cl-q small { font-size: 9px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #a09c94; }
.cl-q > b { font-size: 16px; font-weight: 600; letter-spacing: -.02em; }
.cl-line { position: relative; height: 2px; margin: 18px 6px 0; background: rgba(255,255,255,.2); }
.cl-line i { position: absolute; top: -5px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; }
.cl-line em { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 10px; font-weight: 600; white-space: nowrap; }
.cl-me { left: 40%; background: #f4f3ef; }
.cl-opp { left: 88%; background: #9fb4c9; } .cl-opp em { color: #9fb4c9; }
.cl-ans { left: 47%; background: #e3987a; box-shadow: 0 0 12px rgba(227,152,122,.8); opacity: 0; animation: clAns var(--t) infinite; }
.cl-ans em { top: -20px !important; color: #e3987a; }
@keyframes clAns { 0%, 40% { opacity: 0; transform: translateY(-10px); } 48%, 92% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }

/* ---------- Anagram Race: tiles shuffle, then spell it ---------- */
.ar { --t: 6s; grid-template-rows: auto auto; align-content: center; gap: 14px; }
.ar-tiles { display: flex; gap: 6px; }
.ar-tiles span { width: 30px; height: 34px; border-radius: 7px; display: grid; place-items: center; background: #f4f3ef; color: #151515; font-size: 17px; font-weight: 700; box-shadow: inset 0 -3px 0 rgba(0,0,0,.14); animation: arUsed var(--t) infinite; animation-delay: calc(var(--k) * .25s); }
@keyframes arUsed { 0%, 20% { opacity: 1; } 26%, 90% { opacity: .25; } 96%, 100% { opacity: 1; } }
.ar-answer { font-size: 24px; font-weight: 700; letter-spacing: .3em; color: #9fd6a8; text-shadow: 0 0 16px rgba(159,214,168,.5); opacity: 0; animation: ssScore var(--t) infinite; }
