:root{color-scheme:light;--ink:#173e3c;--muted:#677671;--paper:#f6f3e9;--line:#d5d9ca;--red:#a64937}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:15px/1.55 system-ui,-apple-system,sans-serif}main{max-width:1160px;margin:auto;padding:36px 32px}header{display:flex;justify-content:space-between;align-items:center;margin-bottom:28px}h1{font-family:Georgia,serif;font-size:48px;line-height:1.1;font-weight:400;letter-spacing:-2px;margin:5px 0 10px}h1 span{font-size:25px;color:var(--red);letter-spacing:5px;margin-left:14px}.eyebrow{font-size:10px;letter-spacing:2.6px;font-weight:700;margin:0 0 8px}.subtitle{color:var(--muted);margin:0;font-family:Georgia,serif;font-size:18px}.layout{display:grid;grid-template-columns:minmax(0,1fr) 284px;gap:48px}.play{min-width:0}.seat{display:flex;align-items:center;gap:10px;font-size:12px;padding:6px 4px}.seat>span:last-child{margin-left:auto;color:var(--muted)}.dot{width:8px;height:8px;border-radius:50%;background:var(--ink)}.dot.red{background:var(--red)}.hand{min-height:48px;display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding:6px 3px;color:var(--muted);font-size:12px}.hand button{padding:5px 8px;font-size:12px;background:#ede4ce;border-color:#b9ab8b}.frame{background:#c49255 url('cedar-crane.webp') center/cover;padding:12%;box-shadow:0 15px 36px #38361d1c,0 2px 3px #38361d30;border-radius:4px}#board{display:grid;grid-template-columns:repeat(9,1fr);aspect-ratio:1;background:#f6c88355;border:1.5px solid #635338}button,select{font:inherit;color:var(--ink);border:1px solid var(--line);background:transparent;border-radius:5px;cursor:pointer}button{padding:10px 14px}button:hover{background:#e7e9dd}button:focus-visible,select:focus-visible{outline:3px solid #0b8474;outline-offset:3px}button:disabled{opacity:.4;cursor:default}.cell{aspect-ratio:1;border-radius:0;border:0;border-right:1px solid #63533866;border-bottom:1px solid #63533866;padding:2px;position:relative;display:grid;place-items:center;background:transparent;min-width:0}.cell:nth-child(9n){border-right:0}.cell:nth-child(n+73){border-bottom:0}.cell:hover{background:#fff5b33d}.cell.selected{background:#0a77656b}.cell.last{box-shadow:inset 0 0 0 2px #953d2788}.cell.legal:after{content:'';position:absolute;width:24%;height:24%;border-radius:50%;background:#085d51c9;box-shadow:0 0 0 4px #f5f3df99;z-index:2}.cell.legal:has(.token):after{width:82%;height:82%;border-radius:2px;background:transparent;border:2px solid #086456;box-shadow:none}.token{width:88%;height:90%;clip-path:polygon(50% 0,92% 18%,100% 100%,0 100%,8% 18%);display:flex;flex-direction:column;align-items:center;justify-content:center;background:linear-gradient(120deg,#ffe5a8,#e8b56f);filter:drop-shadow(0 2px 1px #50351c55);color:#253b32;line-height:1.05;font-family:serif}.token .kanji{font-size:clamp(16px,2vw,28px)}.token small{font:700 clamp(6px,.7vw,9px)/1.3 system-ui;letter-spacing:.3px}.token.north{transform:rotate(180deg);color:#8a3326}.token.promoted{color:#ad3629;background:linear-gradient(120deg,#ffedc9,#eac58b)}aside{padding-top:12px}h2{font-family:Georgia,serif;font-weight:400;font-size:29px;line-height:1.2;margin:8px 0 12px}#status{min-height:70px;color:var(--muted);font-size:14px}.stats{display:flex;gap:55px;border-block:1px solid var(--line);padding:15px 0;margin-bottom:20px}.stats small{display:block;font-size:9px;letter-spacing:1.5px;color:var(--muted)}.stats b{font:22px Georgia,serif}label{display:block;font-size:11px;color:var(--muted);margin:14px 0 6px}select{width:100%;padding:10px;background:#fff8}.primary{background:var(--ink);color:white;border-color:var(--ink);width:100%;margin-top:12px}.primary:hover{background:#286159}.tools{display:flex;gap:10px;margin-top:10px}.tools button{flex:1}.quiet{border:0;padding:8px 0;font-size:12px;color:var(--muted)}.fieldnote{border-top:1px solid var(--line);margin-top:14px;padding-top:20px}.fieldnote p:last-child{font-family:Georgia,serif;font-size:17px}#selection{font-size:12px;color:var(--muted)}.save{font-size:10px;color:var(--muted)}details{font-size:12px}ol{max-height:120px;overflow:auto;padding-left:22px}footer{display:flex;justify-content:space-between;margin-top:32px;padding-top:16px;border-top:1px solid var(--line);font-size:11px;color:var(--muted)}dialog{border:1px solid var(--line);border-radius:10px;padding:32px;background:var(--paper);color:var(--ink);max-width:540px;width:calc(100% - 32px);max-height:85vh}dialog::backdrop{background:#133e3bc9;backdrop-filter:blur(5px)}dialog p{font-size:14px}dialog button{margin-right:8px}.close{float:right}#info-body h3{font-family:Georgia,serif}.hand .selected{outline:2px solid #167865;background:#d2e4d8}a{color:#137265}#info-body table{width:100%;border-collapse:collapse;font-size:12px}td{border-bottom:1px solid var(--line);padding:7px} @media(max-width:760px){main{padding:22px 14px}header{gap:12px;margin-bottom:20px}h1{font-size:35px}h1 span{font-size:18px;margin-left:5px}.subtitle{font-size:14px}header button{font-size:11px;padding:8px;white-space:nowrap}.layout{grid-template-columns:1fr;gap:26px}.play{max-width:580px;width:100%;margin:auto}.token .kanji{font-size:clamp(15px,4.3vw,26px)}.token small{font-size:clamp(6px,1.6vw,9px)}aside{padding:4px 6px}#status{min-height:0}.stats{gap:70px}.frame{padding:10%}footer{gap:15px}footer span{text-align:right}}
