/* Big Photo Bingo — Sunny 2026 design system (Screen 0 tokens) */
/* Skin variables (--primary … --block-gap) are set by skin.json via skin.js
   (applySkin). The defaults below ARE the Main Bingo skin (m2) — no second
   set of values to drift from. Every colour in the app comes from a token
   or a skin field (m5); no hardcoded hexes in component rules. */
:root{
  --skin:#F2B98C; --sunny:#FFD166; --coral:#FF6B6B; --sky:#38BDF8; --teal:#2DD4BF; --white:#FFFFFF;
  --sunny-bg:#FFF6DB; --amber-bg:#FEF3C7; --amber-ink:#92400E; --orange-bg:#FFF1E6; --orange-ink:#9A3412;
  --ink:#1B1B1F; --ink-deep:#12263F; --muted:#5A6B80; --paper:#FFF9F0; --card:#FFFFFF;
  --line:rgba(18,38,63,.12);
  --green:#0F7A4D; --green-dark:#0B5C39; --azure:#1B7AC8; --azure-dark:#14639E; --red:#E11D48;
  --orange:#F97316; --amber-dark:#B45309; --teal-dark:#0F766E; --tag-brown:#7A5F00;
  --primary:#FF6B35; --secondary:#FFD166; --accent:#4ECDC4; --bg:#F7F1E6; --surface:#FFFFFF;
  --success:#0F7A4D; --warning:#F59E0B; --danger:#E11D48;
  --block-radius:12px; --block-gap:8px;
  --radius-sm:12px; --radius-md:16px; --radius-lg:24px; --radius-pill:999px;
  --green-rgb:15,122,77; --coral-rgb:255,107,107; --azure-rgb:27,122,200; --green-deep:#0B5C39; --green-dark50:#062E1D; --red-dark50:#5F0F1E; --red-deep:#BE123C; --green-deep-rgb:11,92,57; --red-deep-rgb:190,18,60;
  --shadow-xs:0 1px 2px rgba(18,38,63,.06);
  --shadow-sm:0 2px 8px rgba(18,38,63,.08);
  --shadow-md:0 8px 24px rgba(18,38,63,.10);
  --shadow-lg:0 14px 34px rgba(18,38,63,.16);
  --shadow-soft:var(--shadow-md); --shadow-lift:var(--shadow-lg);
  --font-display:"Fraunces",Georgia,serif;
  --font-body:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
  --navy:#1B4F72; --ink-black:#111827; --tag-bg:#FFF3C4; --tint-blue:#EAF6FF;
  --tint-soft:#EEF2F6; --blk-blue:#90B9E4; --tint-cool:#F6F9FC; --tag-blue:#EAF2FA; --tint-grey:#E3EBF2;
  --tint-green:#E7F7EF; --tint-mint:#D1FAE5; --tint-amber:#FFF3E0; --tint-red:#FFF1F2;
  --tint-pale-green:#EAF7F0; --tint-slate:#F1F5F9; --red-tint:#FCA5A5;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{font-family:var(--font-body);background:var(--bg);color:var(--ink);min-height:100vh;min-height:100dvh;display:flex;flex-direction:column}
h1,h2,h3{font-family:var(--font-display);line-height:1.15;letter-spacing:-.02em}
h2{margin:14px 0 4px;font-size:26px}
h3{margin:0 0 10px;font-size:19px}
button{font-family:var(--font-body);cursor:pointer}
button:active{transform:scale(.96)}
:focus-visible{outline:2px solid var(--azure-dark);outline-offset:2px}
input,select,textarea{font:inherit;padding:11px;border:1.5px solid var(--line);border-radius:var(--radius-sm);background:var(--card);width:100%}
label{display:block;margin:10px 0;font-weight:600}
/* Tailwind preflight guard: the v4 browser build ships a reset that zeroes
   margins on p/h1/ul and clears button backgrounds. The app's shipped look
   relies on the UA defaults for the elements below (component rules already
   cover everything else), so restore them explicitly — unlayered author CSS
   wins over Tailwind's layered preflight. */
p{margin:1em 0}
h1{margin:.67em 0}
ul,ol{margin:1em 0;padding-left:40px}
label input,label select,label textarea{margin-top:6px;font-weight:400}
fieldset{border:1.5px solid var(--line);border-radius:var(--radius-md);margin:12px 0;padding:10px 14px}
legend{font-family:var(--font-display);font-weight:700}
/* Radio rows: layout is Tailwind utilities on the markup now (flex row,
   wrapping .radio-text span, nowrap <strong> so the option phrase never
   splits mid-phrase). The old structure put the <strong> and the
   description in as separate anonymous flex items, so a narrow row
   wrapped "Start / now" and ragged the row. */

/* No global hero banner: screens are pages in a book (Stephen,
   2026-11-07) — the dark banner used to render above every view, hidden
   on Home only by a body.on-home class switch that failed on his phone.
   It is deleted here, not hidden; Home carries its own wordmark +
   illustration + headline. (The old hero rules, the .hero-slim bar and
   the body.on-home switch were all removed in the same pass.) */

/* Home (Screen 2 landing): cream page like every other view — the white
   surface lives in .home-landing-card below the app header, not in a
   full-bleed white column. The view is a flex column that fills the
   viewport, so the bottom bar sits at the bottom of the screen instead
   of floating mid-page over a void. */
#view-home{flex:1;display:flex;flex-direction:column;background:var(--bg)}
/* Landing card: white panel holding the hero / headline / subline / Start
   button below the app header (markup adds the wrapper). */
.home-landing-card{background:var(--card);border:1.5px solid var(--line);border-radius:var(--radius-lg);padding:16px;box-shadow:var(--shadow-soft)}
#view-home nav{margin-top:auto}
.home-topbar{display:flex;align-items:center;justify-content:space-between;padding:6px 56px 14px 2px}
.wordmark{font-family:var(--font-display);font-weight:800;font-size:30px;letter-spacing:-.02em;color:var(--navy);white-space:nowrap}
.wordmark-coral{color:var(--coral)}
.home-avatar{width:44px;height:44px;flex:none;border:none;border-radius:50%;background:var(--teal);color:var(--white);font-family:var(--font-display);font-weight:800;font-size:20px;display:flex;align-items:center;justify-content:center;box-shadow:var(--shadow-sm)}
/* Shared app header (every view): wordmark left, avatar right — same
   layout as .home-topbar (52px right padding clears the fixed menu
   button; 104px left padding clears the two fixed 44px nav arrows —
   both measured from the header edge, which sits 8px in from the
   viewport because main has an 8px gutter), same 44px teal circle
   as .home-avatar, dark initial on teal for contrast. The .wordmark
   itself is already Fraunces 800 30px, ink-deep "Photo" + coral
   "Bingo". */
.app-header{display:flex;align-items:center;justify-content:space-between;padding:6px 52px 14px 104px}
.app-avatar{width:44px;height:44px;border:none;border-radius:50%;background:var(--teal);color:var(--ink-deep);font-family:var(--font-display);font-weight:800;font-size:20px;display:flex;align-items:center;justify-content:center;box-shadow:var(--shadow-sm)}
.home-hero{flex:1;min-height:200px;margin:0 0 16px;padding:5px;background:linear-gradient(135deg,var(--sunny),var(--warning),var(--coral));border-radius:var(--radius-lg);box-shadow:var(--shadow-md)}
.home-hero img{display:block;width:100%;height:100%;object-fit:cover;border-radius:18px}
.home-headline{min-height:34px;margin:0 0 6px;font-size:clamp(26px,6vw,34px);color:var(--navy);text-align:center}
.home-headline span{color:var(--coral)}
.home-subline{min-height:22px;margin:0 0 16px;text-align:center;color:var(--muted);font-size:15px}
#view-home .start-game-btn{background:var(--ink-deep);color:var(--white)}
.progress-card{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;margin:0 0 4px;padding:14px 16px;background:var(--card);border:1.5px solid var(--line);border-radius:var(--radius-md);box-shadow:var(--shadow-sm);text-align:left}
.progress-card-title{font-family:var(--font-display);font-weight:700;font-size:16px;color:var(--ink);white-space:nowrap;flex:none}
.progress-card-detail{font-size:13px;font-weight:600;color:var(--muted);text-align:right;flex:1;min-width:0}
.progress-card-arrow{color:var(--ink);font-weight:700;margin-left:2px}
/* Progress detail wraps only between its two segments (each .pc-seg is
   nowrap), so it never splits mid-phrase — "Your progress" stays on one
   line and the detail breaks cleanly after the middot if it must. */
.pc-seg{white-space:nowrap}

main{width:100%;max-width:760px;margin:0 auto;padding:12px clamp(8px,2vw,20px) 96px;flex:1;display:flex;flex-direction:column}
.view[hidden]{display:none}
.view{animation:viewIn .24s ease}
@keyframes viewIn{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
.picker-intro{color:var(--muted);font-size:14px;margin:2px 0 12px}
.sim-tag{font-size:12px;font-weight:700;color:var(--tag-brown);background:var(--tag-bg);border-radius:var(--radius-pill);padding:2px 8px;white-space:nowrap}
.sim-note{color:var(--muted);font-size:13px}

/* Search / chips */
.search{width:100%;padding:12px 16px;border:1.5px solid var(--line);border-radius:var(--radius-pill);font-size:15px;margin-bottom:10px;background:var(--card)}
.group-chips,.filter-chips,.variant-tabs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px}
.group-chip,.chip{min-height:32px;padding:6px 14px;border-radius:var(--radius-pill);border:1px solid var(--line);background:var(--card);font-weight:600;font-size:13px}
.group-chip:hover,.chip:hover{transform:translateY(-1px);box-shadow:var(--shadow-xs)}
.group-chip.active,.chip.active{background:var(--ink);color:var(--white);border-color:var(--ink)}

/* Deck list / swipe */
.deck-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}
.deck-card{position:relative;background:var(--card);border:1.5px solid var(--line);border-radius:var(--radius-lg);padding:16px;text-align:left;box-shadow:var(--shadow-soft)}
.deck-card:hover{border-color:var(--azure)}
.deck-card .emoji{font-size:30px}
.deck-card strong{display:block;margin:6px 0 2px;font-size:16px;font-weight:700;font-family:var(--font-display)}
.deck-card p{margin:0;color:var(--muted);font-size:13px}
.deck-card .dot{display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:6px}
/* Start a game — the one big unmissable button at the top of the shelf. */
.start-game-btn{display:block;width:100%;padding:16px 18px;margin:0 0 14px;border:none;border-radius:var(--radius-lg);background:var(--ink-deep);color:var(--white);font-family:var(--font-display);font-size:42px;line-height:1.15;font-weight:800;box-shadow:var(--shadow-lift);cursor:pointer}
.start-game-btn:active{transform:scale(.98)}
/* Shelf card covers (same fallback as the picker: photo, else deck-colour
   gradient + emoji) and the per-card ▶ Play button beside + Keep. */
.deck-cover{position:relative;display:block;height:110px;margin:-16px -16px 10px;overflow:hidden;background:linear-gradient(135deg,var(--sunny),var(--sky))}
.deck-cover img{position:relative;z-index:1;width:100%;height:100%;object-fit:cover;display:block}
.deck-cover-emoji{position:absolute;inset:0;z-index:0;display:flex;align-items:center;justify-content:center;font-size:40px}
.deck-actions{display:flex;gap:8px;margin-top:10px}
.play-btn{flex:1;padding:9px 12px;border:none;border-radius:var(--radius-pill);background:var(--green);color:var(--white);font-size:14px;font-weight:800;cursor:pointer}
.deck-actions .keep-toggle{margin-top:0;flex:1 1 0;width:auto}
.group-tag{display:inline-block;margin-top:8px;font-size:12px;font-weight:700;color:var(--azure-dark);background:var(--tag-blue);border-radius:var(--radius-pill);padding:2px 8px}
.sponsored-tag{display:inline-block;margin-top:8px;font-size:12px;font-weight:700;color:var(--tag-brown);background:var(--tag-bg);border-radius:var(--radius-pill);padding:2px 8px}
.keep-toggle{display:block;margin-top:10px;min-height:32px;padding:6px 14px;border-radius:var(--radius-pill);border:1px solid var(--line);background:var(--tint-cool);font-size:13px;font-weight:600;width:100%}
.keep-toggle.kept{background:var(--green);border-color:var(--green-dark);color:var(--white)}
.no-results{color:var(--muted);text-align:center}

.swipe{background:var(--card);border:1.5px solid var(--line);border-radius:var(--radius-lg);padding:16px;margin-bottom:16px;text-align:center;box-shadow:var(--shadow-soft)}
.swipe h3{margin:0 0 4px}
/* Swipe guide graphic (replaces the written instructions): a small bingo
   card in the centre, green arrow right = KEEP, amber arrow left = SKIP,
   teal arrow up = IGNORE. The three action buttons below the stack match. */
.mini-card{display:grid;grid-template-columns:repeat(3,16px);grid-auto-rows:16px;gap:2px;background:var(--card);border:1.5px solid var(--line);border-radius:8px;padding:4px;box-shadow:var(--shadow-soft)}
.mini-card i{background:var(--tag-blue);border-radius:3px}
.mini-card i.hero{background:var(--sunny)}
.swipe-stack{position:relative;height:360px;max-width:380px;margin:0 auto}
.swipe-card{position:absolute;inset:0;background:var(--card);border:1.5px solid var(--line);border-radius:var(--radius-lg);padding:20px;text-align:left;box-shadow:var(--shadow-lift);cursor:grab;touch-action:none;user-select:none;overflow:hidden}
.swipe-card.fan{pointer-events:none;transform-origin:50% 100%}
.swipe-card .emoji{font-size:34px}
.swipe-cover{position:relative;height:110px;margin:-20px -20px 12px;overflow:hidden;background:linear-gradient(135deg,var(--sunny),var(--sky))}
.swipe-cover img{position:relative;z-index:1;width:100%;height:100%;object-fit:cover;display:block}
.swipe-cover-emoji{position:absolute;inset:0;z-index:0;display:flex;align-items:center;justify-content:center;font-size:54px}
.swipe-card strong{display:block;margin:8px 0 2px;font-size:21px;font-family:var(--font-display)}
.swipe-card p{margin:0 0 10px;color:var(--muted);font-size:14px}
.swipe-card ul{margin:0;padding-left:18px;font-size:14px;line-height:1.5}
.swipe-card.swipe-right{border-color:var(--green);box-shadow:0 0 0 3px rgba(var(--green-rgb),.35)}
.swipe-card.swipe-left{border-color:var(--coral);box-shadow:0 0 0 3px rgba(var(--coral-rgb),.35)}
.swipe-card.swipe-up{border-color:var(--azure);box-shadow:0 0 0 3px rgba(var(--azure-rgb),.3)}
.swipe-empty{padding:60px 20px;color:var(--muted)}
.swipe-count{color:var(--muted);font-size:13px;margin:10px 0 0}

