:root{color-scheme:light;--ink:#172c35;--muted:#657276;--paper:#f6f2e9;--line:#ded8ca;--gold:#b47336;--dark:#223b46;--white:#fcfaf3}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0;background:var(--paper);color:var(--ink);font-family:system-ui,-apple-system,"Segoe UI",sans-serif;font-size:16px;line-height:1.5}button,input,select{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default;opacity:.6}a{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #ce7c3e;outline-offset:4px}#app{max-width:1120px;padding:0 36px;margin:auto}.site-header{display:flex;align-items:center;justify-content:space-between;padding:27px 0;border-bottom:1px solid var(--line);gap:16px}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;font-weight:750;font-size:24px}.brand img{width:40px;height:46px}.brand small{display:block;font-size:11px;font-weight:450;letter-spacing:.03em;color:var(--muted)}.text-button{border:0;background:transparent;color:var(--ink);padding:10px 3px;min-height:44px;font-weight:600}.text-button:hover{text-decoration:underline}.hero{display:grid;grid-template-columns:1.08fr 1fr;gap:70px;align-items:center;padding:56px 0 44px}.eyebrow{font-size:11px;letter-spacing:.15em;font-weight:750;color:var(--gold);margin:0 0 14px}h1{font-family:Georgia,serif;font-size:clamp(48px,5.5vw,70px);line-height:1.02;font-weight:500;margin:0 0 24px;letter-spacing:-.04em}h1 em{color:var(--gold);font-weight:400}h2{font-family:Georgia,serif;font-size:25px;line-height:1.2;margin:0 0 16px;font-weight:500}.lead{color:var(--muted);font-size:17px;line-height:1.7;margin-bottom:24px}.start-actions{display:flex;flex-direction:column;gap:12px;max-width:390px}.button{background:var(--dark);color:var(--white);border:1px solid var(--dark);border-radius:8px;padding:13px 22px;font-weight:650;min-height:48px;transition:background .15s}.button:hover{background:#35515b}.button.secondary{background:transparent;color:var(--ink);border-color:#b7bebc}.button.secondary:hover{background:#eae7de}.button.large{text-align:left;font-size:17px;padding:16px 22px}.button.large span{float:left;font-size:28px;margin:0 16px 0 0}.button.large small{display:block;font-size:12px;font-weight:400;opacity:.7;margin-top:2px}.name-line{font-size:13px;color:var(--muted)}.name-line button{font-size:13px;color:var(--ink)}.hero-arena{position:relative;padding:32px 24px 22px;background:linear-gradient(155deg,#e9e6db,#d9d6c9);border-radius:120px 120px 12px 12px;border:1px solid #cfcec0;box-shadow:inset 0 0 0 9px #eeebe2,0 24px 35px -35px #283e3e}.arena-caption{text-align:center;font-size:10px;letter-spacing:.2em;font-weight:700;margin:14px 0 25px;color:#62706a}.arena-foot{display:flex;align-items:center;justify-content:space-between;font-size:10px;font-weight:650;letter-spacing:.08em;margin:20px 8px 0}.arena-foot i{font-family:Georgia,serif;color:var(--muted);font-weight:400;letter-spacing:0}.board{width:min(100%,410px);aspect-ratio:1;display:grid;grid-template-columns:repeat(4,1fr);gap:5px;padding:10px;background:#49606a;border:1px solid #243e48;border-radius:9px;box-shadow:0 13px 26px -20px #0d2730;margin:auto}.cell{position:relative;display:flex;align-items:center;justify-content:center;padding:0;min-width:0;min-height:44px;border:0;border-radius:3px;background:#e4dfd1;color:var(--ink);outline-offset:-4px!important;aspect-ratio:1}.cell.shade{background:#c6c6b7}.piece{width:67%;height:67%;display:flex;align-items:center;justify-content:center;border-radius:50%;font-family:Georgia,serif;font-size:clamp(22px,4vw,36px);box-shadow:0 5px 0 #0003,0 6px 10px #0004;pointer-events:none;transition:transform .18s}.piece.white{background:radial-gradient(circle at 35% 25%,#fffdf5,#e2d9c4);border:2px solid #fff6;color:#7e6b49}.piece.black{background:radial-gradient(circle at 35% 25%,#526673,#142b35);border:2px solid #778387;color:#bfc8c6}.cell.selected{box-shadow:inset 0 0 0 4px var(--gold)}.cell.selected .piece{transform:translateY(-3px)}.cell.target:after{content:'';width:18%;height:18%;border-radius:50%;background:#9b662f}.cell.winning{box-shadow:inset 0 0 0 4px #b57631;background:#ded0a9}.cell.last:not(.winning):before{content:'';position:absolute;inset:3px;border:1px solid #789187;border-radius:2px}.preview{transform:rotate(-4deg);pointer-events:none}.preview .piece{font-size:32px}.home-bottom{display:grid;grid-template-columns:1fr 1.15fr;gap:22px;padding:14px 0 40px}.panel{border:1px solid var(--line);border-radius:10px;padding:25px 28px;background:#fcfaf44d}.panel-heading{display:flex;justify-content:space-between;gap:10px}.panel-heading .text-button{font-size:12px}.muted{color:var(--muted);font-size:13px}.stat-line{display:flex;gap:20px;flex-wrap:wrap}.stat-line strong{font-size:22px;display:block}.stat-line small{color:var(--muted)}.top-rating{padding:0;list-style:none;margin:0}.top-rating li{display:flex;align-items:center;gap:14px;padding:6px 0;border-top:1px solid var(--line);font-size:14px}.top-rating li span:first-child{color:var(--gold);font-family:Georgia,serif;font-size:20px}.top-rating li strong{margin-left:auto;font-size:13px}.game-toolbar{display:flex;justify-content:space-between;margin:16px 0}.match{max-width:510px;margin:auto;text-align:center;padding-bottom:30px}.players{display:flex;align-items:center;justify-content:space-between;gap:8px}.player{width:35%;display:flex;flex-direction:column;align-items:center}.player img{height:58px;width:50px}.nick{max-width:100%;overflow-wrap:anywhere;padding:7px 0 0;border:0;background:none;font-weight:650;font-size:15px;color:var(--ink);min-height:36px}.nick:disabled{opacity:1}.player small,.match-score small{display:block;color:var(--muted);font-size:11px}.match-score strong{font-family:Georgia,serif;font-size:37px;font-weight:400;white-space:nowrap}.game-status{font-weight:650;min-height:28px;margin:17px 0}.board-help{font-size:12px;color:var(--muted);margin:18px 0 0}.warning{font-size:13px;background:#eee0c7;border-radius:6px;padding:10px;margin:14px 0}.finish{font-size:14px;margin:20px 0 0}.finish p{margin:8px 0}.finish-actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}.notice{color:var(--muted);font-size:13px;text-align:center;margin:12px 0;overflow-wrap:anywhere}footer{display:flex;justify-content:space-between;gap:20px;border-top:1px solid var(--line);padding:22px 0;font-size:12px;color:var(--muted)}footer small{font-size:10px}footer nav{display:flex;gap:18px;align-items:center;flex-wrap:wrap}footer .text-button{font-size:12px;padding:0}dialog{padding:26px;max-width:min(550px,calc(100vw - 28px));max-height:calc(100dvh - 36px);border:1px solid var(--line);border-radius:12px;background:#fcfaf3;color:var(--ink);box-shadow:0 25px 90px #001c3d4d;overflow:auto}dialog::backdrop{background:#0b232b99}.dialog-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:20px}.dialog-heading h2{margin:4px 0 15px}.dialog-close{background:none;border:0;font-size:28px;line-height:1;min-width:44px;min-height:44px;color:var(--muted);margin:-8px -12px 0 0}.dialog-body p{font-size:14px;line-height:1.65}.dialog-body .button{margin:8px 8px 0 0}.modal-open{overflow:hidden}.rules-board{font-family:Georgia,serif;font-size:23px;line-height:1.35;letter-spacing:10px;text-align:center;background:#e6e2d6;border-radius:6px;padding:15px;margin:auto;width:200px}.nickname-input,select{width:100%;border:1px solid #a9b4b5;border-radius:6px;padding:12px;background:#fffef9;color:var(--ink);font-size:16px}.form-error{color:#a44b2f}.share-canvas{width:100%;height:auto;border-radius:8px}.share-text{width:100%;min-height:95px;resize:vertical;overflow-wrap:anywhere}.rating-table{width:100%;border-collapse:collapse;font-size:13px;margin-top:18px}.rating-table td,.rating-table th{text-align:left;padding:9px 5px;border-bottom:1px solid var(--line)}.rating-table td:nth-child(2){overflow-wrap:anywhere;max-width:130px}.rating-table tr.self{background:#efe1c9}.page-content{max-width:750px;margin:50px auto}.page-content h1{font-size:43px}.page-content p{line-height:1.8}@media(max-width:760px){#app{padding:0 20px}.hero{gap:30px;padding:38px 0;grid-template-columns:1.05fr 1fr}.hero-arena{padding:25px 16px 16px}.arena-caption{font-size:8px}.lead{font-size:14px}h1{font-size:49px}.button.large{font-size:14px;padding:13px}.button.large small{font-size:10px}.button.large span{margin-right:10px}.home-bottom{gap:15px}.panel{padding:20px}.panel-heading{display:block}.arena-foot{font-size:8px}.hero-arena .board{gap:3px;padding:7px}.preview .piece{font-size:24px}}@media(max-width:600px){#app{padding:0 16px}.site-header{padding:17px 0}.brand{font-size:21px}.brand small{font-size:9px}.site-header>.text-button{font-size:12px}.hero{grid-template-columns:1fr;gap:28px;padding:32px 0}.hero-copy{text-align:center}.hero-copy h1{font-size:56px}.lead br{display:none}.lead{font-size:15px}.start-actions{max-width:100%;text-align:left}.button.large{font-size:16px;padding:15px 19px}.button.large small{font-size:12px}.hero-arena{width:270px;max-width:100%;margin:auto;padding:20px 20px 16px;border-radius:85px 85px 10px 10px}.arena-caption{margin:14px 0 20px}.home-bottom{grid-template-columns:1fr;padding-top:0}.panel{padding:21px}.panel-heading{display:flex}.panel h2{font-size:23px}.game-toolbar{font-size:12px;margin:10px 0}.player img{height:45px}.nick{font-size:13px}.match-score strong{font-size:30px}.game-status{font-size:14px;margin:12px 0}.board{gap:4px;padding:8px}.piece{font-size:28px}.finish-actions .button{padding:11px 18px}.board-help{font-size:11px}footer{flex-direction:column;gap:8px;padding:18px 0}footer nav{gap:14px}.page-content{margin:35px 0}.page-content h1{font-size:34px}}@media(max-height:500px) and (min-width:600px){.match{display:grid;grid-template-columns:280px 1fr;column-gap:26px;max-width:730px}.match>.players{grid-column:2;grid-row:1}.match>.board{grid-column:1;grid-row:1/7;width:280px}.match>.game-status,.match>.finish,.match>.warning,.match>.board-help,.match>#rules-game{grid-column:2}.hero{padding:25px 0}.site-header{padding:14px 0}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;animation:none!important}}
.cookie-notice{border:1px solid var(--line);border-radius:8px;background:#ebe7dc;display:flex;align-items:center;gap:20px;padding:10px 18px;margin:0 0 20px}.cookie-notice p{flex:1;font-size:12px;margin:0}.cookie-notice button{font-size:12px;white-space:nowrap}@media(max-width:600px){.cookie-notice{gap:8px;flex-wrap:wrap}.cookie-notice p{flex-basis:100%}}
