/* The Games Room card table: poker-table felt behind the whole app, and the home/hub "table" of court cards. */
:root { --felt-dim: .35;
  --felt-noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --card-gold: linear-gradient(135deg, #f7e3a8, #d4b07a 40%, #a8822f 60%, #f2d58e); }
body {
  background: linear-gradient(rgba(0,0,0,var(--felt-dim)), rgba(0,0,0,var(--felt-dim))) fixed, var(--felt-noise),
              radial-gradient(ellipse 90% 80% at 50% 42%, #1d8350 0%, #0f5a36 45%, #05291a 100%) fixed;
  background-color: #0b3a24;
}
/* In a game the felt sits a little darker so questions stay crisp. */
body.ingame { --felt-dim: .55; }

/* ---------- table decorations (menus only) ---------- */
.felt-deco { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; display: none; }
body.menu .felt-deco { display: block; }
.felt-deco .tprint { position: absolute; inset: 0; width: 100%; height: 100%; }
.felt-deco .tname { position: absolute; left: 23.75vw; width: 52.5vw; top: 81.1vh; height: auto; }
.felt-deco .tcorner { position: absolute; width: 7.5vw; max-width: 120px; height: auto; }
.felt-deco .tcorner.tl { top: 10px; left: 10px; }
.felt-deco .tcorner.tr { top: 10px; right: 10px; transform: scaleX(-1); }
.felt-deco .tcorner.bl { bottom: 10px; left: 10px; transform: scaleY(-1); }
.felt-deco .tcorner.br { bottom: 10px; right: 10px; transform: scale(-1, -1); }
.felt-deco .pchip { position: absolute; width: 6.9vw; height: 6.9vw; filter: drop-shadow(0 4px 3px rgba(0,0,0,.4)); }
body.menu .topbar { position: relative; z-index: 3; }
body.menu main { position: relative; z-index: 2; }
body.menu .topbar .brand { visibility: hidden; }
body.hubpage .felt-deco .pchip.edge { display: none; }
body.hubpage .hdr-close { display: grid; width: 40px; height: 40px; }

/* ---------- court cards ---------- */
.pcard { position: relative; display: block; flex: none; width: var(--cw); aspect-ratio: 5 / 7; perspective: 1400px; text-decoration: none; color: inherit;
  font-size: calc(var(--cw) / 18); outline: none; transition: transform .3s; -webkit-tap-highlight-color: transparent; }
.pcard .pc-inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.3,1.4,.5,1); }
.pcard.down .pc-inner { transform: rotateY(180deg); }
.pcard { --edge: calc(var(--cw) * .02); }
.pcard .side { position: absolute; inset: 0; border-radius: calc(var(--cw) * .065); backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background: var(--card-gold); box-shadow: 0 10px 16px rgba(0,0,0,.45); }
.pcard .cback { transform: rotateY(180deg); padding: var(--edge); }
.pcard .lattice { display: grid; place-items: center; width: 100%; height: 100%; border-radius: calc(var(--cw) * .045);
  background: repeating-linear-gradient(45deg, rgba(232,201,138,.16) 0 2px, transparent 2px 14px), repeating-linear-gradient(-45deg, rgba(232,201,138,.16) 0 2px, transparent 2px 14px), radial-gradient(circle, #a3111f, #6a0a15); }
.pcard .lattice .dice { width: 50%; height: auto; filter: drop-shadow(0 4px 6px rgba(0,0,0,.35)); }
.pcard .front::after { content: ""; position: absolute; inset: var(--edge); border-radius: calc(var(--cw) * .045); background: radial-gradient(ellipse at 50% 40%, #1a1718, #0b0a0b); }
.pcard .front > * { z-index: 2; }
.pcard .ix { position: absolute; display: flex; flex-direction: column; align-items: center; gap: .3em; color: #e2c07f; font: 800 1em/1 "Montserrat", "Open Sans", sans-serif; }
.pcard .ix b { font-size: 2.15em; }
.pcard .ix svg { width: 1.45em; height: 1.45em; display: block; }
.pcard .ix.tl { top: 4.2%; left: 5.5%; }
.pcard .ix.br { bottom: 4.2%; right: 5.5%; transform: rotate(180deg); }
.pcard .top, .pcard .bot { position: absolute; left: 24%; right: 24%; height: 22%; display: flex; align-items: center; justify-content: center; }
.pcard .top { top: 8%; } .pcard .bot { bottom: 8%; transform: rotate(180deg); }
.pcard .half { width: 100%; height: 100%; }
.pcard .mid { position: absolute; left: 2%; right: 2%; top: 50%; transform: translateY(-50%); height: 38%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.pcard .mid img { width: 100%; height: 100%; min-height: 0; flex: 1 1 auto; object-fit: contain; }
.pcard .mid img + .soon-tag { flex: none; margin-top: 6px; }
/* Game cards in a hub: just the logo and the corner indices. */
.pcard.plain .mid { left: 6%; right: 6%; height: 60%; }
.pcard.plain .ttl { font-size: 1.8em; }
.pcard.plain .soon-tag { font-size: .8em; margin-top: 1em; }
.pcard .ttl { color: #e2c07f; font: 700 1.55em/1.05 "Montserrat", "Open Sans", sans-serif; letter-spacing: .04em; text-transform: uppercase; padding: 0 10%; text-shadow: 0 2px 6px #000; }
.pcard .soon-tag { margin-top: .7em; padding: .35em .8em; border-radius: 99px; background: #d4b07a; color: #111; font: 700 .62em/1 "Open Sans", sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.pcard:hover, .pcard:focus-visible, .pcard.sel { transform: translateY(-26px) scale(1.1) !important; z-index: 2; }
/* The chosen card just lifts and grows (Kevin: no outline or glow). */
.pcard:hover .front, .pcard:focus-visible .front, .pcard.sel .front { box-shadow: 0 20px 26px rgba(0,0,0,.5); }

/* ---------- home table ---------- */
body.menu main { max-width: none; padding: 0; }
.table-home { --cw: min(16.9vw, 30vh); display: flex; flex-direction: column; align-items: center; min-height: calc(100vh - 110px); }
.table-home .deal { display: flex; justify-content: center; align-items: center; gap: 3.5vw; margin-top: calc(5vh + 18px); padding: 30px 0 10px; }
.tcap { text-align: center; margin: 4vh 0 0; padding: 0 24px; min-height: 7.5em; }
.tcap .c { display: flex; align-items: center; justify-content: center; gap: 16px; font-weight: 700; font-size: 1.75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.tcap .pbadge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px 4px 10px; border-radius: 99px; background: linear-gradient(180deg, #f2d58e, #c9a25f); color: #1a1207; font-size: .9rem; letter-spacing: .04em; box-shadow: 0 2px 6px rgba(0,0,0,.35); }
.tcap .pbadge svg { height: .95em; width: auto; fill: currentColor; }
.tcap .d { display: none; }
.tcap .hint { font-size: 1.15rem; color: #f7f3ea; margin-top: 8px; }
.tcap .adult { display: inline-block; padding: 1px 8px; border: 1px solid var(--gold); border-radius: 99px; font-size: .7rem; letter-spacing: .08em; }

/* ---------- hub page ---------- */
.table-hub { --cw: min(13.4vw, 24vh); display: flex; flex-direction: column; min-height: calc(100vh - 110px); }
.table-hub .hub-logo { display: block; width: min(23vw, 40vh); margin: -56px auto -6px; }
.table-hub .deal { display: flex; gap: 1.6vw; overflow-x: auto; overflow-y: visible; padding: 56px 4vw 60px; margin-top: -22px; margin-bottom: -30px; scrollbar-width: none; scroll-padding: 0 4vw; }
.table-hub .deal::-webkit-scrollbar { display: none; }
.table-hub .tcap { margin: 1.5vh 0 0; }

/* ---------- phones and small windows ---------- */
@media (max-width: 760px) {
  .felt-deco .pchip, .felt-deco .tname, .felt-deco .tprint { display: none; }
  .table-home { --cw: min(36vw, 26vh); }
  .table-home .deal { margin-top: 0 !important; }
  .table-home .deal { flex-wrap: wrap; gap: 26px 5vw; max-width: 100vw; padding: 24px 4vw 8px; }
  .table-hub { --cw: min(42vw, 34vh); }
  .table-hub .hub-logo { width: 70vw; margin-top: 0; }
  .table-hub .deal { gap: 14px; }
  .pcard:hover, .pcard:focus-visible, .pcard.sel { transform: translateY(-8px) scale(1.03) !important; }
  .tcap { min-height: 0; }
}

/* ---------- Game lobby (Kevin 2026-12-05, option C "printed boxes"): gold outlined boxes on the felt ---------- */
body.globby .felt-deco { display: block; }
body.globby .felt-deco .tname, body.globby .felt-deco .tprint, body.globby .felt-deco .pchip.topleft, body.globby .felt-deco .pchip.botleft, body.globby .felt-deco .pchip.edge { display: none; }
body.globby .topbar { position: relative; z-index: 3; }
/* Kevin 2026-12-06: the lobby chips sit on top of the printed felt lines and boxes, not under them */
body.globby .felt-deco { z-index: 4; }

body.globby main { position: relative; z-index: 2; max-width: none; padding: 0; }
.intro-grid.globby { display: grid; grid-template-columns: minmax(0, 2.5fr) minmax(0, 1fr); grid-template-rows: auto auto 1fr; gap: 2.4vh 2vw; align-items: start;
  margin: max(0px, calc(15vh - 132px)) 3vw 0; min-height: calc(80vh - 10px); padding-bottom: 20px; }
.globby .lbox { border: 1.5px solid rgba(212,176,122,.45); border-radius: 16px; padding: 40px; display: grid; align-content: start; gap: 14px; min-width: 0; }
.globby .lbl { font: 700 1rem/1 "Open Sans", sans-serif; letter-spacing: .24em; text-transform: uppercase; color: rgba(212,176,122,.9); }
.globby .lhead { grid-column: 1; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; align-content: center; gap: 14px 40px; align-items: start; }
.globby .lhead .intro-logo, .globby .lhead .intro-title { grid-row: 1 / 3; align-self: center; width: 20vw; max-width: 380px; margin: 0; border-radius: 0; aspect-ratio: auto; height: auto; object-fit: contain; }
.globby .lhead .lead { grid-column: 2; margin: 0; font-size: 1.1rem; line-height: 1.45; color: rgba(247,243,234,.92); }
.globby .htp { grid-column: 2; display: grid; gap: 12px; }
.globby .rules { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: r; }
.globby .rules li { counter-increment: r; display: flex; gap: 14px; align-items: baseline; font-size: 1.1rem; line-height: 1.4; color: rgba(247,243,234,.85); }
.globby .rules li::before { content: counter(r); flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(212,176,122,.15); border: 1.5px solid rgba(212,176,122,.7); color: var(--gold); font: 800 .9rem "Open Sans", sans-serif; transform: translateY(4px); }
.globby .lsub { grid-column: 1; }
.globby .lside { grid-column: 2; grid-row: 1 / 4; align-self: stretch; }
.globby .subject-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; }
.globby .subj-pick { display: grid; justify-items: center; gap: 10px; width: 116px; padding: 8px 0 0; border: 0; border-radius: 12px; background: none; box-shadow: none; opacity: 1; transform: none; }
.globby .subj-pick .schip-art svg { display: block; width: 70px; height: 70px; filter: drop-shadow(0 6px 5px rgba(0,0,0,.45)); transition: transform .25s ease; }
.globby .schip-name { font: 700 .78rem/1.15 "Open Sans", sans-serif; letter-spacing: .08em; text-transform: uppercase; color: rgba(247,243,234,.7); text-align: center; }
.globby .subj-pick:hover, .globby .subj-pick:focus-visible { box-shadow: none; outline: none; }
.globby .subj-pick:hover .schip-art svg, .globby .subj-pick:focus-visible .schip-art svg { transform: scale(1.08); }
.globby .subj-pick:focus-visible .schip-name { color: #f7f3ea; }
.globby .subj-pick[aria-pressed="true"] { box-shadow: none; transform: none; }
.globby .subj-pick[aria-pressed="true"] .schip-art svg { transform: translateY(-8px) scale(1.16); }
.globby .subj-pick[aria-pressed="true"] .schip-name { color: var(--gold); }
.globby .btn-row { margin-top: 6px; }
.globby .subject-row + .btn-row, .globby .lsub .btn-row { margin-top: 28px; }
.lobby-start { display: inline-flex; align-items: center; gap: 18px; padding: 16px 44px; border-radius: 99px; border: 1.5px solid #e2c07f; background: rgba(0,0,0,.25); color: #f2d58e;
  font: 700 1.15rem "Open Sans", sans-serif; letter-spacing: .34em; text-transform: uppercase; box-shadow: 0 0 28px rgba(226,192,127,.22); transition: transform .15s ease, box-shadow .2s ease, background .2s ease; }
.lobby-start i { font-style: normal; font-size: .7em; color: #e2c07f; }
.lobby-start:hover, .lobby-start:focus-visible { outline: none; background: rgba(226,192,127,.12); box-shadow: 0 0 34px rgba(226,192,127,.45); transform: scale(1.04); }
.globby .lside .scoreboard { margin: 0; font-size: 1.1rem; }
.globby .lside .scoreboard td { padding: 8px 2px; border-bottom: 1px solid rgba(212,176,122,.2); color: rgba(247,243,234,.85); }
.globby .lside .scoreboard td.rank { width: 1.6em; }
.globby .lside .scoreboard td:last-child { color: var(--gold); }
.globby .lplayers { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.globby .pbadge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px 4px 10px; border-radius: 99px; background: linear-gradient(180deg, #f2d58e, #c9a25f); color: #1a1207; font-size: .9rem; letter-spacing: .04em; box-shadow: 0 2px 6px rgba(0,0,0,.35); }
.globby .pbadge svg { height: .95em; width: auto; fill: currentColor; }
.globby .note, .globby .explain { margin: 0; font-size: 1.05rem; color: rgba(247,243,234,.6); line-height: 1.5; }
/* Laptops: shrink the whole lobby so it fits under the header without scrolling. */
/* Kevin 2026-12-06: the same gap under the header in every lobby. Most games keep an (empty) score row above the
   lobby; the felt games (Broadside, Motive, Wordsmith, Inside Job) hide that row, so they add its height back. */
@media (min-width: 901px) and (min-height: 561px) {
  body.globby[data-felt] .intro-grid.globby { margin-top: calc(44px + max(30px, 15vh - 132px)); }
}
@media (min-width: 901px) and (max-height: 860px) { .intro-grid.globby { zoom: .86; } }
@media (min-width: 901px) and (max-height: 800px) { .intro-grid.globby { zoom: .76; } }
@media (min-width: 901px) and (max-height: 740px) { .intro-grid.globby { zoom: .7; } }
@media (max-width: 900px), (max-height: 560px) {
  .intro-grid.globby, .intro-grid.globby.nosubj { grid-template-columns: 1fr; grid-template-rows: none; height: auto; min-height: 0; margin: 16px 4vw 24px; }
  .globby .lhead, .globby .lsub, .globby .lside { grid-column: 1; grid-row: auto; }
  .globby .lhead { grid-template-columns: 1fr; }
  .globby .lhead .intro-logo { grid-row: auto; width: min(320px, 80vw); }
  .globby .lhead .lead, .globby .htp { grid-column: 1; }
  .globby .subj-pick { width: 84px; } .globby .subj-pick .schip-art svg { width: 58px; height: 58px; }
}

/* ONE fixed header on every screen (Kevin 2026-12-05): the home/hub header, 10px wider each side, so the buttons never move. */
.topbar, body.home .topbar, body.ingame .topbar, body.has-ladder .topbar { max-width: none; margin: 0; padding: 22px 30px 0; min-height: 74px; }
@media (max-width: 600px) { .topbar, body.home .topbar, body.ingame .topbar, body.has-ladder .topbar { padding: 12px 16px 0; } }
/* Final Reel draws its own bar: same width, height and spot. */
.fr .fr-bar { width: calc(100vw - 60px); position: relative; left: 50%; transform: translateX(-50%); min-height: 52px; margin-top: 0; }
html .fr .fr-in { padding-top: 22px; }
@media (max-width: 600px) { html .fr .fr-in { padding-top: 12px; } }
.fr .fr-bar .fr-crumb { color: var(--gold); font-weight: 700; }
@media (max-width: 600px) { .fr .fr-bar { width: calc(100vw - 32px); } }
/* Coming-soon game logos carry a soft glow margin, so give them the card's full width. */
.pcard.plain.soon .mid:has(img) { left: -3%; right: -3%; height: 72%; }
.pcard.plain.soon .mid img + .soon-tag { margin-top: 0; }

/* ---------- Final Reel lobby: same printed boxes as the other games, on the felt ---------- */
.fr.fr-onfelt { background: transparent; }
.fr.fr-onfelt .fr-wash { display: none; }
html.fr-open body.globby .topbar { visibility: hidden; }
html .fr.fr-onfelt .fr-in { max-width: none; padding-left: 0; padding-right: 0; padding-bottom: 0; }
html .fr.fr-onfelt .fr-bar { margin-bottom: 0; }
.fr-onfelt .intro-grid.globby { margin-top: calc(44px + max(30px, 15vh - 132px)); }
html .fr .fr-lobby .fr-plist.two { display: grid; grid-template-rows: none; grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: none; }
html .fr .fr-lobby .fr-prow { margin: 0; min-height: 64px; padding: 8px 14px; background: rgba(0,0,0,.28); border-color: rgba(212,176,122,.28); }
.fr-lobby .fr-prow.editing { grid-column: 1 / -1; }
.fr-lobby .fr-prow.add { background: none; border-color: rgba(212,176,122,.35); }
.fr-lobby .fr-picon { width: 48px; height: 48px; }
.fr-lobby .fr-optlbl { margin-top: 8px; }
.fr-lobby .fr-opts { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; align-items: end; gap: 10px 26px; }
.fr-lobby .fr-opt { display: grid; gap: 8px; padding: 0; border: 0; }
.fr-lobby .fr-opt > span { font-size: .95rem; color: rgba(247,243,234,.7); }
.fr-lobby .fr-seg { background: rgba(0,0,0,.3); white-space: nowrap; flex-wrap: nowrap; }
.fr-lobby .fr-seg button { white-space: nowrap; }
.fr-lobby .fr-opts { margin-top: 8px; }
.fr-lobby .btn-row { display: flex; gap: 16px; grid-column: 1 / -1; margin-top: 10px; }
.lobby-start.ghost { border-color: rgba(226,192,127,.5); color: rgba(242,213,142,.8); box-shadow: none; }
@media (max-width: 1300px) { .fr-lobby .fr-opts { grid-template-columns: repeat(2, auto); } }

/* ---------- opening welcome sign (lib/welcome.js), shown on the closed curtains ---------- */
.curtain .show .wsign { width: min(880px, 76vw, 106vh); transform: translateY(110vh); will-change: transform; }
.curtain.showing .wsign { animation: ws-rise 1.3s cubic-bezier(.2,1.15,.35,1) forwards; }
@keyframes ws-rise { to { transform: none; } }
.wsign svg { width: 100%; height: auto; display: block; overflow: visible; }
/* The letter discs rest fully lit; the flicker-on only dims them while it runs (backwards fill covers the stagger delay),
   so a stalled or interrupted animation can never leave them half see-through. */
.wsign .disc { opacity: 1; }
.curtain.showing .wsign .disc { animation: ws-on .32s steps(1, end) backwards; }
@keyframes ws-on { 0% { opacity: .25 } 30% { opacity: 1 } 55% { opacity: .4 } 75%, 100% { opacity: 1 } }
/* Bulbs chase as two groups (2 animations, not 72), with gradient halos instead of a blur filter on every bulb. */
.wsign .bulb.g { fill: #ffe08a; } .wsign .bulb.r { fill: #ff4d5e; }
.wsign .bulbs { opacity: .35; }
.curtain.showing .wsign .bulbs, .home-sign .bulbs { animation: ws-chase .9s steps(1) infinite; }
.curtain.showing .wsign .bulbs.r, .home-sign .bulbs.r { animation-delay: -.45s; }
@keyframes ws-chase { 0% { opacity: 1 } 50% { opacity: .3 } }
/* Neon and GAMES ROOM are lit from the start, so the whole sign comes up together (Kevin); the neon flickers once it lands. */
.curtain.showing .wsign .neon { animation: ws-flick 2.6s 1.4s both; }
@keyframes ws-flick { 0% { opacity: 1 } 4% { opacity: 1 } 6% { opacity: .2 } 10% { opacity: 1 } 12% { opacity: .4 } 16%, 100% { opacity: 1 } }

/* Log out button: top right next to sound, on the home page only. */
.logout-btn { display: none; }
body.home:not(.hubpage) .logout-btn { display: inline-flex; }
.collection-btn { display: none; text-decoration: none; }
body.home:not(.hubpage) .collection-btn { display: inline-flex; }

/* Header icon buttons (Kevin 2026-12-05): icon only at rest, like The Collection's menu; the label folds out
   when the button is focused or hovered, in capitals in the light wordmark font. */
.top-actions .icon-btn:not(.live) { width: auto; min-width: 44px; padding: 0 11px; gap: 0; transition: border-color .15s, color .15s, box-shadow .15s, padding .3s; }
.top-actions .icon-btn .lbl { display: inline-block; max-width: 0; opacity: 0; overflow: hidden; white-space: nowrap; margin-left: 0;
  font-weight: 300; font-size: .82rem; letter-spacing: .2em; text-transform: uppercase;
  transition: max-width .35s cubic-bezier(.3,.9,.3,1), opacity .25s, margin-left .35s; }
.top-actions .icon-btn:hover .lbl, .top-actions .icon-btn:focus-visible .lbl { max-width: 0; opacity: 0; margin-left: 0; } /* Kevin 2026-12-06: no fold-out labels, they moved things around */
.top-actions .icon-btn:not(.live):hover, .top-actions .icon-btn:not(.live):focus-visible { padding: 0 11px; }

/* Curtains (Kevin 2026-12-05): the logo fades back out on the closed curtains, the dark stage clears behind them,
   then the panels open straight onto the new page (no black gap). Panel movement is in curtain.js. */
.curtain .panel { transition: none !important; }
.curtain.clear .stage, .curtain.opening .stage { opacity: 0 !important; transition: none !important; }
.curtain.closed .show { opacity: 0; transform: scale(.96); transition: opacity .5s ease, transform .5s ease; }

/* ---------- Player chips: one per phone in the room, dropped onto the felt (menus only) ---------- */
.felt-deco .pc-row { position: absolute; left: 0; right: 0; bottom: 3vh; display: flex; justify-content: center; gap: .6vw; }
.felt-deco .pkc { position: relative; width: 8.3vw; height: 8.3vw; transform: translateY(var(--lift, 0)) rotate(var(--tilt, 0deg));
  filter: drop-shadow(0 5px 4px rgba(0,0,0,.45)); transition: opacity .4s, transform .4s; }
.felt-deco .pkc > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.felt-deco .pkc .pc-ico { position: absolute; left: 31%; top: 22%; width: 38%; height: 38%; display: block; }
.felt-deco .pkc .pc-ico svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 1px 1px rgba(0,0,0,.4)); }
.felt-deco .pkc .pc-nm { position: absolute; left: 0; right: 0; top: 61%; text-align: center; font: 800 1.15vw/1 "Open Sans", sans-serif;
  letter-spacing: .14em; text-indent: .14em; text-shadow: 0 1px 2px rgba(0,0,0,.45); }
.felt-deco .pkc.drop { animation: pc-drop .7s cubic-bezier(.3,.7,.4,1.25) both; }
.felt-deco .pkc.gone { opacity: 0; transform: translateY(var(--lift, 0)) rotate(var(--tilt, 0deg)) scale(.6); }
@keyframes pc-drop {
  0% { opacity: 0; transform: translateY(-60vh) rotate(calc(var(--tilt, 0deg) - 90deg)) scale(1.5); }
  70% { opacity: 1; transform: translateY(var(--lift, 0)) rotate(var(--tilt, 0deg)) scale(.94); }
  100% { opacity: 1; transform: translateY(var(--lift, 0)) rotate(var(--tilt, 0deg)) scale(1); }
}
body.globby .felt-deco .pc-row { display: none; }
@media (max-width: 700px) { .felt-deco .pc-row { display: none; } }

/* ---------- Home: welcome sign on top, smaller hub cards (Kevin 2026-12-05) ---------- */
.table-home { --cw: min(13.3vw, 23.6vh); }
.table-home .home-sign { width: min(22vw, 39vh); margin: -50px auto 0; }
.table-home .deal { margin-top: 0; padding-top: 34px; }
.home-sign .disc, .home-sign .neon, .home-sign .big { opacity: 1; }
@media (max-width: 760px) {
  .table-home { --cw: min(36vw, 26vh); }
  .table-home .home-sign { width: 70vw; margin-top: 0; }
}
/* Cards 10px further from the logo above them (Kevin 2026-12-05). */
.table-home .deal { padding-top: 54px; }
.table-hub .deal { margin-top: -2px; }
/* Larger screens: cards and caption another 15px lower (Kevin 2026-12-05). */
@media (min-width: 761px) {
  .table-home .deal { padding-top: 69px; }
  .table-hub .deal { margin-top: 13px; }
}
/* Final Reel lobby = the same lobby as every other game (Kevin 2026-12-06): the app's own top bar (room code, full screen,
   sound, close) and the players as capsule chips in the side box; tap a chip to change its name or piece. */
html.fr-open body.globby .topbar { visibility: visible; position: fixed; top: 0; left: 0; right: 0; z-index: 190; }
.fr.fr-onfelt .fr-bar { visibility: hidden; }
.fr-lobby .fr-lwho { display: flex; flex-wrap: wrap; gap: 12px 10px; margin: 2px 0 6px; }
.fr-lobby .fr-lwho .who { cursor: pointer; }
.fr-lobby .fr-lwho .who.on, .fr-lobby .fr-lwho .who:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.fr-lobby .fr-padd { opacity: .8; border-style: dashed; }
.fr-lobby .fr-padd .plus { width: 1.9em; height: 1.9em; border-radius: 50%; display: grid; place-items: center; border: 1.5px dashed rgba(212,176,122,.7); color: var(--gold); font-size: 1.2em; margin-left: -.2em; }
.fr-lobby .lside .fr-plist { grid-template-columns: 1fr; margin: 4px 0; }
.fr-lobby .lsub .fr-opts { margin-top: 6px; }
html.fr-open body.globby .felt-deco { z-index: 185; }
.fr-lobby .lside .fr-prow.editing { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.fr-lobby .lside .fr-prow.editing .ped { display: grid; gap: 8px; flex: 1 1 0; min-width: 0; }
.fr-lobby .lside .fr-prow.editing .fr-name { width: 100%; min-width: 0; }
.fr-lobby .lside .fr-prow.editing .acts { display: flex; gap: 8px; }
/* Kevin 2026-12-06: all eight subject chips on one line in the lobby on a TV or computer */
@media (min-width: 901px) {
  .globby .subject-row { flex-wrap: nowrap; gap: 0; justify-content: space-between; }
  .globby .subj-pick { width: auto; flex: 1 1 0; min-width: 0; padding-left: 2px; padding-right: 2px; }
  .globby .subj-pick .schip-art svg { width: clamp(58px, 4.6vw, 70px); height: clamp(58px, 4.6vw, 70px); }
  .globby .schip-name { font-size: clamp(.66rem, .7vw, .78rem); letter-spacing: .05em; }
}
