/* SENAI Modern UI • camada visual isolada. Carregar DEPOIS dos temas anteriores. */
:root { --ui-blue:#00459d; --ui-orange:#ff6900; --ui-bg:#f2f6fe; --ui-surface:#ffffff; --ui-elevated:#ffffff; --ui-text:#132e52; --ui-muted:#456181; --ui-border:#cddcf1; --ui-subtle:#ecf3ff; --ui-shadow:0 16px 46px rgba(0,48,107,.10),0 3px 10px rgba(0,48,107,.05); --ui-strong-shadow:0 24px 65px rgba(0,48,107,.17); color-scheme:light; }
html {scroll-behavior:smooth}
body{background:radial-gradient(circle at 12% 0%,#dce9ff 0,transparent 27%),radial-gradient(circle at 95% 30%,#fff0df 0,transparent 28%),var(--ui-bg)!important;color:var(--ui-text)!important;min-height:100svh;transition:background-color .25s,color .25s}
body::before{content:"";position:fixed;inset:0;pointer-events:none;z-index:-1;background-image:radial-gradient(#4071b51e 1px,transparent 1px);background-size:25px 25px;opacity:.5}
.wrap{max-width:1400px!important}
.senai-header{position:sticky!important;top:10px;backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);background:color-mix(in srgb,var(--ui-surface) 93%,transparent)!important;border:1px solid var(--ui-border)!important;border-radius:20px!important;box-shadow:var(--ui-shadow)!important}
.brand,.game-brand strong,.panel h1,.panel h2,.panel h3{letter-spacing:-.025em}
.senai-brand img{background:#fff;border-radius:9px;padding:4px}
.pill{background:var(--ui-subtle)!important;color:var(--ui-blue)!important;border:1px solid var(--ui-border)!important}
.panel,.panel.instructions,#instructions,.qmodal .panel,#teacher .panel,#waiting .panel,#end .panel,#game .panel{background:var(--ui-surface)!important;color:var(--ui-text)!important;border:1px solid var(--ui-border)!important;border-radius:22px!important;box-shadow:var(--ui-shadow)!important;transition:background-color .25s,border-color .25s,box-shadow .25s,transform .25s}
.panel:not(.qmodal .panel):hover{box-shadow:var(--ui-strong-shadow)!important}
.panel h1,.panel h2,.panel h3,#instructions h2,#teacher .panel h2,.qmodal .panel h2{color:var(--ui-blue)!important}
.panel p,.panel li,.panel span,.panel label,.panel strong,.panel small,#instructions li,#instructions p,#instructions ol,#questionText,#waitCount,#waitText,.tip-copy{color:var(--ui-text)!important}
.panel .muted,.panel .tiny,.panel .field label,.panel .stat small,.muted{color:var(--ui-muted)!important}
.hero.senai-hero{background:linear-gradient(115deg,var(--ui-surface) 0%,var(--ui-surface) 55%,var(--ui-subtle) 100%)!important;border:1px solid var(--ui-border)!important;box-shadow:var(--ui-shadow)!important;border-radius:26px!important}
.hero.senai-hero h1,.hero:not(.senai-hero) h1{color:var(--ui-blue)!important}
.hero h1 span,.game-brand strong em{color:var(--ui-orange)!important}
.hero.senai-hero p{color:var(--ui-muted)!important}
.hero-people{box-shadow:var(--ui-strong-shadow)!important;animation:floatImg 7s ease-in-out infinite}
.btn{background:linear-gradient(130deg,#ff8019,#f35b00)!important;color:#fff!important;border-radius:13px!important;box-shadow:0 11px 25px #f56c0033!important;transition:transform .2s ease,filter .2s ease,box-shadow .2s ease!important}
.btn:hover:not(:disabled){transform:translateY(-3px);filter:saturate(1.1);box-shadow:0 16px 30px #f56c0047!important}
.btn:active:not(:disabled){transform:translateY(0) scale(.98)}
.btn.secondary{background:var(--ui-subtle)!important;color:var(--ui-blue)!important;border:1px solid var(--ui-border)!important;box-shadow:0 4px 12px #23497912!important}
.btn.secondary:hover:not(:disabled){box-shadow:0 9px 24px #23497924!important}
.btn.danger{background:linear-gradient(120deg,#d63851,#ad173d)!important;color:#fff!important}
.btn.warn{background:linear-gradient(120deg,#ffd08b,#ffb452)!important;color:#492601!important}
.field input,.panel input{background:var(--ui-elevated)!important;color:var(--ui-text)!important;border:1.5px solid var(--ui-border)!important;border-radius:13px!important;box-shadow:inset 0 1px 3px #102e5009;transition:border-color .2s,box-shadow .2s}
.field input::placeholder,.panel input::placeholder{color:var(--ui-muted)!important;opacity:.92}
.field input:focus,.panel input:focus{outline:none!important;border-color:#fb7a13!important;box-shadow:0 0 0 4px #ff690026!important}
button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #ff8b35!important;outline-offset:3px!important}
.topic-panel .topics span,.topics span,.panel .topics span,.panel .roomcard,.panel .stat,.panel .progress-sample span{background:var(--ui-subtle)!important;color:var(--ui-text)!important;border:1px solid var(--ui-border)!important;border-radius:14px!important}
.topics span{transition:transform .2s,box-shadow .2s}.topics span:hover{transform:translateY(-3px);box-shadow:0 8px 18px #0d4b9220}
.roomcard{background:var(--ui-subtle)!important;border-radius:15px!important}.stat b{color:var(--ui-orange)!important}.stat small{color:var(--ui-muted)!important}
.panel .status{background:var(--ui-subtle)!important;color:var(--ui-text)!important}.panel .status.error{background:#ffebed!important;color:#8f1930!important}
.panel .answer{background:var(--ui-subtle)!important;color:var(--ui-text)!important;border:1px solid var(--ui-border)!important;transition:transform .15s,background-color .15s,border-color .15s!important}
.panel .answer:hover{transform:translateX(4px);border-color:var(--ui-orange)!important;background:var(--ui-elevated)!important}
#instructions{padding:clamp(22px,3vw,42px)!important}
#instructions li{line-height:1.75;margin:12px 0}
#instructions p{background:var(--ui-subtle)!important;color:var(--ui-text)!important;border-left:4px solid var(--ui-orange)!important}
#instructions li::marker{color:var(--ui-orange)!important}
.journey-panel img{box-shadow:0 12px 22px #063a791c;transition:transform .45s ease}.journey-panel img:hover{transform:scale(1.012)}
.nav-actions{gap:9px!important}.theme-switch{display:inline-flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap;padding:10px 15px!important;background:var(--ui-subtle)!important;color:var(--ui-blue)!important;border:1px solid var(--ui-border)!important;border-radius:999px!important;box-shadow:none!important;font-size:13px;font-weight:800;min-height:43px;cursor:pointer;transition:transform .2s,border-color .2s,background .2s}.theme-switch:hover{transform:translateY(-2px);border-color:var(--ui-orange)!important}.theme-switch svg{width:18px;height:18px;display:block}
.reveal-modern{animation:riseIn .6s cubic-bezier(.16,1,.3,1) both}
@keyframes riseIn{from{opacity:0;transform:translateY(17px)}to{opacity:1;transform:translateY(0)}}
@keyframes floatImg{0%,100%{transform:translateY(0)}50%{transform:translateY(-7px)}}
/* Modo escuro: todos os textos ganham contraste alto, inclusive após contraste-senai.css */
html[data-theme="dark"]{--ui-blue:#a8c9ff;--ui-orange:#ff994a;--ui-bg:#081324;--ui-surface:#15243a;--ui-elevated:#0c1b31;--ui-text:#f0f6ff;--ui-muted:#c0d0e7;--ui-border:#37516f;--ui-subtle:#213650;--ui-shadow:0 16px 46px #0209109c,0 3px 10px #02091070;--ui-strong-shadow:0 26px 65px #010715b8;color-scheme:dark}
html[data-theme="dark"] body{background:radial-gradient(circle at 8% 5%,#17385a 0,transparent 34%),radial-gradient(circle at 94% 40%,#332133 0,transparent 32%),var(--ui-bg)!important}
html[data-theme="dark"] .senai-header{background:#14233be9!important}
html[data-theme="dark"] .game-brand strong{color:#eaf2ff!important}
html[data-theme="dark"] .pill{color:#ecf4ff!important}
html[data-theme="dark"] .hero.senai-hero{background:linear-gradient(120deg,#152842 0%,#192b46 62%,#143c5e 100%)!important}
html[data-theme="dark"] .hero h1,html[data-theme="dark"] .hero:not(.senai-hero) h1,html[data-theme="dark"] .hero.senai-hero h1{color:#f3f7ff!important}
html[data-theme="dark"] .hero p,html[data-theme="dark"] .hero.senai-hero p,html[data-theme="dark"] .hero:not(.senai-hero) p{color:#d8e6fa!important}
html[data-theme="dark"] .hero .eyebrow{color:#ffac76!important}
html[data-theme="dark"] .hero-privacy{background:#29405b!important;color:#fff!important}
html[data-theme="dark"] .panel,html[data-theme="dark"] .panel.instructions,html[data-theme="dark"] #instructions,html[data-theme="dark"] .qmodal .panel,html[data-theme="dark"] #teacher .panel,html[data-theme="dark"] #waiting .panel,html[data-theme="dark"] #end .panel,html[data-theme="dark"] #game .panel{background:var(--ui-surface)!important;color:var(--ui-text)!important;border-color:var(--ui-border)!important}
html[data-theme="dark"] .panel h1,html[data-theme="dark"] .panel h2,html[data-theme="dark"] .panel h3,html[data-theme="dark"] #instructions h2,html[data-theme="dark"] #teacher .panel h2,html[data-theme="dark"] .qmodal .panel h2{color:#c8ddff!important}
html[data-theme="dark"] .panel p,html[data-theme="dark"] .panel li,html[data-theme="dark"] .panel span,html[data-theme="dark"] .panel label,html[data-theme="dark"] .panel strong,html[data-theme="dark"] .panel small,html[data-theme="dark"] #instructions li,html[data-theme="dark"] #instructions p,html[data-theme="dark"] #questionText,html[data-theme="dark"] #waitCount,html[data-theme="dark"] #waitText,html[data-theme="dark"] .tip-copy{color:#eef5ff!important}
html[data-theme="dark"] .panel .muted,html[data-theme="dark"] .panel .tiny,html[data-theme="dark"] .panel .field label,html[data-theme="dark"] .panel .stat small,html[data-theme="dark"] .muted{color:#cbdbef!important}
html[data-theme="dark"] .panel .roomcard,html[data-theme="dark"] .panel .stat,html[data-theme="dark"] .panel .topics span,html[data-theme="dark"] .panel .progress-sample span,html[data-theme="dark"] .panel .answer,html[data-theme="dark"] #instructions p{background:var(--ui-subtle)!important;color:#eef5ff!important;border-color:var(--ui-border)!important}
html[data-theme="dark"] .panel input{background:var(--ui-elevated)!important;color:#fff!important;border-color:#557294!important}
html[data-theme="dark"] .panel input::placeholder{color:#b8cae0!important}
html[data-theme="dark"] .panel .status{background:#223750!important;color:#eef5ff!important}
html[data-theme="dark"] .panel .status.error{background:#552b3a!important;color:#ffe5eb!important}
html[data-theme="dark"] .panel .stat b{color:#ffb477!important}
html[data-theme="dark"] .panel .btn,html[data-theme="dark"] .panel .btn span{color:#fff!important}
html[data-theme="dark"] .btn.secondary,html[data-theme="dark"] .panel .btn.secondary,html[data-theme="dark"] .btn.secondary span,html[data-theme="dark"] .panel .btn.secondary span{color:#e8f3ff!important}
html[data-theme="dark"] .btn.warn,html[data-theme="dark"] .panel .btn.warn,html[data-theme="dark"] .btn.warn span{color:#492601!important}
html[data-theme="dark"] .theme-switch{color:#f0f6ff!important}
html[data-theme="dark"] .avatar{background:#2b4261;color:#fff}html[data-theme="dark"] .avatar.active{background:#654020;border-color:#ff994a}
html[data-theme="dark"] .rank li{border-color:#3b5674!important}
html[data-theme="dark"] .footer{color:#b5c6df!important}
html[data-theme="dark"] .controls button{background:#2f527d!important;border-color:#58759b!important;color:#fff!important}
@media(max-width:750px){.senai-header{position:relative!important;top:0}.theme-switch{min-height:40px;padding:8px 12px!important}.theme-switch .theme-word{display:none}.hero-people{animation:none}.panel{border-radius:18px!important}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.hero-people,.reveal-modern{animation:none!important}.btn,.panel,.topics span,.answer,.journey-panel img{transition:none!important}.btn:hover:not(:disabled),.topics span:hover,.panel .answer:hover{transform:none!important}}
