/* The menu layer uses the same paper and ink as combat, with quieter surfaces. */
:root{--paper:#f5f0e5;--ink:#243731;--muted:#646d64;--edge:#d6d6c8;--teal:#397b69;--red:#ad4839;--gold:#d8bb80}
#ui{background:radial-gradient(ellipse at 14% 0%,#e7e9dcec,transparent 65%),#eeeadef2;backdrop-filter:blur(9px);padding:clamp(10px,2.3vw,32px);padding-left:max(clamp(10px,2.3vw,32px),env(safe-area-inset-left));padding-right:max(clamp(10px,2.3vw,32px),env(safe-area-inset-right))}
#ui[data-view=pause],#ui[data-view=results]{background:#142a2699;backdrop-filter:blur(7px)}
#ui[data-view=dialogue]{background:#111f1d;backdrop-filter:none}
.panel{background:#f5f0e5fa;border:1px solid #cbd0c2;border-radius:14px;box-shadow:0 22px 80px #273d3214;scrollbar-color:#a5b2a0 transparent;scrollbar-width:thin;scroll-padding-block:20px}
.panel>h2,.panel>header h2{font-family:Georgia,serif;letter-spacing:-1px;font-weight:400}
button{border-radius:6px;border-color:#c7cdbf;background:#faf7ef;min-height:42px;font-weight:650;transition:background .18s,border-color .18s,box-shadow .18s}
button:hover:not(:disabled){border-color:#77917c;background:#e7eddf}
button.primary{background:#263f35;border-color:#263f35;color:#fff9ec}
button.primary:hover:not(:disabled){background:#365b48;border-color:#365b48;color:#fff9ec}
button:disabled{cursor:default;opacity:.5}
button.on{background:#355f4b;border-color:#355f4b}
.eyebrow{font:650 10px/1.5 system-ui,sans-serif;letter-spacing:1.8px}
.story-primary{background:#ad4839!important;border-color:#ad4839!important;color:#fff8ed!important}
.story-primary:hover:not(:disabled){background:#8f392f!important;border-color:#8f392f!important}
.lobby.home-panel{width:min(1240px,100%);padding:28px 32px;background:#f5f0e5;border:1px solid #cbd0c2;border-radius:16px}
.lobby-header{display:flex;align-items:center;justify-content:space-between;gap:24px;padding-bottom:20px;border-bottom:1px solid var(--edge)}
.wordmark{display:flex;align-items:center;gap:11px;font-size:18px;letter-spacing:2.5px;font-weight:850}
.wordmark>span{font:800 35px/.9 Georgia,serif;letter-spacing:-8px;color:#284d3c;margin-right:8px}
.wordmark>span span{color:#ad4839;font:400 41px Georgia,serif;position:relative;left:-3px}
.wordmark small{display:block;font:600 7px/1.5 system-ui;letter-spacing:1.5px;color:#747c6d;margin-top:4px}
.lobby-header nav{display:flex;gap:6px}
.lobby-header nav button{background:transparent;border:0;min-height:38px;padding:8px 15px;color:#687367;font-size:13px}
.lobby-header nav button.active{background:#e1e6d7;color:#244731}
.lobby-profile{display:flex;align-items:center;text-align:left;gap:11px;background:transparent;border:0;font-size:12px;padding:6px 0 6px 16px}
.lobby-profile small{display:block;margin-top:3px;font-weight:450;font-size:10px}
.lobby-heading{display:flex;justify-content:space-between;align-items:center;padding:20px 0 12px}
.lobby-heading p{margin:0;color:#5d6e5c}.lobby-heading>span{font:italic 14px Georgia,serif;color:#7b8274}
.lobby-main{display:grid;grid-template-columns:minmax(0,2.3fr) minmax(230px,1fr);gap:18px}
.lobby-story{position:relative;isolation:isolate;overflow:hidden;min-height:390px;border-radius:9px;background-image:var(--scene);background-size:cover;background-position:center;color:#f6efdf;display:flex;flex-direction:column}
.lobby-story-shade{position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#152d25ed 0%,#152d25c2 38%,#182c2260 70%,#192b2233),linear-gradient(0deg,#13271ff2,transparent 48%)}
.story-edition{position:absolute;right:24px;top:22px;display:flex;align-items:center;gap:12px;font:600 9px system-ui;letter-spacing:2px;color:#e7ddc8}
.story-edition i{font:24px Georgia,serif;border:1px solid #e0c69b80;padding:6px;color:#e5c798;font-style:normal}
.lobby-story-copy{padding:34px 34px 26px;position:relative}
.lobby-story-copy>.eyebrow{color:#dbc89f;letter-spacing:2px;font-size:9px;margin:0 0 20px}
.lobby-story h1{font:400 clamp(40px,4.8vw,65px)/.99 Georgia,serif;letter-spacing:-2.5px}
.lobby-story h1 span{color:#d56b4e}
.lobby-story-copy>p:not(.eyebrow){font-size:12px;line-height:1.7;color:#dbdfcc;margin:17px 0 21px;max-width:36ch}
.lobby-story-actions{display:flex;gap:10px;align-items:center}
.lobby-story-actions button{font-size:12px;padding:11px 17px;display:flex;gap:16px;align-items:center}
.lobby-story-actions button:not(.primary){color:#f7efdf;background:#f6eddb0c;border-color:#e3ddca55}
.lobby-story-actions svg{width:18px;height:18px}
.lobby-checkpoint{margin-top:auto;display:flex;justify-content:space-between;align-items:center;gap:15px;padding:18px 34px;border-top:1px solid #e8e4d328;background:#12251e50}
.lobby-checkpoint>div>span{display:block;font-size:8px;letter-spacing:1.8px;color:#b5c5aa}
.lobby-checkpoint b{font-size:12px;font-weight:500;display:block;margin-top:5px}
.lobby-progress{min-width:110px;text-align:right}.lobby-progress>span{font:24px Georgia,serif!important;letter-spacing:0!important;color:#f0e7d1!important}.lobby-progress small{font:11px system-ui;color:#abbda7}.lobby-progress>div{display:flex;gap:4px;margin-top:7px}.lobby-progress i{height:3px;flex:1;background:#e8ead826;border-radius:2px}.lobby-progress i.done{background:#d5b982}
.lobby-sparring{border:1px solid #c7cdbd;background:#e9ecdf;border-radius:9px;padding:22px;display:flex;flex-direction:column;overflow:hidden}
.lobby-sparring-top{display:flex;justify-content:space-between;align-items:center;gap:6px}.lobby-sparring-top p{font-size:9px;margin:0}.availability{font:700 8px system-ui;letter-spacing:1.5px;color:#466e4f}.availability:before{content:'';display:inline-block;width:5px;height:5px;border-radius:50%;background:#588166;margin-right:6px}
.lobby-fighter{position:relative;display:flex;justify-content:center;align-items:center;flex:1;min-height:135px;max-height:190px;margin:7px 0}
.lobby-fighter svg{position:relative;width:180px;height:175px}.fighter-orbit{position:absolute;width:140px;height:140px;border:1px solid #9dae9155;border-radius:50%;box-shadow:0 0 0 15px #aebe9510}.lobby-kit{position:absolute;right:-12px;top:50%;writing-mode:vertical-rl;text-transform:uppercase;letter-spacing:4px;font-size:8px;color:#818d73}
.lobby-sparring-copy h2{font:400 32px Georgia,serif;margin:4px 0;letter-spacing:-1px}.lobby-sparring-copy p{font-size:12px;color:#69735f}.lobby-sparring-copy>small{display:block;font-size:10px;line-height:1.5;margin:12px 0 18px;color:#53664e}.lobby-sparring-copy>small span{color:#9eaa93;padding:0 4px}
.lobby-sparring>button{display:flex;align-items:center;justify-content:space-between;font-size:12px;gap:10px;margin-top:auto}.lobby-sparring>button svg{width:18px;height:18px}.lobby-sparring-links{display:flex;justify-content:space-between;gap:5px;margin-top:7px}.lobby-sparring-links button{font-size:10px;min-height:30px;background:transparent;border:0;padding:5px 0;color:#53664e}
.lobby-modes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:18px}.lobby-mode{display:flex;align-items:center;gap:16px;text-align:left;padding:20px 16px;background:#faf7ee}.lobby-mode-icon{width:38px;height:42px;display:grid;place-items:center;background:#e8ecde;color:#477052;border-radius:5px}.lobby-mode-icon svg{width:23px;height:23px}.lobby-mode>span:nth-child(2){flex:1;min-width:0}.lobby-mode small{display:block;font-size:7px;letter-spacing:1.5px;color:#7f8676}.lobby-mode b{display:block;font:400 23px/1.2 Georgia,serif;margin:5px 0}.lobby-mode em{display:block;font:400 10px/1.5 system-ui;color:#7a8073}.lobby-mode>svg{width:15px;height:15px;flex-shrink:0;color:#819376}
.lobby-footer{display:flex;justify-content:space-between;align-items:center;margin-top:18px;border-top:1px solid var(--edge);padding-top:12px;gap:12px}.lobby-footer>span{font-size:9px;letter-spacing:.3px;color:#7b8274}.lobby-footer i{display:inline-block;background:#67866a;width:5px;height:5px;border-radius:50%;margin-right:7px}.lobby-footer nav{display:flex;gap:14px}.lobby-footer button{min-height:30px;background:transparent;border:0;font-size:10px;padding:5px;color:#596b56}

/* Story chapters are a journey; the current fight has one clear launch area. */
.chapter-hub.story-hub{width:min(1200px,100%);padding:26px 30px;border-radius:14px}
.chapter-header-actions{display:flex;gap:10px;align-items:center}.chapter-header h2{font:400 clamp(26px,3.1vw,42px)/1.1 Georgia,serif;letter-spacing:-1.2px}.chapter-header .eyebrow{font-size:8px;color:#7b806d;margin-bottom:7px}.chapter-compact-launch{display:none}
.chapter-overview{display:flex;justify-content:space-between;gap:16px;align-items:center;margin:14px 0 20px}.chapter-overview p{font-size:12px;color:#727968}.chapter-overview>span{font-size:9px;font-weight:700;letter-spacing:1px;white-space:nowrap}.chapter-overview i{font-style:normal;padding:0 8px;color:#b2b6a5}
.chapter-checkpoint{display:flex;align-items:center;justify-content:space-between;gap:16px;border:1px solid #a9bda6;background:#e6ecdd;padding:10px 14px;margin:14px 0;font-size:12px}.chapter-checkpoint b{display:block;color:#36583f}
.chapter-rail{display:flex;overflow-x:auto;gap:1px;padding-bottom:10px;margin:0 0 14px;scrollbar-width:thin;scrollbar-color:#9eaf94 transparent;scroll-padding-inline:4px}
.chapter-stop{flex:1;min-width:128px;text-align:left;border:0;border-bottom:2px solid #cad0bf;border-radius:0;background:transparent;padding:9px 12px 12px}
.chapter-stop>span{display:flex;justify-content:space-between;gap:15px;font:20px Georgia,serif;color:#89927e}.chapter-stop i{font:12px system-ui;font-style:normal}.chapter-stop>b{display:block;font-size:11px;line-height:1.35;margin:7px 0;min-height:30px;max-width:120px;font-weight:600}.chapter-stop>small{display:block;font-size:7px;letter-spacing:1.5px;color:#7f8775}.chapter-stop.selected{border-color:#ad4839;background:#e8e8da}.chapter-stop.selected>span,.chapter-stop.selected small{color:#a64335}.chapter-stop.cleared i{color:#397b55}.chapter-stop.locked{color:#7e8778}
.chapter-cover{position:relative;isolation:isolate;min-height:275px;overflow:hidden;border-radius:8px;background:#344438;color:#fff7e8;display:flex;align-items:flex-end}
.chapter-cover-art{position:absolute;inset:0;z-index:-2}.chapter-cover-art>svg{width:100%;height:100%;max-height:none;object-fit:cover}.chapter-cover-shade{position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#142720d9,transparent 85%),linear-gradient(0deg,#13291fdb,transparent 90%)}
.chapter-cover-copy{padding:27px 32px;max-width:630px}.chapter-cover-copy .eyebrow{color:#dfc798;font-size:9px;margin:0 0 9px}.chapter-cover-copy .eyebrow span{padding:0 8px;color:#d6caae66}.chapter-cover-copy h3{font:400 clamp(28px,3.4vw,45px)/1.1 Georgia,serif;letter-spacing:-1px;color:#fff4df;text-transform:none;margin:0 0 12px}.chapter-cover-copy>p:last-child{font-size:12px;line-height:1.7;color:#e0e3d2;max-width:46ch}.chapter-seal{position:absolute;right:23px;top:20px;border:1px solid #d4be8a80;padding:8px 12px;color:#ebd6ae;font-size:8px;letter-spacing:2px}
.chapter-detail{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(240px,1fr);gap:32px;padding:26px 0 22px}.chapter-mission>.eyebrow,.chapter-launch>.eyebrow{font-size:8px;color:#7b806d;margin:0 0 9px}.chapter-mission h3{font:400 25px/1.25 Georgia,serif;color:#2d4436;letter-spacing:-.5px;text-transform:none;margin:0 0 10px}.chapter-mission>p:not(.eyebrow){font-size:12px;line-height:1.65;color:#6c7565;max-width:65ch}
.chapter-facts{display:grid;grid-template-columns:1.1fr 1.2fr .8fr;gap:18px;border-top:1px solid #d2d6c5;margin-top:18px;padding-top:14px}.chapter-facts small{display:block;font-size:7px;letter-spacing:1.3px}.chapter-facts b{display:block;font-weight:500;font-size:11px;line-height:1.5;margin-top:5px}.chapter-launch{border-left:1px solid #d2d6c5;padding-left:28px;display:flex;flex-direction:column;justify-content:center;align-items:stretch}.chapter-launch>p:not(.eyebrow){font-size:12px;line-height:1.55;color:#6d7665;margin:0 0 14px}.chapter-launch>button{font-size:12px;display:flex;justify-content:space-between;align-items:center;padding:12px 17px}.chapter-launch>small{font-size:9px;line-height:1.5;margin-top:12px;color:#828773}.chapter-replay{display:flex;gap:8px;margin-top:8px}.chapter-replay>button{flex:1;font-size:10px}.chapter-footer{display:flex;justify-content:space-between;align-items:center;gap:20px;border-top:1px solid var(--edge);padding-top:14px;font-size:10px;color:#7d8573}.chapter-footer>div{display:flex;gap:8px}.chapter-footer button{font-size:10px;background:transparent;border:0;min-height:32px}
.chapter-cover .scene-camera{animation:none}.chapter-cover .scene-person{animation:none}

/* Roster cards reveal the kit before asking the player to select it. */
.roster-panel.character-panel{width:min(1200px,100%);padding:28px 30px}.roster-panel .story-header h2{font:400 clamp(25px,3vw,38px) Georgia,serif}.roster-panel .story-header .eyebrow{font-size:8px;color:#7c826f}.roster-intro{font-size:12px!important;margin:14px 0 22px!important}.roster-grid.character-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}.roster-card.character-card{padding:0;border:1px solid #cbd1bf;border-radius:8px;overflow:hidden;background:#faf7ef}.roster-card.selected{border-color:var(--fighter-color);box-shadow:inset 0 0 0 1px var(--fighter-color)}
.roster-card-top{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:13px 15px;font-size:7px;letter-spacing:1.2px;color:#6a7861}.roster-card-top i{font-style:normal;font-size:12px;color:var(--fighter-color)}.roster-art{position:relative;isolation:isolate;background:linear-gradient(0deg,#e8eada,transparent)}.roster-art>span{position:absolute;top:20%;left:0;right:0;text-align:center;text-transform:uppercase;font-size:clamp(25px,3vw,43px);font-weight:850;letter-spacing:-2px;color:#c6cdb875;z-index:-1}.roster-art svg{height:190px;background:none!important}.roster-card-body{padding:19px 17px}.roster-card-body>.eyebrow{font-size:7px;margin:0;color:#7c836f}.roster-card-body h3{font:400 31px Georgia,serif;margin:4px 0 11px}.roster-specialty{font-size:11px!important;line-height:1.6;min-height:53px;color:#717b68;margin:0 0 16px!important}.roster-card dl{margin:0 0 20px;border-block:1px solid #d7ddca;padding:12px 0}.roster-card dl>div+div{margin-top:10px}.roster-card dt{font-size:7px;letter-spacing:1.2px;color:#8c937e}.roster-card dd{margin:4px 0 0;font-size:12px}.roster-card button{width:100%;font-size:10px;padding:10px 6px}.roster-card.selected button:disabled{opacity:1;background:#365944}.roster-locked .roster-art{filter:saturate(.45)}.roster-footer{display:flex;justify-content:space-between;align-items:center;gap:16px;border-top:1px solid var(--edge);padding-top:18px;margin-top:24px}.roster-footer>p{font-size:11px;color:#65765e;line-height:1.7}.roster-footer small{font-size:9px}.roster-footer>div{display:flex;gap:10px}.roster-footer button{font-size:11px}

/* Scenes retain the painted art, with a bounded dialogue log and consistent controls. */
.cinema-panel.dialogue-panel{border-radius:10px;width:min(1320px,100%)}
.cinema-header button{font-size:11px;border-radius:5px;min-height:38px}.cinema-dialogue{padding-left:22px;border-left:1px solid #cfb78655;left:5%;right:5%;bottom:110px}.cinema-speaker>span{border:0;padding:0;font-size:11px;letter-spacing:2px;color:#e8c79b}.cinema-speaker small{font-size:8px}.cinema-line{max-width:64ch;font-size:clamp(20px,2.3vw,31px);line-height:1.5}.cinema-line.narration{font-family:Georgia,serif;font-style:italic;font-size:clamp(20px,2vw,28px)}.cinema-controls{gap:14px;padding-top:16px;bottom:22px}.cinema-controls button{border-radius:5px;font-size:11px;min-height:42px}.cinema-progress>div{max-width:140px}.cinema-progress i{flex:1;min-width:2px;width:10px}.scene-journal{margin-left:auto;position:relative}.scene-journal summary{cursor:pointer;color:#c7cfbe;font-size:10px;padding:12px 0;list-style:none}.scene-journal summary:focus-visible{outline:2px solid #e0c499;outline-offset:4px}.scene-journal details[open]>div{position:absolute;right:0;bottom:48px;width:min(470px,75vw);max-height:45vh;overflow:auto;padding:18px 22px;background:#142821f7;border:1px solid #6e80634d;border-radius:8px;box-shadow:0 10px 35px #0005}.scene-journal p{font-size:12px;line-height:1.65;color:#dde2d3;margin:0 0 14px}.scene-journal b{display:block;font-size:8px;letter-spacing:1.3px;color:#d5b986;text-transform:uppercase;margin-bottom:5px}

/* Secondary screens share the same hierarchy and visible primary action. */
.setup-panel,.settings-panel,.challenge-panel{width:min(900px,100%);padding:28px 32px}.panel>.eyebrow{color:#7b826e;font-size:8px;margin:0 0 9px}.setup-panel>.row{padding:13px 16px;background:#e7ecdd;border:0;border-radius:7px;margin:20px 0}.setup-panel>.row b{font:400 23px Georgia,serif}.setup-panel>.row small{font-size:10px}.setup-panel h3,.settings-panel h3{font-size:9px;letter-spacing:1.7px;margin-top:21px;margin-bottom:9px}.setup-panel .seg{gap:7px}.setup-panel .seg button{font-size:11px;min-height:38px;border-radius:5px;white-space:normal;flex:1 1 90px}.setup-panel>.dim{font-size:11px;line-height:1.6}.setup-panel>.actions{position:sticky;bottom:-28px;background:#f5f0e5f5;padding:16px 0 4px;border-top:1px solid var(--edge);margin-top:23px}.setup-panel>.actions button{font-size:11px}.settings-panel>.row{padding:17px 0}.settings-panel>.row b{font-size:14px}.settings-panel>.row small{font-size:11px}.settings-panel [data-act=wipe]{color:#9b493d;background:transparent;border-color:#d6c7b8;font-size:11px}.challenge-panel>.row{padding:18px 20px;border:1px solid #ced4c1;background:#faf7ef;border-radius:8px;margin-top:12px;gap:24px}.challenge-panel>.row b{font:400 23px Georgia,serif;margin-bottom:7px}.challenge-panel>.row small{font-size:11px;line-height:1.6}.challenge-panel>.row button{font-size:12px}
.pause-panel{width:min(480px,100%);padding:34px}.pause-panel>h2{font-size:37px;margin:0 0 7px}.pause-panel>.sub{font-size:12px;margin-bottom:25px}.pause-panel>.actions{display:grid;grid-template-columns:1fr 1fr;gap:9px}.pause-panel .actions button{font-size:12px}.pause-panel [data-act=resume]{grid-column:1/-1;padding:14px}.pause-panel [data-act=quit]{color:#a04739}.result-panel{width:min(800px,100%);padding:36px}.result-panel>.big{font:400 clamp(38px,6vw,65px) Georgia,serif;letter-spacing:-2px;padding-bottom:22px;border-bottom:1px solid var(--edge);margin:5px 0 20px}.result-panel>.big.win{color:#35674b}.result-panel>.big.lose{color:#a34a3b}.result-panel>.split{gap:40px;margin:25px 0}.result-panel>.split h3{font-size:9px;letter-spacing:1.7px;margin:0 0 12px}.result-panel>.split .split{font-size:12px;line-height:1.8}.result-panel>.actions{border-top:1px solid var(--edge);padding-top:20px}.result-panel>.actions button{font-size:12px}.progression-panel,.remix-panel{border-radius:14px}.avatar-tabs button.active{border-color:#397b69}.progression-header{background:var(--paper)}

@media(max-width:1000px){
 .lobby.home-panel{padding:22px}.lobby-header{gap:12px}.lobby-header nav{gap:0}.lobby-header nav button{padding:8px 10px}.lobby-main{grid-template-columns:minmax(0,1.9fr) minmax(220px,1fr)}.lobby-story-copy{padding:28px}.lobby-checkpoint{padding:17px 28px}.lobby-mode{padding:16px 12px;gap:10px}.lobby-mode b{font-size:20px}.lobby-mode-icon{width:30px}.lobby-mode em{font-size:9px}.roster-grid.character-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.roster-card-body{padding:18px 22px}.roster-art svg{height:170px}.roster-specialty{min-height:36px}
}
@media(max-height:600px) and (min-width:601px){
 #ui{padding:10px 14px}.lobby.home-panel{padding:13px 18px;max-width:1100px}.lobby-header{padding-bottom:9px;gap:10px}.wordmark{font-size:15px;gap:9px;letter-spacing:2px}.wordmark>span{font-size:28px}.wordmark>span span{font-size:32px}.wordmark small{font-size:6px}.lobby-header nav button{font-size:11px;min-height:32px;padding:6px 12px}.lobby-profile{font-size:10px;padding:4px}.lobby-profile small{font-size:8px}.lobby-heading{padding:9px 0 7px}.lobby-heading .eyebrow{font-size:7px}.lobby-heading>span{font-size:11px}.lobby-main{grid-template-columns:minmax(0,2.3fr) minmax(210px,1fr);gap:12px}.lobby-story{min-height:205px}.lobby-story-copy{padding:17px 22px 12px}.lobby-story-copy>.eyebrow{font-size:7px;margin-bottom:11px}.lobby-story h1{font-size:39px;letter-spacing:-1.6px}.lobby-story-copy>p:not(.eyebrow){display:none}.lobby-story-actions{margin-top:14px;gap:8px}.lobby-story-actions button{font-size:10px;min-height:34px;padding:7px 12px;gap:8px}.lobby-story-actions svg{width:14px}.story-edition{top:16px;right:17px;font-size:7px}.story-edition i{font-size:18px;padding:4px}.lobby-checkpoint{padding:10px 22px;gap:10px}.lobby-checkpoint>div>span{font-size:6px;letter-spacing:1px}.lobby-checkpoint b{font-size:10px;margin-top:3px}.lobby-progress{min-width:86px}.lobby-progress>span{font-size:18px!important}.lobby-progress small{font-size:9px}.lobby-progress>div{margin-top:3px}.lobby-sparring{padding:15px 16px;position:relative}.lobby-sparring-top .eyebrow{font-size:7px}.availability{font-size:6px}.lobby-fighter{position:absolute;right:9px;top:27px;width:85px;height:100px;min-height:0;opacity:.75;margin:0}.lobby-fighter svg{width:90px;height:100px}.fighter-orbit{width:75px;height:75px;box-shadow:none}.lobby-kit{display:none}.lobby-sparring-copy{position:relative;z-index:1;padding-top:27px;max-width:65%}.lobby-sparring-copy h2{font-size:27px}.lobby-sparring-copy p{font-size:9px}.lobby-sparring-copy>small{display:none}.lobby-sparring>button{font-size:10px;min-height:34px;padding:7px 10px;position:relative}.lobby-sparring-links{margin-top:5px}.lobby-sparring-links button{min-height:26px;font-size:9px}.lobby-modes{margin-top:10px;gap:10px}.lobby-mode{padding:9px 12px;gap:9px;min-height:51px}.lobby-mode small,.lobby-mode em{display:none}.lobby-mode b{font-size:17px;margin:0}.lobby-mode-icon{width:24px;height:27px;background:transparent}.lobby-mode-icon svg{width:20px;height:20px}.lobby-mode>svg{width:12px}.lobby-footer{margin-top:9px;padding-top:5px}.lobby-footer>span{font-size:8px}.lobby-footer button{font-size:9px;min-height:28px;padding:4px}.lobby-footer nav{gap:12px}
 .chapter-hub.story-hub{padding:16px 20px}.chapter-header{position:sticky;top:-16px;z-index:5;background:#f5f0ef;padding:12px 0;margin-top:-12px;border-bottom:1px solid var(--edge)}.chapter-header h2{font-size:26px}.chapter-header .eyebrow{display:none}.chapter-compact-launch{display:flex;font-size:10px;min-height:34px;padding:8px 12px;gap:12px}.chapter-overview{margin:11px 0;font-size:10px}.chapter-overview>p{font-size:10px}.chapter-overview>span{font-size:8px}.chapter-rail{margin-bottom:10px;padding-bottom:5px}.chapter-stop{min-width:115px;padding:7px 10px}.chapter-stop>span{font-size:16px}.chapter-stop>b{font-size:10px;min-height:27px;margin:4px 0}.chapter-stop>small{font-size:6px}.chapter-cover{min-height:175px}.chapter-cover-copy{padding:20px 24px}.chapter-cover-copy h3{font-size:30px}.chapter-cover-copy>p:last-child{font-size:11px;max-width:43ch}.chapter-seal{font-size:7px;top:15px;right:15px}.chapter-detail{gap:22px;padding:18px 0}.chapter-mission h3{font-size:22px}.chapter-launch{padding-left:22px}.chapter-facts{margin-top:12px;padding-top:12px;gap:12px}.chapter-footer{padding-top:9px}.roster-panel.character-panel{padding:18px 20px}.roster-panel .story-header h2{font-size:27px}.roster-grid.character-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.roster-card-top{padding:10px;font-size:6px}.roster-art svg{height:110px}.roster-card-body{padding:12px}.roster-card-body h3{font-size:25px}.roster-card-body .eyebrow{font-size:6px}.roster-specialty{font-size:10px!important;min-height:64px}.roster-card dl{padding:10px 0;margin-bottom:12px}.roster-card dd{font-size:10px}.roster-card button{font-size:9px;min-height:36px}.roster-footer{margin-top:16px;padding-top:13px}.roster-intro{font-size:10px!important;margin:10px 0 15px!important}
 .cinema-frame{height:calc(100dvh - 24px);min-height:280px}.cinema-dialogue{bottom:78px;padding-left:15px}.cinema-line,.cinema-line.narration{font-size:19px;line-height:1.35}.cinema-controls{bottom:11px;padding-top:9px;gap:10px}.cinema-progress{font-size:8px;gap:8px}.cinema-controls button{min-height:36px;font-size:10px;padding:7px 10px}.scene-journal summary{font-size:9px}.scene-journal details[open]>div{bottom:42px;max-height:54vh}.cinema-header{padding:13px 22px}.cinema-speaker{margin-bottom:5px}.cinema-speaker>span{font-size:10px}.cinema-speaker small{font-size:7px}.setup-panel,.settings-panel,.challenge-panel{padding:18px 22px}.setup-panel>.actions{bottom:-18px;padding-top:11px}.setup-panel h3,.settings-panel h3{margin-top:15px}.pause-panel{padding:21px 26px;width:min(470px,100%)}.pause-panel>.sub{margin-bottom:15px}.pause-panel>h2{font-size:29px}.result-panel{padding:22px 26px}.result-panel>.big{font-size:43px;padding-bottom:14px;margin-bottom:14px}
}
@media(max-height:400px) and (min-width:601px){
 .lobby.home-panel{padding:9px 16px}.lobby-heading{display:none}.lobby-header{padding-bottom:7px;margin-bottom:8px}.lobby-story{min-height:195px}.lobby-story-copy{padding:15px 20px 10px}.lobby-story h1{font-size:35px}.lobby-story-copy>.eyebrow{margin-bottom:8px}.lobby-story-actions{margin-top:10px}.lobby-checkpoint{padding:8px 20px}.lobby-modes{margin-top:8px}.lobby-mode{min-height:44px;padding:6px 10px}.lobby-footer{margin-top:7px;padding-top:4px}.lobby-footer button{min-height:26px}
}
@media(max-width:600px){
 #ui{padding:12px}.lobby.home-panel{padding:18px;border-radius:12px}.lobby-header{flex-wrap:wrap;gap:15px;padding-bottom:14px}.wordmark{font-size:16px}.lobby-profile{margin-left:auto}.lobby-header nav{order:3;width:100%;display:grid;grid-template-columns:repeat(4,1fr)}.lobby-header nav button{font-size:12px;padding:9px 6px}.lobby-heading{padding:17px 0 12px}.lobby-heading .eyebrow{font-size:8px}.lobby-heading>span{display:none}.lobby-main{grid-template-columns:1fr;gap:14px}.lobby-story{min-height:350px}.lobby-story-copy{padding:26px 24px}.lobby-story h1{font-size:49px}.lobby-story-copy>.eyebrow{font-size:8px}.story-edition{right:18px;top:19px;font-size:7px;gap:8px}.story-edition i{font-size:18px}.lobby-story-actions{flex-wrap:wrap;gap:8px}.lobby-story-actions button{padding:10px 12px;font-size:11px;min-height:40px}.lobby-checkpoint{padding:16px 24px}.lobby-progress{min-width:80px}.lobby-sparring{position:relative;padding:20px;min-height:218px}.lobby-fighter{position:absolute;right:10px;top:28px;width:120px;height:140px;min-height:0}.lobby-fighter svg{width:120px;height:135px}.fighter-orbit{width:100px;height:100px}.lobby-kit{display:none}.lobby-sparring-copy{position:relative;max-width:65%;padding:10px 0}.lobby-sparring-copy h2{font-size:29px}.lobby-sparring-copy p{font-size:10px}.lobby-sparring-copy>small{font-size:9px;margin:8px 0}.lobby-sparring>button{position:relative}.lobby-modes{grid-template-columns:1fr;gap:9px;margin-top:14px}.lobby-mode{padding:14px 16px}.lobby-mode-icon{width:35px;margin-right:5px}.lobby-mode b{font-size:23px}.lobby-mode small{font-size:7px}.lobby-mode em{font-size:10px}.lobby-footer{flex-direction:column;align-items:flex-start;gap:8px}.lobby-footer nav{width:100%;justify-content:space-between}.lobby-footer button{min-height:38px;font-size:11px}
 .chapter-hub.story-hub{padding:18px}.chapter-header h2{font-size:30px}.chapter-header{gap:9px;align-items:center}.chapter-header .eyebrow{font-size:7px;letter-spacing:1px}.chapter-header-actions>button{font-size:10px;padding:7px 10px;min-height:36px}.chapter-overview{display:block;margin:14px 0}.chapter-overview p{font-size:11px;margin-bottom:9px}.chapter-overview>span{font-size:8px}.chapter-stop{min-width:125px}.chapter-cover{min-height:310px}.chapter-cover-copy{padding:24px}.chapter-cover-copy h3{font-size:35px}.chapter-cover-copy>p:last-child{font-size:12px}.chapter-cover-copy .eyebrow{font-size:8px}.chapter-seal{right:16px;top:15px}.chapter-detail{grid-template-columns:1fr;gap:22px;padding:23px 0}.chapter-mission h3{font-size:25px}.chapter-facts{gap:12px}.chapter-facts b{font-size:10px}.chapter-launch{border-left:0;border-top:1px solid var(--edge);padding:20px 0 0}.chapter-footer{flex-direction:column;align-items:flex-start;gap:9px}.chapter-checkpoint{align-items:flex-start;flex-direction:column;gap:9px;font-size:11px}.roster-panel.character-panel{padding:18px}.roster-panel .story-header{align-items:center;gap:12px}.roster-panel .story-header h2{font-size:28px}.roster-panel .story-header .eyebrow{font-size:7px}.roster-panel .story-header button{font-size:10px;white-space:nowrap}.roster-grid.character-grid{grid-template-columns:1fr 1fr;gap:9px}.roster-card-top{padding:11px 10px;font-size:6px;letter-spacing:.7px}.roster-art svg{height:140px}.roster-art>span{font-size:28px}.roster-card-body{padding:13px 11px}.roster-card-body h3{font-size:26px}.roster-card-body>.eyebrow{font-size:6px;letter-spacing:.8px;min-height:18px}.roster-specialty{font-size:10px!important;min-height:80px;margin-bottom:12px!important}.roster-card dl{margin-bottom:14px}.roster-card dt{font-size:6px}.roster-card dd{font-size:10px;min-height:16px}.roster-card button{font-size:9px;min-height:42px}.roster-footer{flex-direction:column;align-items:flex-start;gap:12px}.roster-footer>div{width:100%}.roster-footer button{flex:1;font-size:10px}
 .cinema-frame{min-height:580px;height:calc(100dvh - 26px);max-height:none}.cinema-dialogue{bottom:132px;left:7%;right:7%;padding-left:16px}.cinema-line,.cinema-line.narration{font-size:22px;line-height:1.4}.cinema-controls{flex-wrap:wrap;gap:8px;bottom:17px;padding-top:12px}.cinema-progress{font-size:9px}.cinema-actions{width:100%;justify-content:space-between;gap:8px}.cinema-controls button{font-size:11px;min-height:42px;padding:8px 11px}.cinema-speaker{gap:4px}.scene-journal details[open]>div{width:78vw;bottom:42px;max-height:48vh}.scene-journal summary{font-size:10px}.cinema-header button{font-size:10px}.setup-panel,.settings-panel,.challenge-panel{padding:20px}.setup-panel>.row{gap:10px;padding:13px}.setup-panel>.row b{font-size:21px}.setup-panel>.row button{font-size:10px;padding:6px;min-height:38px}.setup-panel .seg button{min-height:42px}.setup-panel>.actions{bottom:-20px;flex-wrap:wrap;padding:12px 0 3px}.setup-panel>.actions button{font-size:10px;min-height:42px;flex:1 1 90px}.challenge-panel>.row{padding:16px;gap:12px}.challenge-panel>.row b{font-size:21px}.challenge-panel>.row button{padding:9px 12px}.pause-panel{padding:26px}.pause-panel>h2{font-size:33px}.result-panel{padding:25px}.result-panel>.split{gap:22px;flex-direction:column}.result-panel>.actions{flex-wrap:wrap}.result-panel>.actions button{flex:1 1 120px}
}
@media(orientation:portrait) and (pointer:coarse){#rotate{display:none}body[data-view=game] #rotate{display:flex}}
@media(prefers-reduced-motion:no-preference){.lobby-story-copy{animation:menu-arrive .35s ease-out both}.chapter-cover-copy{animation:menu-arrive .22s ease-out both}@keyframes menu-arrive{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}}

.lobby-match-rules{font-size:9px;color:#65765c;margin:0 0 9px;line-height:1.4}.lobby-match-rules span{padding:0 5px;color:#9aa68e}
.setup-arena-preview{display:grid;grid-template-columns:1fr 1.3fr;align-items:center;gap:20px;background:#e8ecdd;border:1px solid #d2dac5;border-radius:7px;padding:15px 20px;margin:14px 0 20px}.setup-arena-preview .arena-sketch{width:100%;height:120px;color:#526f52}.setup-arena-preview h4{font:400 23px Georgia,serif;margin:4px 0 8px}.setup-arena-preview .eyebrow{font-size:7px;color:#7b876f}.setup-arena-preview p:not(.eyebrow){font-size:11px;line-height:1.6;color:#6a795e}
@media(max-height:600px) and (min-width:601px){.lobby-match-rules{font-size:8px;margin:auto 0 7px;position:relative}.lobby-sparring>button{margin-top:0}.setup-arena-preview{padding:12px 16px}.setup-arena-preview .arena-sketch{height:90px}.setup-arena-preview h4{font-size:21px}}
@media(max-width:600px){.setup-arena-preview{grid-template-columns:1fr;padding:15px;gap:10px}.setup-arena-preview .arena-sketch{height:90px}.lobby-match-rules{position:relative;font-size:9px;margin-bottom:10px}}
@media(max-height:400px) and (min-width:601px){.lobby-profile{min-height:32px}.lobby-sparring-copy{padding-top:10px}.lobby-story{min-height:190px}.lobby-story h1{font-size:33px}}
.lobby-sparring-copy h2{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.lobby-profile>span:last-child{max-width:125px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.roster-card{display:flex;flex-direction:column}.roster-card-body{flex:1;display:flex;flex-direction:column}.roster-card-body h3{overflow-wrap:anywhere}.roster-card-body>button{margin-top:auto}
@media(max-height:400px) and (min-width:601px){.lobby.home-panel{padding-block:8px}.lobby-story-copy{padding:12px 20px 7px}}
@media(max-width:600px){.cinema-frame{background:#21372e}.cinema-frame>.cinematic-art{top:9%;height:52%;min-height:280px}.cinema-shade{background:linear-gradient(180deg,#14261fb0,transparent 24%,transparent 38%,#13271fa8 60%,#101f1bf7 100%)}}
.setup-arena-preview .arena-lines{color:#7e9275}.setup-arena-preview .arena-actor{color:#365a43}.setup-arena-preview .arena-actor.opponent{color:#a15d4d}.setup-arena-preview .arena-sun{opacity:.35}

.touch-guide{width:min(880px,100%)}
.touch-guide-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:16px 0}
.touch-guide-grid article{display:flex;align-items:flex-start;gap:10px;padding:12px;background:#e9ecdf;border:1px solid var(--edge);border-radius:8px}
.touch-guide-grid svg{width:32px;height:32px;flex:none;fill:currentColor;color:var(--ink)}
.touch-guide-grid h3{font:700 14px/1.3 system-ui;text-transform:none;letter-spacing:0;margin:0 0 5px;color:var(--ink)}
.touch-guide-grid p{font-size:12px;line-height:1.45;margin:0}
.touch-guide button{min-height:44px}
.touch-guide-actions{position:sticky;bottom:-24px;background:var(--paper);padding:12px 0;margin:0;border-top:1px solid var(--edge)}
@media(max-width:600px){.touch-guide-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.touch-guide-grid article{flex-direction:column}.touch-guide-grid p{font-size:13px}}
/* Share the menu's paper, ink and title treatment with the layout dialog. */
.touch-editor-panel{background:var(--paper);border-color:var(--edge);border-radius:14px}
.touch-editor header h2{font-family:Georgia,serif;font-weight:400;letter-spacing:-1px}
.touch-editor select{background:#faf7ef;border-color:var(--edge)}
.touch-field input{accent-color:var(--teal)}
@media(pointer:coarse){
  #pause{min-height:44px}
  #ui button,.touch-editor button,.touch-editor select{min-height:44px}
  .lobby-header nav button,.lobby-sparring-links button,.lobby-footer button{min-height:44px}
}

/* The courtyard: a place to enter, with a paper sparring invitation. */
#ui[data-view=menu]{padding:0;background:#182b23}
.courtyard-home.panel{position:relative;isolation:isolate;width:100%;height:100%;max-width:none;border:0;border-radius:0;padding:22px 42px 10px;color:#f5efdf;background:#1b3028;display:flex;flex-direction:column;box-shadow:none}
.courtyard-home:before{content:'';position:absolute;inset:0;z-index:-2;background:var(--courtyard-scene) center 45%/cover}
.courtyard-home:after{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#10261ff2 0%,#152c24cc 30%,#17302733 67%,#10241ed9 100%),linear-gradient(0deg,#10231ef5,transparent 35%,transparent 70%,#132820cc)}
.courtyard-header{display:flex;align-items:center;gap:30px;border-bottom:1px solid #e7dfc632;padding-bottom:10px;flex-shrink:0}
.courtyard-wordmark{font:800 21px/1.2 system-ui;letter-spacing:4px;margin-right:auto}.courtyard-wordmark span{display:block;font:600 7px/2 system-ui;letter-spacing:2px;color:#cccdb4}
.courtyard-header nav{display:flex;gap:8px}.courtyard-header button,.courtyard-footer button,.courtyard-text-link{color:#e5e5d4;background:transparent;border:0;font-size:12px;font-weight:550;min-height:44px;padding:8px 12px}
.courtyard-header button:hover:not(:disabled),.courtyard-footer button:hover:not(:disabled),.courtyard-text-link:hover:not(:disabled){color:#fff9ec;background:#f7f0d917}
.courtyard-main{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:40px;align-items:center;flex:1;padding:30px 0 26px;min-height:0}
.courtyard-story{padding:0 0 0 12px;align-self:center}.courtyard-chapter{display:flex;align-items:center;gap:12px;margin-bottom:20px}.chapter-stamp{display:flex;align-items:center;justify-content:center;width:36px;height:42px;border:1px solid #d5b37e90;color:#e5c38d;font:23px Georgia,serif}.courtyard-chapter .eyebrow{color:#d7c8a6;font-size:8px;letter-spacing:2px}.courtyard-chapter p:last-child{font:italic 13px Georgia,serif;color:#d4d7c4;margin:4px 0 0}
.courtyard-story h1{font:400 clamp(52px,6.4vw,90px)/.94 Georgia,serif;letter-spacing:-3px;color:#fbf3df}.courtyard-story h1>span{color:#cb6549}.courtyard-invitation{font:italic 16px/1.5 Georgia,serif;color:#d2d9c2;margin:18px 0 23px}.courtyard-story-actions{display:flex;gap:12px;align-items:center}.courtyard-story-actions .primary{display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:48px;font-size:13px;padding:12px 19px;border-radius:3px}.courtyard-home svg{width:18px;height:18px}.courtyard-text-link{border-bottom:1px solid #dfd9bc66;border-radius:0;padding-inline:4px}
.courtyard-trail{display:flex;align-items:center;gap:0;margin-top:30px;max-width:385px}.courtyard-trail>span{position:relative;flex:1;color:#a6b1a1;font:10px Georgia,serif;padding:9px 0 0;border-top:1px solid #bcc5ac55}.courtyard-trail>span:before{content:'';width:4px;height:4px;background:#84977f;position:absolute;top:-3px;left:0;border-radius:50%}.courtyard-trail>.current,.courtyard-trail>.cleared{color:#efd3a5}.courtyard-trail>.current:before{width:7px;height:7px;top:-4px;background:#d5aa6e;box-shadow:0 0 0 3px #d5aa6e22}.courtyard-trail>.cleared{border-color:#c7a56b}.courtyard-trail small{font-size:9px;color:#b6c3aa;margin-left:18px;white-space:nowrap}
.sparring-invitation{background:#eee9d8;color:var(--ink);padding:22px 23px 6px;box-shadow:5px 6px 0 #071b1a33;position:relative;border-top:3px solid #b2a37d;align-self:center}.sparring-invitation:after{content:'';position:absolute;top:5px;bottom:5px;right:5px;border-right:1px solid #9a967c40;pointer-events:none}.invitation-top{display:flex;align-items:center;justify-content:space-between;gap:8px}.invitation-top .eyebrow{font-size:8px;letter-spacing:1.8px;color:#6b7660}.invitation-top>span{font:15px Georgia,serif;color:var(--red);border:1px solid #ad483966;padding:3px 4px}.sparring-invitation h2{font:400 40px/.97 Georgia,serif;letter-spacing:-1.5px;display:block;margin:12px 0}.invitation-note{font:italic 12px Georgia,serif;color:#69765e}.invitation-fighter{display:flex;align-items:center;gap:4px;border-block:1px solid #b1b6a280;margin:17px 0 15px;padding:8px 0}.invitation-fighter svg{width:55px;height:64px;flex:none;opacity:.8}.invitation-fighter>div{min-width:0}.invitation-fighter small{display:block;font-size:7px;letter-spacing:1px;color:#6c7865}.invitation-fighter b{display:block;font:500 16px Georgia,serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:3px 0}.invitation-fighter div>span{font-size:9px;line-height:1.4;display:block;color:#66725e}.sparring-invitation>button{width:100%;display:flex;align-items:center;justify-content:space-between;min-height:44px;font-size:12px;border-radius:3px}.sparring-invitation>.invitation-setup{background:transparent;border:0;color:#5b6b53;font-size:11px}
.courtyard-footer{display:flex;align-items:center;gap:20px;border-top:1px solid #e7dfc632;flex-shrink:0}.courtyard-footer>.eyebrow{font-size:8px;color:#b9c2ab;letter-spacing:1.5px}.courtyard-footer nav{display:flex;align-items:center;gap:8px;flex:1}.courtyard-footer button{font-size:11px;padding-inline:8px;display:flex;gap:12px;align-items:center}.courtyard-footer button small{font-size:8px;color:inherit}.courtyard-footer button:disabled{opacity:.55}
/* Quiet, consistent paper screens around the courtyard. */
#ui:not([data-view=menu]):not([data-view=game]):not([data-view=dialogue]) .panel{border-radius:4px;border-top:3px solid #b2a37d}
.panel>h2,.panel>header h2{font-family:Georgia,serif;font-weight:400}.settings-panel>h2,.touch-guide>h2,.setup-panel>h2{font-size:30px}.touch-editor-panel{border-radius:4px;border-top:3px solid #b2a37d}
.setup-advanced{border-top:1px solid var(--edge);margin-top:12px}.setup-advanced summary{cursor:pointer;min-height:44px;padding:12px 0;font-size:13px;font-weight:650}.setup-advanced summary span{display:block;font-size:11px;font-weight:400;color:var(--muted);padding:4px 0 0 16px}.setup-advanced[open]{padding-bottom:12px}.pause-panel>.actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.pause-panel>.actions>.primary{grid-column:1/-1;min-height:48px}.pause-panel>.actions>button{min-height:44px}.pause-panel>.actions>button:last-child{color:var(--red)}
@media(max-height:600px) and (min-width:601px){
 .courtyard-home.panel{padding:8px 24px 0}.courtyard-header{gap:18px;padding-bottom:2px}.courtyard-wordmark{font-size:17px;letter-spacing:3px}.courtyard-wordmark span{font-size:6px}.courtyard-header nav{gap:2px}.courtyard-header button{font-size:11px;padding-inline:9px}.courtyard-main{grid-template-columns:minmax(0,1fr) 210px;gap:28px;padding:12px 0 10px}.courtyard-story{padding-left:4px}.courtyard-chapter{gap:9px;margin-bottom:10px}.chapter-stamp{width:28px;height:32px;font-size:20px}.courtyard-chapter .eyebrow{font-size:7px}.courtyard-chapter p:last-child{font-size:11px}.courtyard-story h1{font-size:50px;letter-spacing:-2px}.courtyard-invitation{font-size:13px;margin:10px 0 12px}.courtyard-story-actions{gap:15px}.courtyard-story-actions .primary{min-height:44px;font-size:11px;padding:10px 13px;gap:18px}.courtyard-story-actions .courtyard-text-link{font-size:11px}.courtyard-trail{margin-top:18px;max-width:320px}.courtyard-trail>span{font-size:9px;padding-top:6px}.courtyard-trail small{font-size:8px;margin-left:9px}.sparring-invitation{padding:10px 15px 0}.invitation-top>span{font-size:11px}.invitation-top .eyebrow{font-size:7px}.sparring-invitation h2{font-size:29px;margin:6px 0;letter-spacing:-.7px}.invitation-note{font-size:10px}.invitation-fighter{margin:9px 0 10px;padding:3px 0}.invitation-fighter svg{width:38px;height:42px}.invitation-fighter b{font-size:13px}.invitation-fighter div>span{font-size:8px}.sparring-invitation>button{font-size:11px}.sparring-invitation>.invitation-setup{font-size:10px}.courtyard-footer{gap:12px}.courtyard-footer nav{gap:0}.courtyard-footer button{font-size:10px;gap:6px}.courtyard-footer>.eyebrow{font-size:7px}.courtyard-footer button small{font-size:7px}
}
@media(max-height:370px) and (min-width:601px){.courtyard-story h1{font-size:43px}.courtyard-chapter{margin-bottom:7px}.courtyard-invitation{margin:7px 0}.courtyard-trail{margin-top:12px}.invitation-note{display:none}.courtyard-main{padding-block:7px}.sparring-invitation h2{font-size:25px}.invitation-fighter{margin-block:6px}}
@media(max-width:600px){.courtyard-home.panel{padding:14px 18px 0;display:block;overflow:auto}.courtyard-home:before,.courtyard-home:after{position:fixed}.courtyard-header{flex-wrap:wrap;gap:0 12px;padding-bottom:6px}.courtyard-wordmark{flex:1 1 100%;margin:0 0 5px;font-size:21px}.courtyard-header nav{flex:1;justify-content:space-between;gap:0}.courtyard-header button{font-size:11px;padding-inline:6px}.courtyard-main{grid-template-columns:1fr;gap:28px;padding:28px 0 22px}.courtyard-story{padding:0}.courtyard-story h1{font-size:58px}.courtyard-chapter{margin-bottom:14px}.courtyard-invitation{font-size:14px}.courtyard-trail{margin-top:26px}.sparring-invitation{padding:18px 20px 4px}.sparring-invitation h2 br{display:none}.sparring-invitation h2{font-size:32px}.invitation-fighter{margin-block:12px}.courtyard-footer{flex-wrap:wrap;gap:0}.courtyard-footer>.eyebrow{display:none}.courtyard-footer nav{flex:1 1 100%;justify-content:space-between}.courtyard-footer button{font-size:10px;padding-inline:4px}.courtyard-footer button small{font-size:7px}.courtyard-footer>button{margin-left:auto}}
.field-guide>h2{font-size:32px}.first-fight-steps{margin:15px 0}.first-fight-steps article{display:flex;gap:18px;padding:12px 0;border-top:1px solid var(--edge)}.first-fight-steps article>span{font:28px Georgia,serif;color:var(--red)}.first-fight-steps h3{font:400 20px Georgia,serif;letter-spacing:-.4px;text-transform:none;color:var(--ink);margin:0 0 5px}.first-fight-steps p{font-size:12px;color:var(--muted)}
.roster-card{border-radius:3px}.roster-card-top{border-bottom:1px solid var(--edge)}.chapter-cover{border-radius:3px}.touch-guide-grid article{border-radius:3px;background:#eeeddf}.touch-guide-actions>button,.setup-panel button,.settings-panel button,.pause-panel button,.result-panel button{border-radius:3px}
@media(max-height:600px) and (min-width:601px){.first-fight-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.first-fight-steps article{display:block}.first-fight-steps h3{font-size:18px;margin-top:8px}.first-fight-steps article>span{font-size:23px}.field-guide>h2{font-size:28px}}
@media(pointer:coarse){.setup-advanced summary{min-height:44px}}

/* A compact fighter register: choose a face, then enter the arena. */
.fighter-folio{width:min(1100px,100%);padding:22px 28px}.folio-header{display:flex;align-items:center;justify-content:space-between;gap:18px;border-bottom:1px solid var(--edge);padding-bottom:15px}.folio-header h2{font:400 34px Georgia,serif;letter-spacing:-1px;margin:2px 0 0}.folio-header .eyebrow{font-size:8px;color:var(--muted)}.folio-body{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:28px;padding:22px 0}.folio-profile{align-self:center}.folio-profile-top{display:grid;grid-template-columns:115px minmax(0,1fr);gap:15px;align-items:center}.folio-profile-art{background:linear-gradient(0deg,#dee3d0,transparent);border-bottom:1px solid var(--edge)}.folio-profile-art svg{width:100%;height:190px;display:block}.folio-profile-top h3{font:400 35px Georgia,serif;text-transform:none;letter-spacing:-1px;color:var(--ink);margin:5px 0 12px;overflow-wrap:anywhere}.folio-profile-top p:not(.eyebrow){font-size:12px;line-height:1.65;color:var(--muted)}.folio-profile-top .eyebrow{font-size:8px;color:var(--red)}.folio-profile dl{display:grid;grid-template-columns:1fr 1fr;border-block:1px solid var(--edge);padding:14px 0;margin:16px 0 10px;gap:10px}.folio-profile dt{font-size:8px;letter-spacing:1.4px;color:var(--muted)}.folio-profile dd{font:17px Georgia,serif;margin:4px 0 0}.folio-build-note{font:italic 12px Georgia,serif;color:var(--muted)}
.fighter-lineup{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;align-content:center}.fighter-token{position:relative;display:flex;flex-direction:column;align-items:center;padding:6px 4px;border-radius:3px;background:#edeedfb0;border-color:#cdd2c1;min-width:0}.fighter-token svg{width:100%;height:68px;opacity:.8}.fighter-token b{font-size:11px;font-weight:650;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.fighter-token small{font-size:7px;min-height:10px;color:var(--muted)}.fighter-token.selected{border-color:var(--red);box-shadow:inset 0 -2px var(--red);background:#f7f0e2}.fighter-token.selected small{color:var(--red)}.fighter-token.locked svg{opacity:.35}.folio-footer{display:flex;align-items:center;justify-content:space-between;gap:15px;border-top:1px solid var(--edge);padding-top:12px}.folio-footer>p{font:italic 13px Georgia,serif;margin:0}.folio-footer small{display:block;font:9px system-ui;color:var(--muted);margin-top:4px}.folio-footer>div{display:flex;gap:8px}.folio-footer button{font-size:12px;min-height:44px;border-radius:3px}
@media(max-height:600px) and (min-width:601px){.fighter-folio{padding:12px 20px}.folio-header{padding-bottom:8px}.folio-header h2{font-size:26px}.folio-header .eyebrow{font-size:7px}.folio-body{gap:22px;padding:12px 0}.folio-profile-top{grid-template-columns:82px minmax(0,1fr);gap:10px}.folio-profile-art svg{height:116px}.folio-profile-top h3{font-size:26px;margin:4px 0 7px}.folio-profile-top p:not(.eyebrow){font-size:10px;line-height:1.5}.folio-profile-top .eyebrow{font-size:7px}.folio-profile dl{padding:10px 0;margin:12px 0 7px}.folio-profile dt{font-size:7px}.folio-profile dd{font-size:13px}.folio-build-note{font-size:10px}.fighter-lineup{gap:6px}.fighter-token{padding:3px}.fighter-token svg{height:40px}.fighter-token b{font-size:10px}.fighter-token small{font-size:7px;min-height:9px}.folio-footer{padding-top:7px}.folio-footer>p{font-size:11px}.folio-footer small{font-size:8px}.folio-footer button{font-size:10px}.sparring-invitation h2{margin-block:4px}.invitation-fighter{margin-block:7px}.sparring-invitation{padding-top:8px}}
@media(max-width:600px){.fighter-folio{padding:16px}.folio-header h2{font-size:27px}.folio-header .eyebrow{font-size:7px}.folio-body{grid-template-columns:1fr;gap:16px;padding:18px 0}.folio-profile-top{grid-template-columns:90px minmax(0,1fr)}.folio-profile-art svg{height:140px}.folio-profile-top h3{font-size:29px}.folio-profile-top p:not(.eyebrow){font-size:11px}.folio-profile dl{margin-top:12px;padding-block:10px}.fighter-lineup{gap:6px}.fighter-token svg{height:50px}.fighter-token b{font-size:10px}.folio-footer{flex-direction:column;align-items:stretch}.folio-footer>div{display:grid;grid-template-columns:1fr 1fr}.folio-footer>p{display:none}}
.panel h2 button{font-family:system-ui,sans-serif;letter-spacing:0}
.setup-identity{display:flex;align-items:center;justify-content:space-between;gap:15px;border-block:1px solid var(--edge);padding:5px 0;margin:8px 0 14px}.setup-identity p{font-size:12px;color:var(--muted)}.setup-identity b{color:var(--ink);font-weight:650}.setup-choices{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:24px}.setup-opponent h3{margin-top:3px}.setup-opponent .seg{gap:5px}.setup-opponent .seg button{flex:1 1 45px;font-size:10px;padding:5px;min-height:44px}.setup-opponent>.dim{font-size:11px;line-height:1.6;margin-top:10px}.setup-rules .setup-advanced:first-child{margin-top:0;border-top:0}.setup-rules .setup-advanced summary{font-size:12px}.setup-rules .setup-advanced summary span{font-size:10px}.setup-panel>.actions{background:var(--paper);margin-top:14px}.setup-rules .setup-arena-preview{display:block;padding:10px}.setup-rules .setup-arena-preview .arena-sketch{height:65px}.setup-rules .setup-arena-preview h4{font-size:18px}.setup-rules .setup-arena-preview p:not(.eyebrow){font-size:10px}.setup-rules .seg button{font-size:10px}
@media(max-height:600px) and (min-width:601px){.setup-panel{padding:12px 20px}.setup-panel>h2{font-size:27px;margin-bottom:4px}.setup-panel>.eyebrow{font-size:8px;margin:0}.setup-identity{margin:3px 0 12px;padding:0}.setup-identity button{font-size:10px}.setup-panel>.actions{bottom:-12px;padding:8px 0 0;margin-top:10px}.setup-choices{gap:20px}.setup-opponent h3{margin-top:0;margin-bottom:7px}.setup-opponent>.dim{font-size:10px}.setup-rules .setup-advanced{margin-top:5px}.setup-rules summary{padding-block:9px}}
@media(max-width:600px){.setup-choices{grid-template-columns:1fr;gap:12px}.setup-rules .setup-advanced:first-child{border-top:1px solid var(--edge)}}
/* Keep iPhone text sizing and the next action predictable after a fight. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
.result-panel>p:not(.big):not(.eyebrow){font-size:13px;line-height:1.5;margin:7px 0}.result-details>.split{gap:28px;padding:12px 0}.result-details h3{font-size:9px;letter-spacing:1.2px}.result-details .split{font-size:12px;line-height:1.6}.result-panel>.actions{position:sticky;bottom:-36px;background:var(--paper);padding:12px 0 0;margin-top:12px}.result-panel>.actions>button{min-height:44px}.result-details summary{font-size:12px}
@media(max-height:600px) and (min-width:601px){.result-panel{padding:14px 24px}.result-panel>.big{font-size:35px;margin:4px 0 10px;padding-bottom:10px}.result-panel>.eyebrow{font-size:8px}.result-panel>.actions{bottom:-14px}.result-panel>p:not(.big):not(.eyebrow){font-size:12px}.result-details{margin-top:8px}.result-details summary{padding-block:8px}}
@media(max-width:600px){.result-panel>.actions{bottom:-25px}.result-details>.split{flex-direction:column;gap:10px}}
