:root {
  --ink: #102033;
  --ink-2: #24364b;
  --navy: #101c2c;
  --teal: #17c8a4;
  --teal-dark: #0fa98a;
  --cream: #f6f3ea;
  --paper: #fffdf8;
  --line: #dfe5e6;
  --muted: #71808e;
  --orange: #ff805d;
  --yellow: #ffc95b;
  --shadow: 0 20px 60px rgba(20, 39, 57, .13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -60px; left: 16px; z-index: 100; background: white; color: var(--ink); padding: 10px 16px; border-radius: 6px; }
.skip-link:focus { top: 12px; }

.site-header { height: 76px; padding: 0 max(24px, calc((100vw - 1240px) / 2)); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.13); background: var(--navy); color: white; position: relative; z-index: 10; }
.brand { display: flex; gap: 11px; align-items: center; color: white; text-decoration: none; font-size: 18px; font-weight: 900; letter-spacing: .05em; }
.brand-mark { width: 31px; height: 31px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 5px; border-radius: 9px; background: var(--teal); transform: rotate(-3deg); }
.brand-mark i { display: block; border-radius: 50%; background: var(--navy); }
.brand-mark i:nth-child(2), .brand-mark i:nth-child(3) { background: white; }
.header-actions { display: flex; gap: 18px; align-items: center; }
.server-status { display: flex; align-items: center; gap: 8px; color: #a9b7c3; font-size: 12px; font-weight: 700; }
.server-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(23,200,164,.12); }
.language-picker select { color: white; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); border-radius: 8px; padding: 8px 32px 8px 12px; font-size: 12px; font-weight: 700; cursor: pointer; }
.language-picker option { color: var(--ink); }

