@charset "UTF-8";
:root{color-scheme:dark;--bg:#15141d;--panel:#1c1b26;--table:#24222f;--border:#383542;--muted:#aca7bb;--text:#f1eef6;--lime:#d5f97a;--violet:#bca2f9;--rose:#ff9caa;--radius:16px;font-family:Inter,"Hiragino Kaku Gothic ProN","Noto Sans JP",Meiryo,sans-serif;font-size:16px}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text)}button{font:inherit;cursor:pointer}button:disabled{cursor:not-allowed;opacity:.4}button,dialog{color:inherit}button:focus-visible{outline:3px solid var(--violet);outline-offset:4px}button{touch-action:manipulation}button:hover:not(:disabled){filter:brightness(1.12)}[hidden]{display:none!important}.app{max-width:1264px;margin:auto;padding:35px 42px 22px}.masthead{display:flex;justify-content:space-between;align-items:center;padding-bottom:27px}.brand{display:flex;align-items:center;gap:13px}.brand-mark{font-size:47px;line-height:1;color:var(--lime)}h1{font-family:Arial,sans-serif;font-size:30px;letter-spacing:4px;margin:0;font-weight:900;line-height:1.1}.edition{font-size:12px;letter-spacing:0;vertical-align:top;margin-left:8px;color:var(--muted)}.brand p{font-size:12px;letter-spacing:2px;margin:6px 0 0;color:var(--muted)}.header-actions{display:flex;gap:14px}.quiet{display:flex;align-items:center;justify-content:center;gap:10px;background:transparent;border:1px solid var(--border);border-radius:8px;padding:10px 14px;color:var(--muted);font-size:14px}.quiet.small{border:0;padding:8px 0}.header-actions .quiet:last-child span{border:1px solid var(--muted);border-radius:50%;width:17px;height:17px;line-height:15px;font-size:12px}.match-strip{border-top:1px solid var(--border);border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:17px 0;margin-bottom:23px;gap:16px}.eyebrow{font-family:Arial,sans-serif;font-size:12px;font-weight:600;letter-spacing:1.7px;color:var(--muted)}.mode-label{font-size:14px;margin-left:14px}.round-track{display:flex;align-items:center;gap:18px}.round-track>span{font-size:13px;font-family:monospace;letter-spacing:1px}.round-dots{display:flex;gap:5px}.round-dots i{width:23px;height:4px;background:var(--border);border-radius:2px}.round-dots i.current{background:var(--lime)}.round-dots i.done{background:#71764e}.layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:24px}.arena{border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;background:var(--panel)}.player-band{display:flex;align-items:center;gap:14px;padding:20px 25px;min-height:108px}.opponent{border-bottom:1px solid var(--border)}.avatar{width:52px;height:52px;background:#332c49;color:var(--violet);border:1px solid #514164;border-radius:13px;display:grid;place-items:center;font-size:26px;flex-shrink:0}.player-avatar{background:#303a25;border-color:#465934;color:var(--lime);font-weight:800;font-size:22px}.player-copy h2{margin:4px 0;font-size:17px}.player-copy .eyebrow{font-size:11px;letter-spacing:1.5px}.doubt-stock{font-size:12px;color:var(--muted);display:flex;gap:8px}.doubt-stock span{color:var(--violet);letter-spacing:3px}.you .doubt-stock span{color:var(--lime)}.score{margin-left:auto;display:flex;gap:8px;align-items:baseline}.score>span{font-size:36px;font-weight:650;letter-spacing:-1px;font-family:Arial,sans-serif}.score small{font-size:10px;color:var(--muted);letter-spacing:1px}.you .score>span{color:var(--lime)}.table-area{position:relative;min-height:430px;padding:25px 16px 20px;background:var(--table);text-align:center;isolation:isolate}.table-grid{position:absolute;inset:20px;border:1px solid #3b3746;border-radius:48%;z-index:-1;opacity:.65}.table-grid:after{content:"";position:absolute;inset:18px;border:1px solid #3b3746;border-radius:48%;opacity:.55}.stage-caption h2{font-size:24px;letter-spacing:1px;margin:14px 0 8px}.stage-caption>p{font-size:14px;margin:0;color:var(--muted);line-height:1.6}.phase-tag{border:1px solid #514660;padding:5px 10px;border-radius:5px;color:var(--violet);font-size:11px;letter-spacing:1.3px}.card-row{display:flex;align-items:center;justify-content:center;gap:40px;margin-top:27px}.playing-card{position:relative;width:136px;height:186px;border:1px solid #716286;border-radius:12px;background:#32293f;box-shadow:0 12px 28px #0004;transform:rotate(-5deg);display:flex;align-items:center;justify-content:center;transition:transform .3s,background .3s}.playing-card:before{content:"";position:absolute;inset:8px;border:1px solid #5e4f71;border-radius:7px}.card-inner{position:relative;display:flex;flex-direction:column;align-items:center;gap:7px}.card-inner>span:first-child{font-size:65px;color:var(--violet);font-family:Georgia,serif;line-height:1.1}.card-inner>span:last-child{font-size:10px;letter-spacing:4px;color:var(--violet)}.card-corner{position:absolute;top:15px;left:15px;font-size:12px;color:var(--violet);font-family:Georgia,serif}.card-corner.bottom{top:auto;left:auto;bottom:15px;right:15px;transform:rotate(180deg)}.playing-card.revealed{transform:rotate(3deg);background:#eef2df;border-color:#e8f2c8}.playing-card.revealed:before{border-color:#c4cab4}.playing-card.revealed .card-inner>span,.playing-card.revealed .card-corner{color:#28331d}.playing-card.bluff{background:#f4d9de}.playing-card.bluff:before{border-color:#d4b5be}.playing-card.bluff .card-inner>span,.playing-card.bluff .card-corner{color:#642e41}.card-side-note{text-align:right;width:102px;display:flex;flex-direction:column;gap:10px;color:var(--muted);font-size:13px;line-height:1.9}.card-side-note.right{text-align:left}.card-side-note .eyebrow{font-size:10px;letter-spacing:2px;color:#80778d}.speech{font-size:14px;color:#c4b6d9;margin:29px auto 0;max-width:90%;min-height:21px;line-height:1.6}.speech.busy:after{content:" …";animation:pulse 1s infinite}.outcome{font-size:14px;padding:10px 15px;background:#15141d;border-radius:8px;margin:13px auto 0;max-width:430px;line-height:1.7}.outcome.win{color:var(--lime)}.outcome.lose{color:var(--rose)}.you{border-top:1px solid var(--border);min-height:97px;padding-top:16px;padding-bottom:16px}.hand-area{display:flex;align-items:center;gap:12px;border-left:1px solid var(--border);padding-left:24px;margin-left:20px}.hand-area>span{font-size:12px;color:var(--muted);max-width:78px;line-height:1.6}.hand-area strong{display:grid;place-items:center;border:1px solid #6e7758;background:#343d27;border-radius:6px;width:35px;height:46px;font-family:Georgia,serif;font-size:26px;color:var(--lime)}.controls{padding:22px 25px;background:#181720;border-top:1px solid var(--border);min-height:146px}.setup-controls,.next-controls{display:flex;justify-content:space-between;gap:18px;align-items:center;min-height:83px}.setup-controls strong{font-size:16px}.setup-controls p{font-size:13px;line-height:1.6;color:var(--muted);margin:8px 0 0}.primary,.secondary{border:1px solid var(--lime);border-radius:8px;background:var(--lime);color:#263012;font-weight:650;font-size:14px;padding:14px 20px;min-height:48px;transition:filter .15s,transform .15s}.primary:active:not(:disabled),.secondary:active:not(:disabled){transform:translateY(1px)}.primary span{margin-left:13px}.secondary{background:#27242f;border-color:#504957;color:var(--text)}.control-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px;font-size:14px}.control-heading>span{font-size:12px;color:var(--muted)}.attack-row{display:flex;gap:14px}.claim-options{display:grid;grid-template-columns:repeat(5,minmax(36px,1fr));gap:7px;flex:1}.claim-options button{min-height:48px;border:1px solid var(--border);background:#282632;color:#bdb5cc;border-radius:7px;font-family:Georgia,serif;font-size:25px}.claim-options button[aria-pressed=true]{border-color:var(--lime);background:#363f27;color:var(--lime)}.claim-options button.actual:after{content:"";display:block;width:3px;height:3px;margin:1px auto -4px;background:var(--lime);border-radius:50%}.control-footnote{font-size:12px;color:var(--muted);line-height:1.6;margin:12px 0 0}.defend-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.defend-row button{display:flex;align-items:center;justify-content:center;gap:10px}.defend-row small{font-weight:400;font-size:12px}.next-controls p{font-size:14px;line-height:1.7;color:var(--muted);max-width:65%}.next-controls .primary{flex-shrink:0}.notebook{display:flex;flex-direction:column;gap:23px}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:3px 0 15px}.section-heading h2{font-size:14px;margin:0}.section-heading .eyebrow{font-size:9px;letter-spacing:1px}.rivals{display:flex;flex-direction:column;gap:9px}.rival{border:1px solid var(--border);background:var(--panel);border-radius:10px;display:flex;text-align:left;align-items:center;gap:13px;padding:13px 16px;width:100%;color:var(--text)}.rival.selected{border-color:#7d6b96;background:#2e263c}.rival-symbol{font-size:27px;color:var(--violet);width:28px;text-align:center}.rival strong{display:block;font-size:14px}.rival small{display:block;font-size:12px;color:var(--muted);margin-top:5px}.selection-dot{margin-left:auto;border:1px solid #5c526a;border-radius:50%;width:12px;height:12px;flex-shrink:0}.selected .selection-dot{background:var(--violet);border:3px solid #3a2f4c;box-shadow:0 0 0 1px var(--violet)}.rival:disabled{opacity:.65}.rival.selected:disabled{opacity:1}.rival-note{font-size:12px;margin:10px 0 0;color:var(--muted)}.history-section{border-top:1px solid var(--border);padding-top:20px}.history-count{font-size:11px;color:#8a8397;font-family:monospace}.history{max-height:291px;overflow:auto;scrollbar-width:thin;scrollbar-color:#4e435d transparent}.empty-history{padding:22px 5px 23px;text-align:center;border:1px dashed #3a3545;border-radius:10px}.empty-history>span{display:block;font-size:26px;color:#6d617b;margin-bottom:17px}.empty-history strong{font-size:12px;color:#c4bdcf;font-weight:500}.empty-history p{font-size:12px;line-height:1.8;color:#8f879e;margin:10px 0 0}.history-entry{padding:12px 0;border-bottom:1px solid #302c3a;animation:entry .3s ease}.history-entry:first-child{padding-top:0}.history-entry .entry-top{display:flex;align-items:center;justify-content:space-between;font-size:12px;color:var(--muted);margin-bottom:7px}.entry-truth{font-size:10px;border:1px solid #505b38;color:var(--lime);padding:2px 6px;border-radius:4px}.entry-truth.bluff{border-color:#673e4b;color:var(--rose)}.entry-main{font-size:13px;display:flex;gap:6px;align-items:center}.entry-main strong{font-weight:600;color:var(--text)}.entry-main .gain{margin-left:auto;color:var(--lime);font-family:monospace;font-size:14px}.entry-main .gain.negative{color:var(--rose)}.entry-action{margin:6px 0 0;font-size:11px;color:#9c91ac}.quick-rules{border-top:1px solid var(--border);padding-top:20px}.quick-rules .eyebrow{font-size:10px;color:var(--violet)}.quick-rules h2{font-size:14px;font-weight:500;line-height:1.8;margin:10px 0}.quick-rules p{font-size:12px;color:var(--muted);line-height:1.95;margin:0}.rule-chips{display:flex;gap:7px;margin-top:14px}.rule-chips span{font-size:10px;background:#282530;padding:5px 7px;border-radius:4px;color:#bcb3ca}footer{display:flex;align-items:center;justify-content:space-between;font-size:10px;letter-spacing:1px;color:#787181;padding-top:23px}.footer-separator{padding:0 8px}dialog{border:1px solid #51475e;background:#24202d;border-radius:18px;padding:26px;max-width:540px;width:calc(100% - 32px);max-height:90vh;line-height:1.9;box-shadow:0 20px 80px #0009}dialog::backdrop{background:#09080ebd;backdrop-filter:blur(5px)}.dialog-top{display:flex;align-items:center;justify-content:space-between}.dialog-top .quiet{border:0;padding:4px 8px}.dialog-top .eyebrow{color:var(--violet)}dialog h2{font-size:23px;margin:20px 0 15px}dialog p,dialog li{font-size:14px;color:#c8c0d4}dialog ol{padding-left:22px}dialog li{margin-bottom:14px}dialog strong{color:var(--text)}.dialog-note{background:#19161f;padding:13px;border-radius:8px;font-size:12px!important}.full{width:100%;margin-top:12px}.arena.thinking .playing-card{animation:float 1.3s infinite ease-in-out}.arena.finished .table-area{background:#2a2e25}.arena.finished .stage-caption h2{color:var(--lime)}@keyframes float{50%{transform:translateY(-7px) rotate(-2deg)}}@keyframes pulse{50%{opacity:.3}}@keyframes entry{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media(min-width:1550px){.app{padding-top:50px}.table-area{min-height:470px;padding-top:38px}.card-row{margin-top:35px}.playing-card{width:147px;height:200px}}
@media(max-width:1050px){.app{padding:25px}.layout{grid-template-columns:minmax(0,1fr) 280px;gap:18px}.player-band,.controls{padding-left:18px;padding-right:18px}.hand-area{padding-left:14px;margin-left:5px;gap:8px}.hand-area>span{max-width:62px}.card-row{gap:20px}.attack-row{flex-direction:column}.setup-controls{align-items:flex-start;flex-direction:column;gap:15px}.setup-controls .primary{width:100%}.controls{min-height:159px}.score small{display:none}}
@media(max-width:790px){.app{padding:22px 18px}.layout{grid-template-columns:minmax(0,1fr)}.notebook{display:grid;grid-template-columns:1fr 1fr;gap:20px}.opponent-select{grid-column:1/-1;order:0}.rivals{flex-direction:row}.rival{padding:12px;gap:9px}.rival-symbol{font-size:23px;width:22px}.rival small{font-size:11px}.selection-dot{display:none}.rival-note{margin-bottom:0}.history-section{padding-top:18px;order:1}.quick-rules{order:2}.controls{min-height:137px}.setup-controls{flex-direction:row;align-items:center}.setup-controls .primary{width:auto}.attack-row{flex-direction:row}.table-area{min-height:409px}.mode-label{display:none}.hand-area>span{max-width:none}.score small{display:block}}
@media(max-width:530px){.app{padding:17px 14px}.masthead{padding-bottom:20px}.brand{gap:9px}.brand-mark{font-size:39px}h1{font-size:26px}.brand p{font-size:10px;letter-spacing:1px}.header-actions{gap:6px}.header-actions .quiet{font-size:12px;padding:8px 10px;gap:6px}.match-strip{padding:13px 0;margin-bottom:17px;gap:7px}.match-strip .eyebrow{font-size:10px}.match-strip .quiet{font-size:11px}.round-track{gap:8px}.round-track>span{font-size:10px}.round-dots{gap:3px}.round-dots i{width:11px}.player-band{min-height:93px;padding:16px}.avatar{width:43px;height:43px;border-radius:10px;font-size:23px}.player-copy h2{font-size:15px}.player-copy .eyebrow{font-size:9px}.score>span{font-size:32px}.score small{font-size:8px}.doubt-stock{font-size:10px}.table-area{min-height:370px;padding:22px 12px 18px}.stage-caption h2{font-size:20px;margin:13px 0 8px}.stage-caption>p{font-size:12px}.phase-tag{font-size:9px}.card-row{gap:18px;margin-top:25px}.playing-card{width:120px;height:164px;flex-shrink:0}.card-inner>span:first-child{font-size:57px}.card-side-note{width:69px;font-size:11px;line-height:1.9}.card-side-note .eyebrow{font-size:8px;letter-spacing:1px}.speech{font-size:12px;margin-top:25px;min-height:20px}.outcome{font-size:12px;padding:9px 12px}.you{min-height:89px}.hand-area{padding-left:10px;margin-left:0;gap:7px}.hand-area>span{font-size:9px;max-width:54px}.hand-area strong{width:27px;height:37px;font-size:22px}.you .score{gap:4px}.controls{padding:18px 16px;min-height:148px}.control-heading{font-size:13px;align-items:flex-start}.control-heading>span{font-size:10px}.attack-row{gap:9px;flex-direction:column}.claim-options{gap:6px}.claim-options button{min-height:44px;font-size:23px}.primary,.secondary{font-size:13px;padding:13px 15px;min-height:46px}.control-footnote{font-size:10px}.setup-controls{flex-direction:column;align-items:stretch;gap:16px}.setup-controls .primary{width:100%}.setup-controls p{font-size:12px}.notebook{display:flex;gap:20px}.rivals{gap:6px}.rival{display:block;text-align:center;padding:13px 5px}.rival-symbol{display:block;margin:0 auto 9px;width:auto;font-size:24px}.rival strong{font-size:12px}.rival small{font-size:9px;line-height:1.6;margin-top:6px}.rival-note{font-size:10px}.quick-rules p,.empty-history p{font-size:12px}.history{max-height:240px}.section-heading .eyebrow{font-size:9px}.next-controls{flex-direction:column;align-items:stretch;gap:6px}.next-controls p{max-width:none;margin-top:0;font-size:12px}.defend-row{gap:9px}.defend-row button{flex-direction:column;gap:4px}.defend-row small{font-size:10px}footer{font-size:9px;letter-spacing:0}footer>span:last-child{display:none}dialog{padding:22px}dialog h2{font-size:20px}.hand-area+.score small{display:none}}
.stage-caption .setup-controls{justify-content:center;min-height:0;margin:18px 0 0;flex-direction:row}.stage-caption .setup-controls .primary{width:auto}
@media(max-width:790px){.table-area{min-height:335px;padding-top:20px}.card-row{margin-top:20px}.speech{margin-top:20px}.playing-card{width:118px;height:161px}.stage-caption h2{font-size:21px}.stage-caption .setup-controls{margin-top:14px}.table-area:has(#setupControls:not([hidden])){padding-top:16px}.table-area:has(#setupControls:not([hidden])) .card-row{margin-top:22px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Keep Japanese instructions readable, including the narrow Codex panel. */
.brand p,.player-copy .eyebrow,.score small,.phase-tag,.card-side-note .eyebrow,.card-inner>span:last-child,.section-heading .eyebrow,.history-count,.entry-truth,.entry-action,.quick-rules .eyebrow,.rule-chips span,footer{font-size:12px}
.doubt-stock,.control-heading>span,.control-footnote,.hand-area>span,.rival small,.rival-note,.empty-history strong{font-size:12px}
.stage-caption>p,.speech,.outcome,.quick-rules p,.empty-history p,.entry-main,.history-entry .entry-top{font-size:14px}
@media(max-width:530px){.primary,.secondary,.control-heading,.header-actions .quiet,.rival strong{font-size:14px}.rival small{font-size:12px}.rival{padding-left:4px;padding-right:4px}.hand-area{gap:5px;padding-left:8px}.hand-area>span{font-size:12px;max-width:48px;line-height:1.4}.player-band{gap:10px}.score small{display:none}.player-copy .eyebrow{font-size:12px;letter-spacing:1px}.card-side-note{font-size:12px}.card-side-note .eyebrow{font-size:10px}.match-strip .eyebrow,.round-track>span,.match-strip .quiet{font-size:12px}.round-dots{display:none}.stage-caption>p{font-size:14px}.defend-row small{font-size:12px}.quick-rules p{line-height:1.8}.hand-area{margin-left:auto}.you .score{margin-left:6px}.you .score>span{font-size:28px}.you .avatar{display:none}.you .player-copy{min-width:75px}.next-controls p{font-size:14px}.brand p{font-size:12px}.table-area{min-height:345px}.rival small{letter-spacing:-.3px}}

/* Generated portraits and foil artwork are ornamental; game information stays in HTML. */
body{
  background-image:radial-gradient(ellipse at 18% 0%,#35244155,transparent 48%),radial-gradient(ellipse at 96% 70%,#2f382d33,transparent 52%);
  background-attachment:fixed;
}
.arena{
  border-color:#554b63;
  box-shadow:0 20px 55px #08070c55,0 1px 0 #a793bc18 inset;
}
.opponent{
  min-height:108px;
  padding-top:9px;
  padding-bottom:9px;
  background:linear-gradient(110deg,#31283e 0%,#221e2c 48%,#1c1a24 100%);
  border-bottom-color:#615168;
}
.opponent-portrait{
  position:relative;
  width:90px;
  height:90px;
  flex:none;
  border-radius:14px;
  overflow:hidden;
  background:radial-gradient(ellipse at 50% 68%,#69527a55,transparent 72%),#191620;
  box-shadow:0 0 0 1px #a897b638 inset,0 8px 22px #09070c44;
}
.opponent-portrait:after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  border:1px solid #b9a6cb30;
  border-radius:inherit;
}
.opponent-portrait img{display:block;width:100%;height:100%;object-fit:cover;transform:scale(1.4);transform-origin:50% 35%;filter:drop-shadow(0 5px 8px #0006)}
.opponent .player-copy{min-width:0}
.opponent .player-copy h2{font-size:19px;margin:5px 0 7px}
.opponent .score>span{text-shadow:0 3px 14px #0004}
.arena[data-rival=gambler] .opponent{background:linear-gradient(110deg,#3d2b3c,#261e2b 48%,#1c1a24)}
.arena[data-rival=cautious] .opponent{background:linear-gradient(110deg,#263638,#211f2c 48%,#1c1a24)}
.you{background:linear-gradient(110deg,#252a20,#1c1c25 55%);border-top-color:#6c675149}
.you .score>span{text-shadow:0 0 24px #d5f97a22}
.hand-area strong{box-shadow:0 3px 9px #0004,0 1px 0 #d5f97a30 inset;background:linear-gradient(140deg,#455330,#29371e)}
.table-area{
  background-color:#272230;
  background-image:radial-gradient(ellipse at 50% 34%,#8b758a28,transparent 65%),repeating-linear-gradient(25deg,#ffffff03 0 1px,transparent 1px 3px),repeating-linear-gradient(115deg,#00000009 0 1px,transparent 1px 4px),linear-gradient(135deg,#302a3c,#231f2b);
}
.table-area:after{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  pointer-events:none;
  box-shadow:inset 0 20px 25px -24px #000,inset 0 -20px 25px -24px #000,inset 28px 0 50px -40px #000,inset -28px 0 50px -40px #000;
}
.table-grid{inset:17px 20px;border-color:#b0997150;opacity:.8;box-shadow:0 0 0 7px #08070e16,0 0 0 8px #a38b6920}
.table-grid:after{inset:9px;border-color:#d7c0a029;border-style:dashed;opacity:.65}
.stage-caption h2{text-wrap:balance;text-shadow:0 2px 13px #08070e66}
.stage-caption>p{position:relative;color:#c4bdcc;text-wrap:pretty}
.phase-tag{display:inline-block;line-height:1.4;background:#211b2ec4;border-color:#86719370;color:#d1b9eb;box-shadow:0 1px 0 #cdb5df10 inset;letter-spacing:1px}
.playing-card{border-color:#af9c6b;box-shadow:0 17px 26px #05040966,2px 2px 0 #8b7860,0 1px 0 #eadca650 inset;transition:transform .3s,background-color .3s}
.playing-card.covered{background:#1a1725 url("assets/card-back.webp") center/cover no-repeat}
.playing-card.covered:before{border-color:#e9d39266;box-shadow:0 0 0 3px #17132255}
.playing-card.covered .card-inner{position:absolute;bottom:17px;gap:0;padding:0}
.playing-card.covered .card-inner>span:first-child{display:none}
.playing-card.covered .card-inner>span:last-child{padding:3px 6px;border-radius:3px;background:#171323dd;border:1px solid #e9d39233;color:#eadbae;text-shadow:0 1px 5px #000;letter-spacing:1px}
.playing-card.covered .card-corner{color:#eadbae;text-shadow:0 1px 5px #000}
.playing-card .card-corner{font-weight:700;font-size:15px}
.playing-card.declared{background:linear-gradient(145deg,#eee6d6,#ded7cc);border-color:#f2ead6;transform:rotate(-3deg)}
.playing-card.declared:before{border-color:#a79878}
.playing-card.declared .card-inner>span,.playing-card.declared .card-corner{color:#332438}
.playing-card.declared .card-inner>span:first-child,.playing-card.revealed .card-inner>span:first-child{font-size:72px;font-weight:700;font-variant-numeric:lining-nums}
.playing-card .card-inner>span:last-child{font-size:12px;letter-spacing:1.5px}
.playing-card.revealed{background:linear-gradient(145deg,#f0f4e4,#dfe8cd)}
.playing-card.bluff{background:linear-gradient(145deg,#f5e5e8,#e5c4ce)}
.card-side-note .eyebrow{color:#a79aac;font-size:12px}
.speech{padding:9px 14px;border:1px solid #a38ab630;border-radius:30px;background:#16121d69;width:fit-content;max-width:94%;color:#d8c9e6;box-shadow:0 4px 12px #08070e22}
.outcome{border:1px solid #86719333;background:#131219ad;box-shadow:0 3px 14px #07060c33}
.outcome.win{border-color:#d5f97a44}.outcome.lose{border-color:#ff9caa44}
.controls{background:linear-gradient(120deg,#201c29,#18161f);border-top-color:#56455d}
.primary{background:linear-gradient(135deg,#e2ff9c,#c8ee70);border-color:#e0ff90;box-shadow:0 5px 16px #bada5821,0 1px 0 #ffffff55 inset}
.secondary{background:linear-gradient(135deg,#302937,#221d2a);border-color:#80708e70;box-shadow:0 1px 0 #ffffff12 inset}
.claim-options button{box-shadow:0 1px 0 #ffffff10 inset;background:linear-gradient(135deg,#34303d,#24212c)}
.claim-options button[aria-pressed=true]{background:linear-gradient(135deg,#4c5b33,#303f25);box-shadow:0 0 0 1px #d5f97a25 inset,0 4px 12px #0003}
.rival{padding:9px 12px;gap:12px;min-height:83px;background:linear-gradient(120deg,#25212e,#1d1a24);box-shadow:0 1px 0 #ffffff09 inset}
.rival-portrait{display:block;width:52px;height:60px;flex:none;object-fit:contain;border-radius:7px;filter:drop-shadow(0 3px 4px #0007)}
.rival.selected{background:linear-gradient(115deg,#413049,#292133);border-color:#b095c2;box-shadow:0 0 0 1px #bca2f919 inset}
.rival small{line-height:1.6}
.rival:disabled{opacity:.75}.rival.selected:disabled{opacity:1}
.empty-history{background:linear-gradient(135deg,#2a233033,#16131c33)}
.quick-rules{border-color:#62546e60}
.rule-chips span{border:1px solid #86719333;background:#272130}
.finish-banner{display:flex;align-items:center;justify-content:center;gap:10px;width:fit-content;margin:0 auto 15px;padding:7px 16px;border:1px solid #d5f97a88;border-radius:30px;color:var(--lime);background:#283221e6;box-shadow:0 0 28px #d5f97a16;font-size:12px;font-weight:700;letter-spacing:2px}
.finish-banner>span:first-child{font-size:22px;line-height:1}
.arena.finished .table-area{background-color:#242b22;background-image:radial-gradient(ellipse at 50% 10%,#d5f97a19,transparent 65%),repeating-linear-gradient(25deg,#ffffff03 0 1px,transparent 1px 3px),linear-gradient(135deg,#293126,#211e2a)}
.arena.finished .table-grid{border-color:#d5f97a55}
.arena[data-result=cpu] .table-area{background-image:radial-gradient(ellipse at 50% 10%,#ff9caa15,transparent 65%),repeating-linear-gradient(25deg,#ffffff03 0 1px,transparent 1px 3px),linear-gradient(135deg,#322632,#211e2a)}
.arena[data-result=cpu] .finish-banner{color:var(--rose);background:#37202ce6;border-color:#ff9caa70;box-shadow:0 0 28px #ff9caa13}
.arena[data-result=cpu] .stage-caption h2{color:#f5c1cf}
.arena[data-result=cpu] .table-grid{border-color:#ff9caa44}
.arena[data-result=draw] .table-area{background-image:radial-gradient(ellipse at 50% 10%,#bca2f91a,transparent 65%),repeating-linear-gradient(25deg,#ffffff03 0 1px,transparent 1px 3px),linear-gradient(135deg,#30283c,#211e2a)}
.arena[data-result=draw] .finish-banner{color:var(--violet);background:#2d243ce6;border-color:#bca2f980}
.arena[data-result=draw] .stage-caption h2{color:#dbcbf8}
.arena[data-result=draw] .table-grid{border-color:#bca2f950}
@media(max-width:1050px){
  .opponent-portrait{width:80px;height:80px}.opponent{padding-top:14px;padding-bottom:14px}
}
@media(max-width:790px){
  .opponent-portrait{width:76px;height:76px}.opponent{min-height:100px;padding-top:12px;padding-bottom:12px}
  .rivals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
  .rival{flex-direction:column;text-align:center;padding:12px 8px;gap:7px}.rival-portrait{width:55px;height:62px}
  .rival small{font-size:12px}.rival strong{font-size:14px}.selection-dot{display:none}
  .speech{margin-top:19px}.table-grid{inset:14px 17px}
}
@media(max-width:530px){
  .opponent{min-height:90px;padding:12px 14px;gap:12px}.opponent-portrait{width:66px;height:66px;border-radius:10px}
  .opponent .player-copy h2{font-size:17px;margin:4px 0 6px}.opponent .player-copy .eyebrow{font-size:12px;letter-spacing:.8px}
  .opponent .score{gap:4px}.opponent .score>span{font-size:32px}
  .table-area{padding:20px 12px 18px;min-height:335px}.table-grid{inset:12px 13px;box-shadow:0 0 0 5px #08070e16,0 0 0 6px #a38b6920}
  .table-area:has(#setupControls:not([hidden])){padding-top:16px}
  .stage-caption h2{font-size:21px;letter-spacing:.5px}.phase-tag{font-size:12px;padding:4px 8px;letter-spacing:.4px}
  .card-row{margin-top:23px;gap:18px}.playing-card{width:114px;height:157px}
  .playing-card.covered .card-inner>span:first-child{font-size:46px}
  .playing-card.declared .card-inner>span:first-child,.playing-card.revealed .card-inner>span:first-child{font-size:64px}
  .card-corner{top:12px;left:12px}.card-corner.bottom{bottom:12px;right:12px}
  .card-side-note{width:69px;font-size:12px}.card-side-note .eyebrow{font-size:12px;letter-spacing:1px}
  .speech{font-size:14px;margin-top:20px;padding:8px 10px;border-radius:12px;max-width:95%}
  .outcome{font-size:14px}.you{padding:14px 16px;min-height:84px}
  .rivals{gap:7px}.rival{display:flex;padding:11px 7px;min-height:157px;gap:6px}.rival-portrait{width:52px;height:60px}
  .rival small{font-size:12px;letter-spacing:0;line-height:1.65}.rival strong{font-size:14px}
  .section-heading .eyebrow{font-size:12px;letter-spacing:.5px}.section-heading{flex-wrap:wrap}
  .finish-banner{margin-bottom:12px;padding:6px 13px;letter-spacing:1.4px}
}
@media(max-width:360px){
  .app{padding-left:10px;padding-right:10px}.header-actions .quiet{padding:8px;gap:5px}
  .opponent{gap:10px;padding-left:12px;padding-right:12px}.opponent-portrait{width:60px;height:66px}
  .card-row{gap:12px}.card-side-note{width:62px}.playing-card{width:108px;height:148px}
  .you{padding-left:12px;padding-right:12px}.you .player-copy{min-width:64px}.hand-area{padding-left:7px;gap:4px}
  .hand-area>span{max-width:48px}.you .score>span{font-size:27px}.you .score{margin-left:3px}
}

#finishLabel{font-size:32px;line-height:1.1;letter-spacing:4px;font-weight:800}

/* Mobile play layout: keep the hand and actions close to the table. */
@media(max-width:790px){
  .app{padding:16px max(12px,env(safe-area-inset-right)) max(20px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left))}
  .layout,.notebook,.player-copy{min-width:0}
  .header-actions .quiet,.match-strip .quiet,dialog .quiet{min-height:44px;min-width:44px}
  .masthead{gap:12px;flex-wrap:wrap;padding-bottom:14px}
  .header-actions{margin-left:auto;flex-shrink:0}
  .match-strip{gap:8px;flex-wrap:wrap;padding:8px 0;margin-bottom:12px}
  .round-track{min-width:0}
  .table-area{min-height:0;padding:16px 12px}
  .controls{min-height:0;padding:16px}
  .claim-options{grid-template-columns:repeat(5,minmax(0,1fr))}
  .claim-options button{min-height:50px}
  .primary,.secondary{min-height:50px}
  .control-heading{flex-wrap:wrap;line-height:1.5}
  .next-controls,.setup-controls{min-height:0}
  .next-controls p{max-width:none}
  .rival{min-width:0}
  dialog{max-height:calc(100dvh - 24px);overflow-y:auto}
}
@media(max-width:530px){
  .brand-mark{font-size:32px}.brand{gap:7px}h1{font-size:23px;letter-spacing:3px}
  .brand p{font-size:11px}.edition{margin-left:4px;font-size:10px}
  .header-actions .quiet{padding:8px;font-size:12px;gap:5px}
  .opponent{min-height:76px;padding:10px 12px;gap:9px}
  .opponent-portrait{width:52px;height:56px}
  .opponent .player-copy .eyebrow{font-size:10px;letter-spacing:.5px}
  .opponent .player-copy h2{font-size:16px;margin:3px 0 5px}
  .score>span,.opponent .score>span{font-size:30px}
  .doubt-stock{font-size:11px;gap:5px}.doubt-stock span{letter-spacing:1px;white-space:nowrap}
  .stage-caption h2{font-size:20px;margin:10px 0 6px}.stage-caption>p{font-size:13px}
  .phase-tag{font-size:11px}.card-side-note{display:none}
  .card-row{margin-top:16px;gap:0}.playing-card{width:100px;height:138px}
  .playing-card.declared .card-inner>span:first-child,.playing-card.revealed .card-inner>span:first-child{font-size:58px}
  .speech{margin-top:14px;font-size:13px;padding:7px 10px}.outcome{margin-top:10px;font-size:13px}
  .you{min-height:74px;padding:10px 12px;gap:8px}
  .you .player-copy{min-width:64px}.you .player-copy .eyebrow{font-size:10px}
  .hand-area{margin-left:auto;padding-left:8px;gap:6px}.hand-area>span{font-size:11px;max-width:48px}
  .hand-area strong{width:32px;height:42px;font-size:26px}
  .you .score{margin-left:0}.you .score>span{font-size:28px}
  .controls{padding:14px 12px}.attack-row{flex-direction:column;gap:10px}
  .control-heading>span{font-size:12px}.control-footnote{font-size:12px}
  .defend-row button{min-height:62px;font-size:16px}.defend-row small{font-size:12px}
  .next-controls{gap:8px}.next-controls p{font-size:13px}
  .rival{min-height:130px;padding:10px 5px}.rival-portrait{height:48px;width:44px}
  .rival small{font-size:11px}.section-heading .eyebrow{font-size:10px}
  #finishLabel{font-size:36px}.finish-banner{margin-bottom:10px}
}
@media(max-width:360px){
  .masthead{gap:8px}.brand p{font-size:10px}.brand-mark{font-size:28px}h1{font-size:21px}
  .header-actions{gap:4px}.header-actions .quiet{padding:7px;font-size:11px}
  .header-actions .quiet:last-child span{display:none}
  .match-strip .eyebrow,.round-track>span,.match-strip .quiet{font-size:11px}
}
