@charset "UTF-8";
:root{color-scheme:light;--paper:#f5f4ef;--ink:#30372e;--muted:#8a8e83;--line:#e1e2d9;--green:#65755e;--accent:#45553f;--board:#788770;--cell-line:rgba(38,58,30,.19);--peek-white:#fff;--peek-black:#181818;font-family:"Yu Gothic","Hiragino Kaku Gothic ProN",Meiryo,sans-serif;font-synthesis:none}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);-webkit-font-smoothing:antialiased}button,select{font:inherit}button,a,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button:disabled{cursor:default;opacity:.28}button:focus-visible,a:focus-visible,select:focus-visible{outline:2px solid #c19453;outline-offset:4px}button{border:0;background:none}button,select{touch-action:manipulation}a{color:inherit;text-decoration:none}svg{display:block}button svg,.coin-picker svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.game{max-width:548px;margin:0 auto;padding:34px 28px 24px}.header{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}.brand{display:flex;align-items:center;gap:15px}.brand h1{font-size:21px;letter-spacing:.1em;font-weight:600;margin:0}.brand-mark{width:35px;height:31px;position:relative;display:block}.brand-mark span{position:absolute;width:24px;height:24px;border:1.5px solid #7b846f;border-radius:50%;display:grid;place-items:center;font:15px Georgia,serif;background:var(--paper);color:#6e7864}.brand-mark span:first-child{top:0;left:0}.brand-mark span:last-child{top:7px;left:10px}.icon-button{width:40px;height:40px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;color:#747d6c;transition:background .15s}.icon-button:hover{background:#e9eae2}.help-mark{border:1px solid #909889;border-radius:50%;height:22px;width:22px;display:grid;place-items:center;font-size:13px;font-family:Georgia,serif}
.game-top{display:flex;justify-content:space-between;align-items:center}.mode-switch{display:flex;padding:3px;background:#e8e9e1;border-radius:7px;gap:2px}.mode-switch button{padding:7px 19px;border-radius:5px;font-size:11px;letter-spacing:.05em;color:#838a7b;transition:background .2s,box-shadow .2s}.mode-switch button[aria-pressed=true]{background:#fbfbf6;box-shadow:0 1px 3px #47503915;color:var(--ink)}.coin-picker{display:flex;align-items:center;gap:7px;position:relative;color:#77816f}.coin-picker select{appearance:none;border:0;background:none;color:#69745f;cursor:pointer;font-size:11px;line-height:32px;padding:0 20px 0 0;max-width:125px;outline-offset:0}.coin-picker .chevron{pointer-events:none;position:absolute;right:0;width:14px}.coin-picker>svg:first-child{width:17px}
.scoreboard{display:flex;justify-content:space-between;align-items:center;height:91px}.score-side{display:flex;gap:12px;align-items:center;position:relative;min-width:129px}.score-side.back{justify-content:flex-end;text-align:right}.score-coin{width:43px;height:43px;filter:drop-shadow(0 2px 2px #454c3328)}.side-label{display:flex;gap:8px;align-items:baseline;font-size:10px;line-height:1.4;white-space:nowrap;color:#6e7865}.player-label{font-size:8px;color:#9da393;letter-spacing:.04em}.score-side.back .side-label{justify-content:flex-end}.score-number{font-family:Georgia,"Times New Roman",serif;font-size:30px;line-height:1.15;font-variant-numeric:tabular-nums;font-weight:400}.turn-dot{width:5px;height:5px;border-radius:50%;background:#5d7250;opacity:0;transition:opacity .2s;flex-shrink:0}.score-side.active .turn-dot{opacity:1}.turn-status{color:#7a8370;font-size:10px;letter-spacing:.03em;white-space:nowrap;text-align:center}.turn-status.thinking:after{content:"";display:inline-block;width:3px;height:3px;border-radius:50%;background:currentColor;margin-left:6px;animation:thinking 1s infinite alternate}@keyframes thinking{from{opacity:.2}to{opacity:1}}
.board-frame{position:relative;border-radius:9px;padding:12px;background:#65775b;box-shadow:0 10px 25px #3a4b3120,0 2px 3px #3945300e,inset 0 1px 0 #ffffff20}.board{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));aspect-ratio:1;background:var(--board);border:1px solid var(--cell-line);border-radius:2px;overflow:hidden}.cell{position:relative;min-width:0;min-height:0;padding:0;display:flex;align-items:center;justify-content:center;aspect-ratio:1;border-right:1px solid var(--cell-line);border-bottom:1px solid var(--cell-line);outline-offset:-4px!important}.cell:nth-child(8n){border-right:0}.cell:nth-child(n+57){border-bottom:0}.cell:disabled{opacity:1}.cell:not(:disabled):hover{background:#f0f4e20e}.cell:not(:disabled):hover:empty:before{content:"";position:absolute;inset:22%;border-radius:50%;border:1px solid #e5eadf40}.cell.last-move:after{content:"";position:absolute;width:3px;height:3px;background:#f4f1d8aa;border-radius:50%;right:4px;bottom:4px}.board.has-hints .cell.legal:before{content:"";width:7px;height:7px;border-radius:50%;background:#e6ebd581;position:absolute}.star-point{position:absolute;z-index:1;pointer-events:none;width:3px;height:3px;border-radius:50%;background:#465b3da8;left:-2px;top:-2px}.coin{width:87%;height:87%;position:relative;filter:drop-shadow(1px 2px 1px #26331e63);transform:rotate(var(--rotation,0deg));transition:filter .2s}.coin-art{width:100%;height:100%;overflow:visible}.coin.flip{animation:coinflip .38s ease-in-out both;animation-delay:var(--delay,0ms)}.coin.placed{animation:place .3s cubic-bezier(.2,.7,.4,1.2) both}@keyframes coinflip{0%{transform:rotate(var(--rotation)) scaleX(1)}48%{transform:rotate(var(--rotation)) scaleX(.06) translateY(-3px)}100%{transform:rotate(var(--rotation)) scaleX(1)}}@keyframes place{0%{opacity:0;transform:rotate(var(--rotation)) scale(1.25) translateY(-8px)}100%{opacity:1;transform:rotate(var(--rotation)) scale(1)}}.side-reveal{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%) rotate(calc(-1 * var(--rotation,0deg)));display:none;align-items:center;justify-content:center;width:94%;height:94%;border-radius:50%;border:1px solid #d9d9d9;background:var(--peek-white);color:var(--peek-black);font-size:clamp(8px,2.5vw,13px);font-weight:600;box-shadow:0 1px 4px #28311c2b;letter-spacing:.02em}.board.peeking .coin-art{visibility:hidden}.board.peeking .side-reveal{display:flex}.board.peeking .coin[data-side="back"] .side-reveal{background:var(--peek-black);color:var(--peek-white);border-color:#373737}
.board-tools{display:flex;justify-content:space-between;align-items:center;margin:15px -6px 0}.tools-left,.tools-right{display:flex;align-items:center;gap:5px}.tool-button{display:flex;gap:7px;align-items:center;height:38px;padding:0 11px;font-size:10px;color:#7a846f;border-radius:6px;transition:background .15s}.tool-button:hover,.tool-button[aria-pressed=true],.tool-button.holding{background:#e7eae0;color:#43553a}.tool-button svg{width:18px;height:18px}.tool-button#peek{user-select:none;-webkit-user-select:none;touch-action:none}.tools-right .icon-button{width:35px;height:35px}.tools-right svg{width:17px;height:17px}.board-caption{font-size:10px;text-align:center;letter-spacing:.1em;margin:16px 0 0;color:#999e8f;min-height:15px}.board-caption:empty{display:none}
.dialog{border:1px solid #e2e5d9;border-radius:12px;padding:38px;width:min(360px,calc(100vw - 40px));background:#f8f8f1;color:var(--ink);box-shadow:0 24px 70px #1c2a2240}.dialog::backdrop{background:#27371f66;backdrop-filter:blur(4px)}.dialog-close{position:absolute;right:12px;top:12px;font-size:24px;font-weight:300}.dialog-eyebrow,.result-eyebrow{font-size:9px;letter-spacing:.17em;color:#919982}.dialog h2{font-size:22px;line-height:1.8;font-weight:500;letter-spacing:.06em;margin:12px 0 17px}.dialog p{font-size:12px;line-height:1.9;letter-spacing:.02em}.dialog p.muted{color:#909782;font-size:10px}.rule-coins{display:flex;align-items:center;justify-content:center;gap:24px;margin:20px 0}.rule-coins>span:not(.rule-arrow){width:65px;filter:drop-shadow(0 3px 2px #434e3320)}.rule-arrow{color:#9ca48e;font-size:21px}.rule-note{border-top:1px solid var(--line);margin-top:24px;padding:15px 0 21px;font-size:11px}.rule-note>span{font-weight:600}.rule-note p{font-size:10px;color:#7c866d;margin:4px 0 0}.primary-button{background:#5d7053;color:#f8f8ed;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:13px 18px;width:100%;border-radius:5px;font-size:12px;letter-spacing:.06em;transition:background .15s}.primary-button:hover{background:#475b3c}.primary-button span{font-size:16px}.text-button{color:#88927b;font-size:10px;letter-spacing:.06em;padding:12px}.small-dialog h2{font-size:19px}.small-dialog p{font-size:11px;color:#8b9380}.dialog-actions{display:flex;align-items:center;gap:15px;margin-top:25px}.dialog-actions .primary-button{width:auto;flex:1;justify-content:center}.result[hidden]{display:none}.result{position:absolute;inset:12px;display:grid;place-items:center;background:#33472d30;backdrop-filter:blur(3px);border-radius:2px;z-index:3}.result-card{text-align:center;background:#f8f8f0f5;padding:30px 36px 20px;border:1px solid #edf0e4;border-radius:10px;box-shadow:0 8px 35px #24351e3b;max-width:85%}.result-card h2{font-size:22px;letter-spacing:.08em;font-weight:500;margin:14px 0 8px}.result-card p{font-size:12px;color:#829074;margin:0 0 24px;letter-spacing:.15em}.result-card .text-button{margin-top:5px}.toast{position:fixed;left:50%;bottom:28px;transform:translate(-50%,10px);background:#3f4e38ee;color:#f7f7ec;padding:11px 20px;border-radius:6px;opacity:0;pointer-events:none;font-size:11px;letter-spacing:.05em;transition:opacity .2s,transform .2s;z-index:10;white-space:nowrap}.toast.visible{opacity:1;transform:translate(-50%,0)}
@media(min-width:900px){.game{padding-top:34px;max-width:548px}.board-frame{padding:14px}.result{inset:14px}}
@media(max-width:540px){.game{padding:25px 21px 21px}.header{margin-bottom:20px}.brand h1{font-size:18px}.brand{gap:11px}.scoreboard{height:84px}.score-side{min-width:108px;gap:8px}.score-coin{width:36px;height:36px}.score-number{font-size:27px}.side-label{gap:5px;font-size:9px}.player-label{font-size:7px}.turn-status{font-size:9px}.board-frame{padding:9px;border-radius:7px}.result{inset:9px}.board-tools{margin-top:12px}.board-caption{font-size:9px;margin-top:13px}}
@media(max-width:359px){.game{padding-left:13px;padding-right:13px}.score-side{min-width:99px;gap:6px}.score-coin{width:31px;height:31px}.player-label{display:none}.turn-status{font-size:8px}.mode-switch button{padding:7px 15px}.result-card{padding:22px 24px 15px}.result-card h2{font-size:19px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}