.hero-shell { min-height: 615px; background: var(--navy); color: white; display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; overflow: hidden; padding: 64px max(24px, calc((100vw - 1240px) / 2)) 86px; }
.hero-copy { position: relative; z-index: 2; max-width: 630px; }
.eyebrow, .kicker { color: var(--teal); font-size: 11px; line-height: 1; letter-spacing: .17em; font-weight: 900; }
.eyebrow { display: flex; align-items: center; gap: 10px; }
.eyebrow > span:first-child { width: 24px; height: 2px; background: var(--teal); }
.hero-copy h1 { font-size: clamp(54px, 6vw, 88px); line-height: .96; margin: 24px 0 26px; letter-spacing: -.055em; }
.hero-copy h1 em { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; color: var(--teal); }
.hero-copy > p { max-width: 540px; color: #b5c0ca; font-size: 17px; line-height: 1.75; margin: 0; }
.hero-actions { margin-top: 36px; display: flex; align-items: center; gap: 26px; }
.primary-btn, .outline-btn, .play-btn, .online-btn, .text-btn { border: 0; cursor: pointer; font-weight: 800; transition: transform .2s, background .2s, border-color .2s, color .2s; }
.primary-btn { background: var(--teal); color: var(--navy); border-radius: 8px; min-height: 50px; padding: 0 19px; display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; box-shadow: 0 8px 26px rgba(23,200,164,.18); }
.primary-btn:hover { background: #32dab8; transform: translateY(-2px); }
.text-btn { background: transparent; color: inherit; padding: 8px 0; display: inline-flex; gap: 12px; align-items: center; }
.hero-actions .text-btn { color: #d9e0e5; }
.text-btn:hover { color: var(--teal); }
.quick-facts { display: flex; margin-top: 44px; }
.quick-facts > span { min-width: 112px; display: flex; flex-direction: column; padding: 0 23px; border-left: 1px solid rgba(255,255,255,.16); }
.quick-facts > span:first-child { padding-left: 0; border: 0; }
.quick-facts b { font-size: 15px; }
.quick-facts small { font-size: 11px; color: #75889a; margin-top: 4px; }

.hero-board { height: 440px; position: relative; perspective: 1200px; }
.hero-board::before { content: ''; position: absolute; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle, rgba(23,200,164,.12), transparent 65%); top: -5px; left: 50px; }
.orbit { position: absolute; border: 1px solid rgba(255,255,255,.09); border-radius: 50%; }
.orbit-one { width: 430px; height: 430px; top: 5px; left: 70px; }
.orbit-two { width: 300px; height: 300px; top: 70px; left: 135px; }
.showcase-card { position: absolute; border-radius: 14px; box-shadow: 0 26px 60px rgba(0,0,0,.38); }
.back-card { width: 300px; height: 300px; background: #d9b678; left: 26px; top: 46px; transform: rotate(-11deg); opacity: .52; }
.omok-mini { width: 100%; height: 100%; background-image: linear-gradient(#7d6845 1px, transparent 1px), linear-gradient(90deg,#7d6845 1px, transparent 1px); background-size: 30px 30px; background-position: 15px 15px; }
.front-card { width: 350px; height: 400px; background: #f1e6ce; right: 8px; top: 18px; transform: rotate(5deg); padding: 21px; color: var(--navy); }
.showcase-label { font-size: 9px; font-weight: 900; letter-spacing: .17em; }
.showcase-chess { margin-top: 14px; display: grid; grid-template-columns: repeat(4, 1fr); background: #e5c98f; border: 4px solid #20354a; }
.showcase-chess span { aspect-ratio: 1; display: grid; place-items: center; font-family: Georgia, serif; font-size: 36px; background: #f1dfb8; }
.showcase-chess span:nth-child(odd) { background: #73938d; }
.showcase-turn { display: flex; align-items: center; margin-top: 18px; gap: 9px; font-size: 11px; font-weight: 800; }
.showcase-turn i { width: 8px; height: 8px; background: var(--teal); border-radius: 50%; }
.showcase-turn b { margin-left: auto; font-size: 13px; }
.floating-chip { position: absolute; z-index: 4; display: flex; gap: 10px; align-items: center; background: white; color: var(--ink); border-radius: 9px; padding: 10px 14px; box-shadow: 0 13px 28px rgba(0,0,0,.23); font-size: 18px; font-weight: 900; }
.floating-chip span { font-size: 9px; letter-spacing: .13em; }
.chip-one { top: 35px; right: -22px; transform: rotate(-5deg); }
.chip-two { bottom: 35px; left: 58px; transform: rotate(4deg); color: #111; }
.chip-two > span { color: var(--ink); }

.games-section { max-width: 1240px; margin: 0 auto; padding: 88px 24px 96px; }
.section-heading { display: grid; grid-template-columns: 1fr 410px; gap: 40px; align-items: end; margin-bottom: 41px; }
.section-heading h2 { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(34px, 4vw, 50px); font-weight: 400; letter-spacing: -.035em; margin: 10px 0 0; }
.section-heading > p { color: var(--muted); line-height: 1.65; font-size: 14px; margin: 0; }
.game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.game-card { background: var(--paper); border: 1px solid #e3e4df; border-radius: 13px; padding: 22px; box-shadow: 0 4px 0 rgba(16,32,51,.025); transition: transform .25s, box-shadow .25s; }
.game-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card-topline { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.game-number { font-family: Georgia, serif; color: #9ba5a8; font-size: 12px; }
.difficulty { display: flex; gap: 7px; align-items: center; font-size: 8px; font-weight: 900; letter-spacing: .12em; color: #728086; }
.difficulty i { width: 5px; height: 5px; border-radius: 50%; background: var(--teal); }
.game-visual { height: 214px; border-radius: 8px; position: relative; overflow: hidden; margin-bottom: 24px; }
.omok-visual { background: #d8b273; }
.omok-lines, .janggi-lines { position: absolute; inset: 22px; background-image: linear-gradient(rgba(75,52,26,.45) 1px,transparent 1px), linear-gradient(90deg,rgba(75,52,26,.45) 1px,transparent 1px); background-size: 34px 34px; }
.stone { position: absolute; width: 26px; height: 26px; border-radius: 50%; box-shadow: 0 6px 8px rgba(30,22,10,.26); }
.stone.black { background: radial-gradient(circle at 35% 30%, #596069, #111a22 65%); }
.stone.white { background: radial-gradient(circle at 35% 30%, #fff, #dfe2dc 70%); }
.stone.s1 { left: calc(50% - 13px); top: calc(50% - 13px); }.stone.s2 { left: calc(50% + 21px); top: calc(50% - 47px); }.stone.s3 { left: calc(50% - 47px); top: calc(50% + 21px); }.stone.s4 { left: calc(50% - 13px); top: calc(50% + 21px); }.stone.s5 { left: calc(50% + 21px); top: calc(50% + 21px); }
.janggi-visual { background: #dcc79a; }
.janggi-lines { inset: 16px 24px; background-size: 42px 36px; }
.janggi-visual::after { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 24px; transform: translateY(-50%); background: #dcc79a; border-top: 1px solid rgba(75,52,26,.4); border-bottom: 1px solid rgba(75,52,26,.4); }
.janggi-piece { position: absolute; z-index: 2; width: 44px; height: 44px; display: grid; place-items: center; background: #f1dfb9; border: 3px solid currentColor; box-shadow: inset 0 0 0 2px #f1dfb9, inset 0 0 0 3px currentColor, 0 5px 10px rgba(51,38,20,.2); font-style: normal; font-family: Georgia, serif; font-weight: 900; }
.janggi-piece.red { color: #c64f3f; left: 22%; top: 20%; }.janggi-piece.blue { color: #287786; right: 20%; bottom: 17%; transform: rotate(5deg); }.janggi-piece.tan { color: #a35839; left: 45%; top: 40%; transform: rotate(-5deg); }
.chess-visual { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); background: #8aa39e; }
.chess-visual span { display: grid; place-items: center; font-family: Georgia, serif; font-size: 47px; background: #e9d7af; color: #172739; }
.chess-visual span:nth-child(even) { background: #66877f; color: #f9f1df; }
.game-card h3 { font-family: Georgia, 'Times New Roman', serif; font-size: 29px; font-weight: 500; margin: 0 0 7px; }
.game-card > p { color: var(--muted); margin: 0 0 23px; font-size: 13px; }
.card-actions { display: grid; grid-template-columns: 1.25fr 1fr; gap: 9px; }
.play-btn, .online-btn { height: 45px; border-radius: 7px; font-size: 11px; }
.play-btn { display: flex; justify-content: space-between; align-items: center; padding: 0 15px; background: var(--navy); color: white; }
.play-btn:hover { background: #1c324a; }
.online-btn { background: transparent; border: 1px solid #d7dddd; color: var(--ink-2); }
.online-btn i { display: inline-block; width: 6px; height: 6px; background: var(--teal); border-radius: 50%; margin-right: 7px; }
.online-btn:hover { border-color: var(--teal); }
.bottom-strip { height: 51px; background: var(--navy); color: #8fa0af; display: flex; gap: 40px; align-items: center; justify-content: center; font-size: 8px; letter-spacing: .16em; font-weight: 900; }
.bottom-strip i { width: 3px; height: 3px; border-radius: 50%; background: var(--teal); }

.subpage-shell, .game-shell { max-width: 1180px; margin: 0 auto; padding: 42px 24px 80px; }
#lobby-view { min-height: calc(100vh - 76px); background: linear-gradient(135deg, var(--cream), #eef5f1); }
.back-link { border: 0; background: transparent; cursor: pointer; color: var(--muted); padding: 6px 0; font-size: 12px; font-weight: 800; }
.back-link:hover { color: var(--ink); }
.lobby-layout { display: grid; grid-template-columns: 1fr 430px; gap: 80px; align-items: center; min-height: 560px; }
.lobby-copy h1 { font-family: Georgia, serif; font-size: clamp(48px, 6vw, 78px); letter-spacing: -.05em; font-weight: 400; margin: 14px 0 20px; }
.lobby-copy > p { max-width: 520px; color: var(--muted); font-size: 16px; line-height: 1.7; }
.selected-game-pill { display: inline-flex; align-items: center; gap: 12px; margin-top: 30px; padding: 10px 12px; border: 1px solid var(--line); background: rgba(255,255,255,.6); border-radius: 9px; }
.selected-game-pill > span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 6px; background: var(--navy); color: var(--teal); }
.selected-game-pill button { border: 0; border-left: 1px solid var(--line); padding-left: 12px; background: transparent; color: var(--muted); font-size: 11px; cursor: pointer; }
.lobby-panel { background: white; border: 1px solid var(--line); border-radius: 15px; box-shadow: var(--shadow); padding: 34px; }
.lobby-panel label { display: block; margin-bottom: 18px; }
.lobby-panel label > span { display: block; margin-bottom: 8px; font-size: 11px; font-weight: 900; color: var(--ink-2); }
.lobby-panel input { width: 100%; height: 50px; border: 1px solid #ced7d7; border-radius: 8px; padding: 0 14px; outline: none; background: #fbfcfa; }
.lobby-panel input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(23,200,164,.12); }
.code-input { text-transform: uppercase; letter-spacing: .25em; font-weight: 900; }
.wide { width: 100%; }
.outline-btn { background: transparent; border: 1px solid #cbd4d5; border-radius: 8px; min-height: 47px; padding: 0 18px; }
.outline-btn:hover { border-color: var(--teal); color: var(--teal-dark); }
.or { display: flex; align-items: center; gap: 12px; margin: 24px 0; color: #9aa5aa; font-size: 9px; }
.or span { height: 1px; background: var(--line); flex: 1; }
.form-error { min-height: 18px; margin: 13px 0 0; color: #d94747; font-size: 12px; }

#game-view { min-height: calc(100vh - 76px); background: #edf1ed; }
.game-shell { padding-top: 24px; }
.game-toolbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; margin-bottom: 20px; }
.game-title { display: flex; gap: 10px; align-items: center; text-align: left; }
.game-title > span { width: 34px; height: 34px; background: var(--navy); color: var(--teal); border-radius: 7px; display: grid; place-items: center; }
.game-title div { display: flex; flex-direction: column; }
.game-title small { color: var(--muted); font-size: 8px; letter-spacing: .12em; font-weight: 900; }
.sound-btn { justify-self: end; width: 37px; height: 37px; border: 1px solid var(--line); border-radius: 7px; background: white; cursor: pointer; font-weight: 900; }
.sound-btn.muted { color: #aab2b3; text-decoration: line-through; }
.match-layout { display: grid; grid-template-columns: 260px minmax(0, 760px); justify-content: center; gap: 28px; }
.match-panel { display: flex; flex-direction: column; gap: 14px; }
.room-block { background: var(--navy); color: white; border-radius: 10px; padding: 15px; }
.room-block > span { display: block; color: #8293a1; font-size: 8px; font-weight: 900; letter-spacing: .13em; margin-bottom: 8px; }
.room-block button { width: 100%; display: flex; align-items: center; justify-content: space-between; border: 0; background: transparent; color: white; padding: 0; cursor: pointer; }
.room-block b { letter-spacing: .19em; font-size: 18px; }
.room-block button span { font-size: 9px; color: var(--teal); font-weight: 900; }
.status-card { background: white; border: 1px solid var(--line); padding: 16px; display: flex; align-items: center; gap: 12px; border-radius: 10px; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 5px rgba(23,200,164,.12); }
.status-card div:last-child { display: flex; flex-direction: column; gap: 4px; }
.status-card small { font-size: 8px; color: #9aa5aa; letter-spacing: .13em; font-weight: 900; }
.status-card b { font-size: 13px; }
.players-list { background: white; border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; }
.player-row { display: grid; grid-template-columns: 38px 1fr 8px; gap: 10px; align-items: center; padding: 12px 0; }
.player-row > div { display: flex; flex-direction: column; gap: 3px; overflow: hidden; }
.player-row small { color: #98a3a7; font-size: 8px; font-weight: 900; letter-spacing: .12em; }
.player-row b { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-row > i { width: 7px; height: 7px; background: #cdd4d4; border-radius: 50%; }
.player-row.active > i { background: var(--teal); box-shadow: 0 0 0 4px rgba(23,200,164,.1); }
.avatar { width: 37px; height: 37px; border-radius: 9px; display: grid; place-items: center; font-weight: 900; font-size: 12px; }
.avatar-one { background: var(--navy); color: white; }.avatar-two { background: #ffe2ba; color: #975829; }
.versus { text-align: center; color: #a7b0b3; font-size: 8px; font-weight: 900; position: relative; }
.versus::before, .versus::after { content: ''; position: absolute; width: 38%; height: 1px; background: var(--line); top: 50%; }
.versus::before { left: 0; }.versus::after { right: 0; }
.game-help { margin-top: auto; border: 1px dashed #bec9c7; border-radius: 10px; padding: 15px; color: var(--muted); }
.game-help b { color: var(--ink); font-size: 10px; }.game-help p { font-size: 11px; line-height: 1.5; margin: 6px 0 0; }
.board-area { min-width: 0; }
.board-wrap { width: min(100%, 680px); margin: 0 auto; background: white; border-radius: 13px; padding: 20px; box-shadow: 0 12px 38px rgba(27,42,51,.12); }
.board-actions { width: min(100%, 680px); margin: 14px auto 0; display: flex; justify-content: space-between; align-items: center; }
.board-actions .outline-btn { min-height: 40px; background: white; font-size: 11px; }
.board-actions .text-btn { font-size: 11px; }
.mobile-status { display: none; }

.omok-board { --cell: calc(100% / 15); position: relative; aspect-ratio: 1; background: #d6aa68; border: 2px solid #8c6839; padding: calc(var(--cell) / 2); display: grid; grid-template-columns: repeat(15, 1fr); box-shadow: inset 0 0 28px rgba(68,44,17,.13); }
.omok-board::before { content: ''; position: absolute; inset: calc(var(--cell) / 2); background-image: linear-gradient(rgba(69,46,21,.55) 1px,transparent 1px), linear-gradient(90deg,rgba(69,46,21,.55) 1px,transparent 1px); background-size: calc(100% / 14) calc(100% / 14); pointer-events: none; }
.omok-cell { position: relative; z-index: 1; appearance: none; border: 0; background: transparent; padding: 0; cursor: pointer; }
.omok-cell::after { content: ''; position: absolute; width: 76%; height: 76%; left: 12%; top: 12%; border-radius: 50%; transform: scale(0); transition: transform .13s; }
.omok-cell.black::after { transform: scale(1); background: radial-gradient(circle at 35% 28%, #59616a, #111820 68%); box-shadow: 0 4px 6px rgba(20,20,20,.28); }
.omok-cell.white::after { transform: scale(1); background: radial-gradient(circle at 35% 28%, white, #dcded8 75%); box-shadow: 0 3px 7px rgba(25,25,25,.2); }
.omok-cell.legal:hover::after { transform: scale(.45); background: rgba(16,32,51,.25); }
.omok-cell.last::before { content: ''; position: absolute; z-index: 2; width: 5px; height: 5px; border-radius: 50%; background: var(--orange); left: calc(50% - 2px); top: calc(50% - 2px); }

.chess-board { display: grid; grid-template-columns: repeat(8, 1fr); aspect-ratio: 1; border: 5px solid #263a49; background: #698a84; }
.chess-cell { position: relative; border: 0; padding: 0; display: grid; place-items: center; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(24px, 6.3vw, 59px); cursor: pointer; color: #112234; background: #eadab7; text-shadow: 0 2px 0 rgba(255,255,255,.35); }
.chess-cell.dark { background: #71938b; }.chess-cell.side-1 { color: #fff8e7; text-shadow: 0 2px 2px rgba(17,34,52,.6); }
.chess-cell.selected { box-shadow: inset 0 0 0 5px var(--yellow); }
.chess-cell.legal::after { content: ''; position: absolute; width: 22%; height: 22%; border-radius: 50%; background: rgba(20,37,52,.38); }
.chess-cell.capture::after { width: 78%; height: 78%; background: transparent; border: 5px solid rgba(255,100,73,.7); }
.chess-cell.last { box-shadow: inset 0 0 0 5px rgba(23,200,164,.65); }
.chess-cell .coord { position: absolute; left: 3px; top: 2px; color: rgba(16,32,51,.55); font: 700 8px/1 sans-serif; text-shadow: none; }

.janggi-board { position: relative; aspect-ratio: 9 / 10; padding: 3%; background: #dbbf86; border: 4px solid #815f35; box-shadow: inset 0 0 25px rgba(90,56,20,.15); display: grid; grid-template-columns: repeat(9, 1fr); }
.janggi-board::before { content: ''; position: absolute; inset: 7.5% 8%; background-image: linear-gradient(rgba(74,52,24,.62) 1px, transparent 1px), linear-gradient(90deg,rgba(74,52,24,.62) 1px, transparent 1px); background-size: 12.5% 11.111%; pointer-events: none; }
.janggi-cell { position: relative; z-index: 1; border: 0; padding: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
.janggi-token { width: 68%; aspect-ratio: 1; display: grid; place-items: center; background: #f1dfb8; border: 2px solid currentColor; box-shadow: inset 0 0 0 2px #f1dfb8, inset 0 0 0 3px currentColor, 0 3px 6px rgba(60,37,12,.25); font-family: Georgia, serif; font-weight: 900; font-size: clamp(12px, 3.1vw, 29px); }
.janggi-token.side-0 { color: #236f80; }.janggi-token.side-1 { color: #bd4b3b; }
.janggi-cell.selected .janggi-token { outline: 4px solid var(--yellow); outline-offset: 2px; }
.janggi-cell.legal::after { content: ''; position: absolute; width: 15px; height: 15px; border-radius: 50%; background: rgba(16,32,51,.42); }
.janggi-cell.capture::after { width: 64%; aspect-ratio: 1; background: transparent; border: 4px solid rgba(255,91,63,.75); }
.janggi-cell.last { background: rgba(23,200,164,.22); }

.toast { position: fixed; z-index: 50; left: 50%; bottom: 26px; transform: translate(-50%, 30px); background: var(--navy); color: white; border-radius: 8px; padding: 11px 17px; font-size: 12px; font-weight: 800; opacity: 0; pointer-events: none; transition: .25s; box-shadow: var(--shadow); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 900px) {
  .hero-shell { grid-template-columns: 1fr; padding-bottom: 50px; }
  .hero-board { display: none; }
  .section-heading { grid-template-columns: 1fr; gap: 16px; }
  .game-grid { grid-template-columns: repeat(2, 1fr); }
  .lobby-layout { grid-template-columns: 1fr 380px; gap: 35px; }
  .match-layout { grid-template-columns: 210px minmax(0, 1fr); gap: 16px; }
}

@media (max-width: 680px) {
  .site-header { height: 64px; padding: 0 16px; }
  .server-status { display: none; }
  .brand { font-size: 16px; }.brand-mark { width: 29px; height: 29px; }
  .language-picker select { max-width: 104px; }
  .hero-shell { min-height: 545px; padding: 62px 20px; }
  .hero-copy h1 { font-size: 52px; }
  .hero-copy > p { font-size: 15px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 12px; margin-top: 28px; }
  .quick-facts { margin-top: 34px; }.quick-facts > span { min-width: 0; padding: 0 16px; }
  .games-section { padding: 62px 16px; }
  .section-heading { margin-bottom: 28px; }.section-heading h2 { font-size: 37px; }
  .game-grid { grid-template-columns: 1fr; }
  .game-card { padding: 18px; }.game-visual { height: 225px; }
  .bottom-strip { justify-content: flex-start; overflow: hidden; white-space: nowrap; padding: 0 20px; gap: 22px; }
  .subpage-shell { padding: 28px 16px 60px; }
  .lobby-layout { display: block; min-height: 0; }
  .lobby-copy { padding: 55px 0 28px; }.lobby-copy h1 { font-size: 50px; }.lobby-copy > p { font-size: 14px; }
  .lobby-panel { padding: 24px 19px; }
  .game-shell { padding: 16px 10px 45px; }
  .game-toolbar { grid-template-columns: 1fr auto; margin: 0 6px 12px; }
  .game-toolbar .game-title { display: none; }
  .match-layout { display: block; }
  .match-panel { display: none; }
  .mobile-status { display: flex; align-items: center; justify-content: center; min-height: 39px; margin: 0 auto 9px; width: min(100%, 580px); border-radius: 8px; background: white; border: 1px solid var(--line); font-size: 12px; font-weight: 900; }
  .mobile-status::before { content: ''; width: 7px; height: 7px; margin-right: 8px; background: var(--teal); border-radius: 50%; }
  .board-wrap { padding: 9px; border-radius: 9px; }
  .board-actions { padding: 0 4px; }.board-actions .text-btn { font-size: 10px; }
  .chess-board { border-width: 3px; }.chess-cell.selected { box-shadow: inset 0 0 0 3px var(--yellow); }.chess-cell.last { box-shadow: inset 0 0 0 3px rgba(23,200,164,.65); }
  .janggi-token { width: 78%; }.janggi-cell.capture::after { width: 73%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
