:root{color:#111;font-synthesis:none;background:#176843;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}body{background:#176843;min-width:320px;margin:0}button,select,input{font:inherit}button{cursor:pointer}button:disabled{cursor:default;opacity:.48}.page-header{background:#fff;padding:10px max(12px,50vw - 620px)}.game-heading{margin-left:-4px}.breadcrumb{color:#000;margin:0 0 4px 4px;font-size:.84rem}.breadcrumb a{color:#111}.title-row{flex-wrap:wrap;align-items:baseline;gap:18px;display:flex}h1{margin:0;font-size:2rem;line-height:1.2}.header-action{background:0 0;border:0;padding:2px 0;font-weight:700}.header-action:hover,.header-action:focus-visible{text-decoration:underline}.game-shell{width:min(1240px,100%);margin:0 auto;padding:14px 12px 28px}.game-layout{grid-template-columns:minmax(0,1fr) 250px;align-items:start;gap:12px;display:grid}.table,.settings-panel,.info-section{border:1px solid #0d4d31;border-radius:4px}.table{color:#fff;background:#0d5b39;min-height:680px;padding:12px;position:relative}.settings-panel{color:#111;background:#fff;padding:14px}.settings-panel h2,.info-section h2{margin:0 0 10px;font-size:1.15rem}.settings-note{color:#444;margin:8px 0 14px;font-size:.85rem;line-height:1.5}.setting-row{border-top:1px solid #d4d9d6;grid-template-columns:1fr auto;align-items:center;gap:8px;padding:10px 0;display:grid}.setting-row select{background:#fff;border:1px solid #94a49b;border-radius:3px;min-width:92px;padding:5px}.toggle{width:46px;height:25px;position:relative}.toggle input{opacity:0;position:absolute}.toggle span{background:#cbd4cf;border:1px solid #9caaa2;border-radius:13px;width:100%;height:100%;display:block}.toggle span:after{content:"";background:#fff;border-radius:50%;width:19px;height:19px;transition:transform .15s;position:absolute;top:3px;left:3px;box-shadow:0 1px 2px #5558}.toggle input:checked+span{background:#147346}.toggle input:checked+span:after{transform:translate(21px)}.toggle input:focus-visible+span{outline-offset:2px;outline:3px solid #ffcf33}.menu-button{color:#fff;background:#126c43;border:0;border-radius:3px;width:100%;min-height:42px;margin-top:8px;font-weight:700}.menu-button.secondary{color:#111;background:#eef2ef;border:1px solid #b3bcb7}.players{grid-template-columns:repeat(3,minmax(120px,1fr));gap:8px;margin-bottom:12px;display:grid}.player-panel{background:#124e34;border:2px solid #8fb4a0;border-radius:3px;min-height:68px;padding:7px}.player-panel.current{border-color:#ffd84d;box-shadow:0 0 0 2px #ffd84d44}.player-name{align-items:center;gap:7px;font-weight:700;display:flex}.player-icon{color:#154b34;background:#fff;border-radius:50%;place-items:center;width:28px;height:28px;display:inline-grid}.player-meta{margin-top:4px;font-size:.82rem}.cpu-hand{min-height:38px;margin-top:5px;display:flex}.cpu-card-back{background:repeating-linear-gradient(45deg,#164e83 0 4px,#3474ad 4px 8px);border:2px solid #eee;border-radius:3px;width:27px;height:38px;margin-right:-12px;display:block}.field{padding:8px 0 16px;overflow-x:auto}.suit-row{grid-template-columns:28px repeat(13,minmax(39px,1fr));align-items:center;gap:3px;min-width:680px;margin:5px 0;display:grid}.suit-label{text-align:center;font-size:1.45rem}.suit-label.red{color:#ffb3ad}.field-slot{aspect-ratio:5/7;color:#c7ddd0;background:#ffffff08;border:1px dashed #b9d1c3;border-radius:3px;place-items:center;font-size:.72rem;display:grid;position:relative;overflow:hidden}.field-slot.playable{outline-offset:-3px;outline:3px solid #ffd84d}.field-card{object-fit:fill;width:100%;height:100%;display:block}.status{text-align:center;min-height:28px;margin:4px 0 7px;font-weight:700}.human-area{background:#114d33;border:2px solid #7ea790;border-radius:3px;padding:10px}.human-area.current{border-color:#ffd84d}.human-top{flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:8px;display:flex}.human-top strong{margin-right:auto}.action-button{color:#111;background:#fff;border:1px solid #fff;border-radius:3px;min-width:88px;min-height:38px;font-weight:700}.action-button.pass{background:#f1d9d4}.hand{align-items:flex-start;min-height:146px;padding:14px 4px 10px;display:flex;overflow-x:auto}.hand-card{background:0 0;border:0;border-radius:3px;flex:0 0 84px;width:84px;margin-right:-28px;padding:0;position:relative}.hand-card:last-child{margin-right:0}.hand-card:disabled{opacity:1}.hand-card.selected{z-index:2}.hand-card.selected img{outline-offset:1px;outline:3px solid #ffd84d;transform:translateY(-9px)}.hand-card img{aspect-ratio:712/1008;object-fit:fill;pointer-events:none;border-radius:3px;width:100%;transition:transform .12s;display:block}.hand-card.is-unplayable:after{content:"";border-radius:inherit;pointer-events:none;background:#64646459;transition:transform .12s;position:absolute;inset:0}.hand-card.is-unplayable.selected:after{transform:translateY(-9px)}.hand-card.is-in-flight{visibility:hidden}.flying-card{z-index:1000;pointer-events:none;transform-origin:0 0;object-fit:fill;will-change:transform;border-radius:3px;position:fixed;box-shadow:0 5px 12px #0004}@media (hover:hover) and (pointer:fine){.hand-card.is-playable:not(:disabled):not(.selected):hover img{transform:translateY(-8px)}}@media (prefers-reduced-motion:reduce){.hand-card img,.hand-card:after{transition:none}}.move-options{flex-wrap:wrap;gap:6px;min-height:34px;margin:7px 0;display:flex}.move-option{background:#e9f4ed;border:1px solid #fff;border-radius:3px;min-height:32px;padding:4px 9px}.selection-help{color:#d4e7db;margin:0;font-size:.83rem}.waiting-hand{padding:8px 0;display:flex}.card-back{aspect-ratio:5/7;background:repeating-linear-gradient(45deg,#164e83 0 5px,#3474ad 5px 10px);border:3px solid #eee;border-radius:3px;width:64px;margin-right:-22px}.info-section{color:#111;background:#fff;margin-top:14px;padding:18px;line-height:1.7}.info-grid{grid-template-columns:repeat(3,1fr);gap:18px;display:grid}.info-grid h3{margin:0 0 4px;font-size:1rem}.info-grid p{margin:0}dialog{border:1px solid #60736a;border-radius:4px;width:min(620px,100% - 24px);max-height:calc(100vh - 32px);padding:20px;overflow:auto}dialog::backdrop{background:#0009}dialog h2{margin-top:0}.dialog-actions{justify-content:center;gap:8px;margin-top:18px;display:flex}.dialog-actions button{color:#fff;background:#126c43;border:0;border-radius:3px;min-width:120px;min-height:40px;font-weight:700}.result-table{border-collapse:collapse;width:100%}.result-table th,.result-table td{text-align:left;border-bottom:1px solid #ccd4cf;padding:7px}.rules-copy{line-height:1.7}.rules-copy h3{margin-bottom:2px}.rules-copy p{margin-top:0}@media (width<=820px){.game-layout{grid-template-columns:1fr}.settings-panel{order:-1}.table{min-height:620px}.players{grid-template-columns:repeat(2,1fr)}.info-grid{grid-template-columns:1fr}}@media (width<=420px){.page-header{padding:8px}h1{font-size:1.7rem}.game-shell{padding:8px 5px 20px}.table{padding:7px 5px}.players{gap:4px}.player-panel{min-width:0;font-size:.88rem}.suit-row{min-width:610px}.hand-card{flex-basis:72px;width:72px;margin-right:-25px}.human-top{gap:5px}.action-button{min-width:74px}}
