/* SnarglBarg arcade home page styles (moved out of index.html so browsers can cache them) */
:root {
  --bg: #080c16;
  --ink: #e2e8f0;
  --muted: #94a3b8;
  --accent: #06b6d4;
  --cw: min(340px, 80vw);
  --ch: 640px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: Outfit, system-ui, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}
a { color: inherit; }
button { font: inherit; color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Ambient background ---------- */
.bg { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.bg-grid {
  position: absolute; inset: 0;
  background-size: 36px 36px;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.035) 1px, transparent 1px);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 80%);
          mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 80%);
}
.orb { position: absolute; width: 440px; height: 440px; border-radius: 50%; filter: blur(120px); opacity: .32; animation: orb 9s ease-in-out infinite alternate; }
.orb.c { background: #0891b2; top: -160px; left: -140px; }
.orb.r { background: #e11d48; top: -160px; right: -140px; animation-delay: -3s; }
.orb.g { background: #65a30d; bottom: -240px; left: 50%; margin-left: -220px; animation-delay: -5s; opacity: .2; }
@keyframes orb { to { transform: scale(1.12) translateY(24px); } }

/* ---------- Header ---------- */
.hero {
  position: relative; z-index: 5; text-align: center; padding: 14px clamp(16px, 2.5vw, 32px) 0; margin: 0 auto; width: 100%; max-width: 788px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; column-gap: 10px;
  grid-template-areas: "home title acct" "status status status";
}
.hero .homebtn { grid-area: home; justify-self: start; }
.hero .status  { grid-area: status; justify-self: center; margin: 6px 0 0; }
.hero .acctwrap { grid-area: acct; justify-self: end; display: flex; align-items: center; gap: 8px; }
.hero h1       { grid-area: title; margin: 0; font-size: clamp(40px, 4.6vw, 58px); line-height: 1; }
.hero .sub     { grid-area: sub; }

/* ---------- Top bar buttons ---------- */
.tbtn {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 10px; border-radius: 999px;
  background: rgba(15,23,42,.82); border: 1px solid rgba(100,116,139,.4); color: #e2e8f0;
  font: 600 14px/1 Outfit, system-ui, sans-serif; text-decoration: none; cursor: pointer;
  box-shadow: 0 10px 30px -12px rgba(0,0,0,.7); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: border-color .2s, background .2s, transform .15s;
}
.tbtn:hover { border-color: var(--accent); background: rgba(30,41,59,.92); }
.tbtn:active { transform: scale(.96); }
.tbtn svg { width: 20px; height: 20px; flex: none; }
.acct { padding: 0 14px 0 4px; max-width: 220px; }
.acct .av, .sheet .av {
  width: 32px; height: 32px; border-radius: 50%; flex: none; display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(135deg, #0891b2, #e11d48); color: #fff; font: 700 14px/1 Fredoka, sans-serif;
}
.av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.acct .av svg { width: 18px; height: 18px; }
.acct.guest .av { background: #1e293b; color: #94a3b8; border: 1px solid rgba(100,116,139,.45); }
.acct .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct.signed-in .av { box-shadow: 0 0 0 2px #0f172a, 0 0 0 4px #10b981; }


/* ---------- Nugs ---------- */
.nugchip { padding: 0 14px 0 8px; gap: 6px; border-color: rgba(251,191,36,.5); color: #fde68a; }
.nugchip svg { width: 24px; height: 24px; }
.nugchip b { font: 800 15px/1 Outfit, system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.nugchip:hover { border-color: #fbbf24; box-shadow: 0 0 14px rgba(251,191,36,.3); }
.nugchip.bump svg { animation: nugBump .7s cubic-bezier(.34,1.56,.64,1); }
@keyframes nugBump { 0% { transform: scale(1); } 40% { transform: scale(1.35) rotate(-12deg); } 100% { transform: none; } }
.nugtoast { position: fixed; left: 50%; bottom: 22px; z-index: 300; max-width: min(92vw, 420px); display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px; border-radius: 16px;
  background: #0f172a; border: 1px solid rgba(251,191,36,.6); color: #fef3c7; box-shadow: 0 14px 40px rgba(0,0,0,.65), 0 0 22px rgba(251,191,36,.25);
  font: 600 14px/1.3 Outfit, system-ui, sans-serif; opacity: 0; transform: translate(-50%, 30px); pointer-events: none; transition: opacity .3s, transform .35s cubic-bezier(.34,1.56,.64,1); }
.nugtoast.show { opacity: 1; transform: translate(-50%, 0); }
.nugtoast svg { width: 34px; height: 34px; flex: none; }
.nugtoast b { display: block; font: 800 17px/1.1 Fredoka, sans-serif; color: #fde68a; }
.islocked .lockdot { display: inline; }
a.play.islocked { color: #fde68a !important; background: linear-gradient(#2b2310, #17120a) !important; border: 1px solid rgba(251,191,36,.7); box-shadow: 0 0 18px rgba(251,191,36,.25) !important; font-family: Outfit, system-ui, sans-serif !important; letter-spacing: 0 !important; }
a.play.islocked svg { width: 22px; height: 22px; stroke: none; }
.lrow.islocked .lg { color: #fde68a; }
.lrow .lg svg { width: 16px; height: 16px; vertical-align: -3px; }
#nugSheet .big { display: flex; align-items: center; gap: 12px; margin: 4px 0 14px; padding: 12px 14px; border-radius: 16px; background: rgba(15,23,42,.8); border: 1px solid rgba(251,191,36,.4); }
#nugSheet .big svg { width: 44px; height: 44px; flex: none; }
#nugSheet .big strong { display: block; font: 700 22px/1.1 Fredoka, sans-serif; color: #fde68a; }
#nugSheet .big span { color: #94a3b8; font-size: 13px; }
#nugSheet .prog { height: 8px; border-radius: 9px; background: rgba(148,163,184,.2); overflow: hidden; margin: 0 0 14px; }
#nugSheet .prog i { display: block; height: 100%; border-radius: 9px; background: linear-gradient(90deg, #f59e0b, #fde68a); }
#nugSheet .sbtn.gold { background: linear-gradient(#fde68a, #f59e0b); color: #1a1203; border-color: transparent; }
@media (max-width: 640px) { .nugchip { padding: 0 10px 0 6px; gap: 4px; } .nugchip svg { width: 22px; height: 22px; } .nugchip b { font-size: 14px; } .acctwrap { gap: 5px; } }
/* ---------- Players online ---------- */
.belowbar { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; position: relative; z-index: 1; }
.online {
  display: none; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px;
  background: rgba(16,185,129,.1); border: 1px solid rgba(16,185,129,.35); color: #a7f3d0;
  font: 600 12.5px/1 Outfit, system-ui, sans-serif; white-space: nowrap;
}
.online.show { display: inline-flex; }
.online b { font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.online .live-dot { width: 8px; height: 8px; }

/* ---------- Streak badges ---------- */
.stk {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%); display: none; align-items: center; gap: 8px;
  padding: 3px 10px; border-radius: 999px; white-space: nowrap; pointer-events: none;
  background: #0f172a; border: 1px solid rgba(251,191,36,.55); color: #fde68a;
  font: 800 12.5px/1.2 Outfit, system-ui, sans-serif; box-shadow: 0 6px 16px rgba(0,0,0,.5), 0 0 12px rgba(251,191,36,.25);
}
.stk.show { display: inline-flex; }
.stk span { display: inline-flex; align-items: center; gap: 3px; }
.stk .w { color: #a7f3d0; }
.stk.pending { border-color: rgba(148,163,184,.5); color: #cbd5e1; box-shadow: 0 6px 16px rgba(0,0,0,.5); }
.stk.pending .f { filter: grayscale(1); opacity: .65; }
.astk {
  display: none; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; white-space: nowrap;
  background: rgba(251,191,36,.1); border: 1px solid rgba(251,191,36,.4); color: #fde68a; font: 600 12.5px/1 Outfit, system-ui, sans-serif;
}
.astk.show { display: inline-flex; }
a.astk { text-decoration: none; cursor: pointer; transition: border-color .2s, background .2s; }
a.astk:hover { border-color: rgba(251,191,36,.75); }
.trophy-link {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; white-space: nowrap; text-decoration: none;
  background: linear-gradient(180deg, rgba(251,191,36,.18), rgba(217,119,6,.1)); border: 1px solid rgba(251,191,36,.5); color: #fde68a;
  font: 700 12.5px/1 Outfit, system-ui, sans-serif; transition: border-color .2s, transform .15s, box-shadow .2s;
}
.trophy-link:hover { border-color: #fbbf24; box-shadow: 0 0 14px rgba(251,191,36,.3); }
.trophy-link:active { transform: scale(.96); }
.astk b { color: #fff; font-weight: 800; font-variant-numeric: tabular-nums; }
.astk .astk-st { color: #94a3b8; font-weight: 600; }
.astk.pending { background: rgba(148,163,184,.08); border-color: rgba(148,163,184,.35); color: #cbd5e1; }
@media (max-width: 600px) { .stk { font-size: 11.5px; padding: 2px 9px; top: -9px; } .astk { font-size: 12px; padding: 4px 10px; } }

/* ---------- Account sheet ---------- */
.sheet { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(2,6,23,.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.sheet.open { display: flex; }
.sheet .panel {
  position: relative; width: 100%; max-width: 380px; max-height: calc(100vh - 32px); overflow: auto;
  padding: 22px 20px 18px; border-radius: 26px; background: linear-gradient(180deg, #111a2e, #0b1120);
  border: 1px solid rgba(100,116,139,.35); box-shadow: 0 30px 80px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(6,182,212,.12);
  animation: sheetIn .28s cubic-bezier(.34,1.56,.64,1);
}
@keyframes sheetIn { from { transform: translateY(14px) scale(.97); opacity: 0; } }
.sheet .x { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(148,163,184,.12); color: #cbd5e1; cursor: pointer; font-size: 18px; line-height: 1; }
.sheet h2 { font: 700 22px/1.15 Fredoka, sans-serif; margin: 0 40px 4px 0; color: #fff; }
.sheet .lead2 { color: #94a3b8; font-size: 13.5px; line-height: 1.45; margin-bottom: 16px; }
.sheet .who { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: rgba(15,23,42,.8); border: 1px solid rgba(100,116,139,.3); margin-bottom: 14px; }
.sheet .who .av { width: 44px; height: 44px; font-size: 18px; }
.sheet .who strong { display: block; color: #fff; font-size: 15px; word-break: break-word; }
.sheet .who span { color: #94a3b8; font-size: 12.5px; }
.sbtn {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 14px; margin-top: 8px;
  border-radius: 14px; border: 1px solid rgba(100,116,139,.4); background: rgba(30,41,59,.85); color: #f1f5f9;
  font: 600 15px/1 Outfit, system-ui, sans-serif; cursor: pointer; transition: filter .2s, transform .15s;
}
.sbtn:hover { filter: brightness(1.12); }
.sbtn:active { transform: scale(.98); }
.sbtn.google { background: #fff; color: #1f2937; border-color: #fff; }
.sbtn.primary { background: linear-gradient(90deg, #06b6d4, #0891b2); border-color: transparent; color: #fff; }
.sbtn.ghost { background: transparent; }
.sbtn:disabled { opacity: .55; cursor: default; }
.or { display: flex; align-items: center; gap: 10px; color: #64748b; font-size: 12px; margin: 14px 0 6px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: rgba(100,116,139,.35); }
.field { display: block; margin-top: 8px; }
.field span { display: block; font-size: 12px; color: #94a3b8; margin-bottom: 4px; }
.field input {
  width: 100%; padding: 11px 12px; border-radius: 12px; border: 1px solid rgba(100,116,139,.45); background: #0b1120; color: #f1f5f9;
  font: 400 16px/1.2 Outfit, system-ui, sans-serif;
}
.field input:focus { outline: none; border-color: #22d3ee; box-shadow: 0 0 0 3px rgba(34,211,238,.2); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.row2 .sbtn { margin-top: 12px; }
.notice { display: none; margin-top: 12px; padding: 10px 12px; border-radius: 12px; font-size: 13px; line-height: 1.4; background: rgba(16,185,129,.12); border: 1px solid rgba(16,185,129,.35); color: #a7f3d0; }
.notice.show { display: block; }
.notice.err { background: rgba(244,63,94,.12); border-color: rgba(244,63,94,.4); color: #fecdd3; }
.sheet .fine { margin-top: 14px; font-size: 12px; color: #64748b; line-height: 1.45; text-align: center; }

.status {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 12px; border-radius: 999px;
  background: rgba(15,23,42,.9); border: 1px solid rgba(100,116,139,.4);
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #cbd5e1;
  margin-bottom: 10px; box-shadow: 0 10px 30px -10px rgba(0,0,0,.6);
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #10b981; animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(16,185,129,.6); } 70%,100% { box-shadow: 0 0 0 10px rgba(16,185,129,0); } }
h1 { font-family: Fredoka, sans-serif; font-weight: 700; font-size: clamp(26px, 5.2vw, 54px); line-height: 1.08; letter-spacing: -.01em; }
h1 .L { display: inline-block; background-image: linear-gradient(180deg, var(--c1), var(--c2)); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; filter: drop-shadow(0 2px 6px rgba(0,0,0,.35)); }
h1 .a, h1 .b { -webkit-background-clip: text; background-clip: text; color: transparent; }
h1 .a { background-image: linear-gradient(90deg, #22d3ee, #7dd3fc, #a5b4fc); filter: drop-shadow(0 2px 18px rgba(6,182,212,.35)); }
h1 .b { background-image: linear-gradient(90deg, #fb7185, #f472b6, #fcd34d, #a3e635); filter: drop-shadow(0 2px 18px rgba(244,63,94,.35)); }
.sub { margin-top: 6px; font-size: clamp(14px, 1.8vw, 17px); color: #cbd5e1; }
.sub b { font-weight: 600; color: #fff; }

/* ---------- Carousel ---------- */
.carousel { position: relative; z-index: 1; margin-top: 4px; }
.viewport {
  position: relative;
  height: calc(var(--ch) * var(--fit, 1) + 28px);
  perspective: 1400px;
  touch-action: pan-y;
  cursor: grab;
  user-select: none; -webkit-user-select: none;
  overflow: hidden;
  outline: none;
}
.viewport.dragging { cursor: grabbing; }
.stage-glow {
  position: absolute; left: 50%; top: 50%;
  width: 520px; height: 520px; margin: -260px 0 0 -260px;
  border-radius: 50%; background: var(--accent);
  filter: blur(120px); opacity: .26; transition: background .7s ease;
  pointer-events: none;
}
.slot {
  position: absolute; left: 50%; top: 50%;
  width: var(--cw); height: var(--ch);
  will-change: transform, opacity;
}
.slot::after {
  content: ""; position: absolute; inset: 0; border-radius: 30px;
  background: #05070d; opacity: var(--shade, 0); pointer-events: none;
}
.slot.far { visibility: hidden; }
.slot.far *, .slot.far *::before, .slot.far *::after { animation-play-state: paused !important; }
.slot:not(.is-center) .card { cursor: pointer; }

.controls { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: -4px; }
.arrow, .pause {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: rgba(15,23,42,.85); border: 1px solid rgba(100,116,139,.45);
  transition: background .2s, border-color .2s, transform .15s;
}
.pause { width: 36px; height: 36px; }
.arrow:hover, .pause:hover { background: rgba(30,41,59,.95); border-color: var(--accent); }
.arrow:active { transform: scale(.94); }
.arrow svg { width: 20px; height: 20px; }
.pause svg { width: 14px; height: 14px; }
.dots { display: flex; gap: 8px; }
/* With 16 games the dot row is wider than small phones: shrink the dots there */
@media (max-width: 430px) {
  .controls { gap: 8px; }
  .dots { gap: 5px; }
  .dotbtn { width: 8px !important; height: 8px !important; }
  .dotbtn[aria-selected="true"] { width: 20px !important; }
}
@media (max-width: 360px) {
  .controls { gap: 5px; }
  .arrow { width: 34px !important; height: 34px !important; }
  .pause { width: 30px; height: 30px; }
  .dots { gap: 3px; }
  .dotbtn { width: 6px !important; height: 6px !important; }
  .dotbtn[aria-selected="true"] { width: 14px !important; }
}
.dotbtn {
  height: 12px; width: 12px; border-radius: 999px; border: 0; cursor: pointer;
  background: rgba(148,163,184,.35); transition: width .35s, background .35s;
}
.dotbtn[aria-selected="true"] { width: 34px; background: var(--c); box-shadow: 0 0 12px var(--c); }
.hint { text-align: center; color: var(--muted); font-size: 13px; }

:focus-visible { outline: 3px solid #fde68a; outline-offset: 3px; }

/* ---------- Shared card pieces ---------- */
.card {
  position: relative; width: 100%; height: 100%;
  border-radius: 30px; overflow: hidden;
  display: flex; flex-direction: column;
  padding: 22px 22px 20px;
  box-shadow: 0 30px 60px -22px rgba(0,0,0,.75);
  transition: box-shadow .4s;
}
.card > * { position: relative; flex-shrink: 0; }
.card .top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 14px; }
.pill { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.tag { font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 3px 7px; border-radius: 6px; white-space: nowrap; flex: none; }
.desc { font-size: 14px; line-height: 1.5; margin: 16px 0 12px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: auto; }
.chips li { font-size: 11.5px; font-weight: 600; padding: 4px 9px; border-radius: 8px; }
.play {
  margin-top: 16px; display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px; border-radius: 16px; font-weight: 700; font-size: 17px; text-decoration: none;
  transition: transform .15s, box-shadow .2s, filter .2s;
}
.play:hover { filter: brightness(1.08); }
.play:active { transform: translateY(2px) scale(.98); }
.play svg { width: 20px; height: 20px; transition: transform .2s; }
.play:hover svg { transform: translateX(4px); }

/* ---------- SNARGL card (matches the game: slate tiles, green solves, sky column aim) ---------- */
.card-snargl {
  font-family: Inter, Outfit, system-ui, sans-serif;
  background: radial-gradient(120% 70% at 50% 0%, #10213a 0%, #0b1322 50%, #090d16 100%);
  border: 1px solid rgba(56,189,248,.3);
  color: #e2e8f0;
}
.is-center .card-snargl { box-shadow: 0 30px 80px -20px rgba(56,189,248,.45), 0 0 0 1px rgba(56,189,248,.4); }
.card-snargl .pill { background: rgba(5,150,105,.85); color: #ecfdf5; border: 1px solid rgba(52,211,153,.5); letter-spacing: .06em; }
.card-snargl .tag { background: rgba(14,165,233,.12); color: #7dd3fc; border: 1px solid rgba(14,165,233,.35); }
.slogo {
  font-family: Inter, Outfit, system-ui, sans-serif; font-weight: 900; font-size: 38px; line-height: 1; letter-spacing: -.01em;
  background: linear-gradient(90deg, #f87171, #fb923c, #facc15, #4ade80, #60a5fa, #c084fc);
  -webkit-background-clip: text; background-clip: text; color: transparent; width: max-content;
}
.sgame { --rh: 34px; --gap: 6px; --grip: 20px; margin-top: 12px; }
.sb {
  position: relative; padding: 6px; border-radius: 16px; background: rgba(15,23,42,.6); border: 1px solid rgba(30,41,59,.8);
  height: calc(var(--rh) * 5 + var(--gap) * 4 + 12px);
}
.srow {
  position: absolute; left: 6px; right: 6px; top: 6px; height: var(--rh);
  display: flex; align-items: center; gap: 5px; padding: 0 3px; border-radius: 12px; border: 1px solid transparent;
  transform: translateY(calc(var(--slot) * (var(--rh) + var(--gap))));
  transition: transform .38s cubic-bezier(.2,.9,.3,1.1), background .2s, box-shadow .2s, border-color .2s;
}
.srow.active { background: rgba(14,165,233,.1); border-color: rgba(14,165,233,.3); }
.srow.drag { z-index: 5; background: rgba(30,41,59,.92); box-shadow: 0 18px 40px -12px rgba(0,0,0,.85), 0 0 0 1.5px rgba(251,191,36,.55); transform: translateY(calc(var(--slot) * (var(--rh) + var(--gap)))) scale(1.03); }
.sgrip {
  width: 0; height: calc(var(--rh) - 2px); flex: none; overflow: hidden; display: grid; place-items: center; border-radius: 9px;
  background: rgba(30,41,59,.9); border: 1px solid rgba(51,65,85,.8); color: #94a3b8; font-size: 11px; opacity: 0;
  transition: width .35s, opacity .35s, color .2s; margin-right: -5px;
}
.p2 .sgrip { width: var(--grip); opacity: 1; margin-right: 0; }
.srow.drag .sgrip { color: #fbbf24; }
.stiles { flex: 1; display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.st {
  height: calc(var(--rh) - 4px); display: grid; place-items: center; border-radius: 9px;
  background: #0f172a; border: 1px solid rgba(51,65,85,.8); color: #fff;
  font-family: "JetBrains Mono", "Space Mono", ui-monospace, monospace; font-weight: 800; font-size: 16px;
  transition: background .2s, border-color .2s, color .2s, box-shadow .2s;
}
.st.pop { animation: stpop .22s cubic-bezier(.175,.885,.32,1.275); }
@keyframes stpop { 0% { transform: scale(.82); opacity: .4; } 100% { transform: scale(1); opacity: 1; } }
.srow.ok .st { background: rgba(2,44,34,.7); border-color: rgba(16,185,129,.8); color: #a7f3d0; }
.st.aim { box-shadow: 0 0 0 2px #38bdf8; border-color: #38bdf8 !important; background: rgba(8,47,73,.6) !important; color: #e0f2fe !important; }
.sb.won .st.aim { box-shadow: 0 0 0 2px #34d399, 0 0 14px rgba(52,211,153,.6); border-color: #34d399 !important; background: rgba(6,78,59,.75) !important; color: #fff !important; }
.sstat { display: flex; align-items: center; gap: 8px; margin-top: 8px; min-height: 26px; font-size: 12.5px; line-height: 1.25; color: #cbd5e1; }
.sstat .chip {
  flex: none; font-family: "JetBrains Mono", "Space Mono", monospace; font-weight: 800; font-size: 10px; letter-spacing: .02em;
  padding: 4px 7px; border-radius: 7px; background: rgba(14,165,233,.12); color: #7dd3fc; border: 1px solid rgba(14,165,233,.35);
}
.sstat .chip.win { background: rgba(16,185,129,.15); color: #6ee7b7; border-color: rgba(16,185,129,.45); }
.sstat .txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sstat .txt b { font-family: "JetBrains Mono", "Space Mono", monospace; color: #7dd3fc; letter-spacing: .12em; }
.sslide { margin-top: 6px; opacity: .35; transition: opacity .35s; }
.p2 .sslide { opacity: 1; }
.strack { position: relative; height: 8px; margin: 0 calc(var(--grip) / 2 + 14px) 0 calc(var(--grip) + 16px); border-radius: 6px; background: #1e293b; border: 1px solid #334155; }
.sthumb {
  position: absolute; top: 50%; left: calc(var(--col, 2) * 25%); width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%;
  background: #38bdf8; border: 2px solid #fff; box-shadow: 0 0 10px rgba(56,189,248,.8);
  transition: left .4s cubic-bezier(.34,1.56,.64,1);
}
.snotch { display: grid; grid-template-columns: repeat(5, 1fr); margin: 3px 4px 0 calc(var(--grip) + 6px); font-family: "JetBrains Mono", monospace; font-size: 9.5px; color: #64748b; text-align: center; }
.snotch span.on { color: #38bdf8; font-weight: 800; }
.card-snargl .desc { color: #cbd5e1; font-weight: 400; font-size: 13.5px; margin: 12px 0 10px; }
.card-snargl .chips li { background: rgba(15,23,42,.8); color: #bae6fd; border: 1px solid rgba(51,65,85,.9); }
.card-snargl .play {
  color: #fff; background: linear-gradient(90deg, #0ea5e9, #0284c7);
  box-shadow: 0 10px 30px -8px rgba(14,165,233,.6), inset 0 1px 0 rgba(255,255,255,.3);
}

/* ---------- BARGL card (matches the game's Classic wood theme) ---------- */
.card-bargl {
  --tile-bg: linear-gradient(145deg, #fceddb, #e0be96); --tile-color: #3b1d09; --tile-border: #b88d5e;
  font-family: Nunito, Fredoka, Outfit, sans-serif;
  background: linear-gradient(180deg, #fffaf1 0%, #f8ebd6 100%);
  border: 1px solid #e7cfa8; color: #3b1d09;
}
.is-center .card-bargl { box-shadow: 0 30px 80px -20px rgba(217,119,6,.45), 0 0 0 2px rgba(245,192,68,.6); }
.card-bargl .pill { background: #fde68a; color: #78350f; border: 1px solid #f5c044; }
.card-bargl .tag { background: #fff; color: #78350f; border: 1px solid #e7cfa8; font-family: Nunito, sans-serif; font-weight: 900; letter-spacing: .04em; }
.blogo { display: flex; gap: 6px; }
.blogo span {
  display: grid; place-items: center; width: 38px; height: 40px; border-radius: 7px;
  background: var(--tile-bg); color: var(--tile-color); border: 1.5px solid var(--tile-border);
  font-family: Nunito, Fredoka, sans-serif; font-weight: 900; font-size: 23px;
  box-shadow: 0 4px 0 #93663a, 0 6px 10px rgba(0,0,0,.2);
}
.btargets { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; margin-top: 12px; }
.btargets div {
  padding: 4px 2px; border-radius: 10px; text-align: center; line-height: 1.1; border: 2px solid #f3e1b8; background: #fdf3dc; color: #b08453;
  font-size: 13px; font-weight: 900; letter-spacing: .02em; transition: background .3s, border-color .3s, color .3s;
}
.btargets small { display: block; font-size: 8.5px; font-weight: 800; letter-spacing: .1em; opacity: .85; }
.btargets div.cur { background: #fde68a; border-color: #f5c044; color: #451a03; box-shadow: 0 2px 8px rgba(245,158,11,.25); }
.btargets div.done { background: #475569; border-color: #64748b; color: #f8fafc; }
.bwrap { position: relative; width: 100%; max-width: 252px; margin: 10px auto 0; padding: 6px; border-radius: 12px; background: #85532d; box-shadow: 0 8px 18px rgba(69,36,16,.35); }
.bboard { position: relative; aspect-ratio: 1; border-radius: 6px; background: #452410; overflow: hidden; }
.bcenter {
  position: absolute; left: calc(400% / 9); top: calc(400% / 9); width: calc(100% / 9); height: calc(100% / 9);
  display: grid; place-items: center; border-radius: 4px; color: #6ee7b7; font-size: 10px;
  background: radial-gradient(circle, #059669, #064e3b); box-shadow: inset 0 0 0 1px #34d399;
}
.bt {
  position: absolute; width: calc(100% / 9); height: calc(100% / 9); padding: 1px;
  left: calc(var(--c) * 100% / 9); top: calc(var(--r) * 100% / 9);
  transition: left .3s cubic-bezier(.2,0,0,1), top .3s cubic-bezier(.2,0,0,1);
}
.bt i {
  position: relative; display: grid; place-items: center; width: 100%; height: 100%; border-radius: 4px; font-style: normal;
  background: var(--tile-bg); color: var(--tile-color); border: 1px solid var(--tile-border);
  box-shadow: 0 2px 0 #93663a; font-family: Nunito, Fredoka, sans-serif; font-weight: 900; font-size: 11.5px; line-height: 1;
  transition: background .3s, color .3s, border-color .3s, box-shadow .3s, filter .15s;
}
.bt.rim i::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: rgba(239,68,68,.22); border: 1px solid rgba(239,68,68,.35); }
.bt.grab { z-index: 4; }
.bt.grab i { filter: brightness(1.08) drop-shadow(0 4px 5px rgba(0,0,0,.4)); box-shadow: 0 0 0 2px #fbbf24, 0 2px 0 #93663a; }
.bt.lock i { background: linear-gradient(145deg, #475569, #334155); color: #f8fafc; border-color: #64748b; box-shadow: inset 0 2px 4px rgba(0,0,0,.5), 0 1px 0 #1e293b; }
.bt.lock i::after, .bt.nexus i::after { display: none; }
.bt.nexus { z-index: 3; }
.bt.nexus i { background: linear-gradient(145deg, #f59e0b, #d97706); color: #fff; border-color: #fbbf24; box-shadow: 0 0 10px rgba(245,158,11,.85), inset 0 0 5px #fef3c7; }
.bt.flash i { animation: bflash .5s ease-out; }
@keyframes bflash { 0% { filter: brightness(1.8); transform: scale(1.12); } 100% { filter: none; transform: none; } }
.btoast {
  position: absolute; left: 50%; top: 10px; z-index: 10; width: max-content; max-width: 92%; padding: 5px 10px; border-radius: 12px;
  font-size: 11.5px; font-weight: 900; line-height: 1.2; text-align: center; background: #fef3c7; color: #451a03; border: 1px solid #fcd34d;
  box-shadow: 0 4px 14px rgba(0,0,0,.25); opacity: 0; transform: translate(-50%, -8px); transition: opacity .25s, transform .25s; pointer-events: none;
}
.btoast.show { opacity: 1; transform: translate(-50%, 0); }
.btoast.gold { background: linear-gradient(145deg, #fbbf24, #f59e0b); color: #fff; border-color: #fde68a; text-shadow: 0 1px 0 rgba(0,0,0,.2); }
.card-bargl .desc { color: #5b3413; font-weight: 600; font-size: 13.5px; margin: 12px 0 10px; }
.card-bargl .chips li { background: #fff; color: #78350f; border: 1px solid #e7cfa8; font-weight: 800; }
.card-bargl .chips li.em { background: #fef3c7; color: #b45309; border-color: #fcd34d; }
.card-bargl .play {
  color: #fff; background: linear-gradient(180deg, #a0673a, #7c4a26); font-family: Nunito, Fredoka, sans-serif; font-weight: 900;
  box-shadow: 0 5px 0 #4a2a14, 0 14px 26px -10px rgba(124,74,38,.6);
}
.card-bargl .play:active { box-shadow: 0 2px 0 #4a2a14; }

/* ---------- PowerStream! card (PCB circuit-board look, matches the game) ---------- */
:is(.card-power, .card-ps2, .card-ps3) {
  --copper: #d6a640; --silk: #e6f1ea; --silk-dim: #8db3a2;
  --led-green: #39ff88; --led-amber: #ffb21e; --led-cyan: #2ee6ff; --led-red: #ff3d5e;
  font-family: "Chakra Petch", system-ui, sans-serif;
  color: var(--silk);
  border: 1px solid #245a46;
  background-color: #03100b;
  background-image:
    radial-gradient(circle at 12px 12px, #010604 2.2px, var(--copper) 2.6px, var(--copper) 3.8px, transparent 4.3px),
    radial-gradient(circle at calc(100% - 12px) 12px, #010604 2.2px, var(--copper) 2.6px, var(--copper) 3.8px, transparent 4.3px),
    radial-gradient(circle at 12px calc(100% - 12px), #010604 2.2px, var(--copper) 2.6px, var(--copper) 3.8px, transparent 4.3px),
    radial-gradient(circle at calc(100% - 12px) calc(100% - 12px), #010604 2.2px, var(--copper) 2.6px, var(--copper) 3.8px, transparent 4.3px),
    radial-gradient(ellipse 90% 45% at 50% -5%, rgba(57,255,136,.12), transparent 70%),
    radial-gradient(rgba(214,166,64,.06) 1px, transparent 1.2px),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'><g fill='none' stroke='%2313382a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M0 24H46L62 40H118L134 24H160'/><path d='M104 0V58L92 70V96L104 108V160'/><path d='M0 132H40L56 116H78'/><path d='M160 132H140L128 144V160'/><path d='M20 56H70'/><path d='M140 60V84H122'/></g><g fill='%23071a13' stroke='%231f5340' stroke-width='2'><circle cx='78' cy='116' r='4'/><circle cx='20' cy='56' r='4'/><circle cx='70' cy='56' r='4'/><circle cx='140' cy='60' r='4'/><circle cx='122' cy='84' r='4'/></g><g fill='none' stroke='%23123326' stroke-width='1.5'><rect x='40' y='76' width='30' height='20' rx='2'/></g></svg>");
  background-size: auto, auto, auto, auto, 100% 100%, 16px 16px, 160px 160px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.7), 0 30px 60px -22px rgba(0,0,0,.75), inset 0 1px 0 rgba(255,255,255,.05);
}
.is-center :is(.card-power, .card-ps2, .card-ps3) { box-shadow: 0 0 0 1px rgba(0,0,0,.7), 0 30px 80px -20px rgba(57,255,136,.35), 0 0 0 2px rgba(57,255,136,.25); }
/* PowerStream 3: chrome & ember accents */
.card-ps3 { --copper: #c9d2dc; border-color: #565e69; background-color: #0a0b0e; }
.is-center .card-ps3 { box-shadow: 0 0 0 1px rgba(0,0,0,.7), 0 30px 80px -20px rgba(255,138,61,.4), 0 0 0 2px rgba(255,138,61,.3); }
.card-ps3 .tag { color: #fff1e6; background: linear-gradient(180deg, #2e1a0e, #1a0f08); border-color: #ff8a3d; box-shadow: 0 2px 0 #020203, 0 0 14px rgba(255,138,61,.28), inset 0 0 12px rgba(255,138,61,.14); }
:is(.card-power, .card-ps2, .card-ps3) .top { padding: 0 6px; }
:is(.card-power, .card-ps2, .card-ps3) .pill {
  font-family: "Share Tech Mono", ui-monospace, monospace; font-weight: 400; font-size: 10.5px; letter-spacing: .16em;
  background: transparent; color: var(--silk-dim); padding: 0;
}
:is(.card-power, .card-ps2, .card-ps3) .tag {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  font-family: "Chakra Petch", sans-serif; font-weight: 600; font-size: 11px; letter-spacing: .04em; text-transform: none;
  color: #eafff2; padding: 4px 10px; border-radius: 7px;
  background: linear-gradient(180deg, #123527, #0b2219); border: 1px solid var(--led-green);
  box-shadow: 0 2px 0 #020705, 0 0 14px rgba(57,255,136,.18), inset 0 0 12px rgba(57,255,136,.12);
}
:is(.card-power, .card-ps2, .card-ps3) .tag::after {
  content: ""; position: absolute; left: 8px; right: 8px; bottom: -5px; height: 4px;
  background: repeating-linear-gradient(90deg, var(--copper) 0 3px, transparent 3px 7px); opacity: .85;
}
.pled {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none;
  background: #1a2a24; box-shadow: inset 0 0 0 1px #000, inset 0 1px 1px rgba(255,255,255,.08);
  transition: background .2s, box-shadow .2s;
}
.pled.lit, .lc.on .pled {
  background: var(--c, var(--led-green));
  box-shadow: 0 0 6px var(--c, var(--led-green)), 0 0 12px var(--c, var(--led-green)), inset 0 -1px 1px rgba(0,0,0,.3);
}
.plogo { font-family: "Chakra Petch", sans-serif; font-weight: 700; font-size: 34px; line-height: 1; letter-spacing: .02em; color: #fff; }
.plogo .cu { background: linear-gradient(180deg, #ffe39a 0%, #d6a640 55%, #9c7122 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.plogo .bang { color: var(--led-red); text-shadow: 0 0 6px var(--led-red), 0 0 14px rgba(255,61,94,.6); animation: pblink 3.2s ease-in-out infinite; }
@keyframes pblink { 0%, 86%, 100% { opacity: 1; } 90% { opacity: .25; } 94% { opacity: 1; } }
.psilk { font-family: "Share Tech Mono", monospace; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--silk-dim); margin-top: 4px; }
.psilk b { font-weight: 400; color: var(--led-green); } .psilk i { font-style: normal; color: var(--led-amber); } .psilk u { text-decoration: none; color: var(--led-cyan); } .psilk s { text-decoration: none; color: var(--led-red); }
.phud { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.proute { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.lc {
  --c: var(--led-green); position: relative; display: flex; align-items: center; justify-content: center; gap: 4px;
  padding: 3px 2px; border-radius: 6px; background: #06120d; border: 1px solid #1f4638;
  font-family: "Share Tech Mono", monospace; font-size: 11px; color: #5f8576; transition: color .2s, border-color .2s;
}
.lc .pled { width: 6px; height: 6px; }
.lc[data-c="amber"] { --c: var(--led-amber); } .lc[data-c="cyan"] { --c: var(--led-cyan); } .lc[data-c="red"] { --c: var(--led-red); }
.lc.on { color: var(--c); border-color: var(--c); text-shadow: 0 0 6px var(--c); }
.lc:not(:last-child)::after { content: ""; position: absolute; right: -8px; top: 50%; width: 7px; height: 2px; background: #2c7a5c; transform: translateY(-50%); }
.lc.on:not(:last-child)::after { background: var(--c); box-shadow: 0 0 6px var(--c); }
.pmoves {
  display: flex; align-items: baseline; gap: 4px; white-space: nowrap; padding: 3px 7px; border-radius: 6px;
  background: linear-gradient(180deg, #020a06, #04110b); border: 1px solid #1f4638; box-shadow: inset 0 2px 6px rgba(0,0,0,.8);
  font-family: "Share Tech Mono", monospace; font-size: 10px; color: var(--silk-dim);
}
.pmoves b { font-weight: 400; font-size: 16px; line-height: 1; color: var(--led-green); text-shadow: 0 0 8px rgba(57,255,136,.65); }
.pwrap {
  position: relative; width: 100%; max-width: 222px; margin: 12px auto 0; padding: 6px;
  border: 1px solid #245a46; border-radius: 14px; background: #0a120f;
  box-shadow: 0 0 0 4px #081812, 0 0 0 5px #2a6b52, 0 12px 32px rgba(0,0,0,.6), inset 0 0 24px rgba(0,0,0,.7);
}
.pboard { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.pt {
  position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 12%;
  background-color: #11382c; background-image: radial-gradient(circle at 30% 22%, rgba(255,255,255,.06), transparent 65%);
  box-shadow: 0 2px 0 rgba(0,0,0,.55), inset 0 0 8px rgba(0,0,0,.45);
  transition: box-shadow .25s, background-color .25s;
}
.pt.fx { background-color: #0f3026; }
.pt .fog {
  position: absolute; inset: 0; z-index: 10; display: grid; place-items: center; border-radius: inherit;
  background-color: #06120d; background-image: repeating-linear-gradient(45deg, rgba(31,83,64,.32) 0 2px, transparent 2px 8px);
  font-family: "Share Tech Mono", monospace; font-size: 10px; color: #2f6b55;
  transition: opacity .25s, visibility .25s;
}
.pt.rev .fog { opacity: 0; visibility: hidden; }
.pt:not(.rev) { box-shadow: none; background: #06120d; }
.prot { width: 100%; height: 100%; transform-origin: 50% 50%; transition: transform .22s cubic-bezier(.34,1.56,.64,1); }
.pt svg { display: block; width: 100%; height: 100%; overflow: visible; }
.pt .pterm { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.pt .pg, .pt .pc { stroke: transparent; opacity: 0; }
.pt.on .pg { opacity: .95; }
.pt.on .pc { opacity: 1; stroke: #fff; stroke-dasharray: 6 5; animation: pflow .55s linear infinite; }
@keyframes pflow { from { stroke-dashoffset: 40; } to { stroke-dashoffset: 0; } }
.pt.ph0 { box-shadow: 0 2px 0 rgba(0,0,0,.55), inset 0 0 12px rgba(57,255,136,.28); }
.pt.ph1 { box-shadow: 0 2px 0 rgba(0,0,0,.55), inset 0 0 12px rgba(255,178,30,.32); }
.pt.ph2 { box-shadow: 0 2px 0 rgba(0,0,0,.55), inset 0 0 12px rgba(46,230,255,.3); }
.pt.ph0 .pg { stroke: var(--led-green); filter: drop-shadow(0 0 2px #059669) drop-shadow(0 0 5px var(--led-green)); }
.pt.ph1 .pg { stroke: var(--led-amber); filter: drop-shadow(0 0 2px #d97706) drop-shadow(0 0 5px var(--led-amber)); }
.pt.ph2 .pg { stroke: var(--led-cyan);  filter: drop-shadow(0 0 2px #0891b2) drop-shadow(0 0 6px var(--led-cyan)); }
.pt.tglow { z-index: 3; overflow: visible; animation: taura .75s infinite ease-in-out; background-color: #0b3b44; }
.pt.tglow.t1 { animation-name: tauraA; background-color: #3f2e08; }
@keyframes taura  { 0%,100% { box-shadow: 0 0 9px var(--led-cyan), 0 0 18px #0891b2; } 50% { box-shadow: 0 0 14px #a5f3fc, 0 0 26px #0ea5e9; } }
@keyframes tauraA { 0%,100% { box-shadow: 0 0 9px var(--led-amber), 0 0 18px #d97706; } 50% { box-shadow: 0 0 14px #fde68a, 0 0 26px #f59e0b; } }
.pshock {
  position: absolute; top: -10%; left: -10%; width: 120%; height: 120%; border-radius: 50%;
  border: 4px solid var(--sc, #2ee6ff); box-shadow: 0 0 12px var(--sc, #2ee6ff);
  pointer-events: none; z-index: 40; animation: pshock .65s cubic-bezier(.1,.8,.25,1) forwards;
}
@keyframes pshock { 0% { transform: scale(.2); opacity: 1; border-width: 6px; } 100% { transform: scale(2.6); opacity: 0; border-width: 1px; } }
.ptap {
  position: absolute; z-index: 50; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%;
  border: 2px solid #ffe39a; box-shadow: 0 0 10px #d6a640, inset 0 0 6px rgba(214,166,64,.6); pointer-events: none;
  animation: ptap .45s ease-out forwards;
}
@keyframes ptap { 0% { transform: scale(1.5); opacity: 0; } 35% { transform: scale(1); opacity: 1; } 100% { transform: scale(.75); opacity: 0; } }
.pwin {
  position: absolute; inset: 0; z-index: 60; display: grid; place-content: center; text-align: center;
  background: rgba(3,16,11,.55); border-radius: inherit; opacity: 0; pointer-events: none; transition: opacity .3s;
}
.pwin.show { opacity: 1; }
.pwin .stamp {
  font-family: "Chakra Petch", sans-serif; font-weight: 700; font-size: 17px; letter-spacing: .06em; color: var(--led-green);
  text-shadow: 0 0 8px rgba(57,255,136,.7); line-height: 1.15; padding: 9px 14px; border-radius: 10px;
  background: linear-gradient(180deg, #0f2b21, #0a1f18); border: 1px solid var(--led-green);
  box-shadow: 0 0 0 1px #000, 0 0 22px rgba(57,255,136,.35), 0 10px 24px rgba(0,0,0,.6);
  transform: scale(.7); transition: transform .35s cubic-bezier(.34,1.56,.64,1);
}
.pwin.show .stamp { transform: scale(1); }
.pwin .stamp i { display: block; font-style: normal; color: #ffc93c; font-size: 17px; letter-spacing: 3px; text-shadow: 0 0 6px rgba(255,201,60,.7); }
.pwin .stamp small { display: block; font-family: "Share Tech Mono", monospace; font-weight: 400; font-size: 10px; letter-spacing: .14em; color: var(--silk-dim); text-shadow: none; }
:is(.card-power, .card-ps2, .card-ps3) .desc { color: #b9d3c7; font-size: 13.5px; line-height: 1.45; margin: 13px 0 10px; }
:is(.card-power, .card-ps2, .card-ps3) .desc .g { color: var(--led-green); } :is(.card-power, .card-ps2, .card-ps3) .desc .a { color: var(--led-amber); } :is(.card-power, .card-ps2, .card-ps3) .desc .c { color: var(--led-cyan); }
:is(.card-power, .card-ps2, .card-ps3) .chips li {
  font-family: "Share Tech Mono", monospace; font-weight: 400; font-size: 11px; letter-spacing: .03em;
  background: #06120d; color: var(--silk-dim); border: 1px solid #1f4638; border-radius: 6px;
}
:is(.card-power, .card-ps2, .card-ps3) .play {
  position: relative; font-family: "Chakra Petch", sans-serif; font-weight: 700; color: #1a1203; border-radius: 9px;
  background: linear-gradient(180deg, #f2c55c 0%, #c8912a 100%); border: 1px solid #f7d784;
  box-shadow: 0 2px 0 #4a3108, 0 0 14px rgba(214,166,64,.25), inset 0 1px 0 rgba(255,255,255,.4);
  margin-bottom: 4px;
}
:is(.card-power, .card-ps2, .card-ps3) .play::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: -6px; height: 5px;
  background: repeating-linear-gradient(90deg, #f2c55c 0 3px, transparent 3px 7px); opacity: .85;
}
:is(.card-power, .card-ps2, .card-ps3) .play:active { transform: translateY(1px); box-shadow: 0 1px 0 #4a3108, inset 0 1px 0 rgba(255,255,255,.4); }

/* ---------- PowerStream 2 card (same PCB look as the game; sliding, wrap-around board) ---------- */
.plogo .two {
  display: inline-block; font-size: 1.45em; font-weight: 700; line-height: .7; margin-left: .06em; vertical-align: -.08em;
  color: #ff4d6a; -webkit-text-stroke: .6px #ffd3db;
  text-shadow: 0 0 4px #ff3d5e, 0 0 12px #ff3d5e, 0 0 26px rgba(255,61,94,.75), 0 2px 0 #5c0718;
}
.p2stars { font-size: 15px; letter-spacing: -1px; color: #ffc93c; text-shadow: 0 0 6px rgba(255,201,60,.7); white-space: nowrap; }
.p2frame {
  position: relative; width: 100%; max-width: 236px; margin: 10px auto 0; padding: 5px;
  border: 1px solid #245a46; border-radius: 12px; background: #0a120f;
  box-shadow: 0 0 0 4px #081812, 0 0 0 5px #2a6b52, 0 12px 32px rgba(0,0,0,.6), inset 0 0 24px rgba(0,0,0,.7);
  transition: box-shadow .2s;
}
.p2frame.dragging { box-shadow: 0 0 0 4px #081812, 0 0 0 5px #2ee6ff, 0 0 22px rgba(46,230,255,.55), 0 12px 32px rgba(0,0,0,.6), inset 0 0 24px rgba(0,0,0,.7); }
.p2stage { position: relative; width: 100%; aspect-ratio: 10.24 / 9; }
.p2board { position: absolute; top: 0; bottom: 0; left: 6.0547%; right: 6.0547%; overflow: hidden; border-radius: 4px; }
.p2slot { position: absolute; width: calc(100% / 9); height: calc(100% / 9); padding: 1px; left: calc(var(--c) * 100% / 9); top: calc(var(--r) * 100% / 9); }
.p2slot.anim { transition: left .46s cubic-bezier(.2,.8,.3,1), top .46s cubic-bezier(.2,.8,.3,1); }
.p2cell {
  position: relative; display: block; width: 100%; height: 100%; border-radius: 12%; overflow: hidden;
  background-color: #11382c; background-image: radial-gradient(circle at 30% 22%, rgba(255,255,255,.06), transparent 65%);
  box-shadow: 0 1px 0 rgba(0,0,0,.55), inset 0 0 6px rgba(0,0,0,.45);
}
.p2cell.chip { background-color: #0f3026; }
.p2cell svg { display: block; width: 100%; height: 100%; overflow: visible; }
.p2rot { width: 100%; height: 100%; }
.p2cell .pg, .p2cell .pc { stroke: transparent; opacity: 0; }
.p2cell.on .pg { opacity: .95; }
.p2cell.on .pc { opacity: 1; stroke: #fff; stroke-dasharray: 6 5; animation: pflow .55s linear infinite; }
.p2cell.ph0 { box-shadow: inset 0 0 8px rgba(57,255,136,.3); }
.p2cell.ph1 { box-shadow: inset 0 0 8px rgba(255,178,30,.34); }
.p2cell.ph2 { box-shadow: inset 0 0 8px rgba(46,230,255,.32); }
.p2cell.ph0 .pg { stroke: #39ff88; filter: drop-shadow(0 0 2px #059669) drop-shadow(0 0 4px #39ff88); }
.p2cell.ph1 .pg { stroke: #ffb21e; filter: drop-shadow(0 0 2px #d97706) drop-shadow(0 0 4px #ffb21e); }
.p2cell.ph2 .pg { stroke: #2ee6ff; filter: drop-shadow(0 0 2px #0891b2) drop-shadow(0 0 5px #2ee6ff); }
.p2cell.tglow { animation: taura .75s infinite ease-in-out; background-color: #0b3b44; }
.p2cell.tglow.t1 { animation-name: tauraA; background-color: #3f2e08; }
.p2keep { position: absolute; width: calc(100% / 9); height: calc(100% / 9); padding: 1px; pointer-events: none; z-index: 4; left: calc(var(--c) * 100% / 9); top: calc(var(--r) * 100% / 9); }
.p2keep::after {
  content: ""; position: absolute; inset: 1px; border-radius: 12%;
  background: repeating-linear-gradient(45deg, rgba(255,61,94,.07) 0 3px, transparent 3px 9px); box-shadow: inset 0 0 0 1px rgba(255,61,94,.28);
}
.p2strip { position: absolute; z-index: 6; pointer-events: none; border-radius: 6px; background: rgba(46,230,255,.08); box-shadow: inset 0 0 0 1px rgba(46,230,255,.5); opacity: 0; transition: opacity .2s; }
.p2strip.row { left: 0; right: 0; height: calc(100% / 9); top: calc(var(--i) * 100% / 9); }
.p2strip.col { top: 0; bottom: 0; width: calc(100% / 9); left: calc(var(--i) * 100% / 9); }
.p2strip.show { opacity: 1; }
.p2hand {
  position: absolute; z-index: 8; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; pointer-events: none;
  border: 2px solid #ffe39a; box-shadow: 0 0 10px #d6a640, inset 0 0 6px rgba(214,166,64,.6); opacity: 0;
  transition: left .46s cubic-bezier(.2,.8,.3,1), top .46s cubic-bezier(.2,.8,.3,1), opacity .2s;
}
.p2hand.show { opacity: 1; }
.p2port { position: absolute; width: 6.0547%; height: calc(100% / 9); pointer-events: none; z-index: 5; }
.p2port.left { left: 0; } .p2port.right { right: 0; }
.p2port svg { width: 100%; height: 100%; overflow: visible; }
.p2port.in svg { filter: drop-shadow(0 0 3px #39ff88) drop-shadow(0 0 6px rgba(57,255,136,.5)); }
.p2port.in .tr { stroke: #39ff88; }
.p2port.out.online svg { filter: drop-shadow(0 0 4px #ff3d5e) drop-shadow(0 0 10px #ff3d5e); }
.p2port.out.online .tr { stroke: #2ee6ff; }
.p2shock { position: absolute; top: -10%; left: -10%; width: 120%; height: 120%; border-radius: 50%; border: 3px solid var(--sc, #2ee6ff); box-shadow: 0 0 10px var(--sc, #2ee6ff); pointer-events: none; z-index: 40; animation: pshock .65s cubic-bezier(.1,.8,.25,1) forwards; }

/* ---------- Scootch! card (matches the game: navy panels, glossy color-shape tiles) ---------- */
.card-sc {
  --scpanel: #181c30; --scpanel2: #20253f; --scline: #2c3253; --scdim: #8d93b8;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: radial-gradient(circle at 50% -10%, #232a52 0%, #0f1220 60%); border: 1px solid var(--scline); color: #eef0ff;
}
.is-center .card-sc { box-shadow: 0 30px 80px -20px rgba(168,85,247,.45), 0 0 0 1px rgba(250,204,21,.35); }
.card-sc .pill { background: var(--scpanel); color: #eef0ff; border: 1px solid var(--scline); letter-spacing: .08em; }
.card-sc .tag { background: #ffd34d; color: #1a1a1a; border-radius: 7px; letter-spacing: .06em; }
.sclogo { --t: 25px; display: flex; gap: 2px; margin: 0 0 3px; }
.sclt {
  position: relative; width: var(--t); height: calc(var(--t) * 1.12); flex: none; border-radius: calc(var(--t) * .24); background: var(--c);
  background-image: linear-gradient(160deg, #ffffff40 0%, #ffffff00 50%, #00000026 100%);
  box-shadow: inset 0 -3px 0 #00000040, inset 0 2px 0 #ffffff66, 0 2px 0 #00000055, 0 3px 6px #00000055;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.sclt::after { content: ""; position: absolute; left: 10%; top: 5%; width: 80%; height: 32%; border-radius: 6px 6px 45% 45%; background: linear-gradient(#ffffff50, #ffffff00); pointer-events: none; }
.sclt svg { position: absolute; width: 80%; height: 80%; fill: #fff; opacity: .22; }
.sclt.dk svg { fill: #000; opacity: .13; }
.sclt b { position: relative; z-index: 1; font-size: calc(var(--t) * .72); font-weight: 900; line-height: 1; color: #fff; text-shadow: 0 1.5px 0 #00000059; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.sclt.oc svg { width: 66%; height: 66%; opacity: .92; filter: drop-shadow(0 1px 0 #00000040); }
.sclt.dk b { color: #3a2a00; text-shadow: 0 1px 0 #ffffff59; }
.sclt.slide { animation: scscootch .9s cubic-bezier(.25,1.4,.5,1) .35s both; }
@keyframes scscootch { 0% { transform: translateX(110%); } 100% { transform: none; } }
.schead { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.scgg { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; width: 70px; border: 1px solid var(--scline); flex: none; background: #0d1020; padding: 3px; border-radius: 6px; }
.scgg i { aspect-ratio: 1; border-radius: 2px; background: #1c2140; display: grid; place-items: center; }
.scgg i.gb { background: transparent; outline: 1px dashed #4a517a; outline-offset: -1px; }
.scgg svg { width: 80%; height: 80%; display: block; }
.sclbl { font-size: 8.5px; letter-spacing: 2px; color: var(--scdim); }
.scpname { font-size: 15px; font-weight: 800; margin: 1px 0; }
.scsmall { font-size: 10.5px; color: var(--scdim); line-height: 1.3; }
.schud { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin: 10px 0 8px; }
.schud div { background: var(--scpanel); border: 1px solid var(--scline); border-radius: 8px; text-align: center; padding: 3px 0 2px; }
.schud b { display: block; font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.2; }
.schud small { font-size: 7.5px; letter-spacing: 1.2px; color: var(--scdim); }
.schud .done b { color: #22c55e; }
.scboard { position: relative; width: 100%; max-width: 212px; margin: 0 auto; aspect-ratio: 1; background: var(--scpanel2); border: 1px solid var(--scline); border-radius: 12px; padding: 4px; box-shadow: inset 0 2px 10px #0006; }
.scinner { position: absolute; inset: 4px; }
.sct { position: absolute; left: 0; top: 0; width: 20%; height: 20%; padding: 2px; transition: transform .22s cubic-bezier(.25,1.35,.5,1); }
.sct.lift { z-index: 2; }
.sct.lift .scf { transform: scale(1.04) translateY(-2px); box-shadow: inset 0 -4px 0 #00000040, inset 0 2px 0 #ffffff66, 0 7px 0 #00000033, 0 10px 16px #00000080; }
.scf {
  width: 100%; height: 100%; border-radius: 8px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden;
  background-image: linear-gradient(160deg, #ffffff38 0%, #ffffff00 45%, #00000026 100%);
  box-shadow: inset 0 -4px 0 #00000040, inset 0 2px 0 #ffffff66, inset 2px 0 0 #ffffff22, inset -2px 0 0 #00000022, 0 3px 0 #00000055, 0 4px 7px #00000066;
  transition: transform .12s, box-shadow .12s;
}
.scf::after { content: ""; position: absolute; left: 9%; top: 6%; width: 82%; height: 34%; border-radius: 8px 8px 45% 45%; background: linear-gradient(#ffffff55, #ffffff00); pointer-events: none; }
.scf svg { width: 46%; height: 46%; position: relative; z-index: 1; filter: drop-shadow(0 1px 0 #00000040); }
.scboard.won .scf { animation: scpop .5s ease both; }
@keyframes scpop { 0% { transform: scale(1); } 40% { transform: scale(1.15); } 100% { transform: scale(1); } }
.schand {
  position: absolute; z-index: 5; width: 24px; height: 24px; margin: -12px 0 0 -12px; border-radius: 50%; pointer-events: none;
  border: 2.5px solid #fff; box-shadow: 0 0 0 2px rgba(0,0,0,.35), 0 0 12px rgba(255,211,77,.7); opacity: 0;
  transition: left .22s cubic-bezier(.25,1.35,.5,1), top .22s cubic-bezier(.25,1.35,.5,1), opacity .15s;
}
.schand.show { opacity: 1; }
.scsolved { position: absolute; left: 50%; top: 50%; z-index: 6; transform: translate(-50%, -50%); background: rgba(15,18,32,.88); border: 1px solid #ffd34d; border-radius: 10px; padding: 6px 12px; box-shadow: 0 8px 20px rgba(0,0,0,.5); white-space: nowrap; color: #ffd34d; font-weight: 800; font-size: 11.5px; letter-spacing: 1px; opacity: 0; transition: opacity .3s; }
.scsolved.show { opacity: 1; }
.card-sc .desc { color: #cfd3f0; font-size: 13.5px; line-height: 1.45; margin: 12px 0 9px; }
.card-sc .chips li { background: var(--scpanel); color: #cfd3f0; border: 1px solid var(--scline); }
.card-sc .play { color: #1a1a1a; background: #ffd34d; box-shadow: 0 10px 26px -10px rgba(255,211,77,.7); }

/* ---------- Loopti card (matches the game's Stained Glass look: dark leading, bold color, triangle-sector center) ---------- */
.card-lp {
  --lpink: #fff8ec; --lpmuted: #b7a9c9; --lpboard: #16111f; --lpwell: #2a2138; --lpwellsh: rgba(0,0,0,.5);
  --lptile: #fff8ec; --lptile2: #efe4d2; --lpedge: #0c0911; --lpcord: #3a2f4b; --lppool: #1b1526;
  --g0: #ff7a59; --g1: #1fbfa8; --g2: #ffc22e; --g3: #9a7cff;
  font-family: Nunito, system-ui, sans-serif; color: var(--lpink);
  background: radial-gradient(#2c2239 1.3px, transparent 1.5px) 0 0 / 20px 20px, #221a2e; border: 1px solid #3a2f4b;
}
.is-center .card-lp { box-shadow: 0 30px 80px -20px rgba(154,124,255,.5), 0 0 0 2px rgba(31,191,168,.5); }
.card-lp .pill { background: var(--lpwell); color: var(--lpink); border: 0; box-shadow: inset 0 2px 4px var(--lpwellsh); letter-spacing: .08em; }
.card-lp .tag { background: var(--lpink); color: #221a2e; border-radius: 999px; font-family: Nunito, sans-serif; font-weight: 900; }
.lplogo { display: flex; align-items: center; gap: 1px; margin: 0; font: 700 36px/1 Fredoka, Nunito, sans-serif; letter-spacing: 1px; color: var(--lpink); }
.lplogo svg { width: 54px; height: 33px; margin: 0 -1px; }
.lpboardcard { margin-top: 8px; background: var(--lpboard); border-radius: 18px; padding: 8px 7px; box-shadow: 0 12px 26px rgba(0,0,0,.5); position: relative; }
.lpboard { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); grid-template-rows: repeat(5, 37px); gap: 4px; }
.lprail { position: relative; z-index: 0; border-radius: 12px; margin: -3px; background: #1d1628; box-shadow: inset 0 0 0 2px #0c0911; transition: background .3s; }
.lprail.t { grid-area: 1 / 2 / 2 / 5; } .lprail.r { grid-area: 2 / 5 / 5 / 6; } .lprail.b { grid-area: 5 / 2 / 6 / 5; } .lprail.l { grid-area: 2 / 1 / 5 / 2; }
.lprail.known { background: color-mix(in srgb, var(--gc) 45%, #16111f); }
.lpsectors { position: absolute; inset: 2px; width: calc(100% - 4px); height: calc(100% - 4px); z-index: 0; overflow: visible; border-radius: 8px; }
.lpsec { fill: #2a2138; stroke: #0c0911; stroke-width: 3.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; transition: fill .4s; }
.lpsec.k { fill: color-mix(in srgb, var(--gc) 85%, #16111f); }
.lps {
  position: relative; z-index: 1; border-radius: 8px; background: #2a2138; box-shadow: inset 0 2px 4px rgba(0,0,0,.5);
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 1px; color: #1f1726;
  font: 900 8.6px/1.05 Nunito, sans-serif; letter-spacing: .1px; white-space: nowrap; transition: transform .12s, box-shadow .12s;
}
.lps.filled { background: linear-gradient(var(--lptile), var(--lptile2)); box-shadow: 0 2px 0 var(--lpedge), 0 4px 7px rgba(0,0,0,.3); transform: translateY(-1px); }
.lps.joint { border-radius: 999px; background: var(--lpboard); box-shadow: inset 0 0 0 2px #3a2f4b, 0 0 0 3px var(--lpboard); }
.lps.joint .ph { font-size: 12px; opacity: .4; }
.lps.joint.filled { background: radial-gradient(ellipse 18% 14% at 24% 20%, rgba(255,255,255,.55), transparent), linear-gradient(var(--lptile), var(--lptile2)); box-shadow: 0 2px 0 var(--lpedge), 0 0 0 3px var(--lpboard), 0 4px 8px rgba(0,0,0,.35); }
.lps.picked { background: #ffd34d !important; color: #1f1726; transform: translateY(-3px) scale(1.06); box-shadow: 0 3px 0 #b88a12, 0 8px 14px rgba(0,0,0,.4); }
.lps.over { outline: 2px solid #fff8ec; outline-offset: 1px; }
.lps.locked { color: #1f1726; transform: none; background: linear-gradient(color-mix(in srgb, var(--gc) 78%, #fff), var(--gc)); box-shadow: 0 2px 0 color-mix(in srgb, var(--gc) 55%, #000), 0 4px 7px rgba(0,0,0,.3); }
.lps.joint.locked { background: radial-gradient(ellipse 18% 14% at 24% 20%, rgba(255,255,255,.7), transparent), linear-gradient(var(--ang, 135deg), var(--c1) 0 50%, var(--c2) 50% 100%); box-shadow: 0 2px 0 rgba(0,0,0,.4), 0 0 0 3px var(--lpboard), 0 4px 8px rgba(0,0,0,.3); }
.lps.joint.locked span:last-child { text-shadow: 0 0 3px #fff, 0 0 2px #fff, 0 0 5px rgba(255,255,255,.8); }
.lps.joint.locked.neutral { background: radial-gradient(ellipse 18% 14% at 24% 20%, rgba(255,255,255,.7), transparent), linear-gradient(var(--lptile), var(--lptile2)); box-shadow: inset 0 0 0 2px #1f1726, 0 2px 0 var(--lpedge), 0 0 0 3px var(--lpboard); }
.lps.joint.locked.neutral span:last-child { text-shadow: none; }
.lps .pin { position: absolute; top: -4px; right: -1px; font-size: 9px; filter: drop-shadow(0 1px 1px rgba(0,0,0,.4)); }
.lps .sh { position: absolute; top: 1px; left: 3px; font-size: 6px; opacity: .75; }
.lps.jl { animation: lplock .5s cubic-bezier(.3,1.7,.5,1); }
@keyframes lplock { 0% { transform: scale(.8); } 100% { transform: scale(1); } }
.lps.shake { animation: lpshake .4s; }
@keyframes lpshake { 20%, 60% { transform: translateX(-3px); } 40%, 80% { transform: translateX(3px); } }
.lps.pop { animation: lpdrop .25s ease-out; }
@keyframes lppop { 0% { transform: scale(.7); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes lpdrop { 0% { transform: scale(1.15); } 100% { transform: translateY(-1px); } }
.lpcenter { grid-area: 2 / 2 / 5 / 5; position: relative; }
.lplab { position: absolute; z-index: 1; font-weight: 800; font-size: 9px; color: var(--lpmuted); }
.lplab.t { top: 15%; left: 0; right: 0; text-align: center; } .lplab.b { bottom: 15%; left: 0; right: 0; text-align: center; }
.lplab.l { left: 3%; top: 50%; transform: translateY(-50%); max-width: 46%; text-align: left; } .lplab.r { right: 3%; top: 50%; transform: translateY(-50%); max-width: 46%; text-align: right; }
.lppill { display: inline-block; background: var(--gc); color: #1f1726; border-radius: 6px; padding: 2px 5px; font-weight: 900; font-size: 7.5px; text-transform: uppercase; letter-spacing: .3px; line-height: 1.15; box-shadow: 0 0 0 2px #0c0911; animation: lppop .35s; }
.lppill.unk { background: transparent; color: #d8cce8; box-shadow: inset 0 0 0 1.5px #6b5c80; min-width: 18px; text-align: center; animation: none; }
.lppill .lpcnt { margin-left: 4px; background: rgba(255,255,255,.55); padding: 1px 4px; vertical-align: 1px; box-shadow: none; }
.lppill.unk .lpcnt { margin-left: 0; background: transparent; padding: 0; }
.lppill.unk .lpcnt i { box-shadow: inset 0 0 0 1.2px #d8cce8; } .lppill.unk .lpcnt i.on { background: #fff8ec; box-shadow: none; } .lppill.unk .lpcnt b { color: #fff8ec; }
.lpcnt { display: inline-flex; align-items: center; gap: 2px; background: #fff8ec; border-radius: 999px; padding: 2px 5px; animation: lppop .35s; }
.lpcnt i { width: 6px; height: 6px; border-radius: 50%; box-shadow: inset 0 0 0 1.2px #7a6c8e; }
.lpcnt i.on { background: #1f1726; box-shadow: none; }
.lpcnt b { margin-left: 2px; font-size: 8px; color: #1f1726; }
.lpmid { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; text-align: center; padding: 0 22%; font-size: 8.5px; font-weight: 800; font-style: italic; color: var(--lpmuted); }
.lptoast { position: absolute; left: 50%; top: 0; z-index: 9; transform: translate(-50%, -60%) scale(.9); opacity: 0; background: #fff8ec; color: #1f1726; padding: 5px 10px; border-radius: 999px; font-weight: 800; font-size: 10px; white-space: nowrap; box-shadow: 0 6px 14px rgba(0,0,0,.5); transition: opacity .25s, transform .3s cubic-bezier(.3,1.4,.5,1); pointer-events: none; }
.lptoast.show { opacity: 1; transform: translate(-50%, -60%) scale(1); }
.lpstatus { display: flex; justify-content: space-between; align-items: center; margin: 7px 4px 0; font-weight: 800; font-size: 10px; color: var(--lpmuted); }
.lpdots { display: inline-flex; gap: 3px; vertical-align: middle; margin-left: 4px; }
.lpdot { width: 9px; height: 9px; border-radius: 50%; background: radial-gradient(circle at 34% 28%, rgba(255,255,255,.85) 0 14%, transparent 34%), #fff8ec; transition: background .3s; }
.lpdot.used { background: #2a2138; box-shadow: inset 0 1px 3px rgba(0,0,0,.5); }
.lpcheck { background: #fff8ec; color: #221a2e; border-radius: 999px; padding: 4px 11px; font: 900 10px Nunito, sans-serif; box-shadow: 0 2px 0 #b88a12; transition: transform .08s, box-shadow .08s, opacity .2s; }
.lpcheck.off { opacity: .4; }
.lpcheck.press { transform: translateY(2px); box-shadow: 0 0 0 #b88a12; }
.lppool { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; align-content: flex-start; min-height: 30px; margin-top: 6px; padding: 7px 6px 8px; border-radius: 12px; background: var(--lppool); box-shadow: inset 0 2px 5px rgba(0,0,0,.5); }
.lpchip { padding: 3px 6px; border-radius: 7px; background: linear-gradient(var(--lptile), var(--lptile2)); color: #1f1726; font: 900 8.5px Nunito, sans-serif; letter-spacing: .2px; box-shadow: 0 2px 0 var(--lpedge); transform: rotate(var(--rot, 0deg)); transition: opacity .2s; white-space: nowrap; }
.lpchip.lift { opacity: .3; }
.lppool.empty::after { content: "Ring full. Hit Check!"; color: var(--lpmuted); font-weight: 800; font-size: 9.5px; align-self: center; }
.lpghost { position: absolute; z-index: 30; pointer-events: none; transform: translate(-50%, -50%) rotate(-4deg) scale(1.1); box-shadow: 0 3px 0 var(--lpedge), 0 10px 18px rgba(0,0,0,.5); transition: left .34s cubic-bezier(.3,.8,.3,1), top .34s cubic-bezier(.3,.8,.3,1); }
.card-lp .desc { color: #d8cce8; font-weight: 700; font-size: 13px; line-height: 1.4; margin: 10px 0 8px; }
.card-lp .chips li { background: #2a2138; color: #fff8ec; border: 0; box-shadow: 0 2px 0 #0c0911, inset 0 0 0 1.5px #3a2f4b; font-weight: 800; border-radius: 999px; }
.card-lp .play { background: #fff8ec; color: #221a2e; border-radius: 999px; font-family: Nunito, sans-serif; font-weight: 900; box-shadow: 0 4px 0 #b88a12; }
.card-lp .play:active { box-shadow: 0 1px 0 #b88a12; }

/* ---------- Crux card (matches the game: steel vault tiles, brass frame, red lasers) ---------- */
.card-cx {
  --cxgold: #f8d877; --cxgold2: #c8912a; --cxdim: #98a1ac; --cxlaser: #ff3048; --cxwarn: #ff9f43;
  font-family: "Chakra Petch", system-ui, sans-serif; color: #efe7d2; border: 1px solid #2d333c;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.014) 0 1px, transparent 1px 3px), radial-gradient(ellipse 120% 70% at 50% -10%, #2b323c 0%, #14171c 55%, #07080a 100%);
}
.is-center .card-cx { box-shadow: 0 30px 80px -20px rgba(248,216,119,.35), 0 0 0 1px rgba(255,48,72,.35); }
.card-cx .pill { background: #14171c; color: var(--cxdim); border: 1px solid #2d333c; }
.card-cx .tag { background: linear-gradient(180deg, var(--cxgold), var(--cxgold2)); color: #2a1c04; border-radius: 999px; font-family: "Chakra Petch", sans-serif; }
.cxbrand { display: flex; align-items: baseline; gap: 10px; }
.cxlogo { margin: 0; font: 400 34px/1 "Black Ops One", Impact, sans-serif; letter-spacing: 6px;
  background: linear-gradient(180deg, #fff3c4 0%, var(--cxgold) 40%, var(--cxgold2) 75%, #8a5a12 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 #3d2a07) drop-shadow(0 0 12px rgba(248,216,119,.18)); }
.cxtag { font: 11px "Special Elite", monospace; color: var(--cxdim); letter-spacing: 1px; }
.cxdoss { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; }
.cxcard { position: relative; border-radius: 8px; padding: 5px 7px 6px; min-height: 40px; background: linear-gradient(180deg, #efe3c2, #dccb9c); color: #2b2214; box-shadow: 0 2px 0 #9d8a5a, 0 5px 10px rgba(0,0,0,.45); font-family: "Special Elite", monospace; }
.cxcard .lab { font: 700 8px "Chakra Petch", sans-serif; letter-spacing: 1.6px; color: #7a1d1d; }
.cxcard .txt { font-size: 10.5px; line-height: 1.2; margin-top: 2px; }
.cxcard.sealed { background: linear-gradient(180deg, #3a3f47, #2a2e35); color: var(--cxdim); box-shadow: 0 2px 0 #15181c, 0 5px 10px rgba(0,0,0,.45); }
.cxcard.sealed .lab { color: #b8a46c; }
.cxcard.fresh { animation: cxpop .6s cubic-bezier(.2,1.6,.4,1); }
@keyframes cxpop { 0% { transform: scale(.8) rotate(-3deg); } 100% { transform: none; } }
.cxstamp { position: absolute; right: 4px; top: 3px; font: 7px "Black Ops One", sans-serif; letter-spacing: 1px; color: #b3261e; border: 1.5px solid #b3261e; border-radius: 3px; padding: 0 3px; transform: rotate(8deg); opacity: .75; }
.cxph { display: flex; gap: 5px; margin-top: 7px; }
.cxpill { flex: 1; min-width: 0; display: flex; align-items: center; gap: 4px; border-radius: 999px; padding: 3px 6px; font-size: 9px; white-space: nowrap; font-weight: 600; border: 1px solid #2f3540; background: #15181d; color: var(--cxdim); transition: border-color .3s, color .3s; }
.cxpill .dot { width: 14px; height: 14px; border-radius: 50%; display: grid; place-items: center; font-size: 8.5px; background: #2a3038; color: var(--cxdim); flex: none; }
.cxpill.now { border-color: var(--cxlaser); color: #efe7d2; box-shadow: 0 0 8px rgba(255,48,72,.25); }
.cxpill.now .dot { background: var(--cxlaser); color: #fff; }
.cxpill.done { border-color: var(--cxgold2); color: var(--cxgold); }
.cxpill.done .dot { background: var(--cxgold); color: #2a1c04; }
.cxctr { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-top: 6px; }
.cxctr div { text-align: center; border-radius: 6px; padding: 2px 0 3px; background: #0e1013; border: 1px solid #262b33; box-shadow: inset 0 2px 6px rgba(0,0,0,.6); }
.cxctr b { display: block; font-size: 14px; font-weight: 700; color: #7dffb0; font-variant-numeric: tabular-nums; text-shadow: 0 0 8px rgba(125,255,176,.35); line-height: 1.15; }
.cxctr span { font-size: 7px; letter-spacing: 1.6px; color: var(--cxdim); }
.cxctr .pen b { color: var(--cxwarn); text-shadow: 0 0 8px rgba(255,159,67,.35); }
.cxvault {
  position: relative; width: 100%; max-width: 202px; margin: 8px auto 0; padding: 7px; border-radius: 16px; perspective: 900px;
  background:
    radial-gradient(circle at 9px 9px, #e7c66f 0 2px, #6b4c12 3px, transparent 4px), radial-gradient(circle at calc(100% - 9px) 9px, #e7c66f 0 2px, #6b4c12 3px, transparent 4px),
    radial-gradient(circle at 9px calc(100% - 9px), #e7c66f 0 2px, #6b4c12 3px, transparent 4px), radial-gradient(circle at calc(100% - 9px) calc(100% - 9px), #e7c66f 0 2px, #6b4c12 3px, transparent 4px),
    linear-gradient(145deg, #e2bd5f, #9c7426 35%, #d7b158 55%, #7a5718);
  box-shadow: 0 10px 24px rgba(0,0,0,.6), inset 0 2px 0 rgba(255,255,255,.35), inset 0 -3px 0 rgba(0,0,0,.35);
}
.cxwrap { display: grid; grid-template-columns: 14px 1fr 14px; grid-template-rows: 14px auto 14px; gap: 3px; background: linear-gradient(180deg, #2b3038, #191c21); border-radius: 10px; padding: 4px; box-shadow: inset 0 3px 10px rgba(0,0,0,.8); }
.cxar { display: flex; color: #7f8893; font-size: 8px; transition: opacity .3s; }
.cxar span { flex: 1; display: grid; place-items: center; }
.cxar.v { flex-direction: column; }
.cxar.off { opacity: 0; }
.cxar span.lock { color: var(--cxgold2); font-size: 7px; }
.cxboard { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 6px; background: repeating-linear-gradient(0deg, #121419 0 2px, #16191e 2px 4px); }
.cxt { position: absolute; width: 20%; height: 20%; padding: 1.5px; left: calc(var(--c) * 20%); top: calc(var(--r) * 20%); }
.cxt.anim { transition: left .42s cubic-bezier(.2,.8,.3,1), top .42s cubic-bezier(.2,.8,.3,1); }
.cxt i {
  position: relative; display: grid; place-items: center; width: 100%; height: 100%; border-radius: 6px; font: normal 700 15px/1 "Chakra Petch", sans-serif; color: #f3ead3;
  background: linear-gradient(180deg, #68717e 0%, #4a525e 18%, #353c46 55%, #2a3038 85%, #1f242b 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), inset 0 -2px 0 rgba(0,0,0,.45), 0 2px 3px rgba(0,0,0,.5);
  text-shadow: 0 -1px 0 rgba(0,0,0,.7), 0 1px 0 rgba(255,255,255,.12);
}
.cxt i::after { content: ""; position: absolute; left: 14%; right: 14%; bottom: 7%; height: 12%; border-radius: 2px; opacity: .5; background: repeating-linear-gradient(90deg, #c8ced6 0 1px, transparent 1px 4px); }
.cxboard.p2 .cxt i::after { left: auto; right: 7%; top: 14%; bottom: 14%; width: 12%; height: auto; background: repeating-linear-gradient(0deg, #c8ced6 0 1px, transparent 1px 4px); }
.cxt.act i { background: linear-gradient(180deg, #7c8695 0%, #5a6370 18%, #414955 55%, #323943 85%, #262b33 100%); }
.cxt.gold i { color: #3a2604; text-shadow: 0 1px 0 rgba(255,255,255,.45); background: linear-gradient(180deg, #fff2bf 0%, #f8d877 25%, #e0aa3e 65%, #a8721c 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.7), inset 0 -2px 0 rgba(90,55,5,.5), 0 0 10px rgba(248,216,119,.35); }
.cxt.gold i::after { background: repeating-linear-gradient(90deg, #6b4710 0 1px, transparent 1px 4px); }
.cxt.crux i::before { content: ""; position: absolute; inset: 2px; border-radius: 5px; border: 1.5px dashed rgba(122,29,29,.55); }
.cxt.sweep i { animation: cxsweep .55s ease-out both; }
@keyframes cxsweep { 0% { transform: scale(1); } 40% { transform: scale(1.12); filter: brightness(1.5); } 100% { transform: scale(1); } }
.cxlaser { position: absolute; pointer-events: none; z-index: 3; opacity: 0; transition: opacity .4s; }
.cxlaser.v { top: 0; bottom: 0; left: 40%; width: 20%; border-left: 2px solid var(--cxlaser); border-right: 2px solid var(--cxlaser); box-shadow: -3px 0 8px -3px var(--cxlaser), 3px 0 8px -3px var(--cxlaser), inset 3px 0 8px -5px var(--cxlaser), inset -3px 0 8px -5px var(--cxlaser); }
.cxlaser.h { left: 0; right: 0; top: 40%; height: 20%; border-top: 2px solid var(--cxlaser); border-bottom: 2px solid var(--cxlaser); box-shadow: 0 -3px 8px -3px var(--cxlaser), 0 3px 8px -3px var(--cxlaser), inset 0 3px 8px -5px var(--cxlaser), inset 0 -3px 8px -5px var(--cxlaser); }
.cxboard.p1 .cxlaser.v, .cxboard.p2 .cxlaser.h { opacity: 1; animation: cxhum 2.2s ease-in-out infinite; }
@keyframes cxhum { 50% { filter: brightness(1.6); } }
.cxboard.won .cxlaser { opacity: 0 !important; }
.cxhand { position: absolute; z-index: 6; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; pointer-events: none; border: 2px solid #fff3c4; box-shadow: 0 0 10px rgba(248,216,119,.8), inset 0 0 6px rgba(248,216,119,.5); opacity: 0; transition: left .42s cubic-bezier(.2,.8,.3,1), top .42s cubic-bezier(.2,.8,.3,1), opacity .2s; }
.cxhand.show { opacity: 1; }
.cxheist { position: absolute; inset: 0; z-index: 8; display: grid; place-items: center; border-radius: 16px; background: rgba(3,4,6,.82); opacity: 0; pointer-events: none; transition: opacity .3s; }
.cxheist.open { opacity: 1; }
.cxstage { position: relative; width: 72%; aspect-ratio: 1; }
.cxtreasure { position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center; text-align: center; background: radial-gradient(circle, #5a3f0b 0%, #2a1c05 55%, #0d0902 100%); box-shadow: inset 0 0 30px #000, 0 0 0 5px #2b2f36; }
.cxtreasure .loot { font-size: 26px; line-height: 1.05; filter: drop-shadow(0 0 12px rgba(248,216,119,.6)); }
.cxtreasure .w { font: 400 11px "Black Ops One", sans-serif; letter-spacing: 2px; color: var(--cxgold); margin-top: 3px; }
.cxdoor { position: absolute; inset: 0; border-radius: 50%; transform-origin: 2% 50%; transition: transform 1.15s cubic-bezier(.55,.05,.3,1);
  background: radial-gradient(circle at 36% 30%, #8a929d 0%, #58606b 35%, #353b44 70%, #22262c 100%);
  box-shadow: 0 0 0 5px #9aa1aa, 0 0 0 8px #3b4048, 0 14px 30px rgba(0,0,0,.8), inset 0 0 20px rgba(0,0,0,.6); }
.cxdoor::before { content: ""; position: absolute; inset: 7%; border-radius: 50%; border: 3px dotted #b4bbc4; opacity: .7; }
.cxdoor::after { content: "CRUX"; position: absolute; left: 0; right: 0; top: 11%; text-align: center; font: 400 11px "Black Ops One", sans-serif; letter-spacing: 4px; color: #c9cfd6; opacity: .6; }
.cxwheel { position: absolute; inset: 28%; border-radius: 50%; border: 6px solid #c3c9d1; transition: transform 1s cubic-bezier(.5,0,.3,1); box-shadow: 0 3px 8px rgba(0,0,0,.6), inset 0 2px 6px rgba(0,0,0,.5); }
.cxwheel i { position: absolute; left: 50%; top: -12%; width: 6px; height: 124%; margin-left: -3px; border-radius: 3px; background: linear-gradient(90deg, #9aa1aa, #e1e6eb, #9aa1aa); }
.cxwheel i:nth-child(2) { transform: rotate(60deg); } .cxwheel i:nth-child(3) { transform: rotate(120deg); }
.cxwheel b { position: absolute; inset: 32%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff1b8, #c8912a); }
.cxheist.spin .cxwheel { transform: rotate(540deg); }
.cxheist.swing .cxdoor { transform: rotateY(-112deg); }
.cxcap { position: absolute; bottom: 5%; left: 0; right: 0; text-align: center; font: 400 15px "Black Ops One", sans-serif; letter-spacing: 3px; color: var(--cxgold); opacity: 0; transition: opacity .5s .9s; }
.cxheist.swing .cxcap { opacity: 1; }

/* Crux alarm stage: mirror / bar faces, the beam, emitter and sensor (same look as the game) */
.cxwrap { position: relative; }
.cxar.top, .cxposts.top { grid-area: 1 / 2; } .cxar.bot, .cxposts.bot { grid-area: 3 / 2; }
.cxposts { display: flex; pointer-events: none; }
.cxposts span { flex: 1; display: grid; place-items: center; }
.cxposts b { display: block; width: 70%; height: 82%; border-radius: 3px; font-size: 7px; line-height: 1; font-weight: 400; display: grid; place-items: center; transition: opacity .5s, transform .5s; }
.cxposts b.cxnone { visibility: hidden; }
.cxpost.emit { background: linear-gradient(180deg, #5a1d24, #2a0b0f); border: 1px solid #ff3048; box-shadow: 0 0 6px rgba(255,48,72,.6); position: relative; }
.cxpost.emit::after { content: ""; position: absolute; bottom: -2px; left: 50%; margin-left: -2px; width: 4px; height: 4px; border-radius: 50%; background: #ff3048; box-shadow: 0 0 5px 1px #ff3048; }
.cxpost.sens { background: linear-gradient(180deg, #2a2f37, #15181d); border: 1px solid #6b7280; }
.cxpost.sens.ok { border-color: #22c55e; box-shadow: 0 0 8px rgba(34,197,94,.8); background: linear-gradient(180deg, #14532d, #052e16); }
.cxpost.gone { opacity: 0; transform: scale(.6); }
.cxt i b.lt { display: block; font: inherit; transition: transform .7s cubic-bezier(.3,1.4,.5,1), opacity .6s; }
.cxboard.p0 .cxt i b.lt { transform: translate(30%, 30%) scale(.4); opacity: .4; }
.cxt .mir { position: absolute; left: 50%; top: 50%; width: 122%; height: 8%; min-height: 3px; border-radius: 2px; pointer-events: none; z-index: 1; transition: opacity .6s, transform .6s;
  background: linear-gradient(180deg, #ffffff 0%, #dfe6ee 35%, #8f9aa7 60%, #e9eef3 100%); box-shadow: 0 0 0 1px rgba(20,24,30,.6), 0 0 5px rgba(190,220,255,.45); }
.cxt .mir.s { transform: translate(-50%, -50%) rotate(-45deg); } .cxt .mir.b { transform: translate(-50%, -50%) rotate(45deg); }
.cxt .bar { position: absolute; inset: 10%; border-radius: 3px; pointer-events: none; z-index: 1; transition: opacity .6s;
  background: repeating-linear-gradient(90deg, #c3cad3 0 2px, #59616c 2px 3px, transparent 3px 6px); border-top: 2px solid #8b939e; border-bottom: 2px solid #8b939e; opacity: .95; }
.cxboard:not(.p0) .cxt .mir, .cxboard:not(.p0) .cxt .bar { opacity: 0; }
.cxboard:not(.p0) .cxt .mir.s { transform: translate(-50%, -50%) rotate(-45deg) scale(.3); } .cxboard:not(.p0) .cxt .mir.b { transform: translate(-50%, -50%) rotate(45deg) scale(.3); }
.cxboard.p0 .cxt i { background: linear-gradient(180deg, #3f4855 0%, #2c333d 40%, #20262e 100%); }
.cxboard.p0 .cxt i::after { opacity: .2; }
.cxboard.p0 .cxt.lit i { box-shadow: inset 0 0 8px rgba(255,48,72,.6), inset 0 1px 0 rgba(255,255,255,.2), 0 2px 3px rgba(0,0,0,.5); }
.cxboard.p0.beamok .cxt.lit i { box-shadow: inset 0 0 8px rgba(34,197,94,.6), inset 0 1px 0 rgba(255,255,255,.2), 0 2px 3px rgba(0,0,0,.5); }
.cxbeam { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 4; pointer-events: none; overflow: visible; transition: opacity .25s; }
.cxbeam polyline { fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.cxbeam .glow { stroke: rgba(255,48,72,.55); stroke-width: 6px; filter: blur(2px); } .cxbeam .core { stroke: #ff3048; stroke-width: 2.2px; } .cxbeam .hot { stroke: #ffe4e8; stroke-width: .8px; }
.cxbeam.ok .glow { stroke: rgba(74,222,128,.6); } .cxbeam.ok .core { stroke: #22c55e; } .cxbeam.ok .hot { stroke: #eafff0; }
.cxboard:not(.p0) .cxbeam { opacity: 0; } .cxboard.moving .cxbeam { opacity: .15; }
.card-cx .desc { color: #c9c2b0; font-size: 13px; line-height: 1.42; margin: 10px 0 8px; }
.card-cx .desc b { color: #efe7d2; } .card-cx .desc .red { color: var(--cxlaser); }
.card-cx .chips li { background: #15181d; color: #d8d1bf; border: 1px solid #2f3540; }
.card-cx .play { color: #2a1c04; border-radius: 12px; background: linear-gradient(180deg, var(--cxgold), var(--cxgold2)); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 3px 0 #6b4710, 0 5px 12px rgba(248,216,119,.25); }

/* PowerStream 2 · Brass Edition palette (navy enamel board, brass traces and rims) */
.card.card-ps2 {
  --copper: #d9b25a; --silk: #f4ecd8; --silk-dim: #b9a77f;
  border: 1px solid #6e5524; color: var(--silk);
  background-color: #05090f;
  background-image:
    radial-gradient(circle at 12px 12px, #010604 2.2px, var(--copper) 2.6px, var(--copper) 3.8px, transparent 4.3px),
    radial-gradient(circle at calc(100% - 12px) 12px, #010604 2.2px, var(--copper) 2.6px, var(--copper) 3.8px, transparent 4.3px),
    radial-gradient(circle at 12px calc(100% - 12px), #010604 2.2px, var(--copper) 2.6px, var(--copper) 3.8px, transparent 4.3px),
    radial-gradient(circle at calc(100% - 12px) calc(100% - 12px), #010604 2.2px, var(--copper) 2.6px, var(--copper) 3.8px, transparent 4.3px),
    radial-gradient(ellipse 90% 45% at 50% -5%, rgba(242,200,91,.12), transparent 70%),
    radial-gradient(rgba(217,178,90,.07) 1px, transparent 1.2px),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'><g fill='none' stroke='%23162536' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M0 40H30L50 60H96L112 44H180'/><path d='M140 0V30L156 46V100L140 116V180'/><path d='M0 150H24L40 134H88'/><path d='M180 150H164L152 162V180'/><path d='M60 180V156L76 140H110'/><path d='M100 88H124'/></g><g fill='%23080e16' stroke='%235a4520' stroke-width='2'><circle cx='88' cy='134' r='4'/><circle cx='100' cy='88' r='4'/><circle cx='124' cy='88' r='4'/><circle cx='110' cy='140' r='4'/></g><g fill='none' stroke='%23182a3d' stroke-width='1.5'><rect x='44' y='92' width='34' height='22' rx='2'/></g></svg>");
  background-size: auto, auto, auto, auto, 100% 100%, 18px 18px, 180px 180px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.7), inset 0 0 0 1px rgba(255,226,150,.06), inset 0 1px 0 rgba(255,236,180,.14), 0 30px 60px -22px rgba(0,0,0,.75);
}
.is-center .card.card-ps2 { box-shadow: 0 0 0 1px rgba(0,0,0,.7), 0 30px 80px -20px rgba(217,178,90,.38), 0 0 0 2px rgba(217,178,90,.3); }
.card.card-ps2 .tag { --c: #f2c85b; border-color: var(--copper); color: #fff3cf; background: linear-gradient(180deg, #2c2414 0%, #191309 100%); box-shadow: 0 2px 0 #020509, 0 0 14px rgba(217,178,90,.25), inset 0 0 12px rgba(217,178,90,.14); }
.card.card-ps2 .tag .pled.lit { background: #f2c85b; box-shadow: 0 0 6px #f2c85b, 0 0 12px #f2c85b; }
.card.card-ps2 .plogo { color: #fbf3dc; }
.card.card-ps2 .plogo .cu { background: linear-gradient(180deg, #fff6d2 0%, #f0cd72 38%, #b88628 62%, #e9c066 100%); -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 1px 0 #3a2606); }
.card.card-ps2 .lc { background: #070d14; border-color: #3a3322; color: #74808f; }
.card.card-ps2 .lc.on { color: var(--c); border-color: var(--c); }
.card.card-ps2 .lc .pled { background: #1c2430; }
.card.card-ps2 .lc.on .pled { background: var(--c); }
.card.card-ps2 .lc:not(:last-child)::after { background: #8c6d2c; }
.card.card-ps2 .lc.on:not(:last-child)::after { background: var(--c); }
.card.card-ps2 .pmoves { background: linear-gradient(180deg, #03070c, #070c14); border-color: #5a4520; }
.card.card-ps2 .desc { color: #d6ccb4; }
.card.card-ps2 .chips li { background: #070d14; color: var(--silk-dim); border-color: #3a3322; }
.card.card-ps2 .pwin .stamp { background: linear-gradient(180deg, #152131, #0d1520); }
.card-ps2 .p2frame { background: linear-gradient(180deg, #0c121b, #080c13); border-color: #6e5524;
  box-shadow: 0 0 0 4px #0b1119, 0 0 0 6px #b38d42, 0 0 0 7px #4a3612, 0 0 20px rgba(217,178,90,.16), 0 12px 32px rgba(0,0,0,.6), inset 0 0 24px rgba(0,0,0,.7); }
.card-ps2 .p2frame.dragging { box-shadow: 0 0 0 4px #0b1119, 0 0 0 6px #2ee6ff, 0 0 22px rgba(46,230,255,.55), 0 12px 32px rgba(0,0,0,.6), inset 0 0 24px rgba(0,0,0,.7); }
.card-ps2 .p2cell {
  background-color: #18212c;
  background-image: radial-gradient(circle at 30% 22%, rgba(255,240,200,.07), transparent 65%), linear-gradient(160deg, #1f2a37 0%, #121a24 100%);
  box-shadow: inset 0 0 0 1px rgba(214,174,82,.85), inset 0 1.5px 0 rgba(255,236,180,.3), inset 0 0 6px rgba(0,0,0,.55), 0 1px 0 rgba(0,0,0,.7);
}
.card-ps2 .p2cell::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  opacity: .55;
  background: radial-gradient(circle at 14% 14%, #e9c477 0 .5px, transparent 1px), radial-gradient(circle at 86% 14%, #e9c477 0 .5px, transparent 1px),
              radial-gradient(circle at 14% 86%, #e9c477 0 .5px, transparent 1px), radial-gradient(circle at 86% 86%, #e9c477 0 .5px, transparent 1px);
}
.card-ps2 .p2cell.chip { background-color: #1a2430; }
.card-ps2 .p2cell.tglow { background-color: #0b3b44; background-image: none; }
.card-ps2 .p2cell.tglow.t1 { background-color: #3f2e08; }
.card-ps2 .p2cell.ph0 { box-shadow: inset 0 0 0 1px rgba(57,255,136,.75), inset 0 0 8px rgba(57,255,136,.28), 0 1px 0 rgba(0,0,0,.6); }
.card-ps2 .p2cell.ph1 { box-shadow: inset 0 0 0 1px rgba(255,178,30,.8), inset 0 0 8px rgba(255,178,30,.32), 0 1px 0 rgba(0,0,0,.6); }
.card-ps2 .p2cell.ph2 { box-shadow: inset 0 0 0 1px rgba(46,230,255,.75), inset 0 0 8px rgba(46,230,255,.3), 0 1px 0 rgba(0,0,0,.6); }

/* ---------- LinkLetter card (1950s parlor game: formica tray, ivory dice, printed score card) ---------- */
.card-ll {
  --tray: #2c8a80; --tray-deep: #1d675f; --chrome: #d9dde0; --ivory: #fbf6e9; --ivory-shade: #e3d6b8;
  --ink: #2a2622; --muted: #6c655b; --pad: #fffaf0; --rule: #ecd9cf; --accent: #c8302f; --brass: #f0b43c; --good: #2f7a4a;
  font-family: "Josefin Sans", Futura, "Century Gothic", sans-serif;
  background: #f4ecd8; border: 1px solid #e3d3ad; color: var(--ink);
}
.is-center .card-ll { box-shadow: 0 30px 80px -20px rgba(44,138,128,.5), 0 0 0 2px rgba(240,180,60,.55); }
.card-ll .pill { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); font-family: "Josefin Sans", sans-serif; font-weight: 700; letter-spacing: .12em; padding: 4px 9px 3px; }
.card-ll .tag { background: var(--accent); color: #fff8ea; font-family: "Atomic Age", Futura, sans-serif; font-weight: 400; letter-spacing: .06em; text-transform: none; font-size: 11.5px; }
.lllogo { margin: 0; line-height: 0; }
.lllogo svg { display: block; width: 236px; max-width: 100%; height: auto; overflow: visible; }
.lllogo .f-c1 { fill: #c8302f; } .lllogo .s-c2 { stroke: #23857a; } .lllogo .s-bg { stroke: #f4ecd8; } .lllogo .f-brass { fill: #f0b43c; }
.llsub { font-family: "Atomic Age", Futura, sans-serif; font-size: 11.5px; letter-spacing: .05em; color: var(--muted); margin-top: 2px; display: flex; justify-content: space-between; }
.llsub b { font-family: "Josefin Sans", sans-serif; color: var(--ink); font-weight: 700; letter-spacing: .08em; }
.lltray {
  margin-top: 10px; padding: 10px 10px 11px; border-radius: 16px; border: 4px solid var(--chrome); color: var(--ivory);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cg fill='none' stroke='%23fbf6e9' stroke-opacity='.08' stroke-width='5' stroke-linecap='round'%3E%3Cpath d='M20 60 Q55 20 95 48 Q60 40 40 75 Z'/%3E%3Cpath d='M130 160 Q170 125 205 155 Q170 148 150 182 Z'/%3E%3C/g%3E%3Cg fill='%23f0b43c' fill-opacity='.13'%3E%3Cpath d='M160 40 l4 14 14 4 -14 4 -4 14 -4 -14 -14 -4 14 -4z'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 160px 160px,
    radial-gradient(120% 90% at 30% 0%, var(--tray), var(--tray-deep));
  box-shadow: inset 0 2px 0 rgba(255,255,255,.08), inset 0 -10px 30px rgba(0,0,0,.35), 0 10px 20px -14px rgba(0,0,0,.6);
  display: grid; gap: 8px;
}
.lldice { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.llslot { display: grid; gap: 4px; }
.lldie {
  position: relative; aspect-ratio: 1; border-radius: 18%; display: grid; place-items: center;
  background: linear-gradient(160deg, var(--ivory) 55%, var(--ivory-shade)); color: #241a1c;
  font-family: "Alfa Slab One", Rockwell, Georgia, serif; font-size: 19px; line-height: 1;
  box-shadow: 0 3px 0 #a9997a, 0 6px 10px -4px rgba(0,0,0,.5);
  transition: transform .15s, opacity .15s, box-shadow .15s;
}
.lldie .pts { position: absolute; right: 9%; bottom: 5%; font: 700 8px/1 "Josefin Sans", sans-serif; color: #7a6b60; }
.lldie.held { box-shadow: 0 0 0 2.5px var(--brass), 0 3px 0 #a9997a, 0 6px 10px -4px rgba(0,0,0,.5); }
.lldie.used { opacity: .28; transform: translateY(3px); box-shadow: 0 1px 0 #a9997a; }
.lldie.tap { transform: translateY(-3px) scale(1.06); }
.lldie.tumble { animation: lltumble .45s cubic-bezier(.3,.7,.4,1); }
@keyframes lltumble { 0% { transform: rotate(-35deg) scale(.7) translateY(-12px); } 60% { transform: rotate(12deg) scale(1.05); } 100% { transform: none; } }
.llkeep {
  border: 1px solid rgba(247,241,227,.35); color: var(--ivory); border-radius: 999px; text-align: center;
  font: 600 7.5px/1 "Josefin Sans", sans-serif; letter-spacing: .08em; padding: 3px 0 2px; transition: background .2s, color .2s;
}
.llkeep.on { background: var(--brass); border-color: var(--brass); color: #241a1c; }
.llbar { background: rgba(0,0,0,.22); border-radius: 11px; padding: 7px; display: grid; gap: 6px; }
.lllink { display: flex; align-items: center; gap: 8px; min-height: 34px; }
.lllinkdie {
  width: 32px; height: 32px; flex: none; border-radius: 8px; display: grid; place-items: center;
  font: 400 17px/1 "Alfa Slab One", Georgia, serif; color: rgba(247,241,227,.4);
  border: 1.5px dashed rgba(247,241,227,.3); transition: background .3s, box-shadow .3s;
}
.lllinkdie.on { border: 0; color: #241a1c; background: linear-gradient(160deg, #e8c25a 50%, #b88a22); box-shadow: 0 3px 0 #7d5e16, 0 6px 10px -4px rgba(0,0,0,.5); }
.lllinkdie.used { opacity: .3; }
.lllinkdie.pop { animation: llstamp .5s ease; }
@keyframes llstamp { 0% { transform: scale(1.6); } 100% { transform: none; } }
.lllinktxt { flex: 1; min-width: 0; font-size: 10.5px; line-height: 1.3; }
.lllinktxt b { color: var(--brass); }
.llchain { display: flex; gap: 3px; align-items: center; margin-top: 3px; }
.llchain i { width: 13px; height: 4px; border-radius: 2px; background: rgba(247,241,227,.2); transition: background .3s; }
.llchain i.on { background: var(--brass); }
.llchain span { font: 400 10.5px/1 "Alfa Slab One", Georgia, serif; color: var(--brass); margin-left: 4px; }
.lltiles { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 3px; }
.lltile {
  aspect-ratio: 1; border-radius: 6px; display: grid; place-items: center; border: 1.5px dashed rgba(247,241,227,.25);
  font: 400 13px/1 "Alfa Slab One", Georgia, serif; color: #241a1c; transition: transform .2s;
}
.lltile.full { border: 0; background: var(--ivory); box-shadow: 0 2px 0 #a9997a; animation: lldrop .22s ease-out; }
.lltile.link { background: var(--brass); box-shadow: 0 2px 0 #8a6a1e; }
.lltile.pickable { outline: 2px dashed var(--brass); outline-offset: 1px; }
.lltile.picked { box-shadow: 0 0 0 2.5px var(--brass), 0 2px 0 #a9997a; transform: translateY(-3px); }
@keyframes lldrop { from { transform: translateY(-6px) scale(.8); opacity: .3; } }
.llctl { display: flex; align-items: center; gap: 10px; }
.llroll {
  font: 400 13px/1 "Atomic Age", Futura, sans-serif; letter-spacing: .05em; color: #241a1c; background: var(--brass);
  border-radius: 999px; padding: 7px 14px 6px; box-shadow: 0 3px 0 #8a6a1e; transition: transform .1s, box-shadow .1s;
}
.llroll.press { transform: translateY(2px); box-shadow: 0 1px 0 #8a6a1e; }
.llpips { display: flex; gap: 4px; align-items: center; font: 600 8.5px/1 "Josefin Sans", sans-serif; letter-spacing: .1em; text-transform: uppercase; opacity: .9; }
.llpip { width: 8px; height: 8px; border-radius: 50%; border: 1.3px solid var(--ivory); }
.llpip.on { background: var(--ivory); }
.llmsg { margin-left: auto; font-size: 10.5px; font-weight: 600; color: #9be3b2; text-align: right; line-height: 1.2; }
.llpad { margin-top: 9px; background: var(--pad); border: 1.5px solid var(--ink); border-radius: 3px; box-shadow: 4px 4px 0 var(--brass); overflow: hidden; }
.llpad h3 { margin: 0; background: var(--accent); color: #fff8ea; padding: 4px 8px 3px; font: 400 12.5px/1.2 "Atomic Age", Futura, sans-serif; letter-spacing: .04em; display: flex; justify-content: space-between; }
.llpad h3 small { font: 700 8px/1.6 "Josefin Sans", sans-serif; letter-spacing: .16em; }
.llrow { display: grid; grid-template-columns: minmax(0, 1fr) 54px; align-items: center; padding: 3px 8px; border-bottom: 1px solid var(--rule); font-size: 11.5px; transition: background .3s; }
.llrow .nm { font-weight: 700; }
.llrow .nm small { font-weight: 600; font-size: 9.5px; color: var(--muted); margin-left: 3px; }
.llrow .v { text-align: right; color: var(--muted); font-size: 11px; }
.llrow .v.prev { color: var(--good); font-weight: 700; }
.llrow .v.fill { font: 700 20px/.9 Caveat, "Bradley Hand", cursive; color: var(--accent); }
.llrow.hot { background: color-mix(in srgb, var(--brass) 20%, transparent); }
.llrow.total { border-top: 1.5px solid var(--ink); border-bottom: 0; }
.llrow.total .v { font: 400 14px/1 "Alfa Slab One", Georgia, serif; color: var(--accent); }
.card-ll .desc { color: #4a433b; font-size: 13px; line-height: 1.45; margin: 12px 0 9px; font-weight: 600; }
.card-ll .chips li { background: var(--pad); color: var(--ink); border: 1.5px solid var(--ink); border-radius: 999px; font-weight: 700; font-size: 10.5px; }
.card-ll .chips li.gold { background: var(--brass); }
.card-ll .play {
  font-family: "Atomic Age", Futura, sans-serif; font-weight: 400; font-size: 18px; letter-spacing: .04em; color: #241a1c;
  background: var(--brass); border-radius: 999px; box-shadow: 0 4px 0 #8a6a1e;
}
.card-ll .play:active { box-shadow: 0 1px 0 #8a6a1e; }

/* ---------- Expanse Breach card (gritty metal HUD, cyan + amber glow like the game) ---------- */
.card-eb {
  font-family: "Exo 2", Outfit, system-ui, sans-serif;
  background: radial-gradient(130% 55% at 50% 0%, #15202f 0%, #0b0f17 55%, #05070b 100%);
  border: 1px solid #2a3240; padding: 18px;
}
.is-center .card-eb { box-shadow: 0 30px 80px -20px rgba(79,227,255,.38), 0 0 0 1px rgba(255,154,46,.5); }
.card-eb .top { margin-bottom: 10px; }
.card-eb .pill { background: #171d28; color: #4fe3ff; border: 1px solid #3b4556; font-family: Orbitron, sans-serif; letter-spacing: .1em; box-shadow: inset 0 1px 0 rgba(255,255,255,.07); }
.card-eb .tag { background: linear-gradient(#ffb04d, #e8640f); color: #1a0800; font-family: Orbitron, sans-serif; font-weight: 800; border-radius: 5px; }
.ebbrand { text-align: center; margin-bottom: 8px; }
.eblogo {
  margin: 0; font: 900 21px/1 Orbitron, sans-serif; letter-spacing: 2px; white-space: nowrap;
  background: linear-gradient(180deg, #fff 0%, #c9d6e6 45%, #6b7b90 55%, #4fe3ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 8px rgba(79,227,255,.4));
}
.ebsub { display: block; margin-top: 4px; font-size: 9.5px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: #8590a3; }
.ebhud { display: flex; gap: 4px; margin-bottom: 6px; }
.ebstat {
  flex: 1; min-width: 0; height: 26px; border-radius: 6px; display: flex; align-items: center; justify-content: center; gap: 3px; overflow: hidden; white-space: nowrap;
  font: 800 12px Orbitron, sans-serif;
  background: linear-gradient(180deg, #1a202b 0%, #10141c 55%, #0b0e14 100%); border: 1px solid #2a3240; box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 2px 5px rgba(0,0,0,.5);
}
.ebstat small { color: #8590a3; font: 700 8.5px "Exo 2", sans-serif; letter-spacing: 1px; }
.ebstat.l b { color: #ff4d4d; text-shadow: 0 0 8px rgba(255,77,77,.6); }
.ebstat.c b { color: #ffcf4a; text-shadow: 0 0 8px rgba(255,207,74,.55); }
.ebstat.w b { color: #4fe3ff; text-shadow: 0 0 8px rgba(79,227,255,.55); }
.ebstat.p b { color: #c9b8ff; text-shadow: 0 0 8px rgba(183,125,255,.55); }
.ebstat.bump { animation: ebbump .35s ease-out; }
@keyframes ebbump { 0% { filter: brightness(2.2); transform: scale(1.06); } 100% { filter: none; transform: none; } }
.ebplay { display: flex; gap: 8px; align-items: stretch; }
.ebmap { position: relative; width: 160px; flex: none; border-radius: 8px; box-shadow: 0 0 0 1px #2a3240, 0 0 0 3px #0b0e14, 0 0 0 4px #1d2430, 0 6px 18px rgba(0,0,0,.7); }
.ebcv { display: block; width: 100%; aspect-ratio: 9 / 14; border-radius: 8px; background: #05070b; }
.ebtapm { position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; pointer-events: none; opacity: 0;
  background: radial-gradient(circle, rgba(255,255,255,.75) 0 22%, rgba(79,227,255,.35) 24% 55%, transparent 60%); }
.ebtapm.go { animation: ebtap .55s ease-out; }
@keyframes ebtap { 0% { opacity: 0; transform: scale(1.7); } 25% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(.9); } }
.ebtoast {
  position: absolute; left: 50%; top: 38%; width: 96%; text-align: center; pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(.9); transition: all .25s;
  font: 900 12px Orbitron, sans-serif; letter-spacing: 1.5px; color: #fff; text-shadow: 0 0 8px #ff9a2e, 0 0 18px rgba(255,120,30,.6), 0 2px 2px #000;
}
.ebtoast.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.ebside {
  flex: 1; min-width: 0; border-radius: 9px; padding: 5px; display: flex; flex-direction: column; justify-content: center; overflow: hidden;
  background: linear-gradient(180deg, #1a202b 0%, #10141c 55%, #0b0e14 100%); border: 1px solid #2a3240; box-shadow: inset 0 1px 0 rgba(255,255,255,.07), inset 0 -1px 0 rgba(0,0,0,.6);
}
.ebcards { display: flex; flex-direction: column; gap: 4px; height: 100%; }
.ebc {
  flex: 1; min-height: 0; display: flex; align-items: center; gap: 6px; padding: 0 6px; border-radius: 7px;
  background: linear-gradient(180deg, #1f2633, #141922); border: 1px solid #3b4556; box-shadow: inset 0 1px 0 rgba(255,255,255,.08); transition: opacity .2s, filter .2s, transform .12s;
}
.ebc img { width: 34px; height: 34px; flex: none; }
.ebc div { min-width: 0; line-height: 1.15; }
.ebc b { display: block; font-size: 11.5px; font-weight: 700; color: #e4e9f2; }
.ebc span { font-size: 11.5px; font-weight: 700; color: #ffcf4a; }
.ebc.no { opacity: .35; filter: grayscale(.6); }
.ebc.press, .ebup.press { transform: scale(.94); border-color: #4fe3ff; box-shadow: 0 0 10px rgba(79,227,255,.5); }
.ebhint { color: #8590a3; text-align: center; font-size: 11.5px; line-height: 1.4; padding: 2px; }
.ebhint b { color: #e4e9f2; }
.ebti { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.ebti img { width: 52px; height: 52px; }
.ebti h4 { margin: 0; font: 700 12.5px Orbitron, sans-serif; letter-spacing: .3px; color: #e4e9f2; }
.ebti .pips { color: #ffcf4a; letter-spacing: 1px; text-shadow: 0 0 6px rgba(255,207,74,.6); font-size: 11px; }
.ebst { font-size: 10.5px; line-height: 1.5; color: #8590a3; }
.ebst b { color: #e4e9f2; }
.ebup, .ebsell { width: 100%; height: 28px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font: 700 11.5px "Exo 2", sans-serif; transition: transform .12s; }
.ebup { background: linear-gradient(#5ee9ff, #1a8fb3); color: #031018; box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 0 10px rgba(79,227,255,.25); }
.ebup.no { background: #252c38; color: #687387; box-shadow: none; }
.ebsell { background: linear-gradient(#2a1a1e, #1a0f12); border: 1px solid #5a2a33; color: #ff9c9c; }
.ebctl { display: flex; gap: 6px; margin-top: 8px; }
.eblaunch {
  flex: 1; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font: 900 12px Orbitron, sans-serif; letter-spacing: 1px;
  background: linear-gradient(#ffb04d, #e8640f 55%, #b8440a); color: #1a0800; text-shadow: 0 1px 0 rgba(255,255,255,.35);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 3px 0 #6b2705, 0 0 14px rgba(255,130,30,.3); transition: transform .12s;
}
.eblaunch.press { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 1px 0 #6b2705; }
.eblaunch.off { background: repeating-linear-gradient(-45deg, #1a1f28 0 8px, #151920 8px 16px); color: #8590a3; box-shadow: inset 0 0 0 1px #2a3240; text-shadow: none; }
.ebspd { width: 44px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font: 800 12px Orbitron, sans-serif; color: #ffcf4a; text-shadow: 0 0 8px rgba(255,207,74,.7);
  background: linear-gradient(180deg, #1a202b, #0b0e14); border: 1px solid #7a6320; }
.card-eb .desc { color: #aeb8c8; font-size: 13px; line-height: 1.42; margin: 10px 0 8px; font-weight: 400; }
.card-eb .desc b { color: #e4e9f2; font-weight: 700; }
.card-eb .chips li { background: #10141c; color: #cfe3ee; border: 1px solid #2a3240; }
.card-eb .play { color: #031018; background: linear-gradient(#5ee9ff, #1a8fb3); border-radius: 12px; font-family: Orbitron, sans-serif; font-size: 15px; letter-spacing: .5px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 3px 0 #0c4a5e, 0 0 18px rgba(79,227,255,.3); }
.card-eb .play:active { box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 1px 0 #0c4a5e; }
/* ---------- the ATION game! card ---------- */
.card-ation {
  background: radial-gradient(120% 80% at 50% 0%, #4a2a0a 0%, #22140a 50%, #0f0a06 100%);
  border: 1px solid rgba(251,191,36,.32);
  color: #fef3c7;
}
.card-ation::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .6;
  background-image: radial-gradient(rgba(251,191,36,.09) 1px, transparent 1.4px);
  background-size: 14px 14px;
}
.card-ation::after {   /* dashed road line along the bottom edge */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; pointer-events: none;
  background: repeating-linear-gradient(90deg, #fbbf24 0 18px, transparent 18px 32px); opacity: .55;
}
.is-center .card-ation { box-shadow: 0 30px 80px -20px rgba(245,158,11,.5), 0 0 0 1px rgba(251,191,36,.45); }
.card-ation .pill { background: rgba(69,39,8,.9); color: #fcd34d; border: 1px solid rgba(251,191,36,.4); }
.card-ation .tag { background: #fbbf24; color: #3b2410; }
.alogo { display: flex; align-items: center; gap: 6px; font-family: Fredoka, sans-serif; }
.alogo .the { font-size: 18px; font-weight: 600; color: #fcd34d; transform: rotate(-8deg) translateY(-6px); }
.alogo .flaps { display: flex; gap: 3px; }
.alogo .flaps span {
  position: relative; display: grid; place-items: center; width: 30px; height: 40px; border-radius: 5px;
  background: linear-gradient(180deg, #fbbf24 0 49%, #f59e0b 51%); color: #1c1006;
  font-family: "Space Mono", monospace; font-weight: 700; font-size: 22px;
  box-shadow: 0 3px 0 #b45309, 0 6px 14px rgba(0,0,0,.45);
}
.alogo .flaps span::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0,0,0,.35); }
.alogo .game { font-size: 22px; font-weight: 700; color: #fbbf24; }
.aboard {
  width: 100%; max-width: 100%; margin: 18px auto 0; padding: 8px; display: grid; gap: 4px;
  border-radius: 12px; background: #120c07; border: 1px solid rgba(251,191,36,.25);
  box-shadow: inset 0 2px 12px rgba(0,0,0,.6); perspective: 400px;
}
.arow { display: grid; grid-template-columns: repeat(11, 1fr); gap: 2px; }
.fc {
  position: relative; aspect-ratio: .78; display: grid; place-items: center; border-radius: 3px;
  background: linear-gradient(180deg, #2a2118 0 49%, #1a140e 51%); color: #fde68a;
  font-family: "Space Mono", monospace; font-weight: 700; font-size: clamp(10px, 3vw, 15px); line-height: 1;
}
.fc::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0,0,0,.55); }
.fc.e { opacity: .35; }
.fc.q { color: #fb923c; }
.fc.a { background: linear-gradient(180deg, #fbbf24 0 49%, #f59e0b 51%); color: #1c1006; }
.fc.flip { animation: flap .38s ease-out both; animation-delay: var(--fd, 0s); transform-origin: 50% 50%; }
@keyframes flap { 0% { transform: rotateX(90deg); filter: brightness(1.6); } 100% { transform: rotateX(0); filter: none; } }
.aclue {
  display: flex; align-items: center; gap: 8px; width: 100%; max-width: 100%; margin: 12px auto 0;
  padding: 7px 10px; border-radius: 10px; background: #fef3c7; color: #3b2410;
  font-size: 13px; font-weight: 600; line-height: 1.25; min-height: 36px;
  border-left: 4px dashed #f59e0b; box-shadow: 0 4px 12px rgba(0,0,0,.35);
}
.aclue b { font-size: 10px; font-weight: 800; letter-spacing: .1em; color: #b45309; flex: none; }
.aclue span { transition: opacity .25s; }
.card-ation .desc { color: #fde68a; font-weight: 300; }
.card-ation .chips li { background: rgba(28,16,6,.75); color: #fde68a; border: 1px solid rgba(251,191,36,.25); }
.card-ation .play {
  color: #1c1006; background: linear-gradient(180deg, #fcd34d, #f59e0b);
  box-shadow: 0 5px 0 #b45309, 0 14px 30px -10px rgba(245,158,11,.7);
}
.card-ation .play:active { box-shadow: 0 2px 0 #b45309; }


/* ---------- BlockHead card (the game's own block sprites; the loop plays one real move: tap to turn, lift, slide, drop, clear, fall) ---------- */
.card-bh {
  --t: 42px; --ro: 1;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: radial-gradient(ellipse at 50% 0%, #46536B 0%, #2C3446 72%);
  border: 1px solid #566580; padding: 18px;
}
.is-center .card-bh { box-shadow: 0 30px 80px -20px rgba(230,131,94,.5), 0 0 0 2px rgba(230,131,94,.5); }
.card-bh .top { margin-bottom: 8px; }
.card-bh .pill { background: rgba(15,23,42,.6); color: #E9E4D8; border: 1px solid rgba(233,228,216,.25); }
.card-bh .tag { background: #E6835E; color: #2a1208; }
.bhlogo { margin: 0 0 8px; font-size: 30px; line-height: 1.05; font-weight: 900; letter-spacing: -.02em; color: #E9E4D8; }
.bhlogo span { color: #E6835E; }
.bhhud { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; color: #E9E4D8; font-size: 11px; }
.bhpts { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 10px; background: rgba(16,185,129,.12); border: 1px solid rgba(16,185,129,.35); color: #34d399; font-family: ui-monospace, "JetBrains Mono", Menlo, monospace; font-weight: 800; font-size: 13px; }
.bhpts small { font-size: 9px; color: #94a3b8; font-weight: 700; }
.bhpts .n { display: inline-grid; } .bhpts .n b { grid-area: 1 / 1; font-weight: 800; text-align: right; }
.bhlv { color: #cbd5e1; white-space: nowrap; } .bhlv b { color: #fff; }
.bhrot { letter-spacing: 1px; font-size: 14px; line-height: 1; white-space: nowrap; }
.bhrot i { font-style: normal; display: inline-block; }
.bhfev { flex: 1; min-width: 20px; height: 9px; border-radius: 9px; background: rgba(0,0,0,.32); overflow: hidden; }
.bhfev i { display: block; height: 100%; width: 0; border-radius: 9px; background: linear-gradient(90deg, #FFB347, #FF5FA2, #A77BFF); }
.bhfield { position: relative; width: calc(var(--t) * 7); margin: 0 auto; padding-top: 14px; border-radius: 8px; background: rgba(0,0,0,.16); box-shadow: 0 8px 18px rgba(0,0,0,.28); overflow: hidden; }
.bhfield::before { content: ""; position: absolute; left: 0; right: 0; top: 13px; border-top: 1.5px dashed rgba(255,110,110,.55); }
.bhgrid { position: relative; width: calc(var(--t) * 7); height: calc(var(--t) * (5 + var(--ro)));
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: var(--t) var(--t); }
.bht { position: absolute; width: var(--t); height: var(--t); left: calc(var(--c) * var(--t)); top: calc((var(--r) + var(--ro)) * var(--t)); }
.bht, .bhs { background: url(/cards/blockhead-tiles.webp) no-repeat; background-size: calc(var(--t) * 5) calc(var(--t) * 3); background-position: calc(var(--k) * var(--t) * -1) calc(var(--m) * var(--t) * -1); }
.bhs { position: absolute; left: 0; top: 0; width: var(--t); height: var(--t); }
span.bhP { position: absolute; display: block; width: var(--t); height: var(--t); left: calc(var(--c) * var(--t)); top: calc((var(--r) + var(--ro)) * var(--t)); }
.bhcol { position: absolute; left: calc(var(--t) * 5); top: 0; width: var(--t); height: 100%; background: rgba(255,255,255,.1); border-left: 1px solid rgba(255,255,255,.25); border-right: 1px solid rgba(255,255,255,.25); opacity: 0; }
.bhglow { position: absolute; left: calc(var(--t) * 2); top: calc(var(--t) * (3 + var(--ro))); width: calc(var(--t) * 2); height: calc(var(--t) * 2); border: 3px solid #ffd34d; border-radius: 6px; box-shadow: 0 0 16px 3px rgba(255,211,77,.7), inset 0 0 14px rgba(255,211,77,.45); opacity: 0; }
.bhpop { position: absolute; left: calc(var(--t) * 2); top: calc(var(--t) * (3.1 + var(--ro))); width: calc(var(--t) * 2); text-align: center; font-weight: 900; font-size: 20px; color: #ffe27a; text-shadow: 0 2px 0 #7a4a08, 0 0 10px rgba(255,211,77,.8); opacity: 0; pointer-events: none; }
.bhtouch { position: absolute; left: calc(var(--t) * 5.5 - 14px); top: calc(var(--t) * (3.5 + var(--ro)) - 14px); width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.4); border: 2px solid rgba(255,255,255,.9); box-shadow: 0 2px 8px rgba(0,0,0,.45); opacity: 0; z-index: 6; }
.bhP { z-index: 5; }
.card-bh .desc { color: #d5dbe6; font-size: 13px; line-height: 1.42; margin: 10px 0 8px; font-weight: 400; }
.card-bh .desc b { color: #fff; font-weight: 700; }
.card-bh .chips li { background: rgba(15,23,42,.55); color: #E9E4D8; border: 1px solid rgba(233,228,216,.22); }
.card-bh .play { color: #2a1208; background: linear-gradient(#F4A37E, #D4663E); border-radius: 14px; box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 4px 0 #8f3f22; }
.card-bh .play:active { box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 1px 0 #8f3f22; }
/* one 12s move */
.bhP, .bhtouch, .bhcol, .bhglow, .bhpop, .bhX, .bhN, .bhA, .bhB, .bhC, .bhp0, .bhp1, .bhr3, .bhfev i { animation-duration: 12s; animation-iteration-count: infinite; animation-timing-function: ease-in-out; }
.bhP { animation-name: bhP; }
@keyframes bhP {
  0%, 14% { transform: none; opacity: 1; }
  16% { transform: scale(.92); }
  19% { transform: scale(1); }
  24% { transform: scale(1); }
  27% { transform: translateY(calc(var(--t) * -.26)) scale(1.1); filter: drop-shadow(0 6px 5px rgba(0,0,0,.55)); }
  29% { transform: translateY(calc(var(--t) * -.26)) scale(1.1); filter: drop-shadow(0 6px 5px rgba(0,0,0,.55)); }
  46% { transform: translate(calc(var(--t) * -3), calc(var(--t) * -.26)) scale(1.1); filter: drop-shadow(0 6px 5px rgba(0,0,0,.55)); }
  50% { transform: translate(calc(var(--t) * -3), 0) scale(1); filter: none; opacity: 1; }
  57% { transform: translate(calc(var(--t) * -3), 0) scale(1); opacity: 1; }
  64%, 96% { transform: translate(calc(var(--t) * -3), 0) scale(.3); opacity: 0; filter: none; }
  96.01% { transform: none; opacity: 0; }
  100% { transform: none; opacity: 1; }
}
.bhP .o, .bhP .n { animation-duration: 12s; animation-iteration-count: infinite; animation-timing-function: ease-in-out; }
.bhP .o { animation-name: bhOld; } .bhP .n { animation-name: bhNew; }
@keyframes bhOld { 0%, 16% { opacity: 1; transform: none; } 19%, 96% { opacity: 0; transform: rotate(90deg); } 96.01% { opacity: 0; transform: none; } 100% { opacity: 1; transform: none; } }
@keyframes bhNew { 0%, 16% { opacity: 0; transform: rotate(-90deg); } 19%, 63% { opacity: 1; transform: none; } 64%, 100% { opacity: 0; transform: none; } }
.bhA, .bhB, .bhC { animation-name: bhClr; }
@keyframes bhClr { 0%, 57% { opacity: 1; transform: none; } 64%, 96% { opacity: 0; transform: scale(.3); } 96.01% { opacity: 0; transform: none; } 100% { opacity: 1; transform: none; } }
.bhX { animation-name: bhX; }
@keyframes bhX {
  0%, 63% { transform: none; opacity: 1; }
  69% { transform: translateY(calc(var(--t) * 2)); }
  71% { transform: translateY(calc(var(--t) * 1.86)); }
  73%, 92% { transform: translateY(calc(var(--t) * 2)); opacity: 1; }
  95% { transform: translateY(calc(var(--t) * 2)); opacity: 0; }
  96% { transform: translateY(calc(var(--t) * 2)); opacity: 0; }
  96.01% { transform: none; opacity: 0; }
  100% { transform: none; opacity: 1; }
}
.bhN { animation-name: bhN; }
@keyframes bhN {
  0%, 74% { opacity: 0; transform: translateY(calc(var(--t) * (-4 - var(--ro)))); }
  75% { opacity: 1; transform: translateY(calc(var(--t) * (-4 - var(--ro)))); }
  83% { transform: translateY(0); }
  85% { transform: translateY(calc(var(--t) * -.1)); }
  87%, 92% { transform: none; opacity: 1; }
  95% { transform: none; opacity: 0; }
  95.01%, 100% { opacity: 0; transform: translateY(calc(var(--t) * (-4 - var(--ro)))); }
}
.bhtouch { animation-name: bhTouch; }
@keyframes bhTouch {
  0% { opacity: 0; transform: translate(calc(var(--t) * .9), calc(var(--t) * .8)); }
  7%, 12% { opacity: 1; transform: none; }
  14% { opacity: 1; transform: scale(.78); }
  17% { opacity: 1; transform: scale(1); }
  23% { opacity: 1; transform: none; }
  26%, 29% { opacity: 1; transform: translateY(calc(var(--t) * -.26)) scale(.85); }
  46% { opacity: 1; transform: translate(calc(var(--t) * -3), calc(var(--t) * -.26)) scale(.85); }
  50% { opacity: 1; transform: translate(calc(var(--t) * -3), 0) scale(.85); }
  53% { opacity: 1; transform: translate(calc(var(--t) * -3), 0) scale(1); }
  58%, 100% { opacity: 0; transform: translate(calc(var(--t) * -3), calc(var(--t) * .5)); }
}
.bhcol { animation-name: bhCol; }
@keyframes bhCol { 0%, 26% { opacity: 0; transform: none; } 28% { opacity: 1; transform: none; } 46% { opacity: 1; transform: translateX(calc(var(--t) * -3)); } 50% { opacity: 1; transform: translateX(calc(var(--t) * -3)); } 53%, 100% { opacity: 0; transform: translateX(calc(var(--t) * -3)); } }
.bhglow { animation-name: bhGlow; }
@keyframes bhGlow { 0%, 50% { opacity: 0; transform: scale(.92); } 53%, 57% { opacity: 1; transform: scale(1); } 64% { opacity: 0; transform: scale(1.2); } 100% { opacity: 0; } }
.bhpop { animation-name: bhPop; }
@keyframes bhPop { 0%, 57% { opacity: 0; transform: translateY(0) scale(.7); } 60% { opacity: 1; transform: translateY(calc(var(--t) * -.2)) scale(1.1); } 72% { opacity: 1; transform: translateY(calc(var(--t) * -1)) scale(1); } 80%, 100% { opacity: 0; transform: translateY(calc(var(--t) * -1.5)) scale(1); } }
.bhp0 { grid-area: 1 / 1; animation-name: bhP0; } .bhp1 { grid-area: 1 / 1; animation-name: bhP1; }
@keyframes bhP0 { 0%, 58% { opacity: 1; } 59%, 93% { opacity: 0; } 94%, 100% { opacity: 1; } }
@keyframes bhP1 { 0%, 58% { opacity: 0; } 59%, 93% { opacity: 1; } 94%, 100% { opacity: 0; } }
.bhr3 { animation-name: bhR3; }
@keyframes bhR3 { 0%, 17% { opacity: 1; } 19%, 60% { opacity: .22; } 63%, 100% { opacity: 1; } }
.bhfev i { animation-name: bhFev; }
@keyframes bhFev { 0%, 58% { width: 0; opacity: 1; } 66%, 92% { width: 26%; opacity: 1; } 95% { width: 26%; opacity: 0; } 95.01% { width: 0; opacity: 0; } 100% { width: 0; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .card-bh * { animation: none !important; } .bhP { transform: translate(calc(var(--t) * -3), 0); } .bhP .o { opacity: 0; } .bhP .n { opacity: 1; } }

/* ---------- Jongl card (red lacquer logo on the dark jungle, real board from the game) ---------- */
.card-jg {
  --jgred: #d63a2f; --jggold: #f3c45a;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: radial-gradient(ellipse at 50% -10%, #23402a 0%, #12251a 45%, #07100b 100%);
  border: 1px solid #355c3d; padding: 18px 20px 20px; color: #e7efe4;
}
.is-center .card-jg { box-shadow: 0 30px 80px -20px rgba(214,58,47,.45), 0 0 0 2px rgba(243,196,90,.5); }
.card-jg .top { margin-bottom: 6px; }
.card-jg .pill { background: #173322; color: var(--jggold); border: 1px solid #355c3d; }
.card-jg .tag { background: var(--jgred); color: #fff3d6; }
.jglogo { margin: 0 0 4px; font-family: Georgia, "Times New Roman", serif; font-size: 40px; line-height: 1; font-weight: 900; letter-spacing: 1px; text-align: center;
  color: var(--jgred); -webkit-text-stroke: 1.4px var(--jggold); paint-order: stroke fill; text-shadow: 0 3px 0 #5a1410, 0 0 22px rgba(214,58,47,.45); }
.jgsub { text-align: center; font-size: 10.5px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: #b9cdb5; margin-bottom: 10px; }
.jgscreen, .glscreen { flex: 1 1 auto !important; min-height: 96px; position: relative; border-radius: 12px; overflow: hidden; }
.jgscreen { background: #0b1a10; box-shadow: 0 0 0 2px #0b1a10, 0 0 0 4px #355c3d, 0 12px 28px -12px rgba(0,0,0,.8); }
.jgscreen img, .glscreen img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.card-jg .desc { color: #c3d3c0; font-size: 13px; line-height: 1.42; margin: 12px 0 9px; }
.card-jg .desc b { color: #fff3d6; }
.card-jg .chips li { background: #173322; color: #e7efe4; border: 1px solid #355c3d; }
.card-jg .play { background: linear-gradient(#e2473b, #b52a21); color: #fff3d6; box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 3px 0 #6e1712, 0 10px 26px -10px rgba(214,58,47,.8); border: 1px solid var(--jggold); }

/* ---------- BABOOM! card (charcoal stone, burning fuse, the real board) ---------- */
.card-bb {
  font-family: Nunito, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: radial-gradient(ellipse at 50% 0%, #2f2f2f 0%, #1b1b1b 55%, #0e0e0e 100%);
  border: 1px solid #3a3a3a; padding: 18px 20px 20px; color: #f3e9d2;
}
.is-center .card-bb { box-shadow: 0 30px 80px -20px rgba(255,122,26,.45), 0 0 0 2px rgba(255,138,42,.7); }
.card-bb .top { margin-bottom: 8px; }
.card-bb .pill { background: #262626; color: #ffb04d; border: 1px solid #4a4a4a; }
.card-bb .tag { background: #ff7a1a; color: #1a0d05; }
.bbpromo { align-self: center; margin: 0 0 6px; padding: 4px 12px; border-radius: 10px; transform: rotate(-1.5deg); text-align: center;
  background: linear-gradient(180deg, #ffd23f, #ffa326); color: #1a0d05; border: 2px solid #0a0a0a; box-shadow: 0 3px 0 #0a0a0a;
  font-family: Bangers, "Impact", sans-serif; font-size: 15px; letter-spacing: .05em; line-height: 1.15; }
.bblogo { align-self: center; margin: 0 0 4px; font-family: Bangers, "Impact", "Arial Black", sans-serif; font-weight: 400; font-size: 44px; line-height: 1; letter-spacing: .04em;
  color: #ffd23f; -webkit-text-stroke: 2px #0a0a0a; paint-order: stroke fill; text-shadow: 3px 3px 0 #e8312a, 5px 5px 0 #0a0a0a; transform: rotate(-3deg); }
.bbfuse { position: relative; height: 16px; margin: 2px 4px 8px; }
.bbfuse i { position: absolute; top: 50%; height: 4px; margin-top: -2px; border-radius: 3px; }
.bbash { left: 0; right: 0; background: repeating-linear-gradient(90deg, #0d0d0d 0 3px, transparent 3px 8px); opacity: .9; }
.bbrope { left: 0; right: 0; background: repeating-linear-gradient(90deg, #d9b57c 0 5px, #9c7442 5px 8px); box-shadow: 0 0 0 2px #0a0a0a; animation: bbBurn 9s linear infinite; }
.bbspark { width: 14px !important; height: 14px !important; margin-top: -7px !important; border-radius: 50% !important; left: 0;
  background: radial-gradient(circle, #fff 0 20%, #ffd060 35%, #ff7a1a 60%, rgba(255,90,16,0) 72%); box-shadow: 0 0 14px 5px rgba(255,120,30,.75);
  animation: bbSpark 9s linear infinite, bbFlick .18s ease-in-out infinite alternate; }
@keyframes bbBurn { from { left: 0; } to { left: 92%; } }
@keyframes bbSpark { from { left: -7px; } to { left: calc(92% - 7px); } }
@keyframes bbFlick { from { filter: brightness(.85); transform: scale(.85); } to { filter: brightness(1.3); transform: scale(1.15); } }
.bbscreen { flex: 1 1 auto !important; min-height: 96px; position: relative; border-radius: 12px; overflow: hidden; background: #151515;
  box-shadow: 0 0 0 2px #0a0a0a, 0 0 0 4px #4a4a4a, 0 12px 28px -12px rgba(0,0,0,.85); }
.bbscreen img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.card-bb .desc { color: #d6cdb8; font-size: 13px; line-height: 1.42; margin: 12px 0 9px; }
.card-bb .desc b { color: #ffb04d; }
.card-bb .chips li { background: #262626; color: #f3e9d2; border: 1px solid #4a4a4a; }
.card-bb .play { background: linear-gradient(#ff7a2a, #e8481a); color: #fff; border: 2px solid #0a0a0a; box-shadow: 0 3px 0 #0a0a0a, 0 10px 26px -10px rgba(255,90,20,.9);
  font-family: Bangers, "Impact", sans-serif; font-weight: 400; letter-spacing: .06em; font-size: 20px; }
@media (prefers-reduced-motion: reduce) { .bbrope, .bbspark { animation: none; } .bbspark { left: 30%; } .bbrope { left: 30%; } }

/* ---------- Launch promo label on Card View / list entries ---------- */
.litelist .lpromo { display: inline-block; margin: 5px 0 1px; padding: 3px 9px; border-radius: 999px; font-style: normal; font-size: 11.5px; font-weight: 800; line-height: 1.25;
  color: #1a0d05; background: linear-gradient(180deg, #ffd23f, #ff9a2e); box-shadow: 0 0 0 1.5px #0a0a0a; }
.litelist li.promo-on a.lrow { box-shadow: 0 0 0 2px #ff8a2a, 0 0 22px rgba(255,120,30,.35); }
.litelist.cards a.lrow { position: relative; }
.litelist.cards .lpromo { position: absolute; left: 8px; right: 8px; top: 8px; z-index: 1; margin: 0; text-align: center; font-size: 11px; border-radius: 9px;
  box-shadow: 0 2px 8px rgba(0,0,0,.5), 0 0 0 1.5px #0a0a0a; }
/* Touch screens: the pill sits at the foot of the card art, just above the dark info, like the desktop cards
   (there it rides on the sliding panel, see .lpromo-up). The art is the card's full width at 520:582. */
@supports (top: 1cqw) {
  @media not all and (hover: hover) and (pointer: fine) {
    .litelist.cards a.lrow { container-type: inline-size; }
    .litelist.cards .lpromo { top: calc(100cqw * 582 / 520 - 8px); transform: translateY(-100%); }
  }
}

/* ---------- Gridlock card (green highway sign, hazard stripes, the real board) ---------- */
.card-gl {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: radial-gradient(ellipse at 50% 0%, #2c2c2a 0%, #1a1a19 55%, #0d0d0c 100%);
  border: 1px solid #45443f; padding: 18px 20px 20px; color: #ecebe6;
}
.is-center .card-gl { box-shadow: 0 30px 80px -20px rgba(242,194,48,.35), 0 0 0 2px rgba(242,194,48,.55); }
.card-gl::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 7px; background: repeating-linear-gradient(-45deg, #f2c230 0 12px, #1a1a19 12px 24px); }
.card-gl .top { margin-bottom: 8px; }
.card-gl .pill { background: #26261f; color: #f2c230; border: 1px solid #4b4a3c; }
.card-gl .tag { background: #f2c230; color: #1a1a19; }
.gllogo { align-self: center; margin: 0 0 4px; padding: 5px 18px 6px; border-radius: 9px; background: #1f6b3a; border: 2px solid #e9efe9; box-shadow: 0 0 0 2px #1f6b3a, 0 6px 14px -6px rgba(0,0,0,.8);
  font-size: 30px; line-height: 1; font-weight: 900; letter-spacing: 3px; color: #f4f6f2; text-shadow: 0 1px 0 rgba(0,0,0,.35); }
.glsub { align-self: center; margin-bottom: 10px; padding: 2px 9px; background: #f2c230; color: #1a1a19; font-size: 10px; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; border-radius: 3px; }
.glscreen { background: #121211; box-shadow: 0 0 0 2px #121211, 0 0 0 4px #4b4a3c, 0 12px 28px -12px rgba(0,0,0,.85); }
.glscreen img { object-position: 50% 50%; }
.card-gl .desc { color: #cfccc2; font-size: 13px; line-height: 1.42; margin: 12px 0 9px; }
.card-gl .desc b { color: #f2c230; }
.card-gl .chips li { background: #26261f; color: #ecebe6; border: 1px solid #4b4a3c; }
.card-gl .play { background: linear-gradient(#2a8a4c, #1f6b3a); color: #f4f6f2; border: 2px solid #e9efe9; box-shadow: 0 3px 0 #0f3d20, 0 10px 26px -10px rgba(31,107,58,.9); }

/* ---------- Ghost Mall '84 card (a loop recorded from the game's own engine: soda, cart jump, kiosk save, ghost, tape rewind, balloon, golden token) ---------- */
.card-gm {
  --gmpink: #ff3ea5; --gmcyan: #3ef0ff; --gmink: #e6dcf5;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: radial-gradient(ellipse at 50% -10%, #3a1058 0%, #1a0a2e 45%, #07040d 100%);
  border: 1px solid #4a2a6a; padding: 18px 20px 20px;
}
.is-center .card-gm { box-shadow: 0 30px 80px -20px rgba(255,62,165,.5), 0 0 0 2px rgba(62,240,255,.5); }
.card-gm .top { margin-bottom: 8px; }
.card-gm .pill { background: #21103a; color: var(--gmcyan); border: 1px solid #4a2a6a; }
.card-gm .tag { background: var(--gmpink); color: #fff; }
.gmlogo { margin: 0 0 9px; font-size: 29px; line-height: 1; font-weight: 900; font-style: italic; letter-spacing: 1px; color: var(--gmpink); text-shadow: 0 0 14px rgba(255,62,165,.55), 2px 2px 0 #3a0f4e; }
.gmlogo span { color: var(--gmcyan); text-shadow: 0 0 14px rgba(62,240,255,.5), 2px 2px 0 #0a3a4a; }
.gmscreen { position: relative; width: 100%; aspect-ratio: 256 / 224; border-radius: 10px; overflow: hidden; background: #07040d url(/cards/ghostmall-still.jpg) center / cover no-repeat; box-shadow: 0 0 0 3px #07040d, 0 0 0 5px #4a2a6a, 0 0 26px rgba(255,62,165,.35); }
.gmimg { display: block; width: 100%; height: 100%; image-rendering: pixelated; }
.gmscreen::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0,0,0,.14) 0 1px, transparent 1px 3px); box-shadow: inset 0 0 28px rgba(0,0,0,.5); }
.card-gm .desc { color: #cdbfe4; font-size: 13px; line-height: 1.42; margin: 12px 0 9px; }
.card-gm .chips li { background: #21103a; color: #e6dcf5; border: 1px solid #4a2a6a; }
.card-gm .play { background: var(--gmpink); color: #fff; box-shadow: 0 10px 26px -10px rgba(255,62,165,.8); }

/* ---------- DinoPop! card ---------- */

.card-hc {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: linear-gradient(180deg, #0f2219 0%, #0a1712 60%, #07110c 100%);
  border: 1px solid #2a4538; padding: 18px;
}
.is-center .card-hc { box-shadow: 0 30px 80px -20px rgba(17,112,74,.6), 0 0 0 2px rgba(242,193,78,.55); }
.card-hc .top { margin-bottom: 8px; }
.card-hc .pill { background: #1b3227; color: #f2c14e; border: 1px solid #2a4538; }
.card-hc .tag { background: #f2c14e; color: #222; }
.hclogo { margin: 0 0 8px; font-size: 27px; line-height: 1.1; letter-spacing: .5px; color: #f4f1e8; font-weight: 800; }
.hclogo span { color: #f2c14e; }
.hctable { background: radial-gradient(ellipse at center, #11704a 0%, #0b5536 100%); border: 6px solid #4a2e1a; border-radius: 22px; padding: 7px 6px 8px; box-shadow: inset 0 0 26px rgba(0,0,0,.4); }
.hcseats { display: flex; gap: 5px; justify-content: center; }
.hcseat { position: relative; flex: 1 1 0; min-width: 0; padding: 14px 2px 5px; text-align: center; background: rgba(0,0,0,.28); border: 2px solid transparent; border-radius: 10px; color: #f4f1e8; }
.hcseat.dim { opacity: .45; }
.hcseat.go { border-color: #f2c14e; box-shadow: 0 0 9px rgba(242,193,78,.5); }
.hcseat em { position: absolute; top: 3px; left: 4px; font-style: normal; font-size: 8px; font-weight: 700; padding: 1px 5px; border-radius: 8px; background: #24453a; color: #b6c8bd; }
.hcseat .a { display: block; font-size: 19px; line-height: 1; }
.hcseat b { display: block; font-size: 11.5px; font-weight: 700; margin-top: 1px; }
.hcseat small { display: block; font-size: 8.5px; color: #b6c8bd; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hcseat .act { display: block; margin-top: 2px; font-size: 9.5px; color: #f2c14e; white-space: nowrap; }
.hck { display: flex; justify-content: center; gap: 3px; margin: 3px 0 0; }
.hcc { display: flex; flex-direction: column; align-items: center; justify-content: center; font-style: normal; width: 21px; height: 29px; border-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,.45); line-height: 1; }
.hcc.bk { background: repeating-linear-gradient(45deg, #8a2d2d 0 4px, #a33a3a 4px 8px); border: 2px solid #fff; }
.hcc.f { background: #fffdf7; color: #1b1b1b; }
.hcc.f.r { color: #c62828; }
.hcc.f b { font-size: 12px; font-weight: 800; } .hcc.f u { text-decoration: none; font-size: 11px; }
.hcboard { position: relative; display: flex; justify-content: center; gap: 4px; margin: 8px 0 4px; }
.hcdeal { position: absolute; inset: 0; display: flex; justify-content: center; gap: 4px; z-index: 1; }
.hcc.em { background: rgba(255,255,255,.07); border: 1px dashed rgba(255,255,255,.25); box-shadow: none; }
.hcboard .hcc { width: 30px; height: 43px; }
.hcboard .hcc.f b { font-size: 15px; } .hcboard .hcc.f u { font-size: 15px; }
.hcpot { position: relative; height: 20px; text-align: center; font-weight: 800; font-size: 14px; color: #f4f1e8; }
.hcpot span { position: absolute; inset: 0; }
.hchero { width: 74%; margin: 4px auto 0; padding: 4px 0 5px; text-align: center; background: rgba(0,0,0,.3); border: 2px solid #f2c14e; border-radius: 12px; box-shadow: 0 0 10px rgba(242,193,78,.4); }
.hchero .hcc { width: 30px; height: 42px; } .hchero .hcc.f b { font-size: 15px; } .hchero .hcc.f u { font-size: 15px; }
.hcht { margin-top: 3px; font-size: 11.5px; font-weight: 700; color: #f4f1e8; } .hcht b { color: #f2c14e; }
.hcyou { font-size: 10.5px; color: #b6c8bd; margin-top: 1px; }
.hccoach { position: relative; height: 76px; margin-top: 7px; background: #13241c; border: 1px solid #2a4538; border-radius: 12px; }
.hcstep { position: absolute; inset: 0; padding: 8px 10px; }
.hcrow { display: flex; justify-content: space-between; align-items: center; }
.hcwho { font-size: 12px; font-weight: 800; color: #f4f1e8; }
.hcpill { font-size: 11px; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: #f2c14e; color: #222; }
.hcstep p { margin: 5px 0 6px; font-size: 11.5px; line-height: 1.25; color: #d8e4dc; }
.hcbar { position: relative; height: 14px; border-radius: 7px; background: #263a31; overflow: hidden; }
.hcbar i { position: absolute; left: 0; top: 0; bottom: 0; background: #43c07a; border-radius: 7px; }
.hcbar span { position: relative; display: block; font-size: 9px; font-weight: 700; line-height: 14px; padding-left: 7px; color: #06170d; }
.card-hc .desc { color: #b6c8bd; font-size: 12.5px; line-height: 1.4; margin: 8px 0 6px; font-weight: 400; }
.card-hc .desc b { color: #f4f1e8; font-weight: 700; }
.card-hc .chips li:nth-child(3) { display: none; }
.card-hc .chips li { background: #13241c; color: #d8e4dc; border: 1px solid #2a4538; }
.card-hc .play { color: #222; background: linear-gradient(#f7d37a, #e0a92c); border-radius: 12px; font-size: 16px; box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 3px 0 #9a6f12; }
.card-hc .play:active { box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 1px 0 #9a6f12; }
/* the deal loop: 14s = preflop, flop, turn, river */
.hcA, .hcB, .hcC { animation: .5s ease-out backwards; }
.hcA { animation-name: hcFlop; animation-duration: 14s; animation-iteration-count: infinite; animation-timing-function: ease-out; animation-fill-mode: backwards; }
.hcA2 { animation-delay: .12s; } .hcA3 { animation-delay: .24s; }
.hcB { animation: hcTurn 14s infinite ease-out; } .hcC { animation: hcRiver 14s infinite ease-out; }
@keyframes hcFlop  { 0%, 24% { opacity: 0; transform: translateY(-14px) scale(.9); } 28%, 95% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }
@keyframes hcTurn  { 0%, 49% { opacity: 0; transform: translateY(-14px) scale(.9); } 53%, 95% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }
@keyframes hcRiver { 0%, 74% { opacity: 0; transform: translateY(-14px) scale(.9); } 78%, 95% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }
.hcp1, .hcp2, .hcp3, .hcp4, .hcs1, .hcs2, .hcs3, .hcs4 { opacity: 0; animation-duration: 14s; animation-iteration-count: infinite; }
.hcp1, .hcs1 { animation-name: hcW1; } .hcp2, .hcs2 { animation-name: hcW2; } .hcp3, .hcs3 { animation-name: hcW3; } .hcp4, .hcs4 { animation-name: hcW4; }
@keyframes hcW1 { 0% { opacity: 1; } 24% { opacity: 1; } 26%, 100% { opacity: 0; } }
@keyframes hcW2 { 0%, 24% { opacity: 0; } 27%, 49% { opacity: 1; } 51%, 100% { opacity: 0; } }
@keyframes hcW3 { 0%, 49% { opacity: 0; } 52%, 74% { opacity: 1; } 76%, 100% { opacity: 0; } }
@keyframes hcW4 { 0%, 74% { opacity: 0; } 77%, 96% { opacity: 1; } 99%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .hcA, .hcB, .hcC, .hcp1, .hcp2, .hcp3, .hcs1, .hcs2, .hcs3 { animation: none !important; }
  .hcp4, .hcs4 { animation: none !important; opacity: 1; }
  .hcp1, .hcp2, .hcp3, .hcs1, .hcs2, .hcs3 { opacity: 0; }
}
.card-dino {
  font-family: Fredoka, sans-serif;
  background: linear-gradient(180deg, #7fd3ff 0%, #bfeaff 55%, #f0fcff 100%);
  color: #23305a;
  border: 4px solid #fff;
  border-radius: 34px;
}
.is-center .card-dino { box-shadow: 0 30px 80px -20px rgba(132,204,22,.55), 0 0 0 4px rgba(190,242,100,.5); }
.card-dino .pill { background: #fff; color: #ff7a59; letter-spacing: .08em; box-shadow: 0 3px 0 rgba(35,48,90,.15); }
.card-dino .tag { background: #ffd84d; color: #7a4b00; border-radius: 999px; box-shadow: 0 3px 0 #e0b100; }
.dlogo { font-weight: 700; font-size: 44px; line-height: 1; letter-spacing: .01em; }
.dlogo span { display: inline-block; text-shadow: 0 3px 0 #fff, 0 6px 0 rgba(35,48,90,.18); animation: wobble 2.4s ease-in-out infinite; }
.dlogo span:nth-child(1) { color: #4caf50; }
.dlogo span:nth-child(2) { color: #ff7a59; animation-delay: .1s; }
.dlogo span:nth-child(3) { color: #2196f3; animation-delay: .2s; }
.dlogo span:nth-child(4) { color: #ffb300; animation-delay: .3s; }
.dlogo span:nth-child(5) { color: #e91e63; animation-delay: .4s; }
.dlogo span:nth-child(6) { color: #9c27b0; animation-delay: .5s; }
.dlogo span:nth-child(7) { color: #00a693; animation-delay: .6s; }
.dlogo span:nth-child(8) { color: #ff7a59; animation-delay: .7s; }
@keyframes wobble { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-3px) rotate(-3deg); } }
.dscene {
  position: relative; height: 210px; margin: 14px -6px 0; border-radius: 24px; overflow: hidden;
  background: linear-gradient(180deg, #a8e3ff, #e3f7ff);
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.8);
}
.sun { position: absolute; top: 14px; right: 18px; width: 42px; height: 42px; border-radius: 50%; background: #ffd84d; box-shadow: 0 0 0 8px rgba(255,216,77,.3), 0 0 30px #ffd84d; }
.cloud { position: absolute; width: 60px; height: 20px; background: #fff; border-radius: 20px; opacity: .95; animation: drift 18s linear infinite; }
.cloud::before, .cloud::after { content: ""; position: absolute; background: #fff; border-radius: 50%; }
.cloud::before { width: 26px; height: 26px; top: -12px; left: 10px; }
.cloud::after { width: 20px; height: 20px; top: -8px; left: 30px; }
.cloud.one { top: 30px; left: -70px; }
.cloud.two { top: 62px; left: -70px; animation-delay: -9s; animation-duration: 24s; transform: scale(.8); }
@keyframes drift { to { left: 110%; } }
.hill { position: absolute; border-radius: 50%; }
.hill.back { bottom: -60px; right: -40px; width: 220px; height: 110px; background: #5cc34a; }
.hill.front { bottom: -50px; left: -30px; right: -30px; height: 95px; background: #7ed957; box-shadow: inset 0 6px 0 rgba(255,255,255,.25); }
.dino { position: absolute; bottom: 14px; left: 14px; font-size: 70px; line-height: 1; animation: bob 1.6s ease-in-out infinite; transform-origin: bottom center; filter: drop-shadow(0 4px 0 rgba(35,48,90,.15)); }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-6px) rotate(2deg); } }
.bub {
  position: absolute; bottom: -54px; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; font-size: 22px; line-height: 1; cursor: pointer;
  background: radial-gradient(circle at 30% 28%, rgba(255,255,255,.95) 0 9%, rgba(255,255,255,.35) 18%, rgba(170,225,255,.22) 55%, rgba(255,255,255,.55) 100%);
  border: 2px solid rgba(255,255,255,.95);
  box-shadow: inset -4px -6px 10px rgba(120,190,255,.35), 0 4px 10px rgba(35,48,90,.12);
  animation: rise var(--d, 7s) linear infinite;
  animation-delay: var(--delay, 0s);
  transition: opacity .15s, transform .15s;
  -webkit-tap-highlight-color: transparent;
}
.bub.gone { opacity: 0; pointer-events: none; }
@keyframes rise {
  0% { transform: translate(0, 0); }
  25% { transform: translate(8px, -70px); }
  50% { transform: translate(-6px, -140px); }
  75% { transform: translate(8px, -210px); }
  100% { transform: translate(0, -290px); }
}
.yay {
  position: absolute; transform: translate(-50%, -50%); pointer-events: none;
  font-weight: 700; font-size: 22px; color: #ff7a59; white-space: nowrap;
  text-shadow: 0 2px 0 #fff, 0 0 10px #fff;
  animation: yay .9s ease-out forwards;
}
@keyframes yay { 0% { opacity: 0; transform: translate(-50%, -30%) scale(.5); } 25% { opacity: 1; transform: translate(-50%, -60%) scale(1.15); } 100% { opacity: 0; transform: translate(-50%, -140%) scale(1); } }
.spark { position: absolute; width: 8px; height: 8px; border-radius: 50%; pointer-events: none; animation: spark .7s ease-out forwards; }
@keyframes spark { to { transform: translate(var(--sx), var(--sy)) scale(.3); opacity: 0; } }
.taphint {
  position: absolute; top: 10px; left: 12px; font-size: 12px; font-weight: 600;
  background: rgba(255,255,255,.85); color: #23305a; padding: 3px 9px; border-radius: 999px;
  opacity: 0; transition: opacity .4s;
}
.is-center .taphint { opacity: 1; }
.card-dino .desc { font-family: Outfit, sans-serif; font-weight: 500; color: #2c3d6b; }
.card-dino .chips li { background: #fff; color: #23305a; border-radius: 999px; box-shadow: 0 2px 0 rgba(35,48,90,.12); font-family: Outfit, sans-serif; }
.card-dino .play {
  font-family: Fredoka, sans-serif; font-size: 20px; color: #fff; border-radius: 999px;
  background: linear-gradient(180deg, #ff9a6b, #ff7a59);
  box-shadow: 0 6px 0 #d9532f, 0 14px 26px -10px rgba(255,122,89,.8);
  text-shadow: 0 2px 0 rgba(0,0,0,.12);
}
.card-dino .play:active { box-shadow: 0 2px 0 #d9532f; }

/* ---------- Info sections ---------- */
.section { position: relative; z-index: 1; width: 100%; max-width: 1040px; margin: 0 auto; padding: 56px 16px 0; }
.section h2 { font-family: Fredoka, sans-serif; font-weight: 600; font-size: clamp(24px, 4vw, 32px); text-align: center; margin-bottom: 6px; }
.section .lead { text-align: center; color: var(--muted); margin-bottom: 26px; }
.picks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: 820px; margin: 0 auto; }
.pick > span:nth-child(2) { flex: 1; min-width: 0; }            /* text column can shrink; the game name never overflows */
.pick:last-child:nth-child(odd) { grid-column: 1 / -1; }        /* odd one out (DinoPop!) spans both columns */
@media (max-width: 600px) { .picks { grid-template-columns: 1fr; gap: 10px; } .pick { padding: 14px; } .pick .emo { width: 46px; height: 46px; font-size: 26px; } }
.pick {
  display: flex; align-items: center; gap: 14px; text-align: left; cursor: pointer;
  padding: 18px; border-radius: 20px; background: rgba(15,23,42,.75);
  border: 1px solid rgba(100,116,139,.3); transition: transform .2s, border-color .2s, background .2s;
}
.pick:hover { transform: translateY(-3px); border-color: var(--c); background: rgba(15,23,42,.95); }
.pick .emo { font-size: 30px; width: 52px; height: 52px; flex: none; display: grid; place-items: center; border-radius: 14px; background: color-mix(in srgb, var(--c) 18%, transparent); }
.pick strong { display: block; font-size: 16px; font-weight: 600; color: #fff; }
.pick span.who { display: block; margin-top: 2px; font-size: 14px; color: var(--muted); }
.pick .go { margin-left: auto; flex: none; color: var(--c); font-weight: 700; font-size: 14px; white-space: nowrap; }
@media (max-width: 600px) { .picks { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 360px) { .pick { flex-wrap: wrap; } .pick .go { flex-basis: 100%; margin-left: 0; padding-left: 60px; margin-top: -4px; } }
.feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.feat { padding: 20px; border-radius: 20px; background: rgba(15,23,42,.6); border: 1px solid rgba(100,116,139,.25); }
.feat .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 12px; font-size: 20px; }
.feat h3 { font-size: 16px; font-weight: 600; color: #fff; margin-bottom: 4px; }
.feat p { font-size: 14px; color: var(--muted); line-height: 1.5; }

footer { position: relative; z-index: 1; margin-top: 64px; padding: 22px 16px; border-top: 1px solid rgba(30,41,59,.9); background: rgba(2,6,23,.6); font-size: 13px; color: #64748b; }
footer .in { max-width: 1040px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
footer a { text-decoration: none; color: #94a3b8; transition: color .2s; }
footer a:hover { color: #fff; }

noscript .fallback { display: grid; gap: 12px; max-width: 420px; margin: 24px auto; padding: 0 16px; position: relative; z-index: 1; }
noscript .fallback a { padding: 16px; border-radius: 16px; background: #0f172a; text-align: center; font-weight: 700; }

/* ---------- Phones: compact header + compact cards ---------- */
@media (max-width: 640px) {
  :root { --ch: 510px; --cw: min(320px, 84vw); }
  .hero { padding: 10px 12px 0; column-gap: 6px; grid-template-columns: auto 1fr auto; grid-template-areas: "home . acct" "title title title" "status status status"; }
  .hero .status { margin-top: 8px; font-size: 9.5px; letter-spacing: .08em; padding: 4px 10px; max-width: 100%; }
  .hero h1 { margin: 2px 0 0; font-size: clamp(36px, 11.5vw, 46px); white-space: nowrap; }
  .tbtn { height: 36px; padding: 0 8px; gap: 0; }
  .tbtn .lbl, .acct .nm { display: none; }
  .acct { padding: 0 2px; }
  .acct .av { width: 30px; height: 30px; }
  .sub { font-size: 13px; margin-top: 4px; }
  .sub .swipe { display: none; }
  .hint { display: none; }
  .belowbar { margin-top: 8px; }
  .online { font-size: 12px; padding: 4px 10px; }
  .arrow { width: 40px; height: 40px; }
  .card { padding: 16px; border-radius: 24px; }
  .slot::after { border-radius: 24px; }
  .card-dino { border-radius: 26px; }
  .card .top { margin-bottom: 10px; }
  .pill, .tag { font-size: 9.5px; }
  .slogo { font-size: 31px; }
  .card-snargl .chips li:nth-child(4), .card-bargl .chips li:nth-child(4) { display: none; }
  .sgame { --rh: 25px; --gap: 4px; --grip: 16px; margin-top: 8px; }
  .st { font-size: 13.5px; border-radius: 7px; }
  .sstat { font-size: 11.5px; margin-top: 6px; }
  .card-snargl .desc, .card-bargl .desc { font-size: 12.5px; line-height: 1.4; margin: 9px 0 8px; }
  .blogo span { width: 31px; height: 33px; font-size: 19px; }
  .btargets { margin-top: 9px; }
  .btargets div { font-size: 11.5px; padding: 3px 1px; }
  .bwrap { max-width: 178px; padding: 5px; margin-top: 8px; }
  .bt i { font-size: 9.5px; border-radius: 3px; }
  .btoast { font-size: 10px; }
  .dlogo { font-size: 34px; }
  .plogo { font-size: 29px; }
  .pwrap { max-width: 176px; margin-top: 8px; padding: 4px; }
  .pboard { gap: 3px; }
  .phud { margin-top: 7px; gap: 6px; }
  .proute { gap: 6px; }
  .lc { font-size: 10px; padding: 2px 1px; gap: 3px; }
  .lc:not(:last-child)::after { right: -7px; width: 6px; }
  .pmoves { padding: 2px 5px; }
  .pmoves b { font-size: 14px; }
  .psilk { display: none; }
  :is(.card-power, .card-ps2, .card-ps3) .desc { font-size: 12.5px; line-height: 1.4; margin: 12px 0 8px; }
  :is(.card-power, .card-ps2, .card-ps3) .chips li:nth-child(3) { display: none; }
  .pwin .stamp { font-size: 14px; padding: 7px 10px; }
  .lllogo svg { width: 166px; }
  .lltray { margin-top: 7px; padding: 7px 7px 8px; gap: 6px; border-width: 3px; }
  .lldice { gap: 4px; } .lldie { font-size: 16px; } .llkeep { font-size: 6.5px; padding: 2px 0 1px; }
  .llbar { padding: 5px; gap: 4px; } .lllink { min-height: 28px; } .lllinkdie { width: 27px; height: 27px; font-size: 14px; }
  .lllinktxt { font-size: 9.5px; } .lltile { font-size: 11px; border-radius: 5px; } .llroll { font-size: 11.5px; padding: 6px 11px 5px; }
  .llpad { margin-top: 7px; } .llrow { padding: 2px 7px; font-size: 10.5px; } .llrow .v.fill { font-size: 17px; }
  .card-ll .desc .more { display: none; }
  .card-ll .desc { font-size: 12px; line-height: 1.38; margin: 8px 0 7px; } .llsub span:first-child { display: none; } .llsub { justify-content: flex-end; margin-top: -18px; }
  .p2frame { max-width: 206px; margin-top: 8px; padding: 4px; }
  .p2stars { display: none; }
  .sclogo { --t: 21px; }
  .scgg { width: 58px; } .scpname { font-size: 13px; }
  .schud { margin: 6px 0; } .schud b { font-size: 12.5px; }
  .scboard { max-width: 156px; } .scf { border-radius: 6px; }
  .card-sc .desc { font-size: 12.5px; line-height: 1.38; margin: 9px 0 7px; }
  .card-sc .chips li:nth-child(4) { display: none; }
  .lplogo { font-size: 30px; } .lplogo svg { width: 46px; height: 28px; }
  .lpboardcard { margin-top: 6px; padding: 6px 5px; border-radius: 14px; }
  .lpboard { grid-template-rows: repeat(5, 31px); gap: 3px; }
  .lprail { margin: -2px; border-radius: 9px; }
  .lps { font-size: 7.4px; border-radius: 6px; }
  .lpchip { font-size: 7.6px; padding: 2px 5px; }
  .lppool { gap: 3px; padding: 5px 4px 6px; margin-top: 5px; }
  .lpstatus { margin-top: 5px; }
  .card-lp .desc { font-size: 12px; line-height: 1.35; margin: 7px 0 6px; }
  .card-lp .chips li:nth-child(3) { display: none; }
  .cxlogo { font-size: 28px; letter-spacing: 5px; } .cxtag { font-size: 10px; }
  .cxdoss { margin-top: 6px; gap: 5px; } .cxcard { min-height: 34px; padding: 4px 6px 5px; } .cxcard .txt { font-size: 9.5px; }
  .cxph { margin-top: 5px; } .cxpill { font-size: 8.5px; padding: 2px 6px; }
  .cxctr { margin-top: 5px; } .cxctr b { font-size: 12.5px; }
  .cxvault { max-width: 162px; margin-top: 6px; padding: 5px; } .cxt i { font-size: 12px; border-radius: 5px; }
  .card-cx .desc { font-size: 12px; line-height: 1.36; margin: 8px 0 6px; }
  .card-cx .chips li:nth-child(3) { display: none; }
  .card-gm { padding: 14px 16px; }
  .card-gm .top { margin-bottom: 6px; }
  .gmlogo { font-size: 24px; margin-bottom: 7px; }
  .card-gm .desc { font-size: 12px; line-height: 1.36; margin: 9px 0 6px; }
  .card-gm .chips li:nth-child(3) { display: none; }
  .card-jg, .card-gl { padding: 14px 16px; }
  .jglogo { font-size: 33px; } .jgsub { margin-bottom: 7px; }
  .gllogo { font-size: 25px; } .glsub { margin-bottom: 7px; }
  .card-bb { padding: 14px 16px; } .bblogo { font-size: 34px; } .bbpromo { font-size: 13px; margin-bottom: 4px; } .bbfuse { margin-bottom: 6px; }
  .card-bb .desc { font-size: 12px; line-height: 1.36; margin: 9px 0 6px; } .card-bb .chips li:nth-child(3) { display: none; }
  .card-jg .desc, .card-gl .desc { font-size: 12px; line-height: 1.36; margin: 9px 0 6px; }
  .card-jg .chips li:nth-child(3), .card-gl .chips li:nth-child(3) { display: none; }
  .card-hc { padding: 14px 16px; }
  .card-hc .top { margin-bottom: 6px; }
  .hclogo { font-size: 23px; margin-bottom: 6px; }
  .hcboard { margin: 6px 0 2px; } .hcboard .hcc { width: 28px; height: 40px; }
  .hchero .hcc { width: 28px; height: 38px; }
  .hccoach { height: 74px; margin-top: 6px; } .hcstep p { margin: 4px 0 5px; font-size: 11px; }
  .card-hc .desc { display: none; }
  .hcseat small, .hcyou { display: none; }
  .card-hc .chips { display: none; }
  .card-hc .chips li:nth-child(3) { display: none; }
  .card-hc .play { margin-top: 9px; padding: 12px; font-size: 14.5px; }
  .card-bh { --t: 39px; --ro: 3; padding: 14px 14px; }
  .card-bh .top { margin-bottom: 6px; }
  .bhlogo { font-size: 25px; margin-bottom: 6px; }
  .bhhud { margin-bottom: 6px; }
  .card-bh .play { margin-top: 12px; padding: 13px; font-size: 15px; }
  .card-eb { padding: 14px 16px; }
  .card-eb .top { margin-bottom: 7px; }
  .eblogo { font-size: 19px; letter-spacing: 1.5px; } .ebsub { display: none; }
  .ebbrand { margin-bottom: 6px; } .ebstat { height: 23px; font-size: 11px; }
  .ebmap { width: 140px; } .ebc img { width: 30px; height: 30px; } .ebc b, .ebc span { font-size: 11px; }
  .ebctl { margin-top: 6px; } .eblaunch, .ebspd { height: 28px; font-size: 11px; }
  .card-eb .desc { font-size: 12px; line-height: 1.36; margin: 8px 0 6px; }
  .card-eb .chips li:nth-child(3) { display: none; }
  .card-eb .play { margin-top: 10px; padding: 12px; font-size: 14px; }
  .aboard, .aclue { max-width: 100%; }
  .aboard { margin-top: 14px; }
  .aclue { font-size: 12px; }
  .alogo .flaps span { width: 26px; height: 34px; font-size: 19px; }
  .alogo .the { font-size: 15px; }
  .alogo .game { font-size: 19px; }
  .dscene { height: 160px; margin-top: 12px; }
  .dino { font-size: 56px; }
  .bub { width: 40px; height: 40px; font-size: 19px; }
  .desc { font-size: 13px; line-height: 1.45; margin: 12px 0 10px; }
  .chips { gap: 5px; }
  .chips li { font-size: 10.5px; padding: 3px 8px; }
  .play { padding: 12px; font-size: 16px; margin-top: 12px; border-radius: 14px; }
  .card-dino .play { font-size: 18px; }
}

/* ---------- Lite mode (old phones, Data Saver, or chosen by the player): plain list of games, no animation ---------- */
.litelist, .litehint { display: none; }
html.lite .litelist { display: block; max-width: 980px; margin: 0 auto; padding: 4px 16px 28px; }
html.lite .carousel, html.lite .bg, html.lite .hero .swipe, html.lite .section[aria-labelledby="pick-h"] { display: none !important; }
html.lite *, html.lite *::before, html.lite *::after { animation: none !important; transition: none !important; }
.litelist h2 { margin: 6px 0 6px; font-size: 22px; color: #f1f5f9; text-align: center; }
.litelist .litenote { margin: 0 0 14px; font-size: 14px; line-height: 1.45; color: #cbd5e1; text-align: center; }
.litelist .litenote a { color: #fde68a; font-weight: 700; }
.litelist ul { list-style: none; margin: 0; padding: 0; }
.litelist li { margin: 0 0 10px; }
.litelist a.lrow { display: block; overflow: hidden; min-height: 56px; padding: 12px 14px; border-radius: 14px; text-decoration: none; color: #e6ecf7;
  background: #0f172a; border: 1px solid #334155; }
.litelist a.lrow:active { background: #1e293b; }
.litelist .le { float: left; width: 44px; font-size: 28px; line-height: 40px; text-align: center; }
.litelist .lg { float: right; margin-left: 8px; line-height: 40px; font-weight: 700; font-size: 14px; color: #7dd3fc; }
.litelist .lt { display: block; margin-left: 52px; margin-right: 56px; }
.litelist .lt b { display: block; font-size: 17px; color: #fff; }
.litelist .lt i { display: block; font-style: normal; font-size: 13px; line-height: 1.3; color: #94a3b8; }
.litelist .ltro { display: block; margin-top: 14px; padding: 12px; text-align: center; border-radius: 14px; text-decoration: none; font-weight: 700; color: #fde68a;
  border: 1px solid rgba(251,191,36,.5); background: rgba(251,191,36,.08); }
p.litetog { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 8px 0 0; padding: 0 8px; position: relative; z-index: 2; }

/* Lite: view toggle, type filters, sort, card grid (images only, no animation) */
.lctl { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 10px; }
.lview button { padding: 8px 12px; border: 1px solid #475569; background: #1e293b; color: #cbd5e1; font: inherit; font-weight: 700; font-size: 13px; cursor: pointer; }
.lview button:first-child { border-radius: 10px 0 0 10px; } .lview button:last-child { border-radius: 0 10px 10px 0; border-left: 0; }
.lview button[aria-pressed="true"] { background: #fbbf24; border-color: #fbbf24; color: #1a1203; }
.lsort { font-size: 13px; color: #cbd5e1; } .lsort select { margin-left: 4px; padding: 7px 8px; border-radius: 10px; border: 1px solid #475569; background: #1e293b; color: #e2e8f0; font: inherit; font-size: 13px; }
.lchips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.lchips button { padding: 7px 12px; border-radius: 999px; border: 1px solid #475569; background: #0f172a; color: #cbd5e1; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.lchips button b { font-weight: 600; opacity: .7; margin-left: 3px; }
.lchips button[aria-pressed="true"] { background: #7dd3fc; border-color: #7dd3fc; color: #06222f; }
.lnone { text-align: center; color: #94a3b8; }
.litelist .lim, .litelist .ltg { display: none; }
.litelist .ld { display: block; margin-top: 3px; font-size: 13.5px; line-height: 1.4; color: #cbd5e1; }
.litelist.cards .ld { display: none; }
.litelist:not(.cards) .ltg { display: block; margin-top: 6px; }
.litelist:not(.cards) .lt { margin-right: 72px; }
.litelist ul { position: relative; }
.litelist li[hidden], .litelist.cards li[hidden] { display: none !important; }
.litelist.cards ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.litelist.cards li { margin: 0; display: flex; }
.litelist.cards a.lrow { display: flex; flex-direction: column; width: 100%; padding: 0; min-height: 0; }
.litelist.cards .lim { display: block; width: 100%; height: auto; aspect-ratio: 520 / 582; background: #0b1220; }
.litelist.cards .le { display: none; }
.litelist.cards .lt { order: 2; margin: 0; padding: 10px 12px 4px; flex: 1; }
.litelist.cards .lt b { font-size: 16px; } .litelist.cards .lt i { font-size: 12px; }
.litelist.cards .ltg { display: block; margin-top: 6px; }
.litelist .ltg em { display: inline-block; margin: 0 4px 3px 0; padding: 1px 7px; border-radius: 999px; font-style: normal; font-size: 10.5px; font-weight: 700; background: #1e293b; color: #94a3b8; }
.litelist.cards .lg { order: 3; float: none; margin: 0 12px 12px; padding: 9px; border-radius: 10px; text-align: center; line-height: 1.2; background: #fbbf24; color: #1a1203; }
@media (max-width: 600px) { .litelist.cards ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .litelist.cards .lt { padding: 8px 9px 2px; } .litelist.cards .lt b { font-size: 14px; } .litelist.cards .lt i { display: none; } .litelist.cards .lg { margin: 0 9px 9px; } }
.litehint.show { display: block; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 200; max-width: 460px; margin: 0 auto; padding: 12px 14px; border-radius: 14px;
  background: #0f172a; border: 1px solid rgba(251,191,36,.55); color: #e2e8f0; font-size: 14px; line-height: 1.4; box-shadow: 0 10px 30px rgba(0,0,0,.6); }
.litehint button { margin: 8px 8px 0 0; padding: 9px 14px; border-radius: 10px; border: 1px solid #475569; background: #1e293b; color: #e2e8f0; font: inherit; font-weight: 700; cursor: pointer; }
.litehint button.go { background: #fbbf24; border-color: #fbbf24; color: #1a1203; }
.cwarn { display: none; position: fixed; inset: 0; z-index: 300; align-items: center; justify-content: center; padding: 16px; background: rgba(2,6,23,.72); }
.cwarn.show { display: flex; }
.cwbox { max-width: 380px; width: 100%; padding: 20px 18px 16px; border-radius: 18px; background: #0f172a; border: 1px solid #475569; color: #e2e8f0; box-shadow: 0 24px 60px rgba(0,0,0,.6); text-align: center; }
.cwbox h3 { margin: 0 0 8px; font-size: 20px; }
.cwbox p { margin: 0 0 12px; font-size: 14.5px; line-height: 1.5; color: #cbd5e1; }
.cwbox button { margin: 6px 4px 0; padding: 11px 16px; border-radius: 12px; border: 1px solid #475569; background: #1e293b; color: #e2e8f0; font: inherit; font-weight: 800; cursor: pointer; }
.cwbox button.go { background: #fbbf24; border-color: #fbbf24; color: #1a1203; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition: none !important; }
  .bub { animation: none !important; bottom: auto; }
}

/* Invite-only beta popup */
.beta { display: none; position: fixed; inset: 0; z-index: 400; align-items: center; justify-content: center; padding: 16px; background: rgba(2,6,23,.72); }
.beta.show { display: flex; }
.betabox { max-width: 400px; width: 100%; max-height: calc(100vh - 32px); overflow: auto; padding: 22px 20px 18px; border-radius: 20px; background: #0f172a; border: 1px solid rgba(251,191,36,.5); color: #e2e8f0; box-shadow: 0 24px 60px rgba(0,0,0,.6); }
.betatag { display: inline-block; margin: 0 0 8px; padding: 4px 10px; border-radius: 99px; background: rgba(251,191,36,.15); color: #fde68a; font: 700 11px/1.2 system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.betabox h2 { margin: 0 0 8px; font: 800 22px/1.2 system-ui, sans-serif; color: #fff; }
.betabox p { margin: 0 0 10px; font-size: 14.5px; line-height: 1.5; color: #cbd5e1; }
.betalist { margin: 0 0 12px; padding: 0; list-style: none; }
.betalist li { margin: 0 0 8px; padding: 10px 12px; border-radius: 12px; background: #1e293b; font-size: 14px; line-height: 1.45; }
.betabox p.betafine { font-size: 12.5px; color: #94a3b8; }
.betabtns { display: grid; gap: 8px; margin-top: 14px; }
.betabtns button { padding: 13px; border-radius: 14px; border: 1px solid #475569; background: #1e293b; color: #e2e8f0; font: inherit; font-weight: 800; cursor: pointer; }
.betabtns button.go { background: #fbbf24; border-color: #fbbf24; color: #1a1203; }

/* ---------- Backgammon card (wood and felt board picture) ---------- */
.card-bg {
  --bgwood: #8b3a22; --bggold: #f3c45a;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: radial-gradient(ellipse at 50% -10%, #3a2a18 0%, #1d1409 45%, #0b0805 100%);
  border: 1px solid #5a4330; padding: 18px 20px 20px; color: #f3ecdf;
}
.is-center .card-bg { box-shadow: 0 30px 80px -20px rgba(139,58,34,.5), 0 0 0 2px rgba(243,196,90,.5); }
.card-bg .top { margin-bottom: 6px; }
.card-bg .pill { background: #2a1d10; color: var(--bggold); border: 1px solid #5a4330; }
.card-bg .tag { background: var(--bggold); color: #3b2600; }
.bglogo { margin: 0 0 10px; font-family: Georgia, "Times New Roman", serif; font-size: 40px; line-height: 1; font-weight: 900; letter-spacing: .5px; text-align: center; color: #f3ecdf; text-shadow: 0 3px 0 #2a1408, 0 0 22px rgba(243,196,90,.25); }
.bglogo span { color: var(--bggold); }
.bgscreen { flex: 1 1 auto !important; min-height: 96px; position: relative; border-radius: 12px; overflow: hidden; background: #0b1a10; box-shadow: 0 0 0 2px #0b1a10, 0 0 0 4px #5a4330, 0 12px 28px -12px rgba(0,0,0,.8); }
.bgscreen img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.card-bg .desc { color: #d8c9b0; font-size: 13px; line-height: 1.42; margin: 12px 0 9px; }
.card-bg .desc b { color: #fff3d6; }
.card-bg .chips li { background: #2a1d10; color: #f3ecdf; border: 1px solid #5a4330; }
.card-bg .play { background: linear-gradient(#f6b93b, #b8740f); color: #2b1700; box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 3px 0 #6e4208, 0 10px 26px -10px rgba(243,196,90,.6); border: 1px solid #ffd978; }

/* ---------- beta badge, feedback ---------- */
.logowrap { position: relative; display: inline-block; }
.logobeta { position: absolute; right: -.1em; top: -.42em; transform: rotate(8deg); padding: 3px 6px 2px; border-radius: 6px;
  font: 800 11px/1 system-ui, -apple-system, sans-serif; letter-spacing: .14em; color: #1a1203;
  background: linear-gradient(180deg, #fde68a, #f59e0b); box-shadow: 0 2px 8px rgba(0,0,0,.45), 0 0 0 1.5px rgba(255,255,255,.35) inset;
  pointer-events: none; -webkit-text-fill-color: #1a1203; }
.sheet .betanote { margin: 0 0 14px; padding: 9px 11px; border-radius: 12px; font-size: 12.5px; line-height: 1.45; color: #fde68a;
  background: rgba(245,158,11,.1); border: 1px solid rgba(245,158,11,.35); }
.sheet .betanote b { color: #fef3c7; }
.fbbox { margin-top: 14px; border-top: 1px solid rgba(148,163,184,.2); padding-top: 12px; }
.fbbox summary { cursor: pointer; font-weight: 700; color: #e2e8f0; list-style: none; }
.fbbox summary::-webkit-details-marker { display: none; }
.fbbox summary::after { content: ' ›'; color: #94a3b8; }
.fbbox[open] summary::after { content: ' ⌄'; }
.fbbox textarea { display: block; width: 100%; box-sizing: border-box; margin-top: 10px; padding: 10px 12px; border-radius: 12px; resize: vertical;
  background: #0b1220; border: 1px solid #334155; color: #e2e8f0; font: inherit; font-size: 14px; }
.fbbox textarea:focus { outline: none; border-color: #22d3ee; box-shadow: 0 0 0 3px rgba(34,211,238,.2); }
.fbbox .sbtn { margin-top: 10px; }

/* ---------- The Muenster Job: poster card (cards/muensterjob-poster.jpg) with info + Play over a dark fade ---------- */
.card-cx { padding: 0; background: #0a122e; }
.card-cx > .cxposter { position: absolute; left: 0; right: 0; top: 44px; width: 100%; height: calc(100% - 44px); object-fit: cover; object-position: 50% 0; z-index: 0; }
.card-cx > .top { position: absolute; left: 14px; right: 14px; top: 14px; z-index: 1; margin: 0; }
.card-cx .pill { background: rgba(10,12,16,.82); color: #f3ead3; border: 1px solid rgba(248,216,119,.45); backdrop-filter: blur(3px); }
.card-cx > .cxfoot { margin-top: auto; z-index: 1; padding: 64px 18px 18px;
  background: linear-gradient(180deg, rgba(8,10,16,0) 0%, rgba(8,10,16,.82) 34%, rgba(8,10,16,.96) 62%); }
.cxribbon { display: table; margin: 0 auto 8px; padding: 6px 14px; border-radius: 10px; transform: rotate(-1.5deg);
  font-family: "Chakra Petch", system-ui, sans-serif; font-weight: 700; font-size: 14px; letter-spacing: .02em; color: #2a1c04;
  background: linear-gradient(180deg, #fff2bf, #f8d877 40%, #e0aa3e); box-shadow: 0 3px 0 #6b4710, 0 8px 20px rgba(0,0,0,.45); }
.card-cx .desc { margin: 4px 0 10px; font-size: 13.5px; line-height: 1.42; color: #e9e2cf; text-shadow: 0 1px 2px rgba(0,0,0,.8); }
.card-cx .desc .red { color: #ff5a6e; font-weight: 700; }
.card-cx .chips { margin-bottom: 0; }
.card-cx .chips li { background: rgba(20,23,28,.85); color: #f3ead3; border: 1px solid #3a414b; }
.card-cx .play { margin-top: 12px; }
@media (max-width: 430px) {
  .card-cx > .cxfoot { padding: 48px 14px 14px; }
  .card-cx .desc { font-size: 12.5px; margin-bottom: 8px; }
  .cxribbon { font-size: 13px; }
  .card-cx .chips li:nth-child(3) { display: none; }
}

/* ---------- Expanse Breach: poster card (cards/expanse-poster.jpg) with info + Play over a dark fade ---------- */
.card-eb { padding: 0; background: #0a0b22; }
.card-eb > .ebposter { position: absolute; left: 0; right: 0; top: 44px; width: 100%; height: calc(100% - 44px); object-fit: cover; object-position: 50% 0; z-index: 0; }
.card-eb > .top { position: absolute; left: 14px; right: 14px; top: 14px; z-index: 1; margin: 0; }
.card-eb .pill { background: rgba(10,14,22,.82); color: #4fe3ff; border: 1px solid rgba(79,227,255,.45); backdrop-filter: blur(3px); }
.card-eb .tag { box-shadow: 0 2px 8px rgba(0,0,0,.5); }
.card-eb > .ebfoot { margin-top: auto; z-index: 1; padding: 64px 18px 18px;
  background: linear-gradient(180deg, rgba(6,9,16,0) 0%, rgba(6,9,16,.82) 34%, rgba(6,9,16,.96) 62%); }
.ebribbon { display: table; margin: 0 auto 8px; padding: 6px 14px; border-radius: 10px; transform: rotate(-1.5deg);
  font-family: Orbitron, system-ui, sans-serif; font-weight: 800; font-size: 13px; letter-spacing: .02em; color: #1a0800;
  background: linear-gradient(180deg, #ffd08a, #ffb04d 40%, #e8640f); box-shadow: 0 3px 0 #7a3207, 0 8px 20px rgba(0,0,0,.45); }
.card-eb .desc { margin: 4px 0 10px; font-size: 13.5px; line-height: 1.42; color: #e4e9f2; text-shadow: 0 1px 2px rgba(0,0,0,.8); }
.card-eb .chips { margin-bottom: 0; }
.card-eb .chips li { background: rgba(16,20,28,.85); color: #e1f1f8; border: 1px solid #34404f; }
.card-eb .play { margin-top: 12px; padding: 14px; font-size: 15px; }
@media (max-width: 430px) {
  .card-eb > .ebfoot { padding: 48px 14px 14px; }
  .card-eb .desc { font-size: 12px; line-height: 1.36; margin-bottom: 8px; }
  .ebribbon { font-size: 12px; }
  .card-eb .chips li:nth-child(3) { display: none; }
  .card-eb .play { margin-top: 10px; padding: 12px; font-size: 14px; }
}

/* ---------- Poster cards: SNARGL, BlockHead, BABOOM! (cards/*-poster.jpg) with pill, tag, promo ribbon, info and Play over a dark fade ---------- */
.card-poster { padding: 0; --pbg: #0a0b22; --pfade: 6,9,16; --pa: 79,227,255; background: var(--pbg); }
.card-snargl.card-poster { --pbg: #080f31; --pfade: 6,10,34; --pa: 80,200,255; }
.card-bh.card-poster { --pbg: #66ace0; --pfade: 18,16,24; --pa: 255,200,60; }
.card-bb.card-poster { --pbg: #2f2321; --pfade: 20,12,8; --pa: 255,140,40; }
.card-cm.card-poster { --pbg: #145a35; --pfade: 6,30,18; --pa: 242,193,78; }
.card-dw.card-poster { --pbg: #c5bdab; --pfade: 46,34,16; --pa: 217,171,94; }
.card-sf.card-poster { --pbg: #14122b; --pfade: 12,7,30; --pa: 255,159,28; }
.card-psv.card-poster { --pbg: #150e09; --pfade: 12,8,5; --pa: 224,176,80; }
.card-psc.card-poster { --pbg: #06080e; --pfade: 5,7,13; --pa: 92,200,255; }
.card-st.card-poster { --pbg: #e6d3b3; --pfade: 58,36,16; --pa: 75,156,211; }
.card-sk.card-poster { --pbg: #5a1030; --pfade: 40,8,22; --pa: 255,210,58; }
.card-sk.card-poster .tag { background: #ff4d63; color: #fff; }
.card-sk.card-poster .play { background: linear-gradient(#ffe36b, #f0a21a); color: #2a1203; border: 1px solid #fff3b0; }
.card-st.card-poster .tag { background: #4b9cd3; color: #fff; }
.card-st.card-poster .play { background: linear-gradient(#7cc4ef, #3d8bc2); color: #fff; border: 1px solid #d6efff; }
.card-ck.card-poster { --pbg: #f1ddb6; --pfade: 52,24,10; --pa: 216,69,47; }
.card-ck.card-poster .tag { background: #d8452f; color: #fff; }
.card-ck.card-poster .play { background: linear-gradient(#ffb347, #e07a14); color: #2a1203; border: 1px solid #ffe2b0; }
.is-center .card-ck { box-shadow: 0 0 0 1px rgba(0,0,0,.5), 0 30px 80px -20px rgba(216,69,47,.45), 0 0 0 2px rgba(242,179,74,.4); }
.card-cc.card-poster { --pbg: #f1e6cc; --pfade: 52,12,8; --pa: 184,50,31; }
.card-cc.card-poster .tag { background: #b8321f; color: #fff; }
.card-cc.card-poster .play { background: linear-gradient(#f1d28c, #c79432); color: #2a0d06; border: 1px solid #fff0c2; }
.is-center .card-cc { box-shadow: 0 0 0 1px rgba(0,0,0,.5), 0 30px 80px -20px rgba(184,50,31,.5), 0 0 0 2px rgba(212,169,85,.5); }
.is-center .card-st { box-shadow: 0 0 0 1px rgba(0,0,0,.5), 0 30px 80px -20px rgba(75,156,211,.45), 0 0 0 2px rgba(201,139,74,.4); }
.card-psc.card-poster .tag { background: #ff4d3a; color: #fff; box-shadow: 0 0 14px rgba(255,77,58,.55); }
.card-psc.card-poster .play { background: linear-gradient(#ffe36b, #e9a91f); color: #2a1d03; border: 1px solid #fff3b0; }
.is-center .card-psc { box-shadow: 0 0 0 1px rgba(0,0,0,.7), 0 30px 80px -20px rgba(92,200,255,.4), 0 0 0 2px rgba(255,77,58,.35); }
.card-sf.card-poster .tag { background: #ff9f1c; color: #2b1100; }
.card-sf.card-poster .play { background: linear-gradient(#ffb43a, #e8590c); color: #2b1100; border: 1px solid #ffd27a; }
.card-poster > .pstimg { position: absolute; left: 0; right: 0; top: 44px; width: 100%; height: calc(100% - 44px); object-fit: cover; object-position: 50% 0; z-index: 0;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22px); mask-image: linear-gradient(180deg, transparent 0, #000 22px); }
.card-poster > .top { position: absolute; left: 14px; right: 14px; top: 14px; z-index: 1; margin: 0; }
.card-poster .pill { background: rgba(10,12,18,.84); color: #fff; border: 1px solid rgba(var(--pa),.6); backdrop-filter: blur(3px); font-family: inherit; }
.card-poster .tag { box-shadow: 0 2px 8px rgba(0,0,0,.5); }
.card-poster > .pstfoot { margin-top: auto; z-index: 1; padding: 64px 18px 18px;
  background: linear-gradient(180deg, rgba(var(--pfade),0) 0%, rgba(var(--pfade),.82) 34%, rgba(var(--pfade),.96) 62%); }
.pstribbon { display: table; margin: 0 auto 8px; padding: 6px 10px; border-radius: 10px; transform: rotate(-1.5deg); white-space: nowrap; max-width: 100%;
  font-family: "Chakra Petch", system-ui, sans-serif; font-weight: 700; font-size: 13px; letter-spacing: 0; color: #2a1c04; text-align: center;
  background: linear-gradient(180deg, #fff2bf, #f8d877 40%, #e0aa3e); box-shadow: 0 3px 0 #6b4710, 0 8px 20px rgba(0,0,0,.45); }
.card-poster .desc { margin: 4px 0 10px; font-size: 13.5px; line-height: 1.42; color: #f1ede6; text-shadow: 0 1px 2px rgba(0,0,0,.85); font-weight: 500; }
.card-poster .desc b { color: #fff; }
.card-poster .chips { margin-bottom: 0; }
.card-poster .chips li { background: rgba(16,18,26,.85); color: #f1ede6; border: 1px solid rgba(255,255,255,.18); }
.card-poster .play { margin-top: 12px; padding: 14px; font-size: 15px; }
@media (max-width: 430px) {
  .card-poster > .pstfoot { padding: 48px 14px 14px; }
  .card-poster .desc { font-size: 12px; line-height: 1.36; margin-bottom: 8px; }
  .pstribbon { font-size: 12px; padding: 6px 8px; }
  .card-poster .chips li:nth-child(3) { display: none; }
  .card-poster .play { margin-top: 10px; padding: 12px; font-size: 14px; }
}

/* BlockHead poster: logo at the very top, pill + tag tucked between the logo and the character so more of him shows */
.card-bh.card-poster > .pstimg { top: 0; height: 100%; -webkit-mask-image: none; mask-image: none; }
.card-bh.card-poster > .top { top: 98px; }
@media (max-width: 430px) { .card-bh.card-poster > .top { top: 92px; } }

/* Posters pulled up toward the top of the card (SNARGL, BABOOM!, Crux): pill + tag may overlap, logos may crop slightly */
.card-snargl.card-poster > .pstimg { top: -26px; height: calc(100% - 44px); -webkit-mask-image: none; mask-image: none; }
.card-bb.card-poster > .pstimg { top: 0px; height: calc(100% - 44px); -webkit-mask-image: none; mask-image: none; }
.card-cx > .cxposter { top: 10px; height: calc(100% - 44px); }

/* ---------- BARGL + DinoPop! poster cards ---------- */
.card-bargl.card-poster { --pbg: #5a3322; --pfade: 38,20,12; --pa: 255,200,60; }
.card-dino.card-poster { --pbg: #4aa8f0; --pfade: 12,38,92; --pa: 255,216,77; }
/* Nova Dynasty poster card: title sits at the top of the art, so the pill + tag tuck in under it */
.card-ndp.card-poster { --pbg: #0a0d22; --pfade: 8,10,28; --pa: 227,184,90; }
.is-center .card-ndp.card-poster { box-shadow: 0 30px 80px -20px rgba(227,184,90,.45), 0 0 0 2px rgba(120,150,255,.45); }
.card-ndp.card-poster > .pstimg { top: 0; height: 100%; -webkit-mask-image: none; mask-image: none; }
.card-ndp.card-poster > .top { top: 2px; }
.card-ndp.card-poster > .pstfoot { background: linear-gradient(180deg, rgba(var(--pfade),0) 0%, rgba(var(--pfade),.92) 26%, rgb(var(--pfade)) 44%); }
.card-ndp .tag { background: #e3b85a; color: #241a08; }
.card-ndp .play { background: linear-gradient(#f0cd7a,#c8963a); color: #241a08; box-shadow: 0 10px 26px -10px rgba(227,184,90,.8); }
/* Ghost Mall '84 poster card: logo sits at the very top of the art, so the pill + tag tuck in under it */
.card-gmp.card-poster { --pbg: #0b0a1e; --pfade: 8,6,22; --pa: 255,62,165; }
.is-center .card-gmp.card-poster { box-shadow: 0 30px 80px -20px rgba(255,62,165,.5), 0 0 0 2px rgba(62,240,255,.5); }
.card-gmp.card-poster > .pstimg { top: 0; height: 100%; -webkit-mask-image: none; mask-image: none; }
.card-gmp.card-poster > .top { top: 74px; }
.card-gmp .tag { background: #ff3ea5; color: #fff; }
.card-gmp .play { background: #ff3ea5; color: #fff; box-shadow: 0 10px 26px -10px rgba(255,62,165,.8); }
@media (max-width: 430px) { .card-gmp.card-poster > .top { top: 64px; } }
.card-bargl.card-poster > .pstimg, .card-dino.card-poster > .pstimg { top: 0; height: calc(100% - 44px); -webkit-mask-image: none; mask-image: none; }
.card-bargl.card-poster .tag { background: #fde68a; color: #78350f; border: 1px solid #f5c044; }
.card-dino.card-poster .tag { background: #ffd84d; color: #7a4b00; }
.card-bargl.card-poster .play { background: linear-gradient(#f6b93b, #c4800f); color: #2b1700; border: 1px solid #ffd978; }
.card-dino.card-poster .play { font-family: Fredoka, sans-serif; font-size: 17px; }
.card-bargl.card-poster .chips li.em { background: #fef3c7; color: #b45309; border-color: #fcd34d; }
@media (max-width: 430px) { .card-bargl.card-poster .chips li:nth-child(n+3) { display: none; } .card-dino.card-poster .play { font-size: 15px; } }
.card-dino.card-poster > .pstimg { top: -34px; }

/* HeatherCorn Matchup! poster: handmade cardboard, felt-green button */
.card-mu.card-poster { --pbg: #9a7448; --pfade: 52,32,16; --pa: 244,160,60; }
.card-mu.card-poster > .pstimg { top: 0; height: calc(100% - 44px); -webkit-mask-image: none; mask-image: none; }
.card-mu.card-poster .tag { background: #ffd2e6; color: #8a1d52; border: 1px solid #f08bb8; }
.card-mu.card-poster .play { background: linear-gradient(#2fae62, #1b7a43); color: #fff; border: 1px solid #7fe0a3; }
.is-center .card-mu { box-shadow: 0 30px 80px -20px rgba(236,72,153,.45), 0 0 0 3px rgba(245,158,11,.7); }
/* Let the cardboard show through: a translucent cardboard footer with paper chips and a stitched felt button */
.card-mu.card-poster > .pstfoot { padding-top: 56px; background: linear-gradient(180deg, rgba(168,124,74,0) 0%, rgba(168,124,74,.84) 32%, rgba(150,108,62,.95) 100%); }
.card-mu.card-poster .desc { color: #3a2210; font-weight: 600; text-shadow: 0 1px 0 rgba(255,236,200,.7); }
.card-mu.card-poster .desc b { color: #7a1d4d; }
.card-mu.card-poster .chips li { background: #f7e8c8; color: #5a3a1a; border: 1.5px dashed #b98a55; box-shadow: 0 1px 2px rgba(60,35,10,.35); }
.card-mu.card-poster .play { outline: 2px dashed rgba(255,255,255,.75); outline-offset: -6px; box-shadow: 0 3px 5px rgba(40,20,0,.5); }


/* ---------- Gridlock, PowerStream!, PowerStream 2 and Loopti poster cards ---------- */
.card-gl.card-poster { --pbg: #17120f; --pfade: 14,10,8; --pa: 255,160,30; }
.card-power.card-poster { --pbg: #0a1620; --pfade: 6,14,22; --pa: 70,230,255; }
.card-ps2.card-poster { --pbg: #070d1c; --pfade: 5,10,24; --pa: 255,200,60; }
.card-lp.card-poster { --pbg: #0c1030; --pfade: 8,10,34; --pa: 255,143,107; }
.card-gl.card-poster > .pstimg, .card-power.card-poster > .pstimg, .card-ps2.card-poster > .pstimg, .card-lp.card-poster > .pstimg { top: 0; height: calc(100% - 44px); -webkit-mask-image: none; mask-image: none; }
.card-lp.card-poster > .pstimg { top: -14px; }
.card-gl.card-poster .tag { background: #f2c230; color: #2a1c00; }
.card-power.card-poster .tag, .card-ps2.card-poster .tag { background: #f3c45a; color: #3b2600; }
.card-lp.card-poster .tag { background: #ffd9cc; color: #7a2a14; }
.card-gl.card-poster .play, .card-power.card-poster .play, .card-ps2.card-poster .play { background: linear-gradient(#f6b93b, #c4800f); color: #2b1700; border: 1px solid #ffd978; }
.card-lp.card-poster .play { background: linear-gradient(#ff9a6b, #ff7a59); color: #fff; }
/* Reset the old per-game text styles so these four match the other poster cards */
.card.card-poster.card-gl, .card.card-poster.card-power, .card.card-poster.card-ps2, .card.card-poster.card-lp { font-family: inherit; }
.card.card-poster:is(.card-gl, .card-power, .card-ps2, .card-lp) .pill { font-family: inherit; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: rgba(10,12,18,.84); color: #fff; border: 1px solid rgba(var(--pa),.6); box-shadow: none; padding: 5px 9px; border-radius: 999px; }
.card.card-poster:is(.card-gl, .card-power, .card-ps2, .card-lp) .tag { font-family: inherit; font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 3px 7px; border-radius: 6px; border: 0; box-shadow: 0 2px 8px rgba(0,0,0,.5); }
.card.card-poster:is(.card-gl, .card-power, .card-ps2, .card-lp) .desc { font-family: inherit; font-size: 13.5px; line-height: 1.42; font-weight: 500; color: #f1ede6; margin: 4px 0 10px; letter-spacing: normal; text-shadow: 0 1px 2px rgba(0,0,0,.85); }
.card.card-poster:is(.card-gl, .card-power, .card-ps2, .card-lp) .desc b { color: #fff; }
.card.card-poster:is(.card-gl, .card-power, .card-ps2, .card-lp) .chips li { font-family: inherit; font-size: 11.5px; font-weight: 600; letter-spacing: normal; text-transform: none; background: rgba(16,18,26,.85); color: #f1ede6; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; box-shadow: none; }
.card.card-poster:is(.card-gl, .card-power, .card-ps2, .card-lp) .play { font-family: inherit; font-size: 15px; font-weight: 800; letter-spacing: normal; margin-top: 12px; padding: 14px; border-radius: 14px; box-shadow: 0 6px 18px -8px rgba(0,0,0,.6); }
.card.card-poster:is(.card-gl, .card-power, .card-ps2, .card-lp) .play::before, .card.card-poster:is(.card-gl, .card-power, .card-ps2, .card-lp) .play::after { display: none; }
.card.card-poster.card-gl .tag { background: #f2c230; color: #2a1c00; }
.card.card-poster:is(.card-power, .card-ps2, .card-ps3) .tag { background: #f3c45a; color: #3b2600; }
.card.card-poster.card-lp .tag { background: #ffd9cc; color: #7a2a14; }
.card.card-poster:is(.card-gl, .card-power, .card-ps2) .play { background: linear-gradient(#f6b93b, #c4800f); color: #2b1700; border: 1px solid #ffd978; }
.card.card-poster.card-lp .play { background: linear-gradient(#ff9a6b, #ff7a59); color: #fff; border: 0; }
.card-lp.card-poster > .pstimg { top: -4px; }
@media (max-width: 430px) {
  .card.card-poster:is(.card-gl, .card-power, .card-ps2, .card-lp) .desc { font-size: 12px; line-height: 1.36; margin-bottom: 8px; }
  .card.card-poster:is(.card-gl, .card-power, .card-ps2, .card-lp) .play { margin-top: 10px; padding: 12px; font-size: 14px; }
  .card.card-poster:is(.card-gl, .card-power, .card-ps2, .card-lp) .chips li:nth-child(n+3) { display: none; }
}

/* Get updates (Mailchimp sign-up): footer box and the beta popup version */
.gu { width: 100%; max-width: 520px; margin: 0 auto 18px; padding: 14px 14px 12px; border: 1px solid #1e293b; border-radius: 14px; background: rgba(15,23,42,.6); text-align: left; box-sizing: border-box; }
.gu h3 { margin: 0 0 8px; font: 800 15px/1.2 system-ui, sans-serif; color: #e2e8f0; }
.gu-form { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.gu-form input { flex: 1 1 140px; min-width: 0; box-sizing: border-box; padding: 11px 12px; border-radius: 12px; border: 1px solid #334155; background: #0b1220; color: #e2e8f0; font: inherit; font-size: 15px; }
.gu-form input::placeholder { color: #64748b; }
.gu-form input:focus-visible { outline: 2px solid #fbbf24; outline-offset: 1px; }
.gu-go { flex: 0 0 auto; padding: 11px 16px; border-radius: 12px; border: 1px solid #fbbf24; background: #fbbf24; color: #1a1203; font: inherit; font-weight: 800; cursor: pointer; }
.gu-go:disabled { opacity: .6; cursor: wait; }
.gu-msg { min-height: 18px; margin: 8px 0 0; font-size: 13px; color: #cbd5e1; }
.gu-msg.bad { color: #fca5a5; }
.gu-msg.ok { color: #86efac; }
.gu-msg a { color: #fde68a; font-weight: 700; }
.gu-fine { margin: 8px 0 0; font-size: 12px; line-height: 1.45; color: #94a3b8; }
.gu-fine a { color: #cbd5e1; }
.betabox .gu { max-width: none; margin: 12px 0; padding: 12px; }
.betabox .gu h3 { font-size: 14px; }
.betabox .gu-fine { font-size: 12px; color: #94a3b8; margin: 8px 0 0; }
.betabox .gu-msg { font-size: 13px; margin: 6px 0 0; }


/* ---------- Home redesign: sticky filter bar, search, Daily/Anytime switch, featured strip, grid cards ---------- */
html.lite .litelist { max-width: 1100px; }
.lbar { position: sticky; top: 0; z-index: 30; margin: 0 -16px 6px; padding: 10px 16px 8px; background: linear-gradient(rgba(7,11,22,.97), rgba(7,11,22,.92)); backdrop-filter: blur(8px); border-bottom: 1px solid #1f2b45; }
.lr1 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.lsearch { flex: 1 1 200px; min-width: 0; height: 42px; padding: 0 14px; border-radius: 12px; border: 1px solid #1f2b45; background: #0f1729; color: #eef2fb; font: inherit; font-size: 15px; }
.lsearch::placeholder { color: #7f8da8; }
.lsearch:focus-visible, .lsort select:focus-visible { outline: 2px solid #fbbf24; outline-offset: 1px; }
.lseg { display: inline-flex; padding: 3px; border-radius: 12px; border: 1px solid #1f2b45; background: #0f1729; }
.lseg button { padding: 8px 12px; border: 0; border-radius: 9px; background: none; color: #93a1bb; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.lseg button[aria-pressed="true"] { background: linear-gradient(135deg, #f97316, #f59e0b); color: #1a1205; }
.lbar .lsort select { height: 42px; margin: 0; border-radius: 12px; border: 1px solid #1f2b45; background: #0f1729; color: #eef2fb; }
.lbar .lview button { height: 42px; padding: 0 12px; border-color: #1f2b45; background: #0f1729; color: #93a1bb; font-size: 15px; }
.lbar .lview button[aria-pressed="true"] { background: #fbbf24; border-color: #fbbf24; color: #1a1203; }
.lbar .lchips { flex-wrap: nowrap; overflow-x: auto; margin: 10px 0 0; padding-bottom: 2px; scrollbar-width: none; }
.lbar .lchips::-webkit-scrollbar { display: none; }
.lbar .lchips button { flex: none; white-space: nowrap; border-color: #1f2b45; background: #0f1729; color: #eef2fb; font-weight: 600; }
.lbar .lchips button b { margin-left: 6px; font-size: 12px; opacity: .65; }
.lbar .lchips button[aria-pressed="true"] { background: #2a210a; border-color: #fbbf24; color: #ffe08a; }
.lbar .lchips button[aria-pressed="true"] b { opacity: .9; }
.lcount { margin: 10px 2px 8px; font-size: 13px; color: #93a1bb; }
.lfeat { margin: 12px 0 4px; }
.lfeat h3 { margin: 0 0 8px; font-size: 18px; color: #f1f5f9; } .lfeat h3 small { margin-left: 8px; font-size: 13px; font-weight: 500; color: #93a1bb; }
.lfeatrow { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.lfeatrow::-webkit-scrollbar { display: none; }
.lf { flex: 0 0 min(80%, 380px); scroll-snap-align: start; display: flex; gap: 12px; align-items: stretch; overflow: hidden; border-radius: 16px; border: 1px solid #1f2b45; background: #0f1729; color: #eef2fb; text-decoration: none; }
.lf img { width: 112px; min-height: 112px; object-fit: cover; object-position: top; flex: none; }
.lf span { display: flex; flex-direction: column; justify-content: center; gap: 3px; padding: 10px 12px 10px 0; min-width: 0; }
.lf b { font-size: 17px; } .lf em { font-style: normal; font-size: 13px; color: #93a1bb; }
.lf i { align-self: flex-start; margin-top: 4px; padding: 2px 9px; border-radius: 99px; font-style: normal; font-size: 11px; font-weight: 800; background: #3a2a06; color: #fcd34d; }
.litelist.cards ul { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.litelist.cards a.lrow { background: #0f1729; border: 1px solid #1f2b45; border-radius: 16px; transition: transform .15s, border-color .15s; }
.litelist.cards a.lrow:hover { transform: translateY(-3px); border-color: #3a4c78; }
.litelist.cards .lg { background: none; color: #7dd3fc; padding: 0; margin: 0 12px 12px; text-align: left; }
@media (max-width: 600px) {
  .lbar { margin: 0 -16px 4px; }
  .lsearch { flex-basis: 100%; }
  .lseg { flex: 1 1 auto; } .lseg button { flex: 1; padding: 8px 6px; font-size: 13px; }
  .lbar { padding-top: 8px; } .lbar .lview { display: none; }
  .lbar .lsort select { max-width: 110px; height: 40px; } .lsearch { height: 40px; }
  .lbar .lchips { margin-top: 8px; }
  .litelist.cards ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}

html.lite .litelist #lite-h { display: none; }
.litelist .litenote { display: none; margin-top: 6px; } .litelist .litenote.on { display: block; }

/* Favorites */
.litelist li { position: relative; }
.lheart { position: absolute; top: 8px; right: 8px; z-index: 3; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: rgba(8,12,24,.62); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; display: grid; place-items: center; backdrop-filter: blur(4px); padding: 0 0 2px; }
.lheart[aria-pressed="true"] { color: #ff4d79; background: rgba(255,255,255,.92); border-color: #ff4d79; }
.lheart:hover { transform: scale(1.1); }
.lheart:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.litelist:not(.cards) .lheart { top: 50%; transform: translateY(-50%); right: 10px; }
.litelist:not(.cards) .lheart:hover { transform: translateY(-50%) scale(1.1); }

/* Card hover: the dark panel shows only the name; hovering slides it up to reveal the rest and Play.
   Touch screens (no hover) and the list view keep the full layout. */
.lpanel { display: contents; }
.lstat { display: none; font-size: 12px; font-weight: 700; color: #fcd34d; }
.litelist.cards .lstat { display: block; order: 2; margin: 0; padding: 0 12px 4px; }
.litelist.cards .lstat:empty { display: none; }
@media (hover: hover) and (pointer: fine) {
  .litelist.cards a.lrow { aspect-ratio: 202 / 349; overflow: hidden; }
  .litelist.cards .lim { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: top center; }
  .litelist.cards .lpanel { display: block; position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 0 14px 14px;
    background: #0f1729;
    transform: translateY(calc(100% - 44px)); transition: transform .28s cubic-bezier(.3,.8,.3,1); }
  .litelist.cards a.lrow:hover .lpanel, .litelist.cards a.lrow:focus-visible .lpanel, .litelist.cards li:focus-within .lpanel { transform: translateY(0); }
  .litelist.cards .lpanel .lt { display: block; margin: 0; padding: 0; }
  .litelist.cards .lpanel .lt b { font-size: 18px; line-height: 24px; margin: 10px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .litelist.cards .lpanel .lstat { padding: 0; margin-top: 8px; }
  .litelist.cards .lpanel .lt i { font-size: 13.5px; }
  .litelist.cards .lpanel .lpromo { display: none; }
  .litelist.cards .lpromo-up { display: block; position: absolute; left: 8px; right: 8px; bottom: calc(100% + 8px); z-index: 1; margin: 0; padding: 3px 9px; border-radius: 9px; text-align: center; font-size: 11px; font-weight: 800; line-height: 1.25;
    color: #1a0d05; background: linear-gradient(180deg, #ffd23f, #ff9a2e); box-shadow: 0 2px 8px rgba(0,0,0,.5), 0 0 0 1.5px #0a0a0a; pointer-events: none; }
  .litelist.cards .lpanel .lg { display: block; margin: 12px 0 0; padding: 10px; text-align: center; border-radius: 12px; background: #fbbf24; color: #1a1203; font-size: 16px; line-height: 1.2; }
  .litelist.cards .lrow.islocked .lpanel .lg { color: #1a1203; }
  .litelist.cards .lpanel .ltg { display: block; margin-top: 8px; }
  .litelist.cards .lheart { z-index: 3; }
}
@media (prefers-reduced-motion: reduce) { .litelist.cards .lpanel { transition: none; } }
/* List view: Play stays at the right of the row */
.litelist:not(.cards) .lpanel { display: flex; align-items: flex-start; gap: 8px; }
.litelist:not(.cards) .lpanel .lt { flex: 1; min-width: 0; margin: 0; }
.litelist:not(.cards) .lpanel .lg { float: none; margin: 0; flex: none; }
.litelist:not(.cards) .lpanel .lg { margin-right: 46px; }
@media (hover: hover) and (pointer: fine) {
  /* At rest only the name shows; everything else fades in as the panel slides up */
  .litelist.cards .lpanel .lt i, .litelist.cards .lpanel .lpromo, .litelist.cards .lpanel .ltg, .litelist.cards .lpanel .lstat, .litelist.cards .lpanel .lg { opacity: 0; transition: opacity .2s; }
  .litelist.cards a.lrow:hover .lpanel .lt i, .litelist.cards a.lrow:hover .lpanel .lpromo, .litelist.cards a.lrow:hover .lpanel .ltg, .litelist.cards a.lrow:hover .lpanel .lstat, .litelist.cards a.lrow:hover .lpanel .lg,
  .litelist.cards li:focus-within .lpanel .lt i, .litelist.cards li:focus-within .lpanel .lpromo, .litelist.cards li:focus-within .lpanel .ltg, .litelist.cards li:focus-within .lpanel .lstat, .litelist.cards li:focus-within .lpanel .lg { opacity: 1; transition-delay: .08s; }
}

.lpromo-up { display: none; }

/* New Arrivals row with arrows */
.lfeatwrap { position: relative; }
.lfarrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 4; width: 40px; height: 40px; border-radius: 50%; border: 1px solid #3a4c78; background: rgba(15,23,41,.94); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0 0 3px; box-shadow: 0 4px 14px rgba(0,0,0,.45); }
.lfarrow:hover { background: #1c2a4a; border-color: #7dd3fc; }
.lfarrow:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.lfarrow[hidden] { display: none; }
.lfprev { left: -14px; } .lfnext { right: -14px; }
.lf small { font-size: 12px; color: #93a1bb; margin-top: 2px; }
@media (max-width: 600px) { .lfprev { left: -6px; } .lfnext { right: -6px; } .lfarrow { width: 34px; height: 34px; } }

/* The slide-up animation. Card View turns off page-wide transitions (html.lite * {transition:none}), so this
   opts the card panel back in. Skipped when the visitor has asked for reduced motion. */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  html.lite .litelist.cards .lpanel { transition: transform .42s cubic-bezier(.22,.9,.28,1) !important; will-change: transform; }
  html.lite .litelist.cards .lpanel .lt i, html.lite .litelist.cards .lpanel .ltg, html.lite .litelist.cards .lpanel .lstat, html.lite .litelist.cards .lpanel .lg { transition: opacity .18s ease-out !important; transition-delay: 0s !important; }
  html.lite .litelist.cards a.lrow:hover .lpanel .lt i, html.lite .litelist.cards a.lrow:hover .lpanel .ltg, html.lite .litelist.cards a.lrow:hover .lpanel .lstat, html.lite .litelist.cards a.lrow:hover .lpanel .lg,
  html.lite .litelist.cards li:focus-within .lpanel .lt i, html.lite .litelist.cards li:focus-within .lpanel .ltg, html.lite .litelist.cards li:focus-within .lpanel .lstat, html.lite .litelist.cards li:focus-within .lpanel .lg { transition: opacity .3s ease-out !important; transition-delay: .12s !important; }
  html.lite .litelist.cards a.lrow .lim { transition: transform .6s cubic-bezier(.22,.9,.28,1) !important; }
  html.lite .litelist.cards a.lrow:hover .lim { transform: scale(1.04); }
}

/* Collections */
.lcol { margin: 14px 0 4px; }
.lcol h3 { margin: 0 0 8px; font-size: 18px; color: #f1f5f9; } .lcol h3 small { margin-left: 8px; font-size: 13px; font-weight: 500; color: #93a1bb; }
.lcol h3 small b { color: #fcd34d; font-weight: 700; }
.lcclear { margin-left: 10px; font: inherit; font-size: 12.5px; font-weight: 700; color: #7dd3fc; background: none; border: 1px solid #3a4c78; border-radius: 99px; padding: 2px 10px; cursor: pointer; }
.lcclear:hover { background: #1c2a4a; }
.lcolrow { display: flex; gap: 12px; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x proximity; scrollbar-width: none; }
.lcolrow::-webkit-scrollbar { display: none; }
.lct { flex: 1 0 210px; max-width: 300px; scroll-snap-align: start; text-align: left; font: inherit; color: #eef2fb; background: #0f1729; border: 1px solid #1f2b45; border-radius: 16px; padding: 10px; cursor: pointer; display: flex; flex-direction: column; gap: 3px; transition: border-color .15s, background .15s; }
.lct:hover { border-color: #3a4c78; background: #121d34; }
.lct[aria-pressed="true"] { border-color: #fbbf24; box-shadow: 0 0 0 2px rgba(251,191,36,.35); }
.lct:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.lct b { font-size: 17px; margin-top: 6px; } .lct small { font-size: 12.5px; color: #93a1bb; }
.lcimgs { display: grid; gap: 3px; height: 112px; border-radius: 10px; overflow: hidden; background: #0b1220; grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(2, 1fr); }
.lcimgs img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.lcimgs.n1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.lcimgs.n2 { grid-template-rows: 1fr; }
.lcimgs.n3 img:first-child { grid-row: span 2; }
html.lite .lct { transition: border-color .15s, background .15s !important; }
@media (max-width: 600px) { .lct { flex-basis: 170px; } .lcimgs { height: 92px; } }

/* BeepBoopBop poster card: neon console on a synthwave backdrop */
.card-bbb.card-poster { --pbg: #07030f; --pfade: 8,3,16; --pa: 255,43,214; }
.card-bbb.card-poster .tag { background: #ff2bd6; color: #fff; box-shadow: 0 0 14px rgba(255,43,214,.6); }
.card-bbb.card-poster .play { background: linear-gradient(#ff5fe0, #c4129f); color: #fff; border: 1px solid #ffb3f0; text-shadow: 0 1px 0 #5a0848; }
.is-center .card-bbb { box-shadow: 0 0 0 1px rgba(0,0,0,.7), 0 30px 80px -20px rgba(255,43,214,.5), 0 0 0 2px rgba(24,229,255,.4); }
.card-kp.card-poster { --pbg: #2d0c40; --pfade: 22,4,32; --pa: 255,138,18; }
.card-kp.card-poster .tag { background: #ff8a12; color: #2a1203; }
.card-kp.card-poster .play { background: linear-gradient(#ffc867, #f0901c); color: #2a1203; border: 1px solid #ffe7b0; }
.is-center .card-kp { box-shadow: 0 0 0 1px rgba(0,0,0,.6), 0 30px 80px -20px rgba(255,138,18,.45), 0 0 0 2px rgba(123,47,158,.5); }

/* Star ratings: average on the card, Rate button beside Play, and the rating dialog */
.lstar { display: block; margin-top: 2px; font-size: 13px; font-weight: 700; color: #fcd34d; }
.lstar.none { color: #93a1bb; font-weight: 600; }
.lbtns { display: flex; gap: 8px; margin-top: 12px; }
.lbtns .lg { flex: 1; margin: 0 !important; }
.lrbtn { flex: none; font: inherit; font-size: 15px; font-weight: 800; color: #fcd34d; background: rgba(251,191,36,.12); border: 1px solid rgba(251,191,36,.5); border-radius: 12px; padding: 0 14px; cursor: pointer; }
.lrbtn:hover { background: rgba(251,191,36,.24); }
.lrbtn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.litelist:not(.cards) .lbtns { display: contents; }
.litelist:not(.cards) .lrbtn { display: none; }
@media (hover: hover) and (pointer: fine) {
  .litelist.cards .lpanel .lstar { position: absolute; right: 14px; top: 10px; margin: 0; line-height: 24px; }
  .litelist.cards .lpanel .lt b { max-width: calc(100% - 64px); }
  .litelist.cards .lpanel .lbtns { opacity: 0; transition: opacity .2s; }
  .litelist.cards a.lrow:hover .lpanel .lbtns, .litelist.cards li:focus-within .lpanel .lbtns { opacity: 1; }
  html.lite .litelist.cards .lpanel .lbtns { transition: opacity .3s ease-out !important; }
}
.litelist.cards .lpanel .lg { margin-top: 0; }
html.rlock { overflow: hidden; }
.rdlg { position: fixed; inset: 0; z-index: 400; background: rgba(4,8,18,.72); display: grid; place-items: center; padding: 16px; }
.rdlg[hidden] { display: none; }
.rbox { position: relative; width: min(440px, 100%); max-height: 100%; overflow: auto; background: #0f1729; color: #eef2fb; border: 1px solid #2a3a60; border-radius: 18px; padding: 20px 18px 16px; box-shadow: 0 24px 60px rgba(0,0,0,.55); }
.rbox h3 { margin: 0 34px 4px 0; font-size: 20px; }
.rsub { margin: 0 0 12px; font-size: 13px; color: #93a1bb; }
.rx { position: absolute; top: 10px; right: 12px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: #cbd5e1; font-size: 26px; cursor: pointer; }
.rx:hover { background: #1c2a4a; }
.rrow { display: grid; grid-template-columns: 96px auto 1fr; align-items: center; gap: 8px; padding: 5px 0; }
.rl { font-size: 14px; font-weight: 700; }
.rs { display: inline-flex; }
.rs button { font: inherit; font-size: 26px; line-height: 1; width: 34px; height: 36px; padding: 0; border: 0; background: none; color: #3a4a6e; cursor: pointer; }
.rs button.on { color: #fbbf24; }
.rs button:hover, .rs button:focus-visible { color: #fde68a; }
.rs button:focus-visible { outline: 2px solid #fff; outline-radius: 6px; }
.ra { font-size: 12px; color: #93a1bb; text-align: right; }
.rcl { display: block; margin: 12px 0 4px; font-size: 14px; font-weight: 700; }
.rcl small { font-weight: 500; color: #93a1bb; }
.rbox textarea { width: 100%; font: inherit; font-size: 15px; color: #eef2fb; background: #0b1220; border: 1px solid #2a3a60; border-radius: 10px; padding: 8px 10px; resize: vertical; }
.rbox textarea:focus { outline: 2px solid #fbbf24; }
.rfoot { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.rfoot small { color: #93a1bb; } #rmsg { flex: 1; min-width: 80px; font-size: 13px; color: #86efac; }
.rsend, .rdone { font: inherit; font-weight: 800; border-radius: 10px; padding: 8px 14px; cursor: pointer; border: 1px solid #3a4c78; background: #162342; color: #eef2fb; }
.rdone { background: #fbbf24; border-color: #fbbf24; color: #1a1203; }
.rsend:disabled { opacity: .6; }
@media (max-width: 480px) { .rrow { grid-template-columns: 92px auto 1fr; } .rs button { width: 28px; } .rsend, .rdone { flex: 1 1 40%; } .rfoot small { flex: none; } #rmsg { flex: 1 1 100%; order: 3; } }
.lbtns .lg { text-align: right; }
@media (hover: hover) and (pointer: fine) { .lbtns .lg { text-align: center; } }
.rsend { white-space: nowrap; }

.rrev { margin: 12px 0 0; padding-top: 10px; border-top: 1px solid #1f2b45; }
.rrev h4 { margin: 0 0 6px; font-size: 14px; }
#rrevlist { max-height: 150px; overflow-y: auto; display: grid; gap: 8px; }
.rq { background: #0b1220; border: 1px solid #1f2b45; border-radius: 10px; padding: 8px 10px; }
.rq.pin { border-color: rgba(251,191,36,.5); }
.rq p { margin: 0 0 3px; font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; }
.rq small { color: #93a1bb; font-size: 12px; }

/* ---------- Header: icon-only buttons, nugs bubble, family photo ---------- */
.hero .homebtn, .hero .nugchip, .hero .acct { width: 44px; height: 44px; padding: 0; gap: 0; justify-content: center; }
.hero .homebtn svg { width: 22px; height: 22px; }
.hero .nugchip svg { width: 30px; height: 30px; }
.hero .nugchip b, .hero .acct .nm { display: none; }
.hero .acct .av { width: 34px; height: 34px; }
.hero .acct .av svg { width: 19px; height: 19px; }
.nugwrap { position: relative; display: inline-flex; }
.nugpop {
  position: absolute; top: calc(100% + 10px); right: -4px; z-index: 30; min-width: 150px; padding: 10px 14px; border-radius: 14px;
  background: #0f172a; border: 1px solid rgba(251,191,36,.55); color: #cbd5e1; text-align: left; white-space: nowrap;
  font: 600 13px/1.3 Outfit, system-ui, sans-serif; box-shadow: 0 14px 34px rgba(0,0,0,.55);
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .18s, transform .18s, visibility .18s;
}
.nugpop::before { content: ""; position: absolute; top: -6px; right: 17px; width: 10px; height: 10px; background: #0f172a; border-left: 1px solid rgba(251,191,36,.55); border-top: 1px solid rgba(251,191,36,.55); transform: rotate(45deg); }
.nugpop b { font: 800 20px/1.1 Outfit, system-ui, sans-serif; color: #fde68a; font-variant-numeric: tabular-nums; margin-right: 4px; }
.nugpop a { display: block; margin-top: 5px; color: #93c5fd; font-size: 12px; text-decoration: none; }
.nugpop a:hover { text-decoration: underline; }
.nugwrap.open .nugpop { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) and (pointer: fine) { .nugwrap:hover .nugpop { opacity: 1; visibility: visible; transform: none; } }
html.lite .nugpop { transition: opacity .18s, transform .18s, visibility .18s !important; }

.hero .homebtn, .hero .acctwrap { align-self: start; }
/* The hero sits above the sticky search bar so the family art can rest right on the search field */
.hero { z-index: 31; pointer-events: none; }
.hero > * { pointer-events: auto; }
.hero > .famimg { pointer-events: none; }
/* Header: family art + logo art, pills under the logo, icon buttons hugging the group */
.hero {
  max-width: 1100px; padding: 12px 16px 0; column-gap: 12px; justify-content: center;
  grid-template-columns: auto auto auto auto; grid-template-rows: 1fr auto;
  grid-template-areas: "home fam logo acct" "home fam pills acct";
}
.hero .homebtn { grid-area: home; align-self: start; margin-top: 2px; }
.hero .acctwrap { grid-area: acct; align-self: start; margin-top: 2px; }
.famimg { grid-area: fam; display: block; height: 196px; width: auto; max-width: none; align-self: end; margin-bottom: -14px; user-select: none; pointer-events: none; }
.hero h1.logowrap2 { grid-area: logo; align-self: end; margin: 0; font-size: 0; line-height: 0; }
.logoimg { display: block; width: 456px; max-width: 100%; height: auto; user-select: none; }
.hero p.litetog { grid-area: pills; margin: 10px 0 24px; padding: 0; }
@media (max-width: 960px) {
  .hero { column-gap: 8px; }
  .famimg { height: 160px; }
  .logoimg { width: 360px; }
  .hero p.litetog { margin-bottom: 16px; }
}
@media (max-width: 760px) {
  .famimg { height: 132px; }
  .logoimg { width: 290px; }
  .hero p.litetog { margin-bottom: 10px; }
}
@media (max-width: 640px) {
  .hero { max-width: 100%; padding: 8px 10px 0; column-gap: 6px; grid-template-columns: auto auto minmax(0, 1fr) auto; grid-template-rows: auto auto; grid-template-areas: "home fam logo acct" "pills pills pills pills"; align-items: center; }
  .hero .homebtn, .hero .nugchip, .hero .acct { width: 38px; height: 38px; padding: 0; }
  .hero .homebtn, .hero .acctwrap { align-self: center; margin-top: 0; }
  .hero .acctwrap { gap: 5px; }
  .hero .acct .av { width: 30px; height: 30px; }
  .famimg { height: 62px; align-self: center; margin: 0; }
  .hero h1.logowrap2 { align-self: center; }
  .logoimg { width: 100%; max-width: 190px; margin: 0 auto; }
  .hero p.litetog { margin: 6px 0 0; }
}

/* Favorites: soft rose tint until selected (selected keeps the orange) */
.lseg #lFavBtn[aria-pressed="false"] { background: rgba(244,114,182,.13); color: #f9a8d4; box-shadow: inset 0 0 0 1px rgba(244,114,182,.38); }
.lseg #lFavBtn[aria-pressed="false"]:hover { background: rgba(244,114,182,.22); }

/* Send stars / Send comment buttons: same size, flush right; each turns into Done after sending */
.rbtnrow { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
#smsg { flex: 1; min-width: 0; font-size: 13px; color: #86efac; }
.rbtnrow .rsend, .rfoot .rsend { min-width: 132px; margin-left: auto; text-align: center; }
.rsend.is-done { background: #fbbf24; border-color: #fbbf24; color: #1a1203; }
.rsend:disabled { opacity: .45; cursor: default; }
@media (max-width: 480px) { .rbtnrow .rsend, .rfoot .rsend { flex: 0 0 auto; } .rfoot #rmsg { order: 3; flex: 1 1 100%; } }

/* Comment identity row and nickname on published comments */
.rwho { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 6px 0 2px; font-size: 13px; color: #cbd5e1; }
.rwho b { color: #f1f5f9; }
.rwho label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; color: #e2e8f0; }
.rwho input { width: 18px; height: 18px; accent-color: #fbbf24; }
.rdot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin: 0 6px 0 2px; vertical-align: -1px; box-shadow: 0 0 0 1px rgba(255,255,255,.35) inset; }
.rq small b { color: #f1f5f9; font-weight: 700; }

[hidden] { display: none !important; }
.rgate { display: flex; align-items: center; justify-content: space-between; gap: 10px 14px; flex-wrap: wrap; margin: 4px 0 10px; padding: 10px 12px; border-radius: 12px; background: rgba(251,191,36,.12); border: 1px solid rgba(251,191,36,.4); color: #fde68a; font-size: 13.5px; line-height: 1.4; }
.rgate .rsend { flex: 0 0 auto; margin-left: auto; }
.rdlg.gated .rs button { opacity: .45; cursor: not-allowed; }
.rdlg.gated #rtext { opacity: .55; cursor: not-allowed; }
.rdlg.gated #sstars, .rdlg.gated #rsend { opacity: .45; cursor: not-allowed; }
.rdlg.gated .rwho { display: none; }

/* forgot password link */
.flink { display:block; margin:10px auto 0; background:none; border:0; padding:4px 6px; font:inherit; font-size:13px; font-weight:600; color:#67e8f9; cursor:pointer; text-decoration:underline; text-underline-offset:2px; }
.flink:disabled { opacity:.5; cursor:default; }

/* ===== Lands (home page): themed sections instead of type chips ===== */
.litelist.haslands #lfeat h3, .litelist.haslands .ltoday h3 { font-family: Fredoka, Outfit, system-ui, sans-serif; }
.lnav { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 14px; }
.lnp { padding: 7px 13px; border-radius: 999px; border: 2px solid var(--lc); background: rgba(255,255,255,.04); color: #f1f5f9; text-decoration: none; font: 700 14px/1 Fredoka, Outfit, system-ui, sans-serif; }
.lnp:hover, .lnp:focus-visible { background: var(--lc); color: #111827; }
.land { margin: 26px 0 8px; }
.land[hidden] { display: none !important; }
.lhead { display: flex; align-items: center; gap: 14px; padding: 12px 16px; margin-bottom: 14px; border-radius: 20px; border: 2px solid var(--lc);
  background: linear-gradient(110deg, color-mix(in srgb, var(--lc) 30%, #0b1220), #0b1220 78%); box-shadow: 0 6px 22px color-mix(in srgb, var(--lc) 22%, transparent); }
.lstamp { flex: none; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 16px; font-size: 32px; background: var(--lc); transform: rotate(-6deg);
  box-shadow: 0 0 0 3px rgba(255,255,255,.7) inset, 0 4px 10px rgba(0,0,0,.4); }
.lhead > div { min-width: 0; flex: 1; }
.lhead h3 { margin: 0; font: 800 clamp(22px, 3.4vw, 30px)/1.1 Fredoka, Outfit, system-ui, sans-serif; color: #fff; }
.lhead p { margin: 3px 0 0; color: #cbd5e1; font-size: 14px; }
.lhn { flex: none; padding: 4px 11px; border-radius: 999px; background: rgba(0,0,0,.35); color: #e2e8f0; font-weight: 700; font-size: 12px; }
.land .lgrid { list-style: none; margin: 0; padding: 0; position: relative; }
.lalso { margin: 12px 2px 0; padding: 10px 12px; border-radius: 16px; border: 2px dashed color-mix(in srgb, var(--lc) 65%, transparent); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.lalso > b { font: 800 14px Fredoka, Outfit, system-ui, sans-serif; color: var(--lc); }
.lalsorow { display: flex; gap: 10px; flex-wrap: wrap; }
.lal { display: flex; align-items: center; gap: 9px; padding: 5px 12px 5px 5px; border-radius: 14px; background: #0f1729; border: 1px solid #1f2b45; color: #eef2fb; text-decoration: none; }
.lal:hover, .lal:focus-visible { border-color: var(--lc); }
.lal img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; object-position: top; }
.lal span { font-weight: 700; font-size: 14px; } .lal small { color: #93a1bb; font-size: 12px; }
.lhoods { margin: 34px 0 10px; }
.lhoods h3 { margin: 0 0 10px; font: 800 22px Fredoka, Outfit, system-ui, sans-serif; color: #f1f5f9; }
.lhrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.lhood { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; padding: 14px 16px; border-radius: 18px; border: 2px solid #2b3a5e; background: #0f1729; color: #eef2fb; text-decoration: none; }
.lhood:hover, .lhood:focus-visible { border-color: #8aa4ff; }
.lhood span { grid-row: span 2; font-size: 34px; } .lhood b { font-size: 17px; } .lhood small { color: #93a1bb; }
.ltoday .lf small { color: #fcd34d; font-weight: 700; }
@media (max-width: 600px) { .lhead { padding: 10px 12px; gap: 10px; } .lstamp { width: 46px; height: 46px; font-size: 26px; } .lhn { display: none; } .lnav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } .lnp { white-space: nowrap; } }

/* Lands, roomy screens: header + controls + strips pinned together */
#lsticky { position: sticky; top: 0; z-index: 40; background: #070b16; border-bottom: 1px solid #1f2b45; box-shadow: 0 10px 24px rgba(0,0,0,.45); }
#lsticky .lstick-in { max-width: 1100px; margin: 0 auto; padding: 0 16px 6px; }
#lsticky .lbar { position: static; margin: 0 0 6px; padding: 10px 0 8px; background: none; backdrop-filter: none; border-bottom: 0; }
#lsticky .lnav { margin: 2px 0 8px; }
#lsticky .lfeat { margin: 6px 0 2px; }
#lsticky .lf img { width: 84px; min-height: 84px; } #lsticky .lf span { padding: 6px 10px 6px 0; gap: 1px; } #lsticky .lf b { font-size: 15px; }
#lsticky .lfeat h3 { margin-bottom: 5px; font-size: 16px; }
#lsticky .lfeat h3 small { font-size: 12px; }
.land { scroll-margin-top: calc(var(--lsh, 0px) + 10px); }
/* Pinned header on phones and short windows: header, search and land buttons only */
@media (max-width: 899px), (max-height: 819px) { #lsticky .lnav { margin: 2px 0 6px; } #lsticky .lstick-in { padding: 0 12px 4px; } #lsticky .lbar { padding: 6px 0 6px; } }
/* Land buttons: compact pills; the land in view is filled with its color and ringed in gold */
.lnp { padding: 6px 12px; font-size: 13px; border-width: 2px; }
.lnp[aria-current="true"] { background: var(--lc); color: #0b1220; box-shadow: 0 0 0 2px #0b1220, 0 0 0 4px #fde68a; }
#lsticky .lnav { margin: 10px 0 8px; padding: 4px; }
.litelist.haslands .lcount { display: none; }
/* Each land is a full-width band tinted with its land color; the pinned header stays dark */
html.haslands body { overflow-x: clip; }
.land { position: relative; isolation: isolate; margin: 0; padding: 18px 0 30px; }
.land::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%);
  background: linear-gradient(180deg, color-mix(in srgb, var(--lc) 32%, #070b16), color-mix(in srgb, var(--lc) 18%, #070b16) 70%, color-mix(in srgb, var(--lc) 10%, #070b16));
  border-top: 1px solid color-mix(in srgb, var(--lc) 45%, transparent); }
.land .lhead { background: linear-gradient(110deg, color-mix(in srgb, var(--lc) 42%, #0b1220), color-mix(in srgb, var(--lc) 14%, #0b1220) 80%); }
.land a.lrow { background: color-mix(in srgb, var(--lc) 12%, #0b1220); border-color: color-mix(in srgb, var(--lc) 35%, #1f2b45); }
.land .lal { background: color-mix(in srgb, var(--lc) 14%, #0b1220); border-color: color-mix(in srgb, var(--lc) 35%, #1f2b45); }
.lhoods { padding-top: 10px; }
/* Brighter, even land bands (no fade to black) */
.land::before { background: color-mix(in srgb, var(--lc) 55%, #0b1220); border-top: 0; }
.land .lhead { background: color-mix(in srgb, var(--lc) 30%, #0b1220); border-color: color-mix(in srgb, var(--lc) 70%, #fff); box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.land a.lrow { background: color-mix(in srgb, var(--lc) 18%, #0b1220); border-color: color-mix(in srgb, var(--lc) 45%, #0b1220); }
.land .lalso { border-color: rgba(255,255,255,.55); background: rgba(11,18,32,.25); }
.land .lalso > b { color: #fff; }
