
*{box-sizing:border-box}
:root{
 --bg:#050607;--panel:#0c0f12;--panel2:#11161b;--line:#29313a;--text:#e8edf2;--muted:#83909d;
 --red:#a61d2d;--red2:#5f0c16;--cyan:#739caf;--green:#4c9b70;--amber:#bd8b42
}
.theme-preview-stage{position:relative;overflow:hidden;background:#05080a}
.theme-preview-stage>img{display:block;width:100%;height:auto;min-height:360px;object-fit:cover}
.theme-preview-overlay{position:absolute;inset:0;display:grid;grid-template-columns:minmax(220px,31%) 1fr;gap:18px;padding:clamp(16px,3vw,34px);background:linear-gradient(90deg,rgba(2,5,7,.9),rgba(2,5,7,.42) 38%,rgba(2,5,7,.12)),linear-gradient(0deg,rgba(2,5,7,.9),transparent 58%);color:#edf3f6;text-align:left}
.theme-preview-overlay aside,.theme-preview-overlay article{align-self:end;background:rgba(4,8,11,.84);border:1px solid color-mix(in srgb,var(--preview-accent) 55%,#52606a);box-shadow:0 20px 55px rgba(0,0,0,.48);backdrop-filter:blur(9px);padding:18px}
.theme-preview-overlay aside{max-height:82%;overflow:hidden}
.theme-preview-overlay small,.theme-preview-overlay>article>span{display:block;color:var(--preview-accent);font:800 10px Consolas,monospace;letter-spacing:.12em}
.theme-preview-overlay h4{margin:8px 0 10px;font-size:clamp(18px,2.3vw,30px);line-height:1.05}.theme-preview-overlay p{margin:0;color:#d5dee4;font-size:clamp(11px,1.05vw,14px);line-height:1.55}
.theme-preview-overlay article>small{float:right;max-width:55%;text-align:right}.theme-preview-overlay article>h4{clear:both;padding-top:18px}
.theme-preview-answer{display:grid;grid-template-columns:1fr auto;margin-top:18px;border:1px solid rgba(255,255,255,.26);background:rgba(0,0,0,.62)}.theme-preview-answer i{padding:13px;color:#8997a1;font-style:normal;font-size:12px}.theme-preview-answer b{padding:13px 22px;background:var(--preview-accent);color:#071014;font-size:11px;letter-spacing:.08em}
@media(max-width:760px){.theme-preview-overlay{grid-template-columns:1fr;padding:12px}.theme-preview-overlay aside{display:none}.theme-preview-overlay article{padding:13px}.theme-preview-overlay article>small{display:none}}
html,body{margin:0;background:#050607;color:var(--text);font-family:Arial,Helvetica,sans-serif;min-height:100%}
body{
 background:
 radial-gradient(circle at 15% 0%,rgba(130,20,35,.18),transparent 24%),
 radial-gradient(circle at 85% 10%,rgba(40,75,95,.13),transparent 26%),
 linear-gradient(rgba(255,255,255,.012) 1px,transparent 1px),
 linear-gradient(90deg,rgba(255,255,255,.012) 1px,transparent 1px),
 #050607;
 background-size:auto,auto,34px 34px,34px 34px,auto
}
body[class*="theme-"]::before{content:var(--ambient-symbol,"");position:fixed;right:clamp(12px,6vw,90px);bottom:clamp(30px,7vh,90px);z-index:0;color:var(--theme-accent);font:900 clamp(150px,28vw,430px)/.75 var(--theme-font,Arial);opacity:.035;pointer-events:none;filter:blur(.2px);transform:rotate(-7deg)}
body[class*="theme-"]::after{content:"AMBIENTE " attr(data-mission-theme) " · " var(--ambient-label,"");position:fixed;right:18px;bottom:12px;z-index:0;color:var(--theme-accent);font:800 8px var(--theme-font,monospace);letter-spacing:.16em;opacity:.2;pointer-events:none}
.shell{position:relative;z-index:1}
.shell{max-width:1180px;margin:auto;padding:22px}
.top{
 border:1px solid #323943;background:#090b0e;padding:18px 20px;display:flex;align-items:center;gap:18px;
 border-radius:4px;position:relative;overflow:hidden
}
.top:before{content:"";position:absolute;left:0;top:0;bottom:0;width:5px;background:var(--red)}
.brand{flex:1}
.brand .kicker{font-size:11px;letter-spacing:.28em;color:#aeb7c0;margin-bottom:7px}
.brand h1{font-size:23px;letter-spacing:.12em;margin:0;font-weight:700}
.statuses{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.status{background:#0f1318;border:1px solid #313943;padding:9px 11px;font-size:12px;color:#aeb7c0}
.status strong{color:#fff}
.timer{font-family:Consolas,monospace;font-size:18px!important;color:#fff!important}
.timer.danger{color:#ff7d89!important;animation:pulse 1s infinite}
@keyframes pulse{50%{opacity:.5}}
.scan{height:2px;background:linear-gradient(90deg,transparent,var(--red),transparent);opacity:.75;animation:scan 4s linear infinite}
@keyframes scan{from{transform:translateX(-50%)}to{transform:translateX(50%)}}

.setup{display:grid;grid-template-columns:1.2fr .8fr;gap:18px;margin-top:18px}
.case,.form,.mission-card,.side,.result{background:#0a0d10;border:1px solid #303741;border-radius:4px}
.case{padding:24px;min-height:390px;position:relative;overflow:hidden}
.case:after{content:"CONFIDENCIAL";position:absolute;right:-35px;top:50px;transform:rotate(18deg);border:3px solid rgba(166,29,45,.38);color:rgba(166,29,45,.42);padding:10px 25px;font-weight:800;letter-spacing:.15em;font-size:24px}
.label{font-size:11px;letter-spacing:.22em;color:#a16a72;text-transform:uppercase}
.case h2{font-size:34px;margin:12px 0 14px;letter-spacing:.04em}
.case p{color:#aeb8c2;line-height:1.7;max-width:700px}
.rules{margin-top:25px;border-top:1px solid #242b33;padding-top:18px;display:grid;gap:10px}
.rule{display:flex;gap:10px;color:#87939e;font-size:14px}
.rule b{color:#d8dee4}
.form{padding:22px}
.form h3{margin:0 0 18px;font-size:15px;letter-spacing:.14em}
.field{margin-bottom:13px}
.field label{display:block;color:#87939e;font-size:12px;margin-bottom:6px}
input{width:100%;background:#05080a;color:#fff;border:1px solid #343d47;padding:13px 12px;outline:none;border-radius:3px}
input:focus{border-color:#7b4a50;box-shadow:0 0 0 2px rgba(166,29,45,.12)}
.start{width:100%;margin-top:8px;background:#721522;color:#fff;border:1px solid #a22b3b;padding:14px;font-weight:700;letter-spacing:.11em;cursor:pointer}
.start:hover{background:#861c2b}
.warning{margin-top:14px;font-size:12px;color:#8e9aa5;line-height:1.5}

.mission-layout{display:grid;grid-template-columns:320px 1fr;gap:18px;margin-top:18px}
.side{padding:20px;align-self:start;position:sticky;top:15px}
.side .case-no{font-family:Consolas,monospace;color:#c16b78;font-size:12px;letter-spacing:.16em}
.side h2{font-size:22px;margin:9px 0 12px}
.side p{color:#98a4af;line-height:1.6;font-size:14px}
.objective{margin-top:16px;border-left:3px solid var(--red);padding:10px 12px;background:#101216;font-size:13px;line-height:1.5}
.timeline{margin-top:22px;display:grid;gap:9px}
.step{display:grid;grid-template-columns:29px 1fr;gap:9px;align-items:center;color:#67727e;font-size:12px}
.dot{width:29px;height:29px;display:grid;place-items:center;border:1px solid #333c45;background:#090c0f;font-family:Consolas}
.step.done{color:#83b69a} .step.done .dot{border-color:#416a53;color:#7fc697}
.step.active{color:#f0d9dc} .step.active .dot{border-color:#8c2635;color:#ff94a2;background:#1a0c0f}
.mission-card{padding:25px;min-height:520px}
.challenge-header{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;border-bottom:1px solid #242b32;padding-bottom:14px}
.challenge-header .n{font-family:Consolas,monospace;color:#d36f7c;font-size:12px;letter-spacing:.15em}
.descriptor{font-size:11px;line-height:1.45;color:#65717d;max-width:55%;text-align:right}
.challenge h3{font-size:23px;margin:26px 0 10px}
.question-text{font-size:18px;line-height:1.65;color:#edf1f5;margin:20px 0 24px}
.answer{display:grid;grid-template-columns:1fr 150px;gap:10px}
.verify{border:1px solid #a22b3b;background:#721522;color:white;font-weight:bold;letter-spacing:.08em;cursor:pointer}
.verify:hover{background:#861c2b}
.feedback{min-height:25px;margin-top:12px;font-size:13px}
.feedback.bad{color:#e58a94} .feedback.ok{color:#77b98f}
.storybeat{margin-top:18px;padding:13px 14px;background:#10151a;border-left:3px solid #416a53;color:#9fb4a8;font-family:Consolas,monospace;font-size:12px;line-height:1.5}
.locked{padding:22px;border:1px dashed #2c343d;color:#59636d;margin-top:17px;background:#07090b;display:flex;gap:12px;align-items:center;font-size:12px}
.locked .lock{font-size:18px;color:#59636d}
.result{margin-top:18px;padding:25px;text-align:center}
.result h2{letter-spacing:.12em}
.hidden{display:none!important}
.progress{height:7px;background:#13181d;border:1px solid #252c33;margin-top:14px}
.progress>div{height:100%;background:linear-gradient(90deg,#741523,#9b3341);width:0;transition:.3s}
.report-btn{background:#11171c;border:1px solid #35404a;color:#ced6dd;padding:10px 14px;cursor:pointer;margin:6px}
.reset{background:transparent;border:1px solid #542029;color:#b9838a;padding:10px 14px;cursor:pointer;margin:6px}
.modal{position:fixed;inset:0;background:rgba(0,0,0,.82);display:grid;place-items:center;padding:20px;z-index:99}
.modalbox{width:min(650px,100%);background:#0b0e11;border:1px solid #39424b;padding:22px}
.tablewrap{overflow:auto}.table{width:100%;border-collapse:collapse;font-size:12px}.table th,.table td{padding:8px;border-bottom:1px solid #28313a;text-align:left;vertical-align:top}.table th{color:#d7dfe6} pre{white-space:pre-wrap;color:#bdc8d2;background:#050709;border:1px solid #252d35;padding:14px;max-height:55vh;overflow:auto}
@media(max-width:850px){.setup,.mission-layout{grid-template-columns:1fr}.side{position:static}.statuses{justify-content:flex-start}.top{align-items:flex-start;flex-direction:column}}
@media(max-width:520px){.shell{padding:11px}.case h2{font-size:27px}.answer{grid-template-columns:1fr}.descriptor{max-width:100%;text-align:left}.challenge-header{display:block}}


body.theme-ocean{--red:#0d6688;--red2:#06364c;background:
radial-gradient(circle at 50% -10%,rgba(24,140,185,.24),transparent 33%),
radial-gradient(circle at 85% 65%,rgba(0,80,120,.22),transparent 25%),
linear-gradient(180deg,#02101a,#031b28 55%,#01070b)}
body.theme-space{--red:#5262b1;--red2:#272d68;background:
radial-gradient(circle at 10% 20%,rgba(255,255,255,.11) 0 1px,transparent 2px),
radial-gradient(circle at 80% 35%,rgba(255,255,255,.08) 0 1px,transparent 2px),
linear-gradient(160deg,#03040a,#0b1024)}
body.theme-lab{--red:#26835f;--red2:#104934;background:radial-gradient(circle at 80% 0%,rgba(50,190,135,.12),transparent 28%),linear-gradient(160deg,#05100d,#102119)}
body.theme-ancient{--red:#9b7732;--red2:#513b13;background:radial-gradient(circle at 50% 0%,rgba(210,175,90,.1),transparent 28%),linear-gradient(160deg,#120e07,#2b210f)}
body.theme-forest{--red:#3f744b;--red2:#1e4027;background:radial-gradient(circle at 40% 0%,rgba(80,140,70,.13),transparent 30%),linear-gradient(160deg,#061006,#122316)}
body.theme-cyber{--red:#1d8b63;--red2:#0c4934;background:repeating-linear-gradient(0deg,rgba(40,190,130,.025) 0 1px,transparent 1px 5px),linear-gradient(160deg,#040b08,#0d1b16)}
body.theme-hazard{--red:#a23a2d;--red2:#5a1712;background:repeating-linear-gradient(135deg,rgba(210,155,20,.025) 0 11px,transparent 11px 22px),linear-gradient(160deg,#100807,#26110d)}
body.theme-haunted{--red:#7e2d25;--red2:#42140f;background:radial-gradient(circle at 80% 10%,rgba(255,175,90,.07),transparent 30%),linear-gradient(160deg,#090807,#17100e 60%,#070606)}
body.theme-vault{--red:#8e6b3b;--red2:#4f3a1b;background:radial-gradient(circle at 50% 0%,rgba(190,160,95,.08),transparent 25%),linear-gradient(160deg,#08090a,#171818)}
body.theme-final{--red:#843368;--red2:#481735;background:radial-gradient(circle at 50% 0%,rgba(160,65,130,.13),transparent 30%),linear-gradient(160deg,#07060a,#19101e)}
.theme-decor{height:74px;margin:12px 0 16px;border:1px solid #28333d;background:rgba(0,0,0,.3);display:flex;align-items:center;justify-content:center;font-size:34px;letter-spacing:.25em;overflow:hidden}
.theme-ocean .theme-decor:before{content:"◌   ≋   ◉   ≋   ◌";color:#5caec8}
.theme-space .theme-decor:before{content:"✦   ·   ◉   ·   ✧";color:#929ee5}
.theme-lab .theme-decor:before{content:"⚗   ⌬   ⚠   ⌬   ⚗";color:#73c6a5}
.theme-ancient .theme-decor:before{content:"𓂀   ◇   △   ◇   𓂀";color:#c8a65c}
.theme-forest .theme-decor:before{content:"♣   ▲   ☽   ▲   ♣";color:#7eaa80}
.theme-cyber .theme-decor:before{content:"01   //   ▣   //   10";color:#61c39c;font-family:Consolas,monospace}
.theme-hazard .theme-decor:before{content:"⚠   ▧   ☢   ▧   ⚠";color:#cf725b}
.theme-haunted .theme-decor:before{content:"☽   ╳   ◇   ╳   ☽";color:#aa675d}
.theme-vault .theme-decor:before{content:"◉   ⛓   ◈   ⛓   ◉";color:#b79b67}
.theme-final .theme-decor:before{content:"35   ◈   35   ◈   35";color:#be77a5;font-family:Consolas,monospace}


body.theme-flight{--red:#4d7899;--red2:#254660;background:radial-gradient(circle at 50% 0%,rgba(110,180,220,.14),transparent 30%),linear-gradient(180deg,#07111a,#102332 60%,#05090d)}
body.theme-metro{--red:#a27b37;--red2:#5b4116;background:repeating-linear-gradient(90deg,rgba(240,190,80,.025) 0 2px,transparent 2px 24px),linear-gradient(180deg,#0b0d0e,#171b1d)}
body.theme-hospital{--red:#477b73;--red2:#204841;background:radial-gradient(circle at 20% 0%,rgba(120,220,205,.08),transparent 25%),linear-gradient(160deg,#081110,#13201d)}
body.theme-museum{--red:#8f743e;--red2:#4b3a18;background:linear-gradient(160deg,#0d0c09,#211c12)}
body.theme-ai{--red:#486c8f;--red2:#203c59;background:repeating-linear-gradient(90deg,rgba(100,160,210,.02) 0 1px,transparent 1px 28px),linear-gradient(160deg,#080b10,#111a25)}
body.theme-biohazard{--red:#72833b;--red2:#3b4619;background:repeating-linear-gradient(135deg,rgba(185,200,70,.025) 0 11px,transparent 11px 22px),linear-gradient(160deg,#0a0d07,#1a210e)}
body.theme-hotel{--red:#8b4c38;--red2:#4d2519;background:radial-gradient(circle at 70% 0%,rgba(190,135,90,.06),transparent 28%),linear-gradient(160deg,#0d0907,#20140f)}
body.theme-castle{--red:#66527d;--red2:#322540;background:linear-gradient(160deg,#08080d,#191621)}
body.theme-pirate{--red:#7b5b2d;--red2:#3f2e13;background:radial-gradient(circle at 80% 0%,rgba(195,150,80,.07),transparent 28%),linear-gradient(160deg,#07100c,#18231b)}
body.theme-mine{--red:#796047;--red2:#3f3021;background:linear-gradient(160deg,#0a0806,#1b1510)}
body.theme-catacomb{--red:#77644f;--red2:#403326;background:linear-gradient(160deg,#090807,#1a1612)}
body.theme-signal{--red:#4c8190;--red2:#214956;background:repeating-linear-gradient(0deg,rgba(110,180,195,.03) 0 1px,transparent 1px 5px),linear-gradient(160deg,#061015,#0d1a20)}
body.theme-alien{--red:#3e7c71;--red2:#1e4941;background:radial-gradient(circle at 70% 10%,rgba(70,190,160,.09),transparent 28%),linear-gradient(160deg,#040909,#0c1a17)}
body.theme-time{--red:#6d4f8c;--red2:#352445;background:radial-gradient(circle at 50% 10%,rgba(120,80,170,.1),transparent 30%),linear-gradient(160deg,#09070e,#1a1226)}
body.theme-jungle{--red:#4b7038;--red2:#243d19;background:radial-gradient(circle at 35% 0%,rgba(90,140,65,.1),transparent 28%),linear-gradient(160deg,#061006,#132315)}
body.theme-heist{--red:#8d6b2d;--red2:#4a3510;background:radial-gradient(circle at 70% 0%,rgba(215,190,100,.07),transparent 26%),linear-gradient(160deg,#0d0c08,#211c10)}
body.theme-crime{--red:#7b1e27;--red2:#3f0e13;background:linear-gradient(160deg,#090909,#1b1b1b)}
body.theme-circus{--red:#8e2f5d;--red2:#4e1631;background:radial-gradient(circle at 80% 0%,rgba(190,70,130,.08),transparent 25%),linear-gradient(160deg,#0f080d,#211321)}
body.theme-game{--red:#5a4fc5;--red2:#2c266b;background:repeating-linear-gradient(0deg,rgba(140,130,255,.025) 0 1px,transparent 1px 5px),linear-gradient(160deg,#050711,#101638)}
body.theme-experiment{--red:#6e777f;--red2:#343a3f;background:linear-gradient(160deg,#0a0b0c,#1b1e20)}
/* Unique mission-art labels */
.theme-flight .theme-decor:before{content:"✈   ALT   ◈   NAV   ✈";color:#88b7d7}
.theme-metro .theme-decor:before{content:"▥   ◼   ⇄   ◼   ▥";color:#c29a52}
.theme-hospital .theme-decor:before{content:"✚   ▱   ♡   ▱   ✚";color:#75aaa2}
.theme-museum .theme-decor:before{content:"◇   ▣   ◈   ▣   ◇";color:#b99c63}
.theme-ai .theme-decor:before{content:"◉   AI   ▦   AI   ◉";color:#7ea5c8}
.theme-biohazard .theme-decor:before{content:"☣   ▧   ⚠   ▧   ☣";color:#9aaa56}
.theme-hotel .theme-decor:before{content:"404   ◇   ▣   ◇   404";color:#ba7a60}
.theme-castle .theme-decor:before{content:"♜   ◇   ⚔   ◇   ♜";color:#9d8ab3}
.theme-pirate .theme-decor:before{content:"☠   ⚓   ✦   ⚓   ☠";color:#b49155}
.theme-mine .theme-decor:before{content:"⛏   ▧   ◇   ▧   ⛏";color:#a78b6d}
.theme-catacomb .theme-decor:before{content:"☠   ╳   ◇   ╳   ☠";color:#a6937e}
.theme-signal .theme-decor:before{content:")))   ···   ◉   ···   (((";color:#79adbb}
.theme-alien .theme-decor:before{content:"✦   ◉   ⌬   ◉   ✦";color:#75aea4}
.theme-time .theme-decor:before{content:"⌛   ↻   30:00   ↺   ⌛";color:#9d85bb}
.theme-jungle .theme-decor:before{content:"▲   🦖   ▧   🦖   ▲";color:#82a66e}
.theme-heist .theme-decor:before{content:"◆   💎   ◈   💎   ◆";color:#c0a65b}
.theme-crime .theme-decor:before{content:"✣   🔍   ×   🔍   ✣";color:#ae5d64}
.theme-circus .theme-decor:before{content:"★   🎪   ◇   🎪   ★";color:#c06b98}
.theme-game .theme-decor:before{content:"1UP   ▶   BOSS   ▶   1UP";color:#988ee7}
.theme-experiment .theme-decor:before{content:"TEST   ◉   DATA   ◉   TEST";color:#a5adb4}


body[class*="theme-"]{background:#050608!important}
.mission-card{background:linear-gradient(180deg,rgba(7,11,15,.97),rgba(3,6,8,.99))!important}
.side{background:linear-gradient(180deg,rgba(7,10,13,.97),rgba(3,5,7,.99))!important}
.scene-visual{
  height:clamp(250px,34vw,430px);
  border:1px solid #34404a;
  border-radius:10px;
  overflow:hidden;
  margin-bottom:20px;
  position:relative;
  background-size:cover;
  background-position:center;
  box-shadow:0 28px 80px rgba(0,0,0,.5), inset 0 0 70px rgba(0,0,0,.2);
}
.scene-visual:before{
  content:"";
  position:absolute; inset:0;
  background:linear-gradient(180deg,rgba(0,0,0,.02) 20%,rgba(0,0,0,.12) 58%,rgba(0,0,0,.78));
  pointer-events:none;
}
.scene-visual:after{
  content:"";
  position:absolute; inset:0;
  background:repeating-linear-gradient(0deg,transparent 0 4px,rgba(255,255,255,.018) 5px);
  pointer-events:none;
  mix-blend-mode:screen;
}
.scene-visual-info{
  position:absolute; z-index:3;
  left:24px; right:24px; bottom:20px;
  display:flex; align-items:flex-end; justify-content:space-between; gap:15px;
}
.scene-visual-title{
  font-size:clamp(22px,3vw,38px);
  font-weight:900; letter-spacing:.06em;
  text-shadow:0 4px 20px #000;
}
.scene-visual-sub{
  font:12px Consolas,monospace;
  color:#c6d0d8; letter-spacing:.1em; margin-top:6px;
}
.scene-badge{
  font:11px Consolas,monospace;
  border:1px solid rgba(255,255,255,.24);
  padding:8px 10px;
  background:rgba(0,0,0,.62);
  backdrop-filter:blur(5px);
  white-space:nowrap;
}
.challenge{
  border-color:#34404a!important;
  box-shadow:0 20px 55px rgba(0,0,0,.34);
}
body.theme-submarine .scene-visual{box-shadow:0 28px 90px rgba(0,75,105,.28),inset 0 0 90px rgba(0,55,85,.2)}
body.theme-space .scene-visual, body.theme-alien .scene-visual{box-shadow:0 28px 90px rgba(61,80,170,.22),inset 0 0 90px rgba(27,42,110,.18)}
body.theme-egypt .scene-visual, body.theme-castle .scene-visual{box-shadow:0 28px 90px rgba(122,88,32,.2),inset 0 0 90px rgba(80,55,20,.16)}
body.theme-cyber .scene-visual, body.theme-game .scene-visual{box-shadow:0 28px 90px rgba(45,160,125,.2),inset 0 0 80px rgba(50,80,180,.1)}
@media(max-width:700px){
  .scene-visual-info{left:14px;right:14px;bottom:14px}
  .scene-visual{height:260px}
  .scene-badge{display:none}
}


:root{
 --theme-font:Arial,sans-serif;
 --theme-accent:#8b2635;
 --theme-accent2:#4e151c;
 --theme-radius:8px;
 --theme-panel:linear-gradient(180deg,rgba(9,13,17,.96),rgba(4,7,9,.99));
 --theme-button-radius:5px;
}
body[class*="theme-"]{font-family:var(--theme-font)!important}
body[class*="theme-"] .topbar,
body[class*="theme-"] .side,
body[class*="theme-"] .mission-card,
body[class*="theme-"] .result,
body[class*="theme-"] .modalbox{
 border-color:color-mix(in srgb,var(--theme-accent) 48%,#2d353d)!important;
 border-radius:var(--theme-radius)!important;
 background:var(--theme-panel)!important;
}
body[class*="theme-"] .topbar:before{background:var(--theme-accent)!important}
body[class*="theme-"] .brand h1,
body[class*="theme-"] .side h2,
body[class*="theme-"] .challenge h3,
body[class*="theme-"] .result h2{
 font-family:var(--theme-font)!important;
 letter-spacing:.045em;
}
body[class*="theme-"] .label,
body[class*="theme-"] .case-no,
body[class*="theme-"] .q-number,
body[class*="theme-"] .descriptor{
 color:var(--theme-accent)!important;
 font-family:var(--theme-font)!important;
}
body[class*="theme-"] .start,
body[class*="theme-"] .verify,
body[class*="theme-"] .report-btn,
body[class*="theme-"] .reset{
 border-radius:var(--theme-button-radius)!important;
 border-color:color-mix(in srgb,var(--theme-accent) 60%,#313a42)!important;
}
body[class*="theme-"] .start,
body[class*="theme-"] .verify{
 background:linear-gradient(180deg,var(--theme-accent),var(--theme-accent2))!important;
}
body[class*="theme-"] input,
body[class*="theme-"] select{
 border-radius:var(--theme-button-radius)!important;
 font-family:var(--theme-font)!important;
}
body[class*="theme-"] input:focus,
body[class*="theme-"] select:focus{border-color:var(--theme-accent)!important;box-shadow:0 0 0 2px color-mix(in srgb,var(--theme-accent) 18%,transparent)!important}
body[class*="theme-"] .progress>div{background:linear-gradient(90deg,var(--theme-accent2),var(--theme-accent))!important}
body[class*="theme-"] .objective{border-left-color:var(--theme-accent)!important}
body[class*="theme-"] .timeline .dot{border-radius:var(--theme-button-radius)!important}
body[class*="theme-"] .timeline .step.active .dot{border-color:var(--theme-accent)!important;color:var(--theme-accent)!important}
body[class*="theme-"] .timeline .step.done .dot{background:var(--theme-accent2)!important;border-color:var(--theme-accent)!important}
.theme-symbol-row{
 display:grid;
 grid-template-columns:auto 1fr auto;
 gap:12px;
 align-items:center;
 margin:0 0 14px;
 padding:10px 12px;
 border:1px solid color-mix(in srgb,var(--theme-accent) 40%,#2d353d);
 background:color-mix(in srgb,var(--theme-accent2) 18%,rgba(0,0,0,.45));
 border-radius:var(--theme-radius);
}
.theme-symbol-big{font-size:28px;color:var(--theme-accent);font-family:var(--theme-font);font-weight:900}
.theme-symbol-mid{font-size:11px;letter-spacing:.22em;color:#aeb9c2}
.theme-symbol-code{font-size:11px;color:var(--theme-accent);font-family:var(--theme-font);font-weight:800}
.challenge{
 border-radius:var(--theme-radius)!important;
 background:color-mix(in srgb,var(--theme-accent2) 12%,rgba(6,9,12,.96))!important;
}
.challenge:before{background:var(--theme-accent)!important}
.scene-visual{
 border-radius:var(--theme-radius)!important;
 border-color:color-mix(in srgb,var(--theme-accent) 48%,#39444c)!important;
}
.scene-visual-title{font-family:var(--theme-font)!important;color:#fff}
.scene-badge{border-radius:var(--theme-button-radius)!important;border-color:color-mix(in srgb,var(--theme-accent) 55%,#4a5157)!important}
.timer{font-family:var(--theme-font)!important;color:var(--theme-accent)!important}
body.theme-cyber .challenge,body.theme-game .challenge{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--theme-accent) 22%,transparent),0 0 28px color-mix(in srgb,var(--theme-accent) 12%,transparent)}
body.theme-egypt .side,body.theme-egypt .mission-card{border-style:double!important;border-width:4px!important}
body.theme-castle .side,body.theme-castle .mission-card{box-shadow:inset 0 0 0 2px rgba(255,255,255,.018),0 25px 70px rgba(0,0,0,.4)}
body.theme-time .mission-card,body.theme-time .side{box-shadow:0 0 50px color-mix(in srgb,var(--theme-accent) 16%,transparent)}
body.theme-circus .scene-visual-title{text-transform:uppercase;text-shadow:0 0 16px var(--theme-accent),0 3px 15px #000}
body.theme-haunted .mission-card,body.theme-haunted .side{background:linear-gradient(180deg,rgba(23,15,12,.96),rgba(7,5,4,.99))!important}
body.theme-submarine .mission-card,body.theme-submarine .side{background:linear-gradient(180deg,rgba(4,22,30,.97),rgba(2,9,13,.99))!important}
body.theme-hospital .mission-card,body.theme-hospital .side{background:linear-gradient(180deg,rgba(11,25,22,.96),rgba(5,11,10,.99))!important}
body.theme-space .mission-card,body.theme-space .side{background:linear-gradient(180deg,rgba(8,11,28,.96),rgba(3,5,12,.99))!important}
body.theme-game .mission-card,body.theme-game .side{background:linear-gradient(180deg,rgba(12,8,42,.97),rgba(4,3,14,.99))!important}


.phase-tag{display:inline-block;margin:0 8px 8px 0;padding:4px 8px;border:1px solid color-mix(in srgb,var(--theme-accent) 55%,#39434b);border-radius:var(--theme-button-radius);font:700 10px var(--theme-font);letter-spacing:.16em;color:var(--theme-accent);background:color-mix(in srgb,var(--theme-accent2) 18%,transparent)}
.timeline{gap:5px!important}.timeline .step{min-width:0!important}.timeline .dot{width:25px!important;height:25px!important;font-size:10px!important}.timeline .step>div:last-child{font-size:7px!important;letter-spacing:.03em!important}
@media(max-width:800px){.timeline .step>div:last-child{display:none}.timeline{gap:3px!important}.timeline .dot{width:23px!important;height:23px!important}}


#challengeHost{
  width:100%;
  min-width:0;
}
.mission-layout,
.mission-shell{
  align-items:start;
}
@media(max-width:900px){
  .mission-card{padding-top:16px !important}
}


.minigame{border:1px solid color-mix(in srgb,var(--theme-accent) 55%,#35404a);background:color-mix(in srgb,var(--theme-accent2) 14%,rgba(5,8,10,.98));border-radius:var(--theme-radius);padding:22px;box-shadow:0 20px 60px rgba(0,0,0,.34)}
.mg-head{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:14px}.mg-kicker{font:800 10px var(--theme-font);letter-spacing:.18em;color:var(--theme-accent)}.mg-title{font:900 clamp(20px,3vw,30px) var(--theme-font);margin:4px 0}.mg-chip{border:1px solid var(--theme-accent);padding:7px 9px;border-radius:var(--theme-button-radius);font:800 10px var(--theme-font);color:var(--theme-accent)}
.mg-story{color:#b7c1c9;line-height:1.65;margin:12px 0 18px}.mg-box{border:1px solid #303943;background:rgba(0,0,0,.25);padding:16px;border-radius:var(--theme-radius);margin:12px 0}.mg-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.mg-btn,.mg-tile,.mg-card,.mg-cell{font-family:var(--theme-font);border:1px solid #46515b;background:#10161b;color:#e8edf0;border-radius:var(--theme-button-radius);cursor:pointer}.mg-btn{padding:10px 13px}.mg-btn:hover,.mg-tile:hover,.mg-card:hover{border-color:var(--theme-accent);color:var(--theme-accent)}.mg-btn.selected,.mg-tile.selected{background:var(--theme-accent2);border-color:var(--theme-accent)}
.mg-input{width:100%;max-width:380px;padding:11px 12px;background:#080c0f;color:#fff;border:1px solid #3b4650;border-radius:var(--theme-button-radius);font-family:var(--theme-font)}
.mg-feedback{min-height:22px;margin-top:12px;font-size:12px;font-weight:800;letter-spacing:.04em}.mg-feedback.bad{color:#e77b72}.mg-feedback.good{color:#7dd3a9}
.word-grid{display:grid;grid-template-columns:repeat(8,34px);gap:4px;justify-content:start}.word-grid button{width:34px;height:34px}.sudoku{display:grid;grid-template-columns:repeat(4,48px);width:max-content}.sudoku input{width:48px;height:48px;text-align:center;font-size:20px;background:#0a0f12;color:#fff;border:1px solid #53606a}.memory-grid{display:grid;grid-template-columns:repeat(4,minmax(55px,90px));gap:8px}.mg-card{height:62px;font-weight:800}.pair-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.pair-col{display:grid;gap:8px}.puzzle-row{display:flex;gap:8px;flex-wrap:wrap}.mg-tile{padding:12px 15px;font-weight:900}.maze{display:grid;grid-template-columns:repeat(5,42px);gap:3px;width:max-content}.maze div{width:42px;height:42px;display:grid;place-items:center;background:#0b1115;border:1px solid #28323a}.maze .wall{background:#2c1b1b}.maze .path{background:color-mix(in srgb,var(--theme-accent2) 45%,#0b1115)}.coord-grid{display:grid;grid-template-columns:repeat(5,42px);gap:3px;width:max-content}.coord-grid button{height:42px}.balance{display:flex;align-items:flex-end;justify-content:center;gap:28px;padding:20px}.pan{min-width:130px;text-align:center;border-bottom:4px solid var(--theme-accent);padding:12px}.beam{font-size:34px;color:var(--theme-accent)}
.mg-progress-note{font-size:11px;color:#89959f;margin-top:8px}.mg-lock{margin-top:16px;border:1px dashed #3a444d;padding:11px;color:#77838d;font-size:11px;letter-spacing:.08em}
@media(max-width:600px){.word-grid{grid-template-columns:repeat(8,28px)}.word-grid button{width:28px;height:28px;padding:0}.pair-grid{grid-template-columns:1fr}.memory-grid{grid-template-columns:repeat(4,1fr)}}


body:not(.mission-active){background:#030506!important}
body.mission-active{background-image:linear-gradient(90deg,rgba(2,5,7,.82),rgba(2,5,7,.48)),linear-gradient(0deg,rgba(2,5,7,.76),rgba(2,5,7,.16)),var(--theme-scene)!important;background-size:cover!important;background-position:center!important;background-attachment:fixed!important}
.scene-visual-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;display:block;z-index:0}
body.mission-active .shell{max-width:1420px}
body.mission-active .top{border-color:color-mix(in srgb,var(--theme-accent) 58%,#35424b)!important;background:linear-gradient(105deg,color-mix(in srgb,var(--theme-accent2) 28%,rgba(3,7,10,.94)),rgba(3,7,10,.78))!important;box-shadow:0 18px 55px rgba(0,0,0,.42),inset 0 0 0 1px color-mix(in srgb,var(--theme-accent) 12%,transparent);backdrop-filter:blur(14px)}
body.mission-active .top:before{background:var(--theme-accent)!important;box-shadow:0 0 22px color-mix(in srgb,var(--theme-accent) 58%,transparent)}
body.mission-active .brand .kicker{color:color-mix(in srgb,var(--theme-accent) 72%,#dfe8ed)!important}
body.mission-active .status{border-color:color-mix(in srgb,var(--theme-accent) 38%,#34404a)!important;background:color-mix(in srgb,var(--theme-accent2) 20%,rgba(5,9,12,.72))!important;backdrop-filter:blur(10px)}
body.mission-active .scan{background:linear-gradient(90deg,transparent,var(--theme-accent),transparent)!important;box-shadow:0 0 12px var(--theme-accent)}
body.mission-active .mission-layout{grid-template-columns:minmax(280px,340px) minmax(0,1fr);gap:22px}
body.mission-active .side,body.mission-active .mission-card{border-color:color-mix(in srgb,var(--theme-accent) 52%,#35414a)!important;background:linear-gradient(160deg,color-mix(in srgb,var(--theme-accent2) 26%,rgba(5,9,12,.9)),rgba(3,6,8,.88) 58%,color-mix(in srgb,var(--theme-accent) 8%,rgba(2,4,6,.94)))!important;box-shadow:0 28px 80px rgba(0,0,0,.52),inset 0 0 0 1px color-mix(in srgb,var(--theme-accent) 9%,transparent)!important;backdrop-filter:blur(18px) saturate(1.15)}
body.mission-active .side{border-top:4px solid var(--theme-accent)!important}
body.mission-active .mission-card{border-top:4px solid color-mix(in srgb,var(--theme-accent) 78%,#fff)!important}
body.mission-active .case-no{padding-bottom:10px;border-bottom:1px solid color-mix(in srgb,var(--theme-accent) 34%,transparent)}
body.mission-active .side h2{color:#f4f7f8;text-shadow:0 3px 18px #000}
body.mission-active .side p{color:#c0cbd1}
body.mission-active .objective{border:1px solid color-mix(in srgb,var(--theme-accent) 32%,#29333a)!important;border-left:4px solid var(--theme-accent)!important;background:color-mix(in srgb,var(--theme-accent2) 23%,rgba(4,8,10,.64))!important}
body.mission-active .scene-visual{border-width:2px!important;border-color:color-mix(in srgb,var(--theme-accent) 68%,#48545d)!important;box-shadow:0 30px 85px rgba(0,0,0,.55),0 0 38px color-mix(in srgb,var(--theme-accent) 18%,transparent),inset 0 0 90px rgba(0,0,0,.2)!important}
body.mission-active .scene-visual:before{z-index:1;background:linear-gradient(180deg,color-mix(in srgb,var(--theme-accent2) 10%,transparent) 10%,rgba(0,0,0,.05) 48%,rgba(0,0,0,.82))}
body.mission-active .scene-visual:after{z-index:2}
body.mission-active .scene-visual-title{color:#fff!important;text-shadow:0 4px 24px #000,0 0 18px color-mix(in srgb,var(--theme-accent) 35%,transparent)}
body.mission-active .scene-visual-sub{color:color-mix(in srgb,var(--theme-accent) 42%,#e5edf1)}
body.mission-active .scene-badge{border-color:color-mix(in srgb,var(--theme-accent) 68%,#fff)!important;background:color-mix(in srgb,var(--theme-accent2) 38%,rgba(0,0,0,.62));color:#fff}
body.mission-active .theme-symbol-row{border-color:color-mix(in srgb,var(--theme-accent) 58%,#34404a)!important;background:linear-gradient(90deg,color-mix(in srgb,var(--theme-accent2) 42%,rgba(2,6,8,.75)),color-mix(in srgb,var(--theme-accent) 12%,rgba(2,6,8,.65)))!important;box-shadow:inset 0 0 26px color-mix(in srgb,var(--theme-accent) 7%,transparent)}
body.mission-active .theme-symbol-big{filter:drop-shadow(0 0 9px color-mix(in srgb,var(--theme-accent) 58%,transparent))}
body.mission-active .challenge{position:relative;overflow:hidden;border:1px solid color-mix(in srgb,var(--theme-accent) 42%,#34404a)!important;background:linear-gradient(145deg,color-mix(in srgb,var(--theme-accent2) 23%,rgba(5,9,12,.93)),rgba(4,7,9,.91))!important;box-shadow:0 22px 58px rgba(0,0,0,.38),inset 0 0 35px color-mix(in srgb,var(--theme-accent) 5%,transparent)!important}
body.mission-active .challenge:before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:var(--theme-accent)!important;box-shadow:0 0 18px var(--theme-accent)}
body.mission-active .challenge-header{border-bottom-color:color-mix(in srgb,var(--theme-accent) 28%,#29323a)}
body.mission-active .question-text{color:#eef3f5}
body.mission-active .answer input{border-color:color-mix(in srgb,var(--theme-accent) 38%,#34414a)!important;background:rgba(2,5,7,.76)!important}
body.mission-active .verify{box-shadow:0 8px 24px color-mix(in srgb,var(--theme-accent) 20%,transparent)}
body.mission-active .locked{border-color:color-mix(in srgb,var(--theme-accent) 27%,#303b43);background:color-mix(in srgb,var(--theme-accent2) 13%,rgba(3,6,8,.72));color:#81909a}
body.mission-active .timeline .dot{border-color:color-mix(in srgb,var(--theme-accent) 28%,#35404a);background:color-mix(in srgb,var(--theme-accent2) 16%,#090c0f)}
body.mission-active .progress{border-color:color-mix(in srgb,var(--theme-accent) 35%,#303a42);background:rgba(2,5,7,.66)}
@media(max-width:850px){body.mission-active .mission-layout{grid-template-columns:1fr}.scene-visual{height:clamp(230px,54vw,360px)}body.mission-active .side{position:static}}
.pro-entry{display:block!important;max-width:1450px!important;margin:24px auto 0!important}
.entry-stage{min-height:calc(100vh - 125px);display:grid;grid-template-columns:minmax(0,1.45fr) minmax(390px,.65fr);gap:18px}
.entry-ambient{position:relative;overflow:hidden;min-height:650px;padding:54px 58px;border:1px solid #20282e;background:
 radial-gradient(circle at 72% 18%,rgba(255,255,255,.04),transparent 18%),
 radial-gradient(circle at 18% 75%,rgba(67,143,130,.08),transparent 25%),
 linear-gradient(145deg,#0a0e11 0%,#05080a 55%,#020405 100%);box-shadow:0 30px 100px rgba(0,0,0,.45)}
.entry-ambient:before{content:"";position:absolute;inset:0;opacity:.16;background-image:linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.025) 1px,transparent 1px);background-size:44px 44px;mask-image:linear-gradient(90deg,#000,transparent 92%)}
.entry-ambient:after{content:"";position:absolute;width:480px;height:480px;border:1px solid rgba(119,196,181,.13);border-radius:50%;right:-190px;top:70px;box-shadow:0 0 0 48px rgba(119,196,181,.018),0 0 0 96px rgba(119,196,181,.012)}
.entry-code{position:relative;z-index:2;font:800 10px var(--theme-font);letter-spacing:.24em;color:#6d7b84}
.entry-lock{position:absolute;z-index:2;right:54px;top:48px;font-size:31px;color:var(--theme-accent);filter:drop-shadow(0 0 15px color-mix(in srgb,var(--theme-accent) 35%,transparent))}
.entry-copy{position:relative;z-index:2;max-width:720px;margin-top:105px}
.entry-kicker{font:800 10px var(--theme-font);letter-spacing:.24em;color:var(--theme-accent);margin-bottom:18px}
.entry-copy h2{margin:0!important;font:900 clamp(64px,8vw,124px)/.76 var(--theme-font)!important;letter-spacing:-.075em!important;color:#edf2f3!important;text-transform:uppercase}
.entry-copy h2 span{color:transparent;-webkit-text-stroke:1px color-mix(in srgb,var(--theme-accent) 72%,#fff);text-shadow:0 0 42px color-mix(in srgb,var(--theme-accent) 13%,transparent)}
.entry-copy p{max-width:650px;margin-top:34px!important;color:#909da5!important;font-size:15px!important;line-height:1.75!important}
.entry-metrics{position:absolute;z-index:2;left:58px;right:58px;bottom:82px;display:grid;grid-template-columns:repeat(4,1fr);border-top:1px solid #222c32;border-bottom:1px solid #222c32}
.entry-metrics div{padding:17px 14px 15px;border-right:1px solid #222c32}.entry-metrics div:first-child{padding-left:0}.entry-metrics div:last-child{border:0}
.entry-metrics strong{display:block;font:800 22px var(--theme-font);color:#dfe6e9}.entry-metrics span{display:block;margin-top:5px;font:700 8px var(--theme-font);letter-spacing:.16em;color:#5f6c75}
.entry-foot{position:absolute;left:58px;bottom:35px;font:700 8px var(--theme-font);letter-spacing:.17em;color:#58656e}
.entry-terminal{display:flex;flex-direction:column;min-height:650px;border:1px solid #2a333a;background:#070a0c;box-shadow:0 30px 100px rgba(0,0,0,.5)}
.terminal-top{height:48px;display:flex;align-items:center;gap:9px;padding:0 16px;border-bottom:1px solid #242d33;background:#0b1013;font:800 8px var(--theme-font);letter-spacing:.16em;color:#76838b}
.terminal-top b{margin-left:auto;color:#77bca7}.terminal-light{width:7px;height:7px;border-radius:50%;background:#69b99f;box-shadow:0 0 10px #69b99f}
.terminal-screen{padding:30px 28px 22px;flex:1}.terminal-symbol{width:46px;height:46px;display:grid;place-items:center;border:1px solid color-mix(in srgb,var(--theme-accent) 50%,#39434a);color:var(--theme-accent);font-size:24px;margin-bottom:22px}
.terminal-screen h3{margin:0!important;font:900 22px var(--theme-font)!important;letter-spacing:.08em!important}.terminal-screen>p{margin:8px 0 25px!important;color:#74818a!important;font-size:12px!important}
.pro-field{margin:0 0 13px!important}.pro-field label{display:block;margin-bottom:6px;font:800 8px var(--theme-font);letter-spacing:.14em;color:#697780}
.pro-field input,.pro-field select{box-sizing:border-box;width:100%!important;height:47px!important;padding:0 12px!important;background:#030607!important;color:#eef2f3!important;border:1px solid #303a41!important;border-radius:0!important;outline:none}
.pro-field input:focus,.pro-field select:focus{border-color:var(--theme-accent)!important;box-shadow:inset 3px 0 0 var(--theme-accent)!important}
.pro-launch{width:100%!important;height:56px!important;margin-top:8px!important;padding:0 17px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;border-radius:0!important;font:900 10px var(--theme-font)!important;letter-spacing:.16em!important}
.pro-launch b{font-size:20px}.terminal-warning{display:flex;gap:10px;margin-top:16px;padding:11px;border-left:2px solid #665d36;background:#0d0c08}.terminal-warning span{color:#d0b85c;font-weight:900}.terminal-warning p{margin:0!important;color:#77766e!important;font-size:9px!important;line-height:1.5!important}
.teacher-drawer{display:flex;align-items:center;gap:12px;padding:13px 16px;border-top:1px solid #242d33;background:#050708}.teacher-drawer span{font:800 8px var(--theme-font);letter-spacing:.14em;color:#56636b}.teacher-drawer button{margin-left:auto!important;font-size:8px!important;padding:8px 10px!important}
@media(max-width:950px){.entry-stage{grid-template-columns:1fr}.entry-ambient{min-height:500px}.entry-copy{margin-top:55px}.entry-terminal{min-height:auto}.entry-metrics{position:relative;left:auto;right:auto;bottom:auto;margin-top:65px}.entry-foot{position:relative;left:auto;bottom:auto;margin-top:25px}}
@media(max-width:600px){.pro-entry{margin-top:10px!important}.entry-ambient{padding:30px 22px;min-height:auto}.entry-lock{right:22px;top:25px}.entry-copy{margin-top:60px}.entry-copy h2{font-size:62px!important}.entry-metrics{grid-template-columns:1fr 1fr}.entry-metrics div{border-bottom:1px solid #222c32}.entry-foot{line-height:1.5}.terminal-screen{padding:24px 18px}.teacher-drawer{align-items:flex-start;flex-direction:column}.teacher-drawer button{margin-left:0!important;width:100%}}

/* Central de relatórios */
body.report-open{overflow:hidden}
.admin-login-card{position:relative;width:min(430px,100%);padding:28px;border:1px solid #3c4a55;border-radius:15px;background:linear-gradient(145deg,#111920,#080d11);box-shadow:0 28px 80px rgba(0,0,0,.68)}
.admin-login-card h3{margin:3px 0 8px;color:#f0f5f8;font:800 25px var(--theme-font,monospace)}.admin-login-card>p{margin:0 0 20px;color:#8e9ba5;font-size:12px;line-height:1.5}
.admin-login-card label{display:block;margin-top:12px}.admin-login-card label span{display:block;margin-bottom:6px;color:#82909b;font:800 8px var(--theme-font,monospace);letter-spacing:.13em}.admin-login-card input{width:100%;height:44px;padding:0 12px;border:1px solid #34424d;border-radius:8px;outline:0;background:#0b1116;color:#eef4f7;font:700 12px var(--theme-font,monospace)}.admin-login-card input:focus{border-color:var(--accent2,#79d8ff);box-shadow:0 0 0 3px rgba(121,216,255,.08)}
.admin-login-close{position:absolute;right:15px;top:15px;width:36px;height:36px;border:1px solid #3b4954;border-radius:8px;background:#141c22;color:#dce4e9;font-size:23px;cursor:pointer}.admin-login-close:hover{border-color:var(--accent2,#79d8ff);color:#fff}
.admin-login-error{min-height:19px;padding-top:8px;color:#ff9696;font-size:10px}.admin-login-submit{width:100%;height:44px;margin-top:7px;border:1px solid var(--accent2,#79d8ff);border-radius:8px;background:var(--accent2,#79d8ff);color:#071015;font:900 10px var(--theme-font,monospace);letter-spacing:.1em;cursor:pointer}.admin-login-submit:disabled{cursor:wait;filter:grayscale(.4);opacity:.7}
.modal{padding:clamp(8px,2vw,24px);background:rgba(0,4,8,.88);backdrop-filter:blur(9px)}
.report-center{width:min(1180px,100%);height:min(900px,calc(100vh - 32px));display:grid;grid-template-rows:auto auto auto minmax(0,1fr) auto;background:#090d11;border:1px solid #34414c;border-radius:16px;overflow:hidden;box-shadow:0 28px 90px rgba(0,0,0,.65),0 0 0 1px rgba(255,255,255,.025)}
.report-header{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;padding:22px 24px 18px;background:linear-gradient(135deg,#101820,#090d11 62%);border-bottom:1px solid #26313a}
.report-eyebrow{display:block;margin-bottom:6px;font:800 9px var(--theme-font,monospace);letter-spacing:.2em;color:var(--accent2,#79d8ff)}
.report-header h3{margin:0;color:#f2f6f9;font:800 clamp(20px,2.3vw,30px) var(--theme-font,monospace);letter-spacing:.02em}
.report-header p{margin:7px 0 0;color:#8f9ca7;font-size:12px}
.report-close-icon{width:42px;height:42px;flex:0 0 42px;display:grid;place-items:center;margin:0;border:1px solid #41505c;border-radius:10px;background:#131a20;color:#ecf2f6;font:300 28px/1 Arial;cursor:pointer;transition:.16s ease;position:relative;z-index:2}
.report-close-icon:hover,.report-close-icon:focus-visible{color:#fff;background:#293641;border-color:var(--accent2,#79d8ff);transform:translateY(-1px);outline:none}
.report-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;background:#26313a;border-bottom:1px solid #26313a}
.report-summary article{min-width:0;padding:15px 20px;background:#0d1318}
.report-summary span{display:block;margin-bottom:6px;font:800 8px var(--theme-font,monospace);letter-spacing:.15em;color:#71808c}
.report-summary strong{display:block;overflow:hidden;text-overflow:ellipsis;color:#edf3f7;font:800 21px var(--theme-font,monospace)}
.report-toolbar{display:grid;grid-template-columns:minmax(260px,1fr) 150px 190px auto;gap:10px;padding:13px 18px;background:#0b1014;border-bottom:1px solid #26313a}
.report-toolbar label{display:flex;align-items:center;gap:8px;min-width:0;padding:0 11px;border:1px solid #303c46;border-radius:9px;background:#11171c}
.report-toolbar label>span{font:800 8px var(--theme-font,monospace);letter-spacing:.12em;color:#75838e;white-space:nowrap}
.report-toolbar input,.report-toolbar select{width:100%;min-width:0;height:40px;padding:0;border:0;outline:0;background:transparent;color:#e3eaf0;font:600 11px var(--theme-font,monospace)}
.report-toolbar select option{background:#11171c;color:#e3eaf0}
.report-search>span{font-size:19px!important;color:var(--accent2,#79d8ff)!important}
.report-clear-filters{padding:0 15px;border:1px solid #303c46;border-radius:9px;background:transparent;color:#9daab4;font:800 9px var(--theme-font,monospace);letter-spacing:.1em;cursor:pointer}
.report-clear-filters:hover{border-color:#637582;color:#fff}
.report-scroll{min-height:0;overflow:auto;padding:16px 18px 22px;scrollbar-color:#3a4853 #0b1014;scrollbar-width:thin}
.report-list{display:grid;gap:10px}
.report-item{border:1px solid #293640;border-radius:11px;background:#0d1318;overflow:hidden;transition:border-color .16s ease,background .16s ease}
.report-item[open]{border-color:#465866;background:#0f161c}
.report-item summary{display:grid;grid-template-columns:minmax(210px,1.6fr) minmax(170px,1fr) 110px 90px 34px;align-items:center;gap:14px;min-height:70px;padding:12px 16px;cursor:pointer;list-style:none}
.report-item summary::-webkit-details-marker{display:none}
.report-person{min-width:0}.report-person strong,.report-person small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.report-person strong{color:#edf3f7;font:800 13px var(--theme-font,monospace)}.report-person small{margin-top:5px;color:#75838e;font-size:10px}
.report-mission{min-width:0;color:#aeb9c2;font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.report-mission b{color:#dbe3e9}
.report-score{color:#f2f6f9;font:800 18px var(--theme-font,monospace);text-align:center}.report-score small{display:block;color:#667682;font-size:8px;letter-spacing:.1em}
.report-status{justify-self:start;display:inline-flex;align-items:center;min-height:24px;padding:4px 8px;border-radius:999px;font:800 8px var(--theme-font,monospace);letter-spacing:.08em;white-space:nowrap}.report-status.good{color:#7ce2a2;background:rgba(46,175,96,.12);border:1px solid rgba(84,209,130,.28)}.report-status.bad{color:#ff9a9a;background:rgba(218,63,63,.12);border:1px solid rgba(232,87,87,.3)}.report-status.neutral{color:#9db4c5;background:rgba(90,125,150,.12);border:1px solid rgba(113,151,178,.25)}
.report-chevron{width:28px;height:28px;display:grid;place-items:center;border-radius:7px;background:#151e25;color:#8fa1ae;font-size:16px;transition:transform .16s ease}.report-item[open] .report-chevron{transform:rotate(180deg);color:var(--accent2,#79d8ff)}
.report-detail{padding:0 16px 18px;border-top:1px solid #243039}
.report-detail-top{display:flex;align-items:center;justify-content:space-between;gap:14px}.student-report-actions{display:flex;gap:7px;flex:0 0 auto}.student-pdf-btn,.student-delete-btn{min-height:34px;padding:0 12px;border-radius:8px;font:800 8px var(--theme-font,monospace);letter-spacing:.08em;cursor:pointer}.student-pdf-btn{border:1px solid rgba(121,216,255,.45);background:rgba(121,216,255,.08);color:var(--accent2,#79d8ff)}.student-pdf-btn:hover,.student-pdf-btn:focus-visible{background:var(--accent2,#79d8ff);color:#071015;outline:none}.student-delete-btn{border:1px solid rgba(255,105,105,.38);background:rgba(190,45,45,.08);color:#ff8e8e}.student-delete-btn:hover,.student-delete-btn:focus-visible{background:#a92d36;color:#fff;outline:none}
.report-meta{display:flex;flex-wrap:wrap;gap:8px;padding:13px 0}.report-meta span{padding:6px 9px;border-radius:7px;background:#151d23;color:#9eabb5;font-size:10px}.report-meta b{color:#e1e8ed}
.report-section-title{margin:16px 0 8px;color:#dfe7ec;font:800 10px var(--theme-font,monospace);letter-spacing:.14em}
.report-table-wrap{overflow:auto;border:1px solid #26333d;border-radius:9px}
.report-table{width:100%;min-width:860px;border-collapse:collapse;font-size:10px}.report-table th{position:sticky;top:0;padding:9px 10px;background:#151d23;color:#9baab5;font:800 8px var(--theme-font,monospace);letter-spacing:.1em;text-align:left}.report-table td{padding:10px;border-top:1px solid #222e37;color:#b7c2ca;vertical-align:top}.report-table tr:nth-child(even) td{background:rgba(255,255,255,.012)}.report-table .question-cell{max-width:430px;line-height:1.45}.report-table .question-cell b{display:block;margin-bottom:4px;color:#dde5ea}.report-result-ok{color:#70dda0!important;font-weight:800}.report-result-no{color:#ff9797!important;font-weight:800}
.report-empty{display:grid;place-items:center;min-height:230px;text-align:center;color:#83919c}.report-empty strong{display:block;margin-bottom:7px;color:#dce4e9;font:800 15px var(--theme-font,monospace)}
.report-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px 18px;background:#0c1115;border-top:1px solid #2b3740}.report-footer>span{color:#74838e;font:700 9px var(--theme-font,monospace);letter-spacing:.08em}.report-footer-actions{display:flex;gap:8px}.report-action{min-height:38px;padding:0 14px;border-radius:8px;font:800 9px var(--theme-font,monospace);letter-spacing:.08em;cursor:pointer}.report-action.secondary{border:1px solid #34434e;background:#121920;color:#afbcc5}.report-action.primary{min-width:100px;border:1px solid var(--accent2,#79d8ff);background:var(--accent2,#79d8ff);color:#071015}.report-action:hover{filter:brightness(1.15)}
.theme-gallery-panel{width:min(1220px,100%);height:min(900px,calc(100vh - 32px));display:grid;grid-template-rows:auto auto minmax(0,1fr);overflow:hidden;border:1px solid #34414c;border-radius:16px;background:#090d11;box-shadow:0 28px 90px rgba(0,0,0,.68)}
.theme-gallery-count{padding:11px 20px;border-bottom:1px solid #28343d;background:#0c1217;color:#778692;font:800 9px var(--theme-font,monospace);letter-spacing:.1em}
.theme-gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:max-content;align-content:start;align-items:start;column-gap:24px;row-gap:28px;min-height:0;padding:24px;overflow:auto;scrollbar-color:#3a4853 #0b1014;scrollbar-width:thin}
.theme-gallery-card{display:grid!important;grid-template-rows:200px minmax(112px,auto)!important;align-self:start;width:100%;height:auto!important;min-width:0;min-height:314px!important;padding:0!important;overflow:hidden;border:1px solid #2e3b45;border-radius:13px;background:#0e151a;text-align:left;cursor:pointer;transition:.18s ease}.theme-gallery-card:hover,.theme-gallery-card:focus-visible{border-color:var(--accent2,#79d8ff);transform:translateY(-3px);box-shadow:0 16px 34px rgba(0,0,0,.38);outline:none}.theme-gallery-card img{display:block;width:100%;height:200px!important;min-height:200px!important;object-fit:cover;background:#06090b;transition:transform .35s ease}.theme-gallery-card:hover img,.theme-gallery-card:focus-visible img{transform:scale(1.025)}.theme-gallery-caption{position:static!important;display:flex!important;visibility:visible!important;min-height:112px!important;box-sizing:border-box;flex-direction:column;padding:14px 15px 13px!important;background:linear-gradient(180deg,#111a20,#0a0f13);border-top:1px solid #2d3942;opacity:1!important}.theme-gallery-card small{display:block!important;margin-bottom:7px;color:#91a5b4;font:800 8px var(--theme-font,monospace);letter-spacing:.12em}.theme-gallery-card strong{display:block!important;overflow:visible;color:#f2f6f8;font:900 clamp(13px,1.15vw,16px)/1.32 var(--theme-font,monospace);white-space:normal!important;overflow-wrap:anywhere}.theme-gallery-card span{display:block;margin-top:auto;padding-top:10px;color:#8fa0ab;font:700 7px var(--theme-font,monospace);letter-spacing:.1em;opacity:.72;transition:.18s ease}.theme-gallery-card:hover span,.theme-gallery-card:focus-visible span{color:#c7d3da;opacity:1}
.theme-preview-panel{width:min(1120px,100%);overflow:hidden;border:1px solid #3a4853;border-radius:16px;background:#090d11;box-shadow:0 30px 100px rgba(0,0,0,.75)}.theme-preview-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:15px 18px;border-bottom:1px solid #293640}.theme-preview-header span{display:block;margin-bottom:4px;color:var(--accent2,#79d8ff);font:800 8px var(--theme-font,monospace);letter-spacing:.14em}.theme-preview-header h3{margin:0;color:#edf3f6;font:800 18px var(--theme-font,monospace)}.theme-preview-stage{padding:14px;background:#05080a}.theme-preview-stage img{display:block;width:100%;max-height:calc(100vh - 150px);object-fit:contain;border:1px solid #25313a;border-radius:9px;background:#030506}

@media(max-width:820px){.report-center{height:calc(100vh - 16px);border-radius:12px}.report-summary{grid-template-columns:1fr 1fr}.report-toolbar{grid-template-columns:1fr 1fr}.report-search{grid-column:1/-1}.report-item summary{grid-template-columns:minmax(180px,1fr) 72px 30px}.report-mission,.report-status{display:none}.report-footer{align-items:flex-start;flex-direction:column}.report-footer-actions{width:100%}.report-action{flex:1}}
@media(max-width:900px){.theme-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:18px;row-gap:24px;padding:18px}.theme-gallery-card{grid-template-rows:190px minmax(108px,auto)!important;min-height:300px!important}.theme-gallery-card img{height:190px!important;min-height:190px!important}}
@media(max-width:520px){.modal{padding:0}.report-center{height:100vh;border:0;border-radius:0}.report-header{padding:16px}.report-header p{display:none}.report-close-icon{width:40px;height:40px;flex-basis:40px}.report-summary article{padding:11px 13px}.report-summary strong{font-size:17px}.report-toolbar{grid-template-columns:1fr;padding:10px}.report-search{grid-column:auto}.report-clear-filters{min-height:38px}.report-scroll{padding:10px}.report-item summary{grid-template-columns:minmax(150px,1fr) 64px 28px;padding:10px}.report-score{font-size:15px}.report-detail-top{align-items:stretch;flex-direction:column}.student-report-actions{width:100%;flex-direction:column}.student-pdf-btn,.student-delete-btn{width:100%}.report-footer{padding:10px}.report-footer>span{display:none}}
@media(max-width:520px){.theme-gallery-panel,.theme-preview-panel{height:100vh;border:0;border-radius:0}.theme-gallery-grid{grid-template-columns:1fr;row-gap:22px;padding:14px}.theme-gallery-card{grid-template-rows:190px minmax(100px,auto)!important;min-height:292px!important}.theme-gallery-card img{height:190px!important;min-height:190px!important}.theme-gallery-caption{min-height:100px!important}.theme-preview-stage{display:grid;place-items:center;height:calc(100vh - 74px);padding:8px}.theme-preview-stage img{max-height:100%}}


.entry-copy{margin-top:82px!important}
.entry-copy h2{
  font-size:clamp(42px,5.2vw,76px)!important;
  line-height:.88!important;
  letter-spacing:-.045em!important;
}
.entry-copy h2 span{
  font-size:.95em!important;
}
@media(max-width:600px){
  .entry-copy{margin-top:54px!important}
  .entry-copy h2{font-size:48px!important}
}


#setup.hidden{
  display:none !important;
}
#setup:not(.hidden){
  display:block !important;
}