.tray{background:rgba(var(--green-rgb),.08);border:1.5px solid var(--green);border-radius:var(--radius-md);padding:14px 16px;margin-bottom:16px}
.tray h3{margin:0 0 8px}
.tray-chips{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:10px}
.tray-chip{display:inline-flex;align-items:center;gap:6px;background:var(--card);border:1px solid var(--green);border-radius:var(--radius-pill);padding:6px 6px 6px 12px;font-size:13px;font-weight:600}
.tray-chip button{border:none;background:none;font-size:18px;line-height:1;color:var(--muted);padding:2px 6px}
.tray-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.play-selected{padding:12px 20px;border:none;border-radius:12px;background:var(--green);color:var(--white);font-weight:700}
.btn-primary{padding:12px 20px;border:none;border-radius:var(--radius-pill);background:var(--navy);color:var(--white);font-weight:800;box-shadow:var(--shadow-sm)}
/* Quiet list row (M3): the old gradient buttons, now one calm row with a chevron. */
.quiet-row{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;padding:13px 14px;background:var(--card);border:1px solid var(--line);border-radius:14px;font-size:15px;font-weight:600;color:var(--ink);text-align:left}
.quiet-row::after{content:"›";font-size:20px;color:var(--muted)}
.quiet-row:hover{transform:translateY(-1px);box-shadow:var(--shadow-xs)}
.link-btn{background:none;border:none;color:var(--azure-dark);font-weight:700;white-space:nowrap}

/* Play */
.play-top{display:flex;align-items:center;gap:10px}
.play-top h2{margin:0;flex:1;min-width:0}
.back-btn{background:var(--card);border:1px solid var(--line);border-radius:var(--radius-pill);padding:6px 14px;font-weight:600;font-size:13px}
.deck-switcher{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 4px}
.switch-chip{min-height:32px;padding:6px 14px;border-radius:var(--radius-pill);border:1px solid var(--line);background:var(--card);font-size:13px;font-weight:600}
.switch-chip.active{background:var(--ink);color:var(--white);border-color:var(--ink)}
.scope{display:flex;gap:8px;margin:14px 0 6px}
.scope-btn{flex:1 1 0;min-width:0;min-height:40px;padding:11px;border-radius:var(--radius-pill);border:1px solid var(--line);background:var(--card);font-weight:700}
.scope-btn.active{background:var(--ink);color:var(--white);border-color:var(--ink)}
.scope-note{margin:0 0 10px;color:var(--muted);font-size:13px}

/* Score strip (M7): one line, always visible — never auto-hidden.
   Stat style (M2): 12px/700 uppercase, letter-spacing .06em, muted;
   the numbers are ink 15px/800 with tabular numerals. */
.status-pills{display:flex;flex-wrap:wrap;gap:4px;align-items:baseline;margin:8px 0;font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.status-pills b{font-size:15px;font-weight:800;color:var(--ink);letter-spacing:0;text-transform:none;font-variant-numeric:tabular-nums}
.status-pills .sep{color:var(--line)}
.controls-full{display:flex;align-items:center;gap:8px;margin:8px 0}
.controls-full button{min-height:32px;padding:6px 14px;border-radius:var(--radius-pill);border:1px solid var(--line);background:var(--card);font-weight:600;font-size:13px}
.controls-full button.nav-icon{width:32px;height:32px;padding:0;border-radius:50%;font-size:18px;font-weight:800;line-height:1}
.controls-full button.menu-icon{width:32px;height:32px;padding:0;border-radius:50%;font-size:16px;font-weight:800;line-height:1}
.controls-full .controls-spacer{flex:1}
/* Overflow sheet for the play actions (Cards / Scores / New card / Retire). */
.play-menu-sheet{display:none;grid-template-columns:1fr 1fr;gap:8px;margin:0 0 8px}
.play-menu-sheet.open{display:grid}
.play-menu-sheet button{padding:10px 14px;border-radius:14px;border:1px solid var(--line);background:var(--card);font-weight:600;font-size:15px;text-align:left}
/* Notes inside the play menu sheet span both columns. */
.menu-note{grid-column:1/-1;margin:0}
.controls-full.collapsed{display:none}
.controls-pill{display:none;align-items:center;gap:4px;justify-content:space-between;background:rgba(255,255,255,.75);backdrop-filter:blur(12px);border:1.5px solid var(--line);border-radius:var(--radius-pill);padding:6px 10px;margin:8px 0;box-shadow:var(--shadow-soft)}
.controls-pill.visible{display:flex}
.controls-pill button{border:none;background:none;font-weight:800;font-size:15px;padding:6px 10px}
.win-type-label{font-weight:800;color:var(--azure-dark);margin:6px 0;grid-column:1/-1}
.progress-ring-wrap{display:flex;align-items:center;gap:12px;margin:8px 0}
.ring-bg{fill:none;stroke:var(--tint-grey);stroke-width:7}
.ring-fg{fill:none;stroke:var(--green);stroke-width:7;stroke-linecap:round;transform:rotate(-90deg);transform-origin:center;stroke-dasharray:163.4;transition:stroke-dashoffset .3s}
.ring text{font-family:var(--font-display);font-weight:800;font-size:13px;text-anchor:middle;fill:var(--ink)}
.progress-text{font-weight:800}
.closest-line{color:var(--muted);font-size:13px}

/* Board — uniform grid: every cell, including the centre, is exactly one grid cell.
   Blocks are ALWAYS square (aspect-ratio: 1:1) — this comes from the CSS token,
   never from a skin file, so no skin can make rectangles. Radius and gap come
   from the skin (--block-radius / --block-gap). */
.board{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:var(--block-gap);width:100%;max-width:560px;margin:0 auto;border:1.5px solid var(--orange);border-radius:18px;padding:8px;box-sizing:border-box}
.cell{position:relative;aspect-ratio:1;min-width:0;border-radius:var(--block-radius);border:1.5px solid var(--line);background:var(--card);padding:6px;font-size:clamp(12px,2.6vw,15px);line-height:1.25;text-align:center;cursor:pointer;overflow:hidden;display:flex;align-items:center;justify-content:center}
body.skin-squircle .cell{border-radius:38%}
.cell span.label{position:relative;z-index:2;overflow-wrap:break-word}
.cell.ad{background:var(--tint-blue);border-color:var(--azure)}
.cell.ad img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;padding:8px;z-index:1}
.cell.ad .ad-tag{position:absolute;left:4px;top:4px;z-index:3;font-size:10px;font-weight:800;background:var(--ink);color:var(--white);border-radius:var(--radius-pill);padding:1px 6px}
.cell.marked{background:var(--success);border-color:var(--success);color:var(--white);font-weight:700}
/* Solid marked style: the border is the SAME green as the fill, so it
   disappears into the fill — no visible border line around a marked block.
   (The Outline style below keeps its visible green border: transparent
   fill, so the border is the whole point there.) */
/* Marked-block style: Solid (default) is a green fill; Outline is a green
   outline with a transparent fill and green text. The board carries the
   .mark-outline class when the current card is set to Outline. */
.board.mark-outline .cell.marked{background:transparent;border-color:var(--success);color:var(--green-dark)}
.board.mark-outline .cell.marked span.label{text-shadow:none}
.board.mark-outline .cell.marked img.photo{opacity:.75}
/* Marked-style toggle (play view, card controls): the word + a swatch that
   shows the style — solid green block for Solid, green outline for Outline. */
.mark-style-toggle{display:inline-flex;align-items:center;gap:6px}
.mark-swatch{width:14px;height:14px;border-radius:4px;flex:none}
.mark-swatch.solid{background:var(--success);border:1.5px solid var(--green-dark)}
.mark-swatch.outline{background:transparent;border:2px solid var(--success)}
.cell.free{background:var(--tint-blue);border-color:var(--accent);font-weight:800;color:var(--ink)}
.cell.win{box-shadow:0 0 0 4px var(--sunny) inset;transform:scale(1.04);z-index:3}
.cell img.photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:1}
.cell.marked img.photo{opacity:.55}
.cell.marked span.label{text-shadow:0 1px 3px rgba(0,0,0,.45)}
/* Photo-filled blocks: a dark gradient scrim across the bottom of the
   photo so the block's text is always legible (Stephen's screenshot:
   "Out-of-office reply" was unreadable on its photo). The label is bold
   white on the scrim with a soft shadow. Points boards keep the label
   centred (the mini overlay owns the bottom), so their scrim covers the
   whole cell instead. */
.cell.has-photo::before{content:"";position:absolute;left:0;right:0;bottom:0;height:70%;background:linear-gradient(to top,rgba(10,20,30,.78),rgba(10,20,30,0));z-index:2;pointer-events:none}
.cell.has-photo span.label{color:var(--white);font-weight:800;text-shadow:0 1px 6px rgba(0,0,0,.65)}
.board:not(.points-board) .cell.has-photo span.label{position:absolute;left:5px;right:5px;bottom:5px;z-index:3}
.board.points-board .cell.has-photo::before{height:100%;background:linear-gradient(to top,rgba(10,20,30,.8),rgba(10,20,30,.45))}
.board.mark-outline .cell.marked.has-photo span.label{color:var(--white);text-shadow:0 1px 6px rgba(0,0,0,.65)}
/* Album items: same scrim when a real photo fills the tile (demo album
   still uses emoji placeholders, so this is the ready hook). */
.album-item{position:relative}
.album-item.has-photo .ph{position:relative}
.album-item.has-photo .ph::after{content:"";position:absolute;left:0;right:0;bottom:0;height:70%;background:linear-gradient(to top,rgba(10,20,30,.78),rgba(10,20,30,0))}
.album-item.has-photo p{position:absolute;left:8px;right:8px;bottom:8px;z-index:2;color:var(--white);text-shadow:0 1px 6px rgba(0,0,0,.65);margin:0}
.cell .undo-x{position:absolute;top:3px;right:3px;z-index:4;width:26px;height:26px;border-radius:50%;background:var(--red);color:var(--white);border:2px solid var(--white);font-size:13px;font-weight:800;line-height:1;display:flex;align-items:center;justify-content:center;box-shadow:0 1px 4px rgba(0,0,0,.3)}
.hint{color:var(--muted);font-size:13px;text-align:center}
.win-banner{background:var(--tag-bg);border:2px solid var(--sunny);border-radius:14px;padding:14px;text-align:center;font-size:18px;margin:10px 0}
.confetti{position:fixed;inset:0;pointer-events:none;overflow:hidden;z-index:60}
.confetti i{position:absolute;top:-12px;width:10px;height:14px;animation:fall 2.6s linear forwards}
@keyframes fall{to{transform:translateY(110vh) rotate(720deg)}}
.win-card{background:linear-gradient(135deg,var(--tag-bg),var(--tint-blue));border-radius:var(--radius-lg);padding:16px;text-align:center;font-family:var(--font-display);font-size:20px;margin-bottom:10px}
.panel{background:var(--card);border:1.5px solid var(--line);border-radius:var(--radius-lg);padding:16px;margin:14px 0;box-shadow:var(--shadow-soft)}
.leaderboard{margin:0;padding-left:22px}
.leaderboard li{padding:6px 0;border-bottom:1px solid var(--tint-soft)}
.leaderboard li:last-child{border-bottom:none}
.leaderboard .you{font-weight:800}
.badges{display:flex;flex-wrap:wrap;gap:8px}
.badge{border:1.5px solid var(--line);border-radius:var(--radius-pill);padding:7px 12px;font-size:13px;background:var(--tint-cool);opacity:.45}
.badge.earned{opacity:1;background:var(--tint-green);border-color:var(--green)}
.suggestions{list-style:none;margin:10px 0 0;padding:0}
.suggestions li{display:flex;justify-content:space-between;gap:8px;padding:8px 0;border-bottom:1px solid var(--tint-soft)}
.suggestions button{border:1px solid var(--line);background:var(--card);border-radius:var(--radius-pill);padding:4px 10px}
#suggestForm{display:flex;gap:8px}
#suggestForm input{flex:1;min-width:0}
#suggestForm button,.create button{padding:11px 16px;border:none;border-radius:12px;background:var(--ink);color:var(--white);font-weight:700}
.form-msg{color:var(--green-dark);font-weight:700;min-height:1em}

/* My Games rows — chevron is 20px, muted (Screen 25 fix) */
.gamerows{display:flex;flex-direction:column;gap:10px;margin:12px 0}
.gamerow{display:flex;gap:12px;align-items:center;background:var(--card);border:1.5px solid var(--line);border-radius:var(--radius-lg);padding:12px 14px;text-align:left;width:100%;box-shadow:var(--shadow-soft)}
.gamerow .gi{flex:1;min-width:0}
.gamerow .gtitle{font-family:var(--font-display);font-weight:700;font-size:17px}
.gamerow .gmeta{color:var(--muted);font-size:13px}
.gamerow .gflags{font-size:12px;font-weight:700;color:var(--tag-brown)}
.gamerow svg{width:20px;height:20px;flex:none;color:var(--muted)}
.gamerow .bar{height:6px;background:var(--tint-grey);border-radius:var(--radius-pill);overflow:hidden;margin-top:6px}
.gamerow .bar i{display:block;height:100%;background:var(--green)}
/* My Games start states: live games get a green Play button, scheduled
   games show their start time + countdown and a creator Start-now button. */
.game-start{display:block;margin-top:6px;font-size:13px;font-weight:800}
.game-start.live{color:var(--green-dark)}
.game-start.scheduled{color:var(--azure-dark)}
.gamerow.scheduled{opacity:.92}
.play-now-btn{background:var(--green);color:var(--white);border:none;border-radius:var(--radius-pill);padding:9px 12px;font-weight:800;font-size:13px;white-space:nowrap;cursor:pointer;flex:none}
.bring-forward-btn{background:var(--card);border:1.5px solid var(--azure);color:var(--azure-dark);border-radius:var(--radius-pill);padding:9px 12px;font-weight:800;font-size:13px;white-space:nowrap;cursor:pointer;flex:none}
/* Start-a-game modal: pick a card, then when it starts. */
.start-deck-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-height:220px;overflow-y:auto;margin-bottom:8px}
.start-deck-btn{padding:10px;border:1.5px solid var(--line);border-radius:12px;background:var(--card);font-size:14px;font-weight:700;text-align:left;cursor:pointer;min-width:0;overflow-wrap:break-word}
.start-deck-btn.selected{border-color:var(--green);background:var(--tint-pale-green);box-shadow:0 0 0 2px rgba(var(--green-rgb),.3)}
/* When does it start? Date + Time share one row that FITS the modal —
   layout is Tailwind utilities on the markup now (flex row, each label
   flex-1 min-w-0, stacking below 420px). The old `flex:1` left the labels
   at their automatic minimum, and the iOS date/time inputs' intrinsic
   width then overflowed their labels and painted over each other and off
   the modal's right edge (Stephen's screenshot). */

