/* Per-game styles. Games keep their own materials (felt, wood, ice) in both themes. */

/* ---------- pool ---------- */
.pool { position: absolute; inset: 0; }
.pool-hud { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 14px; z-index: 2; width: min(100% - 16px, 980px); justify-content: center; }
.pool-player { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px; background: #1e2733; color: #fff; border-radius: 16px; box-shadow: 0 4px 14px rgba(0,0,0,.18); transition: box-shadow .25s, transform .25s; }
.pool-player.them { flex-direction: row-reverse; padding: 6px 6px 6px 12px; text-align: right; }
.pool-player.turn { box-shadow: 0 0 0 3px #ffc93c, 0 4px 18px rgba(255,201,60,.35); }
.pool-av { width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--c); display: grid; place-items: center; font: 800 20px var(--display); color: #fff; border: 3px solid #fff3; position: relative; }
.pool-player.turn .pool-av::after { content: ''; position: absolute; inset: -7px; border-radius: 50%; border: 3px solid transparent; border-top-color: #ffc93c; border-right-color: #ffc93c; animation: pool-spin-ring 1.4s linear infinite; }
@keyframes pool-spin-ring { to { transform: rotate(360deg); } }
.pool-pinfo { display: grid; line-height: 1.15; min-width: 0; }
.pool-pinfo b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pool-pinfo small { font-size: 11px; opacity: .65; }
.pool-slots { display: flex; gap: 3px; margin-left: auto; }
.pool-player.them .pool-slots { margin-left: 0; margin-right: auto; }
.pool-slots i { width: 24px; height: 24px; border-radius: 50%; flex: none; display: grid; place-items: center; }
.pool-slots i.slot { background: #0f151d; box-shadow: inset 0 2px 4px rgba(0,0,0,.6); }
.pool-slots i.ball { background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.7), transparent 30%), var(--c); box-shadow: inset 0 -3px 5px rgba(0,0,0,.35); }
.pool-slots i.ball.stripe { background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.7), transparent 30%), linear-gradient(#f8f4ea 26%, var(--c) 26% 74%, #f8f4ea 74%); }
.pool-slots i.ball.eight { background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.6), transparent 30%), #16161c; }
.pool-slots i b { width: 12px; height: 12px; border-radius: 50%; background: #fff; color: #141829; font: 800 8px/12px var(--body); text-align: center; }
.pool-spin { width: 60px; height: 60px; flex: none; border-radius: 50%; border: 0; background: radial-gradient(circle at 35% 30%, #fff, #e6e0d2 55%, #b9b2a2); box-shadow: 0 4px 14px rgba(0,0,0,.25), inset 0 -4px 8px rgba(0,0,0,.15); position: relative; display: grid; place-items: center; cursor: pointer; }
.pool-spin i { width: 12px; height: 12px; border-radius: 50%; background: #d8262c; box-shadow: 0 0 0 3px rgba(216,38,44,.25); transition: transform .15s; }
.pool-spin::after { content: 'SPIN'; position: absolute; bottom: -15px; font: 800 9px var(--body); letter-spacing: .12em; color: var(--ink-soft); }
@media (max-width: 760px) { .pool-pinfo { display: none; } .pool-slots i { width: 17px; height: 17px; } .pool-slots i b { display: none; } .pool-av { width: 36px; height: 36px; font-size: 16px; } .pool-spin { width: 48px; height: 48px; } .pool-hud { gap: 8px; } }
@media (max-width: 420px) { .pool-slots i { width: 13px; height: 13px; } .pool-slots { gap: 2px; } .pool-player { gap: 5px; padding: 4px 6px 4px 4px; } .pool-player.them { padding: 4px 4px 4px 6px; } }
.pool-power {
  position: absolute; right: 6px; top: 56px; bottom: 16px; width: 46px; border: var(--bw) solid var(--line); border-radius: 16px;
  background: repeating-linear-gradient(to bottom, transparent 0 calc(10% - 1px), rgba(255,255,255,.14) calc(10% - 1px) 10%), linear-gradient(90deg, #1b2136, #2a3252 50%, #1b2136);
  box-shadow: 0 4px 0 var(--shade), inset 0 2px 8px rgba(0,0,0,.4); touch-action: none; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; opacity: .5; transition: opacity .2s; cursor: ns-resize;
}
.pool-power::after { content: ''; position: absolute; left: 50%; top: 8px; bottom: 34px; width: 6px; margin-left: -3px; border-radius: 3px; background: linear-gradient(#4a8dff 0 4%, #fbf8f0 4% 8%, #efd8a8 8% 70%, #2a2a32 70% 72%, #7a2d2d 72%); opacity: .55; transform: translateY(calc(var(--p, 0) * 30%)); pointer-events: none; }
.pool.my-turn .pool-power::after { opacity: .9; }
.pool.my-turn .pool-power { opacity: 1; }
.pool-power-fill { position: absolute; left: 0; right: 0; top: 0; height: calc(var(--p, 0) * 100%); background: linear-gradient(color-mix(in srgb, var(--mint) 85%, transparent), color-mix(in srgb, var(--butter) 85%, transparent) 60%, color-mix(in srgb, var(--pop) 90%, transparent)); box-shadow: 0 2px 10px color-mix(in srgb, var(--pop) 50%, transparent); transition: height .05s; }
.pool-power span { position: relative; font: 800 11px var(--body); text-transform: uppercase; letter-spacing: .1em; writing-mode: vertical-rl; transform: rotate(180deg); margin-bottom: 10px; color: #c9d1ea; text-shadow: 0 1px 2px rgba(0,0,0,.6); pointer-events: none; z-index: 1; }
.pool.vertical .pool-power { left: 6px; right: auto; top: 64px; bottom: 8px; width: 44px; }
.pool.vertical .pool-tools { display: none; }
.pool-tools { position: absolute; left: 6px; bottom: 6px; display: flex; gap: 6px; z-index: 2; opacity: .45; transition: opacity .2s; }
.pool.my-turn .pool-tools { opacity: 1; }
.pool.vertical .pool-tools { flex-direction: row; }
.icon-btn.small { width: 34px; height: 46px; font-size: 22px; }
.pool-hint { position: absolute; bottom: 64px; left: 50%; transform: translateX(-50%); font-size: 12.5px; font-weight: 600; color: var(--ink-soft); white-space: nowrap; pointer-events: none; }
.pool:not(.vertical) .pool-hint { bottom: 2px; }
@media (max-width: 460px) { .pool-hint { display: none; } }

/* ---------- chess ---------- */
.chess { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; height: 100%; justify-content: center; }
.chess.wide { flex-direction: row; align-items: center; gap: 18px; }
.chess-board { position: relative; display: grid; grid-template-columns: repeat(8, 1fr); grid-template-rows: repeat(8, 1fr); border: var(--bw) solid var(--line); border-radius: 10px; overflow: hidden; box-shadow: 0 6px 0 var(--shade); touch-action: none; user-select: none; -webkit-user-select: none; }
.sq { position: relative; }
.sq.light { background: #f3e2c0; } .sq.dark { background: #b98a57; }
.sq.last.light { background: #f5d97a; } .sq.last.dark { background: #d1ab4c; }
.sq.sel { box-shadow: inset 0 0 0 4px rgba(59, 108, 255, .7); }
.sq.check { background: radial-gradient(circle, #ff3b5c 0%, #ff3b5c88 40%, transparent 72%), #e8b07a !important; }
.sq.dot::after { content: ''; position: absolute; inset: 37%; border-radius: 50%; background: rgba(20, 24, 41, .28); }
.sq.cap::after { content: ''; position: absolute; inset: 4%; border-radius: 50%; border: 5px solid rgba(20, 24, 41, .28); }
.sq.over { box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .85); }
.sq .file, .sq .rank { position: absolute; font: 700 10px var(--body); opacity: .6; color: #5b3a1c; pointer-events: none; }
.sq .file { right: 3px; bottom: 1px; } .sq .rank { left: 3px; top: 1px; }
.chess-layer { position: absolute; inset: 0; pointer-events: none; }
.piece { position: absolute; left: 0; top: 0; width: 12.5%; height: 12.5%; background-size: 100% 100%; transition: transform .18s cubic-bezier(.3, .8, .4, 1), opacity .2s; will-change: transform; }
.piece.dragging { transition: none; z-index: 5; filter: drop-shadow(0 8px 6px rgba(0, 0, 0, .3)); }
.piece.dropped { transition: none; }
.piece.gone { opacity: 0; }
.piece.appear { animation: fade .25s; }
.chess.my-turn .chess-board { cursor: pointer; }
.promo { position: absolute; top: 0; width: 12.5%; display: flex; flex-direction: column; background: var(--surface); border: var(--bw) solid var(--line); border-radius: 10px; z-index: 8; box-shadow: 0 6px 0 var(--shade); overflow: hidden; }
.piece-btn { aspect-ratio: 1; border: 0; background-color: var(--surface); background-size: 90%; background-position: center; background-repeat: no-repeat; }
.piece-btn:hover { background-color: var(--butter); }
.chess-side { display: flex; flex-direction: column; gap: 8px; width: min(100%, 520px); min-width: 0; }
.chess.wide .chess-side { width: 220px; align-self: stretch; justify-content: center; }
.chess-captured { display: flex; flex-direction: column; gap: 4px; }
.cap-row { display: flex; align-items: center; gap: 1px; min-height: 22px; flex-wrap: wrap; }
.cap-row small { color: var(--ink-soft); font-size: 11px; width: 64px; flex: none; }
.cap-row i { width: 20px; height: 20px; background-size: 100%; display: inline-block; margin-right: -5px; }
.cap-row b { margin-left: 10px; font-size: 12px; }
.chess-moves { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; overflow-x: auto; font: 600 13px var(--mono); counter-reset: mv; white-space: nowrap; scrollbar-width: thin; }
.chess-moves li { counter-increment: mv; display: flex; gap: 6px; }
.chess-moves li::before { content: counter(mv) '.'; color: var(--ink-soft); }
.chess.wide .chess-moves { flex-direction: column; overflow-y: auto; max-height: 50vh; gap: 2px; }

/* ---------- four ---------- */
.four { display: grid; place-items: center; width: 100%; height: 100%; }
.four-frame { position: relative; aspect-ratio: 7 / 6; margin-top: 12%; }
.four-holes { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(7, 1fr); grid-template-rows: repeat(6, 1fr); border: var(--bw) solid var(--line); border-radius: 18px; box-shadow: 0 7px 0 var(--shade); pointer-events: none;
  background: radial-gradient(circle at center, transparent 0 34%, #141829 34% 37.5%, var(--grape) 38%) 0 0 / calc(100% / 7) calc(100% / 6); }
.four-holes i { display: none; }
.four-discs { position: absolute; inset: 0; overflow: visible; }
.four-disc { position: absolute; width: calc(100% / 7); height: calc(100% / 6); display: grid; place-items: center; }
.four-disc::before { content: ''; width: 72%; height: 72%; border-radius: 50%; border: 3px solid #141829; box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .18), inset 0 4px 0 rgba(255, 255, 255, .35); }
.four-disc.p0::before { background: var(--pop); } .four-disc.p1::before { background: var(--butter); }
.four-disc.ghost { top: calc(-100% / 6 - 4px); opacity: .7; transition: left .12s ease; pointer-events: none; }
.four-disc.win::before { animation: winpulse .7s ease-in-out infinite alternate; box-shadow: 0 0 0 4px #fff, 0 0 0 7px #141829; }
@keyframes winpulse { to { transform: scale(1.12); } }
.four-cols { position: absolute; inset: calc(-100% / 6) 0 0; display: grid; grid-template-columns: repeat(7, 1fr); }
.four-cols button { border: 0; background: transparent; border-radius: 12px; }
.four.my-turn .four-cols button:hover { background: rgba(255, 255, 255, .12); }
.four:not(.my-turn) .four-cols button { cursor: default; }

/* ---------- mancala ---------- */
.mancala { display: grid; place-items: center; width: 100%; height: 100%; }
.mboard { display: flex; gap: 2%; padding: 2.2%; aspect-ratio: 2.7 / 1; border: var(--bw) solid var(--line); border-radius: 999px; box-shadow: 0 7px 0 var(--shade), inset 0 4px 0 rgba(255, 255, 255, .2);
  background: radial-gradient(ellipse at 30% 20%, #d58a4e, #b56c37 55%, #95542a); }
.mrows { flex: 1; display: flex; flex-direction: column; gap: 6%; justify-content: center; }
.mrow { display: grid; grid-template-columns: repeat(6, 1fr); gap: 3%; }
.mpit, .mstore { position: relative; border-radius: 50%; background: radial-gradient(circle at 50% 35%, #6f3c1c, #844a25 70%); box-shadow: inset 0 6px 10px rgba(0, 0, 0, .45); border: 0; padding: 0; aspect-ratio: 1; transition: transform .15s, box-shadow .15s; }
.mstore { width: 12%; aspect-ratio: auto; border-radius: 999px; }
.mpit.mine:not(:disabled) { cursor: pointer; box-shadow: inset 0 6px 10px rgba(0, 0, 0, .45), 0 0 0 3px var(--butter); }
.mpit.mine:not(:disabled):hover { transform: translateY(-3px); }
.mpit.hot, .mstore.hot { box-shadow: inset 0 6px 10px rgba(0, 0, 0, .45), 0 0 0 4px #fff; }
.mpit.capture, .mstore.capture { box-shadow: inset 0 6px 10px rgba(0, 0, 0, .45), 0 0 0 5px var(--pop); transform: scale(1.06); }
.stones { position: absolute; inset: 10%; }
.stones i { position: absolute; left: var(--x); top: var(--y); width: 22%; height: 22%; max-width: 18px; max-height: 18px; border-radius: 50%; transform: translate(-50%, -50%); border: 1.5px solid rgba(20, 24, 41, .6); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .15), inset 1px 2px 0 rgba(255, 255, 255, .6); animation: pop .2s; }
.mstore .stones i { width: 34%; height: auto; aspect-ratio: 1; }
.mancala .count { position: absolute; left: 50%; bottom: -2px; transform: translate(-50%, 50%); font: 800 13px var(--body); background: #141829; color: #fff; border-radius: 999px; padding: 1px 7px; font-variant-numeric: tabular-nums; z-index: 2; }
.mancala .mrow.theirs .count { bottom: auto; top: -2px; transform: translate(-50%, -50%); }
.mancala .mstore .count { bottom: 8%; font-size: 15px; }

/* ---------- hockey + blobs ---------- */
.hockey, .blobs { position: absolute; inset: 0; }
.blob-board { position: absolute; right: 8px; top: 8px; margin: 0; padding: 8px 10px; list-style: none; background: color-mix(in srgb, var(--surface) 88%, transparent); border: 2px solid var(--line); border-radius: 14px; font-size: 12.5px; min-width: 130px; pointer-events: none; }
.blob-board li { display: flex; justify-content: space-between; gap: 10px; }
.blob-board li:nth-child(6) { border-top: 1px dashed var(--line); margin-top: 3px; padding-top: 3px; }
.blob-board li::before { content: attr(data-n) '.'; color: var(--ink-soft); width: 16px; }
.blob-board li span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 110px; }
.blob-board li.me { font-weight: 800; color: var(--pop); }
.blob-timer { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); }
.blob-timer.hurry { background: var(--pop); color: #fff; }
.blob-dash { position: absolute; right: 12px; bottom: 12px; width: 76px; height: 76px; border-radius: 50%; border: var(--bw) solid var(--line); background: var(--pop); color: #fff; font: 800 15px var(--display); box-shadow: 0 5px 0 var(--shade); }
.blob-dash:active { transform: translateY(5px); box-shadow: none; }
.blob-dash:disabled { background: var(--surface-2); color: var(--ink-soft); }
@media (max-width: 460px) { .blob-board { font-size: 11px; min-width: 110px; } .blob-timer { left: 8px; transform: none; } }
/* 3D chess */
.chess-board.is3d { display: block; border: 0; box-shadow: none; overflow: visible; border-radius: 0; background: transparent; }
.chess-3d { position: absolute; inset: 0; }
.chess-3d canvas { width: 100% !important; height: 100% !important; display: block; }
.chess-board.is3d .sq { position: absolute; transform: translate(-50%, -50%); background: transparent !important; border-radius: 6px; z-index: 1; }
.chess-board.is3d .sq .file, .chess-board.is3d .sq .rank { display: none; }
.chess-board.is3d .sq.last { background: rgba(255, 214, 90, .38) !important; }
.chess-board.is3d .sq.check { background: radial-gradient(ellipse, rgba(255,59,92,.75), transparent 70%) !important; }
.chess-board.is3d .sq.sel { box-shadow: inset 0 0 0 3px rgba(91, 160, 255, .9); }
.chess-board.is3d .sq.dot::after { inset: 34% 36%; background: rgba(120, 220, 140, .85); }
.chess-board.is3d .sq.cap::after { inset: 6%; border: 4px solid rgba(255, 90, 110, .85); }
.chess-board.is3d .chess-layer { display: none; }
.chess-board.is3d .promo { z-index: 6; }
.chess-mode { align-self: flex-start; }
/* ---------- four in a row (v2) ---------- */
.four2 { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 100%; }
.four2-wrap { position: relative; }
.four2-svg { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 14px 18px rgba(20, 24, 41, .25)); user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.four2.my-turn .four2-col { cursor: pointer; }
.four2-ghost { transition: transform .12s ease, opacity .15s; }
.four2.my-turn .four2-ghost { animation: four2-bob 1.1s ease-in-out infinite; }
@keyframes four2-bob { 50% { translate: 0 6px; } }
.four2-disc.last > circle:first-child { stroke: #fff; stroke-width: 4; }
.four2-disc.win { animation: four2-pulse .8s ease-in-out infinite alternate; }
@keyframes four2-pulse { to { filter: brightness(1.3) drop-shadow(0 0 10px #fff); } }
.four2-winline { animation: four2-draw .5s .1s ease-out forwards; opacity: .9; }
@keyframes four2-draw { to { stroke-dashoffset: 0; } }
.four2-banner { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: min(100%, 720px); }
.four2-who { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--surface); border: 2px solid var(--line); opacity: .6; transition: opacity .2s, box-shadow .2s; min-width: 0; max-width: 34%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.four2-who.them { padding: 6px 6px 6px 12px; }
.four2-who.on { opacity: 1; box-shadow: 0 0 0 3px var(--butter); }
.four2-status { display: flex; align-items: center; gap: 8px; font: 800 18px var(--display); white-space: nowrap; }
.four2-chip { width: 22px; height: 22px; border-radius: 50%; flex: none; border: 2px solid #141829; box-shadow: inset 0 -3px 0 rgba(0,0,0,.2), inset 0 3px 0 rgba(255,255,255,.4); }
.four2-chip.p0 { background: #ff4d6a; } .four2-chip.p1 { background: #ffc93c; }
.four2-hint { font-size: 12.5px; color: var(--ink-soft); margin: 0; }
@media (pointer: coarse) { .four2-hint { display: none; } }
@media (max-width: 520px) { .four2-who { font-size: 12px; } .four2-status { font-size: 15px; } }
.four2-col:focus { outline: none; }

.pool-power span { white-space: nowrap; }
.pool-fine { display: none; }
.pool.vertical .pool-fine { display: flex; position: absolute; right: 6px; top: 64px; bottom: 8px; width: 44px; border: var(--bw) solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: 0 4px 0 var(--shade); touch-action: none; overflow: hidden; opacity: .45; transition: opacity .2s; align-items: flex-end; justify-content: center; }
.pool.vertical.my-turn .pool-fine { opacity: 1; }
.pool-fine i { position: absolute; inset: 0; background: repeating-linear-gradient(transparent 0 10px, rgba(20,24,41,.22) 10px 12px, transparent 12px 24px); background-position: 0 var(--off, 0px); }
.pool-fine::before { content: ''; position: absolute; left: 6px; right: 6px; top: 50%; height: 3px; background: var(--pop); border-radius: 2px; z-index: 1; }
.pool-fine small { position: relative; font: 800 11px var(--body); text-transform: uppercase; letter-spacing: .1em; writing-mode: vertical-rl; transform: rotate(180deg); margin-bottom: 10px; color: var(--ink-soft); background: var(--surface); padding: 4px 0; z-index: 1; }
@media (max-width: 760px) { .pool.vertical .pool-hud { top: 4px; } }
/* pool spin picker */
.spin-pop { position: absolute; top: 76px; left: 50%; transform: translateX(-50%); z-index: 6; background: var(--surface); border: var(--bw) solid var(--line); border-radius: var(--r); box-shadow: 0 6px 0 var(--shade), 0 18px 40px rgba(0,0,0,.25); padding: 14px 16px; display: grid; gap: 10px; justify-items: center; width: 220px; animation: fade .15s; }
.spin-ball { position: relative; width: 132px; height: 132px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #ece6d8 55%, #bdb5a3); box-shadow: inset 0 -8px 16px rgba(0,0,0,.18), 0 4px 10px rgba(0,0,0,.2); touch-action: none; cursor: crosshair; display: grid; place-items: center; }
.spin-ball .cross-h, .spin-ball .cross-v { position: absolute; background: rgba(20,24,41,.15); }
.spin-ball .cross-h { left: 10%; right: 10%; height: 1.5px; } .spin-ball .cross-v { top: 10%; bottom: 10%; width: 1.5px; }
.spin-dot { width: 18px; height: 18px; border-radius: 50%; background: #d8262c; box-shadow: 0 0 0 4px rgba(216,38,44,.25); z-index: 1; transition: transform .05s; }
.spin-label { font-weight: 700; font-size: 13px; text-align: center; min-height: 18px; }
/* chess: never show the flat board while the 3D one is loading */
.chess-board.loading3d { border-color: transparent; box-shadow: none; background: transparent; }
.chess-board.loading3d > .sq, .chess-board.loading3d .chess-layer { visibility: hidden; }
.chess-board.loading3d::after { content: ''; position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--pop); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
/* pool: a dim room around a lit table */
.pool { background: radial-gradient(ellipse at 50% 55%, #2f3a46 0%, #1b222b 55%, #10151b 100%); border-radius: var(--r); }
.pool .pool-hint { color: #aab4c4; }
/* pool announcements and slot pops */
.pool-toast { position: absolute; left: 50%; top: 92px; transform: translate(-50%, -12px); z-index: 5; display: flex; align-items: center; gap: 10px; padding: 10px 18px 10px 10px; border-radius: 999px; background: #141829; color: #fff; font: 800 16px var(--body); box-shadow: 0 10px 30px rgba(0,0,0,.35); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; max-width: calc(100% - 24px); }
.pool-toast.show { opacity: 1; transform: translate(-50%, 0); }
.pool-toast i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 14px; background: #3a4258; flex: none; }
.pool-toast.good i { background: var(--mint); } .pool-toast.bad i { background: var(--pop); } .pool-toast.info i { background: var(--cobalt); }
.pool-toast span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pool-slots i.slot.just { animation: slot-pop .7s ease-out; }
@keyframes slot-pop { 0% { background: var(--c); transform: scale(1.35); box-shadow: 0 0 0 4px rgba(255,201,60,.6); } 100% { transform: scale(1); } }
@media (max-width: 560px) { .pool-toast { font-size: 13px; top: 70px; } }

/* ---------- Sightline (fps) ---------- */
.fps { position: absolute; inset: 0; overflow: hidden; background: #9fc4e8; border-radius: 14px; --mine: #3b8cff; --them: #ff4d5e; user-select: none; -webkit-user-select: none; touch-action: none; }
.fps-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; outline: none; cursor: crosshair; }
.fps-hud { position: absolute; inset: 0; pointer-events: none; color: #fff; font-family: var(--body); text-shadow: 0 1px 3px rgba(0, 0, 0, .55); }
.fps-x { position: absolute; left: 50%; top: 50%; --gap: 5px; --len: 7px; --th: 2px; --xc: #7dff9b; }
.fps-x i { position: absolute; background: var(--xc); box-shadow: 0 0 0 1px rgba(0, 0, 0, .55); }
.fps-x .t, .fps-x .b { width: var(--th); height: var(--len); left: calc(var(--th) / -2); }
.fps-x .l, .fps-x .r { height: var(--th); width: var(--len); top: calc(var(--th) / -2); }
.fps-x .t { bottom: var(--gap); } .fps-x .b { top: var(--gap); } .fps-x .l { right: var(--gap); } .fps-x .r { left: var(--gap); }
.fps-x .dot { width: var(--th); height: var(--th); left: calc(var(--th) / -2); top: calc(var(--th) / -2); }
.fps-x.nodot .dot { display: none; }
.fps-hit { position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -13px; opacity: 0; background:
  linear-gradient(45deg, transparent 46%, #fff 46%, #fff 54%, transparent 54%) , linear-gradient(-45deg, transparent 46%, #fff 46%, #fff 54%, transparent 54%);
  -webkit-mask: radial-gradient(circle, transparent 5px, #000 6px); mask: radial-gradient(circle, transparent 5px, #000 6px); }
.fps-hit.on { animation: fps-hit .22s ease-out; }
.fps-hit.head { filter: drop-shadow(0 0 2px #ffe14d) sepia(1) saturate(8) hue-rotate(5deg); }
@keyframes fps-hit { 0% { opacity: 1; transform: scale(1.25); } 100% { opacity: 0; transform: scale(1); } }
.fps-top { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; }
.fps-score { display: flex; align-items: center; gap: 0; background: rgba(15, 18, 30, .72); border-radius: 10px; overflow: hidden; font: 800 20px var(--display); }
.fps-score b { padding: 4px 12px; } .fps-score b.mine { background: var(--mine); } .fps-score b.them { background: var(--them); }
.fps-score span { padding: 4px 12px; font: 700 16px var(--mono); min-width: 58px; text-align: center; }
.fps-score span.hurry { color: #ff6b6b; }
.fps-pips { display: flex; gap: 4px; } .fps-pips i { width: 12px; height: 18px; border-radius: 3px; background: rgba(15, 18, 30, .5); border: 1.5px solid rgba(255, 255, 255, .4); }
.fps-pips.mine i.on { background: var(--mine); } .fps-pips.them i.on { background: var(--them); }
.fps-feed { position: absolute; top: 10px; right: 10px; display: grid; gap: 4px; justify-items: end; font-size: 13px; }
.fps-feed div { background: rgba(15, 18, 30, .62); padding: 3px 9px; border-radius: 6px; animation: chat-in .2s; }
.fps-feed .hs { color: #ffe14d; } .fps-feed .w { opacity: .8; }
.fps-banner { position: absolute; left: 50%; top: 24%; transform: translate(-50%, -50%) scale(.9); text-align: center; opacity: 0; transition: opacity .25s, transform .25s; display: grid; gap: 4px; }
.fps-banner.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.fps-banner b { font: 800 clamp(28px, 5vw, 52px) var(--display); letter-spacing: .02em; text-transform: uppercase; }
.fps-banner span { font: 700 15px var(--body); opacity: .9; }
.fps-banner.win b { color: var(--mine); -webkit-text-stroke: 1px rgba(255,255,255,.5); } .fps-banner.lose b { color: var(--them); } .fps-banner.go b { color: #7dff9b; }
.fps-banner.kill { top: 62%; } .fps-banner.kill span { font: 800 16px var(--display); color: #ffe14d; text-transform: uppercase; letter-spacing: .08em; }
.fps-hp, .fps-ammo { position: absolute; bottom: 14px; background: rgba(15, 18, 30, .62); border-radius: 10px; padding: 6px 12px; display: flex; align-items: baseline; gap: 8px; }
.fps-hp { left: 14px; } .fps-hp b { font: 800 30px var(--display); min-width: 54px; }
.fps-hp .bar { width: 110px; height: 6px; background: rgba(255, 255, 255, .2); border-radius: 3px; overflow: hidden; align-self: center; }
.fps-hp .bar i { display: block; height: 100%; background: #7dff9b; transition: width .15s; }
.fps-hp.low b { color: #ff6b6b; } .fps-hp.low .bar i { background: #ff6b6b; }
.fps-ammo { right: 14px; } .fps-ammo b { font: 800 30px var(--display); } .fps-ammo small { opacity: .7; } .fps-ammo span { font: 700 13px var(--body); opacity: .85; margin-left: 4px; text-transform: uppercase; letter-spacing: .06em; }
.fps-ammo.low b { color: #ffb84d; }
.fps-reload { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; } .fps-reload i { display: block; height: 100%; width: calc(var(--k, 0) * 100%); background: #ffe14d; }
.fps-dmg { position: absolute; left: 50%; top: 50%; }
.fps-dmg i { position: absolute; left: -60px; top: -60px; width: 120px; height: 120px; border-radius: 50%; border-top: 5px solid rgba(255, 60, 70, .85); animation: fps-fade .9s forwards; }
@keyframes fps-fade { to { opacity: 0; } }
.fps.fps-ouch::after { content: ''; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 90px rgba(255, 30, 50, .55); animation: fps-fade .5s forwards; }
.fps-mini { position: absolute; top: 10px; left: 10px; width: 150px; height: auto; border-radius: 8px; opacity: .9; }
.fps-labels span { position: absolute; transform: translate(-50%, -100%); font: 700 11px var(--body); color: #cfe3ff; background: rgba(15, 18, 30, .5); padding: 1px 6px; border-radius: 6px; white-space: nowrap; }
.fps-spec { position: absolute; bottom: 70px; left: 50%; transform: translateX(-50%); font: 700 13px var(--body); opacity: .9; }
.fps-lock { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(15, 18, 30, .45); backdrop-filter: blur(3px); z-index: 5; }
.fps-lock[hidden] { display: none; }
.fps-lock .card { max-width: min(460px, 92%); text-align: center; display: grid; gap: 10px; }
.fps-sens { display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; }
.fps-sens input { width: 160px; }
.fps-touch { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.fps-stick { position: absolute; left: 22px; bottom: 70px; width: 110px; height: 110px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .5); background: rgba(15, 18, 30, .25); display: grid; place-items: center; }
.fps-stick i { width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .6); }
.fps-tb { position: absolute; pointer-events: auto; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .6); background: rgba(15, 18, 30, .45); color: #fff; font: 800 13px var(--display); width: 56px; height: 56px; touch-action: none; }
.fps-tb.fire { right: 24px; bottom: 90px; width: 84px; height: 84px; background: rgba(255, 77, 94, .6); font-size: 16px; }
.fps-tb.jump { right: 120px; bottom: 70px; } .fps-tb.crouch { right: 120px; bottom: 136px; } .fps-tb.reload { right: 30px; bottom: 190px; } .fps-tb.swap { right: 96px; bottom: 210px; }
.fps-left { position: absolute; left: 14px; bottom: 14px; display: grid; gap: 6px; justify-items: start; }
.fps-left .fps-hp { position: static; align-items: center; }
.fps-hp .bars { display: grid; gap: 3px; } .fps-hp .bar.arm { height: 4px; } .fps-hp .bar.arm i { background: #7fd1ff; }
.fps-hp small.arm { font: 700 13px var(--body); color: #9fdcff; }
.fps-coreico { color: #ffb347; font-size: 18px; animation: fps-pulse 1s infinite alternate; }
@keyframes fps-pulse { to { opacity: .45; } }
.fps-cred { background: rgba(15, 18, 30, .62); border-radius: 8px; padding: 3px 10px; font: 800 15px var(--display); color: #ffe14d; }
.fps-abil { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
.fps-ab { position: relative; width: 58px; padding: 4px 0 5px; border-radius: 9px; background: rgba(15, 18, 30, .62); display: grid; justify-items: center; gap: 1px; overflow: hidden; border: 1.5px solid rgba(255, 255, 255, .18); }
.fps-ab kbd { font: 800 11px var(--mono); background: rgba(255, 255, 255, .18); border-radius: 4px; padding: 0 5px; }
.fps-ab span { font: 700 11px var(--body); } .fps-ab .pips { font-style: normal; font-size: 9px; letter-spacing: 1px; color: #7fd1ff; min-height: 11px; }
.fps-ab.none { opacity: .45; } .fps-ab.ready { border-color: #ffe14d; box-shadow: 0 0 12px rgba(255, 225, 77, .6); } .fps-ab[data-k="x"] .pips { color: #ffe14d; }
.fps-ab .cd { position: absolute; left: 0; bottom: 0; height: 3px; width: calc(var(--k, 0) * 100%); background: #7fd1ff; }
.fps-mode { position: absolute; top: 48px; left: 50%; transform: translateX(-50%); font: 700 12px var(--body); opacity: .85; }
.fps-score span.planted { color: #ff7a4d; }
.fps-prog { position: absolute; left: 50%; top: 60%; transform: translateX(-50%); display: grid; gap: 4px; justify-items: center; font: 800 13px var(--display); text-transform: uppercase; letter-spacing: .06em; }
.fps-prog div { width: 200px; height: 7px; border-radius: 4px; background: rgba(15, 18, 30, .6); overflow: hidden; } .fps-prog i { display: block; height: 100%; background: #ffb347; }
.fps-hint { position: absolute; left: 50%; top: 68%; transform: translateX(-50%); font: 700 14px var(--body); background: rgba(15, 18, 30, .6); padding: 4px 12px; border-radius: 8px; opacity: 0; transition: opacity .2s; white-space: nowrap; }
.fps-hint.on { opacity: 1; }
.fps-labels span.site { font: 900 16px var(--display); color: #ffcf5a; background: rgba(15, 18, 30, .45); padding: 0 7px; }
.fps-labels span.core { color: #ff7a4d; background: none; font-size: 18px; animation: fps-pulse .5s infinite alternate; }
.fps-blind { position: absolute; inset: 0; background: #fff; opacity: 0; }
.fps-smoked { position: absolute; inset: 0; background: radial-gradient(circle, rgba(205, 212, 222, .9), rgba(190, 198, 210, 1)); opacity: 0; }
.fps-scope { position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, transparent 0 32vmin, rgba(0, 0, 0, .96) 32.3vmin); }
.fps-scope::before, .fps-scope::after { content: ''; position: absolute; left: 50%; top: 50%; background: rgba(0, 0, 0, .85); }
.fps-scope::before { width: 64vmin; height: 1px; transform: translate(-50%, -50%); } .fps-scope::after { width: 1px; height: 64vmin; transform: translate(-50%, -50%); }
.fps-kc { position: absolute; left: 50%; bottom: 96px; transform: translateX(-50%); background: rgba(15, 18, 30, .75); border-radius: 12px; padding: 10px 18px; text-align: center; display: grid; gap: 4px; min-width: 210px; }
.fps-kc div { display: grid; gap: 1px; } .fps-kc small { opacity: .75; font-size: 12px; } .fps-kc b { font: 800 22px var(--display); } .fps-kc span { font: 700 13px var(--body); } .fps-kc em { font: 700 13px var(--body); color: #ffe14d; font-style: normal; }
.fps-card { position: absolute; left: 50%; bottom: 84px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; pointer-events: auto; }
.fps-cbody { display: flex; align-items: center; gap: 10px; background: rgba(15, 18, 30, .78); border-radius: 12px; padding: 8px 14px; min-width: 230px; border: 1.5px solid rgba(255, 255, 255, .15); }
.fps-cbody div { display: grid; flex: 1; } .fps-cbody b { font: 800 18px var(--display); } .fps-cbody small { font-size: 12px; opacity: .8; } .fps-cbody small.lbl { text-transform: uppercase; letter-spacing: .08em; font-size: 10px; opacity: .65; }
.fps-cbody .hp { font: 800 22px var(--display); color: #7dff9b; } .fps-cbody .hp small { color: #9fdcff; font-size: 13px; }
.fps-cb { width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(15, 18, 30, .7); color: #fff; font: 800 20px var(--display); cursor: pointer; }
.fps-chip { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; margin-right: 6px; border: 1.5px solid rgba(255, 255, 255, .6); flex: none; }
.fps-hud.spectating .fps-abil { opacity: .35; }
.fps.fps-dashing::after { content: ''; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 80px rgba(127, 209, 255, .5); animation: fps-fade .35s forwards; }
.fps-board { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(10, 12, 22, .35); pointer-events: none; z-index: 4; }
.fps-board-card { background: rgba(15, 18, 30, .9); border-radius: 14px; padding: 14px 18px; min-width: min(560px, 94%); display: grid; gap: 10px; }
.fps-board-title { display: flex; justify-content: space-between; font: 800 18px var(--display); } .fps-board-title span { font: 700 15px var(--mono); }
.fps-board table { width: 100%; border-collapse: collapse; font: 600 14px var(--body); }
.fps-board th { text-align: right; opacity: .6; font-size: 11px; text-transform: uppercase; padding: 2px 8px; } .fps-board th:first-child, .fps-board td:first-child { text-align: left; }
.fps-board td { text-align: right; padding: 4px 8px; border-top: 1px solid rgba(255, 255, 255, .08); }
.fps-board table.mine td:first-child { border-left: 3px solid var(--mine); } .fps-board table.them td:first-child { border-left: 3px solid var(--them); }
.fps-board tr.me td { background: rgba(255, 255, 255, .08); } .fps-board tr.dead { opacity: .45; } .fps-board small { opacity: .6; } .fps-board .core { color: #ffb347; }
.fps-buy { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(10, 12, 22, .55); backdrop-filter: blur(2px); z-index: 6; color: #fff; }
.fps-buy[hidden] { display: none; }
.fps-buy-card { background: rgba(18, 21, 36, .96); border: 2px solid rgba(255, 255, 255, .12); border-radius: 16px; padding: 14px 16px; width: min(760px, 94%); max-height: 92%; overflow: auto; display: grid; gap: 10px; }
.fps-buy-head { display: flex; align-items: center; gap: 12px; } .fps-buy-head h2 { font-size: 24px; margin: 0; flex: 1; color: #fff; } .fps-buy-head .cred { font: 800 22px var(--display); color: #ffe14d; }
.fps-buy-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } .fps-buy-cols h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; opacity: .7; margin: 4px 0; color: #fff; }
.fps-item { display: grid; grid-template-columns: 1fr auto; gap: 1px 10px; width: 100%; text-align: left; padding: 8px 11px; margin-bottom: 6px; border-radius: 10px; border: 1.5px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .05); color: #fff; cursor: pointer; position: relative; }
.fps-item:hover { background: rgba(127, 209, 255, .14); border-color: rgba(127, 209, 255, .6); }
.fps-item b { font: 800 15px var(--display); } .fps-item small { grid-column: 1; font-size: 12px; opacity: .75; } .fps-item .price { grid-column: 2; grid-row: 1 / span 2; align-self: center; font: 800 14px var(--mono); color: #ffe14d; }
.fps-item.owned { border-color: #7dff9b; background: rgba(125, 255, 155, .1); } .fps-item.owned .price { color: #7dff9b; }
.fps-item.poor { opacity: .45; } .fps-item .cnt { position: absolute; right: 10px; bottom: 4px; font: 700 11px var(--mono); opacity: .8; }
.fps-tb.aim { right: 30px; bottom: 250px; width: 46px; height: 46px; } .fps-tb.use { right: 196px; bottom: 90px; }
.fps-tb.ab { width: 40px; height: 40px; font-size: 12px; bottom: 14px; } .fps-tb.ab.q { right: 200px; } .fps-tb.ab.e { right: 152px; } .fps-tb.ab.v { right: 104px; } .fps-tb.ab.x { right: 56px; }
.fps-tb.buy { left: 14px; top: 170px; width: 46px; height: 46px; font-size: 11px; } .fps-tb.tab { left: 66px; top: 170px; width: 40px; height: 40px; }
.fps:has(.fps-touch) .fps-abil { display: none; }
/* setup panel and profile editor */
.fps-setup { display: grid; gap: 9px; text-align: left; }
.fps-setup .fps-seg button { font-size: 13px; padding: 8px 2px; }
.fps-blurb { margin: -2px 0 0; }
.fps-row { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 8px; } .fps-row .lbl { font: 700 13px var(--body); min-width: 84px; }
.fps-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fps-step { display: flex; align-items: center; gap: 6px; font: 700 13px var(--body); } .fps-step span { flex: 1; } .fps-step b { min-width: 16px; text-align: center; font: 800 16px var(--display); }
.fps-names summary { cursor: pointer; font: 700 13px var(--body); } .fps-names .fps-row { grid-template-columns: 1fr auto; margin-top: 6px; }
.fps-agent { display: flex; align-items: center; justify-content: center; gap: 4px; }
.lobby-opts { text-align: left; width: min(380px, 100%); margin: 0 auto; }
.fps-prof { width: min(560px, 100%) !important; }
.fps-prof h3 { font-size: 15px; margin: 4px 0 -4px; }
.fps-look { display: grid; grid-template-columns: 180px 1fr; gap: 12px; align-items: start; }
.fps-pview { width: 180px; height: 213px; border-radius: 14px; background: linear-gradient(#9fc4e8, #d9d2c4); }
.fps-styles { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.fps-style { display: grid; text-align: left; padding: 7px 9px; border-radius: 10px; border: 2px solid var(--line); background: var(--surface); cursor: pointer; } .fps-style b { font-size: 14px; } .fps-style small { font-size: 11px; opacity: .7; }
.fps-style.on { border-color: #3b8cff; box-shadow: 0 0 0 2px rgba(59, 140, 255, .3); }
.fps-swatches { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.fps-sw { width: 26px; height: 26px; border-radius: 50%; border: 2px solid rgba(0, 0, 0, .25); cursor: pointer; } .fps-sw.sm { width: 22px; height: 22px; } .fps-sw.on { outline: 3px solid #3b8cff; outline-offset: 1px; }
.fps-range { display: grid; grid-template-columns: 130px 1fr 44px; align-items: center; gap: 8px; font: 600 13px var(--body); } .fps-range b { text-align: right; font: 700 13px var(--mono); }
.fps-range input.input { grid-column: 2 / -1; }
.fps-xrow { display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: start; }
.fps-xprev { position: relative; height: 110px; border-radius: 12px; background: linear-gradient(135deg, #8aa6c4, #d9d2c4 60%, #b07c48); }
.fps-xopts { display: grid; gap: 6px; } .fps-xopts .fps-range { grid-template-columns: 80px 1fr 30px; } .fps-check { font: 600 13px var(--body); display: flex; align-items: center; gap: 4px; }
@media (max-width: 600px) { .fps-look { grid-template-columns: 1fr; justify-items: center; } .fps-buy-cols { grid-template-columns: 1fr; } .fps-xrow { grid-template-columns: 1fr; } .fps-range { grid-template-columns: 110px 1fr 40px; } .fps-kc { bottom: 200px; } .fps-card { bottom: 200px; } .fps-cbody { min-width: 180px; } .fps-mode { top: 40px; } .fps-left { bottom: 64px; } }
@media (max-width: 600px) { .fps-mini { width: 104px; } .fps-hp b, .fps-ammo b { font-size: 22px; } .fps-hp .bar { width: 60px; } .fps-score { font-size: 16px; } .fps-feed { top: 46px; font-size: 11px; } }
/* Sightline brings its own options: give the practice column more room */
.card.setup:has(.fps-setup) { width: min(780px, 100%); max-width: 780px; }
.setup-cols:has(.fps-setup) { grid-template-columns: 1.4fr 1fr; }
@media (max-width: 700px) { .setup-cols:has(.fps-setup) { grid-template-columns: 1fr; } }
.fps-buy .btn { color: #141829; }
/* touch: abilities in a row at the bottom middle, buy and scores beside the minimap */
.fps-tb.ab { bottom: 12px; } .fps-tb.ab.q { right: auto; left: calc(50% - 94px); } .fps-tb.ab.e { right: auto; left: calc(50% - 46px); } .fps-tb.ab.v { right: auto; left: calc(50% + 2px); } .fps-tb.ab.x { right: auto; left: calc(50% + 50px); }
.fps-tb.buy { left: 172px; top: 10px; } .fps-tb.tab { left: 224px; top: 12px; }
@media (max-width: 600px) { .fps-tb.buy { left: 124px; } .fps-tb.tab { left: 176px; } .fps-tb.ab { bottom: 64px; } }
