/* Styles for the newer games (Draw & Guess, Liar's Dice, Word Bomb, Spyfall, Codewords,
   Type Race, RPS Tournament, Chess, Snake). */
.avatar.lg { width: 56px; height: 56px; font-size: 28px; }
.standings .avatar { width: 26px; height: 26px; font-size: 14px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line-2); font-size: 13px; font-weight: 600; color: var(--muted);
}
.pill.hot { color: #fff; border-color: rgba(var(--accent-hi-rgb),.6); background: rgba(var(--accent-rgb),.2); }

/* ---------- Draw & Guess ---------- */
.dg { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; padding: 16px; overflow: hidden; }
.dg-main { display: flex; flex-direction: column; gap: 10px; min-height: 0; min-width: 0; }
.dg-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dg-round, .dg-time { font-size: 13px; font-weight: 600; color: var(--muted); min-width: 90px; }
.dg-time { text-align: right; font-family: var(--mono); font-size: 20px; color: var(--text); }
.dg-word { display: flex; gap: 6px; align-items: flex-end; font-family: var(--mono); font-size: 22px; font-weight: 600; min-height: 34px; flex-wrap: wrap; justify-content: center; }
.dg-word .ch { width: 18px; text-align: center; border-bottom: 2px solid var(--line-3); line-height: 1.2; min-height: 28px; }
.dg-word .gap { width: 10px; }
.dg-word small { font-size: 11px; color: var(--dim); margin-left: 4px; }
.dg-secret { color: var(--accent-hi); letter-spacing: .06em; }
.dg-canvas { flex: 1; min-height: 0; display: flex; justify-content: center; align-items: flex-start; container-type: size; }
.dg-frame { position: relative; width: min(100cqw, 133.33cqh); aspect-ratio: 4 / 3; }
.dg-canvas canvas {
  display: block; width: 100%; height: 100%;
  background: #fff; border-radius: 14px; touch-action: none; box-shadow: var(--shadow-lg);
}
.dg-canvas canvas.can-draw { cursor: crosshair; }
.dg-cover {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: rgba(0,0,0,.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border-radius: 14px; text-align: center; padding: 20px;
}
.dg-cover-title { font-size: 20px; font-weight: 600; }
.dg-cover-sub { color: var(--muted); font-size: 14px; }
.dg-cover-word { font-size: 44px; font-weight: 800; letter-spacing: -0.03em; color: var(--accent-hi); }
.dg-choices { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.dg-choices .btn { height: 50px; font-size: 17px; text-transform: capitalize; }
.dg-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; }
.dg-colors { display: grid; grid-template-columns: repeat(12, 26px); gap: 4px; }
.dg-color { width: 26px; height: 26px; border-radius: 7px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); }
.dg-color.on { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent-hi); }
.dg-sizes { display: flex; gap: 4px; }
.dg-size { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line-2); }
.dg-size i { display: block; border-radius: 50%; background: var(--text); }
.dg-size.on { border-color: var(--accent); background: rgba(var(--accent-rgb),.2); }
.dg-tools .btn { height: 34px; padding: 0 12px; }
.dg-side { display: flex; flex-direction: column; gap: 10px; min-height: 0; padding-bottom: 56px; }
.dg-players { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.dg-players li { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; }
.dg-players li .avatar { width: 26px; height: 26px; font-size: 14px; }
.dg-players .pname { flex: 1; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dg-players .pts { font-family: var(--mono); color: var(--muted); }
.dg-players .gain { font-family: var(--mono); font-size: 12px; color: var(--green); }
.dg-players li.me { border-color: rgba(var(--accent-rgb),.45); }
.dg-players li.guessed { background: rgba(34,197,94,.1); border-color: rgba(34,197,94,.4); }
.dg-players li.drawing { background: rgba(var(--accent-rgb),.12); }
.dg-feed { flex: 1; min-height: 120px; overflow-y: auto; padding: 10px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 5px; font-size: 13px; }
.dg-msg { line-height: 1.35; overflow-wrap: anywhere; }
.dg-msg b { font-weight: 600; margin-right: 4px; }
.dg-msg.right { color: var(--green); font-weight: 600; }
.dg-msg.close { color: var(--yellow); }
.dg-msg.sys { color: var(--dim); font-size: 12px; text-align: center; }
.dg-guess { display: flex; gap: 8px; }
.dg-guess input {
  flex: 1; min-width: 0; height: 44px; padding: 0 12px; border-radius: 10px;
  background: var(--field); border: 1px solid var(--line-2); color: var(--text); font: inherit; outline: none;
}
.dg-guess input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb),.2); }
.dg-guess input:disabled { opacity: .6; }
@media (max-width: 860px) {
  .dg { grid-template-columns: 1fr; grid-template-rows: auto 1fr; overflow-y: auto; padding: 10px; }
  .dg-canvas { flex: none; container-type: normal; }
  .dg-frame { width: 100%; }
  .dg-side { padding-bottom: 60px; }
  .dg-colors { grid-template-columns: repeat(6, 28px); }
  .dg-players { flex-direction: row; flex-wrap: wrap; }
  .dg-players li { padding: 4px 8px; }
  .dg-feed { min-height: 110px; max-height: 160px; }
}