/* Builder */
.points-balance{font-size:18px;background:var(--card);border:1.5px solid var(--line);border-radius:var(--radius-md);padding:12px 16px}
.builder-countdown{font-weight:700;color:var(--coral)}
.build-picture{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:3px;background:var(--card);border:1.5px solid var(--line);border-radius:var(--radius-md);padding:10px;margin:10px 0}
.build-picture .tile{aspect-ratio:1;border-radius:5px;background:var(--tint-slate)}
.build-picture .tile.placed{background:linear-gradient(135deg,var(--sky),var(--teal))}
.build-picture .tile.preview{outline:3px solid var(--sunny)}
.milestones{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0}
.milestones .ms{background:var(--card);border:1.5px solid var(--line);border-radius:var(--radius-pill);padding:6px 12px;font-weight:700;font-size:13px}
.milestones .ms.hit{background:var(--tint-green);border-color:var(--green)}
.parts-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:10px 0}
.part{background:var(--card);border:1.5px solid var(--line);border-radius:var(--radius-md);padding:12px;text-align:center}
.part strong{display:block;font-family:var(--font-display)}
.part .cost{color:var(--azure-dark);font-weight:800}
.part button{margin-top:8px;width:100%;padding:9px;border:none;border-radius:var(--radius-pill);background:var(--ink);color:var(--white);font-weight:700}
.part button:disabled{opacity:.4}

/* Modals — layout is Tailwind utilities on the markup now (fixed inset-0
   shell; card capped at min(480px, 100vw - 32px), centred with margin
   auto so a tall card scrolls instead of clipping its top; the modal
   itself scrolls too). Only the [hidden] override stays here: the
   utility display:flex would otherwise beat the UA [hidden] rule, and
   these modals must actually hide. */
.modal[hidden]{display:none}
.modal-card img#reviewPhoto,.modal-card img#blockPhotoPreview{width:100%;border-radius:var(--radius-md);margin:8px 0}
.big-camera{display:flex;flex-direction:column;align-items:center;gap:6px;width:100%;padding:22px;border:1.5px solid var(--azure);border-radius:var(--radius-lg);background:var(--tint-blue);font-size:40px;box-shadow:var(--shadow-sm)}
.big-camera span{font-size:15px;font-weight:800;color:var(--ink)}
/* The big camera sets display in its rule, which would override the UA
   [hidden] style — so hidden must win explicitly, or the swap would not
   hide anything in a real browser. (The big Retake circle was removed
   2026-11-07: Retake is a small pill above the photo now.) */
.big-camera[hidden]{display:none}
.photo-actions{margin:10px 0}
/* Block popup photo actions + explanation row: layout is Tailwind
   utilities on the markup now (flex rows, shrinking pills). */
/* Modal buttons: layout is Tailwind utilities on the markup now (shared
   flex row that wraps; the confirm keeps its navy fill from
   .btn-primary). The old rules are deleted — and the old
   `.modal-btns .btn-primary` override with them: it used to carry the
   navy background because the plain `.modal-btns button` rule
   out-specificed `.btn-primary` and silently left every modal confirm
   white-on-white (Stephen's screenshot: the OK pill next to Cancel was
   invisible). */
.ad-hero{height:120px;border-radius:var(--radius-md);background:linear-gradient(135deg,var(--sky),var(--teal));display:flex;align-items:center;justify-content:center;margin-bottom:10px}
.ad-hero img{max-height:90px;max-width:80%}
.decision-circles{display:flex;gap:14px;justify-content:center;margin:14px 0}
.dcircle{width:52px;height:52px;border-radius:50%;border:3px solid var(--white);box-shadow:0 2px 8px rgba(0,0,0,.2);font-size:22px;font-weight:800;color:var(--white)}
.dcircle.green{background:var(--green)}
.dcircle.orange{background:var(--warning)}
.dcircle.red{background:var(--red)}
.dcircle.picked{outline:3px solid var(--ink)}
.chat{border:1.5px solid var(--line);border-radius:var(--radius-md);padding:10px;margin:10px 0;max-height:160px;overflow:auto;background:var(--tint-cool)}
.chat p{margin:6px 0;font-size:14px}
.chat time{color:var(--muted);font-size:12px}
#reviewChatForm{display:flex;gap:8px}
#reviewChatForm input{flex:1;min-width:0}
#reviewChatForm button{padding:10px 16px;border:none;border-radius:var(--radius-pill);background:var(--ink);color:var(--white);font-weight:700;width:auto}
.ad-preview{border:1.5px solid var(--line);border-radius:var(--radius-md);padding:14px;margin:12px 0;background:var(--tint-cool)}
.card-picker-list{display:flex;flex-direction:column;gap:8px;margin:10px 0}
.card-picker-list button{text-align:left;padding:11px;border-radius:12px;border:1.5px solid var(--line);background:var(--card);font-weight:700}

/* Photo toggle (Screen 29): the photo IS the toggle */
.photo-toggles{display:flex;gap:16px;flex-wrap:wrap}
.photo-toggle{width:150px;text-align:center}
.photo-toggle .track{position:relative;height:110px;background:var(--tint-soft);border-radius:var(--radius-md);overflow:hidden}
.photo-toggle img{position:absolute;top:6px;left:6px;width:96px;height:96px;object-fit:cover;border-radius:12px;border:4px solid var(--green);transition:left .3s ease,border-color .3s ease;cursor:pointer}
.photo-toggle.off img{left:48px;border-color:var(--red)}
.photo-toggle .toggle-label{font-weight:800;margin-top:8px}
.photo-toggle .toggle-label.send{color:var(--green-dark)}
.photo-toggle .toggle-label.dont{color:var(--red)}

/* Bottom nav — frosted glass, every view */
/* Fixed to the viewport bottom and ALWAYS visible (Stephen, 2026-11-07):
   the old scroll-down / 3 s-idle auto-hide is gone — the live audit found
   the bar missing when Stephen looked for it. The app moves this one
   <nav> into the active view on every navigation. */
.bottomnav{position:fixed;bottom:calc(12px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:min(480px,calc(100vw - 24px));z-index:55;display:flex;gap:4px;background:rgba(255,255,255,.78);backdrop-filter:blur(14px);border:1.5px solid var(--line);border-radius:var(--radius-pill);padding:6px 10px;box-shadow:var(--shadow-lift);margin:0;max-height:64px;overflow:hidden;transition:transform .25s ease,opacity .25s ease}
.bottomnav button{border:none;background:none;display:flex;flex-direction:column;align-items:center;font-size:11px;padding:4px 8px;border-radius:var(--radius-pill);color:var(--muted);flex:1 1 0;min-width:0}
.bottomnav button svg{display:block;flex:none}
.bottomnav button span{white-space:nowrap;font-size:9px;font-weight:700;text-transform:uppercase;letter-spacing:.08em}
.bottomnav button.active{background:var(--ink);color:var(--white)}
/* Hide-on-scroll: JS adds .bnav-hidden while scrolling down (scrollY > 20)
   and removes it on scroll up / at the top / on every showView(). */
.bottomnav.bnav-hidden{transform:translate(-50%,140%);opacity:0;pointer-events:none}
@media (prefers-reduced-motion:reduce){.bottomnav{transition:none}}

.variant-skins{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:12px 0}
.variant-skins .skin{border:1.5px solid var(--line);border-radius:var(--radius-md);padding:12px;text-align:center;background:var(--card)}
.variant-skins .skin strong{font-family:var(--font-display)}
.skin.northwind{background:var(--teal-dark);color:var(--white)}
.skin.northwind p{color:var(--tint-mint)}
.skin.pulse{background:var(--ink-black);color:var(--white)}
.skin.pulse p{color:var(--red-tint)}
.album-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:12px 0}
.album-item{border-radius:var(--radius-md);overflow:hidden;background:var(--card);border:1.5px solid var(--line)}
.album-item .ph{height:90px;background:linear-gradient(135deg,var(--sky),var(--sunny));display:flex;align-items:center;justify-content:center;font-size:34px}
.album-item p{margin:6px 8px;font-size:12px;font-weight:700}
.album-item small{display:block;margin:0 8px 8px;color:var(--muted);font-size:12px}
.retention{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0}
.retention .stat{background:var(--card);border:1.5px solid var(--line);border-radius:var(--radius-md);padding:12px;text-align:center}
.retention .stat strong{display:block;font-family:var(--font-display);font-size:24px}
/* Card spec line — on every card, picker and play */
.spec-line{font-size:12px;font-weight:700;color:var(--azure-dark);margin:4px 0 0}
.swipe-card .spec-line{margin:0 0 10px}

/* Block Designer */
.preset-row{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0}
.layout-preset,.adm-preset{padding:9px 16px;border-radius:var(--radius-pill);border:1.5px solid var(--line);background:var(--card);font-weight:800}
.layout-preset.active,.adm-preset.active{background:var(--ink);color:var(--white);border-color:var(--ink)}
.layout-custom{display:flex;gap:12px;flex-wrap:wrap;align-items:flex-end;margin:8px 0}
.layout-custom label{margin:0;flex:1;min-width:90px}
.layout-custom input[type="number"]{width:100%}
.check{display:flex;gap:8px;align-items:center;font-weight:700}
.check input{width:auto}
/* Hero toggle pill (Block Designer, 2026-11-07): the Hero ad checkbox
   used to sit inside the Columns/Rows flex row as a third cramped
   column, its label wrapping into a tall stack of words. Now it is its
   own full-width slim pill on its own line, below the row — the text
   wraps cleanly inside the pill's full width. */
.hero-pill{width:100%;margin:8px 0;padding:10px 16px;border:1.5px solid var(--line);border-radius:var(--radius-pill);background:var(--card)}
.hero-pill input{flex:none}
.hero-pill span{min-width:0}
.fix-row{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}

/* Review step (Create flow, Step 4): the live card preview + one row per
   setting, each stated once, with an Edit link back to its step. */
.review-board{margin:4px 0 12px}
.review-rows{display:flex;flex-direction:column;margin:4px 0 8px}
.review-row{display:flex;align-items:baseline;gap:10px;padding:9px 2px;border-bottom:1px solid var(--line)}
.review-row:last-child{border-bottom:none}
.review-label{font-weight:700;color:var(--muted);font-size:14px;flex:none;width:104px}
.review-value{flex:1;min-width:0}
.review-edit{flex:none}
.success-line{color:var(--green-dark);font-weight:800;font-size:18px;margin:14px 0 4px}
.row-edit-btn{background:var(--card);border:1.5px solid var(--line);color:var(--azure-dark);border-radius:var(--radius-pill);padding:9px 12px;font-weight:800;font-size:13px;white-space:nowrap;cursor:pointer;flex:none}
.fix-btn{padding:9px 14px;border-radius:var(--radius-pill);border:1.5px solid var(--red);background:var(--tint-red);color:var(--red);font-weight:800}

/* Admin — Create a Skin */
.palette{display:flex;gap:10px;flex-wrap:wrap;margin:8px 0}
.swatch{width:44px;height:44px;border-radius:50%;border:3px solid var(--white);box-shadow:0 2px 8px rgba(0,0,0,.2);padding:0}
.swatch.active{outline:3px solid var(--ink)}
.logo-row{display:flex;gap:12px;align-items:center;margin:8px 0}
.logo-row img{width:64px;height:64px;object-fit:contain;border:1.5px solid var(--line);border-radius:12px;background:var(--card)}
.logo-row img:not([src]){display:none}
.logo-row button{padding:9px 14px;border-radius:var(--radius-pill);border:1.5px solid var(--line);background:var(--card);font-weight:700}
.skin-phone{border:2px solid var(--ink);border-radius:26px;overflow:hidden;max-width:380px;margin:12px 0;box-shadow:var(--shadow-lift)}
.skin-phone-head{background:var(--skin-primary,var(--sunny));color:var(--ink);padding:12px 16px;display:flex;gap:10px;align-items:center;font-family:var(--font-display);font-size:19px}
.skin-phone-head img{width:34px;height:34px;object-fit:contain;background:var(--card);border-radius:10px;padding:2px}
.skin-phone-body{padding:14px;background:var(--card)}
.skin-phone-body p{margin:6px 0;font-size:14px}
.skin-phone-body .board{max-width:280px}
.skin-list{display:flex;flex-direction:column;gap:10px}
.skin-row{display:flex;gap:10px;align-items:center;background:var(--card);border:1.5px solid var(--line);border-radius:var(--radius-md);padding:12px;flex-wrap:wrap}
.skin-row .gi{flex:1;min-width:180px}
.skin-row .gtitle{font-family:var(--font-display);font-weight:700;font-size:17px}
.skin-row .gmeta{color:var(--muted);font-size:13px}
.skin-dot{width:18px;height:18px;border-radius:50%;flex:none}
.skin-row button{padding:8px 12px;border-radius:var(--radius-pill);border:1.5px solid var(--line);background:var(--card);font-weight:700}
.status-published,.status-draft,.status-unpublished{font-size:12px;font-weight:800;border-radius:var(--radius-pill);padding:3px 9px;white-space:nowrap}
.status-published{background:var(--tint-green);color:var(--green-dark)}
.status-draft{background:var(--tag-bg);color:var(--tag-brown)}
.status-unpublished{background:var(--tint-soft);color:var(--muted)}

/* Skin Configuration System — picker, Admin tabs, JSON pane, validation */
.skin-picker{display:flex;gap:8px;flex-wrap:wrap}
.skin-chip{display:flex;align-items:center;gap:8px;padding:9px 14px;border-radius:var(--radius-pill);border:1.5px solid var(--line);background:var(--card);font-weight:800}
.skin-chip .skin-dot{width:14px;height:14px;border-radius:50%}
.skin-chip.active{background:var(--ink);color:var(--white);border-color:var(--ink)}
.skin-tabs{display:flex;gap:8px;margin:12px 0}
.skin-tab{flex:1 1 0;min-width:0;padding:11px;border-radius:var(--radius-pill);border:1.5px solid var(--line);background:var(--card);font-weight:800}
.skin-tab.active{background:var(--ink);color:var(--white);border-color:var(--ink)}
#admJson{width:100%;font-family:ui-monospace,Menlo,Consolas,monospace;font-size:12.5px;line-height:1.5;background:var(--ink-deep);color:var(--tint-blue);border-radius:var(--radius-md);padding:14px}
.validation-report{margin:12px 0;font-size:14px}
.validation-report .v-err{color:var(--danger);font-weight:700;margin:4px 0}
.validation-report .v-warn{color:var(--tag-brown);font-weight:700;margin:4px 0}
.validation-report .v-ok{color:var(--green-dark);font-weight:700;margin:4px 0}
.validation-report .v-fix{color:var(--muted);margin:2px 0 8px 18px}

@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

/* Profile avatars: the leaderboard "you" row and the profile preview. */
/* Profile summary: name, avatar, your progress, points — the only part
   of Profile always visible. The full form is behind "Edit profile". */
