/* 0.8.5.7 — entrada da Triagem e navegação compartilhada. */
#screen-menu{background:radial-gradient(ellipse at 86% 0%,#25433e 0,#1a2c30 38%,#14212a 76%);padding:clamp(12px,3vw,24px);gap:12px;text-align:left;justify-content:flex-start}
body[data-screen=menu] #app>main{border:1px solid #425a59;border-radius:12px;box-shadow:none}
.tri-top{display:flex;align-items:center;justify-content:space-between;gap:8px;flex:none}.tri-top>span{font:700 10px/1.2 system-ui,sans-serif;letter-spacing:.08em;color:#a4beb8;text-align:right}.tri-back{padding:8px 11px;min-height:40px;border:1px solid #5a7471;border-radius:7px;color:#e6f0ed;background:#263b3e;font:650 14px system-ui,sans-serif}
.tri-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(94px,36%);align-items:center;gap:8px;padding:8px 0 12px;border-bottom:1px solid #536b634f;flex:none;min-height:100px}.tri-hero h2{font:normal clamp(28px,6vw,44px)/1.04 var(--pixel-font);color:#e3e8b4;text-shadow:2px 2px #0f2428;letter-spacing:0;text-transform:none;margin:0}.tri-hero p{font:500 13px/1.3 system-ui;color:#adc5c2;margin:8px 0 0}.tri-hero canvas{width:100%;height:auto;image-rendering:pixelated;mask-image:linear-gradient(90deg,transparent,#000 15%);border-radius:8px}
#screen-menu .mode-grid{flex:none;gap:8px;align-content:start;margin:0}#screen-menu .mode-select-btn{min-height:76px;padding:10px;grid-template-columns:40px minmax(0,1fr) 15px;gap:4px 10px;background:#263c40;border:1px solid #5d7471;border-radius:9px;box-shadow:none;transition:background .14s,border-color .14s}#screen-menu .mode-select-btn:not(:disabled):hover{background:#35514c;border-color:#8aaea0}#screen-menu .mode-symbol{height:40px;width:40px;background:#1a2c30;border:0;border-radius:6px;box-shadow:none}#screen-menu .mode-symbol canvas{width:32px;height:32px;image-rendering:pixelated}#screen-menu .mode-copy strong{font:700 clamp(15px,3.5vw,19px)/1.16 system-ui;color:#eef4ef;text-transform:none;text-shadow:none;letter-spacing:0}#screen-menu .mode-copy small{font:500 13px/1.25 system-ui;color:#b8c9c8}#screen-menu .mode-arrow{font:600 18px system-ui;color:#a3c7b2}#screen-menu .locked-mode{background:#202d34;border-color:#415258}#screen-menu .locked-mode .mode-copy strong{color:#aebcbd}#screen-menu .locked-mode .mode-symbol{opacity:.7}#screen-menu .mode-lock{font:600 11px/1.2 system-ui;color:#d8c398;grid-column:2/-1}#screen-menu .mode-lock:empty{display:none}
.tri-tools{margin-top:auto;border-top:1px solid #536b634f;padding-top:8px;flex:none}.tri-tools summary{cursor:pointer;color:#d3e0dc;font:650 14px/1.4 system-ui;padding:9px 0;min-height:40px}.tri-tools .menu-nav{margin-top:6px;gap:6px}.tri-tools .menu-nav button{min-height:42px;border:1px solid #4f666a;border-radius:7px;background:#26373e;box-shadow:none;font:600 13px/1.15 system-ui;color:#e1ebe9}.tri-tools #btn-reset-menu{background:#482e31!important;color:#f5caca!important}.next-stage{display:block;min-height:46px;padding:11px 15px;border:1px solid #8bbca6;border-radius:8px;color:#f5fff7;background:#2b6551;box-shadow:none;font:750 15px/1.25 system-ui,sans-serif;width:100%;cursor:pointer}.next-stage:active{background:#397d63}#tri-advance{max-width:420px}
.screen-enter{animation:mt-screen-in .20s ease-out both}@keyframes mt-screen-in{from{opacity:.55}to{opacity:1}}body[data-motion=reduce] .screen-enter{animation:none!important}@media(prefers-reduced-motion:reduce){.screen-enter{animation:none!important}}
@media(min-width:600px){.tri-hero{min-height:140px;grid-template-columns:minmax(0,1fr) minmax(130px,28%)}#screen-menu .mode-select-btn{min-height:95px}.tri-hero p{font-size:15px}}@media(max-height:650px){#screen-menu{gap:8px;padding:10px}.tri-hero{min-height:74px;padding:2px 0 7px}.tri-hero h2{font-size:27px}.tri-hero canvas{max-height:80px;object-fit:contain}.tri-hero p{margin-top:4px}#screen-menu .mode-select-btn{min-height:62px;padding:6px}.tri-tools{padding-top:4px}}@media(max-height:540px) and (orientation:landscape){.tri-hero{min-height:60px;grid-template-columns:1fr 100px}.tri-hero h2 br{display:none}.tri-hero canvas{max-height:60px}.tri-top .tri-back{min-height:36px}}
body[data-screen=menu] #menu-header{background:#1a2b31;border:1px solid #425a59;border-radius:9px;box-shadow:none;padding:8px 10px;gap:8px}body[data-screen=menu] #menu-header .brand-icon,body[data-screen=menu] #menu-header .brand small{display:none}body[data-screen=menu] #menu-header .brand strong{font-size:clamp(14px,4vw,21px);white-space:nowrap}body[data-screen=menu] #menu-header .header-actions button{background:#283c43;border:1px solid #536a6c;border-radius:6px;box-shadow:none;min-width:39px;height:40px;font-size:16px}body[data-screen=menu] #menu-header .header-actions button:nth-child(2){color:#f0d99a;font-size:13px;padding-inline:7px}
#screen-menu .tri-tools{margin-top:8px}#screen-menu .mode-grid{flex:1;align-content:center}#screen-menu .tri-hero h2{text-wrap:balance}#screen-menu .tri-hero h2 br{display:none}
body:not([data-motion=reduce]) :is(#modal-guide,#modal-trophies,#modal-credits):not(.hidden),body:not([data-motion=reduce]) :is(#settings-overlay,#feedback-overlay):not([hidden]){animation:mt-screen-in .20s ease-out both}
@media(prefers-reduced-motion:reduce){body :is(#modal-guide,#modal-trophies,#modal-credits,#settings-overlay,#feedback-overlay){animation:none!important}}
#screen-menu .mode-grid{flex:none;align-content:start}#screen-menu .tri-tools{margin-top:8px}@media(min-height:700px) and (max-width:599px){#screen-menu .mode-select-btn{min-height:88px}#screen-menu .mode-grid{gap:10px}}@media(min-width:600px) and (min-height:600px){#screen-menu .mode-select-btn{min-height:110px}}
