:root{--bg:#f6f5f0;--ink:#203b31;--green:#284e3f;--muted:#7d837c;--line:#e0e2d8;--lime:#d5e8a1}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:24px}body{margin:0;background:var(--bg);color:var(--ink);font-family:Arial,Helvetica,sans-serif;font-size:14px}button,a,input{-webkit-tap-highlight-color:transparent}button,input{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #a6ba72;outline-offset:5px}.sidebar{width:232px;background:#192e26;color:#e9ede4;position:fixed;inset:0 auto 0 0;padding:39px 25px;display:flex;flex-direction:column}.brand{display:flex;gap:10px;align-items:center;font-weight:700;font-size:29px;letter-spacing:-1.4px}.brand-icon{font-size:42px;line-height:1;color:var(--lime)}.brand-light{font-weight:400;color:#c6d2c5}.brand small{display:block;font-size:6.6px;letter-spacing:1.8px;margin-top:6px;color:#a0b29f}nav{margin-top:65px;display:grid;gap:10px}.nav-item{display:flex;align-items:center;gap:14px;padding:15px 13px;border:0;background:none;border-radius:7px;color:#b6c2b7;text-align:left;width:100%;font-size:13px}.nav-item>span{font-size:23px;width:24px;text-align:center}.nav-item.active{background:#30483a;color:var(--lime)}.nav-item:hover{background:#2b4235}.nav-item small{font-size:8px;border:1px solid #60705d;padding:3px;border-radius:3px;margin-left:auto}.sidebar-bottom{margin-top:auto;padding:30px 10px 0}.little-board{font-size:55px;color:#71846b}.sidebar-bottom p{line-height:1.7;color:#c2cdbd;font-size:14px}.sidebar-foot{font-size:8px;letter-spacing:1.4px;color:#7e967e}.shell{margin-left:232px}header{height:99px;margin:0 5.5%;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:20px}.header-note{color:#8a8f85;font-size:11px;display:flex;gap:9px;align-items:center}.header-note i,.eyebrow>span{width:6px;height:6px;border-radius:50%;background:#829d58;display:inline-block}.account-nav{display:flex;align-items:center;gap:24px}.text-button{border:0;background:none;color:var(--ink);font-weight:600;font-size:12px}.button{background:var(--green);color:white;border:0;border-radius:6px;padding:17px 23px;display:inline-flex;gap:30px;align-items:center;justify-content:space-between;font-weight:600;font-size:13px;transition:background .2s,transform .2s}.button:hover{background:#37664f;transform:translateY(-1px)}.button.small{padding:13px 17px;font-size:11px;gap:22px}.button span{font-size:18px}main{max-width:1500px;margin:auto;padding:0 5.5%}.hero{display:grid;grid-template-columns:1fr 1fr;gap:30px;padding:60px 0 50px;align-items:center}.eyebrow{font-size:9px;font-weight:600;letter-spacing:1.7px;display:flex;align-items:center;gap:9px}h1{font-family:Georgia,'Times New Roman',serif;font-size:clamp(46px,4.55vw,76px);font-weight:400;letter-spacing:-3.5px;line-height:1.08;margin:27px 0 22px}h1 em{font-weight:400;color:#718764}.intro{font-size:14px;color:#7a8077;line-height:1.85;margin-bottom:27px}.primary{min-width:232px}.hero-caption{display:flex;align-items:center;gap:10px;font-size:9px;color:#8b9087;margin-top:20px}.tiny-stones{display:flex;padding-left:4px}.tiny-stones i{display:block;width:17px;height:17px;border-radius:50%;background:#b7c0a4;border:2px solid var(--bg);margin-left:-4px}.tiny-stones i:nth-child(2){background:#405745}.tiny-stones i:nth-child(3){background:#e2dbc4}.board-scene{background:#e9ecdf;position:relative;border-radius:9px;padding:22px 24px 18px;isolation:isolate}.board-topline,.board-bottomline{display:flex;justify-content:space-between;font-size:7px;letter-spacing:1.6px;color:#7c8873}.game-board{position:relative;max-width:500px;margin:12px auto 13px;aspect-ratio:1;background:radial-gradient(ellipse,#e1e5d3,transparent 70%)}svg{width:100%;height:100%;overflow:visible}.board-lines{fill:none;stroke:#a8b398;stroke-width:2}.board-dot{fill:#93a181}.stone{position:absolute;width:10%;height:10%;border-radius:50%;transform:translate(-50%,-50%);background:radial-gradient(circle at 34% 25%,#f9f5e7 0,#e6ddc5 58%,#c8bea2 100%);box-shadow:2px 6px 6px #3b442e35,inset 0 0 0 1px #fff6}.stone.dark{background:radial-gradient(circle at 32% 20%,#61745b 0,#2e4434 58%,#233628 100%);box-shadow:2px 6px 7px #23362844,inset 0 0 0 1px #fff2}.stone::after{content:'';position:absolute;inset:16%;border-radius:50%;border:1px solid #988f6c44}.stone.dark::after{border-color:#b7c39a22}.move-card{background:#fffef9ed;box-shadow:0 8px 25px #253a2710;display:flex;align-items:center;gap:12px;position:relative;margin:-22px 4px 26px;padding:15px 14px;border-radius:7px}.move-avatar{background:#dde5cb;color:#536747;width:35px;height:35px;display:grid;place-items:center;border-radius:50%;font-family:Georgia,serif;font-size:19px}.move-card strong{font-size:11px}.move-card small{display:block;font-size:9px;color:#989c91;margin-top:5px}.move-card>span:last-child{margin-left:auto;color:#7f8f68}.benefits{display:grid;grid-template-columns:repeat(3,1fr);padding:27px 0 30px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);gap:20px}.benefits>div{display:flex;align-items:center;gap:14px}.benefit-icon{font-size:29px;font-weight:400;color:#728261}.benefits strong{font-size:11px}.benefits p{font-size:10px;color:#919589;margin:7px 0 0}.lower-grid{display:grid;grid-template-columns:.85fr 1.15fr;gap:30px;margin:40px 0}.learn-card{padding:28px;background:#edece2;border-radius:7px}h2{font-family:Georgia,serif;font-weight:400;font-size:30px;letter-spacing:-.8px;margin:15px 0}.learn-card p{color:#858778;line-height:1.8;font-size:12px;max-width:340px}.learn-card summary{font-size:11px;font-weight:600;cursor:pointer;margin-top:23px;list-style:none}.learn-card summary span{margin-left:15px}details ol{padding-left:18px;color:#69765f;font-size:12px;line-height:1.7}details li{margin-top:10px}.ranking-card{padding:25px 0}.section-heading{display:flex;gap:15px;justify-content:space-between;align-items:flex-start}.ranking-card h2{font-size:25px}.tag{font-size:7px;letter-spacing:1px;border:1px solid #d7ddcc;padding:6px;white-space:nowrap;border-radius:3px;color:#7a8b66}.ranking-labels{display:flex;justify-content:space-between;font-size:8px;letter-spacing:1px;color:#9a9e92;padding:15px 0 12px;border-bottom:1px solid var(--line)}.ranking-note{color:#969b8e;font-size:10px;line-height:1.7}.ranking-row{display:flex;align-items:center;gap:12px;border-bottom:1px solid var(--line);padding:12px 0}.ranking-row .position{color:#8c977e;font-size:11px;width:18px}.ranking-row strong{font-size:12px}.ranking-row .rating{margin-left:auto;font-weight:600;font-size:12px}.player-avatar{width:29px;height:29px;border-radius:6px;background:#e2e7d6;display:grid;place-items:center;font-size:12px}.empty-ranking{padding:22px 0;font-size:13px;line-height:1.7;color:#7d8871}footer{border-top:1px solid var(--line);padding:25px 0;display:flex;align-items:center;gap:25px;color:#9b9f95;font-size:9px}footer>span:last-child{margin-left:auto}.footer-brand{font-size:19px;letter-spacing:-1px;color:#586b50;font-weight:bold}.footer-brand span{font-size:9px;vertical-align:top;margin-left:3px}dialog{width:440px;max-width:calc(100% - 30px);border:0;border-radius:12px;padding:40px;background:var(--bg);color:var(--ink);box-shadow:0 20px 90px #0004}dialog::backdrop{background:#14291fc2;backdrop-filter:blur(5px)}.close-dialog{position:absolute;right:15px;top:11px;background:none;border:0;font-size:26px;color:#798274}dialog h2{font-size:32px}dialog>p{color:#7d8776;line-height:1.6;font-size:12px}form{margin-top:25px}label{display:block;font-size:11px;font-weight:bold;margin:17px 0}input{display:block;width:100%;margin-top:8px;background:#fffef9;border:1px solid #d3d9ca;border-radius:5px;padding:13px;color:var(--ink);outline-color:#7c9668}form .button{width:100%;margin-top:6px}.form-error{font-size:12px;color:#a2422e;line-height:1.5}.auth-switch{text-align:center}.auth-switch button{border:0;background:none;color:var(--green);font-weight:bold;font-size:12px}.auth-note{font-size:10px!important;border-top:1px solid var(--line);padding-top:15px}.dashboard{background:var(--green);color:#f3f5e9;border-radius:8px;padding:30px;margin-top:30px}.dashboard h2{margin-top:0}.dashboard p{color:#c1d1bb;line-height:1.8}.profile-stats{display:flex;gap:40px;margin:25px 0}.profile-stats strong{font-family:Georgia,serif;font-size:30px;display:block}.profile-stats span{font-size:10px;color:#c1d1bb;display:block;margin-top:6px}[hidden]{display:none!important}@media(min-width:1600px){.hero{gap:70px}}@media(max-width:1150px){.sidebar{width:190px;padding:32px 18px}.shell{margin-left:190px}.brand{font-size:25px}.header-note{display:none}header{justify-content:flex-end}.hero{gap:22px}h1{font-size:51px;letter-spacing:-2.5px}.tag{display:none}.benefits strong{font-size:10px}.benefits>div{gap:9px}.move-card strong{font-size:10px}}@media(max-width:800px){.sidebar{width:76px;padding:27px 12px}.brand>span:last-child,.nav-item>small,.sidebar-bottom{display:none}.brand{justify-content:center}nav{margin-top:45px}.nav-item{font-size:0;justify-content:center;padding:13px 0;gap:0}.nav-item>span{font-size:23px}.shell{margin-left:76px}.hero{grid-template-columns:1fr;gap:35px;padding-top:40px}.hero-copy{text-align:center}.hero-copy .eyebrow,.hero-caption{justify-content:center}h1{font-size:64px}.board-scene{max-width:480px;width:100%;margin:auto}.benefits{grid-template-columns:1fr;gap:22px}.benefits strong{font-size:12px}.benefits p{font-size:11px}.lower-grid{grid-template-columns:1fr;gap:10px}.ranking-card{padding:24px 5px}.header-note{display:none}header{height:80px}.account-nav{gap:15px}footer{flex-wrap:wrap;gap:15px}footer>span:last-child{margin-left:0;width:100%}}@media(max-width:450px){.sidebar{width:60px;padding:26px 8px}.shell{margin-left:60px}main{padding:0 6%}header{margin:0 6%;height:76px}.button.small{padding:10px;font-size:10px;gap:7px}.account-nav{gap:10px}.text-button{font-size:11px}h1{font-size:46px;letter-spacing:-2px}.intro{font-size:12px}.hero-copy .eyebrow{font-size:7px}.hero-caption{font-size:8px}.board-scene{padding:16px 12px}.board-topline,.board-bottomline{font-size:5px}.move-card{padding:10px;margin-bottom:16px;gap:7px}.move-card strong{font-size:9px}.move-card small{font-size:8px}.move-avatar{width:27px;height:27px;font-size:16px}.learn-card{padding:22px}dialog{padding:32px 24px}.profile-stats{gap:24px}}

.brand-icon{display:block;flex-shrink:0;width:38px;height:38px}.brand-icon svg{display:block}.little-board{width:55px;height:55px}.lobby-heading{padding:55px 0 25px}.lobby-heading h1{font-size:clamp(44px,4.5vw,68px)}.lobby-grid{display:grid;grid-template-columns:1.5fr 1fr;gap:28px;margin-bottom:45px;align-items:start}.mode-panel{background:#eeeee4;border:1px solid var(--line);padding:28px;border-radius:10px}.mode-panel h2{margin:0;font-size:27px}.mode-placeholder{text-align:center;padding:40px 15px 25px}.lobby-symbol{display:block;font-size:58px;color:#8b9d78}.mode-placeholder h3{font-family:Georgia,serif;font-weight:400;font-size:23px}.mode-placeholder p,.lobby-profile p{font-size:13px;line-height:1.8;color:#798570}.mode-placeholder p{max-width:350px;margin:0 auto 25px}.button:disabled{cursor:default;background:#d4dac9;color:#6d7d60;transform:none}.lobby-profile{padding:30px;background:#e4e9d7;border-radius:10px}.lobby-profile h2{font-size:27px}.lobby-rating{display:flex;align-items:baseline;gap:12px;margin:28px 0}.lobby-rating strong{font-family:Georgia,serif;font-size:60px;font-weight:400}.lobby-rating span{font-size:9px;letter-spacing:1.5px;color:#78886b}.lobby-profile .button{width:100%;margin-top:15px}.lobby-ranking-link{display:block;margin-top:23px;font-size:12px;font-weight:bold}@media(max-width:1000px){.lobby-grid{grid-template-columns:1fr}.mode-panel .tag{display:none}}

.brand{font-size:22px;letter-spacing:-1px}.brand small{font-size:6px;letter-spacing:1px}.lower-grid{grid-template-columns:1fr}.ranking-card{max-width:850px;width:100%;margin:0 auto}.brand-icon{width:32px;height:32px}@media(max-width:1150px) and (min-width:801px){.brand{font-size:18px;gap:6px}.brand-icon{width:28px;height:28px}}
#mode-options{border:0;padding:0;margin:25px 0 0;display:grid;gap:12px}#mode-options legend{font-size:11px;color:#78866d;margin-bottom:15px}.mode-option{display:flex;gap:14px;align-items:center;background:#f8f8f1;border:1px solid #d8dfce;border-radius:8px;padding:18px;cursor:pointer;margin:0}.mode-option:has(input:checked){background:#e2ead1;border-color:#728a55;box-shadow:0 0 0 1px #728a55}.mode-option input{width:17px;height:17px;margin:0;accent-color:var(--green)}.mode-option>span:nth-child(2){display:flex;align-items:center;justify-content:space-between;gap:20px;flex:1}.mode-option strong{font-family:Georgia,serif;font-size:30px;font-weight:400}.mode-option small{font-family:Arial,sans-serif;font-size:12px}.mode-option span span{font-size:11px;color:#79876d;font-weight:400}.mode-check{color:var(--green);visibility:hidden}.mode-option:has(input:checked) .mode-check{visibility:visible}.mode-explanation{font-size:11px;line-height:1.8;color:#7e8b73;margin:18px 0}.play-button{width:100%;font-size:15px}#queue-panel{text-align:center;padding:35px 5px}#queue-panel h3{font-family:Georgia,serif;font-size:28px;font-weight:400}#queue-panel p{font-size:12px;line-height:1.8;color:#78866d}.queue-indicator{font-size:56px;color:#79945c}#cancel-search{margin-top:15px;text-decoration:underline}@media(max-width:450px){.mode-option{padding:13px;gap:10px}.mode-option>span:nth-child(2){gap:10px}.mode-option span span{font-size:10px}}
.category-tabs{display:flex;gap:6px;background:#e0e4d7;padding:5px;border-radius:8px;margin:22px 0}.category-tabs button{flex:1;border:0;border-radius:5px;padding:13px 8px;background:none;color:#65785b;font-weight:600;font-size:12px}.category-tabs button[aria-pressed=true]{background:var(--green);color:white}#bot-level{width:100%;padding:14px;border:1px solid #b8c6a4;border-radius:6px;background:#fafbf5;color:var(--ink);font:inherit}.reward-note{font-size:10px;color:#7a886f;line-height:1.8;margin:20px 0 0}#game-panel{margin:25px 0 45px;background:#e9ecdf;padding:28px;border-radius:10px}.game-heading{display:flex;justify-content:space-between;gap:20px;align-items:center}.game-heading h2{font-size:24px}.game-clocks{display:flex;justify-content:space-between;gap:12px;margin:20px 0;font-size:16px;font-variant-numeric:tabular-nums}.game-clocks span{background:#f8f9f1;padding:12px;border-radius:6px}#game-instruction,#game-result{font-size:13px;line-height:1.8}.live-board{position:relative;width:100%;max-width:550px;aspect-ratio:1;margin:25px auto}.live-board svg{position:absolute;inset:0}.board-point{position:absolute;transform:translate(-50%,-50%);border-radius:50%;width:7%;height:7%;border:1px solid #a3b08f;padding:0}.board-point.empty{background:#bdc7ac;width:3%;height:3%;border:0}.board-point.white-piece{background:radial-gradient(circle at 30% 25%,#fffdf3,#d8cfb5);box-shadow:2px 4px 5px #0002}.board-point.black-piece{background:radial-gradient(circle at 30% 25%,#667b58,#243c2b);box-shadow:2px 4px 5px #0003}.board-point.selected{outline:3px solid #bb913d;outline-offset:3px}.board-point.possible:not(:disabled){box-shadow:0 0 0 4px #91a76b66}.board-point:disabled{cursor:default}@media(max-width:450px){#game-panel{padding:15px}.game-clocks{font-size:12px}.game-heading h2{font-size:19px}}
.player-progress{margin-top:25px;padding-top:20px;border-top:1px solid #ccd6bc}.player-progress p{font-size:12px!important}.player-progress progress{width:100%;height:9px;border:0;border-radius:10px;overflow:hidden;accent-color:#496d36}.player-progress progress::-webkit-progress-bar{background:#ccd6bc;border-radius:10px}.player-progress progress::-webkit-progress-value{background:#597e40;border-radius:10px;transition:width .5s}.player-progress .text-button{padding:0;margin-top:12px;font-size:11px}#result-dialog{text-align:center;width:420px;padding:42px 34px 30px;overflow:hidden}#result-dialog .eyebrow{justify-content:center;font-size:8px}#result-dialog h2{font-size:44px;margin:16px 0 12px;letter-spacing:-1.5px}#result-emblem{width:78px;height:78px;display:grid;place-items:center;margin:0 auto 25px;font-size:49px;border-radius:50%;background:#e5ead9;color:#71875d;position:relative}#result-dialog.victory #result-emblem{background:#d9e9ac;color:#3c6035;animation:win-reveal .55s ease-out}#result-dialog.victory{background:radial-gradient(ellipse at top,#eef5dd,var(--bg) 65%)}#result-reward{font-size:30px;color:#4c703b;letter-spacing:-.8px;font-weight:700;margin:22px 0 12px}#result-subtitle{font-size:11px}#result-motivation{font-size:12px;line-height:1.8;margin-bottom:25px}#result-dialog .button{width:100%;justify-content:center}#review-game{display:block;margin:18px auto 0;padding:8px}#replay-controls{background:#f7f8ef;border:1px solid #d7dfca;padding:20px;border-radius:9px;max-width:550px;margin:20px auto}#replay-description{font-size:13px;line-height:1.7;min-height:42px}.replay-buttons{display:flex;align-items:center;gap:8px;justify-content:space-between}.replay-buttons button{border:1px solid #c6d1b8;background:#e5ecd8;color:var(--ink);border-radius:5px;min-width:36px;padding:10px;font-size:16px}.replay-buttons button:disabled{opacity:.35;cursor:default}#replay-position{font-size:12px;font-variant-numeric:tabular-nums}#replay-slider{padding:0;accent-color:var(--green);margin:20px 0 0;cursor:pointer}#result-dialog::backdrop{background:#14291fbb;backdrop-filter:blur(7px)}@keyframes win-reveal{from{transform:scale(.65) rotate(-30deg);opacity:0}to{transform:scale(1) rotate(0);opacity:1}}@media(prefers-reduced-motion:reduce){#result-dialog.victory #result-emblem{animation:none}.player-progress progress::-webkit-progress-value{transition:none}}@media(max-width:450px){#result-dialog{padding:35px 23px 25px}#result-dialog h2{font-size:37px}#replay-controls{padding:15px}.replay-buttons{gap:4px}}

.board-point.replay-highlight{outline:3px solid #b18b3c;outline-offset:4px}.board-point.empty.replay-highlight{background:#c6a35f}#result-dialog:focus{outline:none}

#result-bonus{color:#56753b;font-weight:600;font-size:12px;margin:0 0 18px}

/* Keep large, stable touch targets separate from the visible stones. */
.live-board{isolation:isolate;user-select:none;-webkit-user-select:none;touch-action:manipulation}
.live-board svg{pointer-events:none}
.board-point,.board-point.empty,.board-point.white-piece,.board-point.black-piece{width:clamp(32px,12.5%,52px);height:auto;aspect-ratio:1;background:transparent;border:0;box-shadow:none;padding:0;outline-offset:0;touch-action:manipulation}
.board-point::before{content:'';position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:65%;height:65%;border-radius:50%;pointer-events:none;border:1px solid #a3b08f;transition:background-color .12s,box-shadow .12s}
.board-point.empty::before{width:10px;height:10px;background:#aab99a;border:0}
.board-point.white-piece::before{background:radial-gradient(circle at 30% 25%,#fffdf3,#d8cfb5);box-shadow:2px 4px 5px #0002}
.board-point.black-piece::before{background:radial-gradient(circle at 30% 25%,#667b58,#243c2b);box-shadow:2px 4px 5px #0003}
.board-point.selected,.board-point.replay-highlight,.board-point.empty.replay-highlight{outline:0;background:transparent}
.board-point.selected::before,.board-point.replay-highlight::before{outline:3px solid #b18b3c;outline-offset:3px}
.board-point.possible:not(:disabled){box-shadow:none}
.board-point.possible:not(:disabled)::before{box-shadow:0 0 0 6px #91a76b44}
.board-point.empty.possible:not(:disabled)::before{background:#829f5e}
.board-point.pending::before{box-shadow:0 0 0 4px #b7c78d66}
.board-point:focus-visible{outline:2px solid #58753f;outline-offset:-3px}
#game-instruction{min-height:24px;margin:12px 0;color:#54674a}
body.is-playing .lobby-heading,body.is-playing #dashboard{display:none!important}
#game-panel{scroll-margin-top:16px}
.game-heading>div{min-width:0}.game-heading h2{overflow-wrap:anywhere}
.game-heading .text-button{min-height:44px;flex-shrink:0;padding:10px}
.account-nav>strong{max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(hover:hover) and (pointer:fine){.board-point.possible:hover::before{box-shadow:0 0 0 8px #91a76b66}.board-point:not(:disabled):hover::before{filter:brightness(1.04)}}
@media(max-width:700px){
 html{scroll-padding-top:70px}
 .sidebar{position:sticky;inset:0 0 auto;width:100%;height:58px;padding:6px 12px;flex-direction:row;align-items:center;justify-content:space-between;gap:10px;z-index:5}
 .brand{font-size:19px;gap:7px;white-space:nowrap;justify-content:flex-start}
 .brand-icon{width:27px;height:27px}.brand>span:last-child{display:block}.brand small{display:none}
 .sidebar nav{display:flex;gap:4px;margin:0;flex-shrink:0}
 .nav-item{width:auto;min-height:44px;padding:8px 10px;gap:5px;font-size:11px;justify-content:center}
 .nav-item>span{font-size:19px;width:20px}.sidebar-bottom{display:none}
 .shell{margin-left:0;min-width:0}
 header{height:60px;min-height:60px;margin:0 16px;gap:12px}
 .account-nav{gap:16px;max-width:100%;width:100%;justify-content:flex-end}
 .account-nav>strong{margin-right:auto;max-width:60%;font-size:13px}
 .text-button{min-height:44px;font-size:13px}.button.small{min-height:44px;padding:10px 14px;font-size:12px}
 main{padding:0 12px;min-width:0}
 .hero{padding:32px 4px;gap:25px}.hero h1{font-size:clamp(42px,10.5vw,64px);letter-spacing:-2px}
 .intro{font-size:14px}.hero-copy .eyebrow{font-size:8px}.hero-caption{font-size:10px;line-height:1.6}
 .benefits{padding:24px 8px;gap:23px}.benefits strong{font-size:13px}.benefits p{font-size:12px}
 .lower-grid{margin:22px 0}.ranking-card{padding:20px 4px}.ranking-row{min-height:54px}.ranking-row .player-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.ranking-note{font-size:11px}
 .lobby-heading{padding:28px 4px 12px}.lobby-heading h1{font-size:clamp(38px,9.5vw,56px);margin:20px 0}
 .lobby-grid{gap:16px;margin-bottom:24px;min-width:0}.mode-panel,.lobby-profile{padding:20px;min-width:0}
 .mode-panel h2{font-size:26px}.category-tabs button{font-size:13px;min-height:46px}
 .mode-option{min-height:70px;padding:14px;gap:12px}.mode-option span span{font-size:12px}
 .mode-explanation{font-size:12px}input,select,#bot-level{font-size:16px}
 #game-panel{margin:12px 0 24px;padding:12px 8px;border-radius:9px;scroll-margin-top:70px}
 .game-heading{gap:8px;padding:0 4px}.game-heading h2{font-size:18px;line-height:1.35;margin:8px 0}.game-heading .eyebrow{font-size:8px}
 .game-clocks{gap:8px;margin:12px 2px;font-size:14px}.game-clocks span{flex:1;padding:11px 8px;text-align:center;white-space:nowrap}
 #game-instruction{font-size:13px;line-height:1.5;margin:10px 4px;min-height:39px}
 .live-board{margin:8px auto 16px;max-width:550px}
 #game-result{margin:10px 4px}.profile-stats{gap:28px}
 dialog,#result-dialog{width:calc(100% - 24px);max-width:420px;max-height:calc(100dvh - 24px);overflow-y:auto;padding:32px 24px}
 .close-dialog{width:44px;height:44px;top:5px;right:5px}
 #result-dialog h2{font-size:36px}#result-emblem{width:64px;height:64px;font-size:40px;margin-bottom:18px}
 #result-reward{font-size:27px}.replay-buttons button{min-width:44px;min-height:44px}
 #replay-controls{padding:14px;margin:14px 0}#replay-slider{min-height:36px}
 footer{padding:20px 4px;line-height:1.7}
}
@media(max-width:360px){.sidebar{padding:6px 8px;gap:4px}.brand{font-size:17px;gap:5px}.brand-icon{width:24px;height:24px}.nav-item{padding:8px 6px;font-size:10px;gap:3px}.mode-panel,.lobby-profile{padding:16px}.mode-option span span{font-size:11px}.game-clocks{font-size:12px}.game-heading h2{font-size:16px}}
@media(max-height:500px) and (orientation:landscape){body.is-playing .sidebar{position:relative}body.is-playing header{height:44px;min-height:44px}#game-panel{scroll-margin-top:8px}.live-board{max-width:360px}dialog,#result-dialog{max-height:calc(100dvh - 16px);padding:24px}#result-emblem{display:none}}
@media(prefers-reduced-motion:reduce){.board-point::before{transition:none}html{scroll-behavior:auto}}

#result-dialog.defeat #result-reward{color:#9a4c39}#result-dialog.defeat #result-bonus{color:#826853}
