@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/font-0.ttf) format('truetype');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/font-1.ttf) format('truetype');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/font-2.ttf) format('truetype');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/font-3.ttf) format('truetype');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/font-4.ttf) format('truetype');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/font-5.ttf) format('truetype');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/font-6.ttf) format('truetype');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/font-7.ttf) format('truetype');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(fonts/font-8.ttf) format('truetype');
}
:root{--bg:#f5f4ee;--ink:#29352a;--muted:#85877c;--line:#e3e3d9;--green:#3d5037;--soft:#eeefe5;--cream:#ece8d5;--wood:#879477}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:'DM Sans',sans-serif;font-size:14px}button,select{font:inherit}button,a,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button:disabled{cursor:default;opacity:.36}button{border:0;background:none}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,select:focus-visible{outline:3px solid #b58c4e;outline-offset:4px}button:hover:not(:disabled){filter:brightness(.93)}.site-header{max-width:1320px;margin:auto;padding:25px 54px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:10px;font-family:'Manrope',sans-serif;font-size:22px;font-weight:800;letter-spacing:-1px}.brand-mark{font-size:34px;line-height:1}.brand-period{color:#9aab79}.header-right{display:flex;gap:36px;align-items:center}.header-note{font-size:12px;color:var(--muted)}.text-button{font-size:13px;font-weight:600;display:flex;gap:10px;align-items:center}.book-icon{font-size:19px}.arrow{margin-left:12px;color:#898d7f}main{max-width:1044px;margin:auto;padding:0 36px}.intro{display:flex;justify-content:space-between;align-items:center;margin:43px 0 30px}.eyebrow{display:flex;align-items:center;gap:8px;font-size:9px;letter-spacing:2.1px;font-weight:700;color:#6d7c58;margin:0 0 14px}.eyebrow span{width:5px;height:5px;background:#809369;border-radius:50%}h1{font-family:'Manrope',sans-serif;font-size:36px;letter-spacing:-1.7px;font-weight:650;line-height:1.2;margin:0 0 11px}.subtitle{margin:0;color:var(--muted);font-size:13px}.untimed-pill{align-self:flex-end;border:1px solid var(--line);border-radius:25px;padding:8px 13px;font-size:11px;color:#777d6b;margin-bottom:6px;display:flex;align-items:center;gap:7px}.untimed-pill span{font-size:17px}.game-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:36px;align-items:start}.play-area{min-width:0}.player-bar{display:flex;align-items:center;gap:12px;height:57px;padding:0 3px 13px}.avatar{height:36px;width:36px;border-radius:10px;display:grid;place-items:center;font-size:26px}.dark-avatar{background:#394435;color:#f5f2df}.light-avatar{background:#e9e6d7;border:1px solid #dedbca;color:#374333}.player-info{display:flex;flex-direction:column;gap:4px}.player-info strong{font-size:12px;font-weight:650}.player-info>span{font-size:10px;color:var(--muted)}.player-color{margin-left:auto;letter-spacing:1.7px;font-size:8px;color:#8b8d80}.captured{display:flex;flex-wrap:wrap;margin-left:5px;max-width:160px;gap:0}.captured img{width:17px;height:21px;margin-left:-4px}.board-frame{padding:9px;background:#fdfcf6;border:1px solid #dedfd2;border-radius:5px;box-shadow:0 8px 26px #39442a09,0 1px 3px #39442a0b}.board{display:grid;grid-template-columns:repeat(8,1fr);aspect-ratio:1;border-radius:2px;overflow:hidden}.square{position:relative;padding:0;border:0;aspect-ratio:1;background:var(--cream);display:grid;place-items:center;border-radius:0;isolation:isolate}.square.dark{background:var(--wood)}.square:hover{filter:none!important}.square.selected:after{content:'';position:absolute;inset:0;border:3px solid #d2ae53;background:#d7bb5433;z-index:-1}.square.last{background:#d7d39b}.square.dark.last{background:#a5af7d}.square.check{background:#c87d68}.square img{width:82%;height:82%;object-fit:contain;user-select:none;-webkit-user-drag:none;filter:drop-shadow(0 2px 1px #22301e20);z-index:1}.square.legal:before{content:'';position:absolute;width:25%;height:25%;background:#364d3844;border-radius:50%;z-index:2;pointer-events:none}.square.legal.occupied:before{width:89%;height:89%;background:none;border:5px solid #364d3855}.coord{position:absolute;font-size:10px;line-height:1;font-weight:600;color:#6e805e;pointer-events:none}.dark .coord{color:#eeeada}.rank{left:5px;top:5px}.file{right:5px;bottom:4px}.bottom-player{padding:15px 3px 0;height:59px}.board-tools{display:flex;justify-content:space-between;align-items:center;padding:11px 2px 0;color:#8a8d7e;font-size:10px}.board-tools>span{display:flex;gap:7px;align-items:center}.small-dot{width:4px;height:4px;background:#9aa78c;border-radius:50%}.board-tools>div{display:flex;gap:9px}.icon-button{position:relative;font-size:21px;padding:2px 6px;color:#7a816e}.sound-slash{position:absolute;left:12px;top:5px;font-size:18px}.side-panel{background:#fbfbf6;border:1px solid var(--line);border-radius:10px;padding:23px;margin-top:0;box-shadow:0 3px 10px #343b2403}.panel-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:21px}.panel-heading h2{font-family:'Manrope',sans-serif;font-size:23px;letter-spacing:-.7px;font-weight:650;margin:0}.tiny-knight{font-size:26px;color:#9aab82}.mode-switch{display:flex;background:#eeefe7;border-radius:6px;padding:4px;gap:2px;margin-bottom:20px}.mode-switch button{flex:1;padding:9px 3px;font-size:16px;white-space:nowrap;display:flex;align-items:center;justify-content:center;gap:6px;color:#7f8575;border-radius:4px}.mode-switch button span{font-size:10px;font-weight:600}.mode-switch .active{background:#fcfcf8;box-shadow:0 1px 4px #323d2310;color:#394d32}.settings{display:flex;flex-direction:column;gap:15px;margin-bottom:20px}.setting-row{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:#7b8173}.setting-row select{background:#f7f7f0;border:1px solid #e3e6d9;border-radius:5px;color:#4b5a40;padding:7px 10px;font-size:11px;width:141px;cursor:pointer}.side-switch{display:flex;gap:5px}.side-switch button{border:1px solid #e7e7df;border-radius:5px;padding:6px 11px;font-size:11px;color:#8b8e80}.side-switch .active{border-color:#a7b298;color:#405135;background:#f0f3e9}.primary-button{background:var(--green);color:#f8f9ed;border-radius:6px;width:100%;padding:12px;font-size:12px;font-weight:500;display:flex;gap:7px;align-items:center;justify-content:center}.primary-button>span{font-size:16px;line-height:1}.status-card{display:flex;align-items:center;gap:10px;background:#eff2e7;border:1px solid #e5eadb;border-radius:7px;padding:14px 12px;margin:22px 0}.status-icon{font-size:29px;color:#71855d}.status-card strong{font-size:12px;font-weight:600}.status-card p{font-size:10px;color:#879177;margin:5px 0 0;line-height:1.5}.live-dot{width:5px;height:5px;border-radius:50%;background:#8b9e6b;margin-left:auto;flex-shrink:0}.section-label{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.section-label h3{font-size:11px;font-weight:600;margin:0}.section-label>span{font-size:8px;letter-spacing:1px;color:#979c8c}.history-table{border:1px solid #e8e9df;border-radius:5px;overflow:hidden}.history-head,.move-row{display:grid;grid-template-columns:40px 1fr 1fr;padding:9px 12px;font-size:11px}.history-head{background:#f4f5ed;color:#949b86;font-size:9px;border-bottom:1px solid #e8e9df}.history-body{height:143px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#d5d9ca transparent}.move-row{color:#526045;line-height:1.5}.move-row:nth-child(even){background:#f5f6ef}.move-row>span:first-child{color:#a0a58e;font-size:10px}.move-row.latest>span:last-child{color:#344b29;font-weight:650}.empty-history{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#a0a58f}.empty-history>span{font-size:23px;font-weight:400;color:#bac2a6;margin-bottom:8px}.empty-history p{font-size:10px;margin:0 0 7px}.empty-history small{font-size:9px;color:#b2b7a5}.game-actions{display:flex;gap:10px;margin-top:11px}.game-actions button{display:flex;align-items:center;justify-content:center;gap:6px;font-size:17px;flex:1;border:1px solid #e7e8dd;border-radius:5px;padding:6px;color:#858c77}.game-actions button span{font-size:10px}.legal-setting{display:flex;align-items:center;justify-content:space-between;padding-top:20px;margin-top:20px;border-top:1px solid #e7e8de}.legal-setting strong{font-size:10px;font-weight:500;display:block}.legal-setting>div>span{font-size:9px;color:#a2a895;display:block;margin-top:5px}.toggle{width:31px;height:18px;background:#ced2c6;border-radius:20px;padding:3px;transition:background .15s}.toggle span{display:block;width:12px;height:12px;background:#fff;border-radius:50%;transition:transform .15s}.toggle.on{background:#829366}.toggle.on span{transform:translateX(13px)}.bottom-note{display:flex;align-items:center;gap:15px;margin:30px 0 35px;border-top:1px solid var(--line);padding-top:23px}.note-symbol{font-size:23px;color:#8d9c73}.bottom-note p{margin:0;font-size:10px;color:#919781;line-height:1.7}.bottom-note strong{color:#737d64;font-weight:500}.bottom-note button{margin-left:auto;white-space:nowrap;font-size:10px;color:#788567}.bottom-note button span{margin-left:11px}footer{border-top:1px solid var(--line);padding:23px 54px;max-width:1320px;margin:auto;display:flex;justify-content:space-between;color:#a0a58f;font-size:9px}footer>span:first-child{letter-spacing:2px;font-size:8px}footer button{font-size:9px;color:#9a9f8b;padding:0}dialog{border:1px solid #e1e3d5;border-radius:16px;background:#fbfbf5;color:var(--ink);padding:40px;width:min(470px,calc(100% - 30px));max-height:85vh;box-shadow:0 25px 100px #1a291b33}dialog::backdrop{background:#23302366;backdrop-filter:blur(5px)}.modal-close{position:absolute;right:15px;top:12px;font-size:24px;color:#8b927d}dialog h2{font:650 29px 'Manrope',sans-serif;letter-spacing:-1px;margin:7px 0 12px}dialog p{font-size:13px;color:#858c78;line-height:1.7}dialog h3{font-size:13px;margin:22px 0 6px}dialog .primary-button{margin-top:24px}.modal-icon{font-size:52px;color:#70825b}.result{text-align:center}.result .eyebrow{justify-content:center;margin-top:13px}.secondary-button{border:1px solid var(--line);border-radius:6px;padding:11px;width:100%;margin-top:10px;font-size:12px}.promotion-choices{display:flex;gap:8px;margin-top:24px}.promotion-choices button{flex:1;background:#e9eddf;border-radius:7px;padding:7px}.promotion-choices img{width:100%;display:block}.promotion-choices span{font-size:9px}.toast{position:fixed;bottom:30px;left:50%;transform:translate(-50%,20px);opacity:0;pointer-events:none;background:#394b32;color:#f7f7ed;padding:12px 21px;border-radius:7px;font-size:12px;transition:.2s;z-index:10;box-shadow:0 4px 20px #25342120;max-width:90vw;text-align:center}.toast.show{opacity:1;transform:translate(-50%,0)}[hidden]{display:none!important}@media(min-width:1250px){main{max-width:1044px}.game-layout{gap:40px;grid-template-columns:minmax(0,1fr) 340px}}@media(max-width:950px){main{padding:0 26px}.site-header{padding:23px 26px}.game-layout{gap:24px;grid-template-columns:minmax(0,1fr) 300px}.side-panel{padding:18px}.header-note{display:none}h1{font-size:32px}.captured{max-width:90px}.captured img{width:14px}.bottom-note strong{display:block}.history-body{height:120px}.side-switch button{padding:6px 8px}.status-card{margin:18px 0}.legal-setting{margin-top:17px;padding-top:17px}}@media(max-width:720px){.site-header{padding:17px 20px}.brand{font-size:19px}.brand-mark{font-size:30px}.text-button{font-size:11px}.text-button .arrow{display:none}main{padding:0 20px;max-width:560px}.intro{margin:28px 0 25px}h1{font-size:29px;letter-spacing:-1.2px}.eyebrow{font-size:8px;letter-spacing:1.7px}.subtitle{font-size:12px}.untimed-pill{display:none}.game-layout{grid-template-columns:1fr;gap:25px}.side-panel{padding:22px}.history-body{height:133px}.bottom-note{margin:25px 0}.bottom-note button{font-size:9px}.bottom-note p{font-size:9px}.bottom-note strong{font-size:10px}.note-symbol{display:none}footer{padding:20px;font-size:8px;gap:12px}footer>span:first-child{font-size:7px;letter-spacing:1px}.coord{font-size:9px}.captured{max-width:130px}.board-frame{padding:7px}.player-bar{height:53px}.bottom-player{height:56px}.side-switch button{padding:6px 13px}.mode-switch button span{font-size:12px}.mode-switch button{padding:10px}.setting-row{font-size:12px}.game-actions button span{font-size:11px}.status-card p{font-size:11px}.status-card strong{font-size:13px}}@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
