/* Built-in party games: Trivia, Category Clash, Word Scramble, Most Likely To, Dots and Boxes, plus shared pieces
   (header, timers, answer buttons, scoreboards, podium, confetti) and small upgrades to the older games. */
.gx { --g-accent: var(--gold, #f2c14e); position: relative; max-width: 820px; margin: 0 auto; padding: 14px 16px 18px; display: grid; gap: 14px; overflow: hidden; }
.gx-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.gx-emoji { width: 40px; height: 40px; flex: none; display: grid; place-items: center; font-size: 22px; border-radius: 12px; background: color-mix(in srgb, var(--g-accent) 18%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--g-accent) 40%, transparent); }
.gx-title { display: grid; min-width: 0; flex: 1; }
.gx-title b { font-size: 16px; }
.gx-title small { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gx-head-right { display: flex; align-items: center; gap: 8px; }
.gx-icon { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: transparent; border: 1px solid var(--line); color: var(--text-2); cursor: pointer; }
.gx-icon:hover { color: var(--text); background: var(--bg-hover, #ffffff10); }
.gx-body { display: grid; gap: 14px; min-width: 0; }
.gx-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.gx-go { padding: 12px 22px; font-size: 15px; }
.gx .form-error { margin: 0; min-height: 0; text-align: center; }
.gx .form-error:empty { display: none; }
.gx-wait { text-align: center; color: var(--muted); margin: 0; }

/* lobby */
.gx-hero { text-align: center; display: grid; gap: 4px; padding: 8px 0 2px; }
.gx-hero-emoji { font-size: 46px; line-height: 1; animation: gx-bob 2.4s ease-in-out infinite; }
.gx-hero h2 { margin: 6px 0 0; font-size: clamp(20px, 3.4vw, 28px); }
.gx-hero p { margin: 0; color: var(--text-2); }
.gx-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.gx-chips span { padding: 6px 10px; border-radius: 99px; background: var(--bg-1, #0002); border: 1px solid var(--line); font-size: 12.5px; color: var(--text-2); }
.gx-players { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.gx-player { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 99px; background: var(--bg-3, var(--bg-1)); font-size: 13px; animation: gx-pop .35s ease-out both; }
.gx-player .av { width: 24px; height: 24px; }
.gx-player em { font-style: normal; font-size: 10.5px; font-weight: 800; text-transform: uppercase; color: var(--g-accent); }
.gx-settings { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.gx-settings label { display: grid; gap: 4px; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .02em; }
.gx-settings .select { min-width: 130px; }

/* timers */
.gx-ring { --p: 1; position: relative; width: 44px; height: 44px; display: grid; place-items: center; }
.gx-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.gx-ring circle { fill: none; stroke-width: 3.2; }
.gx-ring .bg { stroke: var(--line); }
.gx-ring .fg { stroke: var(--g-accent); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--p) * 100); transition: stroke-dashoffset .2s linear, stroke .2s; }
.gx-ring b { font-size: 15px; font-variant-numeric: tabular-nums; }
.gx-ring.urgent .fg { stroke: #f87171; }
.gx-ring.urgent b { color: #f87171; animation: gx-pulse .5s ease-in-out infinite alternate; }
.gx-bar { --p: 1; height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.gx-bar i { display: block; height: 100%; width: calc(var(--p) * 100%); background: var(--g-accent); border-radius: inherit; transition: width .2s linear; }
.gx-bar.urgent i { background: #f87171; }
.gx-next { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }

/* question card + progress */
.gx-progress { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 4px; }
.gx-progress i { height: 4px; border-radius: 99px; background: var(--line); }
.gx-progress i.done { background: color-mix(in srgb, var(--g-accent) 55%, transparent); }
.gx-progress i.now { background: var(--g-accent); }
.gx-card { padding: 20px 18px; border-radius: 14px; text-align: center; background: linear-gradient(160deg, color-mix(in srgb, var(--g-accent) 14%, var(--bg-2)), var(--bg-2)); border: 1px solid color-mix(in srgb, var(--g-accent) 30%, var(--line)); animation: gx-rise .35s ease-out both; }
.gx-card small { color: var(--muted); font-weight: 700; text-transform: uppercase; font-size: 11.5px; letter-spacing: .04em; }
.gx-q { margin: 0; font-size: clamp(18px, 3vw, 25px); line-height: 1.3; }
.gx-final { margin: 0; text-align: center; font-size: clamp(22px, 4vw, 32px); }

/* answer buttons */
.gx-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gx-choice { --c: #3b82f6; position: relative; overflow: hidden; display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 10px 14px; text-align: left; border-radius: 12px; border: 0; color: #fff; font: inherit; font-weight: 650; font-size: 15px; background: var(--c); box-shadow: 0 4px 0 color-mix(in srgb, var(--c) 60%, #000); cursor: pointer; transition: transform .12s, filter .15s, opacity .2s; animation: gx-pop .3s ease-out both; }
.gx-choice.c1 { --c: #ea8a0c; animation-delay: .04s; }
.gx-choice.c2 { --c: #10a37f; animation-delay: .08s; }
.gx-choice.c3 { --c: #db2777; animation-delay: .12s; }
.gx-choice:not(:disabled):hover { filter: brightness(1.1); transform: translateY(-2px); }
.gx-choice:not(:disabled):active { transform: translateY(2px); box-shadow: 0 1px 0 color-mix(in srgb, var(--c) 60%, #000); }
.gx-choice:disabled { cursor: default; }
.gx-choices:has(.picked) .gx-choice:not(.picked) { opacity: .45; }
.gx-choice.picked { outline: 3px solid #fff; outline-offset: 2px; }
.gx-letter { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 8px; background: #0003; font-weight: 800; }
.gx-text { flex: 1; min-width: 0; position: relative; z-index: 1; }
.gx-choice .gx-who, .gx-choice .gx-count { position: relative; z-index: 1; }
.gx-count { font-weight: 800; font-variant-numeric: tabular-nums; }
.gx-fill { position: absolute; inset: 0 auto 0 0; width: var(--pct); background: #ffffff26; animation: gx-grow .9s cubic-bezier(.2, .8, .2, 1) both; pointer-events: none; }
.gx-choices.revealed .gx-choice { animation: none; }
.gx-choice.dim { filter: saturate(.25) brightness(.7); opacity: .7; }
.gx-choice.wrong { filter: saturate(.6); opacity: .8; }
.gx-choice.wrong .gx-letter { background: #7f1d1d; }
.gx-choice.right { --c: #16a34a; outline: 3px solid #86efac; outline-offset: 2px; animation: gx-right .6s ease-out both; }
.gx-choice.right .gx-letter { background: #fff; color: #15803d; }
.gx-who { display: inline-flex; }
.gx-who .gx-av { margin-left: -6px; }
.gx-av { display: inline-flex; border-radius: 50%; }
.gx-av .av { width: 26px; height: 26px; }
.gx-av.xs .av { width: 20px; height: 20px; font-size: 9px; }
.gx-av.lg .av { width: 56px; height: 56px; font-size: 20px; }
.gx-av .av { box-shadow: 0 0 0 2px var(--bg-2); }
.gx-status { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; color: var(--text-2); font-size: 14px; margin: 0; }
.gx-status .gx-who { min-height: 20px; }
.gx-result { text-align: center; padding: 10px 14px; border-radius: 12px; font-size: 15px; animation: gx-pop .35s ease-out both; }
.gx-result.good { background: #16a34a22; color: #86efac; }
.gx-result.bad { background: #ef444418; color: #fca5a5; }
.gx-result b { font-size: 18px; margin-right: 4px; }
.gx-streak { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 99px; background: #f9731633; color: #fdba74; font-weight: 700; animation: gx-pulse .8s ease-in-out infinite alternate; }

/* scoreboard + podium */
.gx-scores { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.gx-scores li { display: flex; align-items: center; gap: 10px; padding: 7px 12px; border-radius: 10px; background: var(--bg-1, #0002); animation: gx-slide .35s ease-out both; }
.gx-scores li:nth-child(2) { animation-delay: .04s; } .gx-scores li:nth-child(3) { animation-delay: .08s; } .gx-scores li:nth-child(4) { animation-delay: .12s; } .gx-scores li:nth-child(5) { animation-delay: .16s; }
.gx-scores li.me { box-shadow: inset 0 0 0 1px var(--g-accent); }
.gx-scores li > b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gx-scores li > small { color: var(--muted); font-size: 12px; }
.gx-place { width: 22px; text-align: center; font-weight: 800; color: var(--muted); }
.gx-scores li:first-child .gx-place { color: var(--g-accent); }
.gx-pts { font-weight: 800; font-variant-numeric: tabular-nums; }
.gx-delta { font-style: normal; font-weight: 800; color: #4ade80; font-size: 13px; animation: gx-float 1.2s ease-out both; }
.gx-delta.neg { color: #f87171; }
.gx-podium { display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: 10px; max-width: 460px; width: 100%; margin: 0 auto; }
.gx-step { display: grid; justify-items: center; gap: 4px; text-align: center; min-width: 0; animation: gx-rise .6s cubic-bezier(.2, .8, .2, 1) both; }
.gx-step b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.gx-step .gx-pts { color: var(--text-2); font-size: 13px; }
.gx-block { width: 100%; display: grid; place-items: start center; padding-top: 8px; font-size: 26px; border-radius: 10px 10px 4px 4px; background: linear-gradient(180deg, color-mix(in srgb, var(--g-accent) 45%, var(--bg-3, #333)), var(--bg-3, #333)); }
.gx-step.first { animation-delay: .25s; } .gx-step.first .gx-block { height: 110px; }
.gx-step.second { animation-delay: .1s; } .gx-step.second .gx-block { height: 80px; background: linear-gradient(180deg, #94a3b880, var(--bg-3, #333)); }
.gx-step.third .gx-block { height: 58px; background: linear-gradient(180deg, #b4530980, var(--bg-3, #333)); }
.gx-step.first .gx-av .av { box-shadow: 0 0 0 3px var(--g-accent); }

/* confetti */
.gx-confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 5; }
.gx-confetti i { position: absolute; top: -12px; left: var(--x); width: var(--w); height: calc(var(--w) * .45); background: var(--c); border-radius: 2px; animation: gx-confetti var(--t) cubic-bezier(.25, .6, .4, 1) var(--d) forwards; opacity: 0; }

/* Trivia launch: pack picker */
.gx-launch { display: grid; gap: 14px; }
.gx-launch h4 { margin: 10px 0 6px; font-size: 12px; text-transform: uppercase; color: var(--muted); }
.gx-pack-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.gx-pack { display: grid; justify-items: start; gap: 2px; padding: 10px 12px; text-align: left; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); color: var(--text); cursor: pointer; transition: border-color .15s, transform .15s; }
.gx-pack:hover:not(:disabled) { transform: translateY(-2px); border-color: var(--gold, #f2c14e); }
.gx-pack.sel { border-color: var(--gold, #f2c14e); box-shadow: inset 0 0 0 1px var(--gold, #f2c14e); background: color-mix(in srgb, var(--gold, #f2c14e) 10%, var(--bg-2)); }
.gx-pack-emoji { font-size: 22px; }
.gx-pack b { font-size: 13.5px; }
.gx-pack small { color: var(--muted); font-size: 11.5px; }

/* Category Clash */
.cc-banner { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; text-align: center; color: var(--text-2); }
.cc-banner b { color: var(--text); }
.cc-board { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.cc-cat { display: grid; place-items: center; min-height: 46px; padding: 6px 4px; text-align: center; border-radius: 8px; background: color-mix(in srgb, var(--g-accent) 70%, #111); color: #fff; font-weight: 800; font-size: clamp(10.5px, 1.6vw, 13px); line-height: 1.15; text-transform: uppercase; letter-spacing: .02em; }
.cc-tile { height: clamp(40px, 7.5vh, 64px); display: grid; place-items: center; border: 0; border-radius: 8px; background: linear-gradient(160deg, color-mix(in srgb, var(--g-accent) 38%, var(--bg-3, #2b2d31)), var(--bg-3, #2b2d31)); color: #fde68a; font: 800 clamp(15px, 2.6vw, 24px)/1 var(--font-display, inherit); text-shadow: 0 2px 0 #0007; cursor: pointer; transition: transform .15s, filter .15s; animation: gx-pop .35s ease-out both; }
.cc-tile:not(:disabled):hover { transform: scale(1.05); filter: brightness(1.2); }
.cc-tile:disabled:not(.used) { cursor: default; }
.cc-tile.used { background: var(--bg-1, #0002); box-shadow: inset 0 0 0 1px var(--line); }
.cc-tile.flip { animation: gx-flip .4s ease-in both; }
.cc-clue { display: grid; gap: 12px; padding: 18px; border-radius: 14px; text-align: center; background: linear-gradient(160deg, color-mix(in srgb, var(--g-accent) 35%, var(--bg-2)), var(--bg-2)); border: 1px solid color-mix(in srgb, var(--g-accent) 45%, var(--line)); animation: gx-zoom .4s cubic-bezier(.2, .8, .2, 1) both; }
.cc-clue.golden { background: linear-gradient(160deg, #a16207, #422006 75%); border-color: #facc15; box-shadow: 0 0 28px #facc1544; }
.cc-clue-top { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; color: color-mix(in srgb, var(--text) 75%, transparent); }
.cc-clue-top b { color: #fde68a; }
.cc-status { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; min-height: 26px; text-align: center; color: var(--text-2); }
.cc-status b { color: var(--text); }
.cc-ready { font-weight: 800; color: var(--g-accent); animation: gx-pulse .45s ease-in-out infinite alternate; }
.cc-buzz { justify-self: center; width: min(100%, 380px); height: 64px; border-radius: 99px; border: 0; display: flex; align-items: center; justify-content: center; gap: 12px; color: #fff; background: linear-gradient(180deg, #f87171, #dc2626 60%, #b91c1c); box-shadow: 0 6px 0 #7f1d1d, 0 10px 22px #0006; font: 900 22px/1 var(--font-display, inherit); letter-spacing: .06em; cursor: pointer; transition: transform .08s, box-shadow .08s, filter .2s; }
.cc-buzz small { font: 600 12px/1 inherit; letter-spacing: 0; opacity: .85; }
.cc-buzz:not(:disabled) { animation: gx-throb 1s ease-in-out infinite; }
.cc-buzz:not(:disabled):active, .cc-buzz.pressed { transform: translateY(5px); box-shadow: 0 1px 0 #7f1d1d, 0 4px 10px #0006; }
.cc-buzz:disabled { filter: grayscale(.8) brightness(.7); cursor: default; }
.cc-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.cc-score { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 99px; background: var(--bg-1, #0002); font-size: 13px; border: 1px solid transparent; }
.cc-score em { font-style: normal; font-weight: 800; font-variant-numeric: tabular-nums; color: #fde68a; }
.cc-score.neg em { color: #fca5a5; }
.cc-score.picker { border-color: var(--g-accent); }
.cc-score.me b { text-decoration: underline; text-underline-offset: 3px; }

/* Word Scramble */
.ws-cat { text-align: center; color: var(--text-2); font-size: 14px; }
.ws-cat b { color: var(--g-accent); letter-spacing: .1em; }
.ws-tiles { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.ws-tile { width: clamp(38px, 8vw, 52px); aspect-ratio: 1; display: grid; place-items: center; border: 0; border-radius: 10px; background: linear-gradient(180deg, #fef3c7, #fcd34d); color: #422006; font: 900 clamp(18px, 3.6vw, 26px)/1 var(--font-display, inherit); box-shadow: 0 4px 0 #b45309; cursor: pointer; transition: transform .12s, opacity .15s; animation: gx-pop .35s ease-out both; }
.ws-tile:nth-child(2n) { animation-delay: .04s; } .ws-tile:nth-child(3n) { animation-delay: .08s; }
.ws-tile:not(:disabled):hover { transform: translateY(-3px) rotate(-2deg); }
.ws-tile.used { opacity: .3; transform: scale(.9); }
.ws-tiles.answer .ws-tile { cursor: default; background: linear-gradient(180deg, #ccfbf1, #5eead4); color: #134e4a; box-shadow: 0 4px 0 #0f766e; animation: gx-flipin .5s ease-out both; animation-delay: calc(var(--i) * .07s); }
.ws-form { display: flex; gap: 8px; max-width: 420px; width: 100%; margin: 0 auto; }
.ws-input { flex: 1; text-align: center; font: 800 20px/1 var(--font-mono, monospace); letter-spacing: .25em; text-transform: uppercase; }
.ws-form.shake { animation: gx-shake .4s; }
.ws-tools { display: flex; justify-content: center; gap: 8px; }
.ws-solved { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.ws-solver { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 6px; border-radius: 99px; background: #14b8a622; font-size: 13px; animation: gx-pop .35s ease-out both; }
.ws-solver em { font-style: normal; font-weight: 800; color: #5eead4; }

/* Most Likely To */
.ml-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.ml-card { position: relative; overflow: hidden; display: grid; justify-items: center; gap: 6px; padding: 14px 8px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-2); color: var(--text); font: inherit; cursor: pointer; transition: transform .15s, border-color .15s; animation: gx-pop .35s ease-out both; }
.ml-card .av { width: 48px; height: 48px; position: relative; z-index: 1; }
.ml-card b, .ml-votes { position: relative; z-index: 1; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ml-card:not(:disabled):hover { transform: translateY(-3px); border-color: var(--g-accent); }
.ml-card.mine { border-color: var(--g-accent); box-shadow: inset 0 0 0 1px var(--g-accent); }
.ml-card:disabled { cursor: default; }
.ml-votes { font-size: 12px; color: var(--text-2); font-weight: 700; }
.ml-card .gx-fill { inset: auto 0 0 0; width: auto; height: var(--pct); background: color-mix(in srgb, var(--g-accent) 30%, transparent); animation: gx-rise-fill .9s cubic-bezier(.2, .8, .2, 1) both; }
.ml-card.winner { border-color: #facc15; box-shadow: 0 0 0 2px #facc15, 0 8px 24px #facc1533; }
.ml-crown { position: absolute; top: 4px; right: 8px; font-size: 20px; z-index: 2; animation: gx-bob 1.6s ease-in-out infinite; }

/* Dots and Boxes */
.db-board { --gap: clamp(26px, min(7vw, 6.5vh), 52px); display: grid; grid-template-columns: repeat(var(--n), 10px var(--gap)) 10px; grid-template-rows: repeat(var(--n), 10px var(--gap)) 10px; justify-content: center; margin: 4px auto; padding: 14px; border-radius: 14px; background: var(--bg-1, #0002); width: max-content; max-width: 100%; }
.db-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--text-2); }
.db-line { padding: 0; border: 0; background: transparent; position: relative; cursor: default; }
.db-line::after { content: ''; position: absolute; border-radius: 99px; background: var(--text-2); opacity: .18; transition: background .15s, opacity .15s; }
.db-line.h::after { left: 2px; right: 2px; top: 2px; bottom: 2px; }
.db-line.v::after { top: 2px; bottom: 2px; left: 2px; right: 2px; }
.db-line.h { height: 10px; } .db-line.v { width: 10px; }
.db-board.my-turn .db-line:not(:disabled) { cursor: pointer; }
.db-board.my-turn.turn-blue .db-line:not(:disabled):hover::after { background: #38bdf8; opacity: .7; }
.db-board.my-turn.turn-pink .db-line:not(:disabled):hover::after { background: #f472b6; opacity: .7; }
.db-line.on::after { opacity: 1; }
.db-line.blue::after { background: #38bdf8; } .db-line.pink::after { background: #f472b6; }
.db-line.last::after { box-shadow: 0 0 0 3px #fff6; animation: gx-pulse .6s ease-in-out 3 alternate; }
.db-box { display: grid; place-items: center; border-radius: 4px; margin: 3px; }
.db-box.blue { background: #38bdf833; animation: gx-pop .3s ease-out both; } .db-box.pink { background: #f472b633; animation: gx-pop .3s ease-out both; }
.db-box i { font-style: normal; font-weight: 900; font-size: clamp(12px, 2.6vw, 20px); }
.db-box.blue i { color: #7dd3fc; } .db-box.pink i { color: #f9a8d4; }
.db-score.blue { color: #38bdf8; } .db-score.pink { color: #f472b6; }
.seat-blue i { background: #38bdf8; } .seat-pink i { background: #f472b6; }

/* older games: small upgrades */
.game { position: relative; }
.wyr-option i { animation: gx-grow 1s cubic-bezier(.2, .8, .2, 1) both; }
.wyr-option { animation: gx-pop .3s ease-out both; transition: transform .15s, border-color .15s; }
.wyr-option:not(:disabled):hover { transform: translateY(-2px); }
.c4-board { overflow: hidden; }
.c4-cell.last { animation: c4-drop .5s cubic-bezier(.45, 0, .8, .4) both; }
.c4-cell.win { animation: gx-pulse .5s ease-in-out infinite alternate; }
.tod-spin { min-width: 160px; padding: 8px 14px; border-radius: 99px; background: var(--bg-1, #0002); font-weight: 800; font-size: 18px; text-align: center; }
.tod-turn.landed { animation: gx-zoom .4s cubic-bezier(.2, .8, .2, 1) both; }
.chess-sq.last, .ck-sq.picked { transition: background .2s; }

/* light theme */
:root[data-theme="light"] .gx-result.good { color: #15803d; } :root[data-theme="light"] .gx-result.bad { color: #b91c1c; }
:root[data-theme="light"] .cc-score em, :root[data-theme="light"] .cc-clue-top b { color: #a16207; }
:root[data-theme="light"] .cc-clue.golden { color: #fff; }
:root[data-theme="light"] .ws-solver em { color: #0f766e; }

@media (max-width: 600px) {
  .gx { padding: 10px; gap: 12px; }
  .gx-choices { grid-template-columns: 1fr; }
  .gx-choice { min-height: 50px; }
  .cc-board { gap: 4px; }
  .cc-cat { min-height: 40px; font-size: 9.5px; padding: 4px 2px; }
  .cc-tile { border-radius: 6px; }
  .cc-buzz { height: 56px; font-size: 19px; }
  .gx-podium { gap: 6px; }
  .gx-av.lg .av { width: 44px; height: 44px; }
}

@keyframes gx-pop { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
@keyframes gx-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes gx-slide { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
@keyframes gx-zoom { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
@keyframes gx-grow { from { width: 0; } }
@keyframes gx-rise-fill { from { height: 0; } }
@keyframes gx-bob { 50% { transform: translateY(-6px); } }
@keyframes gx-pulse { from { opacity: 1; } to { opacity: .55; } }
@keyframes gx-throb { 50% { transform: scale(1.05); } }
@keyframes gx-right { 0% { transform: scale(1); } 40% { transform: scale(1.04); } 100% { transform: scale(1); } }
@keyframes gx-float { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes gx-flip { to { transform: rotateY(90deg) scale(1.2); opacity: .2; } }
@keyframes gx-flipin { from { transform: rotateX(90deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes gx-shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
@keyframes gx-confetti { 0% { opacity: 1; transform: translateY(0) rotate(0); } 100% { opacity: 0; transform: translateY(110vh) rotate(var(--r)); } }
@keyframes c4-drop { from { transform: translateY(-700%); } }

.reduce-motion .gx *, .reduce-motion .gx, .reduce-motion .c4-cell, .reduce-motion .wyr-option, .reduce-motion .tod-turn { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) { .gx *, .gx, .c4-cell, .wyr-option, .tod-turn { animation: none !important; transition: none !important; } }

/* Sketch Relay */
.sr-how { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; }
.sr-how > div { display: grid; justify-items: center; gap: 2px; min-width: 96px; padding: 10px 8px; border-radius: 12px; background: var(--bg-1, #0002); border: 1px solid var(--line); animation: gx-pop .35s ease-out both; }
.sr-how > div:nth-of-type(2) { animation-delay: .06s; } .sr-how > div:nth-of-type(3) { animation-delay: .12s; } .sr-how > div:nth-of-type(4) { animation-delay: .18s; }
.sr-how span { font-size: 24px; } .sr-how small { color: var(--muted); font-size: 11.5px; }
.sr-how > i { font-style: normal; color: var(--g-accent); font-weight: 900; }
.sr-steps { display: flex; align-items: center; justify-content: center; gap: 4px; flex-wrap: wrap; }
.sr-steps span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; font-size: 14px; background: var(--bg-1, #0002); border: 1px solid var(--line); opacity: .45; }
.sr-steps span.done { opacity: .8; border-color: color-mix(in srgb, var(--g-accent) 50%, transparent); }
.sr-steps span.now { opacity: 1; border-color: var(--g-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--g-accent) 30%, transparent); transform: scale(1.12); }
.sr-steps i { width: 10px; height: 2px; background: var(--line); }
.sr-prompt { display: grid; gap: 2px; text-align: center; padding: 12px 16px; border-radius: 14px; background: linear-gradient(160deg, color-mix(in srgb, var(--g-accent) 18%, var(--bg-2)), var(--bg-2)); border: 1px solid color-mix(in srgb, var(--g-accent) 35%, var(--line)); animation: gx-rise .35s ease-out both; }
.sr-prompt small { color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: .05em; font-size: 11.5px; }
.sr-prompt b { font-size: clamp(17px, 2.8vw, 23px); }
.sr-write { display: flex; gap: 8px; max-width: 560px; width: 100%; margin: 0 auto; }
.sr-write .input { flex: 1; font-size: 16px; padding: 12px 14px; }
.sr-idea { text-align: center; }
.sr-status { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; }
.sr-status small { color: var(--muted); margin-left: 4px; }
.sr-who { position: relative; opacity: .5; transition: opacity .2s; }
.sr-who.done { opacity: 1; }
.sr-who i { position: absolute; right: -4px; bottom: -4px; width: 14px; height: 14px; display: grid; place-items: center; border-radius: 50%; background: #22c55e; color: #fff; font-style: normal; font-size: 9px; font-weight: 900; animation: gx-pop .3s ease-out both; }
.sr-sent { display: grid; justify-items: center; gap: 4px; padding: 26px 0 10px; text-align: center; }
.sr-sent-emoji { font-size: 52px; animation: gx-bob 1.6s ease-in-out infinite; }
.sr-sent h2 { margin: 0; } .sr-sent p { margin: 0; color: var(--text-2); }
/* the game area is a size container, so the canvas can fit it without scrolling */
.embedded-activity-content:has(.gx-sketch .sr-pad) { container-type: size; }
.gx-sketch:has(.sr-pad) { gap: 10px; padding-bottom: 10px; }
.sr-pad { display: grid; grid-template-columns: auto auto auto; justify-content: center; align-items: start; gap: 10px; }
.sr-pad .sr-tools { display: grid; grid-template-columns: repeat(3, 34px); gap: 4px; }
.sr-pad .sr-tools .sr-tool, .sr-pad .sr-tools .sr-size { width: 34px; height: 34px; }
.sr-pad .sr-tools .sr-sep { grid-column: 1 / -1; width: auto; height: 1px; margin: 2px 4px; }
.sr-pad .sr-palette { display: grid; grid-template-columns: repeat(3, 28px); }
.sr-prompt.compact { display: flex; align-items: baseline; justify-content: center; gap: 10px; padding: 8px 14px; }
.sr-prompt.compact b { font-size: clamp(16px, 2.4vw, 20px); }
.gx-sketch .gx-foot [data-sr-status] .sr-status { justify-content: flex-start; }
.sr-tools, .sr-palette { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 5px; padding: 6px; border-radius: 12px; background: var(--bg-1, #0002); border: 1px solid var(--line); }
.sr-tool, .sr-size { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; border: 0; background: transparent; color: var(--text); font-size: 18px; cursor: pointer; transition: background .15s, transform .1s; }
.sr-tool:hover:not(:disabled), .sr-size:hover { background: var(--bg-hover, #ffffff14); }
.sr-tool.on, .sr-size.on { background: color-mix(in srgb, var(--g-accent) 28%, transparent); box-shadow: inset 0 0 0 2px var(--g-accent); }
.sr-tool:disabled { opacity: .35; cursor: default; }
.sr-tool.flip svg { transform: scaleX(-1); }
.sr-size i { width: var(--s); height: var(--s); border-radius: 50%; background: currentColor; }
.sr-sep { width: 1px; height: 26px; background: var(--line); margin: 0 3px; }
.sr-canvas-wrap { width: min(760px, calc(100cqw - 290px), calc((100cqh - 196px) * 4 / 3)); min-width: 240px; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 10px 30px #0005; }
.sr-canvas-wrap canvas { width: 100%; height: 100%; display: block; touch-action: none; cursor: crosshair; }
.sr-canvas-wrap canvas[data-cursor="fill"] { cursor: cell; }
.sr-color { width: 28px; height: 28px; border-radius: 50%; border: 0; padding: 0; background: var(--c); box-shadow: inset 0 0 0 1px #ffffff30; cursor: pointer; transition: transform .1s; }
.sr-color:hover { transform: scale(1.12); }
.sr-color.on { box-shadow: 0 0 0 2px var(--bg-2), 0 0 0 4px var(--g-accent); transform: scale(1.1); }
.sr-color.custom { background: conic-gradient(#ef4444, #facc15, #22c55e, #3b82f6, #a855f7, #ef4444); position: relative; display: grid; place-items: center; overflow: hidden; color: #fff; font-weight: 900; text-shadow: 0 1px 2px #000; }
.sr-color.custom.on { background: var(--c); }
.sr-color.custom input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.sr-art { justify-self: center; width: min(100%, 560px); aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 8px 24px #0004; }
.sr-art img { width: 100%; height: 100%; object-fit: contain; display: block; }
.sr-art.empty { display: grid; place-items: center; color: #555; font-weight: 600; padding: 16px; text-align: center; }
.sr-art.big { width: min(100%, 620px, calc((100dvh - 360px) * 4 / 3)); min-width: min(100%, 280px); }
.sr-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
.sr-tab { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 5px 12px 5px 5px; border-radius: 99px; border: 1px solid var(--line); background: var(--bg-1, #0002); color: var(--text-2); font: inherit; font-size: 13px; cursor: pointer; }
.sr-tab.on { color: var(--text); border-color: var(--g-accent); background: color-mix(in srgb, var(--g-accent) 16%, transparent); }
.sr-tab:disabled { opacity: .4; cursor: default; }
.sr-album { display: grid; gap: 14px; max-width: 620px; width: 100%; margin: 0 auto; }
.sr-album-title { margin: 0; text-align: center; font-size: 15px; color: var(--text-2); }
.sr-entry { display: grid; gap: 6px; }
.sr-entry.new { animation: gx-rise .5s cubic-bezier(.2, .8, .2, 1) both; }
.sr-entry.drawing.new .sr-art { animation: gx-zoom .55s cubic-bezier(.2, .8, .2, 1) both; }
.sr-entry-who { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.sr-entry-who small { color: var(--muted); }
.sr-bubble { justify-self: start; max-width: 90%; padding: 10px 14px; border-radius: 4px 16px 16px 16px; background: var(--bg-3, #2b2d31); font-size: 17px; font-weight: 650; line-height: 1.35; overflow-wrap: anywhere; }
.sr-bubble.first { background: color-mix(in srgb, var(--g-accent) 30%, var(--bg-3, #2b2d31)); }
.sr-entry.drawing .sr-art { justify-self: start; width: min(100%, 480px); }
.sr-reacts { display: flex; flex-wrap: wrap; gap: 4px; }
.sr-react { display: inline-flex; align-items: center; gap: 3px; height: 28px; padding: 0 8px; border-radius: 99px; border: 1px solid var(--line); background: transparent; font-size: 14px; cursor: pointer; opacity: .55; transition: opacity .15s, transform .1s; color: var(--text); }
.sr-react:hover { opacity: 1; transform: translateY(-1px); }
.sr-react.has { opacity: 1; background: var(--bg-1, #0002); }
.sr-react.mine { opacity: 1; border-color: var(--g-accent); background: color-mix(in srgb, var(--g-accent) 20%, transparent); }
.sr-react b { font-size: 12px; }
@media (max-width: 600px) {
  .sr-how > i { display: none; } .sr-how > div { min-width: 70px; padding: 8px 4px; }
  .sr-tool, .sr-size { width: 32px; height: 32px; font-size: 16px; }
  .sr-color { width: 24px; height: 24px; }
  .sr-write { flex-direction: column; }
  .sr-canvas-wrap { width: 100%; min-width: 0; }
  .sr-pad { grid-template-columns: 1fr; }
  .sr-pad .sr-canvas-wrap { order: -1; }
  .sr-pad .sr-tools { display: flex; flex-direction: row; flex-wrap: wrap; }
  .sr-pad .sr-tools .sr-sep { width: 1px; height: 22px; margin: 0 2px; }
  .sr-pad .sr-palette { display: flex; }
}
.reduce-motion .gx-sketch .sr-steps span.now { transform: none; }

/* camera filters (calls and the feed studio) */
.fx-modal { display: grid; gap: 14px; grid-template-rows: auto minmax(0, 1fr); min-height: 0; }
.fx-preview { position: relative; aspect-ratio: 16 / 9; height: min(34vh, 300px); max-width: 100%; justify-self: center; border-radius: 12px; overflow: hidden; background: #000; flex: none; }
.fx-preview video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); display: block; }
.fx-status, .fx-off { position: absolute; left: 50%; transform: translateX(-50%); padding: 6px 12px; border-radius: 99px; background: #000a; color: #fff; font-size: 12.5px; white-space: nowrap; }
.fx-status { top: 50%; translate: 0 -50%; }
.fx-off { bottom: 10px; }
.fx-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; max-height: 40vh; overflow-y: auto; padding: 2px; }
.fx-chip { display: grid; justify-items: center; gap: 2px; padding: 10px 6px 8px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-1, #0002); color: var(--text); cursor: pointer; transition: border-color .15s, transform .12s; }
.fx-chip:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--gold, #f5c518) 60%, var(--line)); }
.fx-chip.on { border-color: var(--gold, #f5c518); box-shadow: inset 0 0 0 1px var(--gold, #f5c518); background: color-mix(in srgb, var(--gold, #f5c518) 12%, transparent); }
.fx-ic { font-size: 26px; line-height: 1.1; }
.fx-name { font-size: 12px; font-weight: 600; text-align: center; }
.fx-chip small { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.ctl.ctl-fx.on { color: var(--gold, #f5c518); }

/* ---------- Hangman ---------- */
.hm-stage { display: grid; grid-template-columns: minmax(110px, 180px) 1fr; gap: 18px; align-items: center; }
.hm-gallows { width: 100%; height: auto; overflow: visible; }
.hm-frame { stroke: var(--text-2); stroke-width: 4; stroke-linecap: round; }
.hm-rope { stroke: #c08a4a; stroke-width: 2.5; stroke-linecap: round; }
.hm-part { stroke: var(--g-accent); stroke-width: 4; stroke-linecap: round; fill: none; animation: hm-draw .45s ease-out both; }
.hm-face { stroke: var(--g-accent); stroke-width: 1.8; stroke-linecap: round; fill: none; }
.hm-eye { fill: var(--g-accent); }
.hm-gallows.hanged .hm-body { transform-origin: 86px 31px; animation: hm-swing 2.4s ease-in-out infinite; }
.hm-gallows.hanged .hm-part, .hm-gallows.hanged .hm-face, .hm-gallows.hanged .hm-eye { stroke: var(--red); }
@keyframes hm-draw { from { opacity: 0; stroke-dasharray: 80; stroke-dashoffset: 80; } to { opacity: 1; stroke-dasharray: 80; stroke-dashoffset: 0; } }
@keyframes hm-swing { 0%, 100% { transform: rotate(4deg); } 50% { transform: rotate(-4deg); } }
.hm-main { display: grid; gap: 12px; min-width: 0; }
.hm-turn { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; padding: 8px 12px; border-radius: 12px; background: var(--bg-2); font-size: 14px; text-align: center; }
.hm-turn.mine { background: color-mix(in srgb, var(--g-accent) 22%, transparent); color: var(--text); font-weight: 800; animation: gx-throb 1.4s ease-in-out infinite; }
.hm-turn.setter { background: color-mix(in srgb, var(--purple) 18%, transparent); }
.hm-word { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; }
.hm-w { display: flex; gap: 5px; }
.hm-tile { width: clamp(24px, 5.2vw, 38px); height: clamp(32px, 6.6vw, 48px); display: grid; place-items: center; border-bottom: 4px solid var(--text-2); font: 900 clamp(18px, 3.6vw, 28px)/1 var(--font-display, inherit); color: var(--text); }
.hm-tile.on { border-color: var(--g-accent); animation: gx-pop .35s ease-out both; }
.hm-tile.missed { color: var(--red); border-color: var(--red); opacity: .85; }
.hm-sep { align-self: end; font: 900 22px/1 var(--font-display, inherit); color: var(--text-2); padding-bottom: 6px; }
.hm-misses { display: flex; align-items: center; justify-content: center; gap: 5px; font-size: 12px; color: var(--muted); }
.hm-misses i { width: 11px; height: 11px; border-radius: 50%; background: var(--bg-3); border: 2px solid var(--line); }
.hm-misses i.on { background: var(--red); border-color: var(--red); }
.hm-misses span { margin-left: 6px; }
.hm-last { margin: 0; text-align: center; font-size: 13px; color: var(--text-2); animation: gx-rise .3s ease-out both; }
.hm-last b { color: var(--g-accent); }
.hm-keys { display: grid; gap: 6px; justify-items: center; }
.hm-row { display: flex; gap: 5px; justify-content: center; width: 100%; }
.hm-key { flex: 0 1 42px; min-width: 0; height: 44px; border: 0; border-radius: 9px; background: var(--bg-3); color: var(--text); font: 800 16px/1 var(--font-display, inherit); cursor: pointer; box-shadow: 0 3px 0 var(--line); transition: transform .1s, background .15s; }
.hm-key:not(:disabled):hover { background: color-mix(in srgb, var(--g-accent) 25%, var(--bg-3)); transform: translateY(-1px); }
.hm-key:not(:disabled):active { transform: translateY(2px); box-shadow: none; }
.hm-key:disabled { cursor: default; opacity: .55; }
.hm-key.hit { background: color-mix(in srgb, var(--green) 30%, var(--bg-3)); opacity: 1; }
.hm-key.miss { background: transparent; color: var(--muted); text-decoration: line-through; opacity: .5; box-shadow: none; }
.hm-solve-form, .hm-pick { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.hm-solve-form .input { flex: 1 1 200px; max-width: 360px; text-transform: uppercase; }
.hm-solve-form .input::placeholder, .hm-pick input::placeholder { text-transform: none; letter-spacing: 0; font-weight: 400; }
.hm-pick { flex-direction: column; align-items: stretch; max-width: 380px; margin: 0 auto; width: 100%; }
.hm-pick input[name=word] { text-transform: uppercase; font-weight: 800; letter-spacing: .06em; }
@media (max-width: 560px) {
  .hm-stage { grid-template-columns: 1fr; }
  .hm-gallows { max-width: 120px; justify-self: center; }
  .hm-row { gap: 4px; }
  .hm-key { height: 42px; font-size: 15px; border-radius: 7px; }
}
@media (prefers-reduced-motion: reduce) { .hm-part, .hm-gallows.hanged .hm-body, .hm-turn.mine { animation: none; } }
/* Hangman difficulty */
.hm-levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: min(100%, 560px); margin: 0 auto; }
.hm-level { display: grid; justify-items: center; gap: 2px; padding: 12px 8px; border-radius: 14px; border: 2px solid var(--line); background: var(--bg-2); color: var(--text); font: inherit; cursor: pointer; transition: transform .12s, border-color .15s, background .15s; text-align: center; }
.hm-level span { font-size: 24px; }
.hm-level b { font-size: 15px; }
.hm-level small { font-size: 11px; color: var(--muted); line-height: 1.3; }
.hm-level:hover { transform: translateY(-2px); }
.hm-level.on.easy { border-color: #22c55e; background: color-mix(in srgb, #22c55e 14%, var(--bg-2)); }
.hm-level.on.medium { border-color: #f59e0b; background: color-mix(in srgb, #f59e0b 14%, var(--bg-2)); }
.hm-level.on.hard { border-color: #ef4444; background: color-mix(in srgb, #ef4444 14%, var(--bg-2)); }
.hm-chip { display: inline-block; padding: 1px 8px; border-radius: 99px; font-weight: 800; font-size: .92em; }
.hm-chip.easy { background: color-mix(in srgb, #22c55e 22%, transparent); color: #4ade80; }
.hm-chip.medium { background: color-mix(in srgb, #f59e0b 22%, transparent); color: #fbbf24; }
.hm-chip.hard { background: color-mix(in srgb, #ef4444 22%, transparent); color: #f87171; }
@media (max-width: 520px) { .hm-level small { display: none; } .hm-level { padding: 10px 4px; } }

/* ---------- Imposter & Mafia (social games) ---------- */
.sg { --sg-accent: #ef4444; position: relative; overflow: hidden; max-width: 760px; margin: 0 auto; min-height: 100%; display: flex; flex-direction: column; gap: 14px; padding: 16px 18px 18px;
  border-radius: 22px; color: #e8ecf8; background-color: #0c1222; box-shadow: inset 0 0 0 1px #ffffff12;
  background-image: radial-gradient(circle at 1px 1px, #ffffff0d 1px, transparent 0), radial-gradient(120% 70% at 50% 0%, #17203a 0%, #0c1222 60%); background-size: 26px 26px, auto; }
.sg.night { background-image: radial-gradient(circle at 1px 1px, #ffffff10 1px, transparent 0), radial-gradient(120% 70% at 50% 0%, #2a1650 0%, #0b0716 65%); }
.sg.day { background-image: radial-gradient(circle at 1px 1px, #ffffff0d 1px, transparent 0), radial-gradient(120% 70% at 50% 0%, #3a2a10 0%, #11131c 65%); }
.sg.win { box-shadow: inset 0 0 0 2px #22c55e66; }
.sg.lose { box-shadow: inset 0 0 0 2px #ef444466; }
.sg-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 40px; }
.sg-top-right { display: flex; align-items: center; gap: 8px; }
.sg-pill { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #ffffffa8; }
.sg-round { width: 40px; height: 40px; border-radius: 50%; border: 0; display: grid; place-items: center; background: #ffffff14; color: #fff; cursor: pointer; }
.sg-round:hover { background: #ffffff24; }
.sg-hero { display: grid; justify-items: center; text-align: center; gap: 8px; }
.sg-icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 30px; background: #ffffff14; box-shadow: 0 0 0 6px #ffffff08; }
.sg-hero h2 { margin: 4px 0 0; font: 900 clamp(24px, 4vw, 32px)/1.1 var(--font-display, inherit); color: #fff; }
.sg-hero p { margin: 0; max-width: 440px; color: #c3c9da; font-size: 15px; line-height: 1.45; }
.sg-body { display: grid; gap: 12px; align-content: start; flex: 1; }
.sg-foot { display: grid; gap: 8px; justify-items: center; }
.sg-cta { width: 100%; padding: 16px; border: 0; border-radius: 14px; background: var(--sg-accent); color: #fff; font: 800 17px/1 var(--font-display, inherit); cursor: pointer; box-shadow: 0 10px 30px color-mix(in srgb, var(--sg-accent) 45%, transparent); transition: transform .12s, filter .15s; }
.sg-cta:hover { filter: brightness(1.08); }
.sg-cta:active { transform: translateY(1px); }
.sg-cta:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.sg-wait { margin: 0; color: #ffffff90; font-size: 14px; }
.sg-note { margin: 0; padding: 10px 12px; border-radius: 12px; background: #ffffff0c; color: #c3c9da; font-size: 13.5px; text-align: center; }
.sg-note.bad { background: #ef444422; color: #fecaca; }
.sg-h { margin: 6px 0 0; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: #ffffff90; }
.sg-secret { position: relative; display: grid; gap: 10px; text-align: left; padding: 18px 20px; border-radius: 16px; border: 1px solid #ffffff1a; background: #ffffff0d; color: #fff; cursor: pointer; font: inherit; transition: background .15s; }
.sg-secret:hover { background: #ffffff14; }
.sg-secret-label { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #ffffffa0; }
.sg-secret-hidden { display: flex; align-items: center; gap: 8px; }
.sg-secret-hidden i { height: 8px; width: 70px; border-radius: 6px; background: #ffffff24; }
.sg-secret-hidden i + i { width: 100px; }
.sg-secret-hidden small { margin-left: auto; color: #ffffff90; font-size: 12.5px; }
.sg-secret-value { display: none; align-items: center; gap: 10px; flex-wrap: wrap; }
.sg-secret-value b { font: 900 clamp(22px, 4vw, 28px)/1.1 var(--font-display, inherit); }
.sg-secret-value small { flex-basis: 100%; color: #c3c9da; font-size: 13.5px; }
.sg-secret.shown .sg-secret-hidden { display: none; }
.sg-secret.shown .sg-secret-value { display: flex; }
.sg-tag { margin-left: auto; padding: 4px 9px; border-radius: 7px; background: #ffffff1f; font-size: 11.5px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; }
.sg-tag.red, .sg-tag.role-killer, .sg-tag.role-serialkiller { background: #ef444433; color: #fecaca; }
.sg-tag.role-medic, .sg-tag.role-bodyguard, .sg-tag.role-detective, .sg-tag.role-civilian { background: #22c55e26; color: #bbf7d0; }
.sg-tag.role-jester { background: #a855f733; color: #e9d5ff; }
.sg-team { color: #fecaca !important; }
.sg-turn { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; padding: 10px 14px; border-radius: 12px; background: #ffffff0c; font-size: 14.5px; }
.sg-turn.mine { background: color-mix(in srgb, var(--sg-accent) 22%, transparent); animation: gx-throb 1.4s ease-in-out infinite; }
.sg-who { display: inline-flex; align-items: center; gap: 6px; }
.sg-who b { font-weight: 700; }
.sg-form { display: flex; gap: 8px; }
.sg-form .input { flex: 1; background: #0006; color: #fff; border-color: #ffffff26; font-size: 16px; }
.sg-clues { display: grid; gap: 8px; }
.sg-clue-round small { display: block; margin-bottom: 4px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #ffffff80; }
.sg-clue-round > div { display: flex; flex-wrap: wrap; gap: 6px; }
.sg-clue { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 99px; background: #ffffff12; animation: gx-pop .3s ease-out both; }
.sg-clue.skipped { opacity: .5; }
.sg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.sg-pick { display: grid; justify-items: center; gap: 6px; padding: 12px 8px; border-radius: 14px; border: 2px solid #ffffff14; background: #ffffff0a; color: #fff; font: inherit; cursor: pointer; transition: border-color .15s, transform .12s, background .15s; }
.sg-pick:not(:disabled):hover { transform: translateY(-2px); border-color: #ffffff40; }
.sg-pick.on { border-color: var(--sg-accent); background: color-mix(in srgb, var(--sg-accent) 20%, transparent); }
.sg-pick:disabled { opacity: .5; cursor: default; }
.sg-pick b { font-size: 13.5px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-pick small { font-size: 11.5px; color: #ffffffa0; }
.sg-skip { font-size: 30px; line-height: 40px; }
.sg-moon { text-align: center; font-size: 64px; filter: drop-shadow(0 0 30px #c4b5fd88); animation: gx-bob 3s ease-in-out infinite; }
.sg-news { margin: 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 10px 12px; border-radius: 12px; font-size: 14px; }
.sg-news.bad { background: #ef444422; }
.sg-news.good { background: #22c55e1f; }
.sg-votes { display: grid; gap: 6px; padding: 12px; border-radius: 14px; background: #ffffff0a; }
.sg-votes > small { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #ffffff80; }
.sg-vote-row { display: grid; grid-template-columns: minmax(0, 160px) 1fr auto; align-items: center; gap: 10px; }
.sg-bar { height: 8px; border-radius: 6px; background: #ffffff14; overflow: hidden; }
.sg-bar i { display: block; height: 100%; width: calc(var(--p) * 100%); background: var(--sg-accent); }
.sg-votes details { font-size: 13px; color: #c3c9da; }
.sg-votes details p { margin: 2px 0; }
.sg-reveal { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.sg-reveal > div { display: grid; gap: 4px; padding: 12px 14px; border-radius: 14px; background: #ffffff0d; }
.sg-reveal small { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #ffffff80; }
.sg-reveal b { font-size: 18px; }
.sg-settings { display: flex; flex-wrap: wrap; gap: 12px 16px; justify-content: center; align-items: end; }
.sg-settings label { display: grid; gap: 6px; font-size: 12px; font-weight: 700; color: #ffffffa0; text-transform: uppercase; letter-spacing: .03em; }
.sg-settings .select { background: #0006; color: #fff; border-color: #ffffff26; }
.sg-check { display: flex !important; align-items: center; gap: 6px; text-transform: none !important; font-size: 14px !important; color: #e8ecf8 !important; cursor: pointer; }
.sg-seg { display: flex; gap: 3px; padding: 3px; border-radius: 12px; background: #0006; }
.sg-seg button { min-width: 38px; padding: 7px 10px; border: 0; border-radius: 9px; background: none; color: #ffffffb0; font: inherit; font-weight: 800; cursor: pointer; }
.sg-seg button.on { background: var(--sg-accent); color: #fff; }
.sg-roles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.sg-role-tog { display: grid; justify-items: start; gap: 3px; padding: 10px 12px; text-align: left; border-radius: 14px; border: 2px solid #ffffff14; background: #ffffff08; color: #fff; font: inherit; cursor: pointer; opacity: .6; transition: opacity .15s, border-color .15s; }
.sg-role-tog span { font-size: 22px; }
.sg-role-tog small { font-size: 11.5px; color: #ffffffa0; line-height: 1.3; }
.sg-role-tog.on { opacity: 1; border-color: var(--sg-accent); background: color-mix(in srgb, var(--sg-accent) 14%, transparent); }
.sg-role-tog:disabled { cursor: default; }
.sg-scrim { position: absolute; inset: 0; background: #0009; backdrop-filter: blur(3px); z-index: 4; }
.sg-scrim[hidden] { display: none; }
.sg-drawer { position: absolute; top: 0; right: 0; bottom: 0; width: min(320px, 86%); z-index: 5; display: flex; flex-direction: column; gap: 12px; padding: 18px; background: #121a2e; border-left: 1px solid #ffffff14; transform: translateX(105%); transition: transform .22s ease; }
.sg-drawer.open { transform: none; }
.sg-drawer-head { display: flex; align-items: center; justify-content: space-between; }
.sg-drawer-head b { font: 900 20px/1 var(--font-display, inherit); }
.sg-plist, .sg-roster { display: grid; gap: 8px; align-content: start; overflow-y: auto; flex: 1; }
.sg-prow { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: #ffffff08; }
.sg-prow.me { background: #ffffff14; box-shadow: inset 0 0 0 1px #ffffff24; }
.sg-prow.out { opacity: .55; }
.sg-prow > div { display: grid; min-width: 0; }
.sg-prow b { font-size: 14px; }
.sg-prow small { display: flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #ffffff90; }
.sg-prow small::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #64748b; }
.sg-prow small.ok::before { background: #22c55e; }
.sg-prow small.bad::before { background: #ef4444; }
.sg-leave { width: 100%; padding: 14px; border-radius: 14px; border: 1px solid #ef444480; background: transparent; color: #f87171; font-weight: 800; }
.sg-crown { font-size: 12px; }
@media (max-width: 560px) { .sg { padding: 12px; border-radius: 16px; } .sg-grid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); } .sg-vote-row { grid-template-columns: minmax(0, 110px) 1fr auto; } }
@media (prefers-reduced-motion: reduce) { .sg-turn.mine, .sg-moon { animation: none; } .sg-drawer { transition: none; } }
.sg-news .sg-tag, .sg-hero .sg-tag { margin-left: 0; }

/* ---------- Unfiltered ---------- */
.uf-card { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; text-align: left; border-radius: 14px; padding: 14px 14px 10px; font: 800 15px/1.3 var(--font-display, inherit); }
.uf-card p { margin: 0; overflow-wrap: anywhere; }
.uf-card footer { display: flex; justify-content: space-between; align-items: center; font: 800 10px/1 var(--font, inherit); letter-spacing: .04em; opacity: .7; }
.uf-card.black { background: linear-gradient(160deg, #1b1b22, #0b0b0f); color: #fff; box-shadow: 0 10px 30px #0008, inset 0 0 0 1px #ffffff1a; min-height: 150px; max-width: 520px; width: 100%; justify-self: center; font-size: clamp(17px, 2.6vw, 22px); animation: gx-pop .35s ease-out both; }
.uf-card.black footer b { padding: 3px 8px; border-radius: 99px; background: var(--g-accent); color: #111; opacity: 1; }
.uf-card.black u { text-decoration: none; color: var(--g-accent); border-bottom: 2px solid var(--g-accent); }
.uf-card.black.winner { box-shadow: 0 0 0 3px var(--g-accent), 0 14px 40px color-mix(in srgb, var(--g-accent) 35%, transparent); }
.uf-blank { letter-spacing: -1px; opacity: .6; }
.uf-card.white { background: #fbfaf7; color: #121212; border: 0; min-height: 132px; cursor: pointer; box-shadow: 0 6px 16px #0006; transition: transform .14s, box-shadow .14s; }
.uf-card.white:hover { transform: translateY(-4px) rotate(-.6deg); }
.uf-card.white[aria-pressed="true"] { transform: translateY(-10px); box-shadow: 0 0 0 3px var(--g-accent), 0 14px 30px #0008; }
.uf-card.white.small { min-height: 0; padding: 10px 12px; font-size: 13.5px; box-shadow: 0 3px 10px #0005; cursor: inherit; }
.uf-card.white.small footer { display: none; }
.uf-card.black.small { min-height: 0; padding: 12px; font-size: 14.5px; max-width: none; }
.uf-num { position: absolute; top: -8px; right: -8px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-style: normal; background: var(--g-accent); color: #111; font-weight: 900; box-shadow: 0 2px 6px #0006; }
.uf-hand { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 10px; padding-top: 6px; }
.uf-hand .uf-card:nth-child(odd) { animation: gx-rise .35s ease-out both; }
.uf-hand .uf-card:nth-child(even) { animation: gx-rise .45s ease-out both; }
.uf-answers { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.uf-answer { display: grid; gap: 6px; padding: 8px; border-radius: 16px; border: 2px dashed transparent; background: #ffffff08; font: inherit; color: inherit; cursor: pointer; text-align: left; transition: border-color .15s, transform .12s; animation: gx-pop .3s ease-out both; }
.uf-answer:hover { transform: translateY(-2px); }
.uf-answer.on { border-color: var(--g-accent); background: color-mix(in srgb, var(--g-accent) 12%, transparent); }
.uf-answer small { color: var(--muted); font-size: 12px; text-align: center; }
.uf-answers.small .uf-answer { cursor: default; }
.uf-banner { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; padding: 8px 12px; border-radius: 12px; background: var(--bg-2); font-size: 14px; }
.uf-banner.judge { background: color-mix(in srgb, var(--g-accent) 20%, transparent); font-weight: 800; }
.uf-win { text-align: center; font-size: 18px; animation: gx-pop .4s ease-out both; }
.uf-hint { margin: 0; text-align: center; color: var(--text-2); font-size: 13.5px; }
.uf-status { display: flex; align-items: center; justify-content: center; gap: 4px; flex-wrap: wrap; }
.uf-dot { opacity: .35; transition: opacity .2s; } .uf-dot.on { opacity: 1; }
.uf-status small { margin-left: 6px; color: var(--muted); }
.uf-cats { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.uf-chip { display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--bg-2); color: var(--text); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.uf-chip.on { border-color: var(--g-accent); background: color-mix(in srgb, var(--g-accent) 18%, var(--bg-2)); }
.uf-chip small { color: var(--muted); font-weight: 600; }
.uf-decks { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; }
.uf-only { display: flex; gap: 6px; align-items: center; font-size: 13px; cursor: pointer; }
.uf-invite { display: flex; justify-content: center; }
.uf-h { margin: 6px 0 0; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.uf-best { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.uf-picker, .uf-editor, .uf-invites { display: grid; gap: 10px; }
.uf-deck-list { display: grid; gap: 6px; max-height: 50vh; overflow-y: auto; }
.uf-deck { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 10px; border-radius: 12px; background: var(--bg-2); cursor: pointer; }
.uf-deck span { display: grid; } .uf-deck small { color: var(--muted); }
.uf-editor label { display: grid; gap: 6px; font-size: 13px; } .uf-editor small { color: var(--muted); font-weight: 400; }
.uf-editor textarea { font-family: inherit; resize: vertical; }
.uf-friend { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; background: var(--bg-2); cursor: pointer; }
@media (max-width: 560px) { .uf-hand { grid-template-columns: repeat(2, minmax(0, 1fr)); } .uf-card.white { min-height: 108px; font-size: 14px; } .uf-answers { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .uf-card, .uf-answer { animation: none !important; transition: none; } }
