.wrap{max-width:820px}.stage{padding:12px}.turnbar{--tb-msg-lines:2;background:var(--surface,#fff);border:1px solid var(--line-strong,#c7c5bb);border-radius:6px;padding:8px 12px;margin-bottom:8px}.status{font-size:14px;font-weight:650;line-height:22px}.message{font-size:16px;line-height:22px;height:calc(var(--tb-msg-lines)*22px);margin:2px 0 0;overflow:hidden}.table{max-width:520px;margin:auto;padding:8px;border-radius:12px;background:#245b43 url('assets/felt.webp') center/320px;box-shadow:inset 0 0 0 1px #183d2e;color:#fff9e8}.board{position:relative;width:100%;height:408px;isolation:isolate}.board:before{content:'';position:absolute;inset:8% 8%;border:1px solid #e4e2c733;border-radius:50%;pointer-events:none}.pile{position:absolute;transform:translate(-50%,-50%);width:52px;height:74px;border:2px solid transparent;border-radius:7px;background:transparent;padding:0;overflow:visible;cursor:default;color:#fff9e8;opacity:1!important}.pile svg{width:100%;height:100%;display:block;filter:drop-shadow(1px 2px 1px #10291c66)}.pile .rank-tag{position:absolute;bottom:calc(100% + 3px);left:50%;transform:translateX(-50%);font-size:14px;font-weight:750;line-height:18px;white-space:nowrap}.counts{position:absolute;top:calc(100% + 4px);left:50%;transform:translateX(-50%);font-size:12px;line-height:16px;white-space:nowrap}.pile.active{border-color:#81c5ff;outline:2px solid #194e78;cursor:pointer}.pile.destination{border-color:#f4d971;outline:2px solid #725a13;cursor:pointer}.pile.active .rank-tag,.pile.destination .rank-tag{background:#fff9e8;color:#153d2b;border-radius:4px;padding:1px 3px}.pile.complete .counts{color:#fff3af;font-weight:750}.pile[aria-disabled=true]{cursor:default}.pile:focus-visible,#current-card:focus-visible{outline:3px solid #fff;outline-offset:4px}.empty{display:grid;place-items:center;height:100%;border:1px dashed #e7e3c478;border-radius:5px;font-size:22px}.mark{position:absolute;right:-8px;top:-8px;width:22px;height:22px;border-radius:50%;background:#fff9e8;color:#16382b;border:1px solid #3f5f4b;font-size:16px;line-height:20px;font-weight:750}.current{position:absolute;left:63%;top:50%;transform:translate(-50%,-50%);width:66px;text-align:center}.current-card{width:66px;height:92px;display:block;border:2px solid #e8dfb787;border-radius:8px;padding:0;background:transparent;color:#fff9e8;opacity:1!important}.current-card svg{display:block;width:100%;height:100%}.current-card:not(:disabled){border-color:#f4d971;cursor:pointer}.current-label{position:absolute;bottom:calc(100% + 7px);left:50%;transform:translateX(-50%);white-space:nowrap;font-size:14px}.current-info{position:absolute;top:100%;left:50%;width:106px;transform:translateX(-50%);margin:7px 0 0;font-size:12px;line-height:18px}.actions{display:flex;gap:8px;align-items:stretch;justify-content:center;padding:8px 0 2px}.actions .btn{min-height:44px;font-size:16px;flex:1;max-width:230px}.actions .btn.sub{flex:0 0 116px;background:#fff9e8;color:#234032}.actions .btn:not(.sub){background:#fff0ac;color:#263c2b;border:1px solid #e4c967}.actions [hidden]{display:none!important}.legend{font-size:14px;line-height:22px;margin:8px 0}.utility{margin:8px 0}.utility summary{min-height:44px;line-height:44px;cursor:pointer;font-size:14px}.utility-controls{display:flex;gap:8px;flex-wrap:wrap;padding:4px 0}.utility .btn{min-height:44px}.field{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:8px 0}.field select,.field input{font:inherit;font-size:16px;min-height:44px;border:1px solid #86918b;border-radius:6px;padding:8px 10px;color:var(--ink,#26342a);background:var(--surface,#fff);max-width:100%}.records{font-size:14px;line-height:22px;margin:8px 0;min-height:44px}.result{padding:12px;background:#fff9e8;border:1px solid #c9c4a8;border-radius:6px;color:#26342a;margin-top:8px}.result h2{font-size:20px;margin:0 0 6px}.result p{margin:6px 0}.result .btn{min-height:44px;margin:4px 4px 0 0}.flying-card{position:fixed;z-index:80;pointer-events:none;transform-origin:0 0}.flying-card svg{width:100%;height:100%;display:block}.paused .board{opacity:.65}.article{margin-top:24px}.article figure{margin:20px 0}.article figure img{display:block;width:100%;height:auto;max-width:520px;margin:auto;border-radius:8px}.article figcaption{font-size:16px;line-height:1.7;margin:8px 0}.ad-gap{height:160px}@media(max-width:640px){.wrap{padding-left:12px;padding-right:12px}.stage{padding:8px}.turnbar{--tb-msg-lines:3;padding:6px 8px}.table{padding:4px}.board{height:416px}.pile{width:44px;height:62px}.pile .rank-tag{font-size:13px;line-height:16px}.counts{font-size:11px;line-height:15px}.current,.current-card{width:60px}.current-card{height:84px}.current-info{width:94px;font-size:12px}.legend{font-size:14px}.actions .btn.sub{flex-basis:104px}.game-lead{font-size:14px;line-height:1.6;margin:6px 0 10px}.game-title{margin:12px 0 4px;font-size:24px}.status{font-size:14px}.records{min-height:44px}.utility-controls .btn{font-size:14px}}@media(prefers-reduced-motion:reduce){.flying-card{display:none}}
.pile .top-card{display:block;height:100%;width:100%;position:relative;z-index:1}.pile .under-card{position:absolute;inset:5px 6px -5px -6px;z-index:0}.flip-back,.flip-face{position:absolute;inset:0}.current-card .empty{font-size:14px}

.actions .btn{padding:8px;white-space:nowrap}.play-surface{scroll-margin-top:8px}

.board{height:488px}.pile:not([data-pile="12"]) .rank-tag{top:3px;bottom:auto;z-index:3;background:#fff9e8;color:#244334;padding:0 3px;border-radius:3px;line-height:16px}.pile.face-top:not([data-pile="12"]) .rank-tag{display:none}@media(max-width:640px){.board{height:456px}.counts{font-size:12px;line-height:16px}}
