*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 45% 0,#1c3543,#0b141c 65%);color:#eef4f6;font:16px/1.5 system-ui}header,main{max-width:720px;margin:auto;padding:20px 24px}header{display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:1px solid #ffffff18}.heading{display:flex;align-items:center;gap:14px}h1{font-size:26px;letter-spacing:1px;margin:0}.heading span{font-size:13px;color:#a8bcc6}.heading a{color:#76d4d7;text-decoration:none}.heading p{font-size:14px;color:#95aebc;margin:2px 0 0}button,select,input{font:inherit;color:#eef4f6;background:#172832;border:1px solid #526571;border-radius:12px;padding:10px 12px;min-height:44px}button{cursor:pointer}button:disabled{opacity:.45;cursor:default}button:focus-visible,a:focus-visible{outline:3px solid white;outline-offset:2px}.players{display:flex;gap:12px;margin-bottom:14px}.players>div{flex:1;padding:12px 16px;background:#13232d;border:2px solid transparent;border-radius:16px}.players>div.active{border-color:#f5b544}.players>div:nth-child(2).active{border-color:#5dc9ce}.players strong,.players span{display:block}.players strong{font-size:20px}.players span{font-size:14px;color:#a8bcc6}#name1{color:#f5b544}#name2{color:#5dc9ce}.board-wrap{padding:10px;background:#213541;border:1px solid #49606b;border-radius:20px;overflow:hidden}#board{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));border:2px solid #263946;border-radius:10px;overflow:hidden}.square{position:relative;aspect-ratio:1;border:0;border-radius:0;min-height:0;padding:0;background:#71848c;display:grid;place-items:center;touch-action:manipulation}.square.dark{background:#182d38}.square.selected{box-shadow:inset 0 0 0 3px #fff}.square.legal:after{content:'';position:absolute;width:23%;height:23%;border-radius:50%;background:#f5b544}.square.last{box-shadow:inset 0 0 0 2px #ffffff70}.piece{display:grid;place-items:center;width:80%;height:80%;border-radius:50%;background:radial-gradient(circle at 35% 25%,#ffe5a2,#e6a128 75%);box-shadow:inset 0 0 0 3px #ffffff25,0 2px 0 #8c631d;font-size:clamp(14px,3.8vw,26px);color:#382a10;pointer-events:none}.piece.teal{background:radial-gradient(circle at 35% 25%,#b0f4ef,#42aeb8 75%);color:#123e43;box-shadow:inset 0 0 0 3px #ffffff25,0 2px 0 #216b75}.piece.taken{opacity:.25}.tools{display:flex;gap:8px;margin-top:14px;flex-wrap:wrap}dialog{width:min(460px,calc(100vw - 32px));max-height:90dvh;overflow:auto;background:#13232d;color:#eef4f6;padding:24px;border:1px solid #526571;border-radius:20px}dialog::backdrop{background:#000a}label{display:block;margin:14px 0;font-size:14px}select,input{display:block;width:100%;margin-top:6px}details{margin-top:20px}details p{color:#b8cbd5}details a{color:#76d4d7}#result{margin-top:16px;padding:20px;background:#13232d;border-radius:16px}#result h2{margin-top:0}[hidden]{display:none!important}@media(max-width:600px){header,main{padding:16px 14px}h1{font-size:20px}.heading{gap:8px}header .mtaa-back{font-size:14px!important}#settings{font-size:14px;padding:8px}.board-wrap{padding:6px}main{max-width:610px}}@media(prefers-reduced-motion:no-preference){.piece{transition:opacity .15s}.square.legal:hover{background:#344b55}}

#review-panel,#practice-panel{margin-top:16px;padding:16px;border:1px solid #526571;border-radius:16px}#review-panel button{margin:4px}#options a{color:#76d4d7}body[data-theme="light"]{background:#eaf0f4;color:#152633}body[data-theme="light"] .players>div,body[data-theme="light"] dialog,body[data-theme="light"] #result{background:#fff;color:#152633}body[data-theme="light"] button:not(.square),body[data-theme="light"] select,body[data-theme="light"] input{background:#fff;color:#152633;border-color:#647b88}body[data-theme="light"] .heading span,body[data-theme="light"] .heading p,body[data-theme="light"] .players span,body[data-theme="light"] details p{color:#405967}body[data-theme="light"] .heading a,body[data-theme="light"] #options a{color:#12616c}body[data-theme="light"] #name1{color:#875800}body[data-theme="light"] #name2{color:#116672}body[data-theme="light"] .mtaa-turn-banner,body[data-theme="light"] .mtaa-game-notice{background:#fff;color:#152633}body[data-theme="light"] .mtaa-ownership{color:#405967}body[data-theme="contrast"]{background:#000;color:#fff}body[data-theme="contrast"] button:not(.square),body[data-theme="contrast"] select,body[data-theme="contrast"] input,body[data-theme="contrast"] dialog{background:#000;color:#fff;border:2px solid #fff}body[data-theme="contrast"] .square{background:#fff}body[data-theme="contrast"] .square.dark{background:#000}body[data-theme="contrast"] .piece{background:#ffce00;color:#000;border:3px solid #fff}body[data-theme="contrast"] .piece.teal{background:#00e5ff;color:#000;border:3px double #000}body[data-theme="contrast"] .square.selected,body[data-theme="contrast"] .square.last{box-shadow:inset 0 0 0 3px #fff}

/* Transparent realistic discs; stacked sprites distinguish kings. */
.piece{position:relative;background:url('/piece-sprites/checker-gold.webp') center / contain no-repeat!important;border:0!important;box-shadow:none!important;border-radius:0;font-size:0!important;color:transparent!important;overflow:visible}
.piece.teal{background-image:url('/piece-sprites/checker-teal.webp')!important}
.piece.king::after{content:'';position:absolute;inset:-14% 0 14%;background:inherit;pointer-events:none}
