:root {
  --ink: #17231f;
  --ink-soft: #31403a;
  --paper: #f3f0e8;
  --paper-strong: #fffdf7;
  --line: #d9d4c8;
  --muted: #746f65;
  --orange: #f0642d;
  --orange-deep: #ce4620;
  --lime: #d9f65a;
  --blue: #b9d8ff;
  --shadow: 0 20px 60px rgba(23, 35, 31, .12);
  font-family: "DM Sans", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body { min-width: 320px; overflow-x: hidden; background: var(--paper); }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
[hidden] { display: none !important; }
.app-shell { min-height: 100dvh; display: grid; grid-template-columns: 238px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; padding: 28px 20px 22px; color: #f7f3e9; background: var(--ink); }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand > span:last-child { display: grid; }
.brand strong { font: 800 17px/1 "Manrope", sans-serif; letter-spacing: .09em; }
.brand small { margin-top: 4px; color: #98a39e; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.brand-mark { width: 36px; height: 36px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 3px; padding: 7px; border-radius: 11px; background: var(--lime); transform: rotate(-3deg); }
.brand-mark i { border-radius: 50%; background: var(--ink); }
.primary-nav { display: grid; gap: 5px; margin-top: 56px; }
.nav-item { width: 100%; min-height: 43px; display: flex; align-items: center; gap: 12px; padding: 0 12px; border: 0; border-radius: 10px; color: #aeb8b3; background: transparent; cursor: pointer; text-align: left; font-size: 13px; font-weight: 600; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav-item.active { color: var(--ink); background: var(--lime); }
.nav-icon { width: 21px; font-size: 18px; text-align: center; }
.sidebar-foot { display: grid; gap: 13px; margin-top: auto; }
.season-card { display: grid; padding: 16px; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; background: rgba(255,255,255,.045); }
.season-card span, .season-card small { color: #94a19b; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.season-card strong { margin: 9px 0 3px; font: 800 30px/1 "Manrope", sans-serif; }
.textxt-link { display: flex; justify-content: space-between; padding: 8px 4px; color: #9aa59f; text-decoration: none; font-size: 12px; }
.textxt-link:hover { color: #fff; }
.main-shell { min-width: 0; min-height: 100dvh; }
.topbar { height: 78px; display: flex; align-items: center; gap: 18px; padding: 0 clamp(24px, 4vw, 62px); border-bottom: 1px solid var(--line); }
.presence { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; }
.presence span { width: 7px; height: 7px; border-radius: 50%; background: #c1bbae; }
.presence.online span { background: #47a979; box-shadow: 0 0 0 4px rgba(71,169,121,.12); }
.presence b { font-weight: 600; }
.topbar-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.quiet-button { height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.34); cursor: pointer; font-size: 12px; font-weight: 700; }
.quiet-button:hover { background: #fff; }
.mobile-brand { display: none; }
.content-view { display: none; width: min(1260px, 100%); margin: 0 auto; padding: 52px clamp(24px, 4vw, 62px) 80px; }
.content-view.active { display: block; animation: view-in .25s ease both; }
@keyframes view-in { from { opacity: 0; transform: translateY(5px); } }
.hero { min-height: 390px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, .8fr); overflow: hidden; border: 1px solid #cfc9bc; border-radius: 25px; background: var(--paper-strong); box-shadow: var(--shadow); }
.hero-copy { align-self: center; padding: clamp(34px, 5vw, 70px); }
.eyebrow { margin: 0 0 12px; color: var(--orange-deep); font: 800 10px/1.2 "Manrope", sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.hero h1, .page-heading h1 { max-width: 680px; margin: 0; font: 800 clamp(42px, 6vw, 74px)/.98 "Manrope", sans-serif; letter-spacing: -.055em; }
.hero-description { max-width: 510px; margin: 22px 0 0; color: var(--muted); font-size: 15px; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 25px; padding: 0 18px; border: 1px solid transparent; border-radius: 11px; cursor: pointer; font-size: 12px; font-weight: 800; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:disabled { cursor: not-allowed; opacity: .48; }
.button-primary { color: #fff; background: var(--orange); box-shadow: 0 9px 22px rgba(240,100,45,.22); }
.button-primary:hover:not(:disabled) { background: var(--orange-deep); }
.button-secondary { border-color: var(--line); background: transparent; }
.button-secondary:hover { background: #fff; }
.button-dark { color: #fff; background: var(--ink); }
.button-danger { color: #9d311d; border-color: #e8c4b9; background: #fff4ee; }
.button-full { width: 100%; }
.hero-art { position: relative; min-height: 390px; overflow: hidden; background: var(--ink); }
.hero-art::after { position: absolute; inset: 0; content: ""; background: radial-gradient(circle at 60% 35%, rgba(217,246,90,.14), transparent 42%); }
.hero-board { position: absolute; width: 350px; height: 350px; left: 50%; top: 44%; border: 1px solid rgba(255,255,255,.14); background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px); background-size: 50px 50px; transform: translate(-50%,-50%) rotate(-8deg); }
.piece { position: absolute; z-index: 2; width: 34px; height: 34px; display: grid; place-items: center; transform: rotate(8deg); }
.piece-x { color: var(--lime); font: 500 42px/1 "Manrope"; }
.piece-o { border: 6px solid var(--orange); border-radius: 50%; }
.piece.one { left: 67px; top: 64px; }.piece.two { left: 165px; top: 113px; }.piece.three { left: 215px; top: 163px; }.piece.four { left: 115px; top: 213px; }.piece.five { left: 265px; top: 263px; }
.rating-ticket { position: absolute; z-index: 3; right: 26px; bottom: 24px; display: grid; min-width: 170px; padding: 15px 17px; border-radius: 13px; color: var(--ink); background: var(--lime); box-shadow: 0 14px 35px rgba(0,0,0,.25); }
.rating-ticket small, .rating-ticket span { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.rating-ticket strong { margin: 5px 0; font: 800 27px/1 "Manrope"; }
.section-block { margin-top: 58px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.section-heading h2 { margin: 0; font: 800 27px/1.1 "Manrope"; letter-spacing: -.04em; }
.section-heading > p { max-width: 380px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; text-align: right; }
.active-room-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.active-room { display: flex; align-items: center; gap: 15px; padding: 15px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.46); cursor: pointer; text-align: left; }
.active-room:hover { border-color: #aca597; background: #fff; }
.active-room-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: var(--lime); background: var(--ink); font: 700 26px/1 "Manrope"; }
.active-room-copy { min-width: 0; display: grid; gap: 3px; }
.active-room-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.active-room-copy span { color: var(--muted); font-size: 11px; }
.active-room-arrow { margin-left: auto; }
.game-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.game-card { min-height: 245px; display: flex; flex-direction: column; padding: 18px; overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: rgba(255,255,255,.56); }
.game-card.live { cursor: pointer; }
.game-card.live:hover { border-color: #aaa295; box-shadow: 0 12px 30px rgba(23,35,31,.08); transform: translateY(-2px); }
.game-visual { position: relative; height: 116px; margin: -2px -2px 17px; overflow: hidden; border-radius: 12px; background: #ded9cd; }
.game-card:nth-child(1) .game-visual { color: var(--lime); background: var(--ink); }
.game-card:nth-child(2) .game-visual { color: var(--ink); background: var(--blue); }
.game-card:nth-child(3) .game-visual { color: var(--ink); background: var(--lime); }
.game-card:nth-child(4) .game-visual { color: #fff; background: var(--orange); }
.game-symbol { position: absolute; right: 15px; bottom: -16px; font: 800 92px/1 "Manrope"; letter-spacing: -.08em; }
.game-card h3 { margin: 0; font: 800 17px/1.2 "Manrope"; }
.game-card p { min-height: 36px; margin: 7px 0 14px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.game-meta { display: flex; align-items: center; justify-content: space-between; margin-top: auto; font-size: 10px; font-weight: 700; }
.game-meta span:first-child { color: var(--muted); }
.status-pill { padding: 5px 8px; border-radius: 999px; color: #296348; background: #def2e5; }
.status-pill.soon { color: #7d766b; background: #e8e3d8; }
.page-heading { padding: 24px 0 42px; border-bottom: 1px solid var(--line); }
.page-heading h1 { font-size: clamp(42px, 5vw, 65px); }
.page-heading > p:last-child { max-width: 540px; margin: 18px 0 0; color: var(--muted); }
.history-list { display: grid; margin-top: 25px; border-top: 1px solid var(--line); }
.history-row { display: grid; grid-template-columns: 90px minmax(0,1fr) auto auto; align-items: center; gap: 20px; min-height: 82px; padding: 15px 8px; border-bottom: 1px solid var(--line); }
.result-label { font: 800 11px/1 "Manrope"; letter-spacing: .09em; text-transform: uppercase; }
.result-label.win { color: #267651; }.result-label.loss { color: #b74427; }.result-label.draw { color: #766e61; }
.history-opponent { display: grid; gap: 4px; }.history-opponent strong { font-size: 14px; }.history-opponent span, .history-date { color: var(--muted); font-size: 11px; }
.rating-delta { min-width: 46px; font: 800 13px/1 "Manrope"; text-align: right; }.rating-delta.positive { color: #267651; }.rating-delta.negative { color: #b74427; }
.empty-state { padding: 60px 20px; color: var(--muted); text-align: center; }
.ranking-shell { margin-top: 30px; }
.ranking-podium { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-bottom: 26px; }
.podium-card { min-height: 138px; display: grid; align-content: end; padding: 18px; border-radius: 16px; background: #ded8cc; }
.podium-card:first-child { color: #fff; background: var(--ink); }.podium-card:nth-child(2) { background: var(--lime); }.podium-card:nth-child(3) { background: var(--blue); }
.podium-card small { margin-bottom: auto; font-weight: 800; }.podium-card strong { overflow: hidden; font: 800 17px/1.2 "Manrope"; text-overflow: ellipsis; white-space: nowrap; }.podium-card span { margin-top: 6px; font-size: 11px; }
.ranking-table { display: grid; border-top: 1px solid var(--line); }
.ranking-row { display: grid; grid-template-columns: 45px minmax(0,1fr) 90px 80px; align-items: center; gap: 12px; min-height: 62px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.ranking-row.me { border-radius: 10px; background: #fff; }
.ranking-rank { color: var(--muted); font: 800 12px/1 "Manrope"; }.ranking-player { display: grid; }.ranking-player small { color: var(--muted); }.ranking-value { font-weight: 800; text-align: right; }
.room-view { width: 100%; max-width: 1500px; padding-top: 30px; }
.room-header { display: grid; grid-template-columns: 44px minmax(0,1fr) auto; align-items: center; gap: 15px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.icon-button { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.45); cursor: pointer; font-size: 20px; }
.icon-button:hover { background: #fff; }
.room-title p { margin: 0 0 4px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .12em; }.room-title h1 { margin: 0; font: 800 23px/1.15 "Manrope"; }
.room-share { display: flex; align-items: center; gap: 8px; }
.room-code { display: grid; min-height: 47px; padding: 7px 13px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; text-align: left; }.room-code small { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .1em; }.room-code strong { margin-top: 2px; font: 800 15px/1 "Manrope"; letter-spacing: .14em; }
.match-layout { display: grid; grid-template-columns: minmax(0,1fr) 310px; gap: 28px; padding-top: 26px; }
.board-column { min-width: 0; }
.versus-strip { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; gap: 15px; margin-bottom: 14px; }
.player-seat { min-width: 0; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.42); }.player-seat.o { flex-direction: row-reverse; text-align: right; }.player-seat.current { border-color: var(--orange); box-shadow: inset 0 0 0 1px var(--orange); }.player-mark { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; color: var(--lime); background: var(--ink); font: 800 25px/1 "Manrope"; }.player-seat.o .player-mark { color: #fff; background: var(--orange); border-radius: 50%; }.player-copy { min-width: 0; display: grid; gap: 2px; }.player-copy strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }.player-copy span { color: var(--muted); font-size: 9px; }.versus { color: var(--muted); font: 800 10px/1 "Manrope"; letter-spacing: .1em; }
.board-stage { position: relative; max-height: min(72dvh, 760px); overflow: auto; padding: 18px; border: 1px solid #c9c2b5; border-radius: 18px; background: #e5dfd2; overscroll-behavior: contain; scrollbar-width: thin; }
.caro-board { --cell: clamp(34px, 3.1vw, 43px); width: calc(var(--board-size, 15) * var(--cell)); height: calc(var(--board-size, 15) * var(--cell)); display: grid; grid-template-columns: repeat(var(--board-size, 15), var(--cell)); grid-template-rows: repeat(var(--board-size, 15), var(--cell)); margin: auto; overflow: hidden; border: 2px solid var(--ink); border-radius: 8px; background: #efe8d8; box-shadow: 0 16px 35px rgba(23,35,31,.16); }
.board-cell { position: relative; display: grid; place-items: center; padding: 0; border: 0; border-right: 1px solid rgba(23,35,31,.24); border-bottom: 1px solid rgba(23,35,31,.24); background: transparent; cursor: pointer; }
.board-cell:disabled { cursor: default; }.board-cell.can-play:hover::after { width: 14px; height: 14px; border-radius: 50%; background: rgba(240,100,45,.3); content: ""; }.board-cell.last { background: rgba(217,246,90,.44); }.board-cell.win { background: rgba(240,100,45,.18); }
.stone { width: 72%; height: 72%; display: grid; place-items: center; animation: stone-in .16s ease both; }.stone.x { color: var(--ink); font: 700 calc(var(--cell) * .82)/1 "Manrope"; }.stone.o { width: 59%; height: 59%; border: max(3px, calc(var(--cell) * .11)) solid var(--orange); border-radius: 50%; }
@keyframes stone-in { from { opacity: 0; transform: scale(.6); } }
.board-overlay { position: absolute; inset: 18px; z-index: 3; display: grid; place-items: center; padding: 25px; border-radius: 9px; color: #fff; background: rgba(23,35,31,.86); backdrop-filter: blur(6px); text-align: center; }.board-overlay strong { display: block; font: 800 29px/1.05 "Manrope"; }.board-overlay span { display: block; max-width: 340px; margin-top: 9px; color: #cbd2ce; font-size: 12px; line-height: 1.5; }
.board-hint { margin: 12px 3px 0; color: var(--muted); font-size: 10px; text-align: center; }
.match-panel { display: grid; align-content: start; gap: 11px; }
.match-status-card, .rules-card, .move-card { border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.52); }
.match-status-card { padding: 19px; }.match-status-card h2 { margin: 0; font: 800 20px/1.15 "Manrope"; letter-spacing: -.03em; }.match-status-card > p:not(.eyebrow) { margin: 9px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.turn-clock { display: flex; align-items: end; justify-content: space-between; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }.turn-clock span { color: var(--muted); font-size: 10px; }.turn-clock strong { font: 800 25px/1 "Manrope"; font-variant-numeric: tabular-nums; }
.room-actions { display: grid; grid-template-columns: 1fr; gap: 7px; }.room-actions .button { width: 100%; }
.rules-card { display: grid; grid-template-columns: repeat(3,1fr); padding: 13px; }.rules-card div { min-width: 0; display: grid; gap: 4px; padding: 0 8px; border-right: 1px solid var(--line); }.rules-card div:last-child { border: 0; }.rules-card span { color: var(--muted); font-size: 8px; text-transform: uppercase; }.rules-card strong { font-size: 10px; line-height: 1.3; }
.move-card { overflow: hidden; }.move-card-head { display: flex; justify-content: space-between; padding: 13px 15px; border-bottom: 1px solid var(--line); font-size: 10px; }.move-card-head span { color: var(--muted); }.move-card ol { max-height: 170px; overflow: auto; margin: 0; padding: 12px 15px 13px 35px; color: var(--muted); font-size: 10px; line-height: 1.8; }
.auth-gate { min-height: calc(100dvh - 78px); display: grid; place-items: center; align-content: center; padding: 40px 24px 100px; text-align: center; }.auth-gate h1 { max-width: 620px; margin: 0; font: 800 clamp(40px,7vw,72px)/.98 "Manrope"; letter-spacing: -.055em; }.auth-gate > p:not(.eyebrow) { max-width: 450px; margin: 20px 0 28px; color: var(--muted); line-height: 1.6; }.gate-art { width: 150px; display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }.gate-art span { font: 500 38px/1 "Manrope"; }.gate-art i { width: 23px; height: 23px; border: 5px solid var(--orange); border-radius: 50%; }.gate-art span:first-child { color: var(--ink); }.gate-art span:nth-child(3) { color: #739826; }
.modal-backdrop { position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center; padding: 20px; background: rgba(23,35,31,.64); backdrop-filter: blur(8px); }
.modal { width: min(520px,100%); max-height: min(760px,92dvh); overflow: auto; padding: 24px; border: 1px solid rgba(255,255,255,.4); border-radius: 20px; background: var(--paper-strong); box-shadow: 0 30px 90px rgba(0,0,0,.32); }.modal-compact { width: min(420px,100%); }.modal header { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }.modal h2 { margin: 0; font: 800 25px/1.1 "Manrope"; letter-spacing: -.04em; }.modal form { display: grid; gap: 15px; }
.field { display: grid; gap: 7px; }.field > span { color: var(--muted); font-size: 10px; font-weight: 700; }.field input, .field select { width: 100%; height: 46px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: #fff; outline: none; }.field input:focus, .field select:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(240,100,45,.1); }.field-row { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }.code-input { font: 800 22px/1 "Manrope" !important; letter-spacing: .18em; text-transform: uppercase; }
.choice-row { display: flex; align-items: start; gap: 10px; padding: 13px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }.choice-row input { margin-top: 3px; accent-color: var(--orange); }.choice-row span { display: grid; gap: 3px; }.choice-row strong { font-size: 11px; }.choice-row small { color: var(--muted); font-size: 9px; line-height: 1.4; }
.toast { position: fixed; z-index: 5000; right: 22px; bottom: 22px; max-width: min(390px,calc(100vw - 30px)); padding: 12px 15px; border-radius: 10px; color: #fff; background: var(--ink); box-shadow: var(--shadow); font-size: 11px; font-weight: 700; }.toast.error { background: #9e3e28; }
.mobile-nav { display: none; }
@media (max-width: 1050px) {
  .game-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .hero { grid-template-columns: minmax(0,1.1fr) minmax(300px,.9fr); }
  .match-layout { grid-template-columns: minmax(0,1fr) 270px; gap: 18px; }
}
@media (max-width: 820px) {
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .app-shell { display: block; }.sidebar { display: none; }
  .topbar { height: 54px; padding: 0 12px; background: rgba(243,240,232,.92); backdrop-filter: blur(15px); }
  .mobile-brand { display: flex; align-items: center; gap: 7px; padding: 0; border: 0; background: transparent; }.mobile-brand .brand-mark { width: 28px; height: 28px; padding: 6px; border-radius: 8px; }.mobile-brand strong { font: 800 12px/1 "Manrope"; letter-spacing: .08em; }
  .presence { display: none; }.quiet-button { display: none; }
  .content-view { padding: 14px 12px 42px; }
  .hero { min-height: 0; display: block; border-radius: 17px; }
  .hero-copy { padding: 19px 18px 17px; }.hero-copy .eyebrow { margin-bottom: 7px; font-size: 8px; }.hero h1 { font-size: 35px; line-height: .96; }.hero-description { display: -webkit-box; margin-top: 10px; overflow: hidden; font-size: 11px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }.hero-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; margin-top: 14px; }.hero-actions .button { width: 100%; min-height: 40px; gap: 8px; padding-inline: 9px; font-size: 10px; }
  .hero-art { min-height: 105px; }.hero-board { width: 190px; height: 190px; left: 24%; top: 40%; background-size: 27px 27px; }.piece { width: 22px; height: 22px; }.piece-x { font-size: 28px; }.piece-o { border-width: 4px; }.piece.one { left: 36px; top: 34px; }.piece.two { left: 88px; top: 60px; }.piece.three { left: 114px; top: 86px; }.piece.four { left: 62px; top: 112px; }.piece.five { left: 140px; top: 138px; }
  .rating-ticket { right: 12px; bottom: 10px; min-width: 132px; padding: 10px 12px; border-radius: 10px; }.rating-ticket small, .rating-ticket span { font-size: 7px; }.rating-ticket strong { margin: 3px 0; font-size: 21px; }
  .section-block { margin-top: 24px; }.section-heading { align-items: start; margin-bottom: 12px; }.section-heading .eyebrow { margin-bottom: 6px; }.section-heading h2 { font-size: 22px; }.section-heading > p { display: none; }.game-grid, .active-room-list { grid-template-columns: 1fr; }
  .game-card { min-height: 122px; display: grid; grid-template-columns: 92px minmax(0,1fr); grid-template-rows: auto 1fr auto; column-gap: 13px; padding: 11px; }.game-visual { width: 92px; height: 100px; grid-row: 1/4; margin: 0; }.game-symbol { right: 10px; bottom: -10px; font-size: 70px; }.game-card h3 { align-self: end; font-size: 15px; }.game-card p { min-height: 0; margin: 5px 0 7px; font-size: 10px; line-height: 1.35; }.game-meta { font-size: 9px; }
  .page-heading { padding-top: 8px; }.page-heading h1 { font-size: 45px; }
  .history-row { grid-template-columns: 70px minmax(0,1fr) auto; gap: 10px; }.history-date { display: none; }
  .ranking-podium { grid-template-columns: 1fr; }.podium-card { min-height: 100px; }.ranking-row { grid-template-columns: 35px minmax(0,1fr) 70px; }.ranking-row > :last-child { display: none; }
  body.room-open { padding-bottom: env(safe-area-inset-bottom); }
  body.room-open .topbar { display: none; }
  .room-view { padding: 0 12px 18px; }
  .room-header { min-height: 54px; grid-template-columns: 34px minmax(0,1fr) auto; gap: 9px; margin-inline: -12px; padding: 7px 12px; border-bottom: 1px solid var(--line); background: rgba(243,240,232,.94); backdrop-filter: blur(15px); }.room-header .icon-button { width: 34px; height: 34px; border-radius: 9px; font-size: 17px; }.room-title p { display: none; }.room-title h1 { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }.room-share { gap: 5px; }.room-code { min-height: 34px; padding: 5px 8px; border-radius: 8px; }.room-code small { display: none; }.room-code strong { margin: 0; font-size: 10px; letter-spacing: .1em; }.room-share .button { min-height: 34px; gap: 0; padding-inline: 9px; border-radius: 8px; font-size: 9px; }
  .match-layout { display: flex; flex-direction: column; gap: 8px; padding-top: 8px; }.board-column, .match-panel { display: contents; }.rules-card, .move-card { display: none; }
  .match-status-card { order: 1; min-height: 49px; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 2px 10px; padding: 8px 11px; border-radius: 11px; }.match-status-card .eyebrow { grid-column: 1; margin: 0; font-size: 7px; }.match-status-card h2 { grid-column: 1; font-size: 14px; }.match-status-card > p:not(.eyebrow) { display: none; }.turn-clock { grid-column: 2; grid-row: 1/3; display: grid; justify-items: end; margin: 0; padding: 0; border: 0; }.turn-clock span { font-size: 7px; }.turn-clock strong { font-size: 19px; }
  .room-actions { order: 2; grid-template-columns: repeat(auto-fit,minmax(88px,1fr)); gap: 5px; }.room-actions .button { min-height: 38px; gap: 5px; padding-inline: 8px; font-size: 9px; }.room-actions .button:only-child { grid-column: 1/-1; }
  .versus-strip { order: 3; gap: 7px; margin: 0; }.player-seat { padding: 6px 7px; border-radius: 10px; }.player-mark { width: 29px; height: 29px; border-radius: 8px; font-size: 21px; }.versus { font-size: 7px; }
  .board-stage { order: 4; max-height: calc(100dvh - 174px); margin-inline: -12px; padding: 12px; border-inline: 0; border-radius: 0; }.caro-board { --cell: 35px; margin: 0; }.board-overlay { inset: 12px; position: sticky; width: calc(100vw - 24px); height: 220px; margin-top: -220px; }
  .board-hint { order: 5; margin-top: 0; }
  body[data-room-status="active"] .room-actions { order: 5; }
  body[data-room-status="active"] .board-hint { order: 6; }
  .mobile-nav { position: fixed; z-index: 1800; left: 10px; right: 10px; bottom: max(8px,env(safe-area-inset-bottom)); height: 58px; display: grid; grid-template-columns: repeat(3,1fr); padding: 4px; border: 1px solid rgba(255,255,255,.12); border-radius: 16px; color: #9ca8a2; background: rgba(23,35,31,.95); box-shadow: 0 15px 40px rgba(0,0,0,.25); backdrop-filter: blur(16px); }.mobile-nav button { display: grid; place-items: center; align-content: center; gap: 2px; border: 0; border-radius: 12px; color: inherit; background: transparent; font-size: 9px; font-weight: 700; }.mobile-nav button span { font-size: 16px; }.mobile-nav button.active { color: var(--ink); background: var(--lime); }
  body.room-open .mobile-nav { display: none; }
  .modal-backdrop { align-items: end; padding: 0; }.modal { width: 100%; max-height: 90dvh; padding: 21px 18px calc(24px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; }
  .toast { right: 15px; bottom: calc(74px + env(safe-area-inset-bottom)); }
  body.room-open .toast { bottom: 15px; }
  .auth-gate { min-height: calc(100dvh - 62px); padding-bottom: 100px; }
}
@media (max-width: 430px) {
  .field-row { grid-template-columns: 1fr; }.room-actions { grid-template-columns: repeat(auto-fit,minmax(88px,1fr)); }.room-actions .button { grid-column: auto; }
  .player-seat { gap: 6px; }.player-copy span { display: none; }.player-mark { flex: 0 0 auto; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
