@font-face{font-family:"Caminhos Pixel";src:url("assets/retro/caminhos-pixel.ttf") format("truetype");font-style:normal;font-weight:400 900;font-display:swap}
:root{--retro-ink:#fff4c8;--retro-gold:#f5cf58;--retro-edge:#9f681d;--retro-blue:#071b56;--retro-font:"Caminhos Pixel",ui-monospace,monospace}
.retro-art{background-image:url("assets/retro/menu-aprovado.webp");background-repeat:no-repeat;image-rendering:pixelated}
body.selecting-path{background:#092c30 url("assets/retro/floresta-menu.webp") center top/cover fixed no-repeat;color:var(--retro-ink)}
body.selecting-path .app{width:min(1580px,calc(100% - 72px));padding:0 0 24px}
body.selecting-path .masthead{height:clamp(142px,14vw,205px);border:0;gap:25px;align-items:center}
.masthead .brand-art{display:block;width:clamp(270px,33vw,535px);aspect-ratio:602/185;flex:none}
.masthead .brand .brand-wordmark{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden;white-space:nowrap}
html[lang=en] .masthead .brand-art{display:block}
body.selecting-path .top-tools{gap:0;align-items:stretch;border:2px solid var(--retro-gold);background:#071950;box-shadow:0 0 0 2px #694818,inset 0 0 0 3px #173e7d;padding:4px}
.retro-nav-button,.masthead .retro-gear{min-height:50px;padding:10px 18px;display:flex;align-items:center;justify-content:center;gap:10px;border:0;background:transparent;color:var(--retro-gold);font:16px/1.5 var(--retro-font);letter-spacing:0;white-space:nowrap}
.retro-nav-button svg{width:26px;height:26px;flex:none}
body.selecting-path .retro-nav-button+.retro-nav-button,body.selecting-path .retro-gear{border-left:1px solid #7292ca}
.masthead .retro-gear{width:62px;height:auto;padding:8px;flex:none}
.masthead .retro-gear svg{width:28px;height:28px}
.retro-nav-button:hover,.masthead .retro-gear:hover{background:#244785;color:#fff5c7}
.retro-nav-button:focus-visible,.masthead .icon-button:focus-visible{outline:3px solid #fff2aa;outline-offset:2px}
body.selecting-path #sound-button,body.selecting-path .stage-tag{display:none}
body.selecting-path .play-settings,body.selecting-path .campaign-footer{display:none}
body.selecting-path .game-container{margin:0;border:0;border-radius:0;background:none;box-shadow:none;overflow:visible}
body.selecting-path .stage-viewport{background:transparent;overflow:visible;border-radius:0}
body.selecting-path .intro.path-lobby{padding:0;background:none;overflow:visible;color:var(--retro-ink)}
.intro.path-lobby:before{display:none}
.path-lobby .path-selection-heading{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden;padding:0;border:0}
.path-lobby .path-selection-layout{grid-template-columns:minmax(0,1.17fr) minmax(0,1fr);gap:24px;padding-top:0;align-items:start}
.path-lobby .path-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px 12px;align-content:start;align-items:start;padding-top:19px}
.path-lobby .path-card{display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;min-height:0;padding:5px 5px 0;border:2px solid var(--retro-gold);border-radius:0;background:#081b50;color:#fff4dc;overflow:visible;box-shadow:0 0 0 2px #6a461b,inset 0 0 0 2px #203a77,3px 4px 0 #03122a;transition:filter .15s}
.path-lobby .path-card:after{inset:2px;border:1px solid #6e9cce55}
.path-lobby .path-portrait{display:block;flex:none;aspect-ratio:189/218;width:100%;border:1px solid #32456f;background-color:#424347}
.path-lobby .path-card strong{padding:10px 2px 9px;font:clamp(13px,1.15vw,18px)/1.5 var(--retro-font);font-weight:400;letter-spacing:0;text-transform:uppercase;min-height:35px;color:#fff5dc;white-space:nowrap}
.path-lobby .path-card.is-selected{border-color:#fff2a0;background:#102d7c;color:#ffe788;box-shadow:0 0 0 2px #b77a1b,inset 0 0 0 2px #5284e1,0 0 16px #ffdb4d80}
.path-lobby .path-card.is-selected strong{color:#ffdf67;text-shadow:2px 2px #402b15}
.path-lobby .path-card.is-selected:before{content:"";position:absolute;left:-22px;top:41%;width:23px;height:25px;background:#ffd55c;clip-path:polygon(0 20%,45% 20%,45% 0,100% 50%,45% 100%,45% 80%,0 80%);filter:drop-shadow(2px 2px #3a2d12);z-index:2}
.path-lobby .path-card.is-locked{cursor:not-allowed}
.path-lobby .path-card.is-locked .path-portrait{filter:brightness(.94)}
.path-lobby .path-card:hover:not(:disabled){filter:brightness(1.12);background:#123384;border-color:#fff4b0}
.path-lobby .path-card:focus-visible,.path-lobby .path-card.pad-focused{outline:3px solid #fff5c1!important;outline-offset:5px!important}
.path-lobby .path-title{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}
.path-lobby .path-caption{position:absolute;clip-path:inset(50%);height:1px;width:1px;overflow:hidden}
.path-lobby .path-card.has-progress .path-caption{position:static;clip-path:none;height:auto;width:auto;font:8px/1.5 var(--retro-font);letter-spacing:0;margin:0;padding:3px 2px 8px;color:#d5efb7}
.path-lobby .path-progress{right:8px;top:8px;z-index:2;width:25px;height:25px;background:#0f4434;border:2px solid #d9ec9a;color:#efffb7;border-radius:0;font-size:18px}
.path-lobby .path-card.is-complete{border-color:#d7ec91}
.path-lobby .selected-path-panel{display:block;position:relative;border:3px solid #f5ce60;padding:18px 22px 15px;background:linear-gradient(135deg,#09256f,#071746 72%);box-shadow:0 0 0 2px #775020,inset 0 0 0 4px #1e4488,4px 5px 0 #03112a;isolation:isolate;overflow:hidden}
.path-lobby .selected-path-panel:before{content:"";position:absolute;inset:7px;border:1px solid #5476ac;pointer-events:none;z-index:-1}
.path-lobby .selected-path-panel h4{position:relative;z-index:1;margin:0 0 10px;font:clamp(14px,1.35vw,21px)/1.6 var(--retro-font);letter-spacing:1px;text-transform:uppercase;color:#fff4dc}
.path-lobby .selected-name{position:relative;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;margin:0 0 13px}
.path-lobby .selected-name h3{font:900 clamp(35px,4.1vw,68px)/1.08 var(--retro-font);letter-spacing:1px;color:#ffdb67;text-shadow:2px 2px #a26510,4px 4px #030e37}
.path-lobby .selected-name>span{display:none}
.path-lobby .lobby-stage-art{display:block;position:relative;z-index:1;width:100%;height:auto;aspect-ratio:16/9;object-fit:contain;image-rendering:pixelated;min-height:0;margin:0 0 20px;border:3px solid var(--retro-gold);box-shadow:0 0 0 2px #78551f,inset 0 0 0 2px #071534;background-color:#113f44}
.path-lobby .selected-path-description,.path-lobby .stage-access-note{display:none}
.path-lobby .stage-picker{position:relative;z-index:2;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0 0 13px}
.path-lobby .stage-picker button,.path-lobby .stage-picker button:last-child{position:relative;grid-column:auto;grid-template-columns:1fr;gap:0;min-width:0;min-height:0;padding:4px;background:#091b47;border:2px solid #be913c;border-radius:0;box-shadow:inset 0 0 0 1px #172e6a;text-align:center;color:#fff0d2}
.stage-thumb-art{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;image-rendering:pixelated;background-color:#19392f}
.path-lobby .stage-picker .stage-index{position:absolute;top:6px;left:6px;z-index:1;min-width:20px;background:#07162bd6;color:#fff1aa;padding:4px;font:8px/1.2 var(--retro-font)}
.path-lobby .stage-picker b{display:block;padding:8px 2px 3px;min-height:33px;font:clamp(11px,1vw,15px)/1.6 var(--retro-font);font-weight:400;text-transform:uppercase;color:inherit}
.path-lobby .stage-picker i{position:absolute;right:5px;top:5px;padding:1px 3px;background:#164334;border:1px solid #b7d98b;color:#e7ffb0;font-size:17px}
.path-lobby .stage-picker button[aria-pressed=true]{background:#1249a9;border-color:#fff3a5;box-shadow:0 0 0 2px #a16f1f,0 0 14px #f5d25560;color:#fffad7}
.path-lobby .stage-picker button:hover:not(:disabled){border-color:#fff1a0;filter:brightness(1.13)}
.path-lobby .stage-picker button:disabled{opacity:.55;filter:grayscale(1);border-color:#6a7789}
.path-lobby .stage-picker button:disabled:after{content:"🔒";position:absolute;right:6px;top:6px;font:16px/1 sans-serif}
.path-lobby .stage-picker button:focus-visible{outline:3px solid #fff7ca;outline-offset:4px}
.path-lobby .stage-tile{margin:0 0 12px;border:0;border-top:1px solid #5971a1;background:transparent;padding:10px 0 0;gap:10px}
.path-lobby .stage-thumb{display:grid;place-items:center;width:30px;height:30px;flex:none;background:#153f83!important;border:1px solid #a78944!important;font:11px/1 var(--retro-font);color:#ffdd7b}
.path-lobby .stage-tile small{margin:0;font:12px/1.7 var(--retro-font);letter-spacing:0;color:#a8c5e8}
.path-lobby .stage-tile b{display:none}
.path-lobby .stage-clear-marker{color:#dbf2a2}
.path-lobby .intro-actions{position:relative;z-index:2;gap:7px;margin:0}
.path-lobby .intro-actions .button{position:relative;justify-content:center;gap:16px;min-height:60px;padding:12px 18px;border:3px solid #f8d876;border-radius:0;background:linear-gradient(#16469b 0 12%,#092b79 12% 83%,#071a4e 83%);box-shadow:0 0 0 2px #866127,inset 0 0 0 3px #2e5baf,0 4px #031331;color:#ffdc6b;font:clamp(15px,1.8vw,28px)/1.4 var(--retro-font);font-weight:400;text-transform:uppercase;letter-spacing:1px;text-shadow:2px 2px #6a3f17;transform:none}
.path-lobby .intro-actions .button:before,.path-lobby .intro-actions .button:after{content:"";position:absolute;width:9px;height:9px;border:2px solid #f4cd62;transform:rotate(45deg);top:calc(50% - 6px)}
.path-lobby .intro-actions .button:before{left:15px}.path-lobby .intro-actions .button:after{right:15px}
.path-lobby .intro-actions .button>span{display:none}
.path-lobby .intro-actions .button:hover{background:linear-gradient(#2a62bd,#123f98);color:#fff1ab;box-shadow:0 0 0 2px #e6b740,inset 0 0 0 3px #527ddd,0 0 18px #f9d36a66}
.path-lobby .intro-actions .button:focus-visible{outline:3px solid #fff1ad;outline-offset:5px}
.path-lobby .intro-actions .text-button{color:#d6e4ef;min-height:33px;margin-top:5px;font:9px/1.5 var(--retro-font);letter-spacing:0}
.path-lobby .intro-footnote{font:8px/1.7 var(--retro-font);letter-spacing:0;color:#a3bad3;margin:12px 0 0}
.lobby-session-actions{display:grid;grid-template-columns:1fr;gap:6px;width:47%;max-width:255px;flex:none}
.lobby-session-actions button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:49px;padding:7px 5px;border:1px solid #6b8fbd;background:#102958;color:#d5e6ff;font:14px/1.5 var(--retro-font);text-align:center}
.path-lobby .lobby-session-actions button>span{display:block;font:inherit;letter-spacing:0;color:inherit}
.lobby-session-actions small{font:12px/1.25 ui-sans-serif,system-ui,sans-serif;color:inherit}
.lobby-session-actions .lobby-reset-button{border-color:#b27862;color:#ffd2a8;background:#392635}
.lobby-session-actions button:hover{filter:brightness(1.2)}
.lobby-session-actions button:focus-visible{outline:3px solid #fff1ad;outline-offset:3px}
.path-lobby .lobby-bottom{display:grid;grid-template-columns:1fr auto;gap:10px 20px;padding:12px 17px;margin:24px 0 0;border:2px solid #e3bd5f;background:#071b48ed;box-shadow:0 0 0 2px #59451f;color:#e6ebed;font:12px/1.7 var(--retro-font);letter-spacing:0}
.path-lobby .retro-navigation{display:flex;align-items:center;gap:10px;max-width:none;font-size:12px}
.path-lobby .lobby-bottom kbd{display:inline-grid;place-items:center;min-width:26px;height:26px;margin:0;border:1px solid #6b8bbe;background:#112e6b;border-radius:2px;color:#ffeb9b;font:10px/1 var(--retro-font)}
.campaign-count{display:flex;align-items:center;gap:12px;font:11px/1.6 var(--retro-font);color:#9bb6d5}
.campaign-count b{font:10px/1.6 var(--retro-font);color:#ffde7c;white-space:nowrap}
.path-lobby .lobby-settings{grid-column:1/-1;display:flex;align-items:center;justify-content:center;gap:26px;flex-wrap:wrap;border-top:1px solid #42587f;padding-top:5px}
.path-lobby .lobby-settings button{min-height:32px;padding:3px;font:11px/1.7 var(--retro-font);color:#c5d8ec;text-transform:uppercase}
.path-lobby .lobby-settings button:hover{color:#ffe28c}
body:not(.selecting-path){background:radial-gradient(ellipse at top,#112843,#061725 75%)}
body:not(.selecting-path) .masthead{height:108px}
body:not(.selecting-path) .masthead .brand-art{width:260px}
body:not(.selecting-path) .masthead .top-tools{gap:8px}
body:not(.selecting-path) .retro-controls-link{display:none}
body:not(.selecting-path) .retro-nav-button{padding:8px;min-height:40px;font-size:10px}
body:not(.selecting-path) .retro-gear{width:42px}
.modal{background:linear-gradient(135deg,#102b5b,#091a39);border:2px solid #c6a259;box-shadow:0 0 0 3px #111e3c,0 18px 65px #0009;color:#e3dfcc}
.modal h2{font:20px/1.5 var(--retro-font);letter-spacing:0;color:#ffe2a0}
.modal .eyebrow{color:#b8c8e2}
.modal .settings-button,.modal select{background-color:#152e51;border-color:#6983a0;color:#eee5cd}
.modal .button.gold{background:#ddb963;color:#101e37;border-color:#ffe2a0}
.modal .modal-close{color:#e5d1a0}
.modal p{color:#bac9d2}
.pad-menu-hint{color:#d8c48f!important}
@media(min-width:1600px){.path-lobby .path-grid{padding-top:30px}.path-lobby .selected-path-panel{padding:22px 28px 19px}.path-lobby .lobby-stage-art{margin-bottom:25px}.path-lobby .stage-picker b{min-height:39px;font-size:10px}}
@media(max-width:1200px){body.selecting-path .app{width:calc(100% - 48px)}.path-lobby .path-selection-layout{gap:18px;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr)}.path-lobby .path-grid{gap:11px 9px}.retro-nav-button{padding:10px 12px;font-size:13px}.path-lobby .selected-path-panel{padding:15px 16px}.path-lobby .selected-name h3{font-size:44px}.path-lobby .selected-path-panel h4{font-size:12px;letter-spacing:.5px}.path-lobby .path-card strong{font-size:13px;padding-block:9px}.path-lobby .intro-actions .button{font-size:21px;min-height:55px}.path-lobby .stage-picker{gap:7px}.path-lobby .stage-picker b{font-size:11px;min-height:36px}.path-lobby .lobby-bottom{padding:10px 12px;gap:9px}.path-lobby .retro-navigation{font-size:11px;gap:7px}.campaign-count{font-size:9px;gap:8px}}
@media(max-width:960px) and (min-width:761px){body.selecting-path .app{width:calc(100% - 38px)}.masthead .brand-art{width:310px}.retro-nav-button{font-size:11px;padding:8px 9px;gap:6px}.retro-nav-button svg{width:22px;height:22px}.masthead .retro-gear{width:44px}.path-lobby .path-card{padding:3px 3px 0}.path-lobby .path-card strong{font-size:10px}.path-lobby .selected-name h3{font-size:36px}.path-lobby .selected-path-panel h4{font-size:10px}.path-lobby .stage-picker b{font-size:9px}.path-lobby .selected-path-panel{padding:14px}.path-lobby .intro-actions .button{font-size:18px}.path-lobby .intro-footnote{font-size:6px}.campaign-count{font-size:6px}.path-lobby .retro-navigation{font-size:7px}}
@media(max-width:760px){
 body.selecting-path .app{width:calc(100% - 28px);padding-bottom:18px}
 body.selecting-path .masthead{height:auto;min-height:0;padding:12px 0 18px;flex-direction:column;gap:12px}
 .masthead .brand-art{width:min(410px,83vw)}
 body.selecting-path .top-tools{width:100%;justify-content:center;padding:3px}
 .retro-nav-button{flex:1;min-height:45px;padding:9px 10px;font-size:14px;gap:8px}
 .retro-nav-button svg{width:23px;height:23px}
 .masthead .retro-gear{min-height:45px;width:52px}
 .path-lobby .path-selection-layout{grid-template-columns:minmax(0,1fr);gap:22px}
 .path-lobby .path-selection-layout>.selected-path-panel{grid-row:1;grid-template-columns:none;padding:16px 18px 13px;border:3px solid #f5ce60}
 .path-lobby .path-selection-layout>.path-grid{grid-row:2;grid-template-columns:repeat(4,minmax(0,1fr));padding:0 4px;gap:10px 8px}
 .path-lobby .selected-path-panel h4{font-size:16px;text-align:left;letter-spacing:.3px;margin-bottom:9px}
 .path-lobby .selected-name{margin:0 0 13px}
 .path-lobby .selected-name h3{font-size:44px}
 .path-lobby .lobby-stage-art{width:100%;margin-bottom:17px}
 .path-lobby .stage-picker{grid-column:auto;margin:0 0 12px;gap:8px}
 .path-lobby .stage-picker button,.path-lobby .stage-picker button:last-child{grid-column:auto;min-height:0;padding:4px;grid-template-columns:1fr}
 .path-lobby .stage-picker b{font-size:11px;min-height:36px;padding-top:8px}
 .path-lobby .stage-tile{grid-column:auto}
 .path-lobby .stage-tile small{font-size:11px}
 .path-lobby .selected-path-panel .intro-actions,.path-lobby .selected-path-panel .intro-footnote{grid-column:auto}
 .path-lobby .intro-actions .button{min-height:57px;font-size:23px;padding:10px 18px}
 .path-lobby .intro-actions .text-button{font-size:8px;min-height:35px}
 .path-lobby .intro-footnote{font-size:7px;margin-top:10px}
 .path-lobby .path-card strong{font-size:clamp(9px,2.8vw,14px);padding-block:9px;min-height:31px}
 .path-lobby .path-card{padding:4px 4px 0}
 .path-lobby .path-card.is-selected:before{left:-14px;width:16px;height:20px}
 .path-lobby .path-card.has-progress .path-caption{font-size:6px}
 .path-lobby .path-progress{right:5px;top:5px;width:21px;height:21px;font-size:15px}
 .path-lobby .lobby-bottom{grid-template-columns:1fr;margin-top:21px;gap:9px;padding:12px}
 .path-lobby .retro-navigation{justify-content:center;max-width:none;font-size:10px;gap:7px}
 .campaign-count{justify-content:center;font-size:10px;gap:12px}
 .path-lobby .lobby-settings{display:grid;grid-template-columns:1fr 1fr;gap:2px 12px;justify-items:center;padding-top:7px}
 .path-lobby .lobby-settings button{font-size:11px;min-height:40px}
 body:not(.selecting-path) .masthead{height:87px}
 body:not(.selecting-path) .masthead .brand-art{width:190px}
 body:not(.selecting-path) .masthead .retro-nav-button>span{display:none}
 body:not(.selecting-path) .masthead .retro-nav-button{flex:none;padding:6px}
 body:not(.selecting-path) .masthead .top-tools{gap:2px}
 body:not(.selecting-path) .masthead .retro-gear{min-height:36px;width:33px}
 .modal h2{font-size:18px}
}
@media(max-width:390px){body.selecting-path .app{width:calc(100% - 22px)}.retro-nav-button{font-size:12px;gap:6px}.path-lobby .selected-path-panel{padding-inline:13px!important}.path-lobby .selected-name h3{font-size:38px}.path-lobby .selected-path-panel h4{font-size:14px}.path-lobby .stage-picker b{font-size:10px}.path-lobby .path-card{padding:3px 3px 0}.path-lobby .path-card strong{font-size:10px;min-height:28px}.path-lobby .path-grid{gap:9px 7px}.path-lobby .intro-footnote{font-size:6px}.path-lobby .retro-navigation{font-size:9px;gap:5px}.path-lobby .lobby-bottom kbd{font-size:8px;min-width:23px;height:23px}.modal h2{font-size:16px}}
@media(prefers-reduced-motion:reduce){.path-lobby .path-card{transition:none}}
/* Keep phase names concise in the cards and the full name in the live selection. */
.path-lobby .stage-picker b{display:flex;align-items:center;justify-content:center;min-height:34px;font-size:14px}
.path-lobby .stage-tile>div{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.path-lobby .stage-tile b{display:block;font:12px/1.5 ui-sans-serif,system-ui,sans-serif;color:#e5d8ad}
.path-lobby .intro-footnote{font:10px/1.6 ui-monospace,monospace}
@media(max-width:760px){.path-lobby .stage-picker b{font-size:12px;min-height:30px}.path-lobby .stage-tile b{font-size:11px}.path-lobby .intro-footnote{font-size:9px}}

/* Manual saves share the retro menu controls and focus behavior. */
.path-lobby .intro-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.path-lobby .intro-actions .lobby-load{background:#102c5c;color:#f6da8b;border-color:#bc9953;box-shadow:inset 0 0 0 2px #26497d,3px 4px #03112a}
.path-lobby .intro-actions .lobby-load:disabled{opacity:.45;cursor:not-allowed;filter:grayscale(.6)}
.session-save-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:16px 0}
.session-save-actions .button{min-width:0;width:100%;margin:0;padding:13px 8px}
.slots-modal{width:min(850px,calc(100vw - 32px));max-width:850px;padding:28px 30px}
.slots-modal h2{font-size:clamp(22px,3vw,34px)}
.slots-modal>p{margin:10px 0;line-height:1.5}
.slots-local-note{font-size:12px;color:#a9bec9}
.save-slot-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:20px 0 12px}
.save-slot{display:grid;grid-template-columns:1fr;align-content:center;gap:5px;min-height:116px;text-align:left;padding:12px 14px;background:#0a2036;border:2px solid #55788b;color:#e5ecdf;border-radius:2px;line-height:1.35}
.save-slot>b{color:#f4cd65;font:11px/1.6 var(--retro-font)}
.save-slot>span{font-weight:700;font-size:15px;color:#f7efd4}
.save-slot>time,.save-slot>small{font-size:11px;color:#b0c8cc}
.save-slot:disabled{opacity:.4;cursor:not-allowed}
.save-slot:hover:not(:disabled){background:#183e57;border-color:#edc65f}
.save-slot:focus-visible,.save-slot.pad-focused{outline:3px solid #ffe6a0;outline-offset:2px;border-color:#ffe6a0;background:#183e57}
.slots-message{min-height:24px;color:#f3cf7c;font-size:13px}
@media(max-width:560px){.slots-modal{padding:24px 18px}.save-slot-grid{grid-template-columns:1fr}.save-slot{min-height:106px}.path-lobby .intro-actions .button{font-size:15px;min-width:0}}
