:root{--bg:#0b1118!important;--panel:#111c27!important;--panel2:#172534!important;--line:#293a4b!important;--soft:#213141!important;--text:#e8eef5!important;--muted:#91a2b3!important;--lime:#6fa8d8!important;--green:#3dac78!important;--yellow:#d3a047!important;--gray:#647381!important;--danger:#d9626a!important;--shadow:none!important}body{font-size:14px!important;background:#0b1118!important;background-image:none!important}.grain{opacity:.018}.glow,.ambient{display:none!important}.site-header,.topbar{background:#0d1721!important;border-color:#293a4b!important;backdrop-filter:none!important}.logo>i,.brand-mark{background:#87bce8!important}.site-header nav button,.site-header nav a,.top-actions button,.top-actions a{font-size:13px!important}.server-pill{border-radius:2px!important}.hero{margin-top:8px!important;margin-bottom:34px!important}.hero h1{font-size:clamp(38px,4.5vw,58px)!important;line-height:1.04!important;letter-spacing:-.035em!important}.hero h1 em{color:#87bce8!important}.hero-copy>p:last-child,.hero-copy{font-size:14px!important}.hero-card,.panel,.mode-shell,.setup-form,.room-options article,.board-card,.score-player,.waiting-card,.result-card,.rules-strip,.modal,.guess-card{border-radius:2px!important;background:#111c27!important;background-image:none!important;box-shadow:none!important}.radar,.score-ring{border-radius:50%!important}.mode-tabs button{background:#0e1822!important}.mode-tabs button.active{background:#172534!important;box-shadow:inset 0 -2px #6fa8d8!important}.mode-tabs button span,.setup-grid>div>p:last-child,.match-center>p,.room-options article>p{font-size:13px!important}.setup-grid h2,.match-center h2,.room-options h2{font-size:25px!important;letter-spacing:0!important}.cta,.primary-btn,.secondary-cta,.secondary-btn,.feedback-btn,.source-toggle label,.guess-form,.search-wrap input,.player-search-wrap input,.compact-search,.table-tools label,.table-tools select,.heading-tools select,.use-player,.session-actions button,.text-button,.icon-button,.rule-grid>div,.modal-note,.region,.tag,.room-code,.option-icon,.name-field input,.room-options input,.setup-form input,.guess-composer input,.suggestions,.suggestions button{border-radius:2px!important;box-shadow:none!important}.cta,.primary-btn{background:#79b3e0!important;color:#09121a!important}.cta:hover,.primary-btn:hover{background:#98c8eb!important}.mode-view{padding:32px!important}.arena{padding:26px!important}.game-table{border-spacing:3px!important}.game-table td{height:58px!important;border-radius:1px!important;font-size:12px!important}.game-table th{font-size:10px!important}.game-table td:first-child{font-size:13px!important}.panel-heading h2,.panel-head h2{font-size:19px!important}.hero-copy p,.hero-copy>p:last-child{line-height:1.65!important}.guess-panel,.candidate-panel,.candidates-panel{padding:22px!important}.feedback-button,.feedback-btn{min-height:62px!important}.feedback-button .field,.feedback-btn .field{font-size:9px!important}.feedback-button .value,.feedback-btn .value{font-size:12px!important}.candidate-table th,th{font-size:10px!important}.candidate-table td,td{font-size:12px!important}.rec-player h3{font-size:21px!important}.legend-list strong,.legend b{font-size:11px!important}.legend-list small,.legend span{font-size:9px!important}.topbar{height:64px!important}.app-shell,.shell{padding-top:34px!important}.panel-kicker,.step-label,.kicker,.eyebrow{font-size:10px!important}.modal h2{font-size:24px!important}.rule-grid b{font-size:13px!important}.rule-grid p,.modal-note{font-size:11px!important}.source-toggle label{font-size:12px!important}.search-result strong{font-size:13px!important}.search-result small{font-size:11px!important}@media(max-width:760px){.site-header{padding:8px 12px!important}.site-header nav{border-top:1px solid #253647!important}.hero{margin-bottom:26px!important}.hero h1{font-size:36px!important}.hero-copy>p:last-child{font-size:13px!important}.mode-tabs{overflow-x:auto!important;grid-template-columns:repeat(3,minmax(135px,1fr))!important}.mode-view,.arena{padding:16px!important}.setup-grid h2,.match-center h2,.room-options h2{font-size:22px!important}.setup-form,.room-options article{padding:16px!important}.game-table td{height:54px!important;font-size:11px!important}.rules-strip{padding:13px!important}.topbar{height:auto!important;min-height:62px!important}.app-shell,.shell{width:calc(100% - 16px)!important;padding-top:24px!important}.hero h1{letter-spacing:-.02em!important}.guess-panel,.candidate-panel,.candidates-panel{padding:14px!important}.feedback-grid{gap:4px!important}.feedback-button,.feedback-btn{min-height:58px!important}.panel-heading{gap:12px!important}.heading-tools{flex-wrap:wrap!important}.modal{padding:22px 16px!important;border-radius:2px!important}}

/* Responsive readability and overflow fixes */
.setup-form label,.room-options label,.name-field{font-size:11px!important}
.rules-strip b{font-size:12px!important}
.rules-strip small{font-size:10px!important}
.feedback-button .field,.feedback-btn .field{font-size:10px!important}
.legend-list strong,.legend b{font-size:12px!important}
.legend-list small,.legend span{font-size:11px!important}
.rule-grid p,.modal-note,.rules p,.note{font-size:12px!important}
.candidate-panel,.table-wrap{min-width:0!important;max-width:100%!important}
.candidate-panel{overflow:hidden!important}
.table-wrap{width:100%!important;overflow-x:auto!important}
@media(max-width:760px){
  .site-header nav{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;overflow:visible!important}
  .site-header nav button,.site-header nav a{min-width:0!important;padding:0 4px!important;justify-content:center!important;font-size:11px!important;white-space:nowrap!important}
  .mode-tabs{grid-template-columns:repeat(3,minmax(0,1fr))!important;overflow:visible!important}
  .topbar{gap:8px!important}
  .brand{gap:8px!important}
  .brand-mark{width:34px!important;height:34px!important;font-size:21px!important}
  .brand strong{font-size:12px!important}
  .brand small{display:none!important}
  .topbar nav{gap:0!important}
  .topbar .link-btn{padding:8px 6px!important;font-size:11px!important}
  .topbar .theme-btn{width:34px!important;height:34px!important}
}
@media(max-width:760px){.round-dots{display:none!important}}
/* Small supporting text remains readable on standard-density displays. */
.source-badge,.guess-card-head>small,.region,.player-cell small,.info-score small,.rec-stats span{font-size:10px!important}
.rec-reason{font-size:12px!important}
.rec-stats strong{font-size:12px!important}
.session-panel span,.session-panel button,.table-footer{font-size:11px!important}
/* HLTV-style lobby: restrained, flat, information-first */
body { background: #0b1118 !important; }
.grain, .glow { display: none !important; }
.site-header { height: 64px; padding-inline: clamp(16px, 4vw, 56px); background: #0d1721 !important; border-color: #293a4b !important; backdrop-filter: none; }
.logo > i { background: #87bce8 !important; }
.site-header nav button, .site-header nav a { font-size: 13px; }
main { padding-top: 38px; }
.hero { margin: 0 0 32px; }
.hero h1 { font-size: clamp(38px, 4.5vw, 58px); line-height: 1.04; letter-spacing: -.035em; }
.hero h1 em { color: #87bce8; }
.hero-copy > p:last-child { margin-top: 14px; font-size: 14px; }
.hero-card { min-width: 240px; padding: 16px; border-radius: 2px; background: #111c27; box-shadow: none; }
.mode-shell, .setup-form, .room-options article, .rules-strip { border-radius: 2px; background: #111c27; box-shadow: none; }
.mode-tabs button { padding: 15px 20px; background: #0e1822; }
.mode-tabs button.active { background: #172534; box-shadow: inset 0 -2px #6fa8d8; }
.mode-tabs button span { font-size: 13px; }
.mode-tabs button small { display: none; }
.mode-view { padding: 30px; }
.setup-grid h2, .match-center h2, .room-options h2 { font-size: 25px; letter-spacing: 0; }
.setup-grid > div > p:last-child, .match-center > p, .room-options article > p { font-size: 13px; line-height: 1.6; }
.cta, .secondary-cta { border-radius: 2px; min-height: 44px; }
.cta { background: #79b3e0; color: #09121a; }
.cta:hover { background: #98c8eb; transform: none; }
.rules-strip { padding: 12px 16px; gap: 18px; }
.rules-strip small { display: none; }
.rules-strip b { font-size: 12px; }
.rules-strip > div { gap: 7px; }
.rules-strip .color, .rules-strip .arrow { width: 24px; height: 24px; border-radius: 1px; }
.rules-strip .tool-cta { min-height: 42px; display: inline-flex; align-items: center; gap: 12px; margin-left: auto; padding: 0 16px; border: 1px solid #79b3e0; background: #172b3b; color: #a8d2f2; font-size: 16px; font-weight: 700; white-space: nowrap; }
.rules-strip .tool-cta span { font-size: 20px; line-height: 1; }
@media (max-width: 900px) { .hero-card { display: none; } }
@media (max-width: 620px) { main { padding-top: 26px; } .mode-view { padding: 20px 14px; } .rules-strip { gap: 10px; } .rules-strip .tool-cta { width: 100%; justify-content: center; margin: 4px 0 0; font-size: 15px; } }

/* Multiplayer controls and match status */
.match-setting { display:flex; align-items:center; gap:10px; margin:14px 0 16px; color:#91a2b3; font-size:13px; }
.match-setting select { flex:1; height:40px; padding:0 10px; border:1px solid #293a4b; border-radius:2px; color:#e8eef5; background:#172534; }
.check-field { display:flex !important; align-items:center; gap:8px; margin:3px 0 16px; color:#91a2b3 !important; font-size:12px !important; }
.check-field input { width:16px !important; height:16px !important; margin:0 !important; accent-color:#79b3e0; }
.match-info { display:flex; align-items:center; gap:8px; margin:0 0 18px; padding:9px 12px; border:1px solid #293a4b; background:#0e1822; color:#91a2b3; font:700 12px ui-monospace,monospace; }
.match-info span { padding-right:10px; border-right:1px solid #293a4b; }
.match-info span:last-child { border-right:0; }
.match-info .match-clock { margin-left:auto; color:#a8d2f2; font-size:16px; }
.spectator-panel { display:flex; gap:10px; align-items:center; margin:0 0 18px; padding:10px 12px; border:1px solid #293a4b; color:#91a2b3; font-size:12px; }
.spectator-panel strong { color:#a8d2f2; }
.spectator-panel span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.arena-actions button { border-radius:2px !important; }
.board-label span { color:#91a2b3; }
.game-table td.masked { color:#91a2b3; }
.game-table td.masked .direction { color:#e8eef5; }
.rematch-note { color:#a8d2f2 !important; }
.result-card #rematch { min-width:180px; margin:12px auto 0; }
.result-card #rematch:disabled { cursor:wait; opacity:.55; }
@media (max-width:620px) { .match-info { flex-wrap:wrap; } .match-info .match-clock { margin-left:0; } .spectator-panel { align-items:flex-start; flex-direction:column; gap:4px; } }

/* Shared PR弗一把 footer and country flags */
.site-footer { width: min(1240px, calc(100% - 32px)); margin: 0 auto; padding: 18px 0 24px; text-align: center; color: #7890a6; font-size: 12px; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: #a8d2f2; text-decoration: underline; }
.avatar { font-family: "Apple Color Emoji", "Segoe UI Emoji", sans-serif; font-size: 22px; line-height: 1; }

/* PRBET visual language: local logo, dark-only, compact header */
.brand-art { display: inline-flex; align-items: center; justify-content: center; flex: none; overflow: hidden; }
.brand-art img { display: block; width: auto; height: 38px; max-width: 150px; object-fit: contain; }
.logo .brand-art img { height: 38px; max-width: 150px; }
.admin-brand .brand-art img { height: 34px; max-width: 132px; }
.avatar { color: #dcecf9; font: 800 11px/1 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .04em; }

.hero-card { display: none !important; }
@media (max-width: 600px) { .brand-art img, .logo .brand-art img { height: 34px; max-width: 128px; } .admin-brand .brand-art img { height: 30px; max-width: 112px; } }

.question-setting { display:flex; flex-direction:column; gap:6px; color:#91a2b3; font-size:12px !important; }
.question-setting select { height:40px; padding:0 10px; border:1px solid #293a4b; border-radius:2px; color:#e8eef5; background:#172534; }
.brand-art { display:inline-flex; align-items:center; justify-content:center; overflow:hidden; flex:none; }
.brand-art img { display:block; width:auto; height:38px; max-width:150px; object-fit:contain; }
.logo .brand-art img { height:38px; max-width:150px; }
.admin-brand .brand-art img { height:34px; max-width:132px; }
.avatar { color:#dcecf9; font:800 11px/1 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing:.04em; }
.hero-card { display:none !important; }
@media (max-width:600px) { .brand-art img, .logo .brand-art img { height:34px; max-width:128px; } .admin-brand .brand-art img { height:30px; max-width:112px; } }
.avatar { overflow: hidden; background: #26313c; }
.avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.avatar-unknown { color: #9aabba; font-size: 14px; }
.feedback-option { display: flex !important; align-items: center; gap: 8px; }
.feedback-swatch { width: 10px; height: 10px; flex: none; border-radius: 50%; background: #65717d; box-shadow: 0 0 0 2px #ffffff12; }
.feedback-option-exact .feedback-swatch { background: #3dac78; }
.feedback-option-close .feedback-swatch, .feedback-option-close-up .feedback-swatch, .feedback-option-close-down .feedback-swatch { background: #d3a047; }
.feedback-option-miss .feedback-swatch, .feedback-option-miss-up .feedback-swatch, .feedback-option-miss-down .feedback-swatch { background: #758391; }
.feedback-option-unset .feedback-swatch { background: #3c4854; }
.site-footer { display: grid; gap: 10px; }
.site-footer-links { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.site-promo, .author-link { display: inline-flex; align-items: center; gap: 7px; min-height: 30px; padding: 0 10px; border: 1px solid #293a4b; border-radius: 2px; background: #111c27; }
.site-promo strong { color: #87bce8; font-size: 11px; letter-spacing: .08em; }
.site-promo span, .author-link { font-size: 11px; }
.author-link { color: #b9c9d8 !important; }
.beian-link { font-size: 11px; }
@media (max-width: 600px) { .site-footer-links { align-items: stretch; flex-direction: column; } .site-promo, .author-link { justify-content: center; } }
.single-head-tools { display: flex; align-items: center; gap: 14px; }
.single-meta { display: flex; align-items: center; gap: 9px; margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.single-meta strong { color: var(--text); font-size: 15px; }
.single-meta span { padding-left: 9px; border-left: 1px solid var(--line); }
.single-progress { display: flex; align-items: center; gap: 10px; min-width: 238px; padding: 7px 10px; border: 1px solid var(--line); background: #0e1822; }
.single-progress-ring { --progress: 0%; width: 48px; height: 48px; display: grid; place-content: center; flex: none; position: relative; border-radius: 50%; background: conic-gradient(var(--blue2, #87bce8) var(--progress), #293a4b 0); text-align: center; }
.single-progress-ring::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: #0e1822; }
.single-progress-ring strong, .single-progress-ring span { position: relative; z-index: 1; display: block; text-align: center; }
.single-progress-ring strong { color: #d8ebfa; font: 800 17px/1 ui-monospace, monospace; }
.single-progress-ring span { margin-top: 3px; color: var(--muted); font-size: 8px; }
.single-progress-info { min-width: 145px; }
.single-progress-info > div:first-child { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.single-progress-info strong { color: var(--text); font-size: 13px; }
.single-progress-info span { color: var(--muted); font-size: 10px; white-space: nowrap; }
.single-progress-track { height: 4px; margin-top: 7px; overflow: hidden; background: #293a4b; }
.single-progress-track i { display: block; height: 100%; background: #87bce8; }
.single-progress-dots { display: flex; gap: 4px; margin-top: 7px; }
.single-progress-dots i { width: 13px; height: 3px; background: #293a4b; }
.single-progress-dots i.used { background: #87bce8; }
@media (max-width: 720px) { .arena-head { align-items: flex-start; flex-direction: column; } .single-head-tools { width: 100%; justify-content: space-between; } .single-progress { min-width: 0; flex: 1; } }

/* Keep the solo attempt count as the primary status signal. */
.single-progress { min-width: 280px; padding: 10px 12px; gap: 12px; }
.single-progress-ring { width: 54px; height: 54px; }
.single-progress-ring strong { font-size: 20px; }
.single-progress-ring span { font-size: 9px; }
.single-progress-info { min-width: 175px; }
.single-progress-info strong { font-size: 16px; letter-spacing: .01em; }
.single-progress-info span { font-size: 11px; }
.single-progress-track { height: 5px; margin-top: 8px; }
.single-progress-dots { margin-top: 8px; }
/* First-screen ecosystem links: visible, flat, and compact like the rest of the UI. */
.site-bridge { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 28px; }
.site-bridge-card { position: relative; display: flex; min-height: 112px; flex-direction: column; justify-content: center; gap: 5px; padding: 16px 52px 16px 18px; border: 1px solid #293a4b; border-left: 3px solid #47647d; color: #e8eef5; background: #111c27; text-decoration: none; transition: border-color .16s, background .16s; }
.site-bridge-card:hover { border-color: #87bce8; background: #172534; text-decoration: none; }
.site-bridge-card span { color: #8fa1b3; font: 700 10px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .08em; text-transform: uppercase; }
.site-bridge-card strong { font-size: 18px; line-height: 1.25; }
.site-bridge-card strong b { color: #87bce8; font-size: 19px; }
.site-bridge-card small { color: #91a2b3; font-size: 12px; line-height: 1.45; }
.site-bridge-primary { border-left-color: #79b3e0; }
.site-bridge-primary strong { color: #a8d2f2; }
.site-bridge-author { border-left-color: #657f98; }
@media (max-width: 620px) { .site-bridge { grid-template-columns: 1fr; gap: 8px; } .site-bridge-card { min-height: 96px; padding: 14px 44px 14px 15px; } .site-bridge-card strong { font-size: 16px; } .site-bridge-card small { font-size: 11px; } }
/* Readability: keep the main game information at a clear, consistent scale. */
.arena-title h2 { font-size: 27px !important; }
.arena-title p { font-size: 14px !important; line-height: 1.4; }
.single-meta { font-size: 15px !important; }
.single-meta strong { font-size: 17px !important; }
.single-progress { min-width: 280px; padding: 12px 14px; }
.single-progress-info { min-width: 220px; }
.single-progress-info > div:first-child { gap: 16px; }
.single-progress-info strong { font-size: 18px !important; }
.single-progress-info span { font-size: 13px !important; }
.single-progress-track { height: 7px; margin-top: 10px; }
.single-progress-ring, .single-progress-dots { display: none !important; }
.guess-composer { padding: 9px; }
.guess-composer input { height: 50px; font-size: 16px !important; }
.guess-composer .cta { min-height: 50px; font-size: 15px !important; }
.board-label { padding: 13px 15px; font-size: 14px !important; letter-spacing: 0; }
.board-label span { font-size: 13px !important; }
.game-table th { padding: 9px 7px; font-size: 12px !important; }
.game-table td { height: 62px !important; padding: 8px 7px; font-size: 14px !important; }
.game-table td:first-child { font-size: 15px !important; }
.empty-board { padding: 30px 24px; font-size: 14px !important; }
.score-player strong { font-size: 15px !important; }
.score-player small { font-size: 13px !important; }
.score-player > span:last-child { font-size: 15px !important; }
.match-info { font-size: 14px !important; }
.match-info .match-clock { font-size: 20px !important; }
.spectator-panel { font-size: 14px !important; }
.setup-form label, .room-options label, .name-field { font-size: 14px !important; }
.setup-form input, .room-options input, .name-field input { font-size: 16px !important; }
.match-setting, .question-setting { font-size: 14px !important; }
.mode-tabs button span { font-size: 15px !important; }
.setup-grid > div > p:last-child, .match-center > p, .room-options article > p { font-size: 14px !important; }

/* The solver uses the same readable scale while retaining compact metadata. */
.panel-head h2 { font-size: 23px !important; }
.panel-head small { font-size: 12px !important; }
.source-toggle label { font-size: 14px !important; }
.search-wrap input, .table-tools input { font-size: 15px !important; }
.primary-btn, .secondary-btn { font-size: 15px !important; }
.empty strong { font-size: 17px !important; }
.empty p, .rec-empty, .modal-copy { font-size: 14px !important; }
.guess-card-head > small { font-size: 12px !important; }
.guess-card-head strong { font-size: 16px !important; }
.source-badge { font-size: 11px !important; }
.feedback-btn .field { font-size: 12px !important; }
.feedback-btn .value { font-size: 14px !important; }
.feedback-btn .state { font-size: 13px !important; }
.feedback-menu button { font-size: 14px !important; }
.candidate-table th, th { font-size: 12px !important; }
.candidate-table td, td { font-size: 14px !important; }
.player-cell strong { font-size: 15px !important; }
.player-cell small { font-size: 12px !important; }
.region { font-size: 11px !important; }
.rec-player h3 { font-size: 24px !important; }
.rec-player p, .rec-reason { font-size: 13px !important; }
.rec-stats strong { font-size: 14px !important; }
.rec-stats span { font-size: 11px !important; }
.legend b { font-size: 14px !important; }
.legend span { font-size: 12px !important; }
.session-panel span, .session-panel button { font-size: 12px !important; }
.session-panel strong { font-size: 14px !important; }
.site-bridge-card small { font-size: 13px !important; }
@media (max-width: 720px) {
  .single-progress { min-width: 0; flex: 1; }
  .single-progress-info { min-width: 0; width: 100%; }
  .single-progress-info strong { font-size: 16px !important; }
  .single-progress-info span { font-size: 12px !important; }
  .game-table td { font-size: 13px !important; }
  .game-table td:first-child { font-size: 14px !important; }
}

/* Keep both player boards visible side by side on desktop. */
@media (min-width: 1100px) { .arena .multiplayer-boards { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } .arena .multiplayer-boards .board-card { min-width: 0; } }

/* Full answer profile shared by solo, matchmaking, private rooms, and spectators. */
.answer-player { width:min(900px, 100%); margin:22px auto 0; padding-top:18px; border-top:1px solid #293a4b; text-align:left; }
.answer-player-head { display:flex; align-items:center; gap:14px; }
.answer-player-badge { width:48px; height:48px; display:grid; place-items:center; flex:none; background:#213141; color:#a8d2f2; font-size:16px; font-weight:800; }
.answer-player-head small { display:block; margin-bottom:3px; color:#7faed2; font-size:11px; font-weight:800; }
.answer-player-head strong { display:block; color:#f0f5fa; font-size:24px; line-height:1.1; }
.answer-player-head div > span { display:block; margin-top:4px; color:#aebdca; font-size:14px; }
.answer-player-facts { display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); margin-top:18px; border-top:1px solid #293a4b; border-left:1px solid #293a4b; }
.answer-player-facts > div { min-width:0; padding:12px 13px; border-right:1px solid #293a4b; border-bottom:1px solid #293a4b; }
.answer-player-facts span, .answer-player-facts strong { display:block; }
.answer-player-facts span { color:#91a2b3; font-size:12px; }
.answer-player-facts strong { margin-top:5px; overflow-wrap:anywhere; color:#e8eef5; font-size:15px; }
@media (max-width:720px) { .answer-player { margin-top:18px; } .answer-player-facts { grid-template-columns:repeat(2, minmax(0, 1fr)); } .answer-player-head strong { font-size:22px; } }
/* Private room lobby and 2-4 player match layout. */
.room-setting-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.room-setting-grid .match-setting { display:block; min-width:0; margin:0 0 16px; }
.room-setting-grid .match-setting select { width:100%; margin-top:7px; }
.multiplayer-scoreboard { grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); align-items:stretch; }
.score-player em, .lobby-player em { padding:2px 5px; color:#a8d2f2; border:1px solid #47647d; font-size:10px; font-style:normal; font-weight:700; }
.score-player.ready { border-color:#47647d; }
.lobby-card { padding:24px; text-align:left; }
.lobby-head { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; margin-bottom:16px; }
.lobby-head h3 { margin:0 0 5px; font-size:21px; }
.lobby-head p { margin:0; font-size:13px; }
.lobby-head > strong { flex:none; padding:7px 10px; border:1px solid #47647d; color:#a8d2f2; font-size:14px; }
.lobby-players { display:grid; grid-template-columns:repeat(auto-fit,minmax(210px,1fr)); gap:8px; }
.lobby-player { min-width:0; min-height:58px; display:grid; grid-template-columns:36px minmax(0,1fr) auto; align-items:center; gap:10px; padding:10px 12px; border:1px solid #293a4b; background:#0e1822; }
.lobby-player.ready { border-color:#47647d; background:#132231; }
.lobby-player .badge { width:36px; height:36px; display:grid; place-items:center; color:#a8d2f2; background:#213141; font-weight:800; }
.lobby-player strong { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:14px; }
.lobby-player > span:last-child { color:#91a2b3; font-size:12px; }
.lobby-player.ready > span:last-child { color:#74c99b; }
.lobby-actions { display:flex; justify-content:flex-end; gap:8px; margin-top:16px; }
.lobby-actions .cta, .lobby-actions .secondary-cta { width:auto; min-width:150px; }
.lobby-actions button:disabled { cursor:not-allowed; opacity:.42; }
.lobby-card > p:last-child { margin:16px 0 0; }
@media (min-width:1500px) { .game-page main { width:min(1760px,calc(100% - 48px)); } }
@media (max-width:720px) {
  .room-setting-grid { grid-template-columns:1fr; gap:0; }
  .multiplayer-scoreboard { grid-template-columns:1fr; }
  .lobby-card { padding:18px 14px; }
  .lobby-head { align-items:stretch; flex-direction:column; gap:10px; }
  .lobby-head > strong { align-self:flex-start; }
  .lobby-players { grid-template-columns:1fr; }
  .lobby-actions { flex-direction:column; }
  .lobby-actions .cta, .lobby-actions .secondary-cta { width:100%; }
}
/* Terminal game states use one consistent answer/rematch modal. */
.game-result-overlay { position:fixed; z-index:45; inset:0; display:grid; place-items:center; padding:24px; background:#05090ddd; }
.game-result-dialog { width:min(940px,100%); max-height:calc(100vh - 48px); overflow:auto; padding:26px; border:1px solid #47647d; background:#101b26; text-align:center; }
.game-result-dialog.game-result-settling { width:min(520px,100%); }
.game-result-dialog > .step-label { margin-bottom:8px; }
.game-result-dialog > h3 { margin:0; color:#f0f5fa; font-size:27px; }
.game-result-dialog > p:not(.step-label):not(.rematch-note) { margin:12px 0 0; color:#91a2b3; font-size:14px; }
.game-result-dialog .answer-player { width:100%; margin-top:22px; }
.game-result-dialog #rematch, .game-result-dialog #newSingle { width:auto; min-width:180px; margin:20px auto 0; }
.game-result-dialog #rematch:disabled { cursor:wait; opacity:.55; }
@media (max-width:720px) {
  .game-result-overlay { align-items:end; padding:10px; }
  .game-result-dialog { max-height:calc(100vh - 20px); padding:20px 14px; }
  .game-result-dialog > h3 { font-size:23px; }
  .game-result-dialog #rematch, .game-result-dialog #newSingle { width:100%; }
}
