/* Original illustrated game presentation. Business rules remain server-owned. */
:root{--ink:#273b3b;--green:#225d55;--bg:#f8f5e9;--paper:#fffef7;--line:#e2e4d2;--shadow:0 8px 0 #394e3910,0 18px 38px #46523c0b}body{background:radial-gradient(circle at 10% 10%,#fff8d9,transparent 38%),#f7f5e9;color:var(--ink)}.site-header{max-width:1430px;padding:20px 42px}.brand{font-size:25px;font-weight:900}.brand-small{letter-spacing:.16em}.site-header .icon-button{background:#fffdf1;border:1px solid #e3dfc9;border-radius:50%}main{max-width:1390px;padding:12px 32px 65px}.button{background:#f6ba44;color:#3b3826;border:1px solid #e6a42a;box-shadow:0 5px 0 #b8822b;font-weight:850;border-radius:16px;transition:transform .15s,box-shadow .15s}.button:hover{background:#ffc954;transform:translateY(-2px);box-shadow:0 7px 0 #b8822b}.button:active{transform:translateY(3px);box-shadow:0 2px 0 #b8822b}.button.secondary{background:#fffdf3;color:#355b53;border:1px solid #d7dfcc;box-shadow:0 3px 0 #d8deca}.button.light{background:#ffdc80}.button:disabled{transform:none;box-shadow:none}.panel{background:#fffef7;border:1px solid #e3e4d3;border-radius:26px;box-shadow:var(--shadow)}h1,h2,h3{font-weight:850;letter-spacing:.015em}.overline{color:#70866d}.cast-portrait{display:inline-block;flex-shrink:0;width:64px;height:64px;border-radius:50%;background-image:url('game/cast-v04.webp');background-repeat:no-repeat;background-size:300% 200%;box-shadow:0 3px 0 #31493c18;border:3px solid #fff8e9;vertical-align:middle}.cast-0{background-position:0 0}.cast-1{background-position:50% 0}.cast-2{background-position:100% 0}.cast-3{background-position:0 100%}.cast-4{background-position:50% 100%}.cast-5{background-position:100% 100%}.adventure-hero{position:relative;isolation:isolate;min-height:610px;border-radius:34px;overflow:hidden;box-shadow:0 10px 0 #e5dcbf,0 25px 70px #57633426;background:#639280}.adventure-backdrop{position:absolute;width:100%;height:100%;object-fit:cover;object-position:60% 50%;z-index:-3}.hero-shade{position:absolute;inset:0;background:linear-gradient(90deg,#142f32ed 0%,#183935cc 29%,#23483c32 65%,transparent 85%),linear-gradient(0deg,#1c413d7a,transparent 35%);z-index:-2}.hero-chip{position:absolute;right:26px;top:26px;padding:10px 17px;background:#fff9dfed;color:#37543a;border:2px solid #fffdf0;border-radius:25px;font-size:12px;font-weight:750;box-shadow:0 4px 12px #17382c20}.adventure-title{padding:65px 0 110px 55px;color:#fffbe7;max-width:660px}.game-kicker{font-size:11px;font-weight:800;letter-spacing:.28em;color:#e5d69f}.adventure-title h1{font-size:52px;line-height:1.5;color:#fffee9;margin-top:22px;text-shadow:0 4px 0 #173b382e}.adventure-title h1 em{font-style:normal;color:#ffce68}.adventure-title p{font-size:16px;line-height:2;color:#e6edce;margin-top:23px}.hero-actions{display:flex;gap:15px;align-items:center;margin:28px 0 22px}.hero-actions .button{padding:15px 22px}.hero-actions .button.secondary{background:#fffef016;color:#fff6db;border-color:#fff5cc55;box-shadow:none}.hero-spec{display:flex;gap:9px;font-size:11px;font-weight:650}.hero-spec span{background:#112c2857;border:1px solid #e8f1ce2e;border-radius:8px;padding:6px 12px}.hero-cast{position:absolute;right:35px;bottom:64px;display:flex;align-items:end;gap:0}.hero-character{position:relative;text-align:center;animation:captain-bob 4s ease-in-out infinite}.hero-character .cast-portrait{height:130px;width:130px;border:5px solid #fff5dc;box-shadow:0 9px 0 #28453d4d,0 16px 30px #1b3b375e}.hero-character>span:last-child{position:absolute;bottom:-8px;left:20%;right:20%;padding:4px;background:#fff5d9;color:#4f573f;border-radius:15px;font-size:11px;font-weight:800;box-shadow:0 3px 0 #d0ac6e}.hero-character-1{margin-left:-14px;animation-delay:-1s;transform:translateY(-14px)}.hero-character-2{margin-left:-14px;animation-delay:-2s}.hero-character-3{margin-left:-14px;animation-delay:-3s}.world-ribbon{position:absolute;bottom:0;left:0;right:0;background:#173b32b0;backdrop-filter:blur(5px);color:#ffedbc;font-size:12px;font-weight:600;text-align:center;letter-spacing:.12em;padding:14px}.guide-strip{display:flex;align-items:center;gap:18px;background:#fff9e4;border:1px solid #e8dbad;border-radius:20px;padding:16px 24px;margin:33px 0 26px;box-shadow:0 4px 0 #e6dfc2}.guide-strip>.cast-portrait{width:65px;height:65px}.guide-strip b{font-size:15px}.guide-strip p{font-size:13px;margin-top:5px;color:#7b8061}.guide-label{margin-left:auto;white-space:nowrap;border:1px solid #dcdab8;border-radius:16px;padding:7px 12px;font-size:11px;color:#8a916b}.entry-grid{grid-template-columns:1.48fr 1fr;gap:25px;scroll-margin-top:15px}.entry-player{padding:30px}.entry-player h2{font-size:25px}.captain-picker{padding:0;border:0;margin:0}.captain-picker legend{font-size:13px;font-weight:750;margin-bottom:12px}.captain-picker legend small{font-weight:500;color:#8b936f;font-size:10px;margin-left:12px}.captain-options{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.captain-option{position:relative;display:flex;align-items:center;flex-direction:column;gap:8px;cursor:pointer;border:2px solid #e5e8d9;background:#f5f7ed;padding:12px 4px 14px;border-radius:17px;transition:transform .15s,border-color .15s}.captain-option:hover{transform:translateY(-4px)}.captain-option .cast-portrait{width:90px;height:90px;border-width:3px}.captain-option input{position:absolute;width:1px;height:1px;opacity:0;padding:0;min-height:0}.captain-option:has(input:checked){background:#fff1c9;border-color:#dcb558;box-shadow:0 4px 0 #dcb55855}.captain-option:has(input:focus-visible){outline:3px solid #296b83;outline-offset:3px}.captain-option b{font-size:13px}.captain-option small{font-size:9px;color:#8c9375}.captain-check{display:none;position:absolute;top:5px;right:5px;background:#2d6557;border:2px solid #fff8da;border-radius:50%;color:white;width:25px;height:25px}.captain-check .ui-icon{width:17px;height:17px}.captain-option:has(input:checked) .captain-check{display:grid;place-items:center}.entry-host{background:linear-gradient(140deg,#224f4e,#163d39);color:#fff8df;padding:36px}.entry-host h2{font-size:29px}.entry-host .overline{color:#d4ce9c}.entry-host p{color:#c4d9c0;font-size:14px}.host-mascot{display:flex;align-items:center;gap:18px;margin:30px 0;color:#dfe3b9;font-size:13px;line-height:1.9}.host-mascot>.cast-portrait{width:120px;height:120px}.host-mascot b{font-size:12px}.story-teasers{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;margin:35px 0}.story-teasers article{border-radius:23px;background:#fffdf3;overflow:hidden;border:1px solid #e0dfca;box-shadow:0 5px 0 #dfdcc0}.event-art{display:block;background-image:url('game/events-v04.webp');background-size:200% 200%;background-repeat:no-repeat;aspect-ratio:1.5}.event-art-0{background-position:0 0}.event-art-1{background-position:100% 0}.event-art-2{background-position:0 100%}.event-art-3{background-position:100% 100%}.story-teasers article>div{padding:20px}.story-teasers small{color:#b78435;letter-spacing:.15em;font-size:10px;font-weight:800}.story-teasers h3{font-size:17px;margin:8px 0}.story-teasers p{font-size:12px;line-height:1.9;color:#7b8067}.room-heading h1{font-size:26px}.room-code{background:#fff5d4;border:2px solid #e5d7ad;transform:rotate(1deg)}.room-code strong{color:#726144}.progress span.current{background:#e7ac4a}.game-grid{grid-template-columns:1.08fr 1fr;gap:27px}.my-store{border:0;margin-bottom:14px;gap:13px}.my-store>.cast-portrait{width:66px;height:66px}.my-store h2{font-size:21px}.my-store>div>span{font-size:11px}.common-banner{border:1px solid #e5dab5;background:#fff7dd;box-shadow:0 3px 0 #e5dbc33b}.common-banner .emoji .ui-icon{color:#b2904e}.living-town{position:relative;overflow:hidden;border:5px solid #fffdf0;border-radius:27px;aspect-ratio:1.12;box-shadow:0 7px 0 #d9d8b7,0 18px 35px #71844f22;isolation:isolate;background:#c6d6a2}.town-art{position:absolute;width:100%;height:100%;object-fit:cover;z-index:-3}.town-atmosphere{position:absolute;inset:0;pointer-events:none;z-index:-2;background:radial-gradient(circle at 80% 5%,#fff9b23a,transparent 60%)}.season-1 .town-art{filter:saturate(1.14)}.season-2 .town-art{filter:sepia(.16) saturate(1.2)}.season-3 .town-art{filter:saturate(.65) brightness(1.1)}.season-3 .town-atmosphere{background:radial-gradient(circle,#fff 0 2px,transparent 3px) 0 0 / 40px 65px;opacity:.55;animation:snow-drift 12s linear infinite}.living-town[data-weather="rain"] .town-atmosphere,.living-town[data-weather="disaster"] .town-atmosphere{background:repeating-linear-gradient(110deg,transparent 0 18px,#cde9f64d 19px 20px);animation:rain-drift 1s linear infinite}.town-plaque{position:absolute;top:12px;left:50%;transform:translateX(-50%);background:#fff8e7ef;border:1px solid #fffce9;border-radius:12px;padding:8px 14px;text-align:center;font-size:12px;font-weight:850;box-shadow:0 4px 0 #414c2d20;max-width:65%;overflow-wrap:anywhere}.town-plaque small{display:block;font-size:9px;color:#8a9672;font-weight:500;margin-top:3px}.town-business{position:absolute;display:flex;align-items:center;gap:7px;width:44%;background:#fffdf1ed;border:2px solid #fffbea;padding:7px;border-radius:15px;box-shadow:0 5px 0 #50674931;min-height:62px;text-align:left;color:#314b45}.town-business:hover{transform:translateY(-3px)}.town-business.mine{border-color:#efc25d;background:#fff9dcef;box-shadow:0 5px 0 #bf96384f}.town-business>.cast-portrait{width:40px;height:40px;border-width:2px}.town-business>span:not(.cast-portrait){min-width:0;flex:1}.town-business b{font-size:11px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.5}.town-business small{display:block;font-size:9px;margin-top:2px;white-space:nowrap}.plot-0{left:3%;top:23%}.plot-1{right:3%;top:23%}.plot-2{left:3%;bottom:20%}.plot-3{right:3%;bottom:20%}.store-level{position:absolute;right:6px;bottom:-10px;background:#275b4f;color:#fff1b8;font-size:9px;font-style:normal;border:2px solid #fff5d2;border-radius:7px;padding:1px 5px}.season-track{position:absolute;display:flex;gap:8px;bottom:13px;left:50%;transform:translateX(-50%);border:1px solid #fff6d3;background:#244539d9;padding:7px 12px;border-radius:25px}.season-track span{display:grid;place-items:center;height:25px;width:25px;border-radius:50%;background:#5b796450;color:#c3d2aa;font-weight:700;font-size:10px}.season-track span.done{background:#e4ecd421;color:#f0edbf}.season-track span.active{background:#f8c45f;color:#3c4d36;border:2px solid #ffe4a0;box-shadow:0 0 15px #ffdc6b60;transform:scale(1.15)}.town-walker{width:7px;height:10px;background:#e08658;border:1px solid #fff1b9;border-radius:5px;position:absolute;z-index:-1;top:53%;left:45%;offset-path:path('M0 0 C45 -50 80 10 40 30 C-20 65 -70 5 0 0');animation:walk-town 20s linear infinite}.walker-two{top:50%;left:43%;background:#648ccc;animation-delay:-7s}.walker-three{top:46%;left:49%;background:#c5a1dd;animation-delay:-13s}.metrics{margin-top:22px}.metric{border:1px solid #dedfc9;box-shadow:0 4px 0 #dcdfc63d}.metric.highlight{background:#265f57;border-color:#265f57}.metric strong{font-size:29px}.company-list.rival-list{display:grid;gap:9px;margin-top:21px}.rival{width:100%;border:1px solid #e2e4cf!important;background:#fffdf3!important;border-radius:15px!important;padding:10px!important;text-align:left;color:var(--ink)}.rival>.cast-portrait{height:45px;width:45px;margin-right:3px;border-width:2px}.rival .company-name{flex:1;min-width:0}.rival .company-name b{overflow-wrap:anywhere;font-size:12px}.rival .company-name small{font-size:10px}.rival .value{font-size:17px;white-space:nowrap}.rival .badge{font-size:9px;background:#f0eedc}.rival .badge.ready{background:#e4efda;color:#598044}.rival:hover{border-color:#bbcb9d!important;background:#f7f9e9!important}.pico-coach{display:flex;align-items:center;gap:10px;background:#eef6e4;border:1px solid #dce8cc;border-radius:16px;padding:12px;margin:0 0 22px;position:relative}.pico-coach>.cast-portrait{width:53px;height:53px;border-width:2px}.pico-coach b{font-size:10px;color:#678352}.pico-coach p{font-size:12px;color:#4e6852;line-height:1.85;margin-top:3px}.achievement-panel{margin-top:18px;background:#fff8df;border:1px solid #e5dab2;border-radius:17px;padding:14px}.achievement-panel summary{font-size:12px;font-weight:700;display:flex;align-items:center;gap:9px;cursor:pointer}.achievement-panel summary>span{margin-left:auto;color:#ab8a45}.achievement-panel p{font-size:11px;color:#8b856a;margin:12px 0}.achievement-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:7px}.achievement{background:#f2eddb;border:1px solid #e1dbc5;border-radius:13px;text-align:center;padding:11px 4px;opacity:.55}.achievement.unlocked{opacity:1;background:#fff0b9;border-color:#ddb75d}.achievement .ui-icon{color:#b49442;width:27px;height:27px}.achievement b{display:block;font-size:10px;margin-top:7px}.achievement small{display:block;font-size:9px;color:#858568;line-height:1.8;margin-top:5px}.level-guide{font-size:10px;margin-top:12px;color:#7d815d}.game-grid>.panel{border:2px solid #e7e5cf;background:#fffef6;padding:25px}.timer{border:1px solid #e5d7ad;background:#fff3ce;color:#8c6936;font-size:20px;box-shadow:0 3px 0 #e2d6ae55}.tabs{background:#ecefe1}.tab.active{box-shadow:0 3px 0 #d8dfc8}.card-shell{transition:transform .16s}.card-shell:hover{transform:translateY(-3px)}.card{background:#f8f9ef;border-color:#dfe4cf;border-radius:18px 18px 0 0;min-height:204px}.card-shell.is-selected{filter:drop-shadow(0 4px 0 #b6bd9133)}.card.selected{background:#fff6d7;border-color:#d3b66b}.card b{font-size:15px}.card p{color:#7b8b6b}.card.selected .selection-state{background:#d6aa49;color:#fffef0}.card-icon{background:#e9eeda;color:#758e55}.card-icon.attract{background:#fce9d4;color:#c18648}.card-icon.money{background:#fbf0c6;color:#b4993e}.card-icon.protect{background:#e2ecf0;color:#7797a7}.decision-footer{background:#fffdf2f7;border-top:2px solid #e6dfc3;backdrop-filter:blur(10px);z-index:4}.selected-pill{background:#fff0c6;border-color:#e2c981}.selected-pill .ui-icon{color:#ae8b3d}.selected-heading>b{color:#7b693e}.save-status{color:#8b876a}.goal-filter.active{background:#2c6557;color:#fff7d7;border-color:#2c6557}.goal-filter{border:1px solid #dce3cb;background:#fffef4}.price.selected{border-color:#d8b970;background:#fff3cd}.result-scene{position:relative;overflow:hidden;border-radius:20px;margin:5px 0 18px}.result-scene>.event-art{aspect-ratio:1.85;background-size:200% 246%}.result-actor{position:absolute;bottom:14px;left:16px}.result-actor .cast-portrait{width:66px;height:66px;border-width:3px}.scene-caption{position:absolute;right:13px;bottom:14px;background:#fff8e8ed;border-radius:9px;padding:7px 10px;font-size:10px;font-weight:650}.replay-show{min-height:46px;font-size:12px;margin-bottom:8px}.result-hero{padding:15px 0}.result-hero .dice{font-size:46px}.result-hero h2{font-size:23px}.result-hero p{font-size:13px}.result-grid>div{background:#f1f3e5;border:1px solid #e2e6d2}.result-grid>div:nth-last-child(-n+2){background:#2d6358}.end-hero{position:relative;border-radius:28px;overflow:hidden;padding:35px 20px 36px;background:#fff4d4;border:2px solid #e4cf93}.award-scene{max-width:640px;margin:0 auto 18px;border-radius:22px;overflow:hidden;box-shadow:0 7px 0 #d5b77038}.award-scene .event-art{aspect-ratio:2;background-size:200% 265%}.award-seal{font-size:10px;letter-spacing:.2em;color:#a9812e;margin:16px 0}.end-hero h1{font-size:29px}.celebration-button{margin:24px auto 0}.winner-captain>.cast-portrait{width:110px;height:110px;border:4px solid #fff6d2;margin:14px auto}.podium{margin-top:24px}.podium .winner{background:#fff4cd;border:2px solid #dcba62;transform:translateY(-7px)}.podium .rank{font-weight:850;color:#947039}.podium strong{color:#8f7031}.host-stage{background:#fff4d2;border-color:#e7d7a8}.host-stage>strong{color:#a37f36}.mobile-jump{background:#ffe8a2;border-color:#e3c879;color:#746037;box-shadow:0 3px 0 #d8bc7240}
/* Cinematic, deterministic result reveal */
#showtime{width:min(620px,calc(100vw - 24px));max-width:620px;max-height:calc(100dvh - 28px);padding:0;border:3px solid #f7e3ad;border-radius:28px;background:#fff9e9;box-shadow:0 28px 110px #061c3b6b;overflow:auto;color:#334d49}#showtime::backdrop{background:#102d3ad6;backdrop-filter:blur(7px)}.showtime-body{text-align:center;padding:65px 28px 33px;background:radial-gradient(circle at 50% 40%,#fff9d8,#edf2df)}.showtime-kicker{font-size:11px;letter-spacing:.18em;color:#839365;font-weight:800}.showtime-body h2{font-size:28px;line-height:1.6;margin:18px 0}.showtime-skip,.showtime-close{position:absolute;z-index:5;right:14px;top:14px;border:1px solid #dbe1cc;border-radius:10px;background:#fff9e9ed;color:#68815a;padding:10px;font-size:11px;min-height:44px}.showtime-skip .ui-icon{width:15px;height:15px}.showtime-close{height:42px;width:42px;display:grid;place-items:center}.showtime-hint{font-size:13px;margin:12px 0 24px;line-height:1.8;min-height:24px}.showtime-footnote{font-size:10px;color:#8d9479;margin-top:22px}.roll-button{min-width:210px}.dice-perspective{width:160px;height:180px;perspective:650px;margin:0 auto;position:relative;display:grid;place-items:center}.real-dice{position:relative;width:95px;height:95px;transform-style:preserve-3d;transition:transform .45s ease;z-index:2}.dice-face{position:absolute;inset:0;background:linear-gradient(145deg,#fffdf5,#e9ddba);border:2px solid #d5cba8;border-radius:15px;display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);padding:16px;gap:6px;backface-visibility:hidden;box-shadow:inset 0 0 18px #f8edcd}.dice-face i.pip{background:#275f5c;border-radius:50%;box-shadow:inset 0 2px 2px #173c4161}.dice-face-1 .pip{background:#e37b48}.dice-face-1{transform:translateZ(47px)}.dice-face-2{transform:rotateY(90deg) translateZ(47px)}.dice-face-3{transform:rotateX(90deg) translateZ(47px)}.dice-face-4{transform:rotateX(-90deg) translateZ(47px)}.dice-face-5{transform:rotateY(-90deg) translateZ(47px)}.dice-face-6{transform:rotateY(180deg) translateZ(47px)}.face-value-1{transform:rotateX(0deg) rotateY(0deg)}.face-value-2{transform:rotateY(-90deg)}.face-value-3{transform:rotateX(-90deg)}.face-value-4{transform:rotateX(90deg)}.face-value-5{transform:rotateY(90deg)}.face-value-6{transform:rotateY(180deg)}.real-dice.rolling{animation:dice-tumble 1.25s cubic-bezier(.2,.5,.4,1)}.dice-ground{position:absolute;bottom:13px;left:20px;right:20px;height:18px;border-radius:50%;background:#6f8f6733;filter:blur(4px)}.reveal-art>.event-art{aspect-ratio:1.5}.reveal-content{padding:22px 28px 30px}.reveal-speaker{display:flex;align-items:center;gap:9px;margin-top:-57px;position:relative;margin-bottom:20px}.reveal-speaker>.cast-portrait{width:78px;height:78px;border:4px solid #fff9e9}.reveal-speaker>span:not(.cast-portrait){background:#fff8e8ed;padding:7px 11px;font-size:11px;font-weight:800;border-radius:8px}.reveal-speaker .mini-die{margin-left:auto;height:40px;width:40px;display:grid;place-items:center;border:2px solid #d9cda7;font-size:20px!important;color:#285f57}.reveal-content h2{font-size:26px;line-height:1.5;margin:12px 0}.reveal-content>p{font-size:14px;line-height:1.9;color:#798568}.reveal-metrics{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:20px 0}.reveal-metrics>span{font-size:11px;padding:14px;background:#edf1df;border:1px solid #dfe5ca;border-radius:12px}.reveal-metrics b{display:block;font-size:23px;color:#315e50;margin-top:9px}.reveal-metrics .negative{color:#b66b57}.reveal-protection{font-size:13px;background:#e3eef0;border:1px solid #c6dedb;padding:12px;border-radius:10px;margin-bottom:17px}#celebration-canvas{position:fixed;inset:0;z-index:10000;width:100%;height:100%;pointer-events:none}.negative{color:#b66b57}.result-grid .negative{color:#f6b791}
@keyframes captain-bob{0%,100%{translate:0 0}50%{translate:0 -7px}}@keyframes walk-town{to{offset-distance:100%}}@keyframes snow-drift{to{background-position:40px 130px}}@keyframes rain-drift{to{background-position:20px 50px}}@keyframes dice-tumble{0%{transform:rotateX(-25deg) rotateY(15deg) translateY(0)}30%{transform:rotateX(250deg) rotateY(180deg) translateY(-30px)}75%{transform:rotateX(650deg) rotateY(390deg) translateY(-8px)}100%{transform:rotateX(720deg) rotateY(720deg) translateY(0)}}
@media(max-width:1100px){.hero-character .cast-portrait{width:100px;height:100px}.hero-cast{right:20px;bottom:65px}.adventure-title h1{font-size:45px}.adventure-title{padding-left:36px}.captain-option .cast-portrait{width:70px;height:70px}.entry-grid{grid-template-columns:1.4fr 1fr}.town-business>.cast-portrait{width:32px;height:32px}.town-business b{font-size:10px}.town-business small{font-size:8px}.living-town{aspect-ratio:1}.season-track{gap:5px}.rival>.cast-portrait{width:35px;height:35px}.rival .value{font-size:15px}.hero-actions{gap:10px}.hero-actions .button{font-size:13px}}
@media(max-width:760px){.site-header{padding:17px}.brand{font-size:22px}main{padding:8px 12px 40px}.adventure-hero{min-height:720px;border-radius:24px}.adventure-backdrop{object-position:65% 80%;height:65%;top:35%}.hero-shade{background:linear-gradient(180deg,#173a38 0%,#173a38 38%,#173a38d0 48%,#173a3820 68%,#183f3359)}.adventure-title{padding:30px 22px 270px;max-width:none}.adventure-title h1{font-size:35px;line-height:1.55;margin-top:16px}.adventure-title p{font-size:13px;line-height:1.9;margin-top:14px}.game-kicker{font-size:9px}.hero-chip{top:auto;bottom:197px;right:16px;font-size:9px;padding:6px 10px}.hero-actions{margin:20px 0 19px;gap:10px;flex-wrap:wrap}.hero-actions .button{font-size:12px;min-height:47px;padding:12px 15px;border-radius:12px}.hero-spec{font-size:9px;gap:7px}.hero-spec span{padding:6px 8px}.hero-cast{left:18px;right:18px;justify-content:center;bottom:69px}.hero-character .cast-portrait{height:85px;width:85px;border-width:3px}.hero-character-1,.hero-character-2,.hero-character-3{margin-left:-5px}.hero-character>span:last-child{font-size:9px;left:17%;right:17%;bottom:-7px}.world-ribbon{font-size:9px;letter-spacing:0;padding:12px 8px}.guide-strip{margin-top:26px;padding:13px;gap:12px;border-radius:16px}.guide-strip>.cast-portrait{height:54px;width:54px}.guide-strip b{font-size:12px}.guide-strip p{font-size:11px;line-height:1.85}.guide-label{display:none}.entry-grid{display:grid;grid-template-columns:1fr;gap:23px}.entry-player{padding:23px 17px}.entry-player h2{font-size:22px}.captain-options{gap:6px}.captain-option{padding:10px 3px 12px;border-radius:12px;gap:7px}.captain-option .cast-portrait{height:60px;width:60px;border-width:2px}.captain-option b{font-size:12px}.captain-option small{font-size:8px;white-space:nowrap}.captain-check{height:21px;width:21px;right:2px;top:3px}.captain-picker legend{font-size:12px}.captain-picker legend small{font-size:9px;margin-left:6px}.entry-host{padding:27px}.entry-host h2{font-size:26px}.host-mascot{margin:25px 0}.story-teasers{grid-template-columns:1fr;gap:17px;margin:25px 0}.story-teasers article{display:grid;grid-template-columns:42% 1fr;align-items:stretch;border-radius:17px}.story-teasers article>.event-art{aspect-ratio:auto;background-size:240% 200%}.story-teasers article>div{padding:15px 13px}.story-teasers h3{font-size:14px;line-height:1.7}.story-teasers small{font-size:8px}.story-teasers p{font-size:11px}.game-grid{grid-template-columns:1fr;gap:22px}.game-grid>.panel{padding:20px 15px;border-radius:22px}.my-store>.cast-portrait{height:57px;width:57px}.my-store h2{font-size:19px}.my-store>div>span{font-size:10px}.living-town{aspect-ratio:1.04;border-width:4px;border-radius:22px}.town-plaque{top:10px;font-size:10px;padding:6px 10px}.town-plaque small{font-size:8px}.town-business{gap:5px;padding:6px 4px;border-radius:12px;min-height:53px;width:45%}.town-business>.cast-portrait{width:30px;height:30px;border-width:1px}.town-business b{font-size:9px}.town-business small{font-size:8px}.plot-0{left:2%}.plot-1{right:2%}.plot-2{left:2%;bottom:20%}.plot-3{right:2%;bottom:20%}.season-track{bottom:12px;gap:6px;padding:6px 9px}.season-track span{width:21px;height:21px;font-size:9px}.metrics{margin-top:18px}.metric strong{font-size:26px}.company-list.rival-list{display:none}.achievement-panel{margin-top:15px}.achievement-grid{gap:6px}.achievement b{font-size:9px}.achievement small{font-size:8px}.achievement-panel summary{font-size:11px}.pico-coach{padding:10px;gap:9px;margin-bottom:18px}.pico-coach>.cast-portrait{height:44px;width:44px}.pico-coach p{font-size:11px;line-height:1.8}.pico-coach b{font-size:9px}.game-grid .section-top h2{font-size:20px}.tabs{margin-bottom:18px}.card{min-height:208px}.card b{font-size:14px}.card p{font-size:12px}.decision-footer{margin:20px -6px -6px;padding:14px 6px max(12px,env(safe-area-inset-bottom))}.button{font-size:14px;min-height:52px;border-radius:13px}.goal-filter{font-size:11px}.result-hero h2{font-size:22px}.result-actor .cast-portrait{height:56px;width:56px}.replay-show{font-size:11px;min-height:44px}.scene-caption{font-size:9px}.result-grid strong{font-size:20px}.end-hero{padding:20px 13px 28px}.end-hero h1{font-size:24px;line-height:1.6}.end-hero p{font-size:12px}.podium .panel{padding:18px 9px}.winner-captain>.cast-portrait{height:82px;width:82px}.podium strong{font-size:26px}.podium h3{font-size:14px}.showtime-body{padding:62px 18px 28px}.showtime-body h2{font-size:24px}.showtime-hint{font-size:12px}.showtime-footnote{font-size:9px}.reveal-content{padding:20px 19px 24px}.reveal-content h2{font-size:23px}.reveal-content>p{font-size:12px}.reveal-speaker>.cast-portrait{height:64px;width:64px}.reveal-speaker{margin-top:-49px}.reveal-speaker>span:not(.cast-portrait){font-size:9px;padding:7px}.reveal-metrics>span{font-size:10px;padding:12px}.reveal-metrics b{font-size:20px}.reveal-protection{font-size:11px}.award-scene .event-art{aspect-ratio:1.6;background-size:200% 210%}}
@media(max-width:359px){.adventure-title h1{font-size:31px}.adventure-title{padding-left:18px;padding-right:15px}.hero-character .cast-portrait{width:74px;height:74px}.captain-option .cast-portrait{width:52px;height:52px}.captain-option b{font-size:11px}.entry-player{padding:20px 13px}.town-business>.cast-portrait{width:24px;height:24px}.town-business b{font-size:8px}.town-business small{font-size:7px}.town-plaque{max-width:75%}.season-track{gap:4px}.achievement-panel summary{font-size:10px}.card b{font-size:13px}.reveal-metrics b{font-size:18px}}
@media(prefers-reduced-motion:reduce){.hero-character,.town-walker,.town-atmosphere,.real-dice.rolling{animation:none!important}.card-shell,.button{transition:none!important}.hero-character{translate:none!important}}

@media(max-width:760px){.room-heading h1{font-size:20px;line-height:1.6}.room-heading .eyebrow{font-size:9px}}

.event-art.event-art-4{background-image:url('game/town-v04.webp');background-size:cover;background-position:center}

/* v0.4: hand-painted community illustration */
.cast-portrait{border-color:#fffdf4;box-shadow:0 2px 0 #a0927220}.captain-option{background:#fffdf5}.hero-character .cast-portrait{box-shadow:0 5px 0 #756c4540,0 8px 18px #364b3529}.adventure-hero{background:#dce8c9}.panel{box-shadow:0 5px 0 #95815c0b}.hero-chip{background:#fffdf0f5}
/* v0.5: two physical dice and a fact-based period review */
.dice-tray{position:relative;display:flex;justify-content:center;gap:14px;min-height:190px;margin:20px 0 0;border:2px solid #b0c8ab;border-bottom:9px solid #90aa89;border-radius:45% 45% 30px 30px;background:radial-gradient(ellipse,#eaf1d8,#cbdcbb);overflow:hidden;isolation:isolate;box-shadow:inset 0 7px 18px #58744a16}
.dice-runner{position:relative;transform-origin:center bottom}.double-dice .dice-perspective{width:120px;height:180px}.double-dice .real-dice{width:72px;height:72px}.double-dice .dice-face{border-radius:12px;padding:11px;gap:5px}.double-dice .dice-face-1{transform:translateZ(36px)}.double-dice .dice-face-2{transform:rotateY(90deg) translateZ(36px)}.double-dice .dice-face-3{transform:rotateX(90deg) translateZ(36px)}.double-dice .dice-face-4{transform:rotateX(-90deg) translateZ(36px)}.double-dice .dice-face-5{transform:rotateY(-90deg) translateZ(36px)}.double-dice .dice-face-6{transform:rotateY(180deg) translateZ(36px)}
.runner-1 .dice-face{background:linear-gradient(145deg,#d7f2ed,#80bbb2);border-color:#6da69d;box-shadow:inset 0 0 15px #ddf6e8}.runner-1 .dice-face i.pip{background:#244e49}.in-flight .runner-0{animation:roll-path-left 1.9s linear}.in-flight .runner-1{animation:roll-path-right 1.9s linear}.dice-tray .real-dice.rolling{animation:twin-tumble 1.9s ease-out}.dice-tray .runner-1 .real-dice.rolling{animation-name:twin-tumble-reverse}.in-flight .dice-ground{animation:rolling-shadow .38s ease-in-out 5 alternate}
@keyframes roll-path-left{0%{transform:translate(-50px,-70px) rotate(-18deg)}18%{transform:translate(-25px,12px) rotate(12deg)}35%{transform:translate(24px,-32px) rotate(-8deg)}51%{transform:translate(18px,8px) rotate(6deg)}67%{transform:translate(-7px,-14px) rotate(-4deg)}83%{transform:translate(3px,2px) rotate(2deg)}100%{transform:translate(0,0)}}
@keyframes roll-path-right{0%{transform:translate(50px,-45px) rotate(22deg)}22%{transform:translate(18px,8px) rotate(-15deg)}40%{transform:translate(-18px,-38px) rotate(10deg)}57%{transform:translate(-12px,10px) rotate(-6deg)}74%{transform:translate(6px,-12px) rotate(4deg)}89%{transform:translate(-2px,2px) rotate(-2deg)}100%{transform:translate(0,0)}}
@keyframes twin-tumble{0%{transform:rotateX(0) rotateY(0) rotateZ(0)}100%{transform:rotateX(1080deg) rotateY(720deg) rotateZ(360deg)}}
@keyframes twin-tumble-reverse{0%{transform:rotateX(0) rotateY(0) rotateZ(0)}100%{transform:rotateX(-720deg) rotateY(1080deg) rotateZ(-360deg)}}
@keyframes rolling-shadow{from{opacity:.15;scale:.5}to{opacity:.7;scale:1.15}}
.dice-total{font-size:32px;font-weight:900;letter-spacing:.04em;color:#245d52;margin-top:12px;min-height:48px}.dice-total.landed{animation:total-pop .4s ease-out}@keyframes total-pop{50%{transform:scale(1.12)}}.dice-summary{display:flex;align-items:center;justify-content:center;gap:10px;margin:12px 0;color:#28594f}.mini-die{font-size:40px;line-height:1}.dice-summary strong{font-size:30px}.period-review{margin:20px 0;padding:20px;border:1px solid #c9dac0;border-radius:22px;background:#f0f5e6;text-align:left;overflow-wrap:anywhere}.review-heading{display:flex;align-items:center;gap:12px}.review-heading .cast-portrait{width:52px;height:52px}.review-heading span:not(.cast-portrait){display:block;font-size:10px;letter-spacing:.1em;color:#637a58}.review-heading b{font-size:18px}.review-summary{font-size:16px;font-weight:750;line-height:1.8;margin:14px 0 10px}.review-reason{font-size:13px;line-height:1.8;color:#52694f}.review-deltas{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0}.review-deltas>span{padding:10px;border-radius:12px;background:#fffdf3;font-size:10px;color:#647355}.review-deltas b{display:block;font-size:16px;color:#294d42;margin-top:4px}.review-tip{padding:14px;background:#fffdf1;border-radius:14px;border-left:4px solid #e7ba56}.review-tip>b{font-size:11px;color:#8b6626}.review-tip p{font-size:14px;line-height:1.9;margin:5px 0 0}.review-compact{padding:16px}.review-compact .review-summary{font-size:14px}.reveal-numbers{flex-wrap:wrap;gap:10px}.reveal-numbers>span{min-width:110px;flex:1}
@media(max-width:400px){.showtime-body{padding-left:14px;padding-right:14px}.double-dice .dice-perspective{width:96px}.dice-tray{gap:6px}.dice-total{font-size:27px}.period-review{padding:14px}.review-deltas{gap:6px}.review-deltas b{font-size:14px}}
@media(prefers-reduced-motion:reduce){.dice-runner,.dice-ground,.dice-total.landed,.dice-tray .real-dice.rolling{animation:none!important}.dice-tray .real-dice{transition:none!important}}
/* Explicit resting faces also work when a browser flattens 3D layers. */
.dice-tray .real-dice:not(.rolling){transform:rotateZ(-7deg)!important;transition:none;transform-style:flat}
.dice-tray .runner-1 .real-dice:not(.rolling){transform:rotateZ(8deg)!important}
.dice-tray .real-dice:not(.rolling) .dice-face{display:none;transform:none;box-shadow:3px 5px 0 #8b956759,inset 0 0 12px #fff6dd}
.dice-tray .face-value-1:not(.rolling) .dice-face-1,.dice-tray .face-value-2:not(.rolling) .dice-face-2,.dice-tray .face-value-3:not(.rolling) .dice-face-3,.dice-tray .face-value-4:not(.rolling) .dice-face-4,.dice-tray .face-value-5:not(.rolling) .dice-face-5,.dice-tray .face-value-6:not(.rolling) .dice-face-6{display:grid}
.result-grid strong{color:#fff8df}
.reveal-numbers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:14px 0;border-top:1px solid #d9dfc5;border-bottom:1px solid #d9dfc5;margin:14px 0}.reveal-numbers>span{display:block;min-width:0;font-size:11px;color:#5d6c53;overflow-wrap:anywhere}.reveal-numbers b{display:block;margin-top:6px;font-size:18px;color:#254e44}.reveal-numbers b.negative{color:#9c4a3c}@media(max-width:400px){.reveal-numbers b{font-size:14px}}