.progress-line{font-weight:700;margin:6px 0}
.summary-points{font-weight:800;margin:4px 0 12px}
.lb-avatar{font-size:18px;margin-right:6px}
.lb-avatar-img{width:22px;height:22px;border-radius:50%;object-fit:cover;margin-right:6px;vertical-align:-5px;border:1.5px solid var(--line)}
.avatar-preview{display:flex;align-items:center;gap:10px;margin:6px 0}
.avatar-preview #avatarPreview{font-size:34px;width:52px;height:52px;border-radius:50%;background:var(--tint-soft);display:flex;align-items:center;justify-content:center;overflow:hidden;flex:none}
.avatar-preview #avatarPreview img{width:100%;height:100%;object-fit:cover}
.avatar-preview small{color:var(--muted)}

/* Create — 3 steps (m12): Card → Rules → When & who, with a progress indicator. */
.create-steps{display:flex;gap:8px;margin:10px 0 14px}
.create-step-tab{flex:1 1 0;min-width:0;min-height:32px;padding:6px 10px;border-radius:var(--radius-pill);border:1px solid var(--line);background:var(--card);font-weight:600;font-size:13px}
.create-step-tab.active{background:var(--ink);color:var(--white);border-color:var(--ink)}
.create-step-nav{display:flex;justify-content:space-between;gap:8px;margin-top:12px}
.create-step-nav #createBackBtn{min-height:32px;padding:6px 14px;border-radius:var(--radius-pill);border:1px solid var(--line);background:var(--card);font-weight:600;font-size:13px}

/* ---------- Block badges + points tags (play board) ---------- */
/* The small "?" in a circle: a block whose creator ticked "Display as
   help". Tapping it opens the block's help sentence in a popup (it never
   opens the block popup). */
.cell .help-badge{position:absolute;top:3px;left:3px;z-index:4;width:22px;height:22px;border-radius:50%;background:var(--white);color:var(--ink);border:1.5px solid var(--line);font-size:12px;font-weight:800;line-height:1;display:flex;align-items:center;justify-content:center;box-shadow:0 1px 4px rgba(0,0,0,.25);cursor:pointer;padding:0}
/* A single block's own points, shown when the creator set a value other
   than 1 (so a 2-point block reads differently from a 1-point one). */
.cell .block-pts{position:absolute;left:5px;right:5px;bottom:5px;z-index:2;font-size:10px;font-weight:800;text-align:center;pointer-events:none}
/* A block whose creator picked a colour or uploaded an icon: the cell
   takes the colour (text auto-contrasts) or the icon fills it. */
.cell.block-coloured{font-weight:700}
.cell.block-iconed{color:var(--white);font-weight:800;text-shadow:0 1px 6px rgba(0,0,0,.65)}

/* ---------- Block Builder (Create Step 1) ---------- */
/* One builder for every card: "+" adds a block, one at a time; each block
   is built by one guided question at a time, with the live preview
   ("display") always visible and updating as each answer is given. */
.builder-list{display:flex;flex-direction:column;gap:8px;margin:8px 0}
.builder-row{display:flex;align-items:center;gap:10px;background:var(--card);border:1.5px solid var(--line);border-radius:var(--radius-md);padding:10px 12px;text-align:left;width:100%}
.builder-row .builder-chip{flex:none;width:34px;height:34px;border-radius:9px;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:15px;overflow:hidden;border:1.5px solid var(--line)}
.builder-row .builder-chip img{width:100%;height:100%;object-fit:cover}
.builder-row .gi{flex:1;min-width:0}
.builder-row .gtitle{display:block;font-weight:700;overflow-wrap:break-word}
.builder-row .gmeta{font-size:12px;color:var(--muted);font-weight:600}
.builder-row .row-btns{display:flex;gap:6px;flex:none}
.builder-row .row-btns button{min-height:32px;padding:6px 12px;border-radius:var(--radius-pill);border:1px solid var(--line);background:var(--card);font-weight:700;font-size:13px}
.builder-panel{border:1.5px solid var(--line);border-radius:var(--radius-lg);padding:14px;margin:12px 0;background:var(--tint-cool)}
.builder-display{display:flex;flex-direction:column;align-items:center;margin:6px 0 12px}
.builder-preview-cell{width:150px;flex:none}
.builder-q{margin:10px 0}
.builder-q .bb-q{font-weight:700;margin:0 0 8px}
.builder-q input[type="color"]{width:52px;height:40px;padding:2px;border:1.5px solid var(--line);border-radius:10px;background:var(--card);cursor:pointer;vertical-align:middle}
.bb-swatches{display:inline-flex;gap:6px;flex-wrap:wrap;margin-left:8px;vertical-align:middle}
.bb-swatches button{width:28px;height:28px;border-radius:50%;border:2px solid var(--white);box-shadow:0 0 0 1px var(--line);cursor:pointer;padding:0}
.bb-swatches button.on{box-shadow:0 0 0 2px var(--ink)}
#bbColorRow{margin-top:8px}

/* ---------- New-version pill (Stephen, 2026-11-07) ---------- */
/* Slim bar at the very top of the page, in flow — never covering the
   board or the primary action. Right padding clears the fixed menu
   button so the Refresh button stays tappable. */
#versionPill{display:flex;align-items:center;justify-content:center;gap:10px;background:var(--ink-deep);color:var(--white);font-size:13px;font-weight:600;padding:8px 56px 8px 12px}
#versionPill[hidden]{display:none}
#versionPill button{border:1.5px solid var(--white);background:transparent;color:var(--white);border-radius:var(--radius-pill);padding:4px 14px;font-weight:800;font-size:13px;flex:none}
/* ---------- Global menu button + sheet (Stephen, 2026-11-07) ---------- */
/* One ☰ on EVERY page: fixed at the top-right corner, outside the views,
   so it is visible no matter which screen is showing. The play view has
   its own ⋯ menu, so the global button hides there (see showView). */
.global-menu-btn{position:fixed;top:calc(10px + env(safe-area-inset-top));right:calc(12px + env(safe-area-inset-right));z-index:60;width:44px;height:44px;border-radius:50%;border:1.5px solid var(--line);background:var(--card);color:var(--ink);font-size:20px;font-weight:800;line-height:1;display:flex;align-items:center;justify-content:center;box-shadow:var(--shadow-sm);padding:0}
.global-menu-btn.menu-hidden{display:none}
/* The hamburger and the Play ⋯ are drawn SVGs, not font glyphs: the ☰
   character rendered as a boxed "?" in the live-browser audit (08:31)
   because Fraunces/Inter have no glyph for it. */
.global-menu-btn svg{display:block}
#pillMenu{display:flex;align-items:center;justify-content:center}
.controls-full button.menu-icon{display:flex;align-items:center;justify-content:center}
#menuSheet{position:fixed;top:62px;right:10px;z-index:59;width:min(300px,calc(100vw - 20px));background:var(--card);border:1.5px solid var(--line);border-radius:var(--radius-md);box-shadow:var(--shadow-lg);padding:8px;display:none}
#menuSheet.open{display:block}
#menuSheet h3{margin:4px 8px 8px;font-size:15px}
#menuSheet button.menu-item{display:flex;width:100%;align-items:center;gap:10px;border:none;background:none;padding:11px 10px;border-radius:12px;font-size:15px;font-weight:600;text-align:left;color:var(--ink)}
#menuSheet button.menu-item:active{background:var(--tint-cool)}
#menuSheet .menu-close{width:100%;margin-top:6px;padding:10px;border-radius:var(--radius-pill);border:1.5px solid var(--line);background:var(--card);font-weight:700}

/* iOS notch / status bar (Capacitor contentInset never) */
body{padding-top:env(safe-area-inset-top)}
/* Landing hero: see promo.css */
.home-hero{display:flex}

/* Picker: guide blocks, + / − on the active card, keep / ignore rows, square deck buttons */
.swipe-guide{display:flex;gap:10px;justify-content:center;align-items:stretch;margin:0 0 12px}
.sg-block{display:flex;flex-direction:column;justify-content:center;width:104px;min-height:56px;padding:6px 8px;border:2px dashed var(--green);border-radius:12px;font-size:12px;color:var(--muted);line-height:1.2}
.sg-block b{display:block;font-size:13px;color:var(--ink)}
.sg-block.ignore{border-color:var(--coral)}
.sg-note{align-self:center;font-size:13px;font-weight:700;color:var(--muted)}
.swipe-stage{position:relative;max-width:380px;margin:0 auto}
.swipe-plus,.swipe-minus{position:absolute;right:14px;z-index:20;width:58px;height:58px;border-radius:50%;font-size:38px;line-height:1;font-weight:800;display:flex;align-items:center;justify-content:center;padding:0;color:var(--white);cursor:pointer;box-shadow:0 4px 12px rgba(0,0,0,.25)}
.swipe-plus{bottom:84px;background:var(--green);border:3px solid var(--green)}
.swipe-minus{bottom:16px;background:var(--coral);border:3px solid var(--coral)}
.swipe-plus[hidden],.swipe-minus[hidden]{display:none}
.tray-chips{flex-wrap:nowrap;overflow-x:auto;padding-bottom:6px;-webkit-overflow-scrolling:touch}
.tray-chip{position:relative;flex:0 0 auto;width:92px;height:92px;flex-direction:column;justify-content:center;gap:2px;padding:6px;border-radius:12px;text-align:center}
.tray-chip .tc-e{font-size:26px;line-height:1}
.tray-chip .tc-t{font-size:12px;font-weight:700;line-height:1.1;word-break:break-word}
.tray-chip button{position:absolute;top:2px;right:2px;width:18px;height:18px;border-radius:50%;background:var(--ink);color:var(--white);font-size:12px;line-height:1;padding:0}
.ignored-tray{background:rgba(var(--coral-rgb),.08);border-color:var(--coral)}
.tray-chip.ignored{border-color:var(--coral)}
.deck-actions{display:flex;gap:6px;width:100%}
.sq-btn{flex:1 1 0;min-width:0;width:auto;height:48px;white-space:nowrap;border-radius:10px;border:2px solid var(--line);background:var(--card);font-size:12px;font-weight:800;padding:2px;cursor:pointer;color:var(--ink)}
.play-btn.sq-btn{background:var(--green);border-color:var(--green);color:var(--white)}
.keep-toggle.sq-btn.kept{background:var(--azure);border-color:var(--azure);color:var(--white)}
.rm-btn.sq-btn{border-color:var(--coral);color:var(--coral)}

/* Block designer popup */
.bb-modal{position:fixed;inset:0;z-index:70;background:rgba(18,38,63,.55);display:flex;overflow-y:auto;padding:12px;border:0;border-radius:0;margin:0}
.bb-modal[hidden]{display:none}
.bb-sheet{margin:auto;width:100%;max-width:min(520px,calc(100vw - 24px));background:var(--card);border-radius:var(--radius-lg);padding:16px;box-shadow:var(--shadow-lift);max-height:94vh;overflow:auto}
.bb-bigcell{position:relative;width:min(240px,60vw);aspect-ratio:1;display:flex;flex-direction:column;padding:8px;gap:6px;cursor:default}
.bb-ptitle{border:0;background:none;font-weight:800;font-size:15px;line-height:1.15;text-align:center;color:inherit;cursor:pointer;padding:2px;overflow-wrap:break-word}
.bb-ptitle:empty::before{content:"Click to add a title";opacity:.55;font-weight:600}
.bb-grid{flex:1;min-height:0;display:grid;gap:4px}
.bb-mc{position:relative;border:2px solid var(--line);border-radius:8px;background:var(--card);display:flex;align-items:center;justify-content:center;font-weight:800;font-size:15px;color:var(--ink);padding:0;cursor:pointer;min-width:0;min-height:0}
.bb-mc .n{position:absolute;top:1px;left:3px;font-size:12px;font-weight:700;opacity:.65}
.bb-mc.set{border-color:var(--green)}
.bb-pfoot{font-weight:800;font-size:14px;text-align:center}
.bb-hint{position:absolute;left:8px;right:8px;top:42%;background:var(--white);border:2px solid var(--ink);border-radius:var(--radius-pill);padding:6px 10px;font-size:13px;font-weight:700;text-align:center;box-shadow:var(--shadow-soft);pointer-events:none}
.bb-total{font-size:26px;font-weight:800;text-align:center;margin:10px 0 4px;color:var(--ink)}
.bb-bigtoggle{display:flex;gap:0;border:2px solid var(--ink);border-radius:14px;overflow:hidden}
.bb-bigtoggle label{flex:1;margin:0;cursor:pointer}
.bb-bigtoggle input{position:absolute;opacity:0;pointer-events:none;width:1px;height:1px}
.bb-bigtoggle span{display:flex;align-items:center;justify-content:center;text-align:center;min-height:56px;padding:6px 8px;font-size:17px;font-weight:800;background:var(--card);color:var(--ink)}
.bb-bigtoggle input:checked + span{background:var(--green);color:var(--white)}
.bb-bigtoggle.bb-three span{font-size:14px}
.bb-switch{display:inline-flex;align-items:center;gap:8px;margin:0;cursor:pointer;flex:none}
.bb-switch input{position:absolute;opacity:0;width:1px;height:1px}
.bb-sw{width:46px;height:26px;border-radius:13px;background:var(--line);position:relative;transition:background .15s}
.bb-sw::after{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:var(--white);transition:transform .15s}
.bb-switch input:checked + .bb-sw{background:var(--green)}
.bb-switch input:checked + .bb-sw::after{transform:translateX(20px)}
.bb-swt{font-weight:700;font-size:13px}
.bb-helprow{display:flex;gap:10px;align-items:flex-end}
.bb-helpfield{flex:1;min-width:0}
.bb-video{text-align:center}
.bb-vplay{width:100%;min-height:48px;border-radius:12px;border:2px dashed var(--azure);background:var(--tint-cool);font-weight:800;color:var(--ink);cursor:pointer}
.bb-vstage{position:relative;aspect-ratio:16/9;background:var(--white);border:2px solid var(--line);border-radius:12px;overflow:hidden}
.bb-vbody{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:10px;font-weight:800;font-size:22px;opacity:0;transition:opacity .5s}
.bb-vbody.in{opacity:1}
.bb-vbody .vt{font-size:20px}
.bb-vbody .vs{font-size:15px;font-weight:700;max-width:90%}
.bb-vblock{position:relative;width:96px;height:96px;border:5px solid var(--coral);border-radius:12px;display:flex;align-items:center;justify-content:center;transition:background .4s,border-color .4s}
.bb-vblock.ok{background:var(--green);border-color:var(--green)}
.bb-vblock .vtick{font-size:64px;color:var(--green);opacity:0;transition:opacity .3s}
.bb-vblock.ok .vtick{color:var(--white)}
.bb-vblock .vtick.on{opacity:1}
.bb-vgrid{position:absolute;inset:4px;display:grid;grid-template-columns:repeat(3,1fr);gap:3px}
.bb-vgrid i{border:1.5px solid var(--line);border-radius:4px;display:flex;align-items:center;justify-content:center;font-style:normal;font-size:18px;color:var(--green);background:var(--white)}
.bb-vblock.ok .bb-vgrid i{background:rgba(255,255,255,.2);border-color:var(--white);color:var(--white)}
.bb-vreplay{position:absolute;right:8px;bottom:8px;border:0;background:var(--ink);color:var(--white);font-weight:800;border-radius:var(--radius-pill);padding:4px 12px;cursor:pointer}
.bb-examples{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;margin:6px 0 10px}
.bb-ex{width:70px;text-align:center;font-size:12px;font-weight:700}
.bb-ex .blk{aspect-ratio:1;border:2px solid var(--ink);border-radius:8px;padding:3px;display:grid;gap:2px;margin-bottom:3px}
.bb-ex .blk i{background:var(--tint-soft);border-radius:2px}
.bb-pills{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}
.bb-pills button{min-height:34px;padding:6px 12px;border-radius:var(--radius-pill);border:1.5px solid var(--line);background:var(--card);font-weight:700;font-size:13px;cursor:pointer}
.bb-pills button.on{background:var(--ink);color:var(--white);border-color:var(--ink)}
.bb-countrow{display:flex;align-items:center;gap:14px}
.bb-wheel{height:132px;width:84px;overflow-y:auto;scroll-snap-type:y mandatory;border:2px solid var(--line);border-radius:12px;padding:44px 0;position:relative;background:var(--card);flex:none}
.bb-wheel button{display:block;width:100%;height:44px;scroll-snap-align:center;border:0;background:none;font-size:22px;font-weight:700;color:var(--muted);cursor:pointer}
.bb-wheel button.on{color:var(--ink);font-weight:800;font-size:26px}
.bb-photorow{display:flex;align-items:center;gap:12px;justify-content:space-between;margin:12px 0;flex-wrap:wrap}
.bb-q-btn{width:24px;height:24px;border-radius:50%;border:1.5px solid var(--ink);background:var(--card);font-weight:800;cursor:pointer;padding:0}
.bb-more summary{font-weight:700;cursor:pointer}
.mini-info{margin:8px 0;padding:8px 10px;background:var(--tint-cool);border-radius:10px;font-size:13px}.mini-info p{margin:0 0 6px}.mini-info span{color:var(--muted)}
.bb-click{cursor:pointer}.bb-click .label{font-size:12px;font-weight:700}
.bb-sheet button.bb-mc{background:var(--card);color:var(--ink);border:2px solid var(--line)}.bb-sheet button.bb-mc.set{border-color:var(--green)}.bb-sheet button.bb-ptitle{background:none;color:inherit;box-shadow:none}

