/* Reutiliza as camadas, fontes e placas da ficha e do Catálogo de Ameaças. */
:root { --bg:#0a0d0b; --panel:#171c17; --paper:#e8e6dc; --muted:#b5b9aa; --gold:#d4a6ad; --line:#555e50; }
body,body.catalog-page { background:radial-gradient(ellipse at 50% 0,#19201b,#0a0d0b 70%); color:#e8e6dc; font-family:'Segoe UI',Arial,sans-serif; }
.lab-shell { max-width:1380px; margin:22px auto; padding:0 24px; border:5px solid #090b0b; border-radius:2px; background:#1a1d19; box-shadow:0 0 0 1px #686b66,0 0 0 5px #202423,0 22px 65px #0009; }
.lab-header { position:relative; min-height:112px; margin:0 -24px; padding:20px 24px 12px; border-bottom:4px solid #070909; background:linear-gradient(#111313eb,#151716f2),url('../assets/ui/manga-paper.svg'); }
.lab-header::before { content:''; position:absolute; inset:0 0 auto; height:15px; background:url('../assets/ui/brush-strip.svg') repeat-x center/500px 21px; pointer-events:none; }
.brand img { filter:drop-shadow(0 3px 2px #000); }
.eyebrow { color:#d4a6ad; }
h1,.diagnostic-screen h2,.catalog-intro h2,.puzzle-card-body h3 { font-family:'Arial Narrow','Segoe UI',Arial,sans-serif; font-weight:900; letter-spacing:-.025em; text-transform:uppercase; text-shadow:1px 2px #070909; }
h1 { font-size:clamp(20px,2.2vw,30px); }
.lab-header nav { gap:8px; }
.lab-header nav a,.history-actions button,.direction-button,.session-bar select,.circuit-bar select,dialog button,.puzzle-open { border:1px solid #a7a89d; border-radius:1px; color:#e5e5da; background:url('../assets/ui/panel-corners.svg') center/100% 100% no-repeat,linear-gradient(165deg,#292c29,#101312 75%); box-shadow:2px 2px #050606,inset 0 0 0 3px #111413; font-family:'Segoe UI',Arial,sans-serif; font-weight:700; letter-spacing:.015em; }
.lab-header nav a { padding:7px 11px; font-size:11px; }
.session-bar { padding-bottom:16px; }.session-bar select,.circuit-bar select { padding-right:28px; }
.session-bar select { min-width:200px; }
.connection-label { color:#c1c6ba; }
.circuit-bar { border:1px solid #73766e; border-radius:1px; background:url('../assets/ui/panel-corners.svg') center/100% 100% no-repeat,linear-gradient(155deg,#262a27,#111514); box-shadow:inset 0 0 0 3px #101312,3px 3px #080a09; }
.lab-workspace { padding:18px 14px; border:4px solid #0a0c0b; background:linear-gradient(100deg,#0000000d,#00000040),url('../assets/ui/manga-paper.svg') repeat; box-shadow:0 0 0 1px #64685e,4px 5px #070909; }
.apparatus { isolation:isolate; border:3px solid #090c0a; border-radius:1px; background:linear-gradient(160deg,#252823f5,#171b18fa); box-shadow:0 0 0 1px #676c60,3px 3px #080b09; }
.apparatus::before { content:''; inset:0; width:100%; height:100%; z-index:-1; background:url('../assets/ui/panel-corners.svg') center/100% 100% no-repeat; pointer-events:none; }
.apparatus::after { content:''; inset:0 0 auto auto; width:230px; height:230px; z-index:-1; opacity:.2; background:url('../assets/ui/ink-splatter.svg') center/contain no-repeat; pointer-events:none; }
.apparatus-heading { margin-bottom:14px; }
.diagnostic-screen { border:1px solid #798276; border-radius:1px; background:linear-gradient(155deg,#090f0d,#111c19); box-shadow:inset 0 0 0 3px #080d09,inset 0 0 30px #0008; }
.diagnostic-screen h2 { color:#edede3; }
.screen-kicker { color:#c4c9bd; }
.target-readout b { border-color:#626c5e; border-radius:1px; background:#151c17; }
.target-readout strong { font-family:'Segoe UI',Arial,sans-serif; font-weight:900; }
.tank-label b { display:grid; place-items:center; width:34px; height:34px; color:#e7e7dc; background:url('../assets/ui/attribute-badge.svg') center/contain no-repeat; font-weight:900; }
.tank-label span { color:#c3c8ba; }
.tank-glass { border-color:#878978; background:linear-gradient(90deg,#9cdae80c,#07120cb8 20%,#07120cad 70%,#9cdae829); }
.tank-glass::before,.tank-glass::after { border-color:#c8c6b5; background:linear-gradient(#c6c6b7,#696e61 50%,#c3c4b3 55%,#464d42); }
.pipe-metal { stroke:#949581; }
.tank-readout { border:3px solid #555e50; border-radius:1px; background:linear-gradient(#e5e4d8f5,#cfcec2f5),url('../assets/ui/brush-strip.svg') center/cover; }
.tank-readout strong,.tank-readout span { font-family:'Segoe UI',Arial,sans-serif; font-weight:900; font-variant-numeric:tabular-nums; }
.tank.at-target .tank-readout { border-color:#728568; background:#d9e3cf; }
.machine-rule { border:0; border-radius:0; color:#121611; background:linear-gradient(#e5e4d8f5,#cfcec2f5),url('../assets/ui/brush-strip.svg') center/cover; clip-path:polygon(0 0,calc(100% - 12px) 0,100% 100%,0 100%); font-weight:750; }
.machine-rule>span { color:#6b2632; }
.valve-control { border:2px solid #090c0a; border-radius:1px; background:url('../assets/ui/panel-corners.svg') center/100% 100% no-repeat,linear-gradient(160deg,#252823f5,#171b18fa); box-shadow:0 0 0 1px #626959,2px 2px #080b09; }
.valve-title { color:#e5e4d8; font-family:'Arial Narrow','Segoe UI',Arial,sans-serif; font-weight:900; font-size:11px; }
.valve-directions { border:0; border-radius:0; padding:2px; gap:4px; }.direction-button+button { border:1px solid #a7a89d; }
.direction-button { box-shadow:1px 1px #050606,inset 0 0 0 2px #111413; }
.direction-button[aria-pressed=true] { color:#f1eee5; border-color:#be6972; background:url('../assets/ui/panel-corners.svg') center/100% 100% no-repeat,linear-gradient(155deg,#40272b,#161716 78%); box-shadow:1px 1px #050606,inset 0 0 0 2px #111413,inset 0 -3px #8f2b3d; }
.wheel-button svg circle:first-child { stroke:#c3c3b2; fill:#141a15; }.wheel-button svg circle:nth-child(2) { stroke:#5d6556; }.wheel-button svg line { stroke:#b2b6a5; }.wheel-button svg circle:nth-last-child(2) { fill:#b8bca8; stroke:#555e4d; }.wheel-button svg circle:last-child { fill:#515c48; }
.wheel-button span { color:#d8d9ca; }.wheel-button:not(:disabled):hover svg { filter:drop-shadow(0 0 8px #d7d6ba50); }
.briefing-card,.history-card,.diagram-card { border:3px solid #090c0a; border-radius:1px; background:url('../assets/ui/panel-corners.svg') center/100% 100% no-repeat,linear-gradient(160deg,#252823f5,#171b18fa); box-shadow:0 0 0 1px #676c60,3px 3px #080b09; }
.briefing-card h2,.history-heading h2 { color:#121611; padding:6px 15px 7px 9px; background:linear-gradient(#e5e4d8f5,#cfcec2f5),url('../assets/ui/brush-strip.svg') center/cover; clip-path:polygon(0 0,calc(100% - 12px) 0,100% 100%,0 100%); font-family:'Arial Narrow','Segoe UI',Arial,sans-serif; font-weight:900; text-transform:uppercase; font-size:18px; letter-spacing:-.015em; }
.history-heading h2 { font-size:13px; }.history-heading>span { border:0; border-radius:0; display:grid; place-items:center; width:36px; height:36px; flex-shrink:0; background:url('../assets/ui/attribute-badge.svg') center/contain no-repeat; color:#edede3; font-family:'Segoe UI',Arial,sans-serif; font-weight:900; }
.briefing-card>p:not(.eyebrow):not(.capacity-note),.briefing-card ol,.history-summary,.permissions-note { color:#c0c5b6; }
.briefing-card li::marker { color:#d4a6ad; }.capacity-note,.initial-state,.history-list li { border-color:#59624e; }
.step-title { color:#e3e5d8; }.step-number,.step-state { color:#c1c8b5; font-family:'Segoe UI',Arial,sans-serif; font-variant-numeric:tabular-nums; }.step-author { color:#aebda6; }.retomar-passo { color:#ddb2b8; }
.history-actions button:last-child { border-color:#919584; color:#d0d3c5; background:url('../assets/ui/panel-corners.svg') center/100% 100% no-repeat,linear-gradient(165deg,#292c29,#101312 75%); }
.result-banner { border:2px solid #79966b; border-radius:1px; box-shadow:inset 0 0 0 2px #111b11; }
.lab-footer { position:relative; padding-top:26px; color:#a7b39f; }.lab-footer>span:first-child { color:#d2d2c4; }.lab-footer::before { content:''; position:absolute; inset:8px 0 auto;height:8px;background:url('../assets/ui/brush-strip.svg') repeat-x center/500px 13px;opacity:.65;pointer-events:none; }
dialog { border:3px solid #090c0a; border-radius:1px; background:url('../assets/ui/panel-corners.svg') center/100% 100% no-repeat,linear-gradient(155deg,#262a27,#111514); box-shadow:0 0 0 1px #939586,0 20px 90px #000b; }dialog h2 { font-family:'Arial Narrow','Segoe UI',Arial,sans-serif;font-weight:900;text-transform:uppercase; }
/* O catálogo usa os mesmos recortes de papel e a moldura dos retratos. */
.catalog-intro { position:relative; isolation:isolate; margin:20px 0 0; padding:35px 24px; border:3px solid #090c0a; background:linear-gradient(100deg,#0000000d,#00000040),url('../assets/ui/manga-paper.svg'); box-shadow:0 0 0 1px #64685e,3px 3px #070909; }
.catalog-intro::after { content:'';position:absolute;z-index:-1;right:0;top:0;width:240px;height:240px;background:url('../assets/ui/ink-splatter.svg') center/contain no-repeat;opacity:.5;pointer-events:none; }
.catalog-intro h2 { font-size:clamp(32px,4vw,52px); }.catalog-intro>div>p:last-child { color:#d0d1c6; }.catalog-index { border-color:#7b806f; }.catalog-index>strong { font-family:'Segoe UI',Arial,sans-serif;font-weight:900; }.catalog-index>span,.catalog-index b { color:#dfb3ba; }
.catalog-toolbar h2 { display:inline-block;padding:6px 20px 7px 10px;color:#121611;background:#deded0;clip-path:polygon(0 0,calc(100% - 12px) 0,100% 100%,0 100%);font-family:'Arial Narrow','Segoe UI',Arial,sans-serif;font-weight:900;text-transform:uppercase;font-size:18px; }
.catalog-search input { border:1px solid #6d7463;border-radius:1px;background:#111611;color:#eeecdf; }.catalog-search { color:#c1c6b7; }
.puzzle-card { border:3px solid #090c0a;border-radius:1px;background:linear-gradient(160deg,#252823f5,#171b18fa);box-shadow:0 0 0 1px #676c60,3px 3px #080b09; }
.puzzle-cover { border-color:#626959;background:linear-gradient(100deg,#0000000d,#00000040),url('../assets/ui/manga-paper.svg');isolation:isolate; }
.puzzle-cover::after { content:'';position:absolute;inset:9px;z-index:1;pointer-events:none;background:url('../assets/ui/portrait-frame.svg') center/100% 100% no-repeat;opacity:.85; }
.puzzle-cover img { padding:36px; }.cover-label { left:33px;bottom:25px;color:#e2d4d4;z-index:2; }.puzzle-card-body { background:url('../assets/ui/panel-corners.svg') center/100% 100% no-repeat; }.puzzle-card-body h3 { color:#edede3; }.puzzle-description { color:#d0d1c6; }.puzzle-features li { border:1px solid #747d65;border-radius:1px;background:#151c17;color:#e2e3d4; }.puzzle-variants { color:#c4cbb7; }
.puzzle-open { color:#f1eee5;border-color:#be6972;background:url('../assets/ui/panel-corners.svg') center/100% 100% no-repeat,linear-gradient(155deg,#40272b,#161716 78%);box-shadow:2px 2px #050606,inset 0 0 0 3px #111413,inset 0 -5px #8f2b3d;text-transform:uppercase; }.puzzle-open:hover { color:#fffdf2;background:url('../assets/ui/panel-corners.svg') center/100% 100% no-repeat,linear-gradient(155deg,#583239,#191b18 78%);border-color:#e0dfd1; }
.tank-label b,.history-heading>span { color:#192019; }
.catalog-intro>div { min-width:0; }
.puzzle-card-body { min-width:0; }.puzzle-card-body>* { max-width:100%; }
@media(max-width:520px){body.catalog-page .catalog-intro h2{font-size:clamp(22px,6.4vw,32px);overflow-wrap:anywhere}body.catalog-page .puzzle-card{grid-template-columns:minmax(0,1fr)}body.catalog-page .puzzle-card-body h3{font-size:clamp(23px,7.2vw,29px);overflow-wrap:anywhere}}
@media(max-width:1050px){.lab-header nav a:first-child{display:inline-flex}.lab-header nav{flex-wrap:wrap}.lab-shell{margin:16px 12px;padding:0 18px}.lab-header{margin:0 -18px;padding-left:18px;padding-right:18px}.lab-workspace{padding:14px 10px}}
@media(max-width:820px){.lab-header{min-height:110px}.lab-header nav a{font-size:10px;padding:7px 8px}.briefing-card h2{font-size:18px}.catalog-intro{padding:28px 20px}}
@media(max-width:520px){.lab-shell{margin:10px 6px;padding:0 10px}.lab-header{margin:0 -10px;padding:20px 10px 12px}.lab-header nav{justify-content:space-between;gap:8px}.header-title h1{font-size:20px}.lab-workspace{padding:10px 5px;gap:16px}.apparatus{padding:20px 10px 14px}.session-bar label{flex:0 0 58px}.session-bar select{flex:1 1 calc(100% - 75px);min-width:0;max-width:none;font-size:12px}.connection-label{flex:1 1 130px;min-width:0;font-size:10px}.circuit-bar{padding:10px;gap:8px}.circuit-bar select{font-size:11px;padding:8px;max-width:calc(100% - 45px)}.circuit-bar>span{font-size:10px}.briefing-card h2 span::before{content:' '}.briefing-card h2{font-size:18px}.tank-array{gap:16px;padding-left:2px;padding-right:2px}.tank-label b{width:29px;height:29px}.tank-readout{min-width:64px;padding:3px}.valve-title{font-size:9px}.wheel-button svg{width:61px;height:61px}.direction-button{font-size:9px}.catalog-intro{margin-top:14px;padding:24px 16px}.catalog-intro h2{font-size:36px}.catalog-index{padding-top:16px}.puzzle-card-body h3{font-size:29px}.puzzle-cover img{padding:30px}.puzzle-card-body{padding:22px 17px}.catalog-toolbar h2{font-size:17px}.history-heading h2{font-size:14px}.lab-footer{font-size:9px}}
