@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
  color-scheme: light;
  --paper: #f7f4e9;
  --paper-deep: #ece7d8;
  --ink: #202b31;
  --muted: #788183;
  --line: #d9d6ca;
  --coral: #f26d4f;
  --coral-dark: #d9523a;
  --sun: #f2c84b;
  --mint: #b9dfcc;
  --blue: #a8d7e6;
  --white: #fffdf6;
  --display: "Outfit", sans-serif;
  --mono: "DM Mono", monospace;
}
* { box-sizing: border-box; }
html { min-height: 100%; background: var(--paper); }
body {
  margin: 0; min-height: 100dvh; color: var(--ink); font-family: var(--display);
  background-color: var(--paper);
  background-image: radial-gradient(rgba(32,43,49,.055) .7px, transparent .7px);
  background-size: 9px 9px;
}
button, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
:focus-visible { outline: 3px solid #287c87; outline-offset: 3px; }
.shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.topbar { display:flex; align-items:center; justify-content:space-between; height:82px; border-bottom:1px solid var(--line); }
.brand { display:flex; align-items:center; gap:11px; font-weight:900; letter-spacing:-.055em; font-size:22px; }
.brand-mark { width:38px; height:38px; display:grid; place-items:center; background:var(--coral); border:2px solid var(--ink); border-radius:13px 13px 15px 10px; box-shadow:3px 3px 0 var(--ink); }
.brand-mark svg { width:25px; height:25px; }
.brand em { color:var(--coral-dark); font-style:normal; }
.nav { display:flex; align-items:center; gap:9px; }
.nav-link { color:#657072; padding:10px 15px; border-radius:99px; font-size:14px; font-weight:700; transition:background .18s, color .18s; }
.nav-link:hover,.nav-link[aria-current="page"] { color:var(--ink); background:var(--white); }
.nav-link[aria-current="page"] { box-shadow:0 2px 0 rgba(32,43,49,.11); }
.connection { display:flex; align-items:center; gap:8px; color:#667172; font:11px var(--mono); text-transform:uppercase; letter-spacing:.06em; }
.connection-dot { width:8px;height:8px;border-radius:50%;background:#d2a645; box-shadow:0 0 0 3px rgba(210,166,69,.16); }
.connection.live .connection-dot { background:#3da87b; box-shadow:0 0 0 3px rgba(61,168,123,.17); }
.connection.offline .connection-dot { background:#d16954; box-shadow:0 0 0 3px rgba(209,105,84,.16); }
main { padding: 36px 0 80px; }
.eyebrow { display:flex; gap:9px; align-items:center; color:#888d88; font:11px var(--mono); text-transform:uppercase; letter-spacing:.14em; }
.eyebrow:before { content:""; width:24px; height:2px; background:var(--coral); }
.hero-row { display:flex; align-items:flex-end; justify-content:space-between; gap:24px; margin:10px 0 26px; }
h1,h2,h3,p { margin-top:0; }
h1 { margin:0; font-size:clamp(38px,6vw,68px); line-height:.97; letter-spacing:-.065em; font-weight:900; }
.lede { color:#738080; margin:11px 0 0; font-size:15px; }
.mode-switch { display:flex; padding:4px; border:1px solid var(--line); background:#eeeade; border-radius:99px; }
.mode-switch button { border:0; background:none; padding:9px 16px; border-radius:99px; cursor:pointer; color:#737c7a; font-size:13px; font-weight:800; }
.mode-switch button.active { color:var(--ink); background:var(--white); box-shadow:0 2px 5px rgba(40,42,36,.1); }
.game-card { position:relative; overflow:hidden; background:var(--white); border:1px solid #dad7cc; border-radius:26px; box-shadow:0 8px 0 rgba(32,43,49,.09), 0 20px 48px rgba(55,64,57,.055); }
.game-topline { padding:17px 22px; display:flex; align-items:center; justify-content:space-between; border-bottom:1px dashed var(--line); }
.phase-chip { display:inline-flex; align-items:center; gap:8px; background:#f4eee0; border-radius:99px; padding:7px 11px; font:10px var(--mono); letter-spacing:.1em; text-transform:uppercase; }
.phase-chip i { width:7px;height:7px;border-radius:50%;background:var(--coral); animation:pulse 1.4s infinite; }
.room-id { color:#9a9d95; font:10px var(--mono); }
.arena { position:relative; min-height:298px; display:flex; flex-direction:column; justify-content:center; padding:24px 32px 18px; background:linear-gradient(180deg,#f8f6ed 0%, #f6f2e5 100%); }
.versus { position:absolute; left:50%; top:47%; transform:translate(-50%,-50%); z-index:3; width:42px;height:42px; display:grid;place-items:center;border-radius:50%;border:2px solid var(--ink);background:var(--sun);font:11px var(--mono);font-weight:500;box-shadow:2px 2px 0 var(--ink); }
.contestants { display:grid; grid-template-columns:1fr 1fr; gap:80px; align-items:center; }
.country-side { text-align:center; min-width:0; }
.country-side.right { text-align:center; }
.flag-frame { display:inline-flex; position:relative; align-items:center; justify-content:center; height:43px; min-width:59px; padding:4px; background:var(--white); border:1px solid #ddd9cd; border-radius:10px; box-shadow:0 3px 0 rgba(32,43,49,.08); }
.flag-frame img { display:block; width:48px;height:31px;object-fit:cover;border-radius:4px; }
.flag-frame.unknown img { width:31px; object-fit:contain; }
.country-name { margin:10px 0 1px; font-size:17px; font-weight:800; letter-spacing:-.03em; }
.player-count { color:#92968f; font:10px var(--mono); }
.score-line { display:flex; justify-content:center; align-items:baseline; gap:18px; margin-top:10px; }
.score { font:900 clamp(35px,5vw,54px)/1 var(--display); letter-spacing:-.06em; }
.score-a { color:var(--coral-dark); }
.score-b { color:#428b9c; }
.score-unit { color:#a3a59d;font:10px var(--mono);text-transform:uppercase;letter-spacing:.12em; }
.rope-stage { position:relative; height:74px; margin:15px 2px 0; display:flex; align-items:center; }
.rope-ground { width:100%; height:6px; border-radius:10px; background:#d9cfb6; box-shadow:inset 0 2px rgba(53,48,39,.12); }
.rope-line { position:absolute; width:61%; height:10px; left:50%; transform:translateX(-50%); transition:transform .36s cubic-bezier(.2,.85,.25,1); }
.rope-line:before { content:"";position:absolute;inset:2px 0;background:repeating-linear-gradient(135deg,#ad7452 0 5px,#c79667 5px 10px);border-radius:8px; }
.rope-knot { position:absolute; z-index:2; left:50%; top:50%; transform:translate(-50%,-50%); width:22px;height:22px;background:var(--coral);border:3px solid var(--white);border-radius:50%;box-shadow:0 0 0 1px var(--ink);transition:left .36s cubic-bezier(.2,.85,.25,1); }
.rope-knot:after { content:"";position:absolute;left:50%;top:17px;width:3px;height:29px;background:var(--ink);border-radius:3px;transform:translateX(-50%); }
.solo-arena { display:none; min-height:235px; flex-direction:column; align-items:center; justify-content:center; text-align:center; }
.solo-mode .contestants,.solo-mode .versus,.solo-mode .rope-stage { display:none; }
.solo-mode .solo-arena { display:flex; }
.solo-score { font-size:clamp(64px,10vw,104px);font-weight:900;letter-spacing:-.085em;line-height:.95; }
.solo-score-label { margin:7px 0 20px;color:#89908b;font:11px var(--mono);letter-spacing:.13em;text-transform:uppercase; }
.best-track { width:min(380px,80%);height:9px;background:#e9e5d9;border-radius:10px;overflow:hidden; }
.best-fill {height:100%;width:0;background:var(--sun);border-radius:inherit;transition:width .4s;}
.best-caption { margin-top:9px;color:#8b9089;font:10px var(--mono); }
.mascot-wrap { position:absolute; right:6%; bottom:12px; z-index:1; opacity:.92; transform:rotate(5deg); }
.mascot { width:74px;height:83px; animation:bob 2.8s ease-in-out infinite; }
.arena[data-phase="get-ready"] .mascot { animation:peek .9s ease-in-out infinite alternate; }
.arena[data-phase="results"] .mascot { animation:hop .55s ease-in-out 2; }
.game-bottom { padding:17px 22px 22px; border-top:1px dashed var(--line); display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:14px; }
.match-note { color:#858b85;font-size:12px; }
.clock { text-align:center; min-width:100px; }
.clock strong { display:block; font:700 22px var(--mono); letter-spacing:-.05em; }
.clock span { color:#a0a297;font:9px var(--mono);text-transform:uppercase;letter-spacing:.13em; }
.tap-button { min-width:190px; border:2px solid var(--ink); border-radius:15px; background:var(--coral); color:#fffaf0; padding:14px 24px; box-shadow:0 5px 0 var(--ink); font-weight:900; font-size:16px; letter-spacing:.01em; cursor:pointer; transition:transform .1s, box-shadow .1s, background .15s; touch-action:manipulation; user-select:none; }
.tap-button:hover { background:#f47d61; transform:translateY(-1px); }
.tap-button:active,.tap-button.pressed { transform:translateY(4px); box-shadow:0 1px 0 var(--ink); }
.tap-button[disabled] { cursor:default; filter:saturate(.65);opacity:.72; }
.personal-line { justify-self:end; color:#8b9089;font:10px var(--mono);text-align:right; }
.personal-line b { color:var(--ink);font-size:15px; }
.below-grid { display:grid;grid-template-columns:1.2fr .8fr;gap:18px;margin-top:20px; }
.info-card { background:rgba(255,253,246,.78); border:1px solid var(--line);border-radius:19px;padding:20px 22px; }
.info-card h2 { margin:0 0 12px;font-size:16px;letter-spacing:-.03em; }
.quick-stats { display:flex;gap:0; }
.quick-stat { flex:1;padding:2px 18px 2px 0; }
.quick-stat + .quick-stat { padding-left:18px;border-left:1px solid var(--line); }
.quick-stat strong { display:block;font-size:22px;letter-spacing:-.05em; }
.quick-stat span { color:#90948d;font:10px var(--mono);text-transform:uppercase;letter-spacing:.08em; }
.hint { color:#838a86;font-size:12px;line-height:1.6;margin:0; }
.text-link { color:var(--coral-dark);font-weight:800; }
.page-heading { display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin:10px 0 26px; }
.page-heading h1 { font-size:clamp(38px,6vw,62px); }
.section-grid { display:grid;grid-template-columns:1.1fr .9fr;gap:18px;align-items:start; }
.stack { display:grid;gap:18px; }
.panel { overflow:hidden;background:rgba(255,253,246,.88);border:1px solid var(--line);border-radius:20px; }
.panel-head { display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 20px;border-bottom:1px solid #e8e4d9; }
.panel-head h2 { margin:0;font-size:16px;letter-spacing:-.03em; }
.panel-sub { color:#96988f;font:10px var(--mono); }
.sort-select,.country-select { min-height:38px;padding:0 32px 0 12px;border:1px solid var(--line);border-radius:10px;background-color:#faf8f0;color:var(--ink);font-size:12px;font-weight:700; }
.table-wrap { overflow:auto; }
table { width:100%;border-collapse:collapse;white-space:nowrap; }
th { color:#999c93;text-align:left;font:9px var(--mono);text-transform:uppercase;letter-spacing:.1em;padding:12px 14px;border-bottom:1px solid #ece8dd; }
td { padding:12px 14px;border-bottom:1px solid #efebe2;font-size:12px; }
tr:last-child td { border-bottom:0; }
tbody tr:hover { background:#f6f2e7; }
.rank { color:#a3a49c;font:11px var(--mono);width:36px; }
.country-cell { display:flex;align-items:center;gap:10px;font-weight:800; }
.country-cell img.flag-icon { display:block;width:22px;height:15px;flex:0 0 auto;object-fit:cover;border-radius:2px; }
.tiny-flag { width:27px;height:18px;object-fit:cover;border-radius:3px;border:1px solid rgba(32,43,49,.13); }
.rate { font:11px var(--mono);font-weight:500; }
.recent-row { display:grid;grid-template-columns:1fr auto 1fr;gap:10px;align-items:center;padding:12px 17px;border-bottom:1px solid #efebe2;font-size:12px; }
.recent-row:last-child { border:0; }
.recent-country { display:flex;align-items:center;gap:7px;font-weight:700;min-width:0; }
.recent-country.right { justify-content:flex-end;text-align:right; }
.recent-country img { width:22px;height:15px;object-fit:cover;border-radius:2px; }
.match-score { font:700 12px var(--mono);padding:5px 8px;background:#f0ecdf;border-radius:7px; }
.match-time { display:block;color:#a1a197;font:9px var(--mono);margin-top:3px; }
.solo-row { display:grid;grid-template-columns:28px 1fr auto;align-items:center;gap:10px;padding:12px 18px;border-bottom:1px solid #efebe2; }
.solo-row:last-child { border:0; }
.solo-row .score-value {font:700 14px var(--mono);}
.solo-country { display:flex;align-items:center;gap:9px;font-size:12px;font-weight:800;min-width:0; }
.solo-country .flag-icon {width:28px;height:21px;flex:0 0 28px;object-fit:cover;border-radius:3px;}
.solo-country .solo-details {min-width:0;overflow-wrap:anywhere;}
.empty-state,.loading-state,.error-state { padding:30px 20px;text-align:center;color:#8c928b;font-size:13px; }
.loading-state:before { content:"";display:block;width:26px;height:26px;margin:0 auto 12px;border:3px solid #e7e2d5;border-top-color:var(--coral);border-radius:50%;animation:spin .8s linear infinite; }
.error-state button { display:block;margin:12px auto 0;border:1px solid var(--line);background:var(--white);padding:8px 13px;border-radius:9px;font-weight:700;cursor:pointer; }
.badge { padding:5px 8px;border-radius:99px;background:#f5e9c7;color:#94742a;font:9px var(--mono); }
.compare-form { display:flex;align-items:center;gap:8px; }
.compare-vs { color:#9ca099;font:10px var(--mono); }
.h2h-result { padding:20px; }
.h2h-scoreline { display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:14px;text-align:center; }
.h2h-team img { display:block;width:45px;height:30px;object-fit:cover;border-radius:5px;margin:0 auto 7px; }
.h2h-team strong { font-size:13px; }
.h2h-score { font:900 27px var(--display);letter-spacing:-.06em; }
.h2h-label { margin-top:3px;color:#999c93;font:9px var(--mono);text-transform:uppercase; }
.h2h-meter { height:9px;display:flex;overflow:hidden;border-radius:99px;margin:20px 0 10px;background:#eee8dc; }
.h2h-meter .a {background:var(--coral);}
.h2h-meter .b {background:#8dc6d5;}
.h2h-foot { display:flex;justify-content:space-between;color:#95988f;font:10px var(--mono); }
.rivalry-row { display:grid;grid-template-columns:1fr auto 1fr;gap:10px;align-items:center;padding:12px 17px;border-bottom:1px solid #efebe2;font-size:12px; }
.rivalry-row:last-child { border:0; }
.rivalry-row .rival-name {display:flex;align-items:center;gap:7px;font-weight:700;}
.rivalry-row .rival-name:last-child {justify-content:flex-end;}
.rivalry-row img {width:22px;height:15px;object-fit:cover;border-radius:2px;}
.rivalry-count {font:10px var(--mono);color:#888d86;text-align:center;}
.country-hero { display:flex;align-items:center;gap:18px;margin:24px 0 27px;padding:25px 28px;background:var(--white);border:1px solid var(--line);border-radius:22px;box-shadow:0 5px 0 rgba(32,43,49,.07); }
.country-hero img { width:68px;height:46px;object-fit:cover;border-radius:7px;border:1px solid #ddd9cd; }
.country-hero h1 { font-size:clamp(34px,6vw,56px); }
.country-hero .hero-code { color:#969a91;font:11px var(--mono);letter-spacing:.12em;margin-top:5px; }
.country-metrics { display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:20px; }
.metric-box { padding:17px 18px;background:#eeeade;border-radius:15px; }
.metric-box strong {display:block;font-size:25px;letter-spacing:-.055em;}
.metric-box span {color:#868c84;font:9px var(--mono);text-transform:uppercase;letter-spacing:.1em;}
.record-bar {display:flex;align-items:center;gap:5px;height:10px;margin:12px 0 8px;}
.record-bar span {height:100%;border-radius:5px;background:var(--mint);}
.record-bar span.loss {background:#f0a18a;}
.record-bar span.draw {background:#efd778;}
.footer { margin-top:54px;padding:17px 0 0;border-top:1px solid var(--line);display:flex;justify-content:space-between;color:#9a9c93;font:10px var(--mono); }
.sound-toggle { display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;background:var(--white);border:1px solid var(--line);border-radius:11px;cursor:pointer; }
.sound-toggle svg {width:17px;height:17px;}
.tap-key {color:#a0a298;font:10px var(--mono);}
.toast { position:fixed;bottom:22px;left:50%;transform:translate(-50%,12px);opacity:0;pointer-events:none;background:var(--ink);color:var(--white);padding:11px 16px;border-radius:12px;font-size:12px;transition:opacity .2s,transform .2s;z-index:10; }
.toast.show {opacity:1;transform:translate(-50%,0);}
.mode-note {color:#92978f;font:10px var(--mono);letter-spacing:.1em;text-transform:uppercase;}
.game-topline {gap:12px;}
.game-country {display:flex;align-items:center;justify-content:center;gap:8px;font-size:12px;font-weight:800;}
.game-country img {width:23px;height:15px;object-fit:cover;border-radius:3px;border:1px solid rgba(32,43,49,.12);}
.top-vs {color:#a4a59d;font:9px var(--mono);}
.top-timer {font:700 17px var(--mono);min-width:58px;text-align:right;}
.live-h2h {min-height:34px;padding:9px 16px;text-align:center;background:#f3efe3;color:#818780;font:9px var(--mono);letter-spacing:.03em;border-bottom:1px solid #e9e4d7;}
.live-h2h[hidden] {display:none;}
.last-five {display:inline-flex;gap:3px;margin-left:8px;vertical-align:middle;}
.result-mark {display:inline-grid;place-items:center;width:16px;height:16px;border-radius:50%;font:8px var(--mono);font-weight:700;}
.result-mark.w {background:#b9dfcc;color:#245e45;}
.result-mark.l {background:#f4d1c5;color:#934838;}
.result-mark.d {background:#efd778;color:#75601f;}
.game-card,.game-card * {user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;}
.game-card {touch-action:manipulation;}
.tap-button[aria-disabled="true"] {cursor:pointer;filter:saturate(.5);opacity:.72;}
.tap-button[aria-disabled="true"]:active {animation:locked-shake .28s ease-in-out;}
.audio-hint {display:block;margin-top:5px;color:#a0a298;font:9px var(--mono);text-transform:none;letter-spacing:0;}
.audio-hint.hidden {display:none;}
.mascot-wrap {left:50%;right:auto;bottom:15px;z-index:4;transform:translateX(-50%);cursor:pointer;touch-action:manipulation;}
.mascot-wrap:focus-visible {outline:3px solid #287c87;outline-offset:4px;border-radius:50%;}
.mascot {width:98px;height:110px;}
.rope-end {position:absolute;z-index:3;left:8%;top:50%;transform:translateY(-50%);display:flex;width:34px;height:24px;}
.rope-end.right {left:auto;right:8%;}
.rope-end img {width:100%;height:100%;object-fit:cover;border:2px solid var(--white);border-radius:4px;box-shadow:0 1px 3px rgba(32,43,49,.2);}
.solo-mode .rope-end {display:none;}
.h2h-history {max-height:330px;overflow:auto;margin:15px -20px -20px;border-top:1px solid #ece8dd;}
.h2h-history-row {display:grid;grid-template-columns:22px 1fr auto 1fr 22px auto;gap:7px;align-items:center;padding:11px 16px;border-bottom:1px solid #efebe2;font-size:10px;}
.h2h-history-row img {width:20px;height:14px;object-fit:cover;border-radius:2px;}
.h2h-history-row b {font:700 10px var(--mono);white-space:nowrap;}
.h2h-history-row time {color:#989a91;font:9px var(--mono);white-space:nowrap;}
.empty-state.compact {padding:12px;}
.solo-country small {display:block;color:#92978f;font:9px var(--mono);font-weight:400;margin-top:3px;}
.unranked-row {color:#858b84;}
.unranked-row .rank {font-size:9px;white-space:nowrap;}
.locked-shake {animation:locked-shake .32s ease-in-out;}
.leader-tabs {display:flex;gap:7px;margin:-5px 0 20px;}
.leader-tabs button {padding:9px 15px;border:1px solid var(--line);border-radius:999px;background:rgba(255,253,246,.6);color:#777f7b;font-size:12px;font-weight:800;cursor:pointer;}
.leader-tabs button[aria-selected="true"] {background:var(--ink);border-color:var(--ink);color:var(--white);}
@keyframes locked-shake {25%{transform:translateX(-5px)}50%{transform:translateX(5px)}75%{transform:translateX(-3px)}}
@keyframes pulse {50%{opacity:.35;transform:scale(.8)}}
@keyframes spin {to{transform:rotate(360deg)}}
@keyframes bob {50%{transform:translateY(-5px) rotate(-4deg)}}
@keyframes peek {to{transform:translateY(-8px) rotate(-8deg)}}
@keyframes hop {50%{transform:translateY(-17px) rotate(-8deg)}}
@media (max-width:760px) {
 .shell {width:min(100% - 28px,600px);}
 .topbar {height:68px;}
 .brand {font-size:19px;gap:8px;}
 .brand-mark {width:33px;height:33px;}
 .connection {font-size:0;}
 .connection-dot {width:9px;height:9px;}
 .nav-link {padding:9px 11px;font-size:12px;}
 main {padding-top:27px;}
 .hero-row {align-items:flex-start;flex-direction:column;}
 .hero-row .mode-switch {align-self:flex-start;}
 .below-grid,.section-grid {grid-template-columns:1fr;}
 .arena {padding:22px 14px 15px;min-height:272px;}
 .contestants {gap:28px;}
 .mascot-wrap {right:3%;bottom:6px;opacity:.6;}
 .mascot {width:57px;height:65px;}
 .game-bottom {grid-template-columns:1fr auto;row-gap:12px;padding:14px;}
 .match-note {grid-column:1;grid-row:1;}
 .clock {grid-column:2;grid-row:1;}
 .tap-button {grid-column:1/-1;grid-row:2;width:100%;min-height:56px;}
 .personal-line {grid-column:1/-1;grid-row:3;justify-self:center;text-align:center;}
 .page-heading {align-items:flex-start;flex-direction:column;}
 .country-metrics {grid-template-columns:repeat(2,1fr);}
 .country-hero {padding:19px;gap:13px;}
 .country-hero img {width:53px;height:37px;}
 .footer {margin-top:36px;}
}
@media (max-width:430px) {
 .shell {width:calc(100% - 22px);}
 .nav {gap:0;}
 .nav-link {padding:8px 9px;font-size:11px;}
 .brand span:last-child {display:none;}
 .game-topline {padding:13px 15px;}
  .game-country {font-size:10px;gap:5px;flex-wrap:wrap;}
  .game-country img {width:20px;height:13px;}
  .top-timer {font-size:14px;min-width:48px;}
  .live-h2h {font-size:8px;padding:8px 7px;}
  .mascot {width:76px;height:86px;}
  .rope-end {width:26px;height:19px;}
  .h2h-history-row {grid-template-columns:18px 1fr auto 1fr 18px;gap:5px;padding:9px 10px;}
  .h2h-history-row time {grid-column:2/-1;}
 .contestants {gap:16px;}
 .country-name {font-size:14px;}
 .score-line {gap:8px;}
 .score {font-size:39px;}
 .score-unit {font-size:8px;}
 .versus {width:35px;height:35px;}
 .compare-form {flex-wrap:wrap;}
 .panel-head {align-items:flex-start;flex-wrap:wrap;}
 th,td {padding:11px 10px;}
}
@media (prefers-reduced-motion:reduce) {
 *,*:before,*:after {scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;}
}

.play-screen {max-width:780px;margin:0 auto;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;}
.play-heading {display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 16px;}
.play-heading h1 {font-size:clamp(36px,6vw,58px);letter-spacing:-.06em;}
.online-badge {display:inline-flex;align-items:center;gap:6px;padding:7px 10px;border:1px solid var(--line);border-radius:99px;background:var(--white);white-space:nowrap;font:11px var(--mono);color:#4f6259;}
.online-badge i {width:7px;height:7px;border-radius:50%;background:#a8aa9e;margin-right:1px;}
.online-badge.online i {background:#2e926b;box-shadow:0 0 0 3px #d7efdf;}
.game-toolbar,.play-identity {display:flex;align-items:center;justify-content:space-between;gap:8px;}
.game-toolbar {margin:0 0 12px;flex-wrap:wrap;}
.play-identity {gap:10px;}
.game-toolbar .mode-switch {border:1px solid #d4ccba;border-radius:13px;background:#eee7d6;gap:4px;padding:3px;}
.game-toolbar .mode-switch button {padding:8px 16px;min-width:64px;min-height:36px;border-radius:9px;color:#4f5856;}
.game-toolbar .mode-switch button[aria-pressed="true"] {color:var(--white);background:var(--ink);box-shadow:0 2px 0 #121b20;}
.game-toolbar .mode-switch button:disabled {cursor:default;}
.game-toolbar .mode-switch button:disabled:not([aria-pressed="true"]) {opacity:.6;}
.game-toolbar .game-country {color:#404c4d;flex-wrap:nowrap;text-align:right;}
.play-screen .game-card {border:2px solid var(--ink);border-radius:22px;box-shadow:0 7px 0 var(--ink),0 15px 36px #50320d20;}
.play-screen .game-topline {border:0;background:var(--ink);color:var(--white);min-height:61px;padding:10px 18px;}
.play-screen .phase-chip {color:var(--white);background:#38464b;letter-spacing:.06em;font-weight:500;}
.play-screen .phase-chip i {background:#b8bfb9;animation:none;}
.play-screen [data-phase="match"] .phase-chip i {background:#8be3b9;}
.play-screen [data-phase="get-ready"] .phase-chip i {background:var(--sun);}
.play-screen [data-phase="results"] .phase-chip i {background:var(--coral);}
.play-screen .clock {display:flex;align-items:baseline;justify-content:end;gap:9px;min-width:0;}
.play-screen .clock strong {min-width:3.4ch;font-size:29px;font-variant-numeric:tabular-nums;text-align:right;line-height:1;}
.play-screen [data-phase="get-ready"] .clock strong {color:#ffdb63;}
.play-screen .clock span {color:#bdc9c4;font-weight:500;letter-spacing:.06em;}
.play-screen .arena {isolation:isolate;min-height:282px;padding:18px 24px 117px;justify-content:flex-start;background:radial-gradient(ellipse at 50% 70%,#fff9e2 0%,transparent 65%),repeating-linear-gradient(0deg,#b5985140 0 1px,transparent 1px 22px),#f3e1ad;}
.play-screen .arena::before {content:"";position:absolute;z-index:-1;inset:0;background:repeating-linear-gradient(90deg,#b5985133 0 1px,transparent 1px 22px);mask-image:linear-gradient(0deg,#000,transparent);}
.play-screen .arena.can-pull {cursor:pointer;}
.play-screen .arena .flag-icon,.play-screen .arena .mascot {pointer-events:none;}
.play-screen .game-card:not(.solo-mode) .arena {background:radial-gradient(ellipse at 50% 74%,#fff6dc 0%,transparent 60%),linear-gradient(90deg,#f5c6ae 0 50%,#bce0e7 50%);}
.play-screen .game-card:not(.solo-mode) .arena::before {mask-image:linear-gradient(0deg,#0006,transparent);}
.play-screen .contestants {margin:0 auto;width:min(100%,540px);}
.play-screen .versus {top:75px;}
.play-screen .rope-stage {height:44px;margin:0 15px;}
.play-screen .rope-knot:after {height:14px;}
.play-screen .live-h2h {min-height:0;padding:7px 12px;color:#495951;border-bottom:1px solid #ad9e7733;font-size:10px;}
.play-screen .solo-arena {min-height:0;justify-content:flex-start;gap:5px;}
.play-screen .solo-score {font-size:clamp(68px,10vw,96px);font-variant-numeric:tabular-nums;}
.play-screen .solo-score-label {margin:0 0 3px;color:#625c49;font-weight:500;}
.play-screen .best-track {width:min(210px,65%);height:6px;background:#dbca9c;}
.play-screen .best-caption {margin:0;color:#5d5848;}
.play-screen .best-fill {background:#c77b39;}
.play-screen .mascot-wrap {right:auto;bottom:7px;display:grid;place-items:center;width:126px;height:132px;margin:0;padding:0;opacity:1;background:none;border:0;transform:translateX(-50%);}
.play-screen .mascot-wrap:disabled {cursor:default;color:inherit;}
.play-screen .mascot {width:114px;height:129px;filter:drop-shadow(0 4px 0 #67582430);}
.play-screen .game-card:not(.solo-mode) .mascot-wrap {width:105px;height:103px;bottom:4px;}
.play-screen .game-card:not(.solo-mode) .mascot {width:92px;height:103px;}
.world-lobby-title {display:none;}
.world-lobby .world-lobby-title {display:block;text-align:center;margin:29px 0 0;font-size:clamp(30px,6vw,42px);letter-spacing:-.05em;}
.play-screen .world-lobby .solo-arena {display:none;}
.play-screen .game-bottom {grid-template-columns:1fr;gap:12px;padding:14px 16px;border-top:1px solid #d1c5a6;}
.play-screen .tap-button {width:100%;min-width:0;min-height:58px;padding:12px 18px;grid-row:auto;border-radius:12px;font-size:clamp(17px,3.5vw,22px);}
.play-screen .tap-button:disabled,.play-screen .tap-button[aria-disabled="true"] {background:#d7d2c2;color:#494c43;opacity:1;filter:none;}
.play-screen .personal-line {grid-column:1/-1;grid-row:auto;justify-self:stretch;display:flex;justify-content:space-between;align-items:center;gap:6px;text-align:left;color:#5f655b;min-height:20px;}
.play-screen .personal-count {margin-left:auto;white-space:nowrap;font-size:12px;}
.play-screen .match-note {color:#585e50;font-weight:700;line-height:1.2;}
.play-footer {display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:18px;color:#5d665d;font-size:12px;}
.play-footer a {margin-left:auto;}
.play-shortcut kbd {border:1px solid #c9c7b9;border-radius:4px;padding:2px 5px;background:var(--white);font-size:10px;}
@media (max-width:480px) {
  .play-heading {margin-bottom:11px;}
  .play-screen .game-topline {padding:9px 12px;min-height:53px;}
  .play-screen .arena {padding:14px 12px 114px;min-height:258px;}
  .play-screen .rope-stage {margin:0 4px;}
  .play-screen .game-bottom {padding:11px 12px;}
  .play-screen .game-toolbar .mode-switch button {min-width:53px;padding:7px 11px;}
  .play-screen .game-toolbar .sound-toggle {width:32px;height:32px;flex:none;}
  .play-screen .game-country {max-width:135px;font-size:11px;}
}
@media (pointer:coarse) {.play-shortcut {display:none;}}

.phase-meter {height:5px;overflow:hidden;background:#435054;}
.phase-meter span {display:block;width:var(--remaining,0%);height:100%;background:var(--sun);}
.game-card[data-phase="match"] .phase-meter span {background:#9ee3bd;}
.game-card.last-seconds .phase-meter span {background:#ff8c70;}
.game-card.last-seconds .clock strong {color:#ffaf98;}
#tap-effects {position:absolute;z-index:5;inset:0;pointer-events:none;overflow:hidden;}
.tap-pop {position:absolute;bottom:76px;left:50%;font:900 27px/1 var(--display);color:#203037;text-shadow:1px 1px 0 var(--white),-1px 1px 0 var(--white),1px -1px 0 var(--white);animation:tap-pop .48s ease-out forwards;}
.tap-pop-special {font-size:clamp(17px,5vw,29px);color:#fffdf6;background:#bd442e;border:2px solid var(--ink);border-radius:9px;padding:6px 11px;white-space:nowrap;text-shadow:none;box-shadow:2px 3px 0 var(--ink);animation-duration:.85s;}
@keyframes tap-pop {
  0% {transform:translate(-50%,12px) rotate(0) scale(.7);opacity:0;}
  18% {opacity:1;}
  55% {opacity:1;transform:translate(calc(-50% + var(--spread) * .7),-44px) rotate(var(--twist)) scale(1.1);}
  100% {transform:translate(calc(-50% + var(--spread)),-81px) rotate(var(--twist)) scale(.95);opacity:0;}
}
.invite-button {margin-left:auto;min-height:34px;padding:2px 0 2px 7px;border:0;background:none;color:#9a3b2a;font-weight:800;cursor:pointer;}
.invite-button:hover {text-decoration:underline;}
#invite-fallback {max-width:100%;min-width:220px;user-select:text;-webkit-user-select:text;padding:6px 8px;border:1px solid var(--line);border-radius:5px;}
.legal-footer {display:flex;justify-content:center;gap:21px;align-items:center;padding:14px 0 24px;margin-top:-32px;font:12px var(--display);color:#525d59;}
.legal-footer a:hover {text-decoration:underline;}
.legal-footer {flex-wrap:wrap;row-gap:8px;}
.legal-footer .geo-attribution {flex-basis:100%;text-align:center;font-size:10px;}
@media (max-width:390px) {
  .play-identity {gap:4px;}
  .play-screen .game-toolbar .game-country span {max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
}