.tray-chip.playable{cursor:pointer}

.auth-row{display:flex;gap:8px}.auth-row .btn-primary{flex:1 1 0;min-width:0;padding:12px 8px}
.scope-btn.auth-guest{background:var(--green);color:var(--white);border-color:var(--green)}

.bb-titlein{width:100%;border:0;border-bottom:2px dashed var(--line);background:transparent;font:800 22px var(--font-display);color:var(--ink);padding:6px 2px;border-radius:0}
.bb-titlein::placeholder{color:var(--muted);font-weight:700}
.bb-titlein:focus{outline:none;border-bottom-color:var(--green)}
.bb-yn span{min-height:44px;font-size:16px}
.bb-colorrow{background:var(--white);border:1px solid var(--line);border-radius:var(--radius-sm);padding:12px;margin:8px 0}
.bb-colorrow .bb-swatches{margin-left:0}
.bb-look span{min-height:48px}

/* ---- Play a Game page ---- */
:root{--pill-font:11px;--chip-font:8.25px}
.pg-sec{margin:0 0 14px}
.pg-h{margin:0 0 8px;font-size:17px}
.pg-words{display:flex;flex-wrap:wrap;gap:8px}
.pg-word,.pg-signin{border:1.5px solid var(--line);background:var(--card);border-radius:var(--radius-pill);padding:10px 14px;font-weight:800;font-size:15px;color:var(--ink)}
.pg-word b{display:inline-block;min-width:20px;margin-left:4px;padding:1px 6px;border-radius:var(--radius-pill);background:var(--tint-grey);font-size:13px;text-align:center}
.pg-word.on{background:var(--ink);color:var(--white);border-color:var(--ink)}.pg-word.on b{background:var(--white);color:var(--ink)}
.pg-signin{width:100%;text-align:left}
.pg-create{display:flex;flex-direction:column;align-items:flex-start;gap:2px;width:100%;padding:14px 16px;border:1.5px solid var(--line);background:var(--card);border-radius:var(--radius-md);text-align:left}
.pg-create-t{font:800 17px var(--font-display);color:var(--ink)}.pg-create-s{font-size:13px;color:var(--muted)}
.pg-panel{margin-top:12px}
.pg-ph{margin:0 0 8px;font-size:15px}
.bingo-row{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
.bingo-col{display:flex;flex-direction:column;align-items:stretch;min-width:0}
.bingo-letter{text-align:center;font:800 28px var(--font-display);color:var(--coral);line-height:1.1;margin-bottom:4px}
.bingo-block{display:flex;flex-direction:column;align-items:center;gap:2px;min-width:0;padding:8px 2px;border:1.5px solid var(--line);background:var(--card);border-radius:var(--radius-sm);color:var(--ink)}
.bingo-block.on{background:var(--ink);color:var(--white);border-color:var(--ink)}
.bb-ic{font-size:20px;line-height:1}.bb-nm{font-size:var(--pill-font);font-weight:800;line-height:1.15;text-align:center;overflow-wrap:anywhere}
.bb-ct{font-size:10px;line-height:1.2;white-space:nowrap}.bb-ct b{font-size:12px}
.pg-reward{font-weight:700;color:var(--azure-dark)!important}.pg-when{font-size:12px!important}
.deck-list{grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}
.deck-card{min-width:0;overflow:hidden}
.deck-card strong,.deck-card p{overflow-wrap:anywhere}
.pill-row{display:flex;max-width:100%;margin-top:8px}
.pill{display:inline-block;max-width:100%;box-sizing:border-box;padding:2px 7px;border-radius:var(--radius-pill);border:1px solid var(--line);font-size:var(--pill-font);font-weight:700;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle;background:var(--tag-blue);color:var(--azure-dark)}
.sponsored-pill{background:var(--tag-bg);color:var(--tag-brown);border-color:transparent}
.cat-pill{cursor:pointer}
.hide-pill{background:var(--card);color:var(--coral);border-color:var(--coral);cursor:pointer}
.deck-actions{align-items:center;gap:6px;width:auto;flex-wrap:wrap}
.icon-pill{display:inline-flex;align-items:center;justify-content:center;width:auto;min-height:0;padding:3px 7px;border-radius:var(--radius-pill);border:1px solid var(--line);background:var(--card);color:var(--ink);cursor:pointer}
.icon-pill.kept{background:var(--azure);border-color:var(--azure);color:var(--white)}
.pg-actions{display:flex;flex-wrap:wrap;gap:5px;margin-top:8px}
.pg-pill{background:var(--card);color:var(--ink);cursor:pointer}
/* kept-cards outline: grows sideways and up/down */
.tray{background:transparent;border:2px dashed var(--green);padding:10px 12px}
.tray h3{font-size:14px}
.tray-empty{margin:0;color:var(--muted);font-size:13px}
.tray .tray-chips{flex-wrap:wrap;overflow:visible;gap:10px;margin-bottom:0}
.tray-chip{width:64px;height:auto;padding:4px 2px 2px;border:none;background:transparent;gap:3px;border-radius:8px}
.tray-chip .tc-pic{position:relative;display:block;width:44px;height:44px;margin:0 auto;border-radius:8px;overflow:hidden}
.tray-chip .tc-pic .thumb-e{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:22px}
.tray-chip .tc-pic img{position:relative;z-index:1;width:100%;height:100%;object-fit:cover;display:block}
.tray-chip .tc-t{font-size:var(--pill-font);line-height:1.1}
.tray-chip button{top:0;right:2px}
/* swipe controls: small circles + arrows under the card */
.swipe-ctl{display:flex;justify-content:center;gap:10px;margin:8px 0 0}
.swipe-ctl .swipe-plus,.swipe-ctl .swipe-minus,.swipe-ctl .swipe-arrow{position:static;width:29px;height:29px;font-size:19px;border-width:2px}
.swipe-arrow{border-radius:50%;display:flex;align-items:center;justify-content:center;padding:0;line-height:1;font-weight:800;color:var(--white);background:var(--azure);border:2px solid var(--azure);cursor:pointer}
.swipe-arrow[hidden],.swipe-ctl [hidden]{display:none}

.bingo-block{justify-content:center;min-height:64px;padding:8px 3px;font:800 15px/1.15 var(--font-display);text-align:center;overflow-wrap:anywhere;hyphens:auto}
.bingo-block.on{background:var(--green);border-color:var(--green);color:var(--white)}
/* kept-card X: sits on the corner of the picture — white circle, red border, red X */
.tray-chip button{z-index:3;top:-3px;right:5px;width:20px;height:20px;background:var(--white);border:1.5px solid var(--red);color:var(--red);font-weight:800;font-size:14px;line-height:1;box-shadow:0 1px 3px rgba(0,0,0,.18)}
.bingo-row{gap:4px}
.bingo-block{font-size:12px;padding:8px 2px;overflow-wrap:normal;word-break:normal;hyphens:none;letter-spacing:-.01em}

/* collapsed swipe: reveal pill, 50% wide, centred */
.swipe-reveal{position:relative;width:50%;min-width:150px;height:40px;margin:0 auto;border-radius:20px;background:var(--tint-cool);border:1.5px solid var(--line);display:flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;touch-action:pan-y}
.swipe-reveal[hidden],.swipe-body[hidden]{display:none}
.sr-letters{display:flex;gap:6px;font:800 16px/1 var(--font-display);color:var(--coral)}
.sr-letters b{opacity:0;transform:scale(.6);transition:opacity .18s,transform .18s}
.sr-letters b.on{opacity:1;transform:none}
.sr-knob{position:absolute;left:3px;top:3px;width:30px;height:30px;border-radius:50%;background:var(--azure);color:var(--white);display:flex;align-items:center;justify-content:center;font-weight:800;touch-action:none;transition:transform .2s}
.swipe-hide{display:block;margin:0 auto 8px}
/* controls: a white / light-grey block over the lower left of the cards */
.swipe-stage .swipe-ctl{position:absolute;left:6px;bottom:6px;z-index:30;display:grid;grid-template-columns:repeat(2,29px);gap:6px;margin:0;padding:6px;border-radius:10px;background:var(--tint-grey);border:1px solid var(--line)}
/* +/- circles on the list cards */
.circ-btn{width:29px;height:29px;min-height:0;padding:0;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-size:19px;font-weight:800;line-height:1;cursor:pointer;color:var(--white);flex:0 0 auto;margin-top:0}
.circ-plus{background:var(--green);border:2px solid var(--green)}
.circ-plus.on{background:var(--white);color:var(--green)}
.circ-minus{background:var(--coral);border:2px solid var(--coral)}
.circ-minus:disabled{opacity:.35;cursor:default}
.deck-actions .circ-btn{flex:0 0 29px;width:29px}

.swipe-reveal{height:54px}
.sr-text{font:800 16px/1.1 var(--font-display);color:var(--ink);text-align:center;padding:0 8px 0 40px;transition:opacity .15s}
.swipe-reveal.revealing .sr-text{opacity:0}
.sr-letters{position:absolute;inset:0;display:grid;grid-template-columns:repeat(5,1fr);align-items:center;justify-items:center;gap:0;font-size:21px;padding:0 4px}
/* owner: block names +75% (12px -> 21px), BINGO letters blue; blocks wrap so the big words fit */
.bingo-row{grid-template-columns:repeat(auto-fit,minmax(104px,1fr))}
.bingo-block{font-size:21px;line-height:1.1;min-height:72px;padding:8px 4px;overflow-wrap:break-word}
.bingo-letter,.sr-letters{color:var(--azure)}
.swipe-reveal{min-width:210px}.sr-text{padding:0 6px 0 38px}

/* ============ Photo Bingo Design Standards v1 (13 Nov 2026) ============ */
:root{--radius-pill:999px;--pill-font:13px}
/* type: Fraunces display (-0.02em), Inter body */
body{font-size:15px;line-height:1.4}
h1,h2,h3{font-family:var(--font-display);letter-spacing:-.02em}
h2{font-weight:800;font-size:26px}
h3{font-weight:700;font-size:19px}
.wordmark{font-weight:800;font-size:30px;color:var(--ink-deep);letter-spacing:-.02em}
/* Narrow phones: the wordmark shrinks so it never collides with the
   44px avatar — at 390px the fixed arrows + menu button leave only
   218px for wordmark + avatar, and 30px "Photo Bingo" is 182px.
   27px at 390px, 22px at 360px and below. */
@media (max-width:480px){.wordmark{font-size:27px}}
@media (max-width:380px){.wordmark{font-size:22px}}
.home-headline{color:var(--ink-deep)}
.picker-intro{font-size:14px;color:var(--muted);margin:2px 0 14px}
.status-line{margin:10px 0 0;font-size:13px;color:var(--muted)}
.status-line + h2{margin-top:2px}
label,legend{font-weight:600}
legend{font-family:var(--font-body)}
.stat-label,.label-tiny{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.06em}
/* one slim pill system: 32px, 6px 14px, 13px/600, fully rounded */
.pill,.group-chip,.chip,.pg-word,.pg-signin,.badge,.logo-row button{display:inline-flex;align-items:center;justify-content:center;min-height:32px;padding:6px 14px;border-radius:var(--radius-pill);font:600 13px/1.2 var(--font-body);border:1.5px solid var(--ink);background:var(--card);color:var(--ink);max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.group-chip.active,.chip.active,.pg-word.on{background:var(--ink);color:var(--white);border-color:var(--ink)}
.sponsored-pill{background:var(--tag-bg);color:var(--tag-brown);border-color:transparent}
.hide-pill{background:var(--card);color:var(--coral);border-color:var(--coral)}
.badge{border-color:var(--line);opacity:.6}.badge.earned{opacity:1;background:var(--tint-green);border-color:var(--green)}
.pg-word b{font-size:12px}
button:disabled{opacity:.4;pointer-events:none}
.btn-primary{background:var(--ink-deep);color:var(--white);padding:12px 20px;font-weight:800;border-radius:var(--radius-pill)}
.start-game-btn{font-family:var(--font-display);font-size:42px;font-weight:800}
/* sections / panels: 14px rhythm */
.tray,.swipe,.pg-sec,.panel{margin-top:0;margin-bottom:14px}
.panel{margin:14px 0}
.tray{background:rgba(var(--green-rgb),.08)}
.ignored-tray{background:rgba(var(--coral-rgb),.08);border-color:var(--coral)}
/* inputs, selects, textarea */
input,select,textarea{padding:11px;border:1.5px solid var(--line);border-radius:var(--radius-sm);font-family:var(--font-body);font-weight:400}
select{appearance:none;-webkit-appearance:none;padding-right:36px;background-image:linear-gradient(45deg,transparent 50%,var(--muted) 50%),linear-gradient(135deg,var(--muted) 50%,transparent 50%);background-position:calc(100% - 18px) 50%,calc(100% - 13px) 50%;background-size:5px 5px,5px 5px;background-repeat:no-repeat}
.search{padding:12px 16px;border-radius:var(--radius-pill);font-size:15px}
/* board frame uses the brand orange token */
.board{border-color:var(--primary)}
/* category tiles: size to content, letter ON the tile, max 2 lines */
.bingo-block{flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:0;padding:8px 6px}
.bingo-block .bingo-letter{margin:0;font-size:22px;line-height:1;color:var(--azure)}
.bingo-block.on .bingo-letter{color:var(--white)}
.bingo-name{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font:800 21px/1.1 var(--font-display);text-align:center}
.bingo-row{gap:12px}
/* nav: 12px uppercase label, tight so six items fit at 390px */
.bottomnav button{padding:4px 2px}
.bottomnav button span{font-size:12px;letter-spacing:.02em}
/* every view fills the viewport so the nav sits on the bottom */
.view:not(#view-home){min-height:calc(100dvh - 110px)}
.bottomnav{gap:0;padding-left:2px;padding-right:2px}.bottomnav button{padding-left:0;padding-right:0}.bottomnav button span{letter-spacing:0}
/* sections are panels: white surface, 1.5px line, 24px radius, 16px padding, H3 first */
.pg-sec{background:var(--card);border:1.5px solid var(--line);border-radius:var(--radius-lg);padding:16px;box-shadow:var(--shadow-soft)}
.pg-h{font-size:19px;font-weight:700;margin:0 0 10px}
.part button{min-height:32px;padding:6px 10px;font:600 13px/1.2 var(--font-body);background:var(--ink-deep)}
.bingo-row{grid-template-columns:repeat(auto-fit,minmax(138px,1fr))}
.pg-signin{white-space:normal;text-align:center;width:100%;overflow:visible}
/* DS-4: .sq-btn is a deliberate square component: explicit 10px radius, never --radius-pill */
.home-avatar{font-family:var(--font-body)}

/* ---- Start modal (picked design): radio rows, game name under the title, success state ---- */
#startModal .modal-card{border-radius:var(--radius-lg);padding:22px 20px 20px}
.start-title{font-size:26px;margin:0 0 6px;color:var(--ink-deep)}
.start-sub{margin:0 0 8px}
.game-name{font:700 19px/1.3 var(--font-display);color:var(--ink-deep);margin:0 0 6px;letter-spacing:-.02em}
.intro{font-size:14px;color:var(--muted);margin:0 0 16px}
.start-when{margin:14px 0}
.start-when>h3{margin:0 0 12px}
.radio-row{display:flex;gap:12px;align-items:flex-start;width:100%;background:var(--card);border:1.5px solid var(--line);border-radius:var(--radius-md);padding:14px;margin:0 0 10px;cursor:pointer;min-height:56px;font-weight:400}
.radio-row:last-of-type{margin-bottom:0}
.radio-row input{appearance:none;-webkit-appearance:none;flex:none;width:22px;height:22px;min-height:0;margin:1px 0 0;padding:0;border-radius:50%;border:2px solid var(--muted);background:var(--card);cursor:pointer}
.radio-row input:checked{border-color:var(--green);background:radial-gradient(circle,var(--green) 0 5px,var(--card) 6.5px)}
.radio-row.selected{border-color:var(--green);background:rgba(var(--green-rgb),.05)}
.radio-row:focus-within{outline:2px solid var(--azure);outline-offset:2px}
.radio-text{min-width:0}
.radio-phrase{display:block;font:700 15px var(--font-body);color:var(--ink-deep);white-space:nowrap}
.radio-explain{display:block;font:400 13px var(--font-body);color:var(--muted);margin-top:2px}
.when-fields{border:0;padding:0;margin:14px 0 0}
.when-fields legend{font:600 13px var(--font-body);color:var(--ink-deep);padding:0;margin-bottom:8px}
.field-grid{display:flex;gap:10px}
.field-grid .field{flex:1 1 0;min-width:0;font:600 13px var(--font-body);color:var(--ink-deep);margin:0}
.field-grid .field input{width:100%}
.btn-row{display:flex;gap:10px;margin-top:16px}
.btn-row>button{flex:1 1 0;min-width:0;min-height:48px;padding:12px 20px;font:800 15px var(--font-body);border-radius:var(--radius-pill)}
.btn-secondary{background:var(--card);color:var(--ink-deep);border:1.5px solid var(--ink-deep)}
.start-success{text-align:center;padding:18px 4px 6px}
.success-icon{width:64px;height:64px;margin:0 auto 14px;border-radius:50%;background:var(--green);color:var(--white);display:flex;align-items:center;justify-content:center}
.start-success h3{margin:0 0 6px}
.start-success p{font-size:14px;color:var(--muted);margin:0 0 18px}
.start-success .btn-primary{width:100%;min-height:48px}

/* radio rows pick up the green outline with no JS (create flow, admin) */
.radio-row:has(input:checked){border-color:var(--green);background:rgba(var(--green-rgb),.05)}
fieldset .radio-row{margin-bottom:10px}
/* inline stepper: - value + , 32px targets, centred tabular value */
.stepper{display:inline-flex;align-items:center;gap:4px;vertical-align:middle;margin:0 2px}
.step-btn{width:32px;height:32px;min-height:32px;padding:0;border-radius:50%;border:1.5px solid var(--ink);background:var(--card);color:var(--ink);font:800 18px/1 var(--font-body);display:inline-flex;align-items:center;justify-content:center}
.stepper input{width:52px;min-height:32px;margin:0;padding:4px;text-align:center;font-variant-numeric:tabular-nums;-moz-appearance:textfield}
.stepper input::-webkit-outer-spin-button,.stepper input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
/* stepper: outline circles (beat the global button fill), 12px-radius value box, keep "blocks wins" together */
.radio-row .step-btn,.stepper .step-btn{background:var(--card);color:var(--ink);border:1.5px solid var(--ink);border-radius:50%}
.radio-row .stepper input{border-radius:var(--radius-sm);border:1.5px solid var(--line);width:56px}
.radio-explain{overflow-wrap:anywhere}
/* Create flow: buttons follow the pill system (the broad .create button rule above no longer wins) */
.create .btn-primary{background:var(--ink-deep);border-radius:var(--radius-pill);padding:12px 20px;font-weight:800}
.create button:not(.btn-primary):not(.step-btn):not(.swatch):not([class*="bb-"]):not(.create-step-tab):not(.boardsize-opt){border-radius:var(--radius-pill);min-height:32px;padding:6px 14px;font:600 13px/1.2 var(--font-body)}
.create .layout-preset:not(.active),.create .adm-preset:not(.active){background:var(--card);color:var(--ink);border:1.5px solid var(--ink)}
/* Builder: points are large bold display numerals inside a panel */
.points-balance{border:1.5px solid var(--line);border-radius:var(--radius-lg);padding:16px;margin:0 0 14px}
.points-balance strong{font:800 32px/1 var(--font-display);letter-spacing:-.02em;color:var(--ink-deep);font-variant-numeric:tabular-nums;margin-left:6px;vertical-align:-3px}
/* review Edit = text link at the right; back button readable; headings clear the 44px menu circle */
.create .review-edit{background:none;border:0;min-height:0;padding:4px 2px;color:var(--azure-dark);font:700 14px var(--font-body);border-radius:0}
.create #createBackBtn{background:var(--card);color:var(--ink);border:1.5px solid var(--ink)}
.view>h2{padding-right:56px}
/* block sheet: Cancel is the secondary pill; the explainer-video trigger is a quiet outlined pill */
.bb-sheet .modal-btns button:not(.btn-primary){background:var(--card);color:var(--ink-deep);border:1.5px solid var(--ink-deep);border-radius:var(--radius-pill);min-height:48px;font-weight:800}
.bb-sheet .modal-btns .btn-primary{border-radius:var(--radius-pill);min-height:48px}
.bb-vplay{background:var(--card);color:var(--ink-deep);border:1.5px solid var(--ink-deep);border-radius:var(--radius-pill);min-height:32px;padding:6px 14px;font:600 13px/1.2 var(--font-body)}
.create .bb-vplay{background:var(--card);color:var(--ink-deep);border:1.5px solid var(--ink-deep);border-radius:var(--radius-pill);min-height:32px;padding:6px 14px;font:600 13px/1.2 var(--font-body)}
.modal .modal-btns button:not(.btn-primary),.create .modal-btns button:not(.btn-primary){background:var(--card);color:var(--ink-deep);border:1.5px solid var(--ink-deep);border-radius:var(--radius-pill);min-height:48px;font-weight:800}
.create #builderCancelBtn{background:var(--card);color:var(--ink-deep);border:1.5px solid var(--ink-deep);border-radius:var(--radius-pill);min-height:48px;font-weight:800}
.create #builderSaveBtn{border-radius:var(--radius-pill);min-height:48px}
/* play board: labels fit the square cell (no clipping) */
.cell{padding:4px;font-size:clamp(10px,2.7vw,13px);line-height:1.12}
.cell span.label{hyphens:auto;-webkit-hyphens:auto;max-height:100%;overflow:hidden}

/* version menu item + what's-new window */
.menu-version{color:var(--muted);font-size:13px}
.ver-list{margin:0;padding-left:18px;font-size:14px}.ver-list li{margin:0 0 6px}
.ver-older{margin:0 0 6px}.ver-older summary{font:700 14px var(--font-body);cursor:pointer;margin:0 0 8px}
.ver-rel h4{font:700 15px var(--font-display);margin:10px 0 6px}
.ver-list{list-style:disc}
/* Block designer sheet (owner 14 Nov): orange border, toggles 50% smaller, bottom never cut off */
.bb-sheet{border:3px solid var(--primary);max-height:94dvh;padding-bottom:calc(16px + env(safe-area-inset-bottom));scroll-padding-bottom:24px}
#blockModal{padding-bottom:max(16px,env(safe-area-inset-bottom))}
.bb-bigtoggle{border-width:1px;border-radius:7px}
.bb-bigtoggle span{min-height:28px;padding:3px 4px;font-size:12px}
.bb-sw{width:23px;height:13px;border-radius:7px}
.bb-sw::after{top:1.5px;left:1.5px;width:10px;height:10px}
.bb-switch input:checked + .bb-sw::after{transform:translateX(10px)}
.bb-switch{gap:5px;font-size:12px}
/* built-block row: Edit / Remove pills must show their text */
.create .row-btns button{color:var(--ink-deep);background:var(--card);border:1.5px solid var(--ink-deep)}
.create .row-btns button:last-child{color:var(--coral);border-color:var(--coral)}

/* avatar: dark initial on the teal circle (contrast) */
.home-avatar{color:var(--ink-deep)}
/* copy a block: red Copy pill -> green "Click When Done"; floating two-step bar; source / destination cells */
.copy-pill{margin-left:8px;background:var(--card);color:var(--red);border:1.5px solid var(--red);border-radius:var(--radius-pill);min-height:32px;padding:6px 14px;font:700 13px var(--font-body)}
.create .copy-pill{background:var(--card);color:var(--red);border:1.5px solid var(--red)}
.create .copy-pill.copying{background:var(--green);color:var(--white);border-color:var(--green)}
.copy-pill:disabled{opacity:.4}
.copy-bar{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(84px + env(safe-area-inset-bottom));width:min(480px,calc(100vw - 24px));z-index:70;background:var(--card);border:3px solid var(--primary);border-radius:var(--radius-lg);padding:14px 16px;box-shadow:var(--shadow-lift)}
.copy-bar[hidden]{display:none}
.copy-bar h3{margin:0 0 6px;font-size:17px}
.copy-steps{list-style:none;margin:0 0 6px;padding:0;font-size:13px;color:var(--muted)}
.copy-steps li{display:flex;gap:8px;align-items:flex-start;padding:3px 0}
.copy-steps li b{flex:none;width:20px;height:20px;border-radius:50%;background:var(--line);color:var(--ink);display:inline-flex;align-items:center;justify-content:center;font-size:12px}
.copy-steps li.on{color:var(--ink-deep);font-weight:700}.copy-steps li.on b{background:var(--green);color:var(--white)}
.copy-status{margin:0 0 8px;font-size:13px;color:var(--muted)}
.copy-bar .btn-row{margin-top:8px}.copy-bar .btn-row>button{min-height:40px;padding:8px 16px}
.board .cell.copy-src{outline:3px solid var(--red);outline-offset:-3px;background:var(--tint-red)}
.board .cell.copy-dest{outline:3px solid var(--green);outline-offset:-3px;background:var(--tint-green)}

/* icons along the bottom of a block: camera / speech bubble / ? (only where required) */
.cell .cell-icons{position:absolute;left:0;right:0;bottom:3px;z-index:4;display:flex;justify-content:center;gap:3px;pointer-events:none}
.cell .cell-ico{width:20px;height:20px;border-radius:50%;background:var(--white);color:var(--ink);border:1.5px solid var(--line);display:inline-flex;align-items:center;justify-content:center;font:800 12px/1 var(--font-body);padding:0;box-shadow:0 1px 3px rgba(0,0,0,.2)}
.cell .cell-ico svg{width:12px;height:12px}
.cell .cell-icons .help-badge{position:static;top:auto;left:auto;width:20px;height:20px;pointer-events:auto;cursor:pointer}
.cell:has(.cell-icons) span.label{padding-bottom:20px}
.bb-bigtoggle.bb-three span{font-size:12px}

/* play: actions are pills grouped above/below the card (no ⋯ menu); card auto-fits the screen; thinner orange line */
.play-menu-sheet.pill-group,.play-menu-sheet.pill-group.open{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin:8px 0}
.play-menu-sheet.pill-group button{padding:6px 14px;min-height:32px;border-radius:var(--radius-pill);border:1.5px solid var(--line);background:var(--card);color:var(--ink);font:600 13px/1.2 var(--font-body);text-align:center}
.play-menu-sheet.pill-group button[hidden]{display:none}
.play-menu-sheet.pill-group #clearBtn,.play-menu-sheet.pill-group #retireBtn{color:var(--red);border-color:var(--red)}
.play-menu-sheet.pill-group #newCardBtn,.play-menu-sheet.pill-group #shuffleBtn{color:var(--ink-deep)}
#menuBtn,#pillMenu{display:none}
#view-play .board{border-width:1.5px;width:min(100%,calc(100dvh - 330px));min-width:260px}

/* Play a game: less round sections; the Started / date line is a border-only pill; + adds the game to Saved */
.pg-sec,.pg-card.deck-card,.pg-create{border-radius:8px}
.pg-card .pg-when{margin-top:6px}
.pg-card .pg-when-pill{display:inline-block;border:1.5px solid var(--line);background:none;border-radius:var(--radius-pill);padding:3px 10px;font:600 12px/1.2 var(--font-body);color:var(--ink)}
.pg-card{padding-bottom:16px}
.pg-add{position:absolute;top:10px;right:10px;width:32px;height:32px;padding:0;border-radius:50%;border:2px solid var(--green);background:var(--green);color:var(--white);font:800 20px/1 var(--font-body);display:inline-flex;align-items:center;justify-content:center}
.pg-add.on{background:var(--white);color:var(--green)}

/* + and − sit at opposite ends of the card, well apart */
.deck-actions{justify-content:space-between;width:100%;gap:0}
.pg-card .pg-actions{justify-content:flex-start}

/* Deck lists are a grid (Option B): cards size to the grid, no sideways scroll. */
/* Start from active games: one line, B-I-N-G-O blocks run past the right edge so it is obvious there is more; fade hints at it */
#pgActive{position:relative;overflow:hidden}
#pgActive .bingo-row{display:flex;flex-wrap:nowrap;gap:8px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch;padding:2px 36px 6px 0;scrollbar-width:none}
#pgActive .bingo-row::-webkit-scrollbar{display:none}
#pgActive .bingo-col{flex:0 0 31%;scroll-snap-align:start}
#pgActive::after{content:"\203A";position:absolute;right:0;top:0;bottom:0;width:34px;display:flex;align-items:center;justify-content:flex-end;padding-right:8px;font:800 24px/1 var(--font-body);color:var(--ink-deep);background:linear-gradient(to right,rgba(255,255,255,0),var(--card) 70%);pointer-events:none}

/* Playful Rounded: B-I-N-G-O blocks are 2-piece capsules (letter circle + label + small icon) in one scrolling row */
#pgActive .bingo-row{gap:12px;padding:2px 40px 8px 2px}
#pgActive .bingo-col{flex:0 0 auto}
#pgActive .bingo-block{flex-direction:row;justify-content:flex-start;align-items:center;gap:12px;height:60px;min-height:60px;padding:0 18px 0 6px;border:1.5px solid var(--line);border-radius:9999px;background:var(--card);color:var(--ink);box-shadow:0 2px 8px rgba(0,0,0,.08);text-align:left;white-space:nowrap}
#pgActive .bingo-block .bingo-letter{flex:none;width:46px;height:46px;border-radius:50%;background:var(--azure);color:var(--white);display:inline-flex;align-items:center;justify-content:center;font:800 24px/1 var(--font-display);margin:0}
#pgActive .bingo-block[data-kind="money"] .bingo-letter{background:var(--green)}
#pgActive .bingo-block .bingo-name{font:700 15px/1.2 var(--font-body);color:var(--ink)}
#pgActive .bingo-block .bingo-ico{font-size:16px;line-height:1}
#pgActive .bingo-block.on{background:var(--card);color:var(--ink);border-color:var(--ink-deep);box-shadow:0 0 0 2px var(--ink-deep),0 2px 8px rgba(0,0,0,.08)}
#pgActive .bingo-block.on .bingo-letter{color:var(--white)}

/* launch without swipe-to-add: hidden, not deleted (owner 2026-11-14) */
#swipeSection{display:none!important}

/* Create flow header: words joined by arrows (no numbers); the last step is a "Click if done" pill */
.create-steps{align-items:center;gap:2px;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
.create-steps::-webkit-scrollbar{display:none}
.create .create-step-tab,.create-step-tab{flex:0 0 auto;border:none;background:none;border-radius:var(--radius-pill);padding:6px 8px;min-height:32px;font:700 14px/1.2 var(--font-body);color:var(--muted);white-space:nowrap}
.create .create-step-tab.active,.create-step-tab.active{background:none;color:var(--ink-deep);border:none;text-decoration:underline;text-decoration-color:var(--primary);text-decoration-thickness:3px;text-underline-offset:6px}
.wf-arrow{flex:none;color:var(--muted);font:800 20px/1 var(--font-body)}
.create .wf-done,.wf-done{flex:0 0 auto;border:1.5px solid var(--green);background:var(--green);color:var(--white);border-radius:var(--radius-pill);min-height:32px;padding:6px 14px;font:700 13px/1.2 var(--font-body);white-space:nowrap;margin-left:4px}
/* "Create my card" renders on Review (step 4) — it is the only create CTA
   there. (Was display:none in the base: the button never rendered and the
   only create path was the "Review & create" shortcut at the top.) */
.create-step[data-step="4"] #createBtn{width:100%;margin-top:14px}
/* small Create-step preview cells: compact icons, label clamped above them */
#layoutPreview .cell .cell-icons{bottom:2px;gap:2px}
#layoutPreview .cell .cell-ico{width:16px;height:16px;border-width:1px;font-size:12px;box-shadow:none}
#layoutPreview .cell .cell-ico svg{width:10px;height:10px}
#layoutPreview .cell span.label{padding-bottom:16px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;word-break:break-word;hyphens:auto;font-size:12px}

/* header fits 390px */
.create .create-step-tab,.create-step-tab{padding:6px 4px;font-size:13px}
.wf-arrow{font-size:16px}
.create .wf-done,.wf-done{padding:6px 10px;font-size:12px;margin-left:2px}
.create-steps{gap:0}

/* small Create preview cells: compact icons */
#layoutPreview .cell .cell-icons{bottom:1px;gap:1px}
#layoutPreview .cell .cell-ico{width:14px;height:14px;border-width:1px;box-shadow:none;font-size:12px}
#layoutPreview .cell .cell-ico svg{width:9px;height:9px}
#layoutPreview .cell:has(.cell-icons) span.label{padding-bottom:12px}

/* kept + ignored card chips: text 25% smaller (owner 2026-11-14) */
.tray-chip .tc-t{font-size:var(--chip-font)}
.tray-chip.ignored{border:none}
.tray-chip.ignored .tc-pic{outline:2px solid var(--coral);outline-offset:1px}

/* + and - 20% closer; no stretched white space under them; games-played line */
.deck-list{align-items:flex-start}
.deck-actions{justify-content:center;gap:54px}
.deck-card .games-played{margin:10px 0 0;font:600 12px/1.2 var(--font-body);color:var(--muted);text-align:center}
.deck-card .games-played{white-space:nowrap}

/* Kept / Ignored cards: one scrolling line (no wrapping), no dotted borders, slightly darker green + red */
.tray,.ignored-tray{border:none}
.tray{background:rgba(var(--green-deep-rgb),.14)}
.ignored-tray{background:rgba(var(--red-deep-rgb),.12)}
.tray .tray-chips,.ignored-tray .tray-chips{display:flex;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;gap:10px;padding-bottom:6px;-webkit-overflow-scrolling:touch;scrollbar-width:none}
.tray .tray-chips::-webkit-scrollbar{display:none}
.tray-chip{flex:0 0 auto}
.tray h3{color:var(--green-deep)}
.ignored-tray h3{color:var(--red-deep)}
.tray-chip.ignored .tc-pic{outline-color:var(--red-deep)}
.tray-chip button{border-color:var(--red-deep);color:var(--red-deep)}

/* Filter pills: smaller pill, smaller text */
.group-chip,.chip,.create .group-chip{min-height:26px;padding:3px 10px;font-size:12px;font-weight:600}
/* Example-blocks popup (auto height, X top right, Go back pill at the bottom) */
.pv-modal{position:fixed;inset:0;z-index:80;display:flex;align-items:center;justify-content:center;padding:16px;overflow-y:auto;background:rgba(18,38,63,.55)}
.pv-modal[hidden]{display:none}
.pv-card{position:relative;width:100%;max-width:480px;max-height:none;height:auto;background:var(--card);border:2px solid var(--primary);border-radius:var(--radius-md);padding:20px 16px 16px;box-shadow:var(--shadow-lift);margin:auto}
.pv-card h3{margin:0 40px 2px 0;font-size:20px}
.pv-sub{margin:0 0 12px;font-size:13px;color:var(--muted)}
.pv-x{position:absolute;top:10px;right:10px;width:32px;height:32px;padding:0;border-radius:50%;border:1.5px solid var(--line);background:var(--card);color:var(--ink);font:700 20px/1 var(--font-body);display:inline-flex;align-items:center;justify-content:center}
.pv-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
@media (min-width:400px){.pv-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
.pv-block{display:flex;align-items:center;justify-content:center;text-align:center;min-height:72px;padding:6px;border:1.5px solid var(--line);border-radius:12px;background:var(--card);font:600 13px/1.2 var(--font-body);color:var(--ink);overflow-wrap:anywhere;hyphens:auto}
.pv-btns{display:flex;justify-content:center;gap:8px;margin-top:14px}
.pv-back,.pv-go{min-height:32px;padding:6px 18px;border-radius:var(--radius-pill);font:700 13px/1.2 var(--font-body);border:1.5px solid var(--ink-deep)}
.pv-back{background:var(--card);color:var(--ink-deep)}
.pv-go{background:var(--ink-deep);color:var(--white)}

/* popup: never clip the top on short screens; X matches the - button, ~25% smaller */
.pv-modal{align-items:flex-start;padding:16px 16px calc(16px + env(safe-area-inset-bottom))}
.pv-card{margin:auto}
.pv-x{width:22px;height:22px;top:12px;right:12px;border-radius:50%;background:var(--coral);border:2px solid var(--coral);color:var(--white);font:800 16px/1 var(--font-body);padding:0}
.pv-card h3{margin-right:32px}

/* B-I-N-G-O capsules: no icons, ~25% narrower (same fonts) */
#pgActive .bingo-block{gap:8px;height:52px;min-height:52px;padding:0 10px 0 5px}
#pgActive .bingo-block .bingo-letter{width:40px;height:40px;font-size:22px}
#pgActive .bingo-block{gap:7px;padding:0 6px 0 5px}

/* edit-block pop-up: the big block preview at the top is removed (owner 2026-11-14: the idea did not work); markup kept, hidden */
.bb-sheet .builder-display:not(.has-minis){display:none}

/* Block layout picker (replaces the Block type toggle + quick pills): thinner border, 25% larger, 25% darker blue inside */
.bb-examples{gap:12px}
.bb-sheet .bb-ex,.bb-ex{width:88px;padding:0;border:0;background:none;color:var(--ink);font:700 12px/1.25 var(--font-body);cursor:pointer;text-align:center}
.bb-ex .blk{border:1px solid var(--ink);border-radius:9px;padding:4px;gap:3px;margin-bottom:4px}
.bb-ex .blk i{background:var(--blk-blue);border-radius:3px}
.bb-ex.on .blk{outline:2px solid var(--primary);outline-offset:2px}

/* Kept / Ignored: label on the left in its own darker block (50% darker), 25% shorter, no count; Ignored sits under the card list */
.tray,.ignored-tray{display:flex;align-items:stretch;padding:0;overflow:hidden;border-radius:var(--radius-md)}
.tray-label{flex:0 0 auto;display:flex;align-items:center;justify-content:center;padding:0 10px;min-width:56px;font:700 12px/1 var(--font-body);color:var(--white);background:var(--green-dark50)}
.ignored-tray .tray-label{background:var(--red-dark50)}
.tray .tray-chips,.ignored-tray .tray-chips{flex:1 1 auto;min-width:0;align-items:center;padding:5px 8px 3px;gap:8px}
.tray-chip{width:52px;padding:2px 1px 1px;gap:2px}
.tray-chip .tc-pic{width:33px;height:33px}
.tray-chip .tc-pic .thumb-e{font-size:17px}
.ignored-tray{margin-top:14px}

/* Game-card filter pills: half the size, squarer edges; Add / Hide pills side by side, centred */
.group-chip,.chip,.create .group-chip,.cat-pill{min-height:18px;padding:1px 7px;font-size:12px;line-height:1.2;border-radius:6px}
.deck-card .deck-actions{justify-content:center;gap:8px;width:100%;flex-wrap:nowrap}
.deck-card .deck-actions .circ-btn{flex:0 0 auto;width:auto;height:auto;min-height:28px;padding:4px 12px;border-radius:8px;font-size:13px;font-weight:700;line-height:1.2}

/* Kept/Ignored: label colours match the Add (green) / Hide (coral) pills, all lower case, chips top-aligned so the height follows the text; Add/Hide pills 50% smaller */
.tray-label{background:var(--green);text-transform:lowercase;text-align:center;line-height:1.2}
.ignored-tray .tray-label{background:var(--coral)}
.tray,.ignored-tray{align-items:stretch;height:auto}
.tray .tray-chips,.ignored-tray .tray-chips{align-items:flex-start}
.tray-chip{text-transform:lowercase}
.tray-chip .tc-t{overflow-wrap:anywhere}
.deck-card .deck-actions .circ-btn{min-height:16px;padding:2px 7px;border-radius:5px;font-size:var(--pill-font);line-height:1.2}

/* Kept/Ignored remove X: 50% smaller (20px -> 10px), in proportion to the thumbnail */
.tray-chip button{width:10px;height:10px;top:-2px;right:8px;border-width:1px;font-size:8px;line-height:1;display:inline-flex;align-items:center;justify-content:center;padding:0}

/* One title style everywhere (owner 2026-11-14 reference "then gets to work."): Fraunces regular, dark ink, large, tight leading */
:root{--title-size:34px}
h1,h2,.pg-h,.pv-card h3,.bb-sheet h3,.modal h3,.panel>h3,.view>h3,.create h3{font-family:var(--font-display);font-weight:400;font-size:var(--title-size);line-height:1.1;letter-spacing:-.01em;color:var(--ink-deep)}
.pg-h{font-size:var(--title-size);margin:0 0 10px}
.home-headline{font-weight:400}

/* Pills: blue border (was black); pill text in the title colour */
.pill,.group-chip,.chip,.pg-word,.pg-signin,.badge,.logo-row button,.cat-pill,.create .layout-preset:not(.active),.create .adm-preset:not(.active),.create #createBackBtn,.play-menu-sheet.pill-group button,.tray-chip,.pg-when-pill{border-color:var(--azure)}
.pill:not(.on):not(.active):not([aria-selected="true"]):not([aria-pressed="true"]),.group-chip:not(.on):not(.active):not([aria-selected="true"]),.chip:not(.on):not(.active):not([aria-selected="true"]),.pg-word,.pg-signin,.cat-pill,.create .layout-preset:not(.active),.create .adm-preset:not(.active),.create #createBackBtn,.play-menu-sheet.pill-group button:not(#clearBtn):not(#retireBtn){color:var(--ink-deep)}

/* Standard: page titles (h1/h2) 34px; titles inside sections are 50% of that (17px) */
:root{--section-title-size:calc(var(--title-size) / 2)}
.pg-h,.pv-card h3,.bb-sheet h3,.modal h3,.panel>h3,.view>h3,.create h3,.pg-sec h3,.pg-sec>h2{font-size:var(--section-title-size);line-height:1.2}
.pg-h{margin:0 0 8px}
/* Kept / Ignored labels: narrow so the words wrap onto two lines */
.tray-label{min-width:0;width:46px;padding:0 6px;font-size:12px;line-height:1.15;word-break:normal}

/* Title standard, catch-all: every h2 in a view is a page title; every h3 / fieldset legend inside a view is a section title */
.view h2,.view>section>h2{font-family:var(--font-display);font-weight:400;font-size:var(--title-size);line-height:1.1;letter-spacing:-.01em;color:var(--ink-deep)}
.view h3,#view-dashboard h3,.view legend,.create legend,.create fieldset>legend{font-family:var(--font-display);font-weight:400;font-size:var(--section-title-size);line-height:1.2;letter-spacing:-.01em;color:var(--ink-deep)}

/* ===== Deck card spec, Option B (photo-bingo-deck-card-spec.pdf, 14 Nov 2026) ===== */
.deck-card{padding:0;background:var(--white);border:1.5px solid var(--line);border-radius:var(--radius-lg);overflow:hidden;box-shadow:none}
.deck-card.is-saved{border-color:var(--green)}
.deck-card:hover{border-color:var(--line)}
.deck-card.is-saved:hover{border-color:var(--green)}
.deck-card .deck-cover{display:block;width:100%;height:110px;margin:0;border-radius:24px 24px 0 0}
.deck-card .deck-cover img{width:100%;height:110px;object-fit:cover;display:block}
.deck-card .dc-body{padding:12px 14px}
.deck-card .dc-body .title{display:block;margin:0;font:800 16px/1.25 var(--font-display);color:var(--ink)}
.deck-card .dc-body .tagline{margin:8px 0 0;font:400 13px/1.3 var(--font-body);color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.deck-card .pill-row{margin:8px 0 0;display:flex}
.deck-card .cat-pill,.deck-card .sponsored-pill{display:inline-flex;align-items:center;min-height:32px;padding:6px 14px;border-radius:var(--radius-pill);border:1.5px solid var(--ink);background:var(--white);color:var(--ink);font:600 13px/1.2 var(--font-body)}
.deck-card .deck-actions{display:flex;gap:10px;margin:0 14px;width:auto;justify-content:stretch;flex-wrap:nowrap}
.deck-card .deck-actions .sq-btn{flex:1;min-width:0;height:48px;min-height:48px;padding:0;border-radius:10px;font:700 15px/1 var(--font-body);display:inline-flex;align-items:center;justify-content:center}
.deck-card .deck-actions .sq-btn.add{background:var(--green);color:var(--white);border:1.5px solid var(--green)}
.deck-card .deck-actions .sq-btn.add.is-saved{background:var(--azure);border-color:var(--azure)}
.deck-card .deck-actions .sq-btn.hide{background:var(--white);color:var(--coral);border:1.5px solid var(--coral)}
.deck-card .games-played.stat{margin:10px 0 12px;text-align:center;font:700 12px/1.2 var(--font-body);letter-spacing:.06em;text-transform:uppercase;color:var(--muted);font-variant-numeric:tabular-nums}
.deck-card.is-hidden .dim{opacity:.4}
.deck-card.is-hidden .deck-actions{justify-content:center}
.deck-card .dc-undo{height:32px;min-height:32px;padding:0 18px;border-radius:var(--radius-pill);border:1.5px solid var(--ink);background:var(--white);color:var(--ink);font:600 13px/1 var(--font-body)}
.tray-label{width:58px}

/* Back / forward at the top of every page (left, mirroring the menu button on the right) */
.global-nav{position:fixed;top:calc(10px + env(safe-area-inset-top));left:calc(12px + env(safe-area-inset-left));z-index:60;display:flex;gap:8px}
.nav-arrow{width:44px;height:44px;border-radius:50%;border:1.5px solid var(--azure);background:var(--card);color:var(--ink-deep);display:flex;align-items:center;justify-content:center;padding:0;box-shadow:var(--shadow-sm)}
.nav-arrow:disabled{opacity:.35}
.view{padding-top:52px}

/* Kept / Ignored on a phone: sections and tiles 50% bigger */
@media (max-width:600px){
  .tray-label{width:87px;font-size:18px;padding:0 9px}
  .tray .tray-chips,.ignored-tray .tray-chips{padding:8px 12px 5px;gap:12px}
  .tray-chip{width:78px}
  .tray-chip .tc-pic{width:50px;height:50px}
  .tray-chip .tc-pic .thumb-e{font-size:26px}
  .tray-chip .tc-t{font-size:12.4px}
  .tray-chip button{width:15px;height:15px;font-size:12px;right:12px}
}

/* ===== Bibi — the approved render only (bibi.js data URIs) ===== */
/* Bibi <img>: transparent background kept, soft drop shadow, never a
   CSS/SVG redraw. A small ground ellipse sits under her feet. */
.bibi-img{display:block;filter:drop-shadow(0 8px 16px rgba(18,38,63,.18))}
.bibi-ground{width:64px;height:12px;margin:6px auto 0;border-radius:50%;background:var(--line)}
/* Picker filters (§5): Bibi beside five tappable B-I-N-G-O letter chips.
   Active chip is green fill; the rest are white with an ink border. */
.bibi-filters{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.bibi-filters .bibi-img{width:72px;height:auto;flex:none}
.bingo-filter-chip{min-width:44px;min-height:44px;border-radius:50%;border:1.5px solid var(--ink);background:var(--card);color:var(--ink);font:800 18px/1 var(--font-display);display:inline-flex;align-items:center;justify-content:center;cursor:pointer;padding:0}
.bingo-filter-chip.on,.bingo-filter-chip.active{background:var(--green);border-color:var(--green);color:var(--white)}
#bibiCallout{font-size:13px;font-weight:700;color:var(--muted);flex:1 1 100%}
/* Board-size options (Create Step 1, §7): visual mini-grid choices with a
   tiny Bibi in every cell and the size as a secondary label underneath. */
.create .boardsize-opt{display:flex;flex-direction:column;align-items:center;gap:6px;padding:12px;border:1.5px solid var(--line);border-radius:var(--radius-md);background:var(--card);color:var(--ink);cursor:pointer}
.boardsize-opt.active{border-color:var(--green);box-shadow:0 0 0 2px rgba(var(--green-rgb),.3)}
.boardsize-grid{display:grid;gap:3px}
.boardsize-grid img{width:20px;height:20px;object-fit:contain}
.boardsize-label{font-size:13px;font-weight:700;color:var(--muted)}

/* ===== Card character poses + Play/Groups/Create vision build (2026-11-15) =====
   The avatar is ALWAYS the generated soft-3D render (bibi.js data URIs);
   these rules only size and place the <img data-pose> elements. */
.pose-img{display:block;height:auto;filter:drop-shadow(0 6px 12px rgba(18,38,63,.16))}
.pose-xs{width:30px}
.pose-sm{width:46px}
.pose-md{width:76px}
.pose-lg{width:112px}
.pose-xl{width:150px;margin:0 auto}
.pose-winpanel{width:118px;margin:2px auto 6px}
.bibi-filters .bibi-img{width:86px}
.cell.free{flex-direction:column;gap:2px}
.face-glyph{width:56%;height:auto;border-radius:6px}
.boardsize-cell{display:block;width:20px;height:20px;border-radius:5px;overflow:hidden}
.boardsize-cell.bs-plain{border:1px solid rgba(18,38,63,.08)}
.capture-pose{width:74px;float:right;margin:0 0 6px 10px}
.bb-helpnote{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:13px;margin:6px 0 0}

/* Group race strip (Play) */
.race-strip{background:var(--card);border:1.5px solid var(--line);border-radius:var(--radius-md);box-shadow:var(--shadow-sm);padding:10px 14px;margin:0 0 12px}
.race-head{font:700 12px/1.2 var(--font-body);letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin-bottom:8px}
.race-row{display:grid;grid-template-columns:64px 1fr 52px;align-items:center;gap:10px;padding:3px 0}
.race-name{font-weight:700;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.race-bar{display:block;height:10px;border-radius:999px;background:var(--tint-slate);overflow:hidden}
.race-bar i{display:block;height:100%;border-radius:999px;background:var(--sky)}
.race-row.you .race-bar i{background:var(--green)}
.race-n{font-size:12px;font-weight:700;color:var(--muted);text-align:right}

/* One-away callout + just-marked landing preview (Play) */
.one-away{display:flex;align-items:center;gap:12px;background:var(--sunny-bg);border:1.5px solid var(--sunny);border-radius:var(--radius-md);padding:8px 14px 8px 8px;margin:12px 0 0;box-shadow:var(--shadow-sm)}
.one-away p{margin:0;font:700 17px/1.25 var(--font-display);color:var(--ink-deep)}
.just-marked{position:relative;display:flex;gap:12px;align-items:center;background:var(--card);border:1.5px solid var(--green);border-radius:var(--radius-md);padding:10px 14px;margin:12px 0 0;box-shadow:var(--shadow-sm)}
.jm-body{flex:1;min-width:0}
.jm-title{margin:0 0 6px;font-weight:800;font-size:15px}
.jm-grid{display:grid;gap:2px;width:104px}
.jm-cell{display:block;aspect-ratio:1;border-radius:2px;background:var(--tint-slate)}
.jm-cell.on{background:var(--green)}
.jm-cell.hero{background:var(--sunny)}
.jm-cell.new{outline:2px solid var(--coral);outline-offset:0}
.jm-count{margin:6px 0 0;font-size:13px;font-weight:700;color:var(--muted)}
.jm-close{position:absolute;top:6px;right:8px;border:none;background:none;font-size:20px;line-height:1;color:var(--muted);cursor:pointer;padding:4px}

/* Overseer review states (Play) */
.rev-dot{position:absolute;top:4px;left:4px;z-index:4;width:13px;height:13px;border-radius:50%;border:2px solid var(--white);box-shadow:0 1px 3px rgba(0,0,0,.3)}
.rev-dot.rev-waiting{background:var(--warning)}
.rev-dot.rev-approved{background:var(--green)}
.rev-dot.rev-better{background:var(--orange)}
.cell.needs-better{outline:2.5px dashed var(--orange);outline-offset:-2.5px}
.review-banner{display:flex;align-items:center;gap:9px;border-radius:var(--radius-sm);padding:9px 12px;margin:0 0 12px;font-size:14px;font-weight:600}
.review-banner.rev-waiting{background:var(--amber-bg);color:var(--amber-ink)}
.review-banner.rev-approved{background:var(--tint-green);color:var(--green-dark)}
.review-banner.rev-better{background:var(--orange-bg);color:var(--orange-ink)}
.pot-line{font-weight:800;font-size:15px;color:var(--ink-deep);margin:8px 0 2px}

/* Create overview: callout, two doors, step map */
.ov-callout{display:flex;align-items:center;gap:6px;margin:4px 0 14px}
.ov-bubble{flex:1;background:var(--card);border:1.5px solid var(--line);border-radius:var(--radius-lg);box-shadow:var(--shadow-sm);padding:14px 16px;margin:0;font:700 19px/1.3 var(--font-display);color:var(--ink-deep)}
.door-card{display:block;width:100%;text-align:left;background:var(--card);border:1.5px solid var(--line);border-radius:var(--radius-lg);box-shadow:var(--shadow-sm);padding:16px;margin:0 0 12px;cursor:pointer;color:var(--ink)}
button.door-card:active{transform:scale(.99)}
.door-title{display:block;font:800 20px/1.2 var(--font-display);color:var(--ink-deep);margin-bottom:4px}
.door-sub{display:block;font-size:14px;color:var(--muted)}
.door-tpl-row{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.tpl-btn{min-height:44px;padding:9px 16px;border-radius:var(--radius-pill);border:1.5px solid var(--green);background:var(--tint-pale-green);color:var(--green-dark);font-weight:800;font-size:14px;cursor:pointer}
.step-map{display:flex;gap:12px;align-items:flex-start;background:var(--card);border:1.5px solid var(--line);border-radius:var(--radius-lg);box-shadow:var(--shadow-sm);padding:14px 16px;margin-top:2px}
.step-map ol{margin:0;padding:0;list-style:none;flex:1}
.step-map li{display:flex;justify-content:space-between;gap:10px;padding:5px 0;border-bottom:1px solid var(--line)}
.step-map li:last-child{border-bottom:none}
.step-map li b{font-size:14px}
.step-map li span{font-size:13px;color:var(--muted);text-align:right}

/* Rules as pictures (Create step 2) */
.rule-pic{display:inline-grid;gap:2px;flex:none;margin-top:2px}
.rule-pic i{display:block;width:9px;height:9px;border-radius:2px;background:var(--tint-grey)}
.rule-pic i.on{background:var(--green)}
.rp-line{grid-template-columns:repeat(5,9px)}
.rp-x,.rp-all{grid-template-columns:repeat(3,9px)}
.rp-points{grid-template-columns:repeat(2,20px)}
.rp-points i{width:20px;height:20px;background:var(--tint-blue);display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:1px}
.rp-points i b{display:block;width:6px;height:6px;border-radius:50%;background:var(--azure)}

/* My Games head + Groups */
.mg-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 6px}
.groups-hero{display:flex;align-items:center;gap:12px;margin:6px 0 14px}
.groups-hero p{margin:0;font-size:14px;color:var(--muted)}
.group-row{cursor:pointer}
.member-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 0;border-bottom:1px solid var(--line)}
.member-row:last-child{border-bottom:none}
.member-name{font-weight:700;font-size:15px}
.role-chip{font-size:12px;font-weight:800;padding:3px 10px;border-radius:var(--radius-pill);background:var(--tint-slate);color:var(--muted)}
.role-chip.role-admin{background:var(--ink-deep);color:var(--white)}
.role-chip.role-overseer{background:var(--sunny);color:var(--ink-deep)}
.role-select{width:auto;min-width:118px;padding:7px 10px}
.join-card{background:var(--card);border:1.5px solid var(--line);border-radius:var(--radius-lg);box-shadow:var(--shadow-soft);padding:22px 18px;text-align:center}
.join-card label{text-align:left}
.join-line{font-size:16px;font-weight:700;color:var(--ink-deep)}
.join-game{font-size:15px;color:var(--muted)}
.ap-door{cursor:default}
#apQr{display:block;margin:10px auto;background:var(--white);padding:8px;border:1.5px solid var(--line);border-radius:12px;max-width:100%;height:auto}
.ap-link{font-size:12px;color:var(--muted);word-break:break-all;text-align:center;margin:6px 0 0}
