:root{--yellow:#f1ca43;--yellow-light:#ffe993;--red:#d73922;--ink:#211711;--paper:#fff4d7;--muted:#c6b69b;color:var(--paper);background:#160e09;font-family:'Hiragino Kaku Gothic ProN','Yu Gothic',Meiryo,sans-serif;font-synthesis:none;color-scheme:dark}*{box-sizing:border-box}body{margin:0}button,a,summary{-webkit-tap-highlight-color:transparent;touch-action:manipulation}button{font:inherit;color:inherit;cursor:pointer}button:disabled{cursor:wait;opacity:.55}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #fff8c2;outline-offset:3px}a{color:inherit}[hidden]{display:none!important}
/* The phone is a game screen: navigation, table, inventory, thumb-reachable action. */
#game-shell{position:relative;min-height:640px;height:100svh;height:100dvh;display:grid;grid-template-rows:auto minmax(190px,1fr) auto auto;background:#1c130d;isolation:isolate}.topbar{z-index:4;display:grid;grid-template-columns:1fr auto;align-items:center;gap:6px 12px;padding:calc(8px + env(safe-area-inset-top)) max(14px,env(safe-area-inset-right)) 4px max(14px,env(safe-area-inset-left));background:linear-gradient(#1b130e,#20160f);border-bottom:1px solid #cda15038}.brand{display:flex;align-items:center;width:max-content;max-width:100%;gap:9px;text-decoration:none}.brand img{width:116px;height:43px;object-fit:contain;background:var(--yellow);padding:4px 8px;transform:rotate(-3deg);box-shadow:2px 3px 0 #0006}.brand span{font-size:.75rem;letter-spacing:.06em;font-weight:800;color:#e6c880}.tools{display:flex;gap:4px}.tools button{border:1px solid #f9dc8240;border-radius:50%;height:44px;min-width:44px;background:#21180f;font-size:21px;font-weight:800}.tools button span{display:none}.tools button[aria-pressed=true]{color:var(--yellow);border-color:var(--yellow)}#chapters{grid-column:1/-1;grid-row:2;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:0;width:100%}#chapters button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:51px;min-width:44px;border:0;border-bottom:2px solid transparent;padding:4px 0;background:none;color:#c9b99b;font-size:.75rem;font-weight:700}#chapters button b{font-size:.75rem;line-height:1.1;font-family:Georgia,serif;color:#ab9269}#chapters button.active{color:var(--yellow);border-color:var(--yellow);background:linear-gradient(0deg,#e4ac1818,transparent)}#chapters button.active b,#chapters button.complete b{color:var(--yellow-light)}
#stage{position:relative;min-width:0;overflow:hidden;background:#19120c}#table{position:absolute;inset:0;touch-action:pan-y pinch-zoom}#table canvas{width:100%;height:100%;display:block;cursor:grab;outline:0;touch-action:pan-y pinch-zoom}.vignette{position:absolute;inset:0;pointer-events:none;z-index:1;background:radial-gradient(ellipse at 50% 45%,transparent 36%,#0c080950 100%),linear-gradient(0deg,#17100b80,transparent 20%,transparent 80%,#17100b66)}.film-grain{position:absolute;inset:0;pointer-events:none;opacity:.035;z-index:1;background-image:url('assets/table-wood.webp');background-size:900px;mix-blend-mode:screen}.experience-label{position:absolute;top:10px;left:14px;font-size:.75rem;font-weight:600;z-index:3;display:flex;align-items:center;gap:6px;color:#e9d8b5;pointer-events:none;text-shadow:0 2px 5px #000}.ember-dot{width:6px;height:6px;background:var(--yellow);border-radius:50%;box-shadow:0 0 10px #ffbb2b}.label-divider{opacity:.4}.rival-speech{display:none}.scene-controls{position:absolute;z-index:3;right:10px;bottom:9px;display:flex;align-items:center;gap:3px;border:1px solid #e3bf634a;border-radius:25px;background:#20180de8;box-shadow:0 3px 12px #0004;backdrop-filter:blur(10px)}.scene-controls button{min-width:44px;min-height:44px;border:0;background:none;font-size:21px;font-weight:700;padding:0 8px}.scene-controls button:first-child{border-radius:24px 0 0 24px}.scene-controls button:last-child{border-radius:0 24px 24px 0}.scene-controls #view-button{font-size:18px;display:flex;align-items:center;gap:5px;padding:0 9px;border-left:1px solid #c99f423b;border-right:1px solid #c99f423b}.scene-controls #view-button span{font-size:.875rem}.scene-controls button[aria-pressed=true]{color:var(--yellow)}.camera-help{position:absolute;z-index:2;bottom:64px;left:0;right:0;text-align:center;font-size:.75rem;color:#e6d3ae;pointer-events:none;text-shadow:0 2px 5px #000}.desktop-hint{display:none}
.table-status{display:flex;align-items:center;gap:12px;z-index:3;padding:7px max(16px,env(safe-area-inset-right)) 7px max(16px,env(safe-area-inset-left));background:#17110d;border-top:1px solid #c79d4930;border-bottom:1px solid #c79d4930;min-height:48px}.status-title{display:flex;align-items:center;gap:5px;font-size:.75rem;font-weight:700;flex-wrap:wrap;max-width:85px}.status-title>span:last-child{font-size:.75rem;color:#b5a481;display:none}.status-title>span:last-child.resting{display:block;flex-basis:100%;color:var(--yellow-light)}.status-values{display:flex;justify-content:space-around;align-items:center;flex:1;gap:12px}.status-values>div{display:flex;align-items:center;gap:5px}.status-values b{font-size:1.5rem;font-family:Georgia,serif;color:var(--yellow-light);font-weight:500;line-height:1}.status-values span{font-size:.75rem;color:#d0c1a7}.table-status p{display:none}.player-dot{display:inline-block;width:7px;height:7px;border-radius:50%;flex-shrink:0}.color-0{background:var(--yellow)}.color-1{background:#e97058}.color-2{background:#7dc5e4}
.guide{z-index:4;padding:13px max(18px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left));background:linear-gradient(130deg,#332414,#21170e);border-top:2px solid var(--yellow);box-shadow:0 -12px 32px #0003;min-width:0}.guide-top{display:flex;justify-content:space-between;align-items:center;color:var(--yellow);font-size:.75rem;font-weight:800;letter-spacing:.05em}.guide-top>span:last-child{font-size:1rem;font-family:Georgia,serif}.guide-top i{font-style:normal;color:#b3a58d;font-size:.75rem;margin-left:4px}h1{font-size:1.5rem;font-weight:900;letter-spacing:-.045em;line-height:1.4;margin:6px 0;text-wrap:balance}.lead{font-size:1rem;line-height:1.65;margin:0;color:#fff4d9;font-weight:600}#detail-disclosure{margin:0 0 1px}#detail-disclosure summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;padding:4px 0;font-size:.875rem;color:#cfbb94;cursor:pointer;list-style:none}#detail-disclosure summary::-webkit-details-marker{display:none}#detail-disclosure summary span{font-size:20px;transition:transform .2s}#detail-disclosure[open] summary span{transform:rotate(45deg)}.detail{font-size:1rem;line-height:1.75;color:#decdae;margin:0 0 14px}.action-button{width:100%;min-height:56px;display:flex;justify-content:space-between;align-items:center;gap:10px;padding:13px 16px;background:linear-gradient(180deg,#ffda5b,#e9b931);color:#2c1c0b;border:1px solid #ffea98;border-radius:7px;font-size:1rem;font-weight:900;box-shadow:0 3px 0 #8c591b,0 6px 24px #d7951433;transition:filter .15s,transform .15s;text-align:left;line-height:1.5}.action-button:active:not(:disabled){transform:translateY(2px);box-shadow:0 1px 0 #8c591b}.button-arrow{font-size:22px}.guide.result{border-top-color:#ec653c}.guide.result .guide-top{color:#f99e71}.guide.result .lead{margin:4px 0 14px}.guide-foot{display:flex;justify-content:center;align-items:center;min-height:32px;color:#c3ad86;font-size:.75rem;text-align:center}.guide-foot button{min-height:44px;border:0;background:none;padding:6px 10px;color:#e1c797;font-size:.875rem;text-decoration:underline;text-underline-offset:4px}.guide-foot span{font-size:.75rem}#selection-hint{color:var(--yellow-light)}#selection-hint:empty{display:none}.guide.picking .guide-actions{display:none}.guide.picking .lead{font-size:.875rem;margin:5px 0 10px}.pick-panel{margin:10px 0 8px}#pick-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}#pick-cards button{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:0;padding:7px 5px 10px;background:#fff0cc;color:var(--ink);border:1px solid #f6d98a;border-radius:6px;font-weight:800;transition:transform .15s}#pick-cards button img{width:100%;aspect-ratio:66/53;object-fit:contain;filter:drop-shadow(0 3px 3px #0003)}#pick-cards button b{font-size:.75rem;line-height:1.5;min-height:36px;display:flex;align-items:center;word-break:normal;overflow-wrap:anywhere}#pick-cards button small{font-size:.75rem;font-weight:500;line-height:1.5}#pick-cards button:active{transform:translateY(2px)}
.world-label{position:absolute;z-index:2;transform:translate(-50%,-50%);display:flex;gap:6px;align-items:center;white-space:nowrap;background:#1b1714ed;color:#f4e6cf;border:1px solid #cda25d50;border-radius:5px;box-shadow:0 3px 10px #0005;padding:7px 10px;font-size:.75rem;line-height:1.3;pointer-events:none;transition:opacity .25s}.world-label:is(button){pointer-events:auto;cursor:pointer;min-height:44px}.world-label b{font-size:.875rem;font-weight:700}.plate-label>span:last-child{border-left:1px solid #8e734044;padding-left:6px;color:#d7c39a;font-size:.75rem}.plate-label.mine{border-color:#e6c95888}.food-state{color:#f4bab0;font-size:.75rem;border:1px solid #be655b;padding:1px 3px}.food-state.done{color:#f4d38d;border-color:#ad8b41}.common-label{flex-direction:column;gap:2px}.common-label>span{font-size:.75rem;color:#c6b695;display:none}.deck-label{background:transparent;box-shadow:none;border:0;color:#ddd0b5;text-shadow:0 2px 5px #000}.world-label.focus-label{border-color:var(--yellow);box-shadow:0 0 0 2px #f1ca4325,0 3px 10px #0005}.quiet-label{display:none}.deck-label{display:none}
#announcement{position:absolute;inset:0;z-index:7;pointer-events:none;display:flex;align-items:center;justify-content:center;flex-direction:column;opacity:0;transition:opacity .22s;background:radial-gradient(ellipse,#11080610,#100c0a80)}#announcement.show{opacity:1}#announcement span{font-size:.875rem;color:var(--paper);letter-spacing:.12em;margin-bottom:16px;font-weight:800}#announcement strong{font-size:clamp(2.5rem,7vw,6.875rem);font-weight:1000;color:var(--yellow);line-height:1.1;letter-spacing:-.03em;text-shadow:3px 4px 0 #761e0f,6px 8px 22px #000a;transform:rotate(-7deg) scale(.9);transition:transform .25s}#announcement.show strong{transform:rotate(-7deg) scale(1)}#announcement.collision strong{color:#ff744e}.event-strip{display:none}.eyebrow{font-size:.75rem;font-weight:800;letter-spacing:.1em}
.ending{padding:10px max(24px,env(safe-area-inset-right)) max(28px,env(safe-area-inset-bottom)) max(24px,env(safe-area-inset-left));background:linear-gradient(#1c130d,#160e09);z-index:4}.ending>.eyebrow{color:var(--yellow)}.ending h2{font-size:2.125rem;line-height:1.45;letter-spacing:-.04em;margin:12px 0;font-weight:900}.ending>p{font-size:1rem;line-height:1.9;color:#dbcbaf}.event-ticket{margin:20px 0 17px;border-top:1px solid #bc9e5d66;border-bottom:1px solid #bc9e5d66;display:flex;align-items:center;justify-content:space-between;padding:15px 0;gap:10px}.event-ticket>div{display:flex;flex-direction:column;gap:7px}.event-ticket span{font-size:.75rem;color:#cdb481}.event-ticket b{font-size:.875rem}.event-ticket>strong{font-family:Georgia,serif;font-size:2.25rem;color:var(--yellow);line-height:1}.event-ticket small{display:block;font-size:.75rem;text-align:center;margin-top:6px;color:#d5be8d}.price{display:flex;align-items:center;gap:12px;margin:20px 0;flex-wrap:wrap}.price>span{font-size:.75rem;line-height:1.6;color:#cdbb98}.price>strong{font-size:2.375rem;font-family:Georgia,serif;color:var(--yellow-light);line-height:1}.price strong small{font-size:.75rem;margin-left:6px;font-family:sans-serif}.price del{font-size:.75rem;color:#bda786;align-self:flex-end;padding-bottom:3px}.reservation-button{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-height:60px;padding:14px 15px;background:var(--red);border:1px solid #f76544;box-shadow:0 4px 0 #722412,0 6px 30px #a11c1933;color:#fff6e7;text-decoration:none;font-size:1rem;font-weight:900;text-shadow:none;border-radius:7px;line-height:1.6}.reservation-button>span{font-size:23px}.ending .reservation-note{font-size:.75rem;color:#c4b291;line-height:1.8;text-align:center;margin:14px 0}.ending-links{display:flex;flex-direction:column;gap:1px;align-items:center}.ending-links a,.ending-links button{display:flex;align-items:center;min-height:44px;font-size:.875rem;background:none;border:0;padding:6px 0;text-decoration:underline;text-underline-offset:5px;color:#e6cc9b}.product-spec{display:flex;gap:18px;justify-content:center;margin-top:20px;color:#b5a078;font-size:.75rem;letter-spacing:.07em}.product-spec span+span{padding-left:18px;border-left:1px solid #705d3b}body.is-ending #game-shell{height:auto;min-height:100dvh;grid-template-rows:auto 280px auto}body.is-ending .guide,body.is-ending .table-status,body.is-ending .rival-speech,body.is-ending .camera-help,body.is-ending .experience-label,body.is-ending .scene-controls{display:none}body.is-ending #chapters{display:none}body.is-ending .vignette{background:linear-gradient(0deg,#1c130d,transparent 35%)}
#toast{position:fixed;z-index:9;left:50%;top:25%;transform:translate(-50%,-10px);padding:12px 18px;background:#fff2d4;color:var(--ink);font-size:.875rem;font-weight:700;border:2px solid #ddaf3a;border-radius:5px;box-shadow:0 6px 20px #0007;max-width:90%;width:max-content;opacity:0;pointer-events:none;transition:all .2s;line-height:1.6;text-align:center}#toast.show{opacity:1;transform:translate(-50%,0)}dialog{width:min(620px,calc(100% - 24px));max-height:85dvh;overflow:auto;overscroll-behavior:contain;background:#251b12;color:var(--paper);border:1px solid #a78b4c;padding:22px;box-shadow:0 25px 100px #000b;border-radius:10px}dialog::backdrop{background:#060504b8;backdrop-filter:blur(6px)}dialog h2{font-size:1.5rem;margin:16px 0}dialog p{font-size:1rem;line-height:1.9;color:#d1c2a6}dialog ol{list-style:none;padding:0;display:grid;grid-template-columns:1fr;gap:12px}dialog li{border:1px solid #a4864644;padding:14px;line-height:1.8;font-size:1rem;color:#cebfa3}dialog li b{display:block;color:var(--yellow);margin-bottom:4px}.help-note{font-size:.875rem!important;line-height:1.85;background:#ffffff06;padding:12px;color:#c7b695}.plain-link{display:inline-flex;align-items:center;min-height:44px;font-size:.875rem;text-underline-offset:5px;margin-top:10px;color:var(--yellow)}.close-button{float:right;background:none;border:1px solid #bba06d60;min-width:44px;min-height:44px;padding:3px 10px;font-size:25px;border-radius:50%}.webgl-fallback{position:absolute;top:25%;left:50%;transform:translateX(-50%);font-size:1rem;width:80%;line-height:1.8;color:#e2c593}
@media(min-width:600px) and (max-width:999px){.topbar{padding-left:24px;padding-right:24px}.brand img{width:138px;height:49px}.brand span{font-size:.875rem}#chapters{max-width:560px;justify-self:center}.guide{padding-left:max(30px,calc((100vw - 600px)/2));padding-right:max(30px,calc((100vw - 600px)/2))}.table-status{padding-left:max(30px,calc((100vw - 600px)/2));padding-right:max(30px,calc((100vw - 600px)/2))}.ending{max-width:580px;margin:0 auto;width:100%}body.is-ending #game-shell{grid-template-rows:auto 340px auto}#announcement strong{font-size:4rem}}
/* Larger tables keep the surrounding tabletop and floating guide. */
@media(min-width:1000px){#game-shell{display:block;height:100dvh;min-height:780px;overflow:hidden}#stage{position:absolute;inset:0 0 44px}#table,#table canvas{touch-action:none}.topbar{position:absolute;top:24px;left:30px;right:30px;padding:0;display:flex;gap:25px;background:none;border:0}.brand{width:190px;flex-shrink:0;background:var(--yellow);padding:8px 17px 10px;transform:rotate(-3deg);box-shadow:5px 6px 0 #0007;flex-direction:column;gap:0}.brand img{width:100%;height:60px;padding:0;transform:none;box-shadow:none}.brand span{font-size:.75rem;letter-spacing:.3em;color:var(--ink);border-top:1px solid #4b330b60;width:100%;text-align:center;padding-top:5px}.tools{margin-left:auto;gap:8px}.tools button{background:#21180fc9;backdrop-filter:blur(12px)}#chapters{display:flex;gap:6px;width:auto;margin:auto}#chapters button{min-width:52px;min-height:64px;padding:5px 4px;gap:7px;font-size:.875rem;border:0}#chapters button b{height:29px;width:29px;display:grid;place-items:center;border:1px solid #d8b06b66;background:#24170e9c;border-radius:50%;transition:all .3s}#chapters button.active{background:none}#chapters button.active b{background:var(--yellow);color:var(--ink);border-color:var(--yellow);box-shadow:0 0 22px #ffba2540}.experience-label{top:147px;left:34px}.rival-speech{display:block;position:absolute;right:8%;top:142px;max-width:270px;z-index:3;pointer-events:none;transform:rotate(2deg);filter:drop-shadow(0 5px 8px #0005)}.rival-speech>span{font-size:.75rem;font-weight:800;display:block;margin:0 0 5px 14px;color:var(--yellow-light)}.rival-speech p{background:var(--paper);color:var(--ink);padding:12px 17px;margin:0;border-radius:4px 14px 14px 14px;font-size:.875rem;font-weight:800;line-height:1.5;position:relative}.rival-speech p:after{content:'';position:absolute;border:8px solid transparent;border-top-color:var(--paper);bottom:-16px;left:25px}.guide{position:absolute;left:34px;bottom:84px;width:360px;border:1px solid #efd2967d;border-top:3px solid var(--yellow);padding:23px 24px 12px;background:linear-gradient(140deg,#302315ed,#1e170fef);backdrop-filter:blur(22px);box-shadow:0 16px 50px #0008,0 0 0 6px #00000017;border-radius:4px;max-height:calc(100% - 260px);overflow:auto}h1{font-size:1.8rem;margin:13px 0}.lead{line-height:1.75}.guide-top>span:last-child{font-size:1.1875rem}.guide-foot{margin-top:5px}.table-status{position:absolute;right:32px;bottom:144px;width:266px;display:block;background:#1d150ec9;border:1px solid #a4814666;border-radius:4px;padding:17px 20px;backdrop-filter:blur(15px);box-shadow:0 8px 25px #0003}.status-title{max-width:none;font-size:.875rem}.status-title>span:last-child,.status-title>span:last-child.resting{display:block;margin-left:auto;flex-basis:auto}.status-values{padding-top:12px}.status-values>div{flex-direction:column}.status-values b{font-size:1.7rem}.table-status p{display:block;border-top:1px solid #ad89523b;padding-top:10px;margin:12px 0 0;color:#d4c29d;font-size:.75rem;line-height:1.6}.scene-controls{right:33px;bottom:35px}.camera-help{left:auto;right:33px;bottom:12px}.mobile-hint{display:none}.desktop-hint{display:inline}.world-label{font-size:.75rem}.world-label.quiet-label{display:flex}.world-label:is(button){min-height:34px}.common-label>span,.deck-label{display:flex}.vignette{background:radial-gradient(ellipse at 54% 42%,transparent 24%,#0d090844 62%,#0b080bc9 100%),linear-gradient(0deg,#110a07 0%,transparent 40%,#0e080880 100%)}.event-strip{position:absolute;bottom:0;left:0;right:0;z-index:5;min-height:44px;background:#110d09e6;border-top:1px solid #c0a2543b;display:flex;justify-content:center;align-items:center;gap:25px;padding:0 20px;font-size:.75rem;color:#d2b777;letter-spacing:.05em}.event-strip>span:first-child{font-size:.75rem;letter-spacing:.12em}.event-strip>b{font-size:.875rem;font-weight:500}.event-strip small{font-size:.75rem}.event-strip strong{color:var(--yellow);font-size:1rem;margin-left:3px}.event-strip a{display:flex;align-items:center;min-height:44px;text-decoration:none;color:#f6d991;font-weight:800;padding-left:22px;border-left:1px solid #9f81364a}.ending{position:absolute;right:7%;top:50%;transform:translateY(-45%);max-width:470px;padding:0;background:none;text-shadow:0 2px 20px #0008}.ending h2{font-size:clamp(2.25rem,3.6vw,3.5625rem);margin:18px 0 15px}.event-ticket{gap:30px}.event-ticket b{font-size:1rem}.event-ticket>strong{font-size:2.4375rem}.price>strong{font-size:2.5rem}.reservation-button{font-size:1.0625rem;padding:18px 22px}.ending-links{flex-direction:row;gap:18px;justify-content:center;flex-wrap:wrap}.product-spec{margin-top:24px}body.is-ending #game-shell{height:100dvh;min-height:800px}body.is-ending #chapters{display:flex;opacity:.25;pointer-events:none}body.is-ending .vignette{background:linear-gradient(90deg,transparent 25%,#110c08ee 78%),radial-gradient(ellipse,transparent,#0b0809a0)}dialog{padding:32px}dialog ol{grid-template-columns:1fr 1fr}dialog h2{font-size:1.75rem}.guide.picking{width:410px}#pick-cards button b{font-size:.875rem}}
@media(min-width:1500px){.guide{left:48px;bottom:100px;width:390px;padding:26px 28px 16px}h1{font-size:2rem}.table-status{right:45px;bottom:158px}.rival-speech{right:12%;top:155px}}
@media(max-width:359px){.brand span{display:none}.guide{padding-left:14px;padding-right:14px}h1{font-size:1.375rem}#chapters button{font-size:.75rem}.table-status{padding-left:14px;padding-right:14px;gap:8px}.status-values{gap:8px}.ending{padding-left:18px;padding-right:18px}.scene-controls{right:8px}#pick-cards{gap:6px}}
@media(hover:hover){.tools button:hover,.scene-controls button:hover{background:var(--yellow);color:var(--ink)}.action-button:hover:not(:disabled){filter:brightness(1.1);transform:translateY(-2px)}.world-label:is(button):hover{color:var(--yellow-light);border-color:var(--yellow)}#pick-cards button:hover{transform:translateY(-4px)}.reservation-button:hover{background:#eb482e;transform:translateY(-2px)}.event-strip a:hover{text-decoration:underline}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Target names stay on the real artwork; floating names are revealed by a tap. */
.food-label:not(.inspected){display:none!important}.food-label.inspected{display:flex;z-index:5;border-color:#fff0bd;box-shadow:0 5px 16px #0009;pointer-events:none}.world-label.target-cue{z-index:4;min-height:44px;border:1px solid #fff1a6;border-radius:24px;background:#f5cc48;color:#2a1b0a;padding:8px 14px;gap:8px;box-shadow:0 0 0 5px #f1ca4320,0 4px 14px #0006;animation:target-beacon 1.8s ease-in-out infinite}.target-cue b{font-size:.875rem}.target-cue span{font-size:.75rem;font-weight:800}.world-label.target-cue.chosen{background:#b9f0d1;color:#153b28;border-color:#e6fff0;box-shadow:0 0 0 4px #80efb033,0 4px 14px #0006;animation:none}.world-label.target-cue:hover{color:#2a1b0a;background:#ffe477}.world-label.target-cue.chosen:hover{color:#153b28;background:#d4ffe6}.world-label.hand-label{z-index:5;background:#241a12e8;border-color:#f4d7858c;padding:7px 10px;pointer-events:none}.hand-label b{font-size:.75rem}
.selection-panel{min-height:47px;display:flex;align-items:center;justify-content:space-between;gap:8px;margin:7px 0 10px;padding:3px 3px 3px 10px;border:1px solid #9be9bc77;border-radius:6px;background:#94efb710}.selection-panel>div{display:flex;flex-direction:column;gap:2px;min-width:0}.selection-panel>div>span{font-size:.75rem;color:#aad7b9}.selection-panel strong{font-size:.875rem;color:#d0f9df;line-height:1.5}.selection-panel button{min-width:60px;min-height:44px;padding:4px 9px;border:0;border-radius:4px;background:#defee511;color:#dcfce9;font-size:.875rem;white-space:nowrap}.selection-panel button:hover{background:#d4ffe62a}.guide.has-selection{border-top-color:#9ce9bc}.guide.has-selection .guide-top{color:#bef1d0}.result-changes{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 3px}.result-changes span{font-size:.75rem;line-height:1.5;padding:6px 8px;background:#fce2a811;border:1px solid #e4c18045;border-radius:4px;color:#ffe6b2}.guide.result .lead{margin-bottom:10px}#detail-disclosure summary>span:first-child{font-size:.875rem;transform:none}#detail-disclosure summary>.disclosure-icon{font-size:20px}#detail-disclosure[open] summary>.disclosure-icon{transform:rotate(45deg)}
#intro-modal{width:min(580px,calc(100% - 24px));padding:22px;max-height:calc(100dvh - 32px);border-top:3px solid var(--yellow);background:linear-gradient(140deg,#352515,#20160f)}#intro-modal::backdrop{background:#0a0806cb;backdrop-filter:blur(7px)}.intro-heading{display:flex;align-items:center;gap:16px}.intro-heading img{width:76px;height:106px;object-fit:contain;filter:drop-shadow(4px 6px 4px #0007);transform:rotate(-7deg)}.intro-heading>div{min-width:0}.intro-heading .eyebrow{font-size:.75rem;color:var(--yellow);letter-spacing:.04em}#intro-modal h2{font-size:1.375rem;line-height:1.55;letter-spacing:-.04em;margin:9px 0 0}#intro-description{font-size:1rem;margin:18px 0 16px;line-height:1.8}#intro-description strong{color:#ffe6a0}.intro-steps{display:flex!important;flex-direction:column;gap:11px!important;margin:14px 0;padding:0}.intro-steps li{display:flex;align-items:flex-start;gap:11px;border:0;padding:0;font-size:.875rem;line-height:1.6}.intro-steps li>b{font-family:Georgia,serif;color:var(--yellow);font-size:1.1875rem;margin:0;border-bottom:1px solid #d6a8486b;line-height:1.7}.intro-steps li>div{display:flex;flex-direction:column;gap:2px}.intro-steps strong{font-size:.875rem;color:#fff1d0}.intro-steps span{font-size:.875rem;color:#c9b899}#intro-modal .intro-note{font-size:.75rem;line-height:1.8;margin:18px 0;padding:10px 12px;background:#0002;border-left:2px solid #a47a37;color:#c6b290}#intro-modal .action-button{margin-top:17px}#intro-modal .intro-foot{font-size:.75rem;line-height:1.6;text-align:center;color:#b7a182;margin:14px 0 0}.about-button{background:none;border:0;padding:0;text-decoration:underline;font:inherit;font-size:.875rem;cursor:pointer}
@keyframes target-beacon{0%,100%{box-shadow:0 0 0 3px #f1ca431a,0 4px 14px #0006}50%{box-shadow:0 0 0 9px #f1ca4333,0 4px 20px #f1ca4340}}
@media(min-width:1000px){.guide.result{width:390px}.world-label.target-cue{min-height:44px}.world-label.target-cue b{font-size:.875rem}#intro-modal{padding:30px}.intro-heading img{width:98px;height:136px}#intro-modal h2{font-size:1.75rem}.intro-steps li{gap:14px}.intro-steps strong{font-size:1rem}}
@media(max-width:359px){#intro-modal{padding:18px}.intro-heading{gap:12px}.intro-heading img{width:60px;height:90px}#intro-modal h2{font-size:1.125rem}.selection-panel strong{font-size:.8125rem}.target-cue b{font-size:.8125rem}}
@media(prefers-reduced-motion:reduce){.world-label.target-cue{animation:none}}
.detail{white-space:pre-line}
/* Pointing is completed beside the component, inside the 3D play area. */
.point-controls{position:absolute;z-index:7;width:min(296px,calc(100% - 20px));padding:11px;border:1px solid #b7ebc6;border-radius:10px;background:linear-gradient(140deg,#28392af5,#17291df8);box-shadow:0 8px 28px #0008,0 0 0 3px #8bd4a41a;backdrop-filter:blur(14px);touch-action:manipulation}.point-choice{display:flex;gap:9px;align-items:center;min-height:22px;margin-bottom:9px}.point-choice>span{font-size:.75rem;color:#b8f4ce;white-space:nowrap}.point-choice strong{font-size:.875rem;color:#edffef;line-height:1.5;min-width:0}.point-buttons{display:grid;grid-template-columns:61px 1fr;gap:8px}.point-buttons button{min-height:50px;border-radius:6px;font-weight:800;font-size:.875rem;padding:7px 8px}.point-buttons #clear-selection{border:1px solid #d0f8dd50;background:#ffffff08;color:#e3f5e5}.point-buttons #confirm-point{display:flex;justify-content:space-between;align-items:center;gap:5px;border:1px solid #ffec9d;color:#291d0c;background:linear-gradient(#ffdf6b,#edc244);box-shadow:0 2px 0 #876426}.point-buttons #confirm-point:active{transform:translateY(1px);box-shadow:0 1px 0 #876426}.point-buttons #clear-selection:hover{background:#ffffff18}.point-buttons #confirm-point:hover{filter:brightness(1.08)}.webgl-unavailable .point-controls{left:50%;top:45%;transform:translate(-50%,-50%)}.is-ending .point-controls{display:none}
/* Player names stay beyond the far edge of opponents' plates and the near edge of yours. */
.world-label.plate-label,.world-label.plate-label.quiet-label{display:flex;z-index:5;opacity:1!important;min-height:32px;padding:6px 8px;gap:5px;pointer-events:none;background:#17130feF;box-shadow:0 2px 9px #0006;max-width:calc(100% - 16px)}.plate-label b{font-size:.875rem}.plate-label>span:last-child{font-size:.75rem}.plate-label.mine{border-color:#f1ce678f}.plate-label.opponent{border-color:#bfaa774f}
/* Result explanations remain expanded; only the reading area scrolls. */
.guide{display:flex;flex-direction:column;max-height:min(52dvh,calc(100dvh - 354px));overflow:hidden;min-height:0}.guide-copy{min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#a47c3e #ffffff08;padding-right:2px}.guide-actions{flex-shrink:0}.guide:not(.result) .guide-foot{min-height:28px}.guide.result .guide-actions{padding-top:10px}.rule-summary{margin:14px 0 16px;padding:12px 13px;background:#f5cc4810;border-left:3px solid var(--yellow);border-radius:0 5px 5px 0}.rule-summary h2,.round-recap h2{font-size:.875rem;font-weight:800;line-height:1.6;margin:0 0 7px;color:#f5d489}.rule-summary p{font-size:1rem;line-height:1.8;color:#e9d8b4;margin:0}.round-recap{margin:12px 0 8px}.round-choices{display:grid;gap:6px;margin:10px 0 13px}.round-choices p{display:flex;gap:10px;margin:0;padding:7px 9px;border:1px solid #a582393b;border-radius:4px;align-items:baseline;background:#ffffff03}.round-choices b{font-size:.75rem;color:#d9bc80;min-width:6em;flex-shrink:0}.round-choices span{font-size:.875rem;line-height:1.7;color:#ecdabc}.round-recap ol{margin:0;padding:0 0 0 1.3em;display:grid;gap:9px}.round-recap li{font-size:1rem;line-height:1.75;color:#dfcda9;padding-left:2px}.round-recap li::marker{color:#b99349;font-size:.75rem}.is-selecting #game-shell{grid-template-rows:auto minmax(280px,1fr) auto auto}.is-selecting .scene-controls{bottom:8px;right:8px}.is-selecting .camera-help{display:none}
@media(min-width:1000px){.guide{max-height:calc(100% - 255px)}.guide.result{width:400px}.point-controls{width:304px}.point-buttons button{min-height:50px}.guide-copy{padding-right:6px}}
@media(max-height:640px) and (max-width:999px){.guide{max-height:290px}#game-shell{min-height:650px}}
.point-controls.compact{padding:7px}.point-controls.compact .point-choice{min-height:20px;margin-bottom:5px}.point-controls.compact .point-buttons button{min-height:44px}.is-selecting .scene-controls{display:none}@media(max-width:999px){.experience-label{display:none}.is-selecting #game-shell{grid-template-rows:auto minmax(320px,1fr) auto auto}}
/* Intrinsic label widths must not depend on their previous screen position. */
.world-label{width:max-content}.point-controls{transition:none}
.intro-overview{margin:16px 0;padding:14px;background:#130e09a8;border:1px solid #bc934347;border-radius:6px}.intro-overview h3{margin:0 0 8px;font-size:1rem;line-height:1.6;color:#ffe29a}.intro-overview p{margin:0;font-size:.875rem;line-height:1.75;color:#d5c3a4}.intro-overview strong{color:#ffd875}.action-types{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:11px 0}.action-types span{display:flex;align-items:center;min-height:38px;padding:6px 8px;border:1px solid #d0a85548;border-radius:4px;background:#ffffff06;font-size:.75rem;font-weight:700;color:#f1dbad}.action-explanation{margin:13px 0 8px;padding:12px 13px;border:1px solid #cda4564d;border-radius:6px;background:#120d0878}.action-explanation>span{display:block;font-size:.75rem;font-weight:800;letter-spacing:.05em;color:#f3ca59}.action-explanation>p{margin:6px 0 13px;font-size:1rem;line-height:1.75;color:#f4e2c1}.action-explanation h2{margin:0 0 8px;padding-top:10px;border-top:1px solid #a8874a3b;font-size:.875rem;line-height:1.6;color:#d7b972}.action-explanation ul{display:grid;gap:7px;margin:0;padding:0;list-style:none}.action-explanation li{position:relative;padding-left:1.25em;font-size:.875rem;line-height:1.7;color:#ddcbae}.action-explanation li:before{content:'・';position:absolute;left:0;color:#e7bd50;font-weight:900}

/* --- single continuous game: deck counter, final score --- */
.deck-count b{color:#f3c34a}.deck-count.last b{color:#ff6b4a}.deck-count.last span::after{content:"・最終";color:#ff6b4a}
#chapters button{min-width:0}
.score-board{list-style:none;margin:14px 0 8px;padding:0;display:grid;gap:6px}
.score-board li{display:grid;grid-template-columns:22px 1fr auto;grid-template-areas:"rank name total" "rank parts total";align-items:center;column-gap:10px;padding:10px 12px;border:1px solid #bc9e5d40;border-radius:8px;background:#130e09a8}
.score-board li.mine{border-color:#f3c34a;background:#2a1d0d}
.score-board .rank{grid-area:rank;font-weight:900;color:#c9b99b;font-variant-numeric:tabular-nums}
.score-board li.mine .rank{color:#f3c34a}
.score-board b{grid-area:name;font-size:.95rem}
.score-board .parts{grid-area:parts;font-size:.72rem;color:#c9b99b;letter-spacing:.01em}
.score-board strong{grid-area:total;font-size:1.6rem;font-weight:900;font-variant-numeric:tabular-nums;line-height:1}
.score-board strong small{font-size:.7rem;margin-left:2px;font-weight:700}
.score-note{font-size:.75rem;color:#c9b99b;margin:0 0 22px}
.ending-invite{font-size:1.15rem;font-weight:900;line-height:1.5;margin:0 0 8px;padding-top:18px;border-top:1px solid #bc9e5d40}
#score-headline{font-size:1.75rem;text-wrap:balance}
.intro-steps-title{margin:18px 0 0;font-size:1rem;line-height:1.6;color:#ffe29a}.intro-steps-title+.intro-steps{margin-top:10px}

/* ===== Board-first layout (phones & tablets) =====================================
   The 3D table is the experience, so it gets the screen. Header shrinks to one row,
   the status bar folds into the board's own labels, and the guide becomes a short
   sheet: one instruction before pointing, a two-sentence result after. Rules and the
   full round recap are one tap away instead of always open. */
.sheet-toggle{display:none}
.hud-chip b{font-weight:800;color:var(--yellow-light);font-variant-numeric:tabular-nums}
.hud-chip .deck-count.last,.hud-chip .deck-count.last b{color:#ff8a66}
.chapter-picker{margin:18px 0 14px;padding-top:14px;border-top:1px solid #bc9e5d40}
.chapter-picker h3{margin:0 0 10px;font-size:.875rem;color:#f5d489}
#chapter-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
#chapter-list button{min-height:48px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;border:1px solid #d8b06b55;border-radius:6px;background:#24170e;color:#e9d8b5;font-size:.75rem;font-weight:700}
#chapter-list button b{font-family:Georgia,serif;color:#ab9269}
#chapter-list button.active{border-color:var(--yellow);color:var(--yellow)}
@media(max-width:999px){
 #game-shell{grid-template-rows:auto minmax(0,1fr) auto}
 /* header: logo · progress dots · tools, one row */
 .topbar{grid-template-columns:auto 1fr auto;gap:10px;padding:calc(6px + env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) 6px max(12px,env(safe-area-inset-left))}
 .brand img{width:84px;height:31px;padding:3px 6px}
 .brand span{display:none}
 #chapters{grid-column:auto;grid-row:auto;display:flex;justify-content:center;align-items:center;gap:7px;width:auto;pointer-events:none}
 #chapters button{min-height:0;min-width:0;padding:0;border:0;gap:0}
 #chapters button span{display:none}
 #chapters button b{display:block;width:8px;height:8px;border-radius:50%;background:#5a4630;border:0;font-size:0;color:transparent;box-shadow:none}
 #chapters button.complete b{background:#c9a24a}
 #chapters button.active b{background:var(--yellow);width:22px;border-radius:4px;box-shadow:0 0 12px #ffba2566}
 .tools button{height:40px;min-width:40px;font-size:18px}
 .tools button span{display:none}
 /* the status bar's numbers already live on the board (plate labels, deck chip) */
 .table-status{display:none}
 .experience-label.hud-chip{display:flex;z-index:6;top:8px;left:10px;padding:5px 10px;border-radius:14px;background:#17110dcc;border:1px solid #e3bf6340;backdrop-filter:blur(8px);font-size:.75rem;font-weight:700}
 /* rival's line: the story lives here, so phones get it too */
 .rival-speech{display:block;position:absolute;z-index:3;top:42px;left:10px;max-width:66%;pointer-events:none;transition:opacity .3s}
 .rival-speech>span{display:inline-block;margin:0 0 3px 4px;font-size:.6875rem;font-weight:800;color:var(--yellow-light);text-shadow:0 1px 4px #000}
 .rival-speech p{margin:0;padding:7px 11px;border-radius:4px 14px 14px 14px;background:#fff8e7;color:#2a1b0c;font-size:.8125rem;font-weight:800;line-height:1.45;box-shadow:0 4px 12px #0006}
 .is-selecting .rival-speech,body:not([data-phase="ready"]) .rival-speech{opacity:0!important}
 .camera-help{display:none}
 .scene-controls{top:6px;right:8px;bottom:auto;opacity:.9;transform:scale(.84);transform-origin:right top}
 .is-selecting .scene-controls{display:flex;top:6px;right:8px;bottom:auto}
 .rival-speech{top:50px}
 /* the sheet */
 .guide{padding:10px max(16px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));max-height:46dvh;display:flex;flex-direction:column}
 .guide-top{display:none}
 .guide h1{font-size:1.125rem;line-height:1.4;margin:0 0 2px}
 .guide .lead{font-size:.9375rem;line-height:1.6}
 .guide.result .lead{margin:2px 0 10px;font-size:.875rem;font-weight:500;color:#eadcbd}
 .result-changes{display:none}
 .sheet-toggle:not([hidden]){display:inline-flex;align-items:center;gap:6px;min-height:36px;margin:6px 0 0;padding:0 2px;border:0;background:none;color:#d9bd7a;font-size:.8125rem;font-weight:700;text-decoration:underline;text-underline-offset:4px;text-decoration-color:#d9bd7a66}
 .sheet-toggle::after{content:"＋";text-decoration:none;font-weight:900}
 .sheet-toggle[aria-expanded="true"]::after{content:"－"}
 .action-explanation:not([hidden]),.round-recap:not([hidden]){display:none}
 .guide.show-rules .action-explanation:not([hidden]),.guide.show-recap .round-recap:not([hidden]){display:block}
 .action-explanation{margin:6px 0 4px;padding:10px 12px}
 .action-explanation>p,.rule-summary p,.round-recap li{font-size:.875rem;line-height:1.7}
 .action-explanation>p{margin:4px 0 10px}
 .rule-summary{margin:0 0 4px;padding:9px 12px}
 .rule-summary h2{font-size:.75rem;margin:0 0 3px}
 .guide.result .guide-actions{padding-top:8px}
 .guide-foot{min-height:24px}
 #repeat-button{display:none}
 /* while the fingers are out, the sheet steps back */
 #guide[data-phase="revealing"] .lead,#guide[data-phase="resolving"] .lead{font-size:.8125rem;font-weight:500;color:#d9caa6}
 #guide[data-phase="revealing"] .guide-actions,#guide[data-phase="resolving"] .guide-actions,#guide[data-phase="enter"] .guide-actions{display:none}
 .is-selecting #game-shell{grid-template-rows:auto minmax(0,1fr) auto}
}
@media(max-height:640px) and (max-width:999px){.guide{max-height:52dvh}.rival-speech{display:none}}
#intro-title:focus{outline:none}
@media(max-width:999px){.vignette{background:linear-gradient(0deg,#1c130d 0%,transparent 9%),radial-gradient(ellipse at 50% 45%,transparent 55%,#0c080930 100%)}}
/* written cue: round 1 only, compact; afterwards it exists just for keyboard / screen readers */
.target-cue.cue-quiet:not(:focus-visible){opacity:0;pointer-events:none;animation:none;box-shadow:none}
@media(max-width:999px){.target-cue{min-height:34px;padding:5px 11px;gap:5px}.target-cue b{font-size:.75rem}.target-cue span{font-size:.6875rem}}
/* phones: the guide is a sheet floating over the stage, so the 3D canvas never resizes between phases */
@media(max-width:999px){
 #game-shell{grid-template-rows:auto minmax(0,1fr) auto;overflow:hidden}
 .is-selecting #game-shell{grid-template-rows:auto minmax(0,1fr) auto}
 .guide{position:absolute;left:0;right:0;bottom:0;z-index:5;will-change:transform}
 .guide.result .rule-summary,.guide.result .sheet-toggle,.guide.result .guide-actions{animation:sheet-in .42s .08s both cubic-bezier(.2,.8,.2,1)}
 .scene-controls,.hud-chip,.rival-speech{z-index:4}
}
@keyframes sheet-in{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.guide.result .rule-summary,.guide.result .sheet-toggle,.guide.result .guide-actions{animation:none}}
/* ===== exit: score reveal + an offer that never scrolls away ===== */
.score-board li{opacity:0;transform:translateY(10px);animation:score-in .5s both cubic-bezier(.2,.8,.2,1)}
.score-board li:nth-child(3){animation-delay:.25s}.score-board li:nth-child(2){animation-delay:.7s}.score-board li:nth-child(1){animation-delay:1.25s}
#score-headline{opacity:0;animation:score-in .6s 1.9s both cubic-bezier(.2,.8,.2,1)}
.score-note{opacity:0;animation:score-in .5s 2.2s both}
@keyframes score-in{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.score-board li,#score-headline,.score-note{animation:none;opacity:1;transform:none}}
.reserve-bar:not([hidden]){position:fixed;left:0;right:0;bottom:0;z-index:20;display:grid;grid-template-columns:auto 1fr;gap:2px 12px;align-items:center;padding:10px max(16px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));background:#17100bf2;border-top:2px solid var(--yellow);backdrop-filter:blur(10px);box-shadow:0 -10px 30px #0006;animation:bar-in .5s 2.6s both cubic-bezier(.2,.8,.2,1)}
@keyframes bar-in{from{transform:translateY(110%)}to{transform:none}}
.reserve-bar div{display:grid;grid-template-columns:auto auto;column-gap:6px;align-items:baseline;line-height:1.15}
.reserve-bar div span{grid-column:1/-1;font-size:.625rem;font-weight:700;color:#d9c79f;letter-spacing:.02em}
.reserve-bar div b{font-size:1.375rem;font-weight:900;color:var(--yellow-light);font-variant-numeric:tabular-nums}
.reserve-bar div b small{font-size:.6875rem;margin-left:1px}
.reserve-bar div del{font-size:.6875rem;color:#a8977a}
.reserve-bar a{min-height:50px;display:flex;align-items:center;justify-content:center;gap:8px;border-radius:7px;background:linear-gradient(180deg,#e8502f,#c53117);color:#fff;font-weight:900;font-size:1rem;text-decoration:none;border:1px solid #ff9a7a;box-shadow:0 3px 0 #6e1608}
.reserve-bar p{grid-column:1/-1;margin:2px 0 0;text-align:center;font-size:.6875rem;color:#c4b291}
body.is-ending{padding-bottom:calc(104px + env(safe-area-inset-bottom))}
@media(max-width:999px){
 body.is-ending .topbar{grid-template-columns:1fr auto}
 body.is-ending #game-shell{grid-template-rows:auto 230px auto}
 .ending h2{font-size:1.75rem;margin:8px 0 10px}
 .score-note{margin:0 0 16px}
 .ending-invite{padding-top:16px}
}
@media(min-width:1000px){.reserve-bar:not([hidden]){left:auto;right:7%;bottom:24px;width:470px;border:1px solid #e3bf6366;border-radius:10px}body.is-ending{padding-bottom:0}}
/* ===== entrance: a small card over the live table — one idea, one button ===== */
#intro-modal{padding:20px 20px 18px}
#intro-modal::backdrop{background:linear-gradient(180deg,#0a080633 0%,#0a080699 55%,#0a0806d9 100%);backdrop-filter:none}
#intro-modal h2{font-size:1.5rem;line-height:1.4;margin:6px 0 0;text-wrap:balance}
#intro-modal #intro-description{font-size:.9375rem;line-height:1.75;margin:14px 0 0;color:#eadcbd}
.intro-heading img{width:64px;height:89px}
.intro-facts{list-style:none;display:flex;flex-wrap:wrap;gap:6px;margin:12px 0 0;padding:0}
.intro-facts li{border:1px solid #e3bf6355;border-radius:99px;padding:4px 10px;font-size:.75rem;font-weight:700;line-height:1.4;color:#f0deb4;background:#0003}
.intro-steps-title{margin:16px 0 0;font-size:.75rem;letter-spacing:.06em;color:#f3ca59}
.intro-steps-title+.intro-steps{margin:8px 0 0}
#intro-modal .intro-steps{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px!important}
#intro-modal .intro-steps li{flex-direction:column;align-items:flex-start;gap:4px;padding:9px 10px;border:1px solid #a4864644;border-radius:6px;background:#0002;font-size:.75rem;line-height:1.45;color:#f4e6c6;font-weight:700}
#intro-modal .intro-steps li>b{border:0;font-size:1rem;line-height:1;color:var(--yellow)}
#intro-modal .intro-steps li>span{font-size:.75rem;color:#f4e6c6}
#intro-modal .action-button{margin-top:16px}
#intro-modal .intro-foot{margin:10px 0 0;font-size:.6875rem}
@media(max-width:999px){
 #intro-modal{width:100%;max-width:none;margin:auto 0 0;border-radius:16px 16px 0 0;border-left:0;border-right:0;border-bottom:0;padding-bottom:max(18px,env(safe-area-inset-bottom));max-height:70dvh;animation:intro-rise .5s cubic-bezier(.2,.8,.2,1) both}
}
@keyframes intro-rise{from{transform:translateY(40px);opacity:0}to{transform:none;opacity:1}}
@media(prefers-reduced-motion:reduce){#intro-modal{animation:none}}
@media(min-width:1000px){#intro-modal{padding:30px}#intro-modal h2{font-size:2rem}.intro-heading img{width:98px;height:136px}}
/* the table behind the intro card is a clean backdrop: no labels, chips or speech until the game starts */
body.intro-open .world-label,body.intro-open .rival-speech,body.intro-open .hud-chip,body.intro-open .scene-controls,body.intro-open #chapters{visibility:hidden!important}

/* ===================================================================================================
   LP TONE (phase 1: intro card + round screen)
   Same brand as the landing page: package yellow, red, thick ink lines, hard offset shadows, Noto Sans
   JP Black. The 3D table stays a dark restaurant table so the components keep popping; the UI around it
   uses the LP's dark variant (scorched brown ground, yellow frame, cream text).
   LP rules kept: pressable things get a straight-down hard shadow + press motion; static cards get a
   diagonal hard shadow and no motion; red fill + white text is reserved for the reservation action.
   =================================================================================================== */
@font-face{font-family:"Noto Sans JP";font-style:normal;font-weight:700;font-display:swap;src:url("fonts/noto-sans-jp-700.woff2") format("woff2")}
@font-face{font-family:"Noto Sans JP";font-style:normal;font-weight:900;font-display:swap;src:url("fonts/noto-sans-jp-900.woff2") format("woff2")}
:root{--yellow:#f7d444;--yellow-light:#ffe986;--red:#dc3113;--red-dark:#9e210e;--orange:#f28a00;--cream:#fff8e7;--ink:#17130f;--charcoal:#211b16;--scorch:#2c1711;--paper:#fffdf7;
 --press:0 6px 0 #0b0806;--card:5px 5px 0 #0b0806;
 font-family:"Noto Sans JP","Hiragino Kaku Gothic ProN","Yu Gothic",sans-serif;font-feature-settings:"palt" 1;letter-spacing:.02em}
body{font-weight:700}

/* header */
.topbar{background:var(--ink);border-bottom:3px solid var(--yellow)}
.brand img{box-shadow:3px 3px 0 #0008;border:2px solid var(--ink)}
.tools button{border:2px solid var(--cream);background:var(--charcoal);color:var(--cream);box-shadow:0 3px 0 #0b0806;font-weight:900}
.tools button:active{transform:translateY(2px);box-shadow:0 1px 0 #0b0806}
@media(max-width:999px){
 #chapters button b{background:#5b5248}
 #chapters button.complete b{background:var(--orange)}
 #chapters button.active b{background:var(--yellow);box-shadow:none}
}

/* things floating over the table */
.experience-label.hud-chip{background:var(--ink);border:2px solid var(--yellow);color:var(--cream);font-weight:900;backdrop-filter:none;border-radius:99px}
.hud-chip b{color:var(--yellow)}
.hud-chip .ember-dot{background:var(--red)}
.scene-controls{background:var(--ink);border:2px solid var(--cream);backdrop-filter:none;box-shadow:0 3px 0 #0b0806}
.scene-controls button{color:var(--cream);font-weight:900}
.rival-speech>span{color:var(--yellow);font-weight:900;text-shadow:0 2px 0 #000}
.rival-speech p{background:var(--paper);color:var(--ink);border:3px solid var(--ink);border-radius:16px;box-shadow:3px 4px 0 #0b0806;font-weight:900}
.world-label{background:var(--ink);color:var(--cream);border:2px solid var(--cream);border-radius:8px;box-shadow:2px 3px 0 #0008;font-weight:900}
.world-label span{font-weight:700}
.plate-label.mine{border-color:var(--yellow)}
.target-cue{border:3px solid var(--ink);background:var(--yellow);color:var(--ink);box-shadow:0 4px 0 #0b0806;animation:none;font-weight:900}
.target-cue.chosen{background:var(--cream);border-color:var(--ink);color:var(--ink);box-shadow:0 4px 0 #0b0806}

/* confirm panel beside the target: a cream card with the one yellow action */
.point-controls{border:3px solid var(--ink);border-radius:14px;background:var(--cream);color:var(--ink);box-shadow:var(--card)}
.point-choice span{color:var(--red-dark);font-weight:900}
.point-choice strong{color:var(--ink);font-weight:900}
.point-buttons #clear-selection{border:2px solid var(--ink);border-radius:10px;background:var(--paper);color:var(--ink);font-weight:900;box-shadow:0 3px 0 var(--ink)}
.point-buttons #confirm-point{border:3px solid var(--ink);border-radius:10px;background:var(--yellow);color:var(--ink);font-weight:900;box-shadow:0 4px 0 var(--ink)}
.point-buttons #clear-selection:active,.point-buttons #confirm-point:active{transform:translateY(3px);box-shadow:0 1px 0 var(--ink)}

/* the sheet */
.guide{background:var(--scorch);border-top:3px solid var(--yellow);box-shadow:0 -10px 0 #0b080655;color:var(--cream)}
.guide.result{border-top-color:var(--orange)}
.guide.has-selection{border-top-color:var(--cream)}
.guide h1{font-weight:900;letter-spacing:-.03em;color:var(--paper)}
.guide .lead{color:var(--cream);font-weight:700}
.guide.result .lead{color:#f3e6cf}
.sheet-toggle:not([hidden]){color:var(--yellow);font-weight:900;text-decoration-color:var(--yellow)}
.action-explanation{border:2px solid #fff8e755;border-radius:10px;background:#0003}
.action-explanation>span,.action-explanation h2{color:var(--yellow);font-weight:900}
.rule-summary{border:0;border-left:5px solid var(--yellow);border-radius:0 10px 10px 0;background:#0004}
.rule-summary h2{color:var(--yellow);font-weight:900;letter-spacing:.08em}
.rule-summary p{color:var(--cream);font-weight:700}
.guide-foot{color:#d9c9ad;font-weight:700}
.action-button{border:3px solid var(--ink);border-radius:12px;background:var(--yellow);color:var(--ink);font-weight:900;box-shadow:var(--press);outline:2px solid #fff8e722;outline-offset:0}
.action-button:hover:not(:disabled){filter:none;background:var(--yellow-light)}
.action-button:active:not(:disabled){transform:translateY(4px);box-shadow:0 2px 0 #0b0806}

/* intro card */
#intro-modal{background:var(--yellow);color:var(--ink);border:3px solid var(--ink);border-top:3px solid var(--ink);box-shadow:0 -8px 0 #0b080666}
#intro-modal .eyebrow{color:var(--red-dark);font-weight:900;letter-spacing:.08em}
#intro-modal h2{color:var(--ink);font-weight:900;letter-spacing:-.04em}
#intro-modal #intro-description{color:var(--ink);font-weight:700}
#intro-modal #intro-description strong{color:var(--red-dark)}
.intro-heading img{filter:none;border:2px solid var(--ink);box-shadow:4px 4px 0 var(--ink);transform:rotate(-5deg)}
.intro-facts li{border:2px solid var(--ink);background:var(--cream);color:var(--ink);font-weight:900}
.intro-steps-title{color:var(--red-dark);font-weight:900}
#intro-modal .intro-steps li{border:2px solid var(--ink);border-radius:10px;background:var(--cream);color:var(--ink);font-weight:900}
#intro-modal .intro-steps li>b{color:var(--red);font-family:inherit;font-weight:900}
#intro-modal .intro-steps li>span{color:var(--ink)}
#intro-modal .action-button{background:var(--ink);color:var(--yellow);border-color:var(--ink);box-shadow:0 6px 0 var(--red-dark);outline:0}
#intro-modal .action-button:hover:not(:disabled){background:#2a221b}
#intro-modal .action-button:active:not(:disabled){box-shadow:0 2px 0 var(--red-dark)}
#intro-modal .intro-foot{color:#4a3a1d;font-weight:700}
#intro-modal::backdrop{background:linear-gradient(180deg,#0a080622 0%,#0a080688 60%,#0a0806cc 100%)}
@media(max-width:999px){#intro-modal{border-left:0;border-right:0;border-bottom:0}}
.point-buttons{grid-template-columns:78px 1fr}.point-buttons #clear-selection{white-space:nowrap;font-size:.8125rem}

/* ===================================================================================================
   LP TONE (phase 2: pick panel, ending, reservation bar, help dialog, toast, desktop chrome)
   =================================================================================================== */
/* pick one card: pressable cream cards */
#pick-cards button{background:var(--cream);color:var(--ink);border:3px solid var(--ink);border-radius:12px;box-shadow:0 5px 0 #0b0806;font-weight:900;padding:8px 6px 10px}
#pick-cards button b{color:var(--ink)}
#pick-cards button small{font-weight:900;color:var(--red-dark)}
#pick-cards button:hover{transform:translateY(-2px);box-shadow:0 7px 0 #0b0806}
#pick-cards button:active{transform:translateY(3px);box-shadow:0 2px 0 #0b0806}
#announcement strong{font-weight:900;color:var(--yellow);text-shadow:4px 5px 0 var(--ink),0 0 0 #000;-webkit-text-stroke:2px var(--ink);paint-order:stroke fill;letter-spacing:-.04em}
#announcement span{font-weight:900;color:var(--paper);text-shadow:0 2px 0 var(--ink)}
#announcement.collision strong{color:var(--red)}
#toast{background:var(--cream);color:var(--ink);border:3px solid var(--ink);border-radius:12px;box-shadow:var(--card);font-weight:900}

/* ending: scorched ground, yellow score card for the winner, LP's red reservation button */
.ending{background:var(--scorch);color:var(--cream)}
.ending>.eyebrow{color:var(--yellow);font-weight:900;letter-spacing:.1em}
.ending h2{color:var(--paper);font-weight:900;letter-spacing:-.04em}
.ending>p{color:#f1e4cd;font-weight:700}
.score-board li{border:3px solid var(--ink);border-radius:12px;background:var(--cream);color:var(--ink);box-shadow:var(--card)}
.score-board li.mine{background:var(--yellow);border-color:var(--ink)}
.score-board .rank,.score-board li.mine .rank{color:var(--red-dark);font-weight:900}
.score-board b{font-weight:900}
.score-board .parts{color:#4d3f2b;font-weight:700}
.score-board strong{font-weight:900;letter-spacing:-.04em}
.score-note{color:#d9c9ad;font-weight:700}
.ending-invite{color:var(--yellow);font-weight:900;border-top:3px solid #fff8e733;letter-spacing:-.03em}
.ending p strong{color:var(--yellow)}
.event-ticket{border:3px solid var(--yellow);border-radius:14px;padding:14px 16px;background:#0004}
.event-ticket span{color:#d9c9ad;font-weight:700}
.event-ticket b{color:var(--paper);font-weight:900}
.event-ticket strong{color:var(--yellow);font-family:inherit;font-weight:900;letter-spacing:-.03em}
.price span{color:#d9c9ad;font-weight:700}
.price strong{color:var(--yellow);font-family:inherit;font-weight:900;letter-spacing:-.04em}
.price del{color:#b9a88a}
.reservation-button,.reserve-bar a{background:var(--red);color:var(--paper);border:3px solid var(--ink);border-radius:12px;box-shadow:0 6px 0 #0b0806;font-weight:900;text-decoration:none;outline:2px solid #fff8e722;outline-offset:0}
.reservation-button:hover,.reserve-bar a:hover{background:#ec3b19}
.reservation-button:active,.reserve-bar a:active{transform:translateY(4px);box-shadow:0 2px 0 #0b0806}
.ending .reservation-note{color:#d9c9ad;font-weight:700}
.ending-links a,.ending-links button{color:var(--yellow);font-weight:900;text-decoration-color:var(--yellow)}
.product-spec span{color:#d9c9ad;font-weight:700}
.reserve-bar:not([hidden]){background:var(--yellow);border-top:3px solid var(--ink);backdrop-filter:none;box-shadow:0 -8px 0 #0b080655}
.reserve-bar div span{color:#4a3a1d;font-weight:900}
.reserve-bar div b{color:var(--ink);font-weight:900;letter-spacing:-.04em}
.reserve-bar div del{color:#6b5a3a;font-weight:700}
.reserve-bar p{color:#4a3a1d;font-weight:700}
@media(min-width:1000px){.reserve-bar:not([hidden]){border:3px solid var(--ink);border-radius:14px;box-shadow:var(--card)}}

/* help dialog: cream paper */
#help-modal{background:var(--cream);color:var(--ink);border:3px solid var(--ink);border-radius:16px;box-shadow:8px 8px 0 #0b0806}
#help-modal::backdrop{background:#0a0806b8;backdrop-filter:none}
#help-modal .eyebrow{color:var(--red-dark);font-weight:900;letter-spacing:.08em}
#help-modal h2{color:var(--ink);font-weight:900;letter-spacing:-.04em}
#help-modal p{color:#2d241a;font-weight:700}
#help-modal li{border:2px solid var(--ink);border-radius:10px;background:var(--paper);color:#2d241a;font-weight:700}
#help-modal li b{color:var(--red-dark);font-weight:900}
#help-modal .help-note{background:#17130f0d;color:#4a3d2c;border-radius:8px}
#help-modal .close-button{border:2px solid var(--ink);border-radius:50%;background:var(--paper);color:var(--ink);font-weight:900;box-shadow:0 3px 0 var(--ink)}
#help-modal .plain-link{color:var(--red-dark);font-weight:900}
.chapter-picker{border-top:3px solid #17130f22}
.chapter-picker h3{color:var(--red-dark);font-weight:900}
#chapter-list button{border:2px solid var(--ink);border-radius:10px;background:var(--paper);color:var(--ink);font-weight:900;box-shadow:0 3px 0 var(--ink)}
#chapter-list button b{color:var(--red-dark);font-family:inherit}
#chapter-list button.active{background:var(--yellow);color:var(--ink);border-color:var(--ink)}
#chapter-list button:active{transform:translateY(2px);box-shadow:0 1px 0 var(--ink)}

/* desktop-only chrome */
@media(min-width:1000px){
 #chapters button{font-weight:900;color:#d9c9ad}
 #chapters button b{font-family:inherit;border:2px solid var(--cream);background:var(--charcoal);color:var(--cream)}
 #chapters button.active b{background:var(--yellow);color:var(--ink);border-color:var(--ink);box-shadow:0 3px 0 #0b0806}
 #chapters button.complete b{background:var(--orange);color:var(--ink);border-color:var(--ink)}
 .table-status{background:var(--ink);border:3px solid var(--yellow);border-radius:14px;box-shadow:var(--card)}
 .status-values b{color:var(--yellow);font-family:inherit;font-weight:900}
 .guide{border:3px solid var(--yellow);border-radius:16px;box-shadow:var(--card)}
 .event-strip{background:var(--yellow);color:var(--ink);border-top:3px solid var(--ink);font-weight:900}
 .event-strip a{background:var(--red);color:var(--paper);border:2px solid var(--ink);border-radius:8px;box-shadow:0 3px 0 var(--ink);text-decoration:none;padding:4px 12px}
 .event-strip strong,.event-strip b{color:var(--ink)}
}

/* ===== help dialog: headed sections; the close button stays in the corner while the body scrolls ===== */
#help-modal[open]{display:flex;flex-direction:column;padding:0;overflow:hidden;max-height:min(88dvh,760px)}
#help-modal .help-scroll{overflow-y:auto;overscroll-behavior:contain;padding:22px 20px 24px;scrollbar-width:thin}
#help-modal .close-button{position:absolute;top:10px;right:10px;z-index:2;float:none;width:44px;height:44px;min-width:44px;padding:0;display:grid;place-items:center;font-size:22px;line-height:1}
#help-modal .close-button:active{transform:translateY(2px);box-shadow:0 1px 0 var(--ink)}
#help-modal .eyebrow{display:block;padding-right:54px}
#help-modal h2{margin:4px 54px 4px 0;font-size:1.5rem;line-height:1.4}
.help-section{margin-top:22px}
.help-section h3{margin:0 0 8px;padding-bottom:6px;border-bottom:3px solid var(--ink);font-size:1rem;font-weight:900;letter-spacing:-.01em;color:var(--ink)}
#help-modal .help-section p{margin:0;font-size:.875rem;line-height:1.8}
#help-modal .help-section p+p{margin-top:8px}
#help-modal .help-point{padding:10px 12px;border-left:5px solid var(--red);background:#dc311312;border-radius:0 8px 8px 0}
#help-modal strong{color:var(--red-dark);font-weight:900}
#help-modal .help-flow{display:grid;gap:6px;margin:0;padding:0}
#help-modal .help-flow li{display:grid;grid-template-columns:26px 1fr;gap:8px;align-items:start;padding:9px 11px;font-size:.875rem;line-height:1.65}
#help-modal .help-flow li>b{display:grid;place-items:center;width:24px;height:24px;margin:0;border-radius:50%;background:var(--ink);color:var(--yellow);font-size:.75rem}
.help-actions{display:grid;gap:8px;margin:0}
.help-actions>div{padding:11px 12px;border:2px solid var(--ink);border-radius:10px;background:var(--paper)}
.help-actions dt{margin:0 0 4px;font-size:.9375rem;font-weight:900;color:var(--ink)}
.help-actions dd{margin:0;font-size:.8125rem;line-height:1.7;font-weight:700;color:#2d241a}
.help-actions dd b{color:var(--red-dark)}
.help-actions dd.clash{margin-top:5px;padding-top:5px;border-top:1px dashed #17130f44;color:#5a4a33}
#help-modal .help-controls{list-style:none;display:grid;gap:0;margin:0;padding:0}
#help-modal .help-controls li{display:grid;grid-template-columns:7.2em 1fr;gap:8px;padding:8px 0;border:0;border-bottom:1px solid #17130f22;border-radius:0;background:none;font-size:.8125rem;line-height:1.65}
#help-modal .help-controls li b{display:block;margin:0;color:var(--ink);font-weight:900}
#help-modal .help-note{margin:0;font-size:.8125rem!important}
.help-links{display:flex;flex-direction:column;align-items:flex-start;margin-top:6px}

/* close button centred on the dialog's top-right corner: the dialog itself must not clip, so the body
   scrolls inside a rounded inner box, and the dialog keeps enough side margin for the button to stay on screen */
#help-modal[open]{overflow:visible;width:min(620px,calc(100% - 56px))}
#help-modal .help-scroll{border-radius:13px}
#help-modal .close-button{top:-25px;right:-25px}
#help-modal .eyebrow{padding-right:0}
#help-modal h2{margin-right:0}
/* round names got longer (バッティング) */
#chapter-list button span{font-size:.6875rem;letter-spacing:-.02em;white-space:nowrap}
@media(min-width:1000px){#chapters button span{white-space:nowrap}}

/* intro headline in two tiers (box-back copy) */
#intro-modal h2{font-size:clamp(1.25rem,5.6vw,1.5rem);line-height:1.35;margin-top:4px;word-break:keep-all;overflow-wrap:anywhere}
.intro-tagline{margin:12px 0 0;color:var(--red-dark)!important;font-size:clamp(1.0625rem,5vw,1.3125rem)!important;line-height:1.4!important;font-weight:900;letter-spacing:-.03em;word-break:keep-all;overflow-wrap:anywhere}
#intro-modal #intro-description{margin-top:10px}
@media(min-width:1000px){#intro-modal h2{font-size:2rem}.intro-tagline{font-size:1.5rem!important}}
/* small phones: the card may scroll, but the way in never leaves the screen */
@media(max-width:999px){
 #intro-modal{max-height:88dvh}
 #intro-modal .action-button{position:sticky;bottom:0;z-index:1}
 #intro-modal .action-button::before{content:"";position:absolute;left:-3px;right:-3px;top:-16px;height:14px;background:linear-gradient(#f7d44400,var(--yellow));pointer-events:none}
}
@media(max-width:999px) and (max-height:700px){
 .intro-heading img{width:52px;height:72px}
 .intro-facts{margin-top:8px}.intro-steps-title{margin-top:12px}
 #intro-modal .intro-steps li{padding:7px 8px}
}

/* both headline tiers sit beside the box image; sizes follow the card width so each stays on one line */
.intro-heading{align-items:center;gap:14px}
.intro-heading>div{flex:1;min-width:0}
#intro-modal h2{display:flex;flex-direction:column;gap:3px;margin-top:3px;font-size:inherit}
#intro-modal .intro-title-call{font-size:clamp(1rem,5.05vw,1.25rem);line-height:1.35;white-space:nowrap;letter-spacing:-.04em}
#intro-modal .intro-tagline{margin:0;font-size:clamp(.8125rem,4.05vw,1rem)!important;line-height:1.4!important;white-space:nowrap;letter-spacing:-.045em}
@media(min-width:1000px){#intro-modal .intro-title-call{font-size:1.75rem}#intro-modal .intro-tagline{font-size:1.25rem!important}}

/* opening cards over the live table: tap anywhere to advance, separate skip button */
.opening{position:absolute;inset:0;z-index:8;display:grid;place-items:center;padding:64px 24px 96px;text-align:center;background:linear-gradient(#0a0806d9,#0a0806b3 45%,#0a0806e6)}
.opening-next{position:absolute;inset:0;border:0;background:none;cursor:pointer}
.opening-next:focus-visible{outline:3px solid var(--yellow);outline-offset:-6px}
.opening-body{position:relative;pointer-events:none;display:grid;justify-items:center;gap:14px;max-width:22em}
.opening-kicker{padding:4px 14px;border:2px solid var(--ink);border-radius:99px;background:var(--yellow);color:var(--ink);font-size:.8125rem;font-weight:900;letter-spacing:.06em}
.opening p{margin:0;font-size:clamp(1.25rem,6vw,1.875rem);font-weight:900;line-height:1.6;letter-spacing:-.03em;color:var(--paper);text-shadow:0 3px 0 #0b0806,0 0 26px #0009}
.opening p b{color:var(--yellow);font-weight:900}
.opening small{font-size:.875rem;font-weight:700;line-height:1.7;color:#eadcbd;text-shadow:0 2px 0 #0b0806}
.opening.beat .opening-body{animation:beat-in .5s cubic-bezier(.2,.8,.2,1) both}
@keyframes beat-in{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
.opening-foot{position:absolute;left:0;right:0;bottom:max(26px,env(safe-area-inset-bottom));display:grid;justify-items:center;gap:10px;pointer-events:none}
.opening-dots{display:flex;gap:7px}
.opening-dots i{width:8px;height:8px;border-radius:50%;background:#5b5248}
.opening-dots i.done{background:var(--orange)}
.opening-dots i.on{width:22px;border-radius:4px;background:var(--yellow)}
.opening-hint{font-size:.8125rem;font-weight:900;color:var(--yellow);animation:hint-pulse 1.6s ease-in-out infinite}
@keyframes hint-pulse{50%{opacity:.45}}
.opening-skip{position:absolute;top:12px;right:12px;z-index:1;min-height:44px;padding:0 16px;border:2px solid var(--cream);border-radius:99px;background:var(--ink);color:var(--cream);font-size:.8125rem;font-weight:900;box-shadow:0 3px 0 #0b0806}
.opening-skip:active{transform:translateY(2px);box-shadow:0 1px 0 #0b0806}
@media(prefers-reduced-motion:reduce){.opening-hint{animation:none}}
body.is-opening .guide,body.is-opening .hud-chip,body.is-opening .rival-speech,body.is-opening .scene-controls,body.is-opening .world-label,body.is-opening #chapters{visibility:hidden!important}

/* opening: going back slides in from the other side */
.opening.beat-back .opening-body{animation:beat-back .5s cubic-bezier(.2,.8,.2,1) both}
@keyframes beat-back{from{opacity:0;transform:translateX(-22px)}to{opacity:1;transform:none}}
.opening.beat .opening-body{animation-name:beat-next}
@keyframes beat-next{from{opacity:0;transform:translateX(22px)}to{opacity:1;transform:none}}
.opening-next{touch-action:pan-y}
/* round title card */
#announcement.round{background:radial-gradient(ellipse at center,#0a0806cc 0%,#0a080688 55%,#0a080600 100%)}
#announcement.round span{padding:5px 16px;border:2px solid var(--ink);border-radius:99px;background:var(--yellow);color:var(--ink);font-size:.875rem;font-weight:900;letter-spacing:.1em;text-shadow:none;margin-bottom:12px}
#announcement.round strong{font-size:clamp(2.75rem,14vw,5rem);transform:rotate(-4deg) scale(.92)}
#announcement.round.show strong{transform:rotate(-4deg) scale(1)}

/* Header progress: a bar that fills, not carousel dots. Equal segments, no elongated "current" pill —
   an elongated active dot is the signature of a swipeable slider, which this is not. */
@media(max-width:999px){
 #chapters{gap:0;justify-self:center;width:min(150px,40vw);height:12px;padding:2px;border:2px solid var(--cream);border-radius:99px;background:#3a322b;overflow:hidden}
 #chapters button{flex:1;height:100%;min-width:0;border-radius:0}
 #chapters button b{display:block;width:100%;height:100%;border:0;border-radius:0;background:transparent;box-shadow:none;font-size:0;color:transparent;transition:background .35s ease}
 #chapters button+button b{box-shadow:inset 1px 0 0 #17130f59}
 #chapters button.complete b{background:var(--orange)}
 #chapters button.active b{background:var(--yellow);width:100%;border-radius:0;box-shadow:inset 1px 0 0 #17130f59}
 #chapters button:first-child.active b,#chapters button:first-child.complete b{box-shadow:none}
}

/* ===== desktop pass: undo phone-only chrome that leaked up, and park the floating bits in the right column ===== */
@media(min-width:1000px){
 .topbar{background:none;border-bottom:0}
 .brand img{border:0;box-shadow:none}
 /* right column, top to bottom: round/deck chip, rival's line, (free space), status panel */
 .experience-label.hud-chip{display:flex;top:104px;left:auto;right:30px;z-index:4;padding:6px 14px;font-size:.8125rem}
 .rival-speech{top:150px;right:30px;left:auto;max-width:270px;transform:none;filter:none}
 .rival-speech>span{margin:0 0 5px 6px}
 body:not([data-phase="ready"]) .rival-speech{opacity:0!important}
 .scene-controls{z-index:4}
 /* opening cards: room to breathe, no mid-word wraps */
 .opening{padding:96px 40px 120px}
 .opening-body{max-width:min(44em,80vw)}
 .opening p{font-size:clamp(1.75rem,2.6vw,2.5rem);word-break:keep-all;overflow-wrap:anywhere}
 .opening small{font-size:1rem}
 .opening-skip{top:24px;right:30px}
 /* nothing but the table behind the intro card and the opening */
 body.intro-open .guide,body.intro-open .table-status,body.is-opening .table-status,body.is-opening .topbar .tools{visibility:hidden}
}

#lesson-title{word-break:keep-all;overflow-wrap:anywhere;text-wrap:balance}
#pick-cards button b{white-space:nowrap}
/* PC：エンディングは2段組み。得点を左、予約までを右に置き、スクロールなしで収める。 */
@media(min-width:1000px){
 #game-shell,body.is-ending #game-shell{min-height:600px}
 .guide{bottom:74px;max-height:calc(100% - 226px)}
 .ending{top:calc(50% + 12px);right:40px;transform:translateY(-50%);width:min(900px,calc(100% - 80px));max-width:none;columns:2;column-gap:48px}
 .ending{background:none}
 .ending>*{break-inside:avoid}
 .ending .ending-invite{break-before:column;margin-top:0;padding-top:0;border-top:0}
 .ending h2{font-size:2.25rem;margin:10px 0 14px}
 body.is-ending .vignette{background:linear-gradient(90deg,#110c0899 0%,#110c08f5 30%),radial-gradient(ellipse,transparent,#0b0809a0)}
 body.is-ending #chapters{visibility:hidden}
 .reserve-bar:not([hidden]){display:none}
}
#guide-note{text-wrap:balance}
/* PC：章ナビは等間隔にして画面の左右中央へ。下部の帯は予約ボタンが収まる高さに。 */
@media(min-width:1000px){
 #chapters{position:absolute;left:50%;top:0;transform:translateX(-50%);margin:0;gap:0}
 #chapters button{flex:none;width:88px}
 #stage{inset:0 0 58px}
 .event-strip{min-height:58px;gap:28px}
 .event-strip a{min-height:38px;padding:0 18px;border:3px solid var(--ink);border-radius:10px;box-shadow:0 4px 0 var(--ink);margin-top:-4px;transition:transform .08s,box-shadow .08s}
 .event-strip a:hover{text-decoration:none;background:#ec3b19}
 .event-strip a:active{transform:translateY(3px);box-shadow:0 1px 0 var(--ink)}
}

/* 入口：タイトルカードを全画面で重ねる。盤面は暗く落とし、押せるものは「はじめる」だけにする。 */
#intro-modal{inset:0;width:100%;max-width:none;height:100dvh;max-height:none;margin:0;padding:max(24px,env(safe-area-inset-top)) 24px max(24px,env(safe-area-inset-bottom));border:0;border-radius:0;box-shadow:none;background:linear-gradient(#0a0806e6,#0a0806d1 45%,#0a0806f2);color:var(--cream);overflow-y:auto;animation:title-in .45s ease both}
#intro-modal[open]{display:grid;place-items:center}
#intro-modal::backdrop{background:none;backdrop-filter:none}
@keyframes title-in{from{opacity:0}to{opacity:1}}
.title-card{display:grid;justify-items:center;gap:0;width:min(100%,26rem);text-align:center}
.title-box{width:clamp(108px,30vw,150px);height:auto;border:3px solid var(--ink);border-radius:6px;box-shadow:6px 7px 0 #0b0806;transform:rotate(-4deg);margin-bottom:22px}
.title-eyebrow{padding:4px 14px;border:2px solid var(--ink);border-radius:99px;background:var(--yellow);color:var(--ink);font-size:.8125rem;font-weight:900;letter-spacing:.06em}
#intro-modal .title-card h2{display:grid;gap:4px;margin:14px 0 0;font-size:inherit;line-height:1.35;outline:0}
.title-call{font-size:clamp(1.5rem,7.2vw,2.125rem);font-weight:900;letter-spacing:-.04em;color:var(--paper);text-shadow:0 3px 0 #0b0806;white-space:nowrap}
.title-tagline{font-size:clamp(1rem,4.6vw,1.3125rem);font-weight:900;letter-spacing:-.03em;color:var(--yellow);text-shadow:0 2px 0 #0b0806;white-space:nowrap}
#intro-modal #intro-description{margin:16px 0 0;font-size:.9375rem;line-height:1.8;font-weight:700;color:#eadcbd}
#intro-modal #intro-description strong{color:var(--yellow)}
.title-facts{list-style:none;display:flex;flex-wrap:wrap;justify-content:center;gap:6px 14px;margin:14px 0 0;padding:0;font-size:.8125rem;font-weight:900;color:#d9c9ad}
.title-facts li+li::before{content:"・";margin-right:14px;color:#8a7a5c}
.title-start{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;min-height:60px;margin-top:26px;padding:0 22px;border:3px solid var(--ink);border-radius:14px;background:var(--yellow);color:var(--ink);font-size:1.0625rem;font-weight:900;box-shadow:0 6px 0 #0b0806;outline:2px solid #fff8e733;cursor:pointer;transition:transform .08s,box-shadow .08s}
.title-start:hover{background:var(--yellow-light)}
.title-start:active{transform:translateY(4px);box-shadow:0 2px 0 #0b0806}
.title-start:focus-visible{outline:3px solid var(--paper);outline-offset:3px}
.title-foot{margin:16px 0 0;font-size:.75rem;line-height:1.7;font-weight:700;color:#b8a887}
@media(max-height:640px){.title-box{width:92px;margin-bottom:14px}.title-start{margin-top:18px}}
@media(min-width:1000px){.title-card{width:min(100%,32rem)}.title-box{width:170px}.title-call{font-size:2.5rem}.title-tagline{font-size:1.5rem}#intro-modal #intro-description{font-size:1.0625rem}.title-facts{font-size:.9375rem}}
@media(prefers-reduced-motion:reduce){#intro-modal{animation:none}}
#intro-modal .title-facts li{border:0;padding:0;background:none;font-size:inherit;line-height:1.6;color:inherit}
#intro-modal{width:100vw;max-width:100vw;box-sizing:border-box;left:0;top:0}
body.intro-open .guide,body.intro-open .table-status,body.intro-open .topbar,body.intro-open .event-strip{visibility:hidden}
.title-foot{text-wrap:balance;word-break:keep-all;overflow-wrap:anywhere}
body.intro-open #camera-help,body.intro-open .scene-controls{visibility:hidden}
