:root{font-family:"Pretendard","Noto Sans KR",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#263c32;background:#f4f3ed;font-synthesis:none;--green:#234f3f;--muted:#7b8379;--line:#e1e4d9;--cream:#fcfcf7;--wood:#dba967}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:0;transition:background .15s,transform .15s}button:active:not(:disabled){transform:translateY(1px)}button:disabled{cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,canvas:focus-visible{outline:3px solid #c07f2c;outline-offset:3px}button[hidden],[hidden]{display:none!important}a{color:inherit;text-decoration:none}.app{max-width:1136px;margin:auto;padding:0 40px}.header{height:104px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand{display:flex;gap:12px;align-items:center}.brand>span:last-child{display:flex;flex-direction:column;gap:3px}.brand small{font-size:12px;letter-spacing:3px;font-weight:700}.brand strong{font-size:20px;letter-spacing:-1px}.brandmark{display:block;width:42px;height:40px;position:relative}.brandmark i{position:absolute;width:28px;height:28px;top:4px;border-radius:50%;background:#202522;box-shadow:1px 3px 4px #0002}.brandmark i:last-child{background:#fffef7;left:16px;top:12px;border:1px solid #d6d9ce}.header-actions{display:flex;gap:9px}.icon-button{background:transparent;border:1px solid #d9dfd2;width:44px;height:44px;border-radius:50%;color:var(--green);font-size:22px}.icon-button:hover{background:#e6eadf}.page-title{display:flex;align-items:end;justify-content:space-between;margin:36px 0 28px}.eyebrow{font-size:13px;letter-spacing:1.5px;color:#7c8a7a;margin:0 0 10px;font-weight:650}h1{margin:0;font-size:34px;font-weight:700;letter-spacing:-1.8px}.edition{font-size:11px;letter-spacing:2px;color:#7d8b7b;padding-bottom:4px}.edition span{margin-left:10px;letter-spacing:5px}.layout{display:grid;grid-template-columns:minmax(0,660px) minmax(240px,290px);gap:36px;align-items:start}.game-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:17px}.mode-tabs,.segmented{display:flex;border:1px solid #dce2d5;padding:4px;border-radius:12px;background:#e9ede3}.mode-tabs button,.segmented button{min-height:38px;padding:0 21px;color:#798375;background:transparent;border-radius:8px;font-size:15px;font-weight:650}.mode-tabs .selected,.segmented .selected{background:#fffef9;box-shadow:0 2px 5px #2038210b;color:#254936}.text-button{background:transparent;color:#5c725e;font-size:14px;min-height:44px}.text-button span{margin-left:10px}.players{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:15px}.player{flex:1;display:flex;align-items:center;gap:10px;min-height:68px;border:1px solid var(--line);border-radius:12px;padding:10px 13px;background:#fafaf5}.player.active{background:#eaf0e3;border-color:#bdcdb0}.player>span:nth-child(2){display:flex;flex-direction:column;gap:4px}.player strong{font-size:15px}.player small{font-size:12px;color:#798674}.stone-dot{display:inline-block;flex-shrink:0;width:28px;height:28px;border-radius:50%;box-shadow:0 3px 4px #0002}.stone-dot.black{background:radial-gradient(circle at 32% 25%,#4b504c,#151a17 66%,#080d0b);border:1px solid #252c25}.stone-dot.white{background:radial-gradient(circle at 30% 22%,#fff,#f1f1e9 60%,#cccfc4);border:1px solid #cdd0c4}.turn-light{margin-left:auto;width:6px;height:6px;border-radius:50%;background:#839975;opacity:0}.active .turn-light{opacity:1}.versus{min-width:62px;text-align:center;display:flex;flex-direction:column;gap:5px}.versus small{font-size:12px;letter-spacing:.4px;color:#70826d}.versus>span{font-family:ui-monospace,monospace;font-size:14px;font-weight:700;color:#455c43}.board-shell{position:relative;border-radius:13px;padding:9px;background:linear-gradient(140deg,#c88f47,#a86e31);box-shadow:0 12px 26px #55421b1a,0 2px 3px #4b321b29,inset 0 1px 0 #f8d29a;overflow:hidden}#board{display:block;width:100%;height:auto;aspect-ratio:1;border-radius:6px;touch-action:none;user-select:none;-webkit-user-select:none;cursor:crosshair;background:#deb373}.magnifier{position:absolute;pointer-events:none;width:112px;height:130px;top:12px;left:12px;background:#fbf7ed;border:3px solid #fffdf6;border-radius:16px;box-shadow:0 5px 20px #301b2b4d;overflow:hidden;z-index:3}.magnifier canvas{width:106px;height:106px;display:block}.magnifier span{display:block;text-align:center;font-size:12px;line-height:18px;font-weight:700;background:#fffdf6}.board-caption{display:flex;align-items:center;gap:7px;min-height:40px;font-size:13px;color:#687e64}.live-dot{width:5px;height:5px;border-radius:50%;background:#73905a;flex-shrink:0}.live-dot.offline{background:#bc7738}#last-coordinate{margin-left:auto;font:12px ui-monospace,monospace;color:#7c8874}.action-bar{background:#fffef8;border:1px solid var(--line);border-radius:14px;padding:14px;display:flex;align-items:center;justify-content:space-between;gap:8px}.selection-info{display:flex;flex-direction:column;gap:5px}.selection-info strong{font-size:15px}.selection-info>span{font-size:12px;color:#7e8a78}.selection-info.invalid strong{color:#b14b34}.action-buttons{display:flex;gap:8px}.primary,.secondary{min-height:48px;padding:0 22px;border-radius:9px;display:inline-flex;align-items:center;justify-content:center;gap:18px;font-size:15px;font-weight:650}.primary{color:#fff;background:var(--green);box-shadow:0 3px 5px #153d2420}.primary:hover:not(:disabled){background:#33644f}.primary:disabled{color:#929e8c;background:#e4e9dc;box-shadow:none}.secondary{color:#67765e;background:#f0f2e9;border:1px solid #dfe5d5;gap:5px}.secondary:disabled{opacity:.4}.below-actions{display:flex;align-items:center;gap:10px;justify-content:space-between;font-size:11px;color:#8a9282;margin-top:7px}.quiet{font-size:12px;color:#7d8b72;background:transparent;min-height:36px;padding:0 4px}.sidebar{display:flex;flex-direction:column;gap:16px}.side-card{border:1px solid var(--line);border-radius:16px;padding:25px 23px;background:#fbfbf5}.welcome{background:#e9eddf;min-height:232px;position:relative;overflow:hidden}.tiny-label{font-size:10px;letter-spacing:2px;color:#869277}.welcome h2{font-size:24px;letter-spacing:-1px;margin:20px 0 12px;font-weight:600}.welcome p{font-size:14px;line-height:1.9;color:#78836c;margin:0}.mini-stones{display:flex;margin-top:22px;gap:6px;transform:translateX(91px) rotate(-14deg)}.mini-stones i{width:27px;height:27px;border-radius:50%;background:#284d3a;opacity:.18}.mini-stones i:nth-child(2n){background:#fff;opacity:.8;box-shadow:0 2px 4px #0001}.card-heading{display:flex;align-items:center;justify-content:space-between;gap:6px}.card-heading h3{margin:0;font-size:15px;font-weight:650}.card-heading button{background:transparent;color:#7c8b71;font-size:18px;width:32px;height:32px}.card-heading>span{font-size:10px;letter-spacing:1px;color:#8c9780}.rules-card>p{font-size:13px;line-height:1.9;color:#7b8770;margin:10px 0 22px}.tip{border-top:1px solid var(--line);padding-top:18px;display:flex;gap:10px}.tip>span{font-size:20px;color:#b79059}.tip p{font-size:12px;line-height:1.9;color:#8a927c;margin:0}.tip b{font-weight:600;color:#667559}#recent-moves{padding:0;list-style:none;margin:16px 0 0;display:flex;flex-direction:column;gap:9px}#recent-moves li{display:flex;align-items:center;justify-content:space-between;font-size:13px;color:#6d7e62}#recent-moves .stone-dot{width:14px;height:14px;margin:0 8px 0 5px}#recent-moves li span:first-child{display:flex;align-items:center}#recent-moves .empty-history{font-size:12px;color:#9a9f8d;padding:10px 0}footer{padding:35px 0;text-align:center;font-size:11px;color:#98a08e;letter-spacing:1px}footer span{padding:0 8px}.result{display:flex;align-items:center;gap:12px;background:#e4eddb;border:1px solid #c3d5ad;border-radius:12px;padding:13px 17px;margin-bottom:14px}.result>span{font-size:29px;color:#85974e}.result>div{display:flex;flex-direction:column;gap:5px}.result strong{font-size:16px}.result small{font-size:13px;color:#748461}.invite-bar{display:flex;align-items:center;gap:8px;padding:12px 14px;background:#e8efdf;border:1px dashed #b7c8a5;border-radius:12px;margin-bottom:14px}.invite-bar>div{display:flex;flex-direction:column;gap:5px;flex:1}.invite-bar small{font-size:12px;color:#728366}.invite-bar strong{font:600 16px ui-monospace,monospace;letter-spacing:3px}.invite-bar button,.join-row button{padding:0 14px;min-height:42px;background:#fffdf5;border:1px solid #c9d5b9;border-radius:8px;color:#48603a;font-size:13px;font-weight:650}dialog{border:1px solid #dce2d5;border-radius:22px;padding:0;background:#fcfcf7;color:#2b4635;max-width:460px;width:calc(100% - 28px);max-height:calc(100dvh - 28px);box-shadow:0 20px 80px #10241b40}dialog::backdrop{background:#142b2470;backdrop-filter:blur(5px)}.dialog-inner{padding:30px}.dialog-heading{display:flex;align-items:start;justify-content:space-between;gap:15px;margin-bottom:24px}.dialog-heading h2{font-size:22px;letter-spacing:-1px;margin:0}.close{background:#eef1e7;border-radius:50%;color:#6d7b62;min-width:36px;height:36px;font-size:23px}.segmented{margin-bottom:24px}.segmented button{flex:1;padding:0 7px;min-height:42px;font-size:14px}fieldset{border:0;padding:0;margin:0 0 22px}legend,.settings-row>label{font-size:14px;font-weight:650;margin-bottom:10px}.rule-options{display:flex;gap:10px}.rule-options label{flex:1;position:relative}.rule-options input{position:absolute;opacity:0}.rule-options label>span{display:flex;flex-direction:column;gap:6px;border:1px solid #dce2d3;border-radius:12px;padding:16px;background:#f5f7ef}.rule-options input:checked+span{background:#e7eedd;border-color:#8ba37c;box-shadow:inset 0 0 0 1px #8ba37c}.rule-options input:focus-visible+span{outline:3px solid #c99552}.rule-options b{font-size:15px}.rule-options small{font-size:12px;color:#819173}.field-note{font-size:12px;color:#8b967c;line-height:1.7;margin:10px 0 0}.settings-row{display:flex;gap:14px;margin-bottom:24px}.settings-row>label{display:flex;flex-direction:column;gap:10px;flex:1;margin:0}select,input{border:1px solid #d4dec9;border-radius:9px;background:#fffef9;color:#46613a;min-height:46px;padding:0 12px;min-width:0}.full{width:100%;justify-content:space-between;min-height:52px}.error{color:#ad523d;font-size:14px;line-height:1.7}.error:empty{display:none}.or{display:flex;align-items:center;gap:12px;margin:23px 0 15px;color:#9aa38f;font-size:12px}.or:before,.or:after{content:"";height:1px;background:#e2e6da;flex:1}.join-row{display:flex;gap:8px}.join-row input{flex:1;font-family:ui-monospace,monospace;text-transform:uppercase}.join-row button{min-width:65px}.invite-art{display:flex;align-items:center;justify-content:center;gap:28px;padding:22px 0 30px}.invite-art .stone-dot{width:62px;height:62px}.invite-art>span:nth-child(2){color:#8b9b7e}#join-description{font-size:15px;line-height:1.8;color:#758367;margin-bottom:24px}#help-dialog p{font-size:15px;line-height:1.9;color:#758166}.help-rule{padding-top:20px;margin-top:20px;border-top:1px solid #e0e5d6}.help-rule b{font-size:15px}.help-rule small{font-size:12px;line-height:1.8;display:block;color:#97a087}.confirm-actions{display:flex;gap:10px;margin-top:25px}.confirm-actions button{flex:1}#confirm-dialog p{font-size:15px;line-height:1.8;color:#7d8b70}.toast{position:fixed;bottom:115px;left:50%;transform:translateX(-50%);z-index:20;background:#233d32;color:#f4f4e8;padding:13px 20px;border-radius:30px;font-size:14px;box-shadow:0 6px 25px #0002;max-width:calc(100% - 32px);text-align:center}.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}
@media(min-width:1500px){.app{max-width:1190px}.layout{grid-template-columns:minmax(0,690px) 290px;gap:45px}.page-title{margin-top:42px}}
@media(max-width:900px){.app{padding:0 24px}.layout{gap:22px;grid-template-columns:minmax(0,1fr) 238px}.side-card{padding:21px 18px}.action-bar{flex-wrap:wrap}.selection-info{flex:1}.action-buttons{flex:1;justify-content:end}.primary,.secondary{padding:0 15px}.selection-info>span{font-size:11px}}
@media(max-width:720px){
  .app{max-width:720px;padding:0 10px}
  .header{height:54px;border-bottom:0;padding:0 3px}
  .brand{gap:5px}.brand strong{font-size:16px}.brand small{display:none}
  .brandmark{transform:scale(.7);transform-origin:left center;width:31px}
  .header-actions{gap:5px}.icon-button{width:44px;height:44px;border:0;font-size:22px}
  .page-title,.sidebar{display:none}.layout{display:block}
  .game-top{margin:0 0 6px;min-height:44px;gap:6px}
  .mode-tabs{padding:2px;border-radius:10px}.mode-tabs button{padding:0 17px;min-height:38px;font-size:14px}
  .text-button{font-size:13px;min-height:44px;padding:0 6px}.text-button span{margin-left:5px}
  .players{gap:7px;margin-bottom:7px}.player{padding:6px 10px;gap:8px;min-height:48px;border-radius:10px}
  .player>span:nth-child(2){gap:2px}.player strong{font-size:14px}.player small{font-size:10px}
  .stone-dot{width:25px;height:25px}.versus{min-width:49px;gap:3px}.versus small{font-size:11px}.versus>span{font-size:13px}
  .board-shell{margin-inline:-8px;padding:4px;border-radius:8px;box-shadow:0 4px 12px #55421b1a,0 1px 2px #4b321b29}
  #board{border-radius:4px}
  .board-caption{font-size:12px;min-height:31px;letter-spacing:-.3px;gap:5px}
  #last-coordinate{font-size:11px;white-space:nowrap}
  .action-bar{position:sticky;bottom:max(6px,env(safe-area-inset-bottom));z-index:5;box-shadow:0 5px 18px #23432a15;padding:9px;gap:7px;display:flex;flex-wrap:wrap;border-radius:12px}
  .selection-info{width:100%;flex:auto;flex-direction:row;justify-content:space-between;align-items:center;min-height:17px;gap:6px}
  .selection-info strong{font-size:14px}.selection-info>span{font-size:11px}
  .action-buttons{flex:auto;width:100%;gap:8px}.action-buttons .primary{flex:1;justify-content:space-between;font-size:15px}
  .action-buttons .secondary{width:88px;min-width:88px;font-size:13px}.action-buttons>button{min-height:54px}
  .below-actions{font-size:10px;margin-top:0}.quiet{font-size:12px;min-height:40px}
  footer{display:none}.dialog-inner{padding:25px 23px}.dialog-heading h2{font-size:21px}
  .invite-bar{padding:7px 10px;margin-bottom:6px;border-radius:10px}.invite-bar>div{gap:3px}
  .invite-bar small{font-size:11px}.invite-bar strong{font-size:15px}.invite-bar button{font-size:12px;padding:0 11px;min-height:44px}
  .result{padding:9px 12px;margin-bottom:7px}.result strong{font-size:15px}.result small{font-size:12px}.toast{bottom:130px}
  .magnifier{width:132px;height:150px}.magnifier canvas{width:126px;height:126px}
}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

#place-indicator{min-width:20px;text-align:right;font-size:15px;opacity:.85}

#last-coordinate:not(:empty){font-size:13px;font-weight:700;white-space:nowrap;color:#b33e20;background:#ffeadc;border:1px solid #efbb9c;border-radius:6px;padding:4px 7px;line-height:1.2}#last-coordinate:not(:empty)::before{content:"■";font-size:11px;margin-right:5px;color:#e24b27}

#live-level-field{margin-left:auto;margin-right:12px}#live-level{min-height:42px;width:84px;padding:0 9px;font-size:14px;font-weight:650;background:#fffdf5} @media(max-width:720px){#live-level-field{margin-left:auto;margin-right:0}#live-level{width:74px;min-height:40px;font-size:14px}.mode-tabs button{padding-inline:12px}.game-top{gap:5px}.game-top>.text-button{padding-inline:3px;white-space:nowrap}}

.player.urgent{border-color:#d88960;background:#fff0e4}.player.urgent small{color:#ae452b;font-weight:700}.clock-explain{margin:0 0 16px;font-size:13px;line-height:1.8;color:#6e7e64;background:#edf1e6;border-radius:9px;padding:10px 12px}.result.celebrating{background:#f3edce;border-color:#dfc771}

.sound-preview{width:100%;margin-bottom:12px;font-size:14px;min-height:44px}

.celebration-canvas{position:absolute;pointer-events:none;z-index:4;border:0;border-radius:6px}

.settings-gear{display:inline-flex;vertical-align:middle}.settings-gear svg{display:block}

#sound{display:inline-flex;align-items:center;justify-content:center}#sound span,#sound svg{display:block}

.undo-request{margin-bottom:12px;padding:14px;background:#edf5ee;border:1px solid #96b8a5;border-radius:12px}.undo-request-heading{display:flex;justify-content:space-between;gap:10px;align-items:center}.undo-request-heading strong{font-size:15px}.undo-request-heading b{font:700 15px ui-monospace,monospace;color:#23654e;white-space:nowrap}.undo-request p{font-size:13px;color:#697c6c;line-height:1.6;margin:8px 0 12px}.undo-request-actions{display:flex;gap:8px}.undo-request-actions button{flex:1;min-height:44px}.undo-credit{font-size:12px;line-height:1.7;color:#647962;margin:8px 2px 0}

.player strong.me{color:#1c5cba;background:#e4efff;border:1px solid #b5cef4;border-radius:5px;padding:2px 7px;align-self:flex-start;line-height:1.2}

.brand .brand-tagline{display:none;font-weight:400;letter-spacing:0;line-height:1.3;color:#6c8075}@media(max-width:720px){.brand .brand-tagline{display:block;font-size:12px;letter-spacing:-.15px}}


.android-download{min-height:44px;width:100%;font-size:14px;justify-content:center}.app-install-note{margin:-2px 0 14px;text-align:center}

html{-webkit-text-size-adjust:100%;text-size-adjust:100%;overflow-y:scroll;scrollbar-gutter:stable}
/* Keep board geometry independent of names, timer text, badges and notices. */
.play-area{min-width:0;overflow-anchor:none}
.header .brand{min-width:0}.brand>span:last-child{min-width:0}.brand strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.header-actions{flex-shrink:0}
.game-top{height:48px;flex-wrap:nowrap}.game-top>*,.mode-tabs{flex-shrink:0}.game-top>.text-button{white-space:nowrap}
.players{height:74px;align-items:stretch}.player{height:100%;min-height:0;flex:1 1 0;min-width:0;position:relative}
.player>span:nth-child(2){flex:1;min-width:0}.player strong{display:block;height:22px;line-height:22px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.player strong.me{height:22px;line-height:16px;width:fit-content;max-width:100%}
.player small{display:block;height:24px;line-height:12px;white-space:pre-line;font-variant-numeric:tabular-nums;overflow:hidden}
.turn-light{position:absolute;right:7px;top:10px;margin:0}
.versus{flex:0 0 62px;min-width:0;justify-content:center}.versus small,.versus>span{line-height:16px;white-space:nowrap;font-variant-numeric:tabular-nums}
.invite-bar{height:70px}.invite-bar>div{min-width:0}.invite-bar small,.invite-bar strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.invite-bar button{flex-shrink:0}
.board-shell>.result{position:absolute;top:10px;left:10px;right:10px;z-index:5;margin:0;pointer-events:none;box-shadow:0 4px 16px #183b2720}.result>div{min-width:0}.result small{line-height:1.5}
.undo-request{position:fixed;left:50%;bottom:calc(var(--ad-space,0px) + 12px + env(safe-area-inset-bottom));transform:translateX(-50%);width:calc(100% - 24px);max-width:440px;margin:0;z-index:9;box-shadow:0 8px 40px #183b2740}.undo-request-heading b{font-variant-numeric:tabular-nums}
.has-web-ad{--ad-space:140px}
@media(max-width:720px){
  .game-top{height:44px}.players{height:54px}.player{padding:5px 8px;gap:6px}.player>span:nth-child(2){gap:2px}
  .player strong{height:18px;line-height:18px}.player strong.me{height:18px;line-height:14px;padding:1px 6px}.player small{height:20px;line-height:10px}
  .turn-light{right:5px;top:8px;width:4px;height:4px}.versus{flex-basis:49px;gap:2px}.versus small,.versus>span{line-height:14px}
  .invite-bar{height:62px}.board-shell>.result{top:8px;left:8px;right:8px}.has-web-ad{--ad-space:98px}
}
.web-ad{position:fixed;inset:auto 0 0;z-index:6;padding:10px 12px max(6px,env(safe-area-inset-bottom));background:#f0f2eafc;border-top:1px solid #dce2d5;box-shadow:0 -3px 14px #263c3208}
.web-ad-heading{height:18px;max-width:728px;margin:auto;display:flex;justify-content:space-between;align-items:center;font-size:11px;color:#72816e}.web-ad-heading a{text-decoration:underline;text-underline-offset:2px}
.web-ad-content{height:90px;width:min(728px,100%);margin:auto;overflow:hidden}
.ad-preview{height:100%;display:flex;align-items:center;justify-content:center;gap:20px;background:linear-gradient(115deg,#e4ece1,#f9f7e9);border:1px solid #d6e0d1;border-radius:5px;color:#365943;font-size:15px}
.ad-preview>span:nth-child(2){display:flex;flex-direction:column;gap:5px}.ad-preview small{font-size:12px;color:#7a8875}.ad-preview b{font-size:10px;letter-spacing:1px;color:#7a8e74;border:1px solid #bfcdb8;padding:4px 6px;border-radius:3px}.ad-preview-mark{letter-spacing:3px;font-size:28px}
body.has-web-ad{padding-bottom:140px}
.privacy-page{max-width:760px;margin:40px auto;padding:0 24px;line-height:1.9}.privacy-page h1{font-size:27px;margin-top:28px}.privacy-page h2{font-size:18px;margin-top:28px}.privacy-page a{text-decoration:underline;text-underline-offset:3px}
.admission-countdown{font-size:28px;font-weight:750;color:#23654e;font-variant-numeric:tabular-nums;margin:20px 0}#admission-detail{white-space:pre-line;line-height:1.8}#admission-dialog .confirm-actions button{flex:1;min-height:48px}
@media(max-width:720px){.web-ad-content{height:50px}.web-ad{padding-top:12px}.ad-preview{gap:10px;font-size:14px}.ad-preview small{font-size:10px}.ad-preview-mark{font-size:22px}.ad-preview b{font-size:9px;padding:3px}.has-web-ad .action-bar{bottom:calc(98px + env(safe-area-inset-bottom))}body.has-web-ad{padding-bottom:110px}}

/* Keep controls readable without changing the board grid. */
.board-caption{flex-wrap:wrap;line-height:1.6}.below-actions{flex-wrap:wrap;line-height:1.6}
