:root{--ink:#17343a;--muted:#607675;--paper:#faf8f0;--panel:#fffdf7;--line:#cbd6cc;--teal:#225c60;--mint:#d4ede3;--gold:#d4b16e;--red:#a63245;--shadow:0 10px 35px #1e403217;color-scheme:light;font-family:"Noto Sans JP","Hiragino Kaku Gothic ProN",Meiryo,system-ui,sans-serif;background:#eef2e9;color:var(--ink)}
*{box-sizing:border-box}.card-art{height:auto;max-width:100%}body{margin:0;min-width:320px;background:radial-gradient(ellipse at 80% 0,#d5e8dd 0,transparent 60%),#f1f3eb}button,select{font:inherit}button{cursor:pointer;color:inherit;touch-action:manipulation}button:focus-visible,a:focus-visible,select:focus-visible{outline:3px solid #cf9130;outline-offset:3px}button:disabled{cursor:default;opacity:.55}button,select{border:1px solid var(--line);border-radius:9px;background:var(--panel);padding:10px 15px}button:hover{border-color:var(--teal)}h1,h2,h3,p{margin-top:0}h1,h2,h3{line-height:1.45}p{line-height:1.8}small{line-height:1.6}.eyebrow{font-size:11px;letter-spacing:.18em;font-weight:750;color:var(--muted);margin:0 0 10px}.primary{background:var(--teal);color:#fff;border-color:var(--teal);box-shadow:0 4px 12px #153f4320}.primary:hover{background:#17474b}.gold-button{background:#e8d4a7;color:#293e3f;border-color:#c9ad73}.quiet{background:transparent}.danger{color:var(--red)}.muted{color:var(--muted)}.pill{display:inline-block;border:1px solid var(--line);border-radius:20px;padding:3px 10px;font-size:11px;background:#ffffff80}.actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.tag{background:var(--mint);border-radius:5px;padding:3px 7px;font-size:11px;font-weight:700}.empty{font-size:11px;color:var(--muted);padding:12px 4px}.help{font-size:12px;color:var(--muted);line-height:1.7;margin:8px 0 0}[hidden]{display:none!important}
#header{max-width:1200px;padding:10px 22px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:62px}#header .brand{background:none;border:0;padding:0;display:flex;align-items:center;gap:12px}#header img{width:110px;max-height:56px;object-fit:contain}#header .header-links{display:flex;gap:6px;align-items:center}#header button:not(.brand){font-size:12px;padding:8px 11px}.version{font-size:10px;color:var(--muted)}#app{max-width:1200px;margin:auto;padding:0 22px 40px}
.hero{position:relative;overflow:hidden;display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:30px;min-height:530px;background:linear-gradient(115deg,#142c35f5,#244a51bd),url(assets/background.webp) center/cover;border-radius:24px;color:#fcf5e4;padding:46px 46px 34px;box-shadow:var(--shadow)}.hero .eyebrow{color:#e3c78d}.hero-logo{width:min(100%,380px);display:block;margin-bottom:23px}.hero h1{font-size:clamp(26px,3.1vw,40px);font-weight:550;letter-spacing:.04em;margin:0 0 17px}.hero p{font-size:14px;color:#dfe9e4;margin-bottom:23px}.hero .primary{background:#e3ce9a;color:#17343a;border-color:#e3ce9a;padding:14px 22px;font-weight:750}.hero .secondary{background:#ffffff0c;color:#fcf5e4;border-color:#c4d8ca70;padding:14px 18px}.hero .hero-notes{font-size:11px;letter-spacing:.06em;color:#c3d9d1;margin:21px 0 0}.hero-stage{height:380px;position:relative;display:flex;align-items:center;justify-content:center}.hero-stage:before{content:"";position:absolute;width:90%;aspect-ratio:1;border:1px solid #bddedb27;border-radius:50%;box-shadow:0 0 0 35px #bddedb0b,0 0 0 70px #bddedb05}.hero-card{position:absolute;width:43%;max-width:185px;filter:drop-shadow(0 14px 14px #0008);border-radius:8px}.hero-card:nth-child(1){transform:translateX(-79%) rotate(-19deg);z-index:1}.hero-card:nth-child(2){transform:translate(-34%,-4%) rotate(-8deg);z-index:2}.hero-card:nth-child(3){transform:translate(23%,-3%) rotate(6deg);z-index:3}.hero-card:nth-child(4){transform:translate(74%,8%) rotate(18deg);z-index:4}.stage-caption{position:absolute;bottom:-8px;font-size:10px;letter-spacing:.17em;color:#cae0d4;text-align:center}.start-settings{margin:20px 0;display:flex;gap:15px;flex-wrap:wrap;align-items:center;border:1px solid var(--line);background:#fffaf1;border-radius:13px;padding:18px 20px}.start-settings label{font-size:12px;display:flex;gap:8px;align-items:center}.start-settings select{font-size:12px;padding:8px}.start-settings .save-info{margin-left:auto;font-size:12px;color:var(--muted)}.intro-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin:32px 0}.intro-tile{border-top:1px solid #bbcbbf;padding:18px 8px}.intro-tile .num{color:#8e9d8f;font-family:Georgia,serif;font-size:28px}.intro-tile h2{font-size:17px;margin:8px 0}.intro-tile p{font-size:13px;color:var(--muted);margin-bottom:0}.home-footer{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:11px;color:var(--muted);border-top:1px solid var(--line);padding-top:20px}.home-footer button{font-size:12px}
.game-meta{display:flex;align-items:center;justify-content:space-between;padding:11px 16px;background:var(--paper);border:1px solid var(--line);border-radius:12px 12px 0 0;gap:8px}.game-meta strong{font-size:14px}.round-dots{display:flex;gap:4px;align-items:center}.round-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#cfdad0}.round-dot.on{background:var(--teal)}.board{background:radial-gradient(ellipse at center,#e4efe3,#d8e7dd);border:1px solid #c6d5c7;border-top:0;border-radius:0 0 20px 20px;padding:18px 20px 12px;box-shadow:inset 0 0 40px #325f4220;position:relative}.opponents{display:grid;grid-template-columns:repeat(var(--players),minmax(0,1fr));gap:14px}.player{border:1px solid #b7ccbc;background:#fbfcf5c9;border-radius:12px;padding:11px;position:relative;min-width:0}.player.turn{border-color:#46766b;box-shadow:0 0 0 2px #5f9b8125}.player.targetable{border-color:#b78e3a;box-shadow:0 0 0 3px #e9c86d60}.player-title{display:flex;justify-content:space-between;gap:5px;align-items:center;font-size:13px;font-weight:750}.player-title button{padding:0;background:transparent;border:0;font:inherit}.score{font-size:12px;white-space:nowrap}.turn-mark{font-size:10px;color:#d5eee0;background:var(--teal);border-radius:5px;padding:2px 5px}.player-body{display:flex;justify-content:center;align-items:center;gap:20px;margin:10px 0 2px}.hidden-hand{position:relative;width:96px;height:83px;display:flex;align-items:center;justify-content:center}.hidden-hand img{width:42px;height:60px;border-radius:4px;box-shadow:0 2px 5px #17343a30;position:absolute;transform:translateX(calc(var(--i) * 9px)) rotate(calc(var(--i) * 2deg));border:1px solid #d0dbcf}.hand-count{position:absolute;bottom:0;font-size:10px;color:var(--muted);background:#fff9;padding:1px 5px;border-radius:5px}.discard-wrap{text-align:center;min-width:55px}.discard-card,.deck-card{padding:0;background:none;border:0;position:relative;line-height:0}.discard-card img{width:49px;aspect-ratio:513/731;object-fit:contain;border-radius:4px;box-shadow:0 3px 6px #213e3d30}.discard-caption{font-size:9px;color:var(--muted);margin-top:4px;line-height:1.4}.pile-count{font-size:9px;position:absolute;right:-5px;bottom:-2px;border-radius:10px;background:#25474b;color:#fff;padding:3px 5px;line-height:1}.pile-open{font-size:9px;padding:2px 6px;background:transparent;border:0;margin-top:4px;min-height:24px;text-decoration:underline}.bag-mark{position:absolute;right:-7px;top:-13px;display:flex;align-items:center;gap:3px;background:#fff6da;border-radius:20px;padding:3px 6px;font-size:10px;border:1px solid #c4ad72}.bag-mark img{width:25px;height:25px;object-fit:contain}.table-center{display:flex;align-items:center;justify-content:center;gap:36px;padding:18px 0 10px;min-height:135px}.table-zone{text-align:center;min-width:67px}.zone-label{font-size:10px;letter-spacing:.08em;color:#58746b;margin:0 0 6px}.deck-card img{width:67px;aspect-ratio:513/731;border-radius:5px;box-shadow:3px 3px #a7b8ad,5px 5px #546f6266}.deck-count{position:absolute;bottom:8px;left:50%;transform:translateX(-50%);border:1px solid #d2c18799;background:#1b3b3fea;color:#fff2cf;padding:5px 8px;font-size:11px;line-height:1;border-radius:12px}.table-slot{width:67px;height:96px;display:flex;align-items:center;justify-content:center;border:1px dashed #8ca695;border-radius:6px;font-size:10px;color:#698377;text-align:center;line-height:1.8;padding:4px}.table-slot.has-card{padding:0;border:0}.table-slot img{width:100%;height:100%;object-fit:contain;border-radius:5px}.table-divider{width:1px;height:70px;background:#789d8240}.live-log{font-size:11px;min-height:30px;color:#4d695d;text-align:center;margin:7px 0 0;line-height:1.6}
.prompt{border:1px solid var(--line);border-radius:13px;background:#fffdf6;padding:15px 18px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;margin:14px 0;box-shadow:var(--shadow)}.prompt h2{font-size:16px;margin:0 0 3px}.prompt p{font-size:12px;color:#58716c;margin:0;line-height:1.7}.prompt.waiting{background:#f7faf3}.prompt .controls{display:flex;flex-wrap:wrap;gap:7px;justify-content:flex-end}.prompt .controls button{font-size:12px;padding:10px 13px;min-height:40px}.prompt .wide{grid-column:1/-1}.selected-note{background:#eaf1e2;border-radius:7px;padding:8px 10px;font-size:12px;color:#355a51;margin:8px 0 0}.choice-row{display:flex;gap:6px;flex-wrap:wrap}.choice-row button{font-size:11px;padding:7px 10px}.choice-row button.chosen{border-color:#9c7735;background:#f2dfb4}.mini-card-row{display:flex;gap:9px;flex-wrap:wrap}.mini-card-row button{padding:0;border:0;line-height:0;background:transparent}.mini-card-row img{width:64px;aspect-ratio:513/731;object-fit:contain;border-radius:4px}.mini-card-row .chosen img{outline:3px solid #c79a43;outline-offset:2px}.hand-panel{margin-top:14px;background:#fffdf7;border:1px solid var(--line);border-radius:16px;padding:15px 17px 12px;box-shadow:var(--shadow)}.hand-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px}.hand-heading h2{font-size:14px;margin:0}.hand-heading .actions button{padding:5px 9px;font-size:10px}.hand-scroller{overflow-x:auto;overflow-y:hidden;padding:7px 4px 4px;margin:0 -3px;scrollbar-width:thin}.hand{display:flex;justify-content:center;gap:10px;min-width:max-content;padding:0 4px 2px}.hand-item{position:relative;width:96px;flex:0 0 96px;padding-top:2px}.card-button{padding:0;border:0;border-radius:7px;background:none;display:block;width:100%;position:relative;text-align:left}.card-button img{width:100%;aspect-ratio:513/731;object-fit:contain;border-radius:6px;box-shadow:0 4px 9px #243f3325;vertical-align:bottom}.card-button.selected img{outline:3px solid #b58a34;outline-offset:2px;transform:translateY(-4px)}.card-button.available:after{content:"";position:absolute;inset:0;border:2px solid #56896b9c;border-radius:6px;pointer-events:none}.card-button.recommended img{outline:3px solid #c59940;outline-offset:2px}.card-caption{font-size:9px;text-align:center;margin-top:8px;color:#536d64;line-height:1.45;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.info-button{position:absolute;right:3px;top:6px;border-radius:50%;padding:0;width:23px;height:23px;display:grid;place-items:center;font-family:Georgia,serif;font-style:italic;font-size:14px;background:#fff9e8e8;box-shadow:0 1px 4px #0003;border:1px solid #baa576;z-index:2}.hand-best{display:flex;justify-content:space-between;align-items:center;gap:6px;font-size:11px;color:#5f766c;border-top:1px solid #dbe3d6;margin-top:11px;padding-top:9px}.hand-best strong{font-weight:650;color:#254c43}.game-bottom{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-top:14px}.game-bottom button{font-size:11px}.turn-steps{display:flex;gap:5px;align-items:center;font-size:9px;color:#738a7c}.turn-steps .current{color:#214e47;font-weight:750;background:#d4e6d8;border-radius:12px;padding:4px 8px}
#effect-layer:empty{display:none}#effect-layer{position:sticky;top:0;z-index:20;background:#17383efa;box-shadow:0 4px 18px #132c3a25;color:#fff7e3}.effect-bar{max-width:1156px;margin:auto;display:flex;align-items:center;gap:13px;padding:10px 17px}.effect-card{padding:0;background:none;border:0;line-height:0;flex-shrink:0}.effect-card img{width:50px;aspect-ratio:513/731;border-radius:4px}.effect-text{min-width:0;flex:1}.effect-kicker{font-size:9px;color:#bddace;letter-spacing:.08em;margin-bottom:3px}.effect-text h2{font-size:14px;margin:0 0 3px}.effect-text p{font-size:12px;line-height:1.55;margin:0;color:#e5eee6}.effect-text .effect-tip{color:#fae0a1}.effect-chain{font-size:10px;color:#bcd7ca}.effect-bar.active{border-left:4px solid #dab25e}.effect-bar.recent{padding-top:7px;padding-bottom:7px}.effect-bar.recent img{width:34px}.effect-bar.recent h2{font-size:12px}.effect-bar.recent p{font-size:11px}.effect-bar.target-you{background:#4c3933;border-color:#f0b575}
.tutorial-guide{border:1px solid #c4b173;border-left:5px solid #c6a15b;border-radius:13px;background:#fff5d9;padding:14px 17px;margin-bottom:14px}.tutorial-guide .eyebrow{color:#98772a}.tutorial-guide h2{font-size:16px;margin:0 0 6px}.tutorial-guide p{font-size:12px;margin-bottom:6px;line-height:1.7}.tutorial-guide .actions{margin-top:10px}.tutorial-guide button{font-size:12px;padding:8px 12px}.tutorial-guide .goal{font-weight:650;color:#4c5941}.tutorial-progress{display:flex;gap:5px;margin-top:12px}.tutorial-progress span{height:3px;flex:1;border-radius:3px;background:#e6d8ad}.tutorial-progress span.on{background:#9c7d39}
.result-header{background:linear-gradient(120deg,#17383e,#2d645e);color:#fff3d8;border-radius:20px;padding:28px 32px;margin:8px 0 20px}.result-header .eyebrow{color:#d6ba7c}.result-header h1{font-size:clamp(27px,4vw,42px);margin-bottom:9px}.result-header p{font-size:13px;margin-bottom:0;color:#d7e4d8}.result-header.loss{background:linear-gradient(120deg,#253c48,#4a606a)}.result-entries{display:grid;grid-template-columns:repeat(var(--players),minmax(0,1fr));gap:14px}.result-entry{background:var(--panel);border:1px solid var(--line);border-radius:13px;padding:16px;min-width:0}.result-entry.winner{border-color:#bd9851;background:#fff9e8}.result-entry h2{font-size:16px;margin-bottom:8px}.result-entry h3{font-size:13px;margin-bottom:9px}.five-cards{display:flex;gap:4px;margin-bottom:10px}.five-cards img{width:calc((100% - 16px)/5);aspect-ratio:513/731;object-fit:contain;border-radius:3px}.five-cards img.filler{opacity:.55}.result-entry p{font-size:11px;line-height:1.7;margin:4px 0}.scoreboard{width:100%;border-collapse:collapse;margin:24px 0;background:var(--panel);font-size:13px}.scoreboard caption{text-align:left;font-weight:750;font-size:15px;margin-bottom:11px}.scoreboard td,.scoreboard th{padding:11px 13px;text-align:left;border-bottom:1px solid var(--line)}.scoreboard td:last-child{font-weight:800;font-size:17px}.result-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:22px}
#dialog{border:1px solid #b5c6b8;border-radius:18px;max-width:min(94vw,940px);width:840px;max-height:90dvh;padding:24px;background:var(--paper);color:var(--ink);box-shadow:0 20px 90px #0005}#dialog::backdrop{background:#163336b9;backdrop-filter:blur(3px)}.dialog-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:18px}.dialog-head h2{font-size:21px;margin:0}.dialog-head button{padding:7px 12px;font-size:12px;flex-shrink:0}.detail{display:grid;grid-template-columns:minmax(170px,270px) 1fr;gap:27px;align-items:center}.detail img{width:100%;border-radius:10px;box-shadow:0 7px 17px #183c3525}.detail h3{font-size:22px;line-height:1.5}.detail p{font-size:14px;line-height:2}.detail .meta{font-size:11px;color:var(--muted)}.catalog-filter{display:flex;gap:5px;flex-wrap:wrap;margin-bottom:18px}.catalog-filter button{font-size:11px;padding:7px 10px}.catalog-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:16px}.catalog-card{padding:0;border:0;background:transparent;text-align:left}.catalog-card img{width:100%;aspect-ratio:513/731;object-fit:contain;border-radius:6px}.catalog-card > span:not(.card-face){font-size:10px;display:block;line-height:1.6;margin-top:5px}.role-list{display:grid;grid-template-columns:1fr 1fr;gap:8px}.role-item{border:1px solid var(--line);border-radius:8px;background:#fffdf8;padding:11px;display:flex;gap:10px;align-items:flex-start}.role-item .rank{font-family:Georgia,serif;font-size:25px;color:#998452;line-height:1}.role-item strong{font-size:13px}.role-item p{font-size:11px;margin:3px 0 0;line-height:1.6}.rules-section{margin:25px 0}.rules-section h3{font-size:16px}.rules-section p{font-size:13px}.flow{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.flow-step{background:#e7eee1;border-radius:9px;padding:14px}.flow-step b{display:block;font-size:14px;margin-bottom:6px}.flow-step p{font-size:12px;margin:0}.rule-example{display:flex;gap:6px;justify-content:center;padding:12px}.rule-example img{width:min(14vw,80px);border-radius:5px}.art-reference{width:100%;height:auto;display:block;border-radius:4px}.log-list{list-style:none;padding:0}.log-list li{font-size:12px;line-height:1.8;padding:9px 3px;border-bottom:1px solid var(--line)}.notice{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:100;max-width:min(92vw,600px);background:#6c3037;color:#fff;padding:13px 18px;border-radius:11px;box-shadow:0 5px 20px #0003;font-size:13px;line-height:1.7;pointer-events:none}#card-peek{position:fixed;z-index:70;width:210px;padding:8px;background:#fffdf4;border:1px solid #bcc9bd;border-radius:10px;box-shadow:0 10px 35px #132e3d55;pointer-events:none}#card-peek img{width:100%;border-radius:6px}#card-peek p{font-size:11px;line-height:1.6;margin:6px 0 0}.flight{position:fixed;z-index:90;pointer-events:none;border-radius:5px;box-shadow:0 8px 16px #0004}.empty-pile{border:1px dashed #afc3b1;width:49px;height:70px;display:grid;place-items:center;border-radius:4px;line-height:1.5;color:#789484;font-size:10px}.optional-info{margin-top:20px;font-size:12px;color:var(--muted)}.optional-info summary{cursor:pointer;padding:10px 0}.optional-info img{max-width:100%}
@media(min-width:1000px){.board{padding:20px 48px 12px}.hand-item{width:108px;flex-basis:108px}.table-center{gap:50px}.hidden-hand{height:91px}}
@media(max-width:760px){#app{padding:0 12px 25px}#header{padding:8px 12px;min-height:55px}#header img{width:89px;max-height:44px}#header .header-links{gap:4px}#header button:not(.brand){padding:7px 9px;font-size:11px}.version{display:none}.hero{grid-template-columns:1fr;padding:30px 25px 22px;gap:16px;text-align:center;min-height:auto;border-radius:18px}.hero-logo{width:280px;max-width:95%;margin:0 auto 20px}.hero h1{font-size:29px}.hero p{font-size:12px;margin-bottom:18px}.hero .actions{justify-content:center}.hero .hero-notes{font-size:10px}.hero-stage{height:235px;grid-row:2;max-width:350px;width:100%;margin:0 auto}.hero-card{width:33%;max-width:118px}.hero-stage:before{width:68%}.stage-caption{bottom:-3px;font-size:9px}.hero .primary,.hero .secondary{padding:12px 15px;font-size:12px}.start-settings{gap:10px;padding:13px;margin:14px 0}.start-settings label{font-size:11px;gap:6px}.start-settings .save-info{width:100%;margin-left:0;font-size:11px}.intro-grid{gap:12px;margin:22px 0}.intro-tile{padding:13px 3px}.intro-tile h2{font-size:14px}.intro-tile p{font-size:11px}.intro-tile .num{font-size:23px}.game-meta{padding:10px 12px;font-size:11px}.game-meta strong{font-size:12px}.board{padding:11px 10px 9px;border-radius:0 0 15px 15px}.opponents{gap:8px}.player{padding:9px 7px;border-radius:9px}.player-title{font-size:11px;flex-wrap:wrap}.player-title .score{font-size:10px}.turn-mark{font-size:9px}.player-body{gap:10px;margin-top:7px}.hidden-hand{width:72px;height:72px}.hidden-hand img{width:34px;height:49px;transform:translateX(calc(var(--i) * 7px)) rotate(calc(var(--i) * 2deg))}.hand-count{font-size:9px}.discard-card img{width:42px}.discard-wrap{min-width:43px}.empty-pile{width:42px;height:60px}.table-center{gap:24px;min-height:121px;padding:13px 0 5px}.deck-card img{width:56px}.table-slot{width:56px;height:80px}.table-zone{min-width:56px}.zone-label{font-size:9px}.table-divider{height:57px}.live-log{font-size:10px;min-height:28px;margin-top:5px}.prompt{padding:12px 13px;margin:11px 0;gap:9px;grid-template-columns:1fr}.prompt h2{font-size:14px}.prompt p{font-size:11px}.prompt .controls{justify-content:flex-start}.prompt .controls button{font-size:12px;padding:9px 12px;min-height:39px}.hand-panel{padding:12px 10px 10px;margin-top:11px}.hand-heading h2{font-size:12px}.hand{justify-content:flex-start;gap:8px}.hand-item{width:77px;flex-basis:77px}.info-button{width:21px;height:21px;font-size:12px}.hand-best{font-size:10px;align-items:flex-start;flex-wrap:wrap}.hand-best strong{max-width:100%}.bag-mark{top:-12px;right:-5px;font-size:9px;padding:2px 4px}.bag-mark img{width:21px;height:21px}.effect-bar{padding:8px 12px;gap:9px}.effect-card img{width:42px}.effect-text h2{font-size:12px}.effect-text p{font-size:11px}.effect-bar.recent p{font-size:10px}.effect-bar.recent img{width:29px}.tutorial-guide{padding:11px 12px;margin-bottom:10px}.tutorial-guide h2{font-size:14px}.tutorial-guide p{font-size:11px}.game-bottom{flex-wrap:wrap}.turn-steps{font-size:8px;gap:3px}.turn-steps .current{padding:3px 6px}.result-header{padding:24px}.result-entries{grid-template-columns:1fr}.result-entry{display:grid;grid-template-columns:1fr 1fr;gap:4px 12px;padding:13px}.result-entry .five-cards{grid-column:2;grid-row:1/5;margin:0;align-items:center}.result-entry h2{font-size:14px;margin:0}.result-entry h3{font-size:12px;margin:0}.result-entry p{font-size:10px;margin:0}.scoreboard{font-size:11px}.scoreboard td,.scoreboard th{padding:9px 7px}.scoreboard td:last-child{font-size:14px}#dialog{padding:17px;max-height:92dvh}.dialog-head h2{font-size:18px}.detail{grid-template-columns:1fr;gap:18px}.detail img{width:min(52vw,240px);margin:auto}.detail h3{font-size:18px;margin-bottom:9px}.detail p{font-size:13px;line-height:1.85}.role-list{grid-template-columns:1fr}.flow{grid-template-columns:repeat(2,1fr)}.flow-step{padding:11px}.flow-step b{font-size:12px}.flow-step p{font-size:11px}.catalog-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:15px 10px}.mini-card-row img{width:57px}.choice-row{gap:5px}.choice-row button{font-size:11px;padding:7px 9px}}
@media(max-width:460px){#header{gap:8px}#header img{width:76px}#header button:not(.brand){padding:7px}.table-center{gap:clamp(8px,3vw,17px)}.opponents[style*="3"] .player-body{gap:2px}.opponents[style*="3"] .hidden-hand{width:36px;height:63px}.opponents[style*="3"] .hidden-hand img{width:26px;height:37px;transform:translateX(calc(var(--i) * 4px))}.opponents[style*="3"] .discard-card img{width:33px}.opponents[style*="3"] .discard-wrap{min-width:33px}.opponents[style*="3"] .player{padding:8px 5px}.opponents[style*="3"] .player-title{font-size:10px}.opponents[style*="3"] .empty-pile{width:33px;height:47px}.opponents[style*="3"] .pile-open{padding:2px;font-size:8px}.opponents[style*="3"] .discard-caption{font-size:8px}.opponents[style*="3"] .player-title .score{font-size:9px}.intro-grid{grid-template-columns:1fr}.intro-tile{display:grid;grid-template-columns:35px 1fr;column-gap:12px}.intro-tile .num{grid-row:1/3}.intro-tile h2{margin:0 0 4px;font-size:15px}.intro-tile p{font-size:12px}.result-entry{grid-template-columns:1fr}.result-entry .five-cards{grid-column:1;grid-row:auto;max-width:290px;margin:7px 0}.result-entry h2{font-size:16px}.result-entry h3{font-size:13px}}
.source-available{outline:2px solid #668c6fa6;outline-offset:3px;border-radius:5px}.source-selected{outline:3px solid #b58632!important;outline-offset:3px}.table-slot .effect-card img{width:100%;height:100%}.table-slot .effect-card{width:100%;height:100%}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.reveal-observation p{margin-bottom:8px}.reveal-observation .mini-card-row{flex-wrap:nowrap;overflow-x:auto;padding:3px}.reveal-observation button{flex-shrink:0}
/* Readable card indices and public discard fans. */
.card-face{position:relative;display:block;line-height:0;isolation:isolate}
.card-face>.card-art{display:block;width:100%;height:auto}
.card-face .card-index{position:absolute;left:0;top:0;z-index:1;width:30px;min-height:40px;padding:2px 1px 3px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;margin:0;border:1px solid #fff;border-radius:5px 3px 5px 0;box-shadow:1px 2px 4px #0005;background:var(--suit-bg);color:var(--suit-ink,#fff);line-height:1;pointer-events:none;font-family:Arial,"Noto Sans JP",Meiryo,sans-serif}
.card-index strong{font-size:22px;line-height:24px;font-weight:800;letter-spacing:-1px;font-variant-numeric:tabular-nums}
.card-index small{font-size:8px;line-height:9px;font-weight:700;letter-spacing:-.3px}.card-index.gold-index strong{font-size:13px;letter-spacing:0}
.suit-diamond{--suit-bg:#e6f5f7;--suit-ink:#193849}.suit-ruby{--suit-bg:#b22543}.suit-sapphire{--suit-bg:#235ca6}.suit-emerald{--suit-bg:#207647}.suit-citrine{--suit-bg:#f0d154;--suit-ink:#392c0a}.suit-gold{--suit-bg:#875d14}
.card-button.selected .card-face{transform:translateY(-4px)}.card-button.selected img{transform:none}
.effect-card .card-face{width:50px}.effect-bar.recent .effect-card .card-face{width:40px}.table-slot>.card-face,.table-slot .effect-card .card-face{width:100%;height:100%}.table-slot .card-face>.card-art{height:100%;object-fit:contain}
.mini-card-row .card-face{width:64px}.rule-example .card-face{width:min(14vw,80px)}
.five-cards .result-card{padding:0;border:0;background:transparent;width:calc((100% - 16px)/5);min-width:0}.five-cards .result-card img{width:100%}.five-cards .result-card.filler{opacity:.55}.result-card .card-index{width:26px;min-height:34px}.result-card .card-index strong{font-size:18px;line-height:20px}.result-card .gold-index strong{font-size:11px}
.discard-wrap{--pile-card:66px;--pile-step:32px;width:100%;min-width:0;text-align:left}
.pile-heading{display:flex;align-items:center;justify-content:space-between;gap:6px;font-size:10px;color:#4b685c;min-height:26px}.pile-heading b{font-size:12px}.pile-heading .pile-open{font-size:11px;padding:3px 6px;min-height:28px;margin:0;white-space:nowrap}
.discard-scroller{max-width:100%;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scrollbar-width:thin;padding:5px 5px 6px;scroll-padding:5px}
.discard-stack{display:flex;align-items:flex-start;width:max-content;min-width:100%;padding-bottom:3px}
.discard-stack .discard-card{position:relative;width:var(--pile-card);flex:0 0 var(--pile-card);padding:0;border-radius:5px}
.discard-stack .discard-card+.discard-card{margin-left:calc(var(--pile-step) - var(--pile-card))}
.discard-stack .discard-card img{width:100%;height:auto}.discard-stack .discard-card:hover,.discard-stack .discard-card:focus-visible{z-index:2}
.discard-stack .empty-pile{width:var(--pile-card);height:calc(var(--pile-card)*731/513)}
.pile-top-label{position:absolute;right:2px;bottom:3px;background:#173e36ef;color:#fff;border:1px solid #fff9;border-radius:4px;padding:3px;font-size:9px;line-height:1;pointer-events:none}
.pile-overflow{display:block;font-size:9px;color:#526d60;text-align:center;line-height:1.5;margin-top:2px}
.player .player-body{display:grid;grid-template-columns:minmax(0,1fr);gap:2px}.player .hidden-hand{width:100%;height:70px}.self-discard{border-top:1px solid var(--line);margin-top:10px;padding-top:6px}.self-discard .discard-wrap{--pile-card:66px}
@media(max-width:760px){.card-face .card-index{width:26px;min-height:35px;padding:1px 0 2px}.card-index strong{font-size:19px;line-height:22px}.card-index.gold-index strong{font-size:12px}.card-index small{font-size:8px}.discard-wrap,.self-discard .discard-wrap{--pile-card:54px;--pile-step:28px}.effect-card .card-face{width:46px}.effect-bar.recent .effect-card .card-face{width:40px}.table-slot .effect-card .card-face{width:100%}.mini-card-row .card-face{width:60px}.player .hidden-hand{height:59px}.pile-heading{gap:2px;font-size:9px}.pile-heading b{font-size:10px}.pile-heading .pile-open{font-size:10px;padding:3px}.card-caption{font-size:10px}.hand-item{width:83px;flex-basis:83px}}
@media(max-width:460px){.opponents[style*="3"] .player-body{gap:2px}.opponents[style*="3"] .hidden-hand{width:100%;height:51px}.opponents[style*="3"] .hidden-hand img{width:26px;height:37px;transform:translateX(calc(var(--i)*5px))}.opponents[style*="3"] .discard-wrap{min-width:0}.opponents[style*="3"] .discard-card img{width:100%}.opponents[style*="3"] .pile-open{font-size:10px;padding:3px}.opponents[style*="3"] .discard-stack .empty-pile{width:var(--pile-card);height:calc(var(--pile-card)*731/513)}.pile-heading{flex-wrap:wrap}.pile-overflow{font-size:8px}.result-card .card-index{width:26px}}

/* The player's public pile belongs to the table, with room for every index. */
.board>.self-discard{border:1px solid #73918466;border-radius:10px;background:#e5eee16b;margin:9px 0 4px;padding:5px 12px 2px;box-shadow:inset 0 1px 10px #274c3510}
.board>.self-discard .pile-heading{font-size:12px;font-weight:700}.board>.self-discard .discard-wrap{--pile-card:60px}.board>.self-discard .discard-scroller{padding-bottom:4px}
.copy-zone:empty{display:none}.copy-zone{display:flex;justify-content:center;gap:8px}.copy-zone button{padding:4px;background:#fff9;display:flex;align-items:center;gap:8px;font-size:11px}.copy-zone .card-face{width:48px}
.flight{line-height:0;will-change:transform;transform-origin:center}.flight>img,.flight .card-art{display:block;width:100%;height:auto;border-radius:5px}.flight .card-face{width:100%}
#cinema-layer{position:fixed;inset:0;z-index:85;pointer-events:none;display:grid;align-items:center;overflow:hidden}
.effect-cutin{position:relative;display:flex;align-items:center;justify-content:center;gap:30px;width:100%;padding:28px max(24px,calc((100vw - 800px)/2));background:linear-gradient(108deg,#102f38f2,#124b4df5 55%,#102a36ef);color:#fff8df;border-block:2px solid #dfc77e;box-shadow:0 0 75px #08252fc4,inset 0 0 70px #1c85845e;isolation:isolate}
.effect-cutin:before{content:'';position:absolute;inset:6px 0;border-block:1px solid #f5dd905c;pointer-events:none}.cutin-card{flex:0 0 122px;transform:rotate(-8deg);filter:drop-shadow(0 6px 20px #f8d87c77)}.cutin-card .card-art{border-radius:8px}.cutin-copy{position:relative;max-width:560px}.cutin-copy>span{font-size:11px;font-weight:800;letter-spacing:.22em;color:#eacf8b}.cutin-copy>p{font-size:18px;margin:8px 0 0}.cutin-copy h2{font-size:clamp(23px,4vw,40px);letter-spacing:.04em;line-height:1.4;margin:3px 0 12px;text-shadow:0 3px 12px #0009}.cutin-copy strong{font-size:15px;line-height:1.8;font-weight:500}.cutin-sparks{position:absolute;inset:0;z-index:-1;opacity:.55;background:radial-gradient(ellipse at 25% 50%,#fff9b85c,transparent 50%),repeating-linear-gradient(157deg,transparent 0 70px,#efd79116 71px 73px,transparent 74px 125px)}.defense-cutin{background:linear-gradient(110deg,#3b2d17f5,#705721f5,#392918f5);box-shadow:0 0 70px #5d400a88}
#animation-status{position:fixed;bottom:14px;left:50%;transform:translateX(-50%);z-index:95;display:flex;align-items:center;gap:15px;background:#173b36ed;color:#fff8df;box-shadow:0 4px 18px #0004;padding:8px 12px;border-radius:12px;max-width:calc(100vw - 24px);font-size:12px;white-space:nowrap}#animation-status button{font-size:11px;padding:8px}
.decision-open{overflow:hidden}#decision-dimmer{position:fixed;inset:0;z-index:50;background:#071d27c9;backdrop-filter:blur(2px)}
#decision-layer{position:fixed;z-index:60;top:50%;left:50%;transform:translate(-50%,-50%);width:min(940px,calc(100vw - 32px));max-height:calc(100dvh - 28px);overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:24px 28px 18px;border:1px solid #dcc68c;border-radius:20px;background:linear-gradient(135deg,#fffdf5,#f0f2e5);box-shadow:0 28px 100px #0008;color:var(--ink)}
.decision-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px}.decision-toolbar>div{display:flex;gap:5px;flex-wrap:wrap}.decision-toolbar button{font-size:11px;padding:7px 10px;min-height:36px}.decision-kicker{font-size:11px;letter-spacing:.06em;color:#8a651b;font-weight:800}#decision-title{font-size:clamp(22px,3.4vw,32px);line-height:1.55;margin:17px 0 16px;outline:none}
.decision-effect{display:flex;gap:14px;align-items:center;padding:12px 15px;background:#e4ebe0;border-radius:12px;border-left:4px solid #a28239}.decision-effect>button{background:transparent;padding:0;border:0;flex:0 0 60px}.decision-effect>div{min-width:0}.decision-effect p{margin:4px 0;font-size:12px}.decision-effect strong{font-size:14px}.decision-effect .tag{display:inline-block;margin:4px 7px 0 0}.decision-effect .card-face{width:60px}
#decision-layer .prompt{display:flex;flex-direction:column;align-items:stretch;gap:12px;background:transparent;border:0;box-shadow:none;padding:0;margin:16px 0}#decision-layer .prompt h2{display:none}#decision-layer .prompt p{font-size:14px;line-height:1.85;margin:0}#decision-layer .controls{justify-content:flex-start;flex-wrap:wrap;gap:8px;order:2;position:sticky;bottom:-1px;padding:11px 0;background:#f5f5eefa;z-index:5;border-block:1px solid #c5cfba88}#decision-layer .controls button{min-height:44px;font-size:13px;padding:10px 15px}#decision-layer .selected-note{font-size:13px}#decision-layer .choice-row button{min-height:42px;font-size:13px}#decision-layer .mini-card-row{flex-wrap:wrap;gap:12px}#decision-layer .mini-card-row .card-face{width:90px}
.decision-hand-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin-top:17px}.decision-hand-heading h3{font-size:14px;margin:0}.decision-hand-heading small,.decision-hand-heading>span{font-size:11px;font-weight:400}.decision-hand{display:grid;grid-template-columns:repeat(auto-fit,minmax(76px,1fr));gap:15px 10px;padding:18px 3px 8px}.decision-hand .hand-item{width:100%;max-width:104px;min-width:0;justify-self:center}.decision-hand .card-caption{line-height:1.5;white-space:normal}.decision-hand .card-button{width:100%}.decision-hand .info-button{width:26px;height:26px}.decision-reference{margin-top:18px;border-top:1px solid var(--line);padding-top:12px}.decision-reference summary{font-size:12px;cursor:pointer}.decision-help{font-size:11px;color:var(--muted);line-height:1.8;margin:13px 0 0}
.decision-sources{display:grid;grid-template-columns:repeat(auto-fit,minmax(125px,1fr));gap:14px;padding:9px 3px}.decision-sources>button{display:flex;align-items:center;flex-direction:column;gap:8px;padding:12px;font-size:12px;background:#fffdf7}.decision-sources small{font-size:11px}.source-art{width:67px;display:block}.source-art img{width:100%;height:auto;display:block;border-radius:5px}.decision-piles{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px}.decision-piles section{min-width:0;background:#e3ecdf;border-radius:10px;padding:10px}.decision-piles h3{font-size:12px;margin:0 0 4px}.decision-piles .discard-wrap{--pile-card:72px;--pile-step:38px}
#decision-dock{position:fixed;bottom:12px;left:50%;transform:translateX(-50%);z-index:45;display:flex;align-items:center;gap:12px;width:max-content;max-width:calc(100vw - 20px);padding:8px 12px;background:#fffdf5f5;border:1px solid #bba36e;border-radius:12px;box-shadow:0 6px 28px #17353455;font-size:11px}#decision-dock button{font-size:12px;padding:10px}
@media(max-width:760px){.board>.self-discard{padding:4px 7px 0;margin-top:6px}.board>.self-discard .discard-wrap{--pile-card:54px}.effect-cutin{gap:18px;padding:24px 22px}.cutin-card{flex-basis:85px}.cutin-copy>span{font-size:8px;letter-spacing:.13em}.cutin-copy>p{font-size:13px}.cutin-copy h2{font-size:22px;margin-bottom:8px}.cutin-copy strong{font-size:12px}#decision-layer{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);padding:14px 14px 16px;border-radius:15px}.decision-toolbar{align-items:flex-start;flex-direction:column;gap:8px}.decision-toolbar>div{width:100%;justify-content:space-between}.decision-toolbar button{font-size:11px;padding:7px 10px}#decision-title{font-size:22px;margin:15px 0}.decision-effect{padding:10px;gap:11px}.decision-effect strong{font-size:13px}.decision-effect p{font-size:11px}.decision-effect .card-face,.decision-effect>button{width:50px;flex-basis:50px}#decision-layer .prompt p{font-size:12px}#decision-layer .controls{gap:6px}#decision-layer .controls button{font-size:12px;padding:9px 10px}.decision-hand{grid-template-columns:repeat(4,minmax(0,1fr));gap:15px 8px}.decision-hand .card-caption{font-size:9px}.decision-piles{grid-template-columns:1fr}.decision-sources{grid-template-columns:repeat(2,minmax(0,1fr))}.decision-help{font-size:10px}#decision-dock{gap:8px;padding:7px 9px}#decision-dock span{max-width:95px}#animation-status{font-size:11px;gap:9px}.decision-piles .discard-wrap{--pile-card:64px}}
[hidden]{display:none!important}
#decision-layer .decision-footer{position:sticky;bottom:-18px;display:flex;justify-content:flex-start;flex-wrap:wrap;gap:8px;margin:12px -3px -5px;padding:12px 3px;background:#f5f5eef5;backdrop-filter:blur(8px);border-top:1px solid #c5cfba;z-index:6;box-shadow:0 -8px 18px #f5f5eeaa}#decision-layer .decision-footer button{min-height:44px;font-size:13px;padding:10px 15px}
@media(max-width:760px){#decision-layer .decision-footer{bottom:-16px;gap:6px}#decision-layer .decision-footer button{font-size:12px;padding:9px 10px}}

/* Lasting receipts distinguish losses, gains and replenishment after an effect. */
.hand-change{margin:12px 0;padding:15px 17px;border:1px solid #b8cbbc;border-radius:13px;background:#fffdf5;box-shadow:0 4px 16px #1b443514}.change-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.change-heading h3{font-size:16px;margin:3px 0 0}.change-kicker{font-size:10px;font-weight:700;letter-spacing:.04em;color:#597267}.change-heading button{font-size:11px;padding:7px 10px;flex-shrink:0}.change-cause{margin:7px 0 11px;font-size:11px;color:#50665b;line-height:1.6}.change-columns{display:grid;grid-template-columns:1fr 1fr;gap:12px}.change-columns>div{min-width:0;padding:11px;border-radius:9px}.change-loss{background:#faeeed;border:1px solid #e1bfc0}.change-gain{background:#eaf3e6;border:1px solid #b6cfb0}.change-columns h4{font-size:12px;margin:0 0 10px;color:#853b46;line-height:1.6}.change-gain h4{color:#2e6444}.change-columns h4>span{font-size:16px;font-weight:800}.change-columns h4 small{font-size:11px;margin-left:5px}.change-cards{display:flex;gap:12px;flex-wrap:wrap;align-items:flex-start}.change-card{display:flex;align-items:center;gap:10px;margin:0;flex:1 1 155px;min-width:0}.change-card>button,.change-hidden{width:58px;flex:0 0 58px;display:block;padding:0;border:0;background:transparent;border-radius:5px;box-shadow:0 3px 8px #193d3529}.change-hidden img{display:block;width:100%;height:auto;border-radius:5px}.change-card figcaption{min-width:0;display:flex;flex-direction:column;gap:3px;line-height:1.6}.change-card figcaption strong{font-size:12px}.change-card figcaption>span{font-size:10px;color:#4c6259}.change-card figcaption small{font-size:10px;color:#40554d}.change-empty{font-size:12px;margin:0;min-height:48px;display:flex;align-items:center;color:#6c7770}.change-waiting{font-size:12px;line-height:1.7;margin:10px 0 0;padding:8px 10px;background:#f6ecd2;border-radius:6px;color:#71531d}#decision-layer .hand-change{padding:12px;margin:14px 0}#dialog .hand-change{box-shadow:none}.hand-change button:focus-visible{outline:3px solid #b58329;outline-offset:3px}
@media(max-width:760px){.hand-change{padding:12px 10px}.change-heading h3{font-size:14px}.change-kicker{font-size:9px}.change-cause{font-size:10px}.change-columns{gap:8px}.change-columns>div{padding:8px}.change-columns h4{font-size:11px}.change-columns h4 small{font-size:10px;margin-left:2px}.change-card{flex-direction:column;align-items:flex-start;gap:7px;flex-basis:80px}.change-card>button,.change-hidden{width:60px;flex-basis:auto}.change-card figcaption strong{font-size:11px}.change-card figcaption>span,.change-card figcaption small{font-size:10px}.change-waiting{font-size:11px}.change-empty{font-size:11px}#decision-layer .hand-change{padding:10px}.change-cards{gap:12px}}

/* Clear turns, broad player selection, and readable outcomes without extra dialogs. */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.header-links{flex-wrap:wrap;justify-content:flex-end}.light-mode-toggle[aria-pressed="true"]{background:#e5eecb;border-color:#6c8742;color:#294818;font-weight:800}
.turn-pill{font-weight:800;background:#234d4b;color:#fff;padding:7px 13px}.turn-pill.mine{background:#795514;color:#fff7d1;border:2px solid #dfbd68}
.player.targetable{cursor:pointer;outline:3px solid #c29131;outline-offset:1px;background:#fff8d9}.player.targetable .player-title button{min-height:40px;font-weight:800}.player.targetable:hover,.player.targetable:focus-within{background:#ffefb5}.player.target-selected{outline:4px solid #33826e;background:#e3ffed}.player.target-selected .player-title button:after{content:' ✓';color:#236d51;font-weight:900}
.effect-owner,.effect-active{box-shadow:0 0 0 2px #ffe19b,0 0 24px #edc66488!important}.effect-target{outline:3px solid #d99173;outline-offset:2px}
.effect-prompt{border:2px solid #b58b39}.effect-prompt .controls .primary{min-height:46px;font-size:14px;font-weight:800;background:#795219;color:#fff8de;border-color:#cfa655}.effect-prompt .choice-row button{min-height:44px;min-width:68px;font-size:14px}.target-tip{font-weight:700;color:#78551e!important}
.board-notice{margin:7px 0 0;border:1px solid #829a77;border-radius:8px;background:#fff9e5;color:#294b41;padding:7px 10px;font-size:12px}.board-notice summary{cursor:pointer;line-height:1.5}.board-notice summary b{font-size:11px}.board-notice summary span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.board-notice>div{display:flex;gap:12px;padding-top:10px;align-items:flex-start}.board-notice>div>button{padding:0;border:0;background:none;width:66px;flex:0 0 66px}.board-notice ul{margin:0;padding-left:20px;line-height:1.7}.board-notice[open] summary span{white-space:normal}.board-notice+.live-log{display:none}
.notice-cutin .cutin-copy{min-width:0}.notice-cutin .cutin-copy ul{margin:0;padding-left:1.25em;line-height:1.85;font-size:16px;max-height:42dvh;overflow:auto;pointer-events:auto}.notice-cutin .cutin-card{flex-basis:96px}.notice-cutin .cutin-copy h2{font-size:clamp(24px,4vw,36px)}.notice-turn{background:linear-gradient(110deg,#3c3018f5,#6a511ceF,#323c30f5)}.notice-turn .cutin-copy{text-align:center}.notice-turn ul{list-style:none;padding:0!important}.notice-result{border-color:#f4d994}
#asset-progress{width:100%;height:16px;accent-color:#658960}#music-volume{max-width:120px;accent-color:#618860}
/* Keep table and hand adjacent on phones. Logs and receipts remain below them. */
@media(max-width:760px){
  html[data-screen="game"] #header{padding:6px 9px;gap:7px;align-items:center;min-height:56px}
  #header .header-links{flex:1;gap:4px;max-width:270px}#header .header-links button{min-height:30px;padding:5px 7px;font-size:10px}
  html[data-screen="game"] #app{padding:0 7px 25px}.game-meta{padding:6px 8px;gap:5px}.game-meta .round-dots{display:none}.turn-pill{padding:4px 8px;font-size:11px}
  .effect-bar{padding:6px 9px;gap:8px}.effect-bar .effect-text p{font-size:11px;line-height:1.4}.effect-bar .effect-text h2{font-size:12px}.effect-bar .effect-card .card-face{width:37px}.effect-bar .effect-card img{width:37px}.effect-bar .effect-kicker{font-size:8px}
  .board{padding:8px 7px 5px}.opponents{gap:6px}.player{min-width:0;padding:5px 5px 4px}.player-title{gap:3px}.player-title button{font-size:11px;padding:3px 0}.player-body{margin-top:3px}.player .hidden-hand,.opponents[style*="3"] .hidden-hand{height:33px}.player .hidden-hand img,.opponents[style*="3"] .hidden-hand img{width:21px;height:30px;transform:translateX(calc(var(--i)*4px))}.hand-count{bottom:0;padding:1px 4px;background:#eaf0e5ed}
  .discard-wrap,.board>.self-discard .discard-wrap{--pile-card:44px}.pile-heading{min-height:22px}.pile-heading .pile-open{min-height:24px;padding:2px 4px}.discard-scroller{padding:3px 3px 2px}.pile-top-label{font-size:8px;padding:2px}.board>.self-discard{padding:2px 6px 0;margin:4px 0 0}.board>.self-discard .pile-heading{font-size:10px}
  .table-center{min-height:91px;padding:6px 0 3px;gap:22px}.deck-card img{width:46px}.table-slot{width:46px;height:66px}.table-zone{min-width:46px}.zone-label{margin-bottom:3px;font-size:9px}.table-divider{height:46px}.deck-count{font-size:11px;padding:2px 6px}.live-log{min-height:0;font-size:9px;line-height:1.4;margin:4px 0 0}
  .board-notice{padding:4px 7px;margin-top:4px;font-size:11px}.board-notice summary b{font-size:10px}.board-notice summary span{font-size:10px}.board-notice>div>button{width:54px;flex-basis:54px}
  #app>.prompt{margin:6px 0;padding:7px 9px;gap:5px}.prompt h2{font-size:13px}.prompt .controls{gap:5px}.prompt .controls button{min-height:38px;padding:7px 10px}.prompt .controls .primary{min-height:40px;font-size:13px}.prompt .selected-note{margin-top:4px;padding:5px 7px}.prompt .target-tip{font-size:11px}
  .hand-panel{margin-top:6px;padding:7px 7px 5px}.hand-heading{margin-bottom:2px;flex-wrap:wrap;gap:3px}.hand-heading h2{font-size:11px}.hand-heading .actions button{padding:4px 6px;min-height:28px}.hand-scroller{padding:7px 3px 2px}.hand{gap:7px}.hand-item{width:64px;flex-basis:64px}.hand-panel .card-caption{font-size:9px;margin-top:4px}.hand-best{margin-top:4px;padding-top:4px;font-size:10px}.hand-best>span+span{display:none}.info-button{width:24px;height:24px;right:0;top:2px}
  .notice-cutin{padding:20px 16px;gap:14px}.notice-cutin .cutin-card{flex-basis:66px}.notice-cutin .cutin-copy h2{font-size:22px}.notice-cutin .cutin-copy ul{font-size:13px;line-height:1.7}.notice-cutin .cutin-copy>p{font-size:12px}
  .decision-toolbar>div{justify-content:flex-start}.decision-toolbar button{min-height:36px;padding:6px 8px}
}
/* Lightweight presentation keeps every card, index, selection and explanation. */
html[data-light="true"] *,html[data-light="true"] *:before,html[data-light="true"] *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important;box-shadow:none!important;text-shadow:none!important;backdrop-filter:none!important;filter:none!important}
html[data-light="true"] .board{background:#dce9d8}html[data-light="true"] .hero{background:#e4ecdc}html[data-light="true"] .cutin-sparks{display:none}html[data-light="true"] .cutin-card{transform:none}html[data-light="true"] .effect-cutin{background:#173f40}html[data-light="true"] .effect-owner,html[data-light="true"] .effect-active{outline:2px solid #aa852b;outline-offset:1px}html[data-light="true"] .effect-target{outline:3px solid #b65c43;outline-offset:2px}

.skill-flash{outline:3px solid #ffdc85;outline-offset:2px;animation:skill-flash .6s ease-out 2}@keyframes skill-flash{0%,100%{filter:brightness(1)}50%{filter:brightness(1.35)}}
@media(prefers-reduced-motion:reduce){.skill-flash{animation:none}}