/* ---------- Liar's Dice ---------- */
.die {
  --s: 46px;
  width: var(--s); height: var(--s); border-radius: calc(var(--s) * .2); flex: none;
  display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); padding: calc(var(--s) * .14);
  background: linear-gradient(160deg, #fff, #dcdce6); box-shadow: inset 0 -3px 0 rgba(0,0,0,.18), 0 6px 14px -6px rgba(0,0,0,.7);
}
.die i { border-radius: 50%; margin: calc(var(--s) * .05); }
.die i.on { background: #17171f; }
.die[data-v="1"] i.on { background: var(--accent); }
.die.sm { --s: 26px; }
.die.xs { --s: 20px; }
.die.roll { animation: roll .5s cubic-bezier(.2,.8,.3,1.2); }
.die.hit { box-shadow: 0 0 0 2px var(--green), 0 0 14px -2px var(--green); }
.die.miss { opacity: .4; }
@keyframes roll { from { transform: rotate(-200deg) scale(.4); opacity: 0; } }
.ld { gap: 20px; }
.ld-table { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; width: min(900px, 100%); }
.seat { position: relative; min-width: 150px; padding: 10px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; transition: border-color .2s, box-shadow .2s; }
.seat.turn { border-color: rgba(var(--accent-hi-rgb),.7); box-shadow: 0 0 30px -10px var(--accent-glow); }
.seat.me { background: var(--surface-2); }
.seat.out { opacity: .4; }
.seat-top { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.seat-top .avatar { width: 26px; height: 26px; font-size: 14px; }
.cups { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; min-height: 26px; }
.cup { width: 20px; height: 24px; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, #6d4c9f, #3b2566); box-shadow: inset 0 2px 0 rgba(255,255,255,.2); }
.bid-bubble { position: absolute; top: -12px; right: -8px; display: flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 999px; background: var(--grad); color: #fff; font-size: 13px; box-shadow: 0 6px 16px -6px var(--accent-glow); }
.lose-tag { position: absolute; top: -10px; left: 10px; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--danger); color: #fff; }
.ld-center { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ld-current { display: flex; flex-direction: column; align-items: center; gap: 8px; min-height: 90px; justify-content: center; }
.ld-current .muted { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; }
.bid-big { display: flex; align-items: center; gap: 12px; font-size: 40px; font-weight: 800; letter-spacing: -0.03em; }
.bid-big .die { --s: 56px; }
.ld-log { font-size: 15px; max-width: 560px; }
.ld-total { font-size: 12px; }
.ld-me { width: min(560px, 100%); padding: 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 14px; align-items: center; }
.ld-label { width: 100%; display: flex; justify-content: space-between; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.ld-timer { font-family: var(--mono); letter-spacing: 0; font-size: 14px; color: var(--text); }
.ld-mine { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; min-height: 56px; }
.ld-mine .die { --s: 56px; }
.ld-controls { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.ld-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.ld-row > .btn { flex: 1; min-width: 140px; }
.stepper { display: flex; align-items: center; gap: 6px; }
.stepper .btn { width: 40px; padding: 0; font-size: 20px; }
.stepper span { font-family: var(--mono); font-size: 24px; font-weight: 600; min-width: 34px; text-align: center; }
.ld-faces { display: flex; gap: 4px; }
.face-btn { padding: 5px; border-radius: 10px; border: 1px solid transparent; }
.face-btn.on { border-color: var(--accent); background: rgba(var(--accent-rgb),.2); }
.face-btn .die { --s: 32px; }
.btn.liar { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.liar:hover { filter: brightness(1.1); background: var(--danger); }
.ld-waiting { font-size: 14px; }

/* ---------- Word Bomb ---------- */
.wb { gap: 12px; }
.wb-ring { position: relative; width: min(760px, 100%); height: min(440px, 58vh); min-height: 300px; }
.wb-center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; }
.wb-bomb { font-size: 84px; line-height: 1; filter: drop-shadow(0 10px 30px rgba(0,0,0,.6)); }
.wb-bomb.ticking { animation: wobble .6s ease-in-out infinite; }
.wb-bomb.exploded { animation: blast .5s ease-out forwards; }
@keyframes wobble { 50% { transform: rotate(-8deg) scale(1.06); } }
@keyframes blast { to { transform: scale(1.8); opacity: 0; } }
.wb-chunk {
  margin-top: 6px; padding: 6px 16px; border-radius: 12px; font-family: var(--mono); font-weight: 600; font-size: 30px; letter-spacing: .1em;
  background: var(--grad); color: #fff; box-shadow: 0 10px 30px -10px var(--accent-glow);
}
.wb-arrow {
  position: absolute; left: 50%; top: 50%; width: 4px; height: 150px; margin-left: -2px; transform-origin: 50% 0;
  background: linear-gradient(180deg, rgba(var(--accent-hi-rgb),0), rgba(var(--accent-hi-rgb),.8)); border-radius: 4px; z-index: -1;
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.wb-seat {
  position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 3px;
  width: 130px; text-align: center; transition: opacity .2s;
}
.wb-seat .avatar.lg { width: 50px; height: 50px; font-size: 26px; transition: box-shadow .2s, transform .2s; }
.wb-seat.turn .avatar.lg { box-shadow: 0 0 0 3px var(--accent-hi), 0 0 30px var(--accent-glow); transform: scale(1.1); }
.wb-seat.out { opacity: .3; }
.wb-seat .pname { font-size: 13px; font-weight: 600; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wb-seat.me .pname { color: var(--accent-hi); }
.hearts { font-size: 12px; letter-spacing: 1px; }
.hearts i { font-style: normal; color: var(--surface-3); }
.hearts i.on { color: var(--danger); }
.typed { font-family: var(--mono); font-size: 15px; font-weight: 600; min-height: 20px; color: var(--yellow); text-transform: uppercase; }
.said { font-family: var(--mono); font-size: 12px; color: var(--green); text-transform: uppercase; }
.boom-tag { font-size: 26px; animation: pop .3s ease; }
.shake { animation: shake .35s; }
@keyframes shake { 20%, 60% { transform: translate(-50%, -50%) translateX(-6px); } 40%, 80% { transform: translate(-50%, -50%) translateX(6px); } }
input.shake { animation: shakeIn .35s; }
@keyframes shakeIn { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.wb-status { font-size: 16px; font-weight: 600; min-height: 24px; text-align: center; }
.wb-me { width: min(420px, 100%); }
.wb-me > div { display: flex; gap: 8px; }
.wb-me input {
  flex: 1; min-width: 0; height: 52px; padding: 0 16px; border-radius: 12px; text-transform: uppercase;
  background: var(--field); border: 1px solid var(--accent); color: var(--text); font: 600 22px/1 var(--mono); letter-spacing: .08em; outline: none;
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb),.2);
}
.wb-me .btn { height: 52px; }
.wb-letters { display: flex; flex-wrap: wrap; gap: 3px; justify-content: center; max-width: 480px; }
.wb-letters span { width: 20px; height: 22px; display: grid; place-items: center; border-radius: 5px; font: 600 11px var(--mono); color: var(--dim); background: var(--surface); border: 1px solid var(--line); }
.wb-letters span.on { color: #fff; background: rgba(var(--accent-rgb),.35); border-color: rgba(var(--accent-rgb),.6); }
@media (max-width: 640px) {
  .wb-seat { width: 90px; }
  .wb-seat .avatar.lg { width: 40px; height: 40px; font-size: 20px; }
  .wb-bomb { font-size: 60px; }
  .wb-chunk { font-size: 24px; }
  .wb-arrow { height: 110px; }
}

/* ---------- Spyfall ---------- */
.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.sp-grid { width: min(1080px, 100%); display: grid; grid-template-columns: 360px 1fr; gap: 20px; align-items: start; }
.sp-left, .sp-right { display: flex; flex-direction: column; gap: 12px; }
.sp-card {
  position: relative; height: 170px; border-radius: 18px; text-align: center; overflow: hidden;
  background: linear-gradient(160deg, #3a1428, #151320); border: 1px solid rgba(var(--accent-hi-rgb),.35);
  box-shadow: var(--shadow-lg), 0 0 60px -30px var(--accent-glow);
}
.sp-card.spy { background: linear-gradient(160deg, #47151f, #1c0f12); border-color: rgba(244,63,94,.45); }
.sp-back, .sp-face { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 16px; transition: opacity .25s, transform .25s; }
.sp-back { color: var(--muted); font-weight: 600; }
.sp-card:not(.shown) .sp-face { opacity: 0; transform: scale(.95); }
.sp-card.shown .sp-back { opacity: 0; }
.sp-big { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; }
.sp-small { font-size: 13px; color: var(--muted); }
.sp-timer { text-align: center; font-family: var(--mono); font-size: 34px; font-weight: 600; }
.sp-hint { font-size: 14px; text-align: center; color: var(--muted); }
.sp-vote { padding: 16px; border-radius: 16px; background: rgba(var(--accent-rgb),.12); border: 1px solid rgba(var(--accent-hi-rgb),.45); text-align: center; display: flex; flex-direction: column; gap: 10px; }
.sp-vote-q { font-size: 20px; font-weight: 700; }
.sp-vote-btns { display: flex; gap: 8px; }
.sp-vote-btns .btn { flex: 1; }
.sp-players { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.sp-players li { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.sp-players li.me { border-color: rgba(var(--accent-rgb),.45); }
.sp-players .pname { flex: 1; font-weight: 500; }
.sp-players .pts { font-family: var(--mono); color: var(--muted); font-size: 13px; }
.tag.ok { font-size: 11px; color: var(--green); }
.sp-note { font-size: 12px; }
.sp-right-head { display: flex; align-items: center; justify-content: space-between; }
.sp-right-head h2 { font-size: 18px; font-weight: 600; }
.sp-locs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.loc { padding: 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 500; text-align: left; transition: opacity .15s, border-color .15s; }
.loc:hover { border-color: var(--line-3); }
.loc.crossed { opacity: .3; text-decoration: line-through; }
.guessing .loc { border-color: rgba(244,63,94,.35); }
.guessing .loc:hover { background: rgba(244,63,94,.12); }
.loc.armed { background: rgba(244,63,94,.25); border-color: var(--danger); opacity: 1; text-decoration: none; }
.loc.answer { background: rgba(34,197,94,.2); border-color: var(--green); opacity: 1; text-decoration: none; }
@media (max-width: 860px) { .sp-grid { grid-template-columns: 1fr; } }

/* ---------- Codewords ---------- */
.cw { --red: #ef4444; --blue: #3b82f6; }
.cw-setup { width: min(720px, 100%); text-align: center; display: flex; flex-direction: column; gap: 14px; }
.cw-setup h2 { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.cw-teams { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; text-align: left; }
.cw-team { padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.cw-team.t0 { border-color: rgba(239,68,68,.45); background: linear-gradient(180deg, rgba(239,68,68,.1), var(--surface)); }
.cw-team.t1 { border-color: rgba(59,130,246,.45); background: linear-gradient(180deg, rgba(59,130,246,.1), var(--surface)); }
.cw-team h3 { font-size: 18px; }
.cw-team.t0 h3 { color: var(--red); }
.cw-team.t1 h3 { color: var(--blue); }
.cw-team ul { list-style: none; display: flex; flex-direction: column; gap: 6px; min-height: 80px; }
.cw-team li { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.cw-team li .avatar { width: 26px; height: 26px; font-size: 14px; }
.cw-team li .role { margin-left: auto; font-size: 11px; color: var(--muted); }
.cw-team li.me .pname { color: var(--accent-hi); }
.cw-join { display: flex; gap: 6px; flex-wrap: wrap; }
.cw-join .btn.on { border-color: var(--accent); background: rgba(var(--accent-rgb),.22); color: #fff; }
.cw-setup-btns { display: flex; gap: 10px; justify-content: center; }
.cw-game { width: min(1000px, 100%); display: grid; grid-template-columns: 1fr 220px; gap: 12px 16px; }
.cw-score, .cw-clue, .cw-clueform, .cw-board, .cw-foot { grid-column: 1; }
.cw-side { grid-column: 2; grid-row: 1 / span 5; display: flex; flex-direction: column; gap: 10px; }
.cw-score { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cw-count { font-size: 14px; color: var(--muted); }
.cw-count b { font-size: 26px; font-weight: 800; margin-right: 4px; }
.cw-count.t0 b { color: var(--red); }
.cw-count.t1 b { color: var(--blue); }
.cw-turn { font-weight: 600; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line-2); }
.cw-turn.t0 { color: #fecaca; background: rgba(239,68,68,.15); border-color: rgba(239,68,68,.5); }
.cw-turn.t1 { color: #bfdbfe; background: rgba(59,130,246,.15); border-color: rgba(59,130,246,.5); }
.cw-clue { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; }
.cw-clue-word { font-size: 26px; font-weight: 800; letter-spacing: .04em; }
.cw-clue-n { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: 20px; background: var(--grad); color: #fff; }
.cw-clueform { display: flex; gap: 8px; justify-content: center; }
.cw-clueform input, .cw-clueform select {
  height: 44px; padding: 0 12px; border-radius: 10px; background: var(--field); border: 1px solid var(--line-2); color: var(--text); font: inherit; outline: none;
}
.cw-clueform input { width: 220px; text-transform: uppercase; }
.cw-clueform input:focus { border-color: var(--accent); }
.cw-board { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.cw-card {
  height: clamp(54px, 9vw, 78px); border-radius: 12px; padding: 4px; font-weight: 700; font-size: clamp(11px, 1.6vw, 15px); text-transform: uppercase; letter-spacing: .03em;
  background: linear-gradient(180deg, #2a2a36, #1d1d27); border: 1px solid var(--line-2); overflow-wrap: anywhere; line-height: 1.1;
  transition: transform .12s, background .2s, border-color .2s, opacity .2s;
}
.cw-card:disabled { cursor: default; }
.cw-board.live .cw-card:not(:disabled):hover { transform: translateY(-2px); border-color: var(--accent-hi); }
.cw-board.spyview .cw-card.k0 { box-shadow: inset 0 -5px 0 var(--red); color: #fecaca; }
.cw-board.spyview .cw-card.k1 { box-shadow: inset 0 -5px 0 var(--blue); color: #bfdbfe; }
.cw-board.spyview .cw-card.k3 { box-shadow: inset 0 -5px 0 #000, inset 0 0 0 2px #f43f5e; color: #fda4af; }
.cw-card.open { color: #fff; animation: flip .35s ease; }
.cw-card.open.k0 { background: linear-gradient(180deg, #ef4444, #b91c1c); border-color: #ef4444; }
.cw-card.open.k1 { background: linear-gradient(180deg, #3b82f6, #1d4ed8); border-color: #3b82f6; }
.cw-card.open.k2 { background: linear-gradient(180deg, #a8a29e, #78716c); border-color: #a8a29e; color: #1c1917; }
.cw-card.open.k3 { background: #000; border-color: #f43f5e; color: #f43f5e; }
.cw-board.spyview .cw-card.open { opacity: .45; }
@keyframes flip { from { transform: rotateX(90deg); } }
.cw-foot { display: flex; align-items: center; justify-content: space-between; }
.cw-list { list-style: none; display: flex; flex-direction: column; gap: 4px; padding: 10px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; }
.cw-list.t0 { border-color: rgba(239,68,68,.4); }
.cw-list.t1 { border-color: rgba(59,130,246,.4); }
.cw-list li.me { color: var(--accent-hi); }
.cw-log { list-style: none; flex: 1; min-height: 120px; max-height: 320px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; padding: 10px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 12px; }
.cw-log li.t0 { color: #fca5a5; }
.cw-log li.t1 { color: #93c5fd; }
.cw-log li.k3 { color: var(--danger); font-weight: 700; }
@media (max-width: 760px) {
  .cw-game { grid-template-columns: 1fr; }
  .cw-side { grid-column: 1; grid-row: auto; }
  .cw-board { gap: 5px; }
  .cw-clueform input { width: 150px; }
}
@media (max-width: 520px) { .cw-teams { grid-template-columns: 1fr; } }

/* ---------- Chess ---------- */
.ch-wrap { display: flex; gap: 20px; align-items: flex-start; justify-content: center; width: 100%; flex-wrap: wrap; }
.ch-left { display: flex; flex-direction: column; gap: 8px; --b: min(560px, calc(100vw - 32px), calc(100vh - 220px)); width: var(--b); }
.ch-player { display: flex; align-items: center; gap: 10px; }
.ch-name { font-weight: 600; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-mat { font-family: var(--mono); font-size: 13px; color: var(--green); }
.ch-clock { padding: 4px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line-2); font-family: var(--mono); font-size: 20px; transition: background .2s, border-color .2s; }
.ch-clock.running { background: rgba(var(--accent-rgb),.2); border-color: var(--accent); }
.ch-clock.running.low { background: rgba(244,63,94,.2); border-color: var(--danger); }
.ch-board-wrap { position: relative; }
.ch-board {
  width: var(--b); height: var(--b); display: grid; grid-template-columns: repeat(8, 1fr); grid-template-rows: repeat(8, 1fr);
  border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-lg), 0 0 80px -40px var(--accent-glow); user-select: none;
}
.sq-c { position: relative; display: grid; place-items: center; padding: 0; cursor: default; }
.sq-c.light { background: #f3dbe7; }
.sq-c.dark { background: #b0527f; }
.ch-board.live .sq-c { cursor: pointer; }
.sq-c.last.light { background: #e6dc8a; }
.sq-c.last.dark { background: #b4a55c; }
.sq-c.sel { box-shadow: inset 0 0 0 4px rgba(255,255,255,.85); }
.sq-c.check { background: radial-gradient(circle, #ff5b5b 0%, #c02b2b 60%, transparent 90%) !important; }
.sq-c.dot::after { content: ""; position: absolute; width: 28%; height: 28%; border-radius: 50%; background: rgba(20,14,40,.35); }
.sq-c.cap::after { content: ""; position: absolute; inset: 6%; border-radius: 50%; border: 5px solid rgba(20,14,40,.35); }
.pc { font-size: calc(var(--b) / 8 * .78); line-height: 1; position: relative; z-index: 1; font-family: "Segoe UI Symbol", "Noto Sans Symbols2", "DejaVu Sans", sans-serif; }
.pc.w { color: #fff; text-shadow: 0 0 1px #000, 0 0 2px #000, 0 2px 3px rgba(0,0,0,.5); }
.pc.b { color: #15121f; text-shadow: 0 0 1px #fff, 0 1px 0 rgba(255,255,255,.35), 0 2px 3px rgba(0,0,0,.4); }
.coord { position: absolute; font-size: 10px; font-weight: 700; color: rgba(20,14,40,.55); }
.coord.rank { top: 3px; left: 4px; }
.coord.file { bottom: 2px; right: 4px; }
.ch-promo { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; background: rgba(0,0,0,.7); border-radius: 12px; z-index: 3; }
.ch-promo button { width: 70px; height: 70px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line-2); font-size: 48px; }
.ch-promo button:hover { border-color: var(--accent); }
.ch-side { width: 260px; display: flex; flex-direction: column; gap: 10px; }
.ch-status { font-weight: 600; min-height: 22px; }
.ch-draw { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(var(--accent-rgb),.14); border: 1px solid rgba(var(--accent-hi-rgb),.45); font-size: 14px; }
.ch-moves { list-style: none; height: 300px; overflow-y: auto; padding: 8px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-family: var(--mono); font-size: 13px; }
.ch-moves li { display: grid; grid-template-columns: 36px 1fr 1fr; padding: 2px 4px; border-radius: 6px; }
.ch-moves li:nth-child(odd) { background: rgba(255,255,255,.03); }
.ch-moves .mn { color: var(--dim); }
.ch-actions { display: flex; gap: 8px; }
.ch-actions .btn { flex: 1; }
@media (max-width: 900px) { .ch-side { width: var(--b, 100%); max-width: 560px; } .ch-moves { height: 120px; } }

/* ---------- Type Race ---------- */
.tr { gap: 16px; }
.tr-banner { font-size: 18px; font-weight: 600; min-height: 26px; }
.tr-lanes { width: min(860px, 100%); display: flex; flex-direction: column; gap: 8px; }
.tr-lane { display: grid; grid-template-columns: 130px 1fr 110px; gap: 12px; align-items: center; }
.tr-who { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tr-lane.me .tr-who { color: var(--accent-hi); }
.tr-track { position: relative; height: 34px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.tr-fill { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, rgba(var(--accent-rgb),.05), rgba(var(--accent-rgb),.3)); transition: width .25s linear; }
.tr-lane.done .tr-fill { background: linear-gradient(90deg, rgba(34,197,94,.05), rgba(34,197,94,.3)); }
.tr-car { position: absolute; top: 3px; transition: left .25s linear; }
.tr-car .avatar { width: 28px; height: 28px; font-size: 15px; }
.tr-stat { font-family: var(--mono); font-size: 13px; color: var(--muted); text-align: right; }
.tr-box { width: min(860px, 100%); padding: 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 12px; transition: opacity .2s; }
.tr-box.locked { opacity: .6; }
.tr-passage { font-size: 22px; line-height: 1.6; font-family: var(--mono); color: var(--dim); cursor: text; user-select: none; }
.tr-passage .done { color: var(--green); }
.tr-passage .cur { color: var(--text); background: rgba(var(--accent-rgb),.35); border-radius: 3px; box-shadow: 0 2px 0 var(--accent-hi); }
.tr-passage .cur.wrong { background: rgba(244,63,94,.5); box-shadow: 0 2px 0 var(--danger); }
.tr-input {
  height: 44px; padding: 0 14px; border-radius: 10px; background: var(--field); border: 1px solid var(--line-2); color: var(--text);
  font: 16px var(--mono); outline: none;
}
.tr-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb),.2); }
.tr-mystats { font-size: 13px; font-family: var(--mono); }
@media (max-width: 640px) {
  .tr-lane { grid-template-columns: 1fr 70px; }
  .tr-who { grid-column: 1 / -1; }
  .tr-passage { font-size: 17px; }
}

/* ---------- RPS Tournament ---------- */
.rps { gap: 18px; }
.rps-round { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-hi); }
.rps-arena { width: min(620px, 100%); padding: 22px; border-radius: 22px; background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 16px; align-items: center; box-shadow: var(--shadow-lg); }
.rps-vs { display: flex; align-items: center; justify-content: space-around; width: 100%; }
.rps-side { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 140px; }
.rps-side b { font-size: 15px; }
.rps-x { font-weight: 800; font-size: 20px; color: var(--dim); }
.rps-dots { display: flex; gap: 5px; }
.rps-dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--surface-3); }
.rps-dots i.on { background: var(--green); box-shadow: 0 0 10px var(--green); }
.rps-timer { width: 100%; height: 5px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.rps-timer i { display: block; height: 100%; background: var(--grad); }
.rps-reveal { min-height: 90px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.rps-throws { display: flex; align-items: center; gap: 24px; animation: pop .3s ease; }
.big-ico { font-size: 64px; line-height: 1; }
.rps-throws .vs { color: var(--dim); font-weight: 700; }
.rps-msg { font-size: 17px; font-weight: 600; text-align: center; }
.rps-msg.good { color: var(--green); }
.rps-msg.bad { color: var(--danger); }
.rps-buttons { display: flex; gap: 12px; }
.rps-btn { width: 116px; height: 116px; border-radius: 22px; background: var(--surface-3); border: 1px solid var(--line-2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; transition: transform .1s, border-color .15s, background .15s; }
.rps-btn:hover { transform: translateY(-3px); border-color: var(--accent-hi); }
.rps-btn.on { background: rgba(var(--accent-rgb),.3); border-color: var(--accent); }
.rps-ico { font-size: 48px; line-height: 1; }
.rps-lbl { font-size: 13px; font-weight: 600; color: var(--muted); }
.rps-spec { font-size: 14px; }
.rps-bracket { display: flex; gap: 16px; overflow-x: auto; max-width: 100%; padding-bottom: 60px; }
.br-col { display: flex; flex-direction: column; gap: 10px; justify-content: space-around; min-width: 170px; }
.br-title { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--dim); text-align: center; }
.br-col.cur .br-title { color: var(--accent-hi); }
.br-match { border-radius: 12px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.br-match.mine { border-color: rgba(var(--accent-rgb),.55); }
.br-row { display: flex; align-items: center; gap: 6px; padding: 6px 10px; font-size: 13px; }
.br-row + .br-row { border-top: 1px solid var(--line); }
.br-row .avatar.xs { margin: 0; }
.br-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.br-w { font-family: var(--mono); color: var(--muted); }
.br-row.won { background: rgba(34,197,94,.1); font-weight: 600; }
.br-row.lost { opacity: .45; }
@media (max-width: 520px) {
  .rps-btn { width: 92px; height: 92px; }
  .rps-ico { font-size: 38px; }
  .big-ico { font-size: 48px; }
  .rps-side { min-width: 100px; }
}

/* ---------- Snake Battle ---------- */
.sn-scores { flex: none; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; padding: 12px 16px 0; }
.sn-chip { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); font-size: 13px; font-weight: 600; }
.sn-chip .sw { width: 10px; height: 10px; border-radius: 3px; background: var(--c); box-shadow: 0 0 8px var(--c); }
.sn-chip b { font-family: var(--mono); margin-left: 2px; }
.sn-chip.me { border-color: var(--c); }
.sn-chip.gone { opacity: .35; }

/* ---------- Most Likely To ---------- */
.ml-top { width: min(820px, 100%); }
.ml-timer { font-family: var(--mono); font-size: 18px; color: var(--text); min-width: 40px; text-align: right; }
.ml-prompt { width: min(820px, 100%); text-align: center; font-size: clamp(24px, 4vw, 36px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; }
.ml-choices { width: min(820px, 100%); }
.ml-choices.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.ml-choices.wyr { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: stretch; }
.ml-or { align-self: center; font-weight: 800; color: var(--dim); text-transform: uppercase; }
.ml-opt {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 12px 14px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line-2); font-weight: 600; text-align: left; transition: border-color .15s, transform .1s, background .15s;
}
.ml-choices.wyr .ml-opt { min-height: 150px; justify-content: center; text-align: center; font-size: 20px; flex-direction: column; }
.ml-opt:not(:disabled):hover { border-color: var(--accent-hi); transform: translateY(-2px); }
.ml-opt:disabled { cursor: default; }
.ml-opt.picked { border-color: var(--accent); background: rgba(var(--accent-rgb),.18); }
.ml-opt.top { border-color: var(--green); box-shadow: 0 0 0 2px var(--green); }
.ml-label { position: relative; z-index: 1; }
.ml-bar { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(var(--accent-rgb),.22); z-index: 0; transition: width .6s cubic-bezier(.2,.8,.2,1); }
.ml-opt.top .ml-bar { background: rgba(34,197,94,.22); }
.ml-who { position: relative; z-index: 1; display: flex; gap: 2px; flex-wrap: wrap; margin-left: auto; }
.ml-choices.wyr .ml-who { margin: 0; justify-content: center; }
.ml-n { position: relative; z-index: 1; font-family: var(--mono); }
.ml-opt .avatar { position: relative; z-index: 1; }
@media (max-width: 640px) { .ml-choices.wyr { grid-template-columns: 1fr; } .ml-or { text-align: center; } .ml-choices.wyr .ml-opt { min-height: 90px; } }

/* ---------- Bluff ---------- */
.bl-q { width: min(820px, 100%); }
.bl-write { width: min(820px, 100%); display: flex; gap: 8px; }
.bl-write input {
  flex: 1; min-width: 0; height: 52px; padding: 0 16px; border-radius: 12px; background: var(--field); border: 1px solid var(--line-2);
  color: var(--text); font: 600 18px var(--sans); outline: none;
}
.bl-write input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb),.2); }
.bl-write input:disabled { opacity: .6; }
.bl-write .btn { height: 52px; }
.bl-options { width: min(820px, 100%); display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bl-opt {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 58px; padding: 12px 16px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line-2); font-weight: 600; font-size: 17px; text-align: left; text-transform: capitalize;
  transition: border-color .15s, transform .1s;
}
button.bl-opt:not(:disabled):hover { border-color: var(--accent-hi); transform: translateY(-2px); }
button.bl-opt:disabled { opacity: .55; cursor: default; }
.bl-opt.revealed { animation: rise .25s ease; }
.bl-opt.truth { border-color: var(--green); background: rgba(34,197,94,.12); box-shadow: 0 0 0 2px var(--green); }
.bl-text { flex: 1 1 100%; }
.bl-by { font-size: 12px; font-weight: 500; color: var(--muted); text-transform: none; }
.bl-opt.truth .bl-by { color: #86efac; }
.bl-who { display: flex; gap: 2px; margin-left: auto; }
@media (max-width: 640px) { .bl-options { grid-template-columns: 1fr; } }

/* ---------- Hangman ---------- */
.hm-stage { width: min(820px, 100%); display: flex; gap: 24px; align-items: center; }
.hm-gallows { width: 170px; flex: none; }
.hm-gallows path, .hm-gallows circle { stroke: var(--surface-3); stroke-width: 6; transition: stroke .3s; }
.hm-gallows .on { stroke: var(--text); }
.hm-gallows #hm-head.on, .hm-gallows #hm-body.on, .hm-gallows #hm-arms.on, .hm-gallows #hm-legs.on { stroke: var(--danger); }
.hm-right { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.hm-puzzle { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.hm-word { display: flex; gap: 5px; }
.hm-tile {
  width: clamp(26px, 5vw, 42px); height: clamp(34px, 6vw, 52px); display: grid; place-items: center; border-radius: 8px;
  background: var(--surface); border-bottom: 3px solid var(--line-3); font: 700 clamp(18px, 3.4vw, 28px) var(--mono);
}
.hm-tile.open { background: var(--surface-2); border-color: var(--accent); animation: pop .3s ease; }
.hm-keys { width: min(640px, 100%); display: grid; grid-template-columns: repeat(13, 1fr); gap: 5px; }
.hm-key { height: 42px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line-2); font: 700 15px var(--mono); transition: background .1s, border-color .1s; }
.hm-key:not(:disabled):hover { border-color: var(--accent-hi); background: var(--surface-3); }
.hm-key:disabled { cursor: default; opacity: .5; }
.hm-key.hit { background: rgba(34,197,94,.25); border-color: var(--green); opacity: 1; }
.hm-key.miss { background: rgba(244,63,94,.15); border-color: transparent; opacity: .45; text-decoration: line-through; }
.hm-solve { width: min(640px, 100%); }
@media (max-width: 640px) {
  .hm-stage { flex-direction: column; }
  .hm-gallows { width: 110px; }
  .hm-keys { grid-template-columns: repeat(9, 1fr); }
}

/* ---------- Bingo ---------- */
.bg-wrap { width: min(900px, 100%); display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.bg-caller, .bg-me { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.bg-ball {
  width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center; font: 800 44px var(--sans); letter-spacing: -0.03em;
  background: radial-gradient(circle at 35% 30%, #fff, #d4d4de 55%, #9a9aa8); color: #15151c;
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.9), inset 0 -8px 16px rgba(0,0,0,.15), 0 0 0 10px var(--c, #ec4899);
}
.bg-ball[data-l="B"] { --c: #3b82f6; } .bg-ball[data-l="I"] { --c: #ef4444; } .bg-ball[data-l="N"] { --c: #e5e7eb; } .bg-ball[data-l="G"] { --c: #22c55e; } .bg-ball[data-l="O"] { --c: #f59e0b; }
.bg-ball.pop { animation: pop .4s cubic-bezier(.2,1.6,.4,1); }
.bg-recent { display: flex; gap: 5px; flex-wrap: wrap; justify-content: center; min-height: 28px; }
.bg-mini { font: 600 12px var(--mono); padding: 4px 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line-2); }
.bg-all { display: flex; flex-direction: column; gap: 3px; }
.bg-row { display: grid; grid-template-columns: 20px repeat(15, 20px); gap: 2px; font: 600 9px var(--mono); }
.bg-row b { color: var(--accent-hi); }
.bg-row span { height: 18px; display: grid; place-items: center; border-radius: 4px; color: var(--dim); background: var(--surface); }
.bg-row span.on { color: #fff; background: rgba(var(--accent-rgb),.45); }
.bg-card { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; width: min(380px, 100%); padding: 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); }
.bg-head { text-align: center; font: 800 22px var(--sans); color: var(--accent-hi); }
.bg-cell { aspect-ratio: 1; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line-2); font: 700 20px var(--mono); position: relative; transition: background .15s, transform .1s; }
.bg-cell:not(:disabled):hover { border-color: var(--accent-hi); }
.bg-cell.marked::after { content: ""; position: absolute; inset: 12%; border-radius: 50%; background: rgba(244,63,94,.55); box-shadow: 0 0 12px rgba(244,63,94,.5); }
.bg-cell.free { color: var(--yellow); }
.bg-cell.free::after { background: rgba(250,204,21,.25); box-shadow: none; }
.bg-cell.line { border-color: var(--green); box-shadow: 0 0 0 2px var(--green); }
.bg-cell:disabled { cursor: default; }
.bg-btn { width: min(380px, 100%); height: 56px; font-size: 22px; letter-spacing: .06em; }
.bg-btn.ready { animation: nudgeBtn 1s ease-in-out infinite; box-shadow: 0 0 40px var(--accent-glow); }
@keyframes nudgeBtn { 50% { transform: scale(1.04); } }
@media (max-width: 760px) { .bg-wrap { grid-template-columns: 1fr; } .bg-caller { order: 1; } .bg-ball { width: 110px; height: 110px; font-size: 34px; } .bg-all { display: none; } }

/* ---------- Checkers ---------- */
.ck-board {
  --b: min(560px, calc(100vw - 32px), calc(100vh - 250px));
  width: var(--b); height: var(--b); display: grid; grid-template-columns: repeat(8, 1fr); grid-template-rows: repeat(8, 1fr); border-radius: 12px; overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 80px -40px var(--accent-glow);
}
.ck-sq { position: relative; display: grid; place-items: center; padding: 0; cursor: default; min-height: 0; overflow: hidden; }
.ck-sq.light { background: #e8dcc4; }
.ck-sq.dark { background: #5b4636; }
.ck-sq.last { box-shadow: inset 0 0 0 3px rgba(250,204,21,.6); }
.ck-sq.target { cursor: pointer; }
.ck-sq.target::after { content: ""; width: 30%; height: 30%; border-radius: 50%; background: rgba(var(--accent-rgb),.75); box-shadow: 0 0 14px var(--accent); }
.ck-pc {
  width: 78%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font-size: calc(var(--b) / 8 * .36); line-height: 1; transition: transform .15s;
  box-shadow: inset 0 -5px 0 rgba(0,0,0,.25), inset 0 0 0 5px rgba(255,255,255,.12), 0 4px 8px rgba(0,0,0,.5);
}
.ck-pc.s0 { background: radial-gradient(circle at 35% 30%, #f87171, #b91c1c); color: #fecaca; }
.ck-pc.s1 { background: radial-gradient(circle at 35% 30%, #f4f4f5, #a1a1aa); color: #3f3f46; }
.ck-board.live .ck-pc.can { cursor: pointer; }
.ck-board.live .ck-pc.can:hover { transform: scale(1.06); }
.ck-pc.sel { box-shadow: 0 0 0 3px var(--accent-hi), 0 0 20px var(--accent-glow); transform: scale(1.08); }

/* ---------- Ultimate Tic-Tac-Toe ---------- */
.ut-board { --b: min(560px, calc(100vw - 32px), calc(100vh - 250px)); width: var(--b); height: var(--b); display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ut-small { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; padding: 5px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); transition: box-shadow .2s, border-color .2s, opacity .2s; }
.ut-small.active { border-color: var(--accent-hi); box-shadow: 0 0 0 2px rgba(var(--accent-hi-rgb),.5), 0 0 30px -8px var(--accent-glow); }
.ut-small.done .ut-cell { opacity: .25; }
.ut-small.big-line { box-shadow: 0 0 0 3px var(--green); }
.ut-cell { border-radius: 6px; background: var(--surface-2); font: 800 calc(var(--b) / 20) var(--sans); display: grid; place-items: center; padding: 0; }
.ut-cell:not(:disabled):hover { background: var(--surface-3); }
.ut-cell:disabled { cursor: default; }
.ut-cell.m1 { color: #ff5b3a; }
.ut-cell.m2 { color: #4d8dff; }
.ut-cell.last { box-shadow: inset 0 0 0 2px var(--yellow); }
.ut-big { position: absolute; inset: 0; display: grid; place-items: center; font: 800 calc(var(--b) / 5) var(--sans); pointer-events: none; animation: pop .35s cubic-bezier(.2,1.6,.4,1); }
.ut-small.w1 .ut-big { color: #ff5b3a; text-shadow: 0 0 30px rgba(255,91,58,.6); }
.ut-small.w2 .ut-big { color: #4d8dff; text-shadow: 0 0 30px rgba(77,141,255,.6); }

/* ---------- Dots & Boxes ---------- */
.db-board {
  --b: min(520px, calc(100vw - 40px), calc(100vh - 260px));
  width: var(--b); height: var(--b); display: grid;
}
.db-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--text); box-shadow: 0 0 8px rgba(255,255,255,.3); z-index: 1; }
.db-line { padding: 0; border-radius: 6px; background: transparent; position: relative; }
.db-line::before { content: ""; position: absolute; border-radius: 4px; background: var(--surface-3); transition: background .15s; }
.db-line.h::before { left: -2px; right: -2px; top: 4px; bottom: 4px; }
.db-line.v::before { top: -2px; bottom: -2px; left: 4px; right: 4px; }
.db-board.live .db-line:not(:disabled):hover::before { background: var(--accent-hi); }
.db-line:disabled { cursor: default; }
.db-line.s0::before { background: #ff5b3a; box-shadow: 0 0 10px rgba(255,91,58,.6); }
.db-line.s1::before { background: #4d8dff; box-shadow: 0 0 10px rgba(77,141,255,.6); }
.db-line.last::before { outline: 2px solid var(--yellow); }
.db-box { display: grid; place-items: center; font-weight: 700; font-size: 13px; border-radius: 4px; margin: 3px; }
.db-box.s0 { background: rgba(255,91,58,.25); color: #fecaca; animation: pop .3s ease; }
.db-box.s1 { background: rgba(77,141,255,.25); color: #bfdbfe; animation: pop .3s ease; }

/* ---------- Mini Golf ---------- */
.gf-top { flex: none; text-align: center; padding: 10px 16px 0; font: 500 13px/1.4 "Geist Mono", monospace; color: var(--dim); }
.gf-wrap { flex: none; display: flex; justify-content: center; padding: 0 16px 10px; overflow-x: auto; }
.gf-card { border-collapse: collapse; font: 500 12px/1 "Geist Mono", monospace; }
.gf-card th, .gf-card td { padding: 6px 9px; text-align: center; border: 1px solid var(--line); }
.gf-card th { text-align: left; color: var(--dim); font-weight: 500; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gf-card tr.head td, .gf-card tr.par td { color: var(--dim); }
.gf-card tr.p0 td:last-child, .gf-card tr.p1 td:last-child { font-weight: 700; color: var(--text); }
.gf-card tr.p0 th { box-shadow: inset 3px 0 #ff5b3a; }
.gf-card tr.p1 th { box-shadow: inset 3px 0 #4d8dff; }
.game-page #c { touch-action: none; }

/* ---------- Wavelength ---------- */
.wl-clue.wait { color: var(--muted); font-size: clamp(18px, 3vw, 24px); font-weight: 600; }
.wl-dial { width: min(820px, 100%); }
.wl-ends { display: flex; justify-content: space-between; font-weight: 700; font-size: 15px; margin-bottom: 10px; }
.wl-ends span:first-child { color: #60a5fa; } .wl-ends span:last-child { color: #f472b6; }
.wl-track { position: relative; height: 84px; border-radius: 16px; border: 1px solid var(--line-2); background: linear-gradient(90deg, rgba(96,165,250,.28), rgba(var(--accent-rgb),.18) 50%, rgba(244,114,182,.28)); }
.wl-track input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; touch-action: none; }
.wl-track input:disabled { cursor: default; pointer-events: none; }
.wl-thumb { position: absolute; top: -6px; bottom: -6px; width: 6px; margin-left: -3px; border-radius: 3px; background: #fff; box-shadow: 0 0 16px rgba(255,255,255,.7); pointer-events: none; }
.wl-target { position: absolute; inset: 0; pointer-events: none; overflow: hidden; border-radius: inherit; }
.wl-target i { position: absolute; top: 0; bottom: 0; left: var(--x); transform: translateX(-50%); }
.wl-target .z3 { width: 40%; background: rgba(250,204,21,.14); }
.wl-target .z2 { width: 24%; background: rgba(250,204,21,.22); }
.wl-target .z1 { width: 10%; background: rgba(250,204,21,.55); }
.wl-mark { position: absolute; top: 50%; transform: translate(-50%, -50%); pointer-events: none; }
.wl-mark .avatar { box-shadow: 0 0 0 2px #0a0a0f; }
.wl-mark.me .avatar { box-shadow: 0 0 0 2px var(--accent); }
.wl-form { display: flex; gap: 8px; width: min(560px, 100%); }
.wl-form input { flex: 1; }
/* shared text field for newer party games */
.wl-form input, .p-input {
  flex: 1; min-width: 0; height: 48px; padding: 0 14px; border-radius: 12px; background: var(--field); border: 1px solid var(--line-2);
  color: var(--text); font: 600 16px var(--sans); outline: none;
}
.wl-form input:focus, .p-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb),.2); }

/* ---------- Imposter ---------- */
.im-card { width: min(560px, 100%); display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 20px; border-radius: 18px; border: 1px solid var(--line-2); background: linear-gradient(180deg, rgba(var(--accent-rgb),.14), rgba(var(--accent-rgb),.04)); text-align: center; }
.im-card.imp { background: linear-gradient(180deg, rgba(244,63,94,.2), rgba(244,63,94,.05)); border-color: rgba(244,63,94,.5); }
.im-cat { font-size: 13px; color: var(--muted); } .im-cat b { color: var(--text); }
.im-hint { order: 3; font-size: 13px; color: var(--muted); }
.im-word { font-size: clamp(26px, 5vw, 40px); font-weight: 800; letter-spacing: -0.03em; }
.im-card.imp .im-word { color: #fda4af; }
.im-list { width: min(720px, 100%); display: flex; flex-direction: column; gap: 8px; }
.im-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font: inherit; text-align: left; }
button.im-row { cursor: pointer; } button.im-row:hover { border-color: var(--accent-hi); }
.im-row.turn { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.im-row.picked { border-color: var(--accent); background: rgba(var(--accent-rgb),.18); }
.im-row.imp { border-color: #f43f5e; background: rgba(244,63,94,.14); }
.im-name { font-weight: 600; min-width: 90px; }
.im-words { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; }
.im-words b { font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.im-typing { color: var(--dim); animation: pulse 1s infinite; }
.im-votes { font: 600 12px var(--mono); color: #fda4af; }
.im-voted { font: 500 12px var(--mono); color: var(--dim); }
.im-opts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; width: min(720px, 100%); }

/* ---------- Telephone ---------- */
.tp-play, .tp-show { width: min(760px, 100%); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.tp-task { font-size: clamp(20px, 3vw, 28px); font-weight: 700; letter-spacing: -0.02em; text-align: center; }
.tp-prompt { font-size: clamp(22px, 4vw, 32px); font-weight: 800; text-align: center; padding: 12px 22px; border-radius: 14px; background: rgba(var(--accent-rgb),.14); border: 1px solid rgba(var(--accent-rgb),.4); }
.tp-padwrap { width: 100%; display: flex; flex-direction: column; gap: 10px; align-items: center; }
#pad, #see, .tp-item canvas { width: min(100%, 640px); aspect-ratio: 4 / 3; height: auto; border-radius: 14px; background: #fff; display: block; }
#pad { touch-action: none; cursor: crosshair; box-shadow: 0 0 0 1px var(--line-2); }
.tp-see { width: 100%; display: flex; justify-content: center; }
.tp-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; }
.tp-colors, .tp-sizes { display: flex; gap: 6px; }
.tp-color { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line-3); cursor: pointer; }
.tp-color.on { box-shadow: 0 0 0 3px var(--accent); }
.tp-size { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); display: grid; place-items: center; cursor: pointer; }
.tp-size i { display: block; border-radius: 50%; background: var(--text); }
.tp-size.on { border-color: var(--accent); background: rgba(var(--accent-rgb),.18); }
.tp-chain { width: 100%; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.tp-item { width: min(100%, 640px); display: flex; flex-direction: column; gap: 8px; animation: rise .3s ease; }
.tp-item.text p { font-size: clamp(20px, 3vw, 26px); font-weight: 700; padding: 14px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-2); text-align: center; }
.tp-who { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); }
.tp-item canvas { width: min(100%, 460px); align-self: center; }

/* ---------- Poker ---------- */
.pk-seats { width: min(980px, 100%); display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.pk-seat { position: relative; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); display: flex; flex-direction: column; gap: 6px; transition: border-color .2s, box-shadow .2s, opacity .2s; }
.pk-seat.me { border-color: rgba(var(--accent-rgb),.5); }
.pk-seat.turn { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent), 0 0 30px -8px var(--accent-glow); }
.pk-seat.folded { opacity: .45; }
.pk-seat.out { opacity: .3; }
.pk-seat.won { border-color: var(--green); box-shadow: 0 0 0 2px var(--green); }
.pk-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pk-name { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-dealer { margin-left: auto; width: 20px; height: 20px; border-radius: 50%; background: #fff; color: #111; font: 800 11px/20px var(--sans); text-align: center; flex: none; }
.pk-chips { font: 600 15px var(--mono); color: #fcd34d; }
.pk-last { font-size: 12px; color: var(--muted); }
.pk-last.hand { color: var(--green); font-weight: 600; }
.pk-hole { display: flex; gap: 4px; min-height: 0; }
.pk-table { width: min(700px, 100%); padding: 22px 16px; border-radius: 120px; background: radial-gradient(ellipse at center, #17613a 0%, #0f4a2b 70%, #0b3620 100%); border: 8px solid #3a2616; box-shadow: inset 0 0 40px rgba(0,0,0,.5), 0 20px 40px -20px rgba(0,0,0,.8); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.pk-board { display: flex; gap: 8px; }
.pk-pot { font: 700 15px var(--mono); color: #fde68a; min-height: 20px; }
.pk-log { font-size: 13px; color: #d1fae5; min-height: 18px; text-align: center; }
.pk-card { width: 34px; height: 48px; border-radius: 6px; background: #fafafa; color: #111; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; box-shadow: 0 2px 6px rgba(0,0,0,.35); font-family: var(--sans); }
.pk-card b { font-size: 15px; font-weight: 800; }
.pk-card i { font-style: normal; font-size: 15px; }
.pk-card.red { color: #dc2626; }
.pk-card.big { width: 54px; height: 76px; border-radius: 8px; }
.pk-card.big b, .pk-card.big i { font-size: 22px; }
.pk-card.back { background: repeating-linear-gradient(45deg, #be185d 0 6px, #db2777 6px 12px); border: 2px solid #fff; }
.pk-card.slot { background: rgba(0,0,0,.2); box-shadow: inset 0 0 0 2px rgba(255,255,255,.12); }
.pk-me { width: min(980px, 100%); display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: center; }
.pk-mine { display: flex; align-items: center; gap: 12px; }
.pk-mychips { font: 700 16px var(--mono); color: #fcd34d; }
.pk-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; }
.pk-raise { display: flex; align-items: center; gap: 6px; padding: 4px 6px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); }
.pk-raise input { width: 140px; accent-color: var(--accent); }
@media (max-width: 640px) { .pk-table { border-radius: 40px; } .pk-card.big { width: 44px; height: 62px; } }
.btn.sm { height: 32px; padding: 0 10px; font-size: 12px; }
.btn.danger { background: rgba(244,63,94,.16); border-color: rgba(244,63,94,.5); color: #fda4af; }
.btn.danger:hover { background: rgba(244,63,94,.28); }

/* ---------- Reaction Duel ---------- */
.rx { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 16px 16px 76px; gap: 10px; }
.rx-pad { flex: 1; min-height: 240px; width: 100%; border-radius: 24px; border: 1px solid var(--line-2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; cursor: pointer; color: #fff; font: inherit; touch-action: manipulation; user-select: none; -webkit-tap-highlight-color: transparent; transition: background .08s; }
.rx-pad strong { font-size: clamp(34px, 7vw, 72px); font-weight: 800; letter-spacing: -0.04em; }
.rx-pad span { font-size: 16px; opacity: .85; font-weight: 500; }
.rx-pad.wait { background: #7f1d1d; }
.rx-pad.fake { background: #1e3a8a; }
.rx-pad.go { background: #16a34a; transition: none; }
.rx-pad.early { background: #9a3412; }
.rx-pad.done { background: #1f2937; }
.rx-pad.win { background: linear-gradient(135deg, #15803d, #0f766e); }
.rx-pad.lose { background: #27272a; }

/* ---------- Tournament ---------- */
.cup-mine { width: min(560px, 100%); display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px; border-radius: 18px; border: 1px solid rgba(var(--accent-rgb), .5); background: linear-gradient(180deg, rgba(var(--accent-rgb), .16), rgba(var(--accent-rgb), .04)); text-align: center; }
.cup-mine strong { font-size: 20px; }
.cup-mine .row { display: flex; gap: 8px; }
.cup-bracket { width: 100%; max-width: 1000px; display: flex; gap: 18px; overflow-x: auto; padding: 4px 4px 12px; justify-content: center; }
.cup-col { display: flex; flex-direction: column; justify-content: space-around; gap: 12px; min-width: 190px; }
.cup-round { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); text-align: center; }
.cup-match { border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); overflow: hidden; }
.cup-match.live { border-color: rgba(var(--accent-rgb), .6); }
.cup-match.mine { box-shadow: 0 0 0 2px var(--accent); }
.cup-p { display: flex; align-items: center; gap: 6px; padding: 8px 10px; font-size: 14px; font-weight: 500; }
.cup-p + .cup-p { border-top: 1px solid var(--line); }
.cup-p > span:not(.avatar) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cup-p.won { background: rgba(34,197,94,.14); font-weight: 700; }
.cup-p.lost { opacity: .45; }
.cup-set { font-size: 11px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); }
.cup-set:hover { color: var(--text); border-color: var(--accent); }
.cup-games { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.cup-games button { padding: 6px 10px; border-radius: 8px; font-size: 13px; background: var(--field); border: 1px solid var(--line-2); color: var(--muted); }
.cup-games button.on { border-color: var(--accent); color: var(--text); background: rgba(var(--accent-rgb), .16); }

/* ---------- Casino ---------- */
:root { --felt: #0f5132; }
.cs { flex: 1; min-height: 0; overflow: auto; display: grid; grid-template-columns: 1fr 260px; gap: 16px; padding: 16px 16px 84px; max-width: 1200px; width: 100%; margin: 0 auto; }
.cs-main { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.cs-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cs-wallet { display: flex; align-items: baseline; gap: 8px; padding: 8px 14px; border-radius: 14px; background: var(--surface); border: 1px solid rgba(250,204,21,.4); }
.cs-wallet b { font: 800 22px var(--mono); color: #fde047; }
.cs-wallet small { font-size: 11px; color: var(--dim); }
.cs-coin { font-size: 20px; }
.cs-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.cs-chip { width: 44px; height: 44px; border-radius: 50%; font: 800 12px var(--mono); color: #fff; border: 3px dashed rgba(255,255,255,.55); box-shadow: 0 3px 8px rgba(0,0,0,.4); transition: transform .12s; }
.cs-chip.on { transform: translateY(-4px); box-shadow: 0 0 0 3px var(--text), 0 6px 14px rgba(0,0,0,.4); }
.cs-chip.c5 { background: #e11d48; } .cs-chip.c25 { background: #16a34a; } .cs-chip.c100 { background: #111827; } .cs-chip.c500 { background: #db2777; }
.cs-chip.c2500 { background: #ea580c; } .cs-chip.c10000 { background: #0891b2; } .cs-chip.c50000 { background: linear-gradient(135deg, #facc15, #b45309); color: #1a1204; }
.cs-tabs { display: flex; gap: 4px; flex-wrap: wrap; padding: 4px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.cs-tab { flex: 1; min-width: 110px; padding: 9px 10px; border-radius: 10px; font-weight: 600; font-size: 14px; color: var(--muted); }
.cs-tab.on { background: var(--surface-3); color: var(--text); }
.cs-pane { border-radius: 20px; padding: 18px; display: flex; flex-direction: column; align-items: center; gap: 14px; min-height: 380px; }
.cs-pane.felt { background: radial-gradient(ellipse at 50% 30%, color-mix(in srgb, var(--felt) 85%, white), var(--felt) 60%, color-mix(in srgb, var(--felt) 70%, black)); border: 6px solid #3a2616; box-shadow: inset 0 0 50px rgba(0,0,0,.45); color: #fff; }
.cs-pane[hidden] { display: none; }
.cs-msg { font-weight: 600; text-align: center; min-height: 22px; }
.cs-msg.good { color: #86efac; }
.cs-timer { font-family: var(--mono); color: #fde68a; margin-left: 6px; }
.cs-note { font-size: 12px; color: rgba(255,255,255,.6); text-align: center; }
.cs-pane:not(.felt) .cs-note, .cs-side .cs-note { color: var(--dim); text-align: left; }
.cs-row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.cs-controls { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.bj-dealer { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.bj-label { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.7); }
.bj-cards { display: flex; gap: 6px; min-height: 76px; }
.bj-seats { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.bj-seat { min-width: 150px; padding: 10px; border-radius: 14px; background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.14); display: flex; flex-direction: column; gap: 8px; align-items: center; }
.bj-seat.turn { box-shadow: 0 0 0 2px #fde047; }
.bj-seat.me { border-color: rgba(255,255,255,.5); }
.bj-seat.r-win, .bj-seat.r-blackjack { background: rgba(34,197,94,.25); }
.bj-seat.r-bust, .bj-seat.r-lose { background: rgba(0,0,0,.45); opacity: .8; }
.bj-who { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.bj-who b { font: 700 12px var(--mono); color: #fde047; margin-left: 4px; }
.bj-total { font: 700 13px var(--mono); }
.gold { color: #fde047 !important; text-shadow: 0 0 10px rgba(250,204,21,.6); }
.rl-top { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; justify-content: center; }
.rl-wheel-wrap { position: relative; width: 220px; height: 220px; flex: none; }
.rl-wheel { position: absolute; inset: 0; border-radius: 50%; border: 8px solid #7c5a2b; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.rl-wheel i { position: absolute; left: 50%; top: 50%; width: 20px; margin-left: -10px; margin-top: -7px; text-align: center; font: 700 9px var(--mono); color: #fff; font-style: normal; transform-origin: 50% 50%; }
.rl-wheel::after { content: ""; position: absolute; inset: 42px; border-radius: 50%; background: radial-gradient(circle, #5b3f1e, #3a2616); }
.rl-ball { position: absolute; top: -6px; left: 50%; width: 0; height: 0; margin-left: -9px; border: 9px solid transparent; border-top: 14px solid #fff; z-index: 2; filter: drop-shadow(0 2px 2px rgba(0,0,0,.5)); }
.rl-result { position: absolute; inset: 0; display: grid; place-items: center; font: 800 34px var(--sans); z-index: 1; pointer-events: none; }
.rl-result.red { color: #fca5a5; } .rl-result.black { color: #fff; } .rl-result.green { color: #86efac; }
.rl-board { display: flex; flex-direction: column; gap: 6px; max-width: 480px; }
.rl-nums { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; }
.rl-nums .rl-n:first-child { grid-column: 1 / -1; }
.rl-n, .rl-o { position: relative; min-height: 32px; border-radius: 6px; font: 700 12px var(--mono); color: #fff; border: 1px solid rgba(255,255,255,.25); }
.rl-n.red { background: #b91c1c; } .rl-n.black { background: #18181b; } .rl-n.green { background: #15803d; }
.rl-outs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.rl-o { background: rgba(0,0,0,.3); font-family: var(--sans); font-size: 13px; }
.rl-o.red { background: #b91c1c; } .rl-o.black { background: #18181b; }
.rl-n.bet::after, .rl-o.bet::after { content: attr(data-amt); position: absolute; top: -8px; right: -6px; min-width: 20px; padding: 1px 4px; border-radius: 999px; background: #fde047; color: #1a1204; font: 800 9px var(--mono); border: 2px dashed #fff; }
.rl-n.hit, .rl-o.hit { box-shadow: 0 0 0 3px #fde047, 0 0 16px #fde047; }
.slot-machine { display: flex; gap: 10px; padding: 18px; border-radius: 22px; background: linear-gradient(180deg, #3f3f46, #18181b); border: 4px solid #eab308; box-shadow: 0 16px 40px rgba(0,0,0,.5); }
.reel { width: 96px; height: 110px; display: grid; place-items: center; font-size: 56px; border-radius: 12px; background: linear-gradient(180deg, #d4d4d8, #fff 40%, #fff 60%, #d4d4d8); box-shadow: inset 0 0 12px rgba(0,0,0,.35); }
.reel.stop { animation: pop .25s; }
.coin { position: relative; width: 150px; height: 150px; transform-style: preserve-3d; margin: 10px 0; }
.coin span { position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center; font: 800 16px var(--sans); color: #1a1204; background: radial-gradient(circle at 35% 30%, #fef08a, #eab308 55%, #a16207); border: 6px solid #ca8a04; backface-visibility: hidden; padding: 12px; text-align: center; }
.coin .cb { transform: rotateY(180deg); background: radial-gradient(circle at 35% 30%, #e5e7eb, #9ca3af 55%, #4b5563); border-color: #6b7280; }
.coin.flip-a { animation: flip-a 1.8s cubic-bezier(.2,.8,.3,1) forwards; }
.coin.flip-b { animation: flip-b 1.8s cubic-bezier(.2,.8,.3,1) forwards; }
@keyframes flip-a { from { transform: rotateY(0) translateY(0); } 50% { transform: rotateY(1080deg) translateY(-40px); } to { transform: rotateY(2160deg); } }
@keyframes flip-b { from { transform: rotateY(0) translateY(0); } 50% { transform: rotateY(1170deg) translateY(-40px); } to { transform: rotateY(2340deg); } }
.cf-list, .cf-in { width: min(520px, 100%); display: flex; flex-direction: column; gap: 6px; }
.cf-row, .cf-offer { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px; background: rgba(0,0,0,.28); }
.cf-row > span:not(.avatar) { flex: 1; font-weight: 600; } .cf-row small { color: #fde68a; font-family: var(--mono); }
.cf-offer { background: rgba(250,204,21,.18); border: 1px solid rgba(250,204,21,.5); } .cf-offer span { flex: 1; }
.shop { width: 100%; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.shop-item { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-2); }
.shop-item.maxed { opacity: .6; }
.shop-i { font-size: 26px; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--surface-2); }
.shop-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.shop-body b { font-size: 14px; } .shop-body small { font-size: 12px; color: var(--muted); }
.shop-extra { width: 100%; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.shop-extra h3, .cs-side h3 { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); }
.shop-extra .cs-row { justify-content: flex-start; width: 100%; }
.shop-extra .p-input { max-width: 360px; }
.felts { display: flex; gap: 8px; }
.felt-opt { width: 40px; height: 40px; border-radius: 10px; border: 2px solid var(--line-2); }
.felt-opt.on { box-shadow: 0 0 0 3px var(--text); } .felt-opt:disabled { opacity: .3; cursor: not-allowed; }
.cs-side { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.cs-people { display: flex; flex-direction: column; gap: 4px; }
.cs-person { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 10px; background: var(--surface); font-size: 14px; }
.cs-person > span:not(.avatar) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-person b { font: 700 13px var(--mono); color: #fde047; }
.cs-person.me { border: 1px solid rgba(var(--accent-rgb), .5); }
.cs-log { list-style: none; display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
@media (max-width: 860px) { .cs { grid-template-columns: 1fr; } .reel { width: 76px; height: 90px; font-size: 44px; } }

/* ---------- Word Hunt ---------- */
.wh-main { width: min(980px, 100%); display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.wh-left { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.wh-current { height: 34px; font: 800 26px var(--mono); letter-spacing: .08em; color: var(--accent-hi); }
.wh-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; width: min(360px, 88vw); aspect-ratio: 1; touch-action: none; user-select: none; }
.wh-tile { display: grid; place-items: center; border-radius: 16px; background: linear-gradient(180deg, #f5f0e6, #e3d8c3); color: #1c1917; font: 800 clamp(26px, 7vw, 38px) var(--sans); box-shadow: 0 5px 0 #b7a98c, 0 8px 18px rgba(0,0,0,.35); transition: transform .08s, background .08s; }
.wh-tile.on { background: linear-gradient(180deg, #f9a8d4, #ec4899); color: #fff; box-shadow: 0 5px 0 #9d174d, 0 8px 18px rgba(0,0,0,.35); transform: translateY(2px); }
.wh-tile.head { transform: translateY(2px) scale(1.04); }
.wh-flash { height: 22px; font: 700 15px var(--mono); }
.wh-flash.good { color: var(--green); } .wh-flash.bad { color: var(--danger); }
.wh-right { flex: 1; min-width: 260px; max-width: 520px; }
.wh-count { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.wh-words { display: flex; flex-wrap: wrap; gap: 6px; }
.wh-word { font: 700 13px var(--mono); padding: 4px 9px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line-2); }
.wh-word.dup { text-decoration: line-through; opacity: .45; }
.wh-reveal { display: flex; flex-direction: column; gap: 12px; }
.wh-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.wh-head span { margin-left: auto; font: 700 14px var(--mono); color: var(--green); }
.wh-best { font-size: 13px; color: var(--muted); margin-top: 12px; }

/* ---------- Categories ---------- */
.ct-letter { width: 84px; height: 84px; display: grid; place-items: center; border-radius: 22px; font: 800 52px var(--sans); color: #fff; background: var(--grad); box-shadow: 0 12px 30px -10px var(--accent-glow); }
.ct-form { width: min(620px, 100%); display: flex; flex-direction: column; gap: 8px; }
.ct-row { display: grid; grid-template-columns: 220px 1fr; gap: 10px; align-items: center; }
.ct-cat { font-weight: 600; font-size: 14px; color: var(--muted); }
.ct-review { width: min(820px, 100%); display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.ct-block { padding: 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.ct-answers { display: flex; flex-direction: column; gap: 5px; }
.ct-ans { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text); font: 500 14px var(--sans); text-align: left; }
button.ct-ans { cursor: pointer; } button.ct-ans:hover { border-color: var(--danger); }
.ct-ans > span:not(.avatar) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ct-ans small { font-size: 11px; color: var(--dim); }
.ct-ans.rejected { border-color: var(--danger); background: rgba(244,63,94,.12); }
.ct-ans.ok { border-color: rgba(34,197,94,.5); } .ct-ans.ok small { color: var(--green); font-weight: 700; }
.ct-ans.dup span, .ct-ans.voted span, .ct-ans.letter span { text-decoration: line-through; opacity: .6; }
@media (max-width: 560px) { .ct-row { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- Emoji Guess ---------- */
.em-clue { font-size: clamp(56px, 12vw, 96px); letter-spacing: .08em; line-height: 1.1; text-align: center; animation: pop .35s cubic-bezier(.2,1.6,.4,1); }
.em-hint { font: 700 clamp(18px, 3.4vw, 26px) var(--mono); letter-spacing: .18em; color: var(--muted); text-align: center; word-break: break-word; max-width: 100%; }
.em-hint.solved { color: var(--green); letter-spacing: .04em; font-family: var(--sans); }
.em-feed { list-style: none; width: min(520px, 100%); display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.em-feed li.ok { color: var(--green); font-weight: 700; }
.wl-form.shake { animation: dw-shake .35s; }

/* ---------- Mafia ---------- */
body[data-phase="night"] { background: radial-gradient(900px 500px at 50% -10%, rgba(30,58,138,.35), transparent 70%), #04040a; }
.mf-role { width: min(560px, 100%); display: flex; gap: 14px; align-items: center; padding: 14px 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line-2); }
.mf-role.mafia { border-color: rgba(244,63,94,.6); background: linear-gradient(135deg, rgba(244,63,94,.18), var(--surface)); }
.mf-role.doctor { border-color: rgba(34,197,94,.5); } .mf-role.detective { border-color: rgba(59,130,246,.5); }
.mf-icon { font-size: 40px; }
.mf-role p { font-size: 13px; color: var(--muted); } .mf-allies { color: #fda4af !important; }
.mf-news { font-size: 17px; font-weight: 600; text-align: center; min-height: 24px; }
.mf-people { width: min(720px, 100%); display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.mf-p { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-2); color: var(--text); font: 500 14px var(--sans); text-align: left; }
button.mf-p { cursor: pointer; } button.mf-p:hover { border-color: var(--accent-hi); }
.mf-p.picked { border-color: var(--accent); background: rgba(var(--accent-rgb), .18); }
.mf-p.dead { opacity: .45; } .mf-p.dead .mf-name { text-decoration: line-through; }
.mf-p.ally { border-color: rgba(244,63,94,.45); }
.mf-name { font-weight: 600; flex: 1; min-width: 0; }
.mf-tag { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); }
.mf-tag.mafia { color: #fda4af; } .mf-tag.doctor { color: #86efac; } .mf-tag.detective { color: #93c5fd; } .mf-tag.town { color: var(--muted); }
.mf-count { font: 700 12px var(--mono); color: #fde68a; }
#skip.picked { border-color: var(--accent); color: var(--text); }

/* ---------- Minesweeper Race ---------- */
.ms { gap: 12px; }
.ms-banner { font-size: 16px; }
.ms-bars { width: min(620px, 100%); display: flex; flex-direction: column; gap: 6px; }
.ms-bar { display: grid; grid-template-columns: 90px 1fr; gap: 10px; align-items: center; font-size: 13px; font-weight: 600; }
.ms-bar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ms-track { height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.ms-track i { display: block; height: 100%; width: 0; border-radius: inherit; transition: width .25s; }
.ms-tools { display: flex; gap: 12px; align-items: center; }
.ms-tools .btn.on { border-color: #f43f5e; color: #fda4af; }
.ms-left { font: 700 14px var(--mono); }
.ms-grid { display: grid; gap: 2px; width: min(620px, 94vw); padding: 6px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-2); user-select: none; touch-action: manipulation; }
.ms-c { aspect-ratio: 1; border-radius: 4px; background: #3f7d3a; font: 800 clamp(11px, 2.4vw, 17px) var(--sans); display: grid; place-items: center; padding: 0; color: #fff; -webkit-tap-highlight-color: transparent; }
.ms-c.alt { background: #468c40; }
.ms-c:not(.o):hover { filter: brightness(1.15); }
.ms-c.o { background: #262116; } .ms-c.o.alt { background: #2d271a; }
.ms-c.boom { background: #b91c1c !important; }
.ms-c.f { font-size: clamp(10px, 2vw, 15px); }
.ms-c.mine { background: #3f3f46 !important; }

/* ---------- Crewmates ---------- */
.cm-hud { flex: none; display: flex; gap: 16px; align-items: center; justify-content: center; padding: 10px 16px 0; flex-wrap: wrap; }
.cm-role { font: 800 13px var(--mono); letter-spacing: .1em; padding: 5px 12px; border-radius: 999px; background: var(--surface-2); }
.cm-role.imp { color: #fda4af; background: rgba(244,63,94,.18); } .cm-role.crew { color: #93c5fd; background: rgba(59,130,246,.16); }
.cm-bar { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; }
.cm-track { width: 260px; height: 12px; border-radius: 999px; background: var(--surface-2); overflow: hidden; border: 1px solid var(--line-2); }
.cm-track i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #22c55e, #4ade80); transition: width .4s; }
.cm-stage { position: relative; }
.cm-tasks { position: absolute; left: 24px; top: 24px; list-style: none; display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border-radius: 12px; background: rgba(0,0,0,.55); font-size: 12px; max-width: 250px; pointer-events: none; }
.cm-tasks li.done { color: #4ade80; text-decoration: line-through; }
.cm-tasks li.imp { color: #fda4af; }
.cm-actions { position: absolute; right: 24px; bottom: 24px; display: flex; gap: 8px; }
.cm-actions .btn { height: 52px; padding: 0 18px; font-size: 15px; }
body.touching .cm-actions { bottom: 160px; }
.cm-meet .panel { width: min(560px, 100%); }
.cm-timer { font: 700 18px var(--mono); margin: 8px 0; }
.cm-votes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 10px 0; }
.cm-vote { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text); font: 600 14px var(--sans); text-align: left; }
button.cm-vote:hover { border-color: var(--accent); }
.cm-vote.dead { opacity: .4; text-decoration: line-through; }
.cm-vote span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.cm-vote small { color: #fda4af; font-size: 11px; } .cm-vote b { font: 700 11px var(--mono); color: #fde68a; }
.cm-dot { width: 14px; height: 14px; border-radius: 50%; flex: none; }
.team-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: 0; }
.custom-q input.p-input { height: 38px; font-size: 14px; margin: 8px 0 6px; width: 100%; }

/* ---------- Casino: Crash, Plinko, Mines, Crates ---------- */
.cs-pane.cs-dark { background: radial-gradient(ellipse at 50% 0%, rgba(var(--accent-rgb), .16), transparent 70%), #07040a; border: 1px solid rgba(var(--accent-rgb), .3); color: #fff; }
.cr-hist { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; min-height: 26px; }
.cr-hist span { font: 600 12px var(--mono); padding: 3px 8px; border-radius: 999px; background: rgba(255,255,255,.08); color: #cbd5e1; }
.cr-hist span.hi { background: rgba(var(--accent-rgb), .25); color: #fff; }
.cr-hist span.lo { background: rgba(239,68,68,.18); color: #fca5a5; }
.cr-stage { position: relative; width: 100%; max-width: 720px; }
.cr-stage canvas { width: 100%; height: auto; display: block; border-radius: 14px; background: rgba(255,255,255,.02); border: 1px solid rgba(255,255,255,.06); }
.cr-mult { position: absolute; left: 50%; top: 38%; transform: translate(-50%, -50%); font: 800 clamp(36px, 8vw, 64px) var(--mono); letter-spacing: -0.04em; color: rgba(255,255,255,.35); pointer-events: none; }
.cr-mult.live { color: #fff; text-shadow: 0 0 30px var(--accent-glow); }
.cr-mult.crashed { color: #ef4444; text-shadow: 0 0 30px rgba(239,68,68,.6); }
.cr-controls { align-items: center; }
.cr-auto { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: rgba(255,255,255,.75); }
.cr-auto input, .cr-auto select { width: 84px; height: 40px; border-radius: 10px; background: rgba(0,0,0,.5); border: 1px solid rgba(255,255,255,.18); color: #fff; font: 600 15px var(--mono); padding: 0 10px; }
.btn.cash { background: linear-gradient(135deg, #4ade80, #16a34a); color: #04210f; border-color: transparent; box-shadow: 0 8px 26px -8px rgba(34,197,94,.7); }
.cr-players { width: 100%; max-width: 520px; display: flex; flex-direction: column; gap: 4px; }
.cr-p { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 10px; background: rgba(255,255,255,.05); font-size: 13px; }
.cr-p > span:not(.avatar) { flex: 1; }
.cr-p small { font-family: var(--mono); color: rgba(255,255,255,.55); }
.cr-p b { font-family: var(--mono); min-width: 110px; text-align: right; }
.cr-p.out b { color: #4ade80; }
.cr-p.bust b { color: #f87171; }
.plk-risk { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(255,255,255,.06); }
.plk-risk button { white-space: nowrap; padding: 6px 14px; border-radius: 8px; font-size: 14px; color: rgba(255,255,255,.7); }
.plk-risk button.on { background: var(--accent); color: #fff; }
#plkCanvas { width: 100%; max-width: 560px; height: auto; }
.mn-top { align-items: center; gap: 16px; }
.mn-info { font: 600 13px var(--mono); color: rgba(255,255,255,.7); }
.mn-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; width: min(100%, 380px); }
.mn-c { aspect-ratio: 1; border-radius: 12px; background: linear-gradient(180deg, #2a1a26, #1a1018); border: 1px solid rgba(255,255,255,.1); font-size: 28px; box-shadow: 0 4px 0 #0b060a; transition: transform .1s, background .15s; }
.mn-c:not(:disabled):hover { transform: translateY(-2px); background: linear-gradient(180deg, #3a2334, #22141f); border-color: rgba(var(--accent-rgb), .6); }
.mn-c:disabled { cursor: default; }
.mn-c.gem { background: linear-gradient(180deg, rgba(var(--accent-rgb), .35), rgba(var(--accent-rgb), .15)); border-color: var(--accent); animation: pop .25s cubic-bezier(.2,1.6,.4,1); }
.mn-c.mine { background: #1c0b0b; }
.mn-c.boom { background: #7f1d1d; border-color: #ef4444; animation: pop .25s; }
.mn-c.dim { opacity: .45; }
.crate-pane { background: var(--surface); border: 1px solid var(--line); }
.crates { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; width: 100%; }
.crate { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 14px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line-2); text-align: center; }
.crate-i { font-size: 48px; line-height: 1.1; filter: drop-shadow(0 6px 16px rgba(var(--accent-rgb), .4)); }
.crate small { font-size: 11px; color: var(--muted); min-height: 2.6em; }
.crate .btn { width: 100%; }
.crate-premium { border-color: rgba(var(--accent-rgb), .5); }
.crate-legend { background: radial-gradient(circle at 50% 0%, rgba(var(--accent-rgb), .25), transparent 70%), #000; border-color: var(--accent); }
.crate-reel { position: relative; width: 100%; overflow: hidden; border-radius: 14px; background: #000; border: 1px solid rgba(var(--accent-rgb), .45); padding: 10px 0; }
.crate-strip { display: flex; gap: 0; will-change: transform; }
.crate-tile { flex: none; width: 110px; height: 110px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border-right: 1px solid rgba(255,255,255,.06); background: linear-gradient(180deg, transparent 60%, color-mix(in srgb, var(--rc) 35%, transparent)); border-bottom: 3px solid var(--rc); }
.crate-tile span { font-size: 38px; }
.crate-tile small { font-size: 10px; color: rgba(255,255,255,.7); max-width: 100px; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crate-marker { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; margin-left: -1.5px; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.crate-owned-wrap { width: 100%; }
.crate-owned-wrap h3 { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); margin-bottom: 8px; }
.crate-owned { display: flex; flex-wrap: wrap; gap: 6px; }
.crate-own { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-size: 20px; background: var(--surface-2); border: 1px solid var(--line); opacity: .45; }
.crate-own.has { opacity: 1; border-color: rgba(var(--accent-rgb), .5); }
.cs-top { list-style: none; counter-reset: rk; display: flex; flex-direction: column; gap: 4px; }
.cs-top li { counter-increment: rk; display: flex; gap: 8px; align-items: center; font-size: 13px; padding: 5px 8px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); }
.cs-top li::before { content: counter(rk); font: 700 11px var(--mono); color: var(--dim); width: 16px; }
.cs-top li.cs-note::before { content: none; }
.cs-top li span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-top li b { font-family: var(--mono); color: var(--accent-hi); font-size: 12px; }
.cs-top li.me { border-color: rgba(var(--accent-rgb), .6); }

/* ---------- Would You Rather ---------- */
.wy-opts { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: stretch; width: min(860px, 100%); }
.wy-or { align-self: center; font: 800 18px var(--mono); color: var(--dim); text-transform: uppercase; }
.wy-opt { position: relative; overflow: hidden; min-height: 190px; padding: 22px 18px; border-radius: 22px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center;
  border: 2px solid var(--line-2); transition: transform .15s, border-color .15s, box-shadow .15s; }
.wy-opt.a { background: linear-gradient(160deg, rgba(var(--accent-rgb), .25), rgba(var(--accent-rgb), .06)); }
.wy-opt.b { background: linear-gradient(160deg, rgba(56, 189, 248, .22), rgba(56, 189, 248, .05)); }
.wy-opt b { position: relative; z-index: 1; font-size: clamp(18px, 3vw, 26px); line-height: 1.2; }
.wy-opt:not(:disabled):hover { transform: translateY(-3px); border-color: var(--line-3); }
.wy-opt.picked { border-color: var(--accent); box-shadow: 0 0 30px -8px var(--accent-glow); }
.wy-opt.b.picked { border-color: #38bdf8; box-shadow: 0 0 30px -8px rgba(56,189,248,.6); }
.wy-opt:disabled { cursor: default; }
.wy-fill { position: absolute; left: 0; right: 0; bottom: 0; height: var(--p, 0); background: rgba(255,255,255,.08); transition: height .6s cubic-bezier(.2,.8,.2,1); }
.wy-pct { position: relative; z-index: 1; font: 800 34px var(--mono); }
.wy-pct:empty { display: none; }
.wy-who { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
@media (max-width: 620px) { .wy-opts { grid-template-columns: 1fr; } .wy-opt { min-height: 130px; } }

/* =====================================================================
   OXID Casino: full-page online casino layout
   ===================================================================== */
.casino-page { --gold: #ffd23f; --cs-bg: #08050b; --cs-panel: #120c16; --cs-panel2: #1a1120; background: radial-gradient(1200px 600px at 60% -10%, rgba(var(--accent-rgb), .14), transparent 70%), var(--cs-bg); }
.casino-page .cs-head { gap: 14px; height: 64px; padding: 0 16px; background: rgba(10, 6, 13, .92); border-bottom: 1px solid rgba(var(--accent-rgb), .25); }
.cs-logo { display: inline-flex; align-items: center; gap: 8px; font: 800 20px var(--sans); letter-spacing: .04em; color: #fff; white-space: nowrap; }
.cs-logo i { font-style: normal; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #000; border: 2px solid var(--accent); color: var(--accent-hi); box-shadow: 0 0 18px -4px var(--accent-glow); }
.cs-logo b { background: linear-gradient(90deg, var(--accent-hi), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cs-head-mid { flex: 1; display: flex; align-items: center; justify-content: center; gap: 10px; min-width: 0; }
.cs-head-right { display: flex; align-items: center; gap: 8px; }
.casino-page .cs-wallet { padding: 7px 14px; border-radius: 12px; background: #000; border: 1px solid rgba(255, 210, 63, .45); box-shadow: inset 0 0 16px rgba(255, 210, 63, .08); }
.casino-page .cs-wallet b { color: var(--gold); font-size: 20px; }
.cs-vip-badge { padding: 7px 12px; border-radius: 999px; font: 700 13px var(--sans); background: linear-gradient(135deg, rgba(255, 210, 63, .18), rgba(var(--accent-rgb), .18)); border: 1px solid rgba(255, 210, 63, .4); color: #fff; white-space: nowrap; }
.cs-app { flex: 1; min-height: 0; display: grid; grid-template-columns: 220px minmax(0, 1fr) 270px; }
.cs-nav { overflow: auto; padding: 14px 10px 90px; border-right: 1px solid rgba(255,255,255,.06); background: rgba(12, 8, 15, .7); display: flex; flex-direction: column; gap: 14px; }
.cs-nav-group { display: flex; flex-direction: column; gap: 2px; }
.cs-nav-group h4 { font: 700 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); padding: 0 10px 6px; }
.casino-page .cs-tab { flex: none; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; font-weight: 600; font-size: 14px; color: var(--muted); text-align: left; position: relative; }
.casino-page .cs-tab:hover { background: rgba(255,255,255,.04); color: var(--text); }
.casino-page .cs-tab.on { background: linear-gradient(90deg, rgba(var(--accent-rgb), .22), rgba(var(--accent-rgb), .04)); color: #fff; }
.casino-page .cs-tab.on::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--accent); }
.cs-tab .ni { width: 22px; text-align: center; font-size: 16px; }
.cs-nav-note { font-size: 11px; color: var(--dim); padding: 6px 10px; line-height: 1.4; }
.casino-page .cs-main { display: flex; flex-direction: column; gap: 14px; overflow: auto; padding: 16px 20px 96px; max-width: none; margin: 0; grid-template-columns: none; }
.casino-page .cs-side { overflow: auto; padding: 16px 14px 96px; border-left: 1px solid rgba(255,255,255,.06); background: rgba(12, 8, 15, .7); }
.cs-side-card { padding: 12px; border-radius: 14px; background: var(--cs-panel); border: 1px solid rgba(255,255,255,.06); display: flex; flex-direction: column; gap: 8px; }
.cs-side-card .btn { margin-top: 4px; }
.casino-page .cs-bar { padding: 8px 12px; border-radius: 14px; background: var(--cs-panel); border: 1px solid rgba(255,255,255,.06); }
.cs-bar-label { font: 700 11px var(--mono); letter-spacing: .1em; color: var(--dim); text-transform: uppercase; }
.casino-page .cs-pane { border-radius: 22px; min-height: 420px; }
.casino-page .cs-pane.cs-dark, .casino-page .pd-pane, .casino-page .vip-pane { background: radial-gradient(ellipse at 50% 0%, rgba(var(--accent-rgb), .14), transparent 70%), var(--cs-panel); border: 1px solid rgba(var(--accent-rgb), .22); color: #fff; }
/* ticker */
.cs-ticker { display: flex; align-items: center; gap: 10px; overflow: hidden; height: 36px; border-radius: 12px; background: #000; border: 1px solid rgba(255, 210, 63, .25); padding-left: 10px; }
.cs-tk-label { flex: none; font: 800 11px var(--mono); letter-spacing: .12em; color: #fff; background: #ef4444; padding: 3px 7px; border-radius: 6px; animation: pulse-dot 1.6s ease-in-out infinite; }
@keyframes pulse-dot { 50% { opacity: .55; } }
.cs-tk-track { display: flex; gap: 40px; white-space: nowrap; animation: cs-tick 30s linear infinite; font-size: 13px; color: #fde68a; }
.cs-tk-track span::before { content: "✦ "; color: var(--accent-hi); }
@keyframes cs-tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }
/* lobby */
.casino-page .cs-lobby { background: none; border: 0; padding: 0; align-items: stretch; min-height: 0; }
.cs-hero { display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 30px; border-radius: 22px; overflow: hidden; position: relative;
  background: radial-gradient(500px 260px at 90% 20%, rgba(255, 210, 63, .22), transparent 70%), radial-gradient(600px 300px at 0% 100%, rgba(var(--accent-rgb), .4), transparent 70%), linear-gradient(135deg, #1b0716, #07040a); border: 1px solid rgba(var(--accent-rgb), .35); }
.cs-hero > div:first-child { flex: 1 1 340px; }
.cs-hero-kicker { font: 700 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.cs-hero h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1; letter-spacing: -0.04em; margin: 6px 0 10px; }
.cs-hero h1 b { background: linear-gradient(90deg, var(--accent-hi), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cs-hero p { color: rgba(255,255,255,.75); max-width: 460px; }
.cs-hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.cs-jackpot { flex: 0 0 auto; text-align: center; padding: 18px 26px; border-radius: 18px; background: #000; border: 2px solid var(--gold); box-shadow: 0 0 40px -10px rgba(255, 210, 63, .6), inset 0 0 30px rgba(255, 210, 63, .1); }
.cs-jackpot small { display: block; font: 800 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-hi); }
.cs-jackpot b { display: block; font: 800 clamp(30px, 4vw, 42px) var(--mono); color: var(--gold); text-shadow: 0 0 20px rgba(255, 210, 63, .5); }
.cs-jackpot span { font-size: 12px; color: rgba(255,255,255,.6); }
.cs-cat { font-size: 18px; margin: 18px 0 10px; }
.cs-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.cs-tile { position: relative; aspect-ratio: 3 / 4; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding: 12px; text-align: center;
  background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--c1) 45%, transparent), transparent 60%), linear-gradient(180deg, var(--c2), #050307); border: 1px solid color-mix(in srgb, var(--c1) 35%, transparent); transition: transform .18s, box-shadow .18s; }
.cs-tile:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 16px 36px -14px color-mix(in srgb, var(--c1) 80%, transparent); }
.cs-tile-i { position: absolute; top: 22%; left: 50%; transform: translateX(-50%); font-size: 58px; filter: drop-shadow(0 10px 20px rgba(0,0,0,.5)); transition: transform .2s; }
.cs-tile:hover .cs-tile-i { transform: translateX(-50%) scale(1.12) rotate(-4deg); }
.cs-tile b { position: relative; font-size: 15px; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.6); }
.cs-tile em { position: absolute; top: 8px; left: 8px; font: 800 10px var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 3px 7px; border-radius: 6px; font-style: normal; background: var(--accent); color: #fff; }
.cs-tile em.tag-hot { background: #ef4444; } .cs-tile em.tag-jackpot, .cs-tile em.tag-free { background: var(--gold); color: #1a1000; } .cs-tile em.tag-new { background: #22c55e; }
.cs-tile-play { position: absolute; inset: auto 0 0 0; padding: 8px; font-weight: 700; font-size: 13px; background: var(--accent); color: #fff; transform: translateY(100%); transition: transform .18s; }
.cs-tile:hover .cs-tile-play, .cs-tile:focus-visible .cs-tile-play { transform: none; }
/* dice */
.dc-roll { font: 800 clamp(56px, 10vw, 88px) var(--mono); letter-spacing: -0.04em; color: #fff; }
.dc-roll.win { color: #4ade80; text-shadow: 0 0 30px rgba(74,222,128,.5); } .dc-roll.lose { color: #f87171; }
.dc-track { position: relative; width: min(560px, 100%); height: 22px; border-radius: 999px; background: linear-gradient(90deg, #22c55e 0 var(--t), #ef4444 var(--t) 100%); }
.dc-track.over { background: linear-gradient(90deg, #ef4444 0 var(--t), #22c55e var(--t) 100%); }
.dc-track input { position: absolute; inset: -6px 0; width: 100%; opacity: 0; cursor: pointer; }
.dc-track::after { content: ""; position: absolute; top: -8px; left: calc(var(--t) - 14px); width: 28px; height: 38px; border-radius: 8px; background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.5); pointer-events: none; }
.dc-pin { position: absolute; top: -34px; width: 0; height: 0; opacity: 0; transition: left .4s, opacity .2s; border: 8px solid transparent; border-top-color: #fff; transform: translateX(-8px); }
.dc-pin.on { opacity: 1; }
.dc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: min(560px, 100%); }
.dc-stats > div { padding: 10px; border-radius: 12px; background: rgba(0,0,0,.4); border: 1px solid rgba(255,255,255,.08); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.dc-stats small { font-size: 11px; color: rgba(255,255,255,.55); text-transform: uppercase; letter-spacing: .08em; }
.dc-stats b { font: 800 18px var(--mono); }
.dc-hist { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.dc-hist span { font: 700 12px var(--mono); padding: 3px 8px; border-radius: 999px; background: rgba(239,68,68,.2); color: #fca5a5; }
.dc-hist span.win { background: rgba(34,197,94,.2); color: #86efac; }
/* keno */
.kn-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; width: min(560px, 100%); }
.kn-n { aspect-ratio: 1; border-radius: 10px; font: 800 15px var(--mono); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); color: #fff; transition: transform .1s, background .15s; }
.kn-n:hover { transform: translateY(-2px); }
.kn-n.pick { background: rgba(var(--accent-rgb), .35); border-color: var(--accent); }
.kn-n.drawn { background: rgba(255,255,255,.18); color: #fff; animation: pop .25s; }
.kn-n.hit { background: linear-gradient(135deg, #facc15, #f59e0b); color: #1a1000; border-color: #fde047; animation: pop .25s; box-shadow: 0 0 16px rgba(250,204,21,.6); }
.kn-pays { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; min-height: 24px; }
.kn-pays span { font: 600 12px var(--mono); padding: 3px 8px; border-radius: 8px; background: rgba(0,0,0,.4); color: rgba(255,255,255,.7); }
.kn-pays span.on { background: var(--gold); color: #1a1000; }
/* hi-lo */
.hl-mult { text-align: center; }
.hl-mult small { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.hl-mult b { font: 800 40px var(--mono); color: var(--gold); }
.hl-cards { display: flex; gap: 8px; min-height: 120px; align-items: center; justify-content: center; flex-wrap: wrap; }
.hl-cards .pk-card:last-child { transform: scale(1.18); box-shadow: 0 0 0 3px var(--accent), 0 10px 30px rgba(0,0,0,.5); margin: 0 10px; }
.hl-cards .pk-card:not(:last-child) { opacity: .5; }
/* wheel + daily spin */
.wh-wrap { position: relative; width: min(420px, 90vw); }
.wh-wrap canvas { width: 100%; height: auto; display: block; filter: drop-shadow(0 20px 40px rgba(0,0,0,.6)); }
.wh-pointer { position: absolute; top: -6px; left: 50%; transform: translateX(-50%); border: 16px solid transparent; border-top: 28px solid #fff; filter: drop-shadow(0 3px 4px rgba(0,0,0,.6)); }
.wh-center { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 26%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: #000; border: 3px solid var(--gold); font: 800 16px var(--mono); color: var(--gold); text-align: center; }
.wh-legend { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.wh-legend span { font: 600 12px var(--mono); padding: 3px 8px; border-radius: 8px; background: rgba(0,0,0,.4); border-left: 4px solid var(--c); }
.sp-title { font-size: 24px; }
/* scratch */
.sc-tiers { display: flex; gap: 10px; }
.sc-tier { padding: 10px 18px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; background: linear-gradient(135deg, rgba(var(--accent-rgb), .3), rgba(var(--accent-rgb), .08)); border: 1px solid rgba(var(--accent-rgb), .5); color: #fff; }
.sc-tier:nth-child(2) { background: linear-gradient(135deg, rgba(255, 210, 63, .35), rgba(255, 210, 63, .08)); border-color: rgba(255, 210, 63, .6); }
.sc-tier:nth-child(3) { background: #000; border-color: #fff; }
.sc-tier b { font: 800 18px var(--mono); } .sc-tier small { font-size: 11px; opacity: .8; }
.sc-tier:disabled { opacity: .4; }
.sc-card { position: relative; width: min(360px, 86vw); aspect-ratio: 1; border-radius: 18px; padding: 14px; background: linear-gradient(135deg, #ff2e93, #7a0a45); box-shadow: 0 20px 50px -16px rgba(0,0,0,.8); }
.sc-card.t1 { background: linear-gradient(135deg, #ffd23f, #8a5a00); } .sc-card.t2 { background: linear-gradient(135deg, #2a2a33, #000); border: 2px solid #fff; }
.sc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; height: 100%; }
.sc-cell { display: grid; place-items: center; border-radius: 12px; background: rgba(255,255,255,.92); font-size: clamp(34px, 8vw, 50px); }
.sc-cell.hit { background: #fff7c2; box-shadow: 0 0 0 3px #facc15, 0 0 20px rgba(250,204,21,.8); animation: pop .3s; }
#scCover { position: absolute; inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); border-radius: 12px; cursor: grab; touch-action: none; transition: opacity .5s; }
/* pink diamonds */
.casino-page .pd-pane { gap: 12px; }
.pd-top { width: min(640px, 100%); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pd-title { font: 800 22px var(--sans); letter-spacing: .08em; background: linear-gradient(90deg, #ffc2e0, var(--accent), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pd-jp { text-align: right; padding: 6px 14px; border-radius: 12px; background: #000; border: 1px solid var(--gold); }
.pd-jp small { display: block; font: 800 10px var(--mono); letter-spacing: .14em; color: var(--accent-hi); }
.pd-jp b { font: 800 20px var(--mono); color: var(--gold); }
.pd-machine { position: relative; width: min(640px, 100%); padding: 14px; border-radius: 22px; background: linear-gradient(180deg, #2a0a1f, #0a0308); border: 3px solid var(--accent); box-shadow: 0 0 50px -12px var(--accent-glow), inset 0 0 30px rgba(0,0,0,.6); }
.pd-reels { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.pd-reel { display: grid; grid-template-rows: repeat(3, 1fr); gap: 8px; border-radius: 12px; padding: 6px; background: linear-gradient(180deg, #fff, #f3e6ee); }
.pd-reel.spinning .pd-sym { filter: blur(2px); transform: translateY(4px); }
.pd-sym { aspect-ratio: 1; display: grid; place-items: center; font-size: clamp(28px, 6vw, 46px); border-radius: 8px; transition: transform .1s; }
.pd-sym.win { background: rgba(var(--accent-rgb), .22); box-shadow: inset 0 0 0 2px var(--accent); animation: pd-pulse .8s ease-in-out infinite alternate; }
@keyframes pd-pulse { to { transform: scale(1.08); } }
.pd-lines { position: absolute; inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); pointer-events: none; }
.pd-lines polyline { fill: none; stroke: var(--gold); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; opacity: .85; filter: drop-shadow(0 0 4px rgba(255,210,63,.8)); }
.pd-bar { width: min(640px, 100%); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.pd-bar > div { padding: 8px 12px; border-radius: 12px; background: #000; border: 1px solid rgba(255,255,255,.1); text-align: center; }
.pd-bar small { display: block; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.pd-bar b { font: 800 18px var(--mono); color: var(--gold); }
.pd-spin { width: 130px; height: 64px; border-radius: 999px; font-size: 20px; letter-spacing: .1em; }
.pd-paytable { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px; width: min(640px, 100%); }
.pd-pt { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 10px; background: rgba(0,0,0,.4); }
.pd-pt span { font-size: 22px; } .pd-pt small { font: 600 11px var(--mono); color: rgba(255,255,255,.7); }
/* baccarat */
.bac-hands { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; width: min(640px, 100%); }
.bac-side { padding: 12px; border-radius: 16px; background: rgba(0,0,0,.25); border: 2px solid rgba(255,255,255,.15); min-height: 150px; }
.bac-side.p { border-color: rgba(56,189,248,.6); } .bac-side.b { border-color: rgba(239,68,68,.6); }
.bac-side h3 { font-size: 14px; letter-spacing: .12em; display: flex; justify-content: space-between; margin-bottom: 8px; }
.bac-side h3 b { font: 800 22px var(--mono); }
.bac-bets { display: grid; grid-template-columns: 1fr 0.8fr 1fr; gap: 10px; width: min(640px, 100%); }
.bac-bet { position: relative; padding: 16px 10px; border-radius: 14px; display: flex; flex-direction: column; align-items: center; gap: 2px; color: #fff; border: 2px solid rgba(255,255,255,.3); background: rgba(0,0,0,.25); }
.bac-bet.p { border-color: #38bdf8; } .bac-bet.b { border-color: #ef4444; } .bac-bet.t { border-color: #4ade80; }
.bac-bet small { font-size: 11px; opacity: .7; }
.bac-bet span { font: 800 13px var(--mono); color: var(--gold); min-height: 16px; }
.bac-bet.on { background: rgba(255,255,255,.12); }
.bac-bet.won { box-shadow: 0 0 0 3px var(--gold), 0 0 30px rgba(255,210,63,.6); }
.bac-road { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; }
.bac-road i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 800 11px var(--mono); font-style: normal; color: #fff; }
.bac-road .rP { background: #0284c7; } .bac-road .rB { background: #dc2626; } .bac-road .rT { background: #16a34a; }
/* video poker */
.vp-table { width: min(520px, 100%); display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; padding: 12px 16px; border-radius: 14px; background: #06051a; border: 2px solid #facc15; }
.vp-row { display: flex; justify-content: space-between; font: 700 13px var(--mono); color: #fde68a; }
.vp-row.hit { color: #fff; background: #b91c1c; border-radius: 6px; padding: 0 6px; }
.vp-hand { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.vp-card { display: flex; flex-direction: column; align-items: center; gap: 4px; background: none; border: 0; }
.vp-card small { font: 800 12px var(--mono); color: var(--gold); min-height: 16px; letter-spacing: .1em; }
.vp-card.held .pk-card { transform: translateY(-8px); box-shadow: 0 0 0 3px var(--gold); }
/* horse racing */
.hr-track { width: min(720px, 100%); display: flex; flex-direction: column; gap: 4px; padding: 10px; border-radius: 16px; background: linear-gradient(90deg, #14532d, #166534 90%, #fff 90%, #fff 91%, #166534 91%); }
.hr-lane { position: relative; height: 42px; border-bottom: 1px dashed rgba(255,255,255,.2); }
.hr-num { position: absolute; left: -2px; top: 8px; width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font: 800 12px var(--mono); background: rgba(0,0,0,.4); }
.hr-horse { position: absolute; left: 0; top: 0; font-size: 32px; font-style: normal; transform: scaleX(-1); margin-left: 24px; filter: drop-shadow(0 0 6px var(--c)) drop-shadow(0 2px 2px rgba(0,0,0,.5)); }
.hr-board { width: min(720px, 100%); display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.hr-pick { display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; align-items: center; gap: 0 10px; padding: 10px 12px; border-radius: 12px; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.1); color: #fff; text-align: left; }
.hr-pick:hover:not(:disabled) { border-color: var(--c); }
.hr-pick.on { border-color: var(--c); background: color-mix(in srgb, var(--c) 18%, transparent); }
.hr-pick.won { box-shadow: 0 0 0 3px var(--gold); }
.hr-dot { grid-row: span 2; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font: 800 14px var(--mono); background: var(--c); color: #000; }
.hr-pick small { font: 800 16px var(--mono); color: var(--gold); }
.hr-pick em { grid-column: 2 / 4; font: 600 12px var(--mono); font-style: normal; color: rgba(255,255,255,.65); }
/* VIP */
.casino-page .vip-pane { align-items: stretch; }
.vip-hero { display: flex; gap: 20px; align-items: center; padding: 18px; border-radius: 16px; background: linear-gradient(135deg, rgba(255,210,63,.18), rgba(var(--accent-rgb), .12)); border: 1px solid rgba(255,210,63,.4); }
.vip-hero > div:last-child { flex: 1; }
.vip-hero small { font: 700 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.vip-hero h2 { font-size: 30px; margin: 2px 0 8px; }
.vip-badge-big { font-size: 64px; filter: drop-shadow(0 8px 20px rgba(255,210,63,.5)); }
.vip-claim { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-radius: 14px; background: #000; border: 1px solid rgba(255,255,255,.1); }
.vip-claim small { display: block; font-size: 11px; color: rgba(255,255,255,.55); text-transform: uppercase; letter-spacing: .08em; }
.vip-claim b { font: 800 24px var(--mono); color: var(--gold); }
.vip-tiers { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.vip-tier { padding: 12px; border-radius: 14px; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.08); display: flex; flex-direction: column; gap: 2px; opacity: .6; }
.vip-tier.done { opacity: .85; } .vip-tier.on { opacity: 1; border-color: var(--gold); box-shadow: 0 0 24px -8px rgba(255,210,63,.6); }
.vip-i { font-size: 28px; } .vip-tier small { font-size: 12px; color: rgba(255,255,255,.6); } .vip-tier em { font-style: normal; font-size: 12px; color: var(--accent-hi); }
/* responsive */
@media (max-width: 1180px) { .cs-app { grid-template-columns: 200px minmax(0, 1fr); } .casino-page .cs-side { display: none; } }
@media (max-width: 820px) {
  .cs-app { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .cs-nav { flex-direction: row; overflow-x: auto; overflow-y: hidden; padding: 8px 10px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.06); gap: 4px; scrollbar-width: none; }
  .cs-nav-group { flex-direction: row; gap: 4px; }
  .cs-nav-group h4, .cs-nav-note { display: none; }
  .casino-page .cs-tab { white-space: nowrap; padding: 7px 10px; font-size: 13px; }
  .casino-page .cs-tab.on::before { display: none; }
  .casino-page .cs-main { padding: 12px 12px 96px; }
  .cs-logo { font-size: 16px; } .cs-logo i { width: 28px; height: 28px; }
  .casino-page .cs-head .back span, .cs-vip-badge, #inviteBtn { display: none; }
  .kn-grid { grid-template-columns: repeat(5, 1fr); }
  .bac-bets { grid-template-columns: 1fr 1fr 1fr; }
}
.casino-page .cs-main > *, .casino-page .cs-side > * { flex-shrink: 0; }
.casino-page .cs-side { display: flex; flex-direction: column; gap: 12px; }
.cs-ticker { position: relative; padding-left: 0 !important; }
.cs-tk-label { margin-left: 0; border-radius: 0 6px 6px 0; }
.cs-tk-label { position: relative; z-index: 2; box-shadow: 10px 0 12px 6px #000; }
@media (max-width: 1180px) { .casino-page .cs-side { display: none; } }
@media (max-width: 820px) {
  .casino-page .cs-wallet small, .casino-page .cs-logo b { display: none; }
  .casino-page .cs-head { gap: 8px; padding: 0 10px; }
  .casino-page .cs-wallet { padding: 6px 10px; }
  .casino-page .cs-wallet b { font-size: 16px; }
  .casino-page #daily { padding: 0 10px; font-size: 12px; white-space: nowrap; }
  .cs-hero { padding: 20px; }
  .cs-jackpot { width: 100%; }
  .cs-tiles { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
  .cs-tile-i { font-size: 44px; }
}

/* =====================================================================
   Cases, inventory, upgrader, case battles
   ===================================================================== */
.sk-art { display: block; width: 100%; }
.sk-art svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 6px 10px rgba(0,0,0,.6)); }
.sk-gold { display: grid; place-items: center; font-size: 40px; color: #e4ae39; text-shadow: 0 0 20px rgba(228,174,57,.8); height: 56px; }
.sk-gold.big { font-size: 52px; height: 70px; }
.sk-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 12px; background: linear-gradient(180deg, #16101a, #0c080f); border: 1px solid rgba(255,255,255,.08); border-bottom: 3px solid var(--rc); cursor: pointer; transition: transform .12s, box-shadow .12s; overflow: hidden; }
.sk-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--rc) 28%, transparent), transparent 65%); pointer-events: none; }
.sk-card:hover { transform: translateY(-2px); }
.sk-card.sel { box-shadow: 0 0 0 2px var(--gold, #ffd23f); }
.sk-card.sold { opacity: .35; }
.sk-card.tr::after { content: "TRACKER™"; position: absolute; top: 6px; right: 6px; font: 800 9px var(--mono); padding: 2px 5px; border-radius: 4px; background: #f97316; color: #000; }
.sk-card.fresh { animation: pop .35s cubic-bezier(.2,1.5,.4,1); }
.sk-info { position: relative; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.sk-w { font-size: 11px; color: rgba(255,255,255,.55); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sk-n { font-size: 14px; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sk-wear { font: 500 11px var(--mono); color: rgba(255,255,255,.5); }
.sk-v { font: 800 13px var(--mono); font-style: normal; color: #ffd23f; }
.sk-card .btn { position: relative; margin-top: 4px; }
.sk-tile { flex: none; width: 128px; height: 118px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 8px; border-right: 1px solid rgba(255,255,255,.05);
  background: linear-gradient(180deg, transparent 50%, color-mix(in srgb, var(--rc) 30%, transparent)); border-bottom: 4px solid var(--rc); }
.sk-tile .sk-art { width: 100px; }
.sk-tile small { font-size: 11px; color: rgba(255,255,255,.75); max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sk-tile.land { background: linear-gradient(180deg, color-mix(in srgb, var(--rc) 20%, transparent), color-mix(in srgb, var(--rc) 55%, transparent)); box-shadow: inset 0 0 30px color-mix(in srgb, var(--rc) 60%, transparent); }
.casino-page .cases-pane, .casino-page .inv-pane, .casino-page .up-pane, .casino-page .bt-pane { align-items: stretch; }
.ca-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.ca-case { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 12px; border-radius: 16px; text-align: center; color: #fff;
  background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--c1) 40%, transparent), transparent 65%), linear-gradient(180deg, var(--c2), #050307); border: 1px solid color-mix(in srgb, var(--c1) 45%, transparent); transition: transform .15s, box-shadow .15s; }
.ca-case:hover { transform: translateY(-4px); box-shadow: 0 16px 34px -14px var(--c1); }
.ca-box { font-size: 64px; filter: drop-shadow(0 10px 18px rgba(0,0,0,.6)) hue-rotate(0deg); }
.ca-case em { font: 800 15px var(--mono); font-style: normal; color: #ffd23f; }
.ca-case small { font-size: 11px; color: rgba(255,255,255,.6); }
.ca-open { display: flex; flex-direction: column; gap: 14px; }
.ca-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ca-head h2 { font-size: 22px; flex: 1; }
.ca-price { font: 800 16px var(--mono); color: #ffd23f; }
.ca-reels { display: flex; flex-direction: column; gap: 8px; }
.ca-reel { position: relative; overflow: hidden; border-radius: 14px; background: #000; border: 1px solid rgba(255,255,255,.1); padding: 6px 0; }
.ca-strip { display: flex; will-change: transform; }
.ca-marker { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; margin-left: -1.5px; background: #ffd23f; box-shadow: 0 0 14px #ffd23f; z-index: 2; }
.ca-marker::before, .ca-marker::after { content: ""; position: absolute; left: -7px; border: 8px solid transparent; }
.ca-marker::before { top: 0; border-top-color: #ffd23f; } .ca-marker::after { bottom: 0; border-bottom-color: #ffd23f; }
.ca-actions { justify-content: flex-start; align-items: center; }
.ca-n, .up-mults { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(255,255,255,.06); }
.ca-n button, .up-mults button { min-width: 38px; padding: 6px 12px; border-radius: 8px; color: rgba(255,255,255,.75); font-weight: 700; }
.ca-n button.on, .up-mults button.on { background: var(--accent); color: #fff; }
.ca-won { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; align-items: start; }
.ca-won .sk-card { animation: pop .4s cubic-bezier(.2,1.5,.4,1); }
.ca-won-bar { grid-column: 1 / -1; height: 0; }
.ca-sub { font-size: 14px; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.55); }
.ca-contents { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.ca-item { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px; border-radius: 10px; background: rgba(0,0,0,.35); border-bottom: 3px solid var(--rc); text-align: center; }
.ca-item .sk-art { width: 96px; }
.ca-item small { font-size: 10px; color: rgba(255,255,255,.55); } .ca-item b { font-size: 12px; } .ca-item em { font: 700 11px var(--mono); font-style: normal; color: #ffd23f; }
.inv-top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.inv-top > div { padding: 8px 14px; border-radius: 12px; background: #000; border: 1px solid rgba(255,255,255,.1); }
.inv-top small { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.5); }
.inv-top b { font: 800 18px var(--mono); color: #ffd23f; }
.inv-top select, .bt-form select { height: 40px; border-radius: 10px; background: #000; color: #fff; border: 1px solid rgba(255,255,255,.18); padding: 0 10px; font: inherit; }
.inv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.inv-grid.small { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); max-height: 420px; overflow: auto; padding: 4px; }
.up-stage { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; }
.up-slot { min-height: 200px; display: grid; place-items: center; padding: 10px; border-radius: 16px; border: 2px dashed rgba(255,255,255,.15); }
.up-slot .sk-card { width: 100%; max-width: 220px; cursor: default; }
.up-ring-wrap { position: relative; width: 200px; height: 200px; }
.up-ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.up-ring circle { fill: none; stroke-width: 14; }
.up-bg { stroke: rgba(239,68,68,.35); }
.up-win { stroke: #22c55e; stroke-linecap: butt; filter: drop-shadow(0 0 6px rgba(34,197,94,.7)); transition: stroke-dasharray .3s; }
.up-needle { position: absolute; left: 50%; top: 50%; width: 4px; height: 92px; margin-left: -2px; margin-top: -92px; background: linear-gradient(#fff, #ffd23f); border-radius: 2px; transform-origin: 50% 100%; box-shadow: 0 0 10px #ffd23f; }
.up-pct { position: absolute; inset: 0; display: grid; place-items: center; font: 800 26px var(--mono); color: #fff; }
.up-mults { align-self: center; }
.casino-page .up-pane #upBtn { align-self: center; }
.bt-create { padding: 14px; border-radius: 14px; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.08); }
.bt-create h3 { font-size: 16px; margin-bottom: 8px; }
.bt-form { display: flex; gap: 8px; flex-wrap: wrap; }
.bt-list { display: flex; flex-direction: column; gap: 12px; }
.bt-card { padding: 14px; border-radius: 16px; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.08); display: flex; flex-direction: column; gap: 10px; }
.bt-card.run { border-color: rgba(var(--accent-rgb), .6); box-shadow: 0 0 30px -12px var(--accent-glow); }
.bt-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.bt-head span { font-size: 13px; color: rgba(255,255,255,.6); }
.bt-cols { display: grid; gap: 8px; }
.bt-col { padding: 10px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.bt-col.me { border-color: rgba(var(--accent-rgb), .5); }
.bt-col.win { border-color: #ffd23f; box-shadow: 0 0 24px -8px rgba(255,210,63,.7); }
.bt-who { display: flex; align-items: center; gap: 6px; min-width: 0; }
.bt-who b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bt-total { font: 800 16px var(--mono); font-style: normal; color: #ffd23f; }
.bt-empty { color: rgba(255,255,255,.4); font-size: 13px; }
.bt-items { display: flex; flex-direction: column; gap: 6px; }
.bt-items .sk-card { padding: 6px; cursor: default; }
.bt-items .sk-art { width: 80px; }
.bt-result { font-weight: 700; color: #ffd23f; text-align: center; }

/* =====================================================================
   Global chat
   ===================================================================== */
.gc { display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.gc-head { display: flex; align-items: center; justify-content: space-between; }
.gc-online { font: 600 11px var(--mono); color: rgba(255,255,255,.55); display: inline-flex; align-items: center; gap: 6px; }
.gc-online i { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 6px #22c55e; }
.gc-log { list-style: none; display: flex; flex-direction: column; gap: 6px; height: 300px; overflow: auto; padding-right: 4px; }
.gc-pane .gc-log { height: min(60vh, 560px); }
.gc-log li { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; line-height: 1.35; }
.gc-av { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; }
.gc-body { min-width: 0; overflow-wrap: anywhere; color: rgba(255,255,255,.85); }
.gc-body b { color: #fff; margin-right: 2px; }
.gc-log li.me .gc-body b { color: var(--accent-hi); }
.gc-win .gc-body { padding: 4px 8px; border-radius: 8px; background: linear-gradient(90deg, rgba(255,210,63,.18), transparent); border-left: 3px solid #ffd23f; }
.gc-win em { font-style: normal; font-weight: 800; color: #ffd23f; }
.gc-sys { color: rgba(255,255,255,.45); justify-content: center; }
.gc-form { display: flex; gap: 6px; }
.gc-form input { flex: 1; min-width: 0; height: 36px; border-radius: 10px; background: #000; border: 1px solid rgba(255,255,255,.15); color: #fff; padding: 0 10px; font: inherit; font-size: 13px; outline: none; }
.gc-form input:focus { border-color: var(--accent); }
.casino-page .gc-pane { align-items: stretch; }
.gc-badge { margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: #fff; font: 700 11px/18px var(--sans); text-align: center; }
.casino-page .switch-btn { display: none !important; }
.cs-help { width: 34px; padding: 0; font-weight: 800; }

/* =====================================================================
   Welcome + tour
   ===================================================================== */
.tr-welcome { z-index: 300; }
.tr-card { max-width: 440px; text-align: center; display: flex; flex-direction: column; gap: 12px; align-items: center; background: radial-gradient(400px 200px at 50% 0%, rgba(var(--accent-rgb), .3), transparent 70%), #0e0911; border: 1px solid rgba(var(--accent-rgb), .5); }
.tr-logo { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; font-size: 32px; background: #000; border: 2px solid var(--accent); color: var(--accent-hi); box-shadow: 0 0 30px -4px var(--accent-glow); }
.tr-card h2 { font-size: 26px; }
.tr-card h2 b { background: linear-gradient(90deg, var(--accent-hi), #ffd23f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tr-card p { color: rgba(255,255,255,.75); font-size: 14px; }
.tr-card small { color: rgba(255,255,255,.45); font-size: 12px; }
.tr-name { width: 100%; display: flex; flex-direction: column; gap: 6px; text-align: left; font-size: 12px; color: rgba(255,255,255,.6); }
.tr-name input { height: 46px; border-radius: 12px; background: #000; border: 1px solid rgba(255,255,255,.2); color: #fff; font: 600 16px var(--sans); padding: 0 14px; outline: none; }
.tr-name input:focus { border-color: var(--accent); }
.tr-name input.shake { animation: shake .35s; border-color: #ef4444; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.tour { position: fixed; inset: 0; z-index: 300; }
.tr-hole { position: fixed; border-radius: 12px; box-shadow: 0 0 0 9999px rgba(0,0,0,.72), 0 0 0 3px var(--accent), 0 0 30px var(--accent-glow); transition: all .3s cubic-bezier(.2,.8,.2,1); pointer-events: none; }
.tr-tip { position: fixed; padding: 16px; border-radius: 16px; background: #120c16; border: 1px solid rgba(var(--accent-rgb), .6); box-shadow: 0 20px 50px rgba(0,0,0,.7); display: flex; flex-direction: column; gap: 6px; transition: left .3s, top .3s; }
.tr-tip b { font-size: 17px; }
.tr-tip p { font-size: 14px; color: rgba(255,255,255,.8); }
.tr-n { font: 700 11px var(--mono); color: var(--accent-hi); letter-spacing: .08em; }
.tr-row { display: flex; justify-content: space-between; margin-top: 6px; }
@media (max-width: 820px) { .up-stage { grid-template-columns: 1fr; justify-items: center; } .up-slot { width: 100%; min-height: 150px; } }

/* =====================================================================
   Casino: servers (no OXIDPVP dock here)
   ===================================================================== */
.casino-page .dock, .casino-page .overlay.lobby, .casino-page .chat-peek { display: none !important; }
.cs-leave { background: rgba(239, 68, 68, .15); border-color: rgba(239, 68, 68, .45); color: #fca5a5; white-space: nowrap; }
.cs-leave:hover { background: rgba(239, 68, 68, .28); color: #fff; }
.cs-icon { width: 34px; padding: 0; }
.sv-overlay { position: fixed; inset: 0; z-index: 200; overflow: auto; background: radial-gradient(1000px 500px at 50% -10%, rgba(var(--accent-rgb), .22), transparent 70%), #08050b; }
.sv-wrap { max-width: 1100px; margin: 0 auto; padding: 20px 20px 40px; display: flex; flex-direction: column; gap: 20px; }
.sv-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.sv-head .cs-logo { margin-right: auto; }
.sv-me { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; border-radius: 12px; background: #000; border: 1px solid rgba(255,255,255,.12); font-size: 13px; color: rgba(255,255,255,.6); }
.sv-me input { width: 150px; height: 32px; border-radius: 8px; background: #16101a; border: 1px solid rgba(255,255,255,.12); color: #fff; font: 600 14px var(--sans); padding: 0 10px; outline: none; }
.sv-me input:focus { border-color: var(--accent); }
.sv-me input.shake { animation: shake .35s; border-color: #ef4444; }
.sv-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 18px; align-items: start; }
.sv-list-card, .sv-create { padding: 20px; border-radius: 20px; background: #120c16; border: 1px solid rgba(var(--accent-rgb), .25); display: flex; flex-direction: column; gap: 12px; }
.sv-list-head { display: flex; align-items: center; gap: 10px; }
.sv-list-head h2 { font-size: 22px; }
.sv-count { font: 700 12px var(--mono); color: #4ade80; margin-right: auto; }
.sv-status { padding: 10px 12px; border-radius: 10px; background: rgba(var(--accent-rgb), .12); border: 1px solid rgba(var(--accent-rgb), .35); font-size: 14px; }
.sv-status.bad { background: rgba(239,68,68,.12); border-color: rgba(239,68,68,.45); color: #fecaca; }
.sv-list { display: flex; flex-direction: column; gap: 8px; min-height: 120px; }
.sv-empty { padding: 30px; text-align: center; color: rgba(255,255,255,.5); border: 2px dashed rgba(255,255,255,.1); border-radius: 14px; }
.sv-row { display: grid; grid-template-columns: auto 1fr 110px auto auto; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); transition: border-color .15s; }
.sv-row:hover { border-color: rgba(var(--accent-rgb), .5); }
.sv-row.full { opacity: .6; }
.sv-ic { font-size: 26px; }
.sv-info { min-width: 0; display: flex; flex-direction: column; }
.sv-info b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sv-info small { color: rgba(255,255,255,.5); font-size: 12px; }
.sv-bar { height: 6px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.sv-bar::after { content: ""; display: block; height: 100%; width: var(--p); background: linear-gradient(90deg, #22c55e, #facc15); }
.sv-n { font: 700 13px var(--mono); color: rgba(255,255,255,.75); }
.sv-pw { grid-column: 1 / -1; display: flex; gap: 8px; }
.sv-pw input, .sv-code input, .sv-create input:not([type=checkbox]) { flex: 1; min-width: 0; height: 40px; border-radius: 10px; background: #000; border: 1px solid rgba(255,255,255,.15); color: #fff; padding: 0 12px; font: inherit; outline: none; }
.sv-pw input:focus, .sv-code input:focus, .sv-create input:focus { border-color: var(--accent); }
.sv-code { display: flex; gap: 8px; }
.sv-code input { font-family: var(--mono); letter-spacing: .15em; text-transform: uppercase; }
.sv-create h2 { font-size: 20px; }
.sv-create label:not(.check) { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: rgba(255,255,255,.65); }
.sv-create label small { color: rgba(255,255,255,.4); }
.sv-online { font-size: 13px; color: rgba(255,255,255,.6); padding-top: 8px; border-top: 1px solid rgba(255,255,255,.08); }
.sv-online b { color: #4ade80; font-family: var(--mono); }
.sv-foot { text-align: center; font-size: 12px; color: rgba(255,255,255,.4); }
.sv-leave { z-index: 250; }
.sv-leave-card { max-width: 380px; text-align: center; display: flex; flex-direction: column; gap: 10px; background: #120c16; border: 1px solid rgba(var(--accent-rgb), .45); }
.sv-leave-card h2 { font-size: 22px; }
.gc-tabs { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: rgba(255,255,255,.06); }
.gc-tabs button { position: relative; padding: 5px 12px; border-radius: 8px; font: 700 12px var(--sans); color: rgba(255,255,255,.6); }
.gc-tabs button.on { background: var(--accent); color: #fff; }
.gc-dot { position: absolute; top: 3px; right: 3px; width: 7px; height: 7px; border-radius: 50%; background: #facc15; }
.gc-view { display: flex; flex-direction: column; gap: 8px; }
.gc-view[hidden] { display: none; }
@media (max-width: 860px) { .sv-grid { grid-template-columns: 1fr; } .sv-row { grid-template-columns: auto 1fr auto auto; } .sv-bar { display: none; } }
@media (max-width: 820px) { .casino-page #muteBtn, .casino-page #helpBtn { display: none; } }
.sv-create label input { flex: none !important; height: 42px; }

/* ---------- Latest big wins (under every game) ---------- */
.bw-feed { width: 100%; align-self: stretch; margin-top: 10px; padding: 14px; border-radius: 16px; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.08); display: flex; flex-direction: column; gap: 10px; color: #fff; }
.cs-lobby .bw-feed { margin-top: 18px; }
.bw-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.bw-head h3 { font-size: 15px; }
.bw-seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: rgba(255,255,255,.06); }
.bw-seg[hidden] { display: none; }
.bw-seg button { white-space: nowrap; padding: 5px 12px; border-radius: 8px; font: 700 12px var(--sans); color: rgba(255,255,255,.6); }
.bw-seg button.on { background: var(--accent); color: #fff; }
.bw-table { display: flex; flex-direction: column; }
.bw-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.4fr) 80px 90px 110px; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; font-size: 13px; }
.bw-row:nth-child(even) { background: rgba(255,255,255,.025); }
.bw-row.fresh { animation: bw-in .6s ease-out; }
@keyframes bw-in { from { background: rgba(255, 210, 63, .25); transform: translateY(-4px); } }
.bw-row.me { box-shadow: inset 3px 0 0 var(--accent); }
.bw-th { font: 700 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.4); background: none !important; }
.bw-who { display: flex; align-items: center; gap: 8px; min-width: 0; }
.bw-who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bw-game { min-width: 0; display: flex; flex-direction: column; overflow: hidden; }
.bw-game small { font-size: 11px; color: rgba(255,255,255,.5); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bw-bet { font-family: var(--mono); color: rgba(255,255,255,.6); text-align: right; }
.bw-mult { font: 700 13px var(--mono); text-align: right; color: #4ade80; }
.bw-mult.hot { color: #ffd23f; text-shadow: 0 0 10px rgba(255,210,63,.6); }
.bw-pay { font: 800 13px var(--mono); text-align: right; color: #ffd23f; }
.bw-body { display: flex; flex-direction: column; }
.bw-empty { padding: 18px; text-align: center; color: rgba(255,255,255,.45); font-size: 13px; }
@media (max-width: 700px) { .bw-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 70px 90px; } .bw-bet, .bw-th span:nth-child(3) { display: none; } }

/* ---------- What's new ---------- */
.casino-page .news-pane { align-items: stretch; gap: 12px; }
.news-title { font-size: 26px; }
.news-item { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 16px; border-radius: 16px; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.08); }
.news-item:first-of-type { border-color: rgba(var(--accent-rgb), .5); box-shadow: 0 0 30px -14px var(--accent-glow); }
.news-meta { display: flex; flex-direction: column; gap: 4px; }
.news-v { align-self: flex-start; font: 800 13px var(--mono); padding: 3px 9px; border-radius: 999px; background: var(--accent); color: #fff; }
.news-meta time { font-size: 12px; color: rgba(255,255,255,.5); }
.news-item h3 { font-size: 17px; margin-bottom: 6px; }
.news-item ul { padding-left: 18px; display: flex; flex-direction: column; gap: 4px; color: rgba(255,255,255,.8); font-size: 14px; }
.news-dot { font-size: 9px !important; letter-spacing: .06em; }
@media (max-width: 620px) { .news-item { grid-template-columns: 1fr; gap: 8px; } .news-meta { flex-direction: row; align-items: center; } }

/* ---- Owner tools as the player sees them (staff.js) ---- */
.gc-role { display: inline-block; font-size: 9.5px; font-weight: 800; letter-spacing: .04em; padding: 1px 5px; border-radius: 5px; margin-right: 5px; vertical-align: 1px; background: rgba(var(--accent-rgb), .2); color: var(--accent-hi); }
.gc-role.r-owner { background: linear-gradient(135deg, #facc15, #f59e0b); color: #1a1000; }
.gc-role.r-mod { background: rgba(59, 130, 246, .25); color: #93c5fd; }
.gc-sys { font-style: normal; }
li.gc-sys .gc-body { color: #fde68a; }
.gc-say, .gc-win, .gc-sys { position: relative; }
.st-mod { all: unset; cursor: pointer; position: absolute; right: 4px; top: 4px; padding: 0 6px; border-radius: 6px; color: var(--muted); background: var(--surface-3); font-weight: 800; opacity: 0; }
li:hover > .st-mod, .st-mod:focus { opacity: 1; }
.st-menu { position: fixed; z-index: 400; background: var(--surface-2); border: 1px solid var(--line-3); border-radius: 12px; padding: 6px; min-width: 190px; box-shadow: 0 20px 50px -10px #000; }
.st-menu-h { font-size: 12px; color: var(--muted); padding: 6px 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.st-menu button { all: unset; cursor: pointer; display: block; width: 100%; box-sizing: border-box; padding: 8px 10px; border-radius: 8px; font-size: 14px; }
.st-menu button:hover { background: var(--surface-3); }
.cs-admin { color: var(--yellow) !important; }
.st-card { text-align: center; max-width: 380px; }
.st-card p { overflow-wrap: anywhere; }
.st-big { font-size: 54px; line-height: 1; margin-bottom: 6px; }
.st-gift h2 { font-size: 30px; margin: 4px 0; }
.st-ban { position: fixed; inset: 0; z-index: 1000; background: radial-gradient(circle at 50% 30%, #2a0613, #000 70%); display: grid; place-items: center; padding: 20px; }
.st-ban-card { text-align: center; max-width: 460px; }
.st-ban-card h1 { font-size: 28px; margin: 8px 0; }
.st-reason { font-weight: 600; color: #fda4af; }
body.st-banned { overflow: hidden; }
.st-bc-wrap { position: fixed; top: 70px; left: 50%; transform: translateX(-50%); z-index: 900; width: min(560px, calc(100% - 32px)); display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.st-bc { pointer-events: auto; display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 16px; background: linear-gradient(135deg, rgba(var(--accent-rgb), .95), #a3004f); color: #fff; box-shadow: 0 20px 60px -12px rgba(var(--accent-rgb), .7); animation: stDrop .45s cubic-bezier(.2, 1.4, .4, 1); transition: opacity .5s, transform .5s; }
.st-bc.warn { background: linear-gradient(135deg, #f59e0b, #b45309); box-shadow: 0 20px 60px -12px rgba(245, 158, 11, .6); }
.st-bc.party { background: linear-gradient(135deg, #a855f7, #ec4899, #f59e0b); background-size: 200% 200%; animation: stDrop .45s cubic-bezier(.2, 1.4, .4, 1), stShift 3s linear infinite; }
.st-bc.gone { opacity: 0; transform: translateY(-10px); }
.st-bc-ic { font-size: 28px; }
.st-bc div { flex: 1; min-width: 0; }
.st-bc small { font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; opacity: .85; font-weight: 700; }
.st-bc p { margin: 2px 0 0; font-weight: 700; font-size: 16px; overflow-wrap: anywhere; }
.st-bc button { all: unset; cursor: pointer; font-size: 22px; padding: 0 6px; opacity: .8; }
@keyframes stDrop { from { opacity: 0; transform: translateY(-30px) scale(.95); } }
@keyframes stShift { to { background-position: 200% 0; } }
.st-ann { display: flex; align-items: center; gap: 10px; padding: 10px 14px; margin-bottom: 12px; border-radius: 12px; background: rgba(var(--accent-rgb), .14); border: 1px solid rgba(var(--accent-rgb), .45); font-weight: 600; flex-shrink: 0; }
.st-ann span { flex: 1; overflow-wrap: anywhere; }
.st-ann button { all: unset; cursor: pointer; font-size: 20px; color: var(--muted); padding: 0 4px; }
.promo-pane { display: grid; place-items: start center; }
.promo-card { text-align: center; max-width: 440px; width: 100%; margin: 30px auto; padding: 28px; border-radius: 20px; background: linear-gradient(160deg, rgba(var(--accent-rgb), .16), rgba(255, 255, 255, .02)); border: 1px solid rgba(var(--accent-rgb), .35); }
.promo-card h2 { margin: 4px 0; }
.promo-form { display: flex; gap: 8px; margin-top: 16px; }
.promo-form input { flex: 1; min-width: 0; text-align: center; font-family: "Geist Mono", monospace; font-size: 18px; letter-spacing: .15em; background: var(--field); border: 1px solid var(--line-2); color: var(--text); border-radius: 12px; padding: 12px; }
.promo-form input:focus { outline: none; border-color: var(--accent); }
.promo-msg { min-height: 1.3em; margin-top: 12px; font-weight: 600; }
.promo-msg.ok { color: var(--green); }
.promo-msg.bad { color: var(--danger); }
/* limbo */
.lb-out { font: 800 clamp(56px, 10vw, 96px) var(--mono); letter-spacing: -0.04em; color: #fff; }
.lb-out.win { color: #4ade80; text-shadow: 0 0 30px rgba(74,222,128,.5); } .lb-out.lose { color: #f87171; }
.lb-in { width: 100%; max-width: 140px; text-align: center; font: 800 18px var(--mono); background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.15); color: #fff; border-radius: 8px; padding: 4px; }
.lb-quick { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
/* tower */
.tw-diff.locked { opacity: .5; pointer-events: none; }
.tw-board { display: flex; flex-direction: column; gap: 6px; width: min(460px, 100%); }
.tw-row { display: grid; grid-template-columns: 64px repeat(var(--cols), 1fr); gap: 6px; align-items: center; opacity: .55; transition: opacity .2s; }
.tw-row.active, .tw-row.done { opacity: 1; }
.tw-row.active .tw-t:not(:disabled) { border-color: rgba(96,165,250,.7); box-shadow: 0 0 18px -6px #60a5fa; }
.tw-m { font: 700 12px var(--mono); color: rgba(255,255,255,.6); text-align: right; padding-right: 4px; }
.tw-row.active .tw-m { color: #93c5fd; }
.tw-t { height: 40px; border-radius: 10px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: #fff; font-size: 18px; cursor: pointer; transition: transform .1s, background .15s; }
.tw-t:not(:disabled):hover { transform: translateY(-2px); background: rgba(96,165,250,.2); }
.tw-t:disabled { cursor: default; }
.tw-t.safe { background: rgba(34,197,94,.25); border-color: #22c55e; }
.tw-t.boom { background: rgba(239,68,68,.35); border-color: #ef4444; animation: twShake .3s; }
.tw-t.trap { background: rgba(239,68,68,.12); }
.tw-t.dim { opacity: .5; }
.tw-actions { display: flex; gap: 10px; }
@keyframes twShake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.tw-diff { display: inline-flex; gap: 4px; padding: 4px; } .tw-diff button { padding: 7px 14px; border-radius: 8px; }
/* ---- progress.js: levels, missions, achievements, stats ---- */
.pg-lvl-badge { all: unset; cursor: pointer; display: inline-flex; flex-direction: column; gap: 3px; padding: 5px 10px; border-radius: 10px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); font: 800 12px var(--mono); color: #fff; min-width: 54px; position: relative; }
.pg-lvl-badge i { display: block; height: 4px; border-radius: 4px; background: rgba(255,255,255,.1); overflow: hidden; }
.pg-lvl-badge i::after { content: ""; display: block; height: 100%; width: var(--p); background: var(--grad); }
.pg-lvl-badge.ready::before { content: ""; position: absolute; top: -3px; right: -3px; width: 9px; height: 9px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 8px #22c55e; }
.pg-lvlup { position: fixed; left: 50%; top: 40%; transform: translate(-50%, -50%); z-index: 950; text-align: center; pointer-events: none; animation: pgPop 3.2s ease forwards; }
.pg-lvlup b { display: block; font: 900 clamp(40px, 8vw, 72px) var(--sans, inherit); background: linear-gradient(135deg, #fde68a, #f59e0b, #ff2e93); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 6px 30px rgba(245,158,11,.5)); }
.pg-lvlup span { display: block; font-size: 24px; font-weight: 800; }
.pg-lvlup small { display: block; font-size: 20px; color: #facc15; font-weight: 800; }
@keyframes pgPop { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.6); } 12% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -60%) scale(1); } }
.pg-ach { position: fixed; right: 20px; bottom: 20px; z-index: 950; display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-radius: 14px; background: linear-gradient(135deg, #1f1508, #3a2606); border: 1px solid #f59e0b; box-shadow: 0 20px 50px -10px rgba(245,158,11,.4); animation: stDrop .4s ease; }
.pg-ach-ic { font-size: 32px; }
.pg-ach small { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: #fbbf24; font-weight: 800; }
.pg-ach b { display: block; }
.pg-ach em { font-style: normal; color: #facc15; font-weight: 700; font-size: 13px; }
.pg-pane { align-items: stretch !important; }
.pg-h { margin: 14px 0 0; font-size: 18px; }
.pg-level { display: flex; gap: 16px; align-items: center; padding: 18px; border-radius: 18px; background: linear-gradient(135deg, rgba(var(--accent-rgb), .22), rgba(255,255,255,.03)); border: 1px solid rgba(var(--accent-rgb), .4); }
.pg-lv-num { width: 64px; height: 64px; flex: none; display: grid; place-items: center; border-radius: 16px; background: var(--grad); font: 900 28px var(--mono); color: #fff; box-shadow: 0 10px 30px -8px var(--accent-glow); }
.pg-lv-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.pg-lv-body small { color: rgba(255,255,255,.6); }
.pg-bar { height: 8px; border-radius: 8px; background: rgba(255,255,255,.08); overflow: hidden; }
.pg-bar i { display: block; height: 100%; background: var(--grad); border-radius: 8px; transition: width .4s; }
.pg-free { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: linear-gradient(135deg, rgba(34,211,238,.15), rgba(255,46,147,.12)); border: 1px solid rgba(34,211,238,.35); }
.pg-free-ic { font-size: 34px; }
.pg-free div { flex: 1; display: flex; flex-direction: column; }
.pg-free small { color: rgba(255,255,255,.6); }
.pg-mis-list { display: flex; flex-direction: column; gap: 8px; }
.pg-mis { display: flex; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
.pg-mis.ready { border-color: #22c55e; background: rgba(34,197,94,.08); }
.pg-mis.claimed { opacity: .55; }
.pg-mis-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.pg-mis-body small { color: rgba(255,255,255,.55); font-size: 12px; }
.pg-ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.pg-ach-c { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; padding: 12px 8px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07); opacity: .6; }
.pg-ach-c.on { opacity: 1; border-color: rgba(245,158,11,.5); background: rgba(245,158,11,.08); }
.pg-ach-c span { font-size: 28px; }
.pg-ach-c small { color: rgba(255,255,255,.55); font-size: 11.5px; }
.pg-ach-c em { font-style: normal; font-size: 11px; font-weight: 800; color: #facc15; }
.pg-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.pg-stat { padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); display: flex; flex-direction: column; gap: 3px; }
.pg-stat small { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.5); }
.pg-stat b { font: 800 17px var(--mono); overflow-wrap: anywhere; }
.pg-graph { position: relative; height: 170px; border-radius: 14px; background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.08); overflow: hidden; }
.pg-graph svg { width: 100%; height: 100%; display: block; }
.pg-graph-l { position: absolute; inset: 6px 10px; display: flex; flex-direction: column; justify-content: space-between; font: 700 11px var(--mono); color: rgba(255,255,255,.5); pointer-events: none; }
.pg-games { display: flex; flex-direction: column; gap: 6px; }
.pg-game { display: grid; grid-template-columns: 130px 1fr 50px; gap: 10px; align-items: center; font-size: 13px; }
.pg-game b { text-align: right; font-family: var(--mono); }
.pg-hist { display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; border: 1px solid rgba(255,255,255,.08); }
.pg-hr { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 8px; padding: 8px 12px; font-size: 13px; border-bottom: 1px solid rgba(255,255,255,.05); }
.pg-hr.pg-th { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.5); background: rgba(255,255,255,.03); }
.pg-hr.win .pg-pay { color: #4ade80; font-weight: 700; }
.pg-when { color: rgba(255,255,255,.45); }
.pg-sel { align-self: flex-start; background: var(--field); color: #fff; border: 1px solid rgba(255,255,255,.15); border-radius: 10px; padding: 8px 10px; }
@media (max-width: 600px) { .pg-hr { grid-template-columns: 1.3fr 1fr 1fr; } .pg-hr > :nth-child(3), .pg-hr > :nth-child(5) { display: none; } .pg-game { grid-template-columns: 100px 1fr 40px; } }
/* ---- cases extras: tags, 2v2, gifts, showcase, trade-up ---- */
.ca-case { position: relative; }
.ca-tag { position: absolute; top: 8px; left: 8px; font: 800 10px var(--mono); padding: 2px 7px; border-radius: 6px; background: #22c55e; color: #03140a; }
.bt-col.team-a { box-shadow: inset 0 3px 0 #3b82f6; }
.bt-col.team-b { box-shadow: inset 0 3px 0 #f97316; }
.bt-form select { max-width: 100%; }
.inv-gift-list { display: flex; flex-direction: column; gap: 6px; margin: 12px 0; }
.inv-shows { width: 100%; display: flex; flex-direction: column; gap: 8px; }
.inv-show-row { display: flex; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 12px; background: rgba(255,255,255,.03); }
.inv-show-row > b { min-width: 80px; }
.inv-show-items { display: flex; gap: 8px; overflow-x: auto; }
.inv-show-items .sk-card { width: 130px; flex: none; }
.tu-head { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.tu-head h2 { margin: 0; }
.tu-slots { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; width: min(640px, 100%); }
.tu-slot { aspect-ratio: 1; border-radius: 10px; border: 1px dashed rgba(255,255,255,.2); background: rgba(255,255,255,.03); display: grid; place-items: center; overflow: hidden; }
.tu-slot.on { border: 1px solid var(--rc); background: color-mix(in srgb, var(--rc) 15%, transparent); }
.tu-slot svg { width: 90%; height: auto; }
.sk-card.off { opacity: .3; pointer-events: none; }
@media (max-width: 600px) { .tu-slots { grid-template-columns: repeat(5, 1fr); } }
/* ---- social.js ---- */
.gc-lvl { display: inline-block; font: 800 9.5px var(--mono); padding: 1px 5px; border-radius: 5px; margin-right: 5px; vertical-align: 1px; background: rgba(255,255,255,.1); color: rgba(255,255,255,.75); }
.gc-lvl.mid { background: rgba(59,130,246,.25); color: #93c5fd; }
.gc-lvl.hi { background: rgba(245,158,11,.25); color: #fcd34d; }
.cs-person:not(.me) { cursor: pointer; }
.cs-person:not(.me):hover { background: rgba(255,255,255,.06); }
.so-set { margin-top: 6px; }
.so-quick { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin: 10px 0; }
.so-in { width: 100%; box-sizing: border-box; background: var(--field); border: 1px solid rgba(255,255,255,.15); color: #fff; border-radius: 10px; padding: 10px 12px; font: inherit; margin-bottom: 10px; }
.so-l { display: flex; flex-direction: column; gap: 6px; text-align: left; margin: 12px 0 6px; }
.so-l.check { flex-direction: row; align-items: center; }
.so-people { display: flex; flex-direction: column; gap: 6px; margin: 10px 0; }
.so-p { display: flex; justify-content: space-between; align-items: center; padding: 6px 10px; border-radius: 10px; background: rgba(255,255,255,.04); }
.ra-pane { align-items: stretch !important; }
.ra-hero { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 20px; border-radius: 18px; background: linear-gradient(135deg, rgba(34,197,94,.18), rgba(var(--accent-rgb), .14)); border: 1px solid rgba(34,197,94,.35); flex-wrap: wrap; }
.ra-hero small { text-transform: uppercase; letter-spacing: .12em; font-size: 11px; color: #86efac; font-weight: 800; }
.ra-hero h2 { margin: 2px 0 4px; font-size: 26px; }
.ra-clock { text-align: center; padding: 10px 16px; border-radius: 14px; background: rgba(0,0,0,.35); }
.ra-clock b { display: block; font: 800 22px var(--mono); }
.ra-prizes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ra-prize { display: flex; flex-direction: column; align-items: center; padding: 12px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
.ra-prize span { font-size: 28px; } .ra-prize b { font: 800 16px var(--mono); } .ra-prize small { color: rgba(255,255,255,.5); }
.ra-prize.p1 { border-color: rgba(250,204,21,.5); background: rgba(250,204,21,.08); }
.ra-seg { align-self: center; }
.ra-list, .ra-last { display: flex; flex-direction: column; gap: 6px; }
.ra-last h3 { margin: 10px 0 2px; font-size: 15px; }
.ra-row { display: flex; gap: 12px; align-items: center; padding: 10px 14px; border-radius: 12px; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.06); }
.ra-row b { flex: 1; } .ra-row em { font: 800 14px var(--mono); font-style: normal; color: #86efac; }
.ra-row.me { border-color: var(--accent); }
.ra-rank { width: 28px; text-align: center; font-weight: 800; color: rgba(255,255,255,.5); }
