:root{font-family:Arial,Helvetica,sans-serif;color:#102b60;background:#f7f9fc;font-synthesis:none}
*{box-sizing:border-box}body{margin:0;background:linear-gradient(135deg,#eaf2fc88 0,transparent 24%),linear-gradient(315deg,#e8f1fc 0,transparent 27%),#fafcfe}
.portal{height:100svh;display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:clamp(10px,2vh,22px);padding:clamp(14px,2.5vh,28px) clamp(20px,4.5vw,88px)}
.portal-header{position:relative;display:flex;align-items:center;justify-content:space-between;gap:20px;padding-bottom:18px;border-bottom:3px solid #164194}
.portal-header:after{content:'';position:absolute;right:0;bottom:-3px;width:9%;height:3px;background:#e84910}
.brand{display:flex;align-items:center;gap:26px}.logo{display:block;position:relative;overflow:hidden;width:clamp(115px,11vw,180px);aspect-ratio:348/93;flex-shrink:0;background:#fff}.logo img{position:absolute;width:128.45%;max-width:none;left:-14.37%;top:-190.32%}
.brand-title{border-left:1px solid #b4c0d0;padding-left:26px;font-size:clamp(17px,1.6vw,27px);font-weight:700}.header-note{font-size:clamp(14px,1.3vw,22px);color:#164194}
main{min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr);gap:clamp(12px,2.6vh,28px);max-width:1520px;width:100%;margin:auto;height:100%}.intro{text-align:center}.intro h1{font-size:clamp(28px,3.6vw,60px);line-height:1.1;letter-spacing:-.035em;margin:6px 0 10px;color:#102b60}.intro h1 span,footer span{color:#e84910}.intro p{margin:0;font-size:clamp(17px,1.8vw,29px);color:#465c7d}
.games{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(18px,2vw,32px);min-height:0}.game-card{display:grid;grid-template-rows:minmax(0,1fr) auto;gap:0;min-height:0;padding:12px;border:1px solid #dce4ee;border-radius:18px;background:#fff;box-shadow:0 5px 18px #1739610b}
.art{position:relative;overflow:hidden;border-radius:10px;min-height:0;background:#e4edf8}.art img{position:absolute;width:234.84%;max-width:none;height:auto;top:-84.68%;pointer-events:none}.board-art img{left:-13.34%}.boss-art img{left:-121.63%}
.card-content{padding:12px 7px 4px;display:grid;grid-template-rows:auto auto auto auto auto;gap:8px}.status{justify-self:start;display:inline-flex;align-items:center;gap:7px;padding:5px 12px;font-size:clamp(11px,1vw,16px);font-weight:700;border-radius:30px;text-transform:uppercase}.available{background:#d9f2df;color:#126d34}.coming{background:#e5e9ee;color:#4b5c72}
h2{font-size:clamp(22px,2.05vw,34px);line-height:1.1;margin:0;letter-spacing:-.02em}.card-content p{font-size:clamp(15px,1.35vw,23px);line-height:1.25;margin:0;color:#405577;min-height:2.5em}.detail{justify-self:start;border-radius:24px;background:#edf3fc;color:#254b85;font-size:clamp(13px,1.1vw,18px);padding:6px 14px}
.play{font:700 clamp(17px,1.5vw,25px) Arial,sans-serif;display:flex;align-items:center;justify-content:center;gap:15px;min-height:48px;padding:12px 18px;border:0;border-radius:9px;background:#164194;color:white;text-decoration:none;margin-top:3px}.play:hover{background:#103576}.play:focus-visible{outline:3px solid #e84910;outline-offset:4px}.play:disabled{background:#d6dce5;color:#536176;cursor:not-allowed}.play svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2}
footer{text-align:center;color:#164194;font-size:clamp(13px,1.1vw,18px);font-weight:600}
@media(max-height:760px){.portal{gap:10px;padding-top:16px;padding-bottom:12px}.portal-header{padding-bottom:12px}.intro h1{font-size:clamp(26px,3.2vw,46px);margin:0 0 5px}.intro p{font-size:20px}.card-content{gap:6px;padding-top:9px}.card-content p{font-size:16px}.play{min-height:42px;padding:9px}.status{padding:4px 10px}.detail{padding:4px 12px}.game-card{padding:10px}main{gap:14px}}
@media(max-width:650px){.portal{padding:12px;gap:10px}.header-note{display:none}.brand{gap:12px}.brand-title{padding-left:12px;font-size:16px}.logo{width:110px}.intro h1{font-size:26px}.intro p{font-size:16px}.games{gap:12px}.game-card{padding:8px;border-radius:12px}h2{font-size:19px}.card-content{padding:10px 2px 2px;gap:9px}.card-content p{font-size:14px;min-height:5em}.detail{font-size:12px;padding:5px 9px}.status{font-size:12px;padding:5px 8px}.play{font-size:15px;padding:10px 5px;gap:7px}footer{font-size:12px}}
/* Recorte das ilustrações da prévia aprovada, sem incorporar seus textos. */
.art{max-height:calc((100vw - 14vw)/4.28);width:100%;align-self:center;height:100%}
.art img{top:50%;transform:translateY(-47.66%)}

.portal{height:auto;min-height:100svh}.games{grid-template-columns:repeat(3,minmax(0,1fr))}.art{min-height:140px}.memory-art{background:#f7f9fc}
.memory-art .memory-artwork{position:absolute;inset:0;top:0;left:0;width:100%;height:100%;object-fit:cover;object-position:center;transform:none;pointer-events:none}
@media(max-width:1000px){.games{grid-template-columns:repeat(2,minmax(0,1fr))}.art{height:180px;max-height:none}}
@media(max-width:650px){.games{grid-template-columns:1fr;margin-top:20px}.card-content p{min-height:0}.art{height:160px}.portal main{display:block}}

.games .art{height:auto;aspect-ratio:2.13;min-height:0;max-height:none}
.runner-art img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;transform:none}
/* Quatro jogos em duas colunas, preservando a leitura das capas e dos títulos. */
.games{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:650px){.games{grid-template-columns:1fr}}

/* Login individual e painéis administrativos */
body.portal-login{background:#dfeafa;color:#12284e;min-height:100svh}
.login-layout{min-height:100svh;display:grid;grid-template-columns:minmax(0,1.1fr) minmax(420px,.9fr);background:#e7f0ff}
.login-art{min-height:100svh;overflow:hidden;background:#174c9d;position:relative}
.login-art img{width:100%;height:100%;position:absolute;inset:0;object-fit:cover;object-position:left center}
.login-side{display:grid;place-items:center;padding:36px clamp(20px,5vw,84px);position:relative}
.login-card{width:min(100%,600px);padding:clamp(28px,4vw,64px);border:1px solid #d8e2f1;border-radius:22px;background:#fff;box-shadow:0 18px 60px #1c43781a}
.login-card .brand{font-size:24px;font-weight:900;color:#124194;display:block;margin-bottom:36px;letter-spacing:-.04em}.login-card .brand span{font-size:12px;letter-spacing:.08em;color:#6d7c96}
.login-card .eyebrow{margin:0;color:#ec4c1b;font-size:12px;font-weight:900;letter-spacing:.12em}
.login-card h1{margin:7px 0 10px;font-size:clamp(26px,3vw,40px);letter-spacing:-.035em;color:#122b60}
.login-copy{margin:0 0 28px;color:#60708b;line-height:1.6;font-size:16px}
.login-card form{display:grid;gap:9px}.login-card label{font-weight:800;color:#122b60;margin-top:10px}.login-card input,.filters select,.filters input{width:100%;border:1px solid #c5d2e4;border-radius:10px;background:#fff;padding:13px 14px;font:inherit;color:#122b60}.login-card input:focus,.filters select:focus,.filters input:focus{outline:3px solid #1761c41e;border-color:#1761c4}
.login-card small{color:#74829a;margin-top:-5px}
.primary,.action{border:0;border-radius:10px;background:#1358c5;color:#fff;padding:13px 18px;font:inherit;font-weight:800;cursor:pointer;text-decoration:none;display:inline-flex;justify-content:center;align-items:center;gap:8px}.primary{margin-top:18px}.primary:hover,.action:hover{background:#0c469f}.secondary-action{border:1px solid #c4d1e3;background:#f5f8fc;color:#19477f;border-radius:9px;padding:9px 12px;font:inherit;font-weight:700;cursor:pointer}.text-button{border:0;background:none;color:#145bc8;text-decoration:underline;font:inherit;font-weight:700;cursor:pointer;padding:0}.register-row{margin:24px 0 0;color:#68758b;text-align:center}.forgot{display:block;margin:20px auto 0}.notice{margin-top:16px;padding:12px;border-radius:10px;background:#edf5ff;color:#17477f;line-height:1.45}.notice.error{background:#fff0ef;color:#9c2923}.login-side footer{position:absolute;bottom:20px;color:#68758b;text-align:center;font-weight:400}
.dashboard-layout{max-width:1500px;margin:auto;padding:clamp(16px,3vw,42px);color:#122b60}.dash-header{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:24px}.dash-header h1{margin:0;font-size:clamp(26px,3vw,40px)}.dash-header p{margin:6px 0 0;color:#60708b}.dash-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.dash-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:18px 0 24px}.metric,.dash-panel{background:#fff;border:1px solid #dce5f0;border-radius:16px;padding:18px;box-shadow:0 8px 24px #1739610a}.metric span{display:block;color:#6b7890;font-size:13px}.metric strong{display:block;margin-top:7px;font-size:30px;color:#1358c5}.dash-panel{margin:14px 0}.dash-panel h2{margin:0 0 16px;font-size:20px}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;min-width:680px}th,td{text-align:left;padding:11px 10px;border-bottom:1px solid #e4eaf2;vertical-align:top}th{background:#f1f5fa;color:#465b7b;font-size:13px}td small{display:block;color:#78869a;margin-top:3px}.status-pill{display:inline-block;border-radius:999px;padding:4px 9px;background:#fff5d9;color:#805510;font-size:12px;font-weight:800}.status-pill.approved{background:#e7f8ef;color:#1b7246}.status-pill.suspended,.status-pill.rejected{background:#ffedeb;color:#a33a32}.row-actions{display:flex;gap:6px;flex-wrap:wrap}.filters{display:flex;gap:10px;align-items:end;flex-wrap:wrap;margin-bottom:16px}.filters label{display:grid;gap:5px;font-size:12px;font-weight:800;color:#536681}.filters>*{min-width:150px}.report-results{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.empty-note{padding:15px;border-radius:10px;background:#f5f8fc;color:#60708b}.tabs{display:flex;gap:8px;margin:0 0 14px;flex-wrap:wrap}.tabs button[aria-pressed=true]{background:#154b99;color:white}.alert-box{margin:15px 0;padding:14px;background:#fff7e6;border:1px solid #f4d996;border-radius:10px;color:#705010}
@media(max-width:900px){.login-layout{grid-template-columns:1fr}.login-art{min-height:32svh;max-height:40svh}.login-side{padding:22px 16px 70px}.login-card{padding:24px}.login-card .brand{margin-bottom:20px}.dash-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.report-results{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:550px){.login-art{min-height:28svh}.login-card{border-radius:15px}.dash-grid,.report-results{grid-template-columns:1fr}.dashboard-layout{padding:14px}.metric strong{font-size:26px}}

.dashboard-layout{display:block;height:auto;max-width:1500px;width:100%;margin:auto}

/* Acesso do portal: ocupa a viewport e mantém o cadastro alternativo no mesmo cartão. */
body.portal-login{width:100%;height:100svh;min-height:100svh;overflow:hidden;background:#e8f0fc;color:#102b60}
body.portal-login>main.login-layout{width:100%;max-width:none;height:100svh;min-height:0;margin:0;display:grid;grid-template-columns:minmax(0,1.55fr) minmax(480px,1fr);grid-template-rows:minmax(0,1fr);gap:0;background:#eaf2ff}
body.portal-login .login-art{grid-column:1;grid-row:1;min-width:0;min-height:0;height:100%;position:relative;overflow:hidden;background:#164194}
body.portal-login .login-art img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:left center}
body.portal-login .login-side{grid-column:2;grid-row:1;min-width:0;min-height:0;height:100%;display:grid;grid-template-rows:minmax(0,1fr) auto;align-items:center;justify-items:center;gap:10px;padding:clamp(20px,3.3vw,54px);overflow:hidden}
body.portal-login .login-card{width:min(100%,590px);max-height:calc(100svh - 74px);overflow-y:auto;padding:clamp(26px,3.2vw,48px);border:1px solid #d7e2f2;border-radius:20px;background:#fff;box-shadow:0 16px 44px #17396116}
body.portal-login .login-card .brand{display:block;margin:0 0 24px;font-size:21px;font-weight:900;letter-spacing:-.04em;color:#164194}
body.portal-login .login-card .brand span{font-size:12px;letter-spacing:.08em;color:#687895}
body.portal-login .login-card .eyebrow{margin:0;color:#ef4b1b;font-size:12px;font-weight:900;letter-spacing:.13em}
body.portal-login .login-card h1{margin:7px 0 8px;font-size:clamp(28px,2.5vw,38px);line-height:1.08;letter-spacing:-.04em;color:#102b60}
body.portal-login .login-copy{margin:0 0 22px;color:#61718a;font-size:15px;line-height:1.5}
body.portal-login .login-card form{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
body.portal-login .login-card form[hidden],body.portal-login [hidden]{display:none!important}
body.portal-login .login-card form#signup-form:not([hidden]){grid-template-columns:repeat(2,minmax(0,1fr));column-gap:14px;row-gap:10px}
body.portal-login .form-field{display:grid;gap:6px;margin:0;color:#172d55;font-size:13px;font-weight:800}
body.portal-login .form-field input{min-width:0;height:48px;padding:0 13px;border:1px solid #c5d2e4;border-radius:9px;background:#fff;color:#122b60;font:500 15px Arial,Helvetica,sans-serif}
body.portal-login .form-field input::placeholder{color:#8995a7;font-weight:400}
body.portal-login .form-field input:focus{outline:3px solid #1761c41e;border-color:#1761c4}
body.portal-login .field-span-2{grid-column:1/-1}
body.portal-login .password-wrap{position:relative;display:block}
body.portal-login .password-wrap input{width:100%;padding-right:48px}
body.portal-login .password-toggle{position:absolute;top:0;right:3px;width:42px;height:100%;display:grid;place-items:center;border:0;border-radius:7px;background:transparent;color:#61718a;cursor:pointer}
body.portal-login .password-toggle:hover{color:#145bc8;background:#f3f7fc}
body.portal-login .password-toggle svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
body.portal-login .primary{width:100%;min-height:48px;margin:3px 0 0;border-radius:9px;background:#1458c5;font-size:16px}
body.portal-login .primary:hover{background:#0d469f}
body.portal-login .register-row{margin:20px 0 0;color:#62718a;font-size:14px}
body.portal-login .text-button{font-size:14px}
body.portal-login .forgot{margin:12px auto 0;font-size:13px}
body.portal-login .notice{font-size:14px}
body.portal-login .reset-back{justify-self:center;margin:2px auto 0}
body.portal-login .login-side footer{position:static;bottom:auto;color:#64728a;font-size:12px;font-weight:500}
@media(max-width:980px){body.portal-login>main.login-layout{grid-template-columns:minmax(0,1.2fr) minmax(420px,1fr)}}
@media(max-width:900px){body.portal-login>main.login-layout{display:block;background:#edf4ff}body.portal-login .login-art{display:none}body.portal-login .login-side{width:100%;height:100svh;padding:16px;gap:8px}body.portal-login .login-card{width:min(100%,520px);max-height:calc(100svh - 68px);padding:24px;border-radius:16px}body.portal-login .login-card .brand{margin-bottom:18px}body.portal-login .login-copy{margin-bottom:16px}body.portal-login .login-card form#signup-form:not([hidden]){grid-template-columns:minmax(0,1fr);gap:9px}body.portal-login .field-span-2{grid-column:1}body.portal-login .form-field input{height:46px}}
@media(max-height:720px) and (min-width:761px){body.portal-login .login-side{padding-top:12px;padding-bottom:12px}body.portal-login .login-card{max-height:calc(100svh - 46px);padding:22px 34px}body.portal-login .login-card .brand{margin-bottom:14px}body.portal-login .login-copy{margin-bottom:12px}body.portal-login .login-card form{gap:8px}body.portal-login .form-field input{height:42px}body.portal-login .register-row{margin-top:12px}body.portal-login .forgot{margin-top:8px}}
body.portal-login .login-art-brand{position:absolute;z-index:2;top:0;left:0;right:0;height:clamp(64px,9svh,98px);overflow:hidden;background:#fff}
body.portal-login .login-art-brand img{position:absolute;inset:auto auto auto clamp(18px,2.8vw,42px);top:calc((clamp(64px,9svh,98px) - clamp(170px,15vw,230px))/2);width:clamp(170px,15vw,230px);height:auto;max-width:none;object-fit:initial}
body.portal-login .login-art img.login-art-image{top:clamp(64px,9svh,98px);height:calc(100% - clamp(64px,9svh,98px));object-fit:cover;object-position:center center;background:#164194}
body.portal-login #role-picker .eyebrow{margin:0;color:#ef4b1b;font-size:12px;font-weight:900;letter-spacing:.13em}
body.portal-login #role-picker h1{margin:8px 0;font-size:clamp(28px,2.5vw,38px);line-height:1.08;letter-spacing:-.04em;color:#102b60}
body.portal-login #role-picker .login-copy{margin:0;color:#61718a;font-size:15px;line-height:1.5}
.role-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:24px}
.role-option{min-width:0;min-height:142px;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:9px;padding:16px 13px;border:1px solid #d7e2f2;border-radius:13px;background:#f8fbff;color:#173764;text-align:left;text-decoration:none;font:inherit;cursor:pointer;transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease,background .16s ease}
.role-option:hover{transform:translateY(-2px);border-color:#8db4ee;background:#fff;box-shadow:0 8px 22px #17396112}
.role-option:focus-visible{outline:3px solid #1761c455;outline-offset:2px}
.role-icon{width:38px;height:38px;display:grid;place-items:center;border-radius:11px;background:#e8f1ff;color:#1458c5}
.role-icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.role-title{font-size:14px;font-weight:800;line-height:1.2;color:#102b60}
.role-description{font-size:12px;line-height:1.35;color:#61718a}
.role-back{display:block;margin:0 0 22px;font-size:13px!important;text-decoration:none}
body.portal-login #login-panel{width:100%}
@media(max-width:550px){.role-options{grid-template-columns:1fr;gap:8px;margin-top:18px}.role-option{min-height:66px;display:grid;grid-template-columns:38px minmax(0,1fr);grid-template-rows:auto auto;column-gap:12px;row-gap:3px;align-content:center;padding:10px 13px}.role-icon{grid-column:1;grid-row:1/3}.role-title,.role-description{grid-column:2}.role-title{align-self:end}.role-description{align-self:start}}

/* Navegação lateral compartilhada dos painéis administrativo e docente */
.dashboard-shell.dashboard-layout{max-width:1680px;min-height:100svh;display:grid;grid-template-columns:248px minmax(0,1fr);align-items:start;gap:22px;padding:22px clamp(14px,2.6vw,40px)}
.dash-sidebar{position:sticky;top:22px;align-self:start;min-height:calc(100svh - 44px);display:flex;flex-direction:column;padding:18px 12px;background:#fff;border:1px solid #dce5f0;border-radius:18px;box-shadow:0 8px 24px #1739610a}
.dash-side-brand{display:flex;flex-direction:column;gap:3px;padding:8px 12px 22px;text-decoration:none;border-bottom:1px solid #e7edf5}
.dash-side-brand img{display:block;width:min(100%,148px);height:42px;object-fit:contain;object-position:left center}
.dash-side-brand span{font-size:12px;letter-spacing:1.4px;font-weight:800;color:#6e7d94}
.dash-nav{display:grid;gap:5px;padding-top:18px}
.dash-nav a{min-height:44px;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 12px;border-radius:9px;color:#435b7a;text-decoration:none;font-size:14px;font-weight:700;transition:background .15s ease,color .15s ease}
.dash-nav a::before{content:"";width:7px;height:7px;flex:none;border-radius:50%;background:#b8c8db;margin-right:4px}
.dash-nav a span{flex:1}
.dash-nav a:hover{background:#f1f6fc;color:#124b9c}
.dash-nav a[aria-current="page"]{background:#eaf2ff;color:#124b9c}
.dash-nav a[aria-current="page"]::before{background:#1761cc;box-shadow:0 0 0 4px #d5e6ff}
.nav-badge{min-width:22px;padding:3px 7px;border-radius:999px;background:#fff0d4;color:#915b00;text-align:center;font-size:12px}
.dash-side-note{margin-top:auto;padding:18px 12px 5px;color:#718096;font-size:12px;line-height:1.5}
.dashboard-content{min-width:0;width:100%;padding:0;color:#122b60}
.dashboard-content .dash-header{min-height:105px;margin:0 0 18px;align-items:center}
.dash-heading{min-width:0}.dash-heading .brand{font-size:14px;color:#154a97}.dash-heading .brand span{color:#65758c;font-size:12px;letter-spacing:1px}
.dash-heading h1{margin:4px 0 0}.dash-heading p{margin:5px 0 0}
.dash-menu-toggle{display:none;border:1px solid #cbd8e8;background:#fff;color:#1c4f90;border-radius:9px;padding:9px 12px;font:700 14px Arial,sans-serif;cursor:pointer}
.dashboard-content .dash-actions{justify-content:flex-end}
.dashboard-content .dash-grid{grid-template-columns:repeat(auto-fit,minmax(175px,1fr));margin:0 0 20px}
.dash-section{scroll-margin-top:20px}
[data-dashboard-view][hidden]{display:none!important}
.login-card .student-entry{margin:12px 0 0}
.student-portal .eyebrow{color:#ec4c1b;font-size:12px;font-weight:900;letter-spacing:.12em}
.dashboard-content .filters textarea{width:100%;min-height:140px;padding:12px 14px;border:1px solid #c5d2e4;border-radius:10px;background:#fff;color:#122b60;font:inherit;resize:vertical}
.dashboard-content .filters textarea:focus{outline:3px solid #1761c41e;border-color:#1761c4}
:root[data-theme="dark"] .dashboard-content .filters textarea{background:var(--ui-sunken);color:var(--ui-text);border-color:var(--ui-border-strong)}
.dashboard-content .dash-panel{margin:0 0 16px}
.report-subheading{margin:22px 0 10px;color:#25446f;font-size:16px;scroll-margin-top:18px}
.dashboard-content .filters{align-items:end}
.dashboard-content .filters label{min-width:145px;flex:1}
.dashboard-content .filters label select,.dashboard-content .filters label input{width:100%;min-width:0}
.dashboard-content .teacher-games{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.dashboard-content .teacher-games .game-card{min-height:175px;padding:15px}
.dashboard-content .teacher-games .card-content{padding:4px;gap:10px}
.metric .metric-text{font-size:18px;line-height:1.35;overflow-wrap:anywhere}
.dashboard-record-list{display:grid;gap:9px}
.dashboard-record{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px 15px;border:1px solid #e2e9f2;border-radius:11px;background:#fbfdff}
.dashboard-record-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.bank-delete-button{display:inline-grid;place-items:center;width:42px;height:40px;flex:none;padding:0;border:1px solid #efc4c4;border-radius:9px;background:#fff7f7;color:#b42318;cursor:pointer;transition:background .15s,border-color .15s,transform .15s}
.bank-delete-button:hover{background:#fee4e2;border-color:#e4a2a2;transform:translateY(-1px)}
.bank-delete-button:focus-visible{outline:3px solid #f3a6a0;outline-offset:2px}
.bank-delete-button:disabled{opacity:.55;cursor:wait;transform:none}
.bank-delete-button svg{width:19px;height:19px}
.dashboard-record strong{color:#1a3e6b;font-size:14px}
.dashboard-record p{margin:5px 0 0;color:#718096;font-size:13px}
.dashboard-record .secondary-action{flex:none;text-align:center;text-decoration:none}
.dashboard-content .empty-note{margin:0}
.dashboard-content .help:last-child{margin-bottom:0}
.dashboard-content #report-metrics.report-results{display:flex;flex-wrap:nowrap;gap:8px;margin:0 0 20px;overflow-x:auto;padding:2px 2px 7px;scrollbar-width:thin}
.dashboard-content #report-metrics.report-results>.metric{flex:1 0 132px;min-width:0;padding:12px 13px;border-radius:12px}
.dashboard-content #report-metrics.report-results .metric span{font-size:12px;white-space:nowrap}
.dashboard-content #report-metrics.report-results .metric strong{margin-top:4px;font-size:23px;line-height:1.1}
.theme-toggle{margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:12px;border:1px solid #dce5f0;border-radius:11px;background:#f7faff;color:#435b7a;font:700 13px Arial,sans-serif;cursor:pointer}
.switch-visual{width:42px;height:24px;flex:none;display:flex;align-items:center;padding:3px;border-radius:999px;background:#aab8cb;transition:background .18s ease}
.switch-visual i{width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #102b6040;transition:transform .18s ease}
.theme-toggle[aria-pressed="true"] .switch-visual{background:#1761c4}
.theme-toggle[aria-pressed="true"] .switch-visual i{transform:translateX(18px)}
:root[data-theme="dark"] body{background:var(--ui-bg);color:var(--ui-text)}
:root[data-theme="dark"] .dashboard-content{color:var(--ui-text)}
:root[data-theme="dark"] .dash-sidebar,:root[data-theme="dark"] .metric,:root[data-theme="dark"] .dash-panel{background:var(--ui-surface);border-color:var(--ui-border);box-shadow:none}
:root[data-theme="dark"] .dash-side-brand{border-color:var(--ui-border)}
:root[data-theme="dark"] .dash-side-brand span,:root[data-theme="dark"] .dash-heading p,:root[data-theme="dark"] .metric span,:root[data-theme="dark"] .dashboard-record p{color:var(--ui-muted)}
:root[data-theme="dark"] .dash-nav a{color:var(--ui-muted)}
:root[data-theme="dark"] .dash-nav a:hover,:root[data-theme="dark"] .dash-nav a[aria-current="page"]{background:var(--ui-surface-3);color:var(--ui-text)}
:root[data-theme="dark"] .dashboard-record,:root[data-theme="dark"] .empty-note,:root[data-theme="dark"] .theme-toggle,:root[data-theme="dark"] .secondary-action{background:var(--ui-surface-2);border-color:var(--ui-border);color:var(--ui-text-2)}
:root[data-theme="dark"] .bank-delete-button{background:var(--ui-danger-soft);border-color:var(--ui-danger-line);color:var(--ui-danger)}
:root[data-theme="dark"] .bank-delete-button:hover{background:var(--ui-danger-soft);border-color:var(--ui-danger)}
:root[data-theme="dark"] th{background:var(--ui-surface-3);color:var(--ui-text-2)}
:root[data-theme="dark"] td{border-color:var(--ui-border);color:var(--ui-text-2)}
:root[data-theme="dark"] input,:root[data-theme="dark"] select{background:var(--ui-sunken)!important;border-color:var(--ui-border-strong)!important;color:var(--ui-text)!important}
:root[data-theme="dark"] .status-pill{background:var(--ui-warning-soft);color:var(--ui-warning)}
:root[data-theme="dark"] .status-pill.approved{background:var(--ui-success-soft);color:var(--ui-success)}
:root[data-theme="dark"] .status-pill.suspended,:root[data-theme="dark"] .status-pill.rejected{background:var(--ui-danger-soft);color:var(--ui-danger)}
.dash-side-brand .logo-dark{display:none}
:root[data-theme="dark"] .dash-side-brand .logo-light{display:none}
:root[data-theme="dark"] .dash-side-brand .logo-dark{display:block}
:root[data-theme="dark"] .dash-side-brand span,:root[data-theme="dark"] .dash-side-note,:root[data-theme="dark"] .dash-heading p,:root[data-theme="dark"] .dash-heading .brand span,:root[data-theme="dark"] .metric span,:root[data-theme="dark"] .dashboard-record p,:root[data-theme="dark"] td small,:root[data-theme="dark"] .filters label{color:var(--ui-muted)}
:root[data-theme="dark"] .dashboard-record strong{color:var(--ui-text)}
:root[data-theme="dark"] .dash-heading .brand,:root[data-theme="dark"] .metric strong{color:var(--ui-primary)}
:root[data-theme="dark"] .dashboard-content .dash-panel h2,:root[data-theme="dark"] .dashboard-content .help,:root[data-theme="dark"] .report-subheading,:root[data-theme="dark"] .dashboard-content .admin-catalog-games .card-content h2{color:var(--ui-text)}
:root[data-theme="dark"] .dashboard-content .admin-catalog-games .card-content p{color:var(--ui-muted)}
:root[data-theme="dark"] .nav-badge{background:var(--ui-warning-soft);color:var(--ui-warning)}
.dashboard-content .admin-catalog-games{grid-template-columns:repeat(4,minmax(0,1fr));align-items:stretch;gap:10px;margin-top:12px}
.dashboard-content .admin-catalog-games .game-card{grid-template-rows:108px minmax(0,1fr);min-width:0;min-height:258px;height:100%;padding:8px;border-radius:14px}
.dashboard-content .admin-catalog-games .art{width:100%;height:108px;min-height:0;max-height:none;aspect-ratio:auto;align-self:stretch}
.dashboard-content .admin-catalog-games .card-content{display:flex;flex-direction:column;gap:6px;min-width:0;padding:9px 3px 2px}
.dashboard-content .admin-catalog-games .status{padding:4px 8px;font-size:12px}
.dashboard-content .admin-catalog-games .card-content h2{font-size:16px;line-height:1.2;overflow-wrap:anywhere}
.dashboard-content .admin-catalog-games .card-content p{min-height:0;font-size:12px;line-height:1.3}
.dashboard-content .admin-catalog-games .detail{padding:4px 8px;font-size:12px}
.dashboard-content .admin-catalog-games .play{min-height:36px;margin-top:auto;padding:8px 6px;font-size:13px;gap:6px}
:root[data-theme="dark"] .admin-catalog-games .game-card{background:var(--ui-surface);border-color:var(--ui-border)}
@media(max-width:1200px){.dashboard-content .admin-catalog-games{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(min-width:601px) and (max-width:820px){.dashboard-content .admin-catalog-games .game-card{grid-template-rows:82px minmax(0,1fr);min-height:210px}.dashboard-content .admin-catalog-games .art{height:82px}.dashboard-content .admin-catalog-games .card-content h2{font-size:14px}.dashboard-content .admin-catalog-games .card-content p{font-size:12px}.dashboard-content .admin-catalog-games .play{min-height:32px;font-size:12px}}
@media(max-width:600px){.dashboard-content .admin-catalog-games{grid-template-columns:1fr;gap:9px}.dashboard-content .admin-catalog-games .game-card{grid-template-columns:112px minmax(0,1fr);grid-template-rows:minmax(0,1fr);min-height:158px;height:auto;align-items:stretch}.dashboard-content .admin-catalog-games .art{height:100%;min-height:140px}.dashboard-content .admin-catalog-games .card-content{padding:4px 2px 2px}.dashboard-content .admin-catalog-games .card-content p{font-size:12px}.dashboard-content .admin-catalog-games .play{min-height:32px;font-size:12px}}
@media(max-width:1050px){.dashboard-shell.dashboard-layout{grid-template-columns:218px minmax(0,1fr);gap:16px}.dashboard-content .teacher-games{grid-template-columns:1fr}.dashboard-content .teacher-games .game-card{min-height:0}}
@media(max-width:820px){.dashboard-shell.dashboard-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;padding:14px}.dash-sidebar{position:sticky;top:0;z-index:20;display:flex;min-height:0;margin:0;padding:10px 12px;border-radius:0 0 14px 14px}.dash-side-brand{flex:none;flex-direction:row;align-items:center;gap:10px;padding:4px 12px 4px 4px;border:0;border-right:1px solid #e7edf5}.dash-side-brand img{width:100px;height:32px}.dash-nav{display:flex;align-items:center;gap:4px;min-width:0;overflow-x:auto;padding:0 6px;scrollbar-width:thin}.dash-nav a{flex:none;min-height:38px;font-size:13px;padding:8px 10px}.dash-side-note{display:none}.theme-toggle{flex:none;width:auto;margin:0 0 0 auto;padding:7px 9px}.theme-toggle>span:first-child{display:none}.dash-menu-toggle{display:none!important}.dashboard-content .dash-header{min-height:0;margin-bottom:16px}.dashboard-content .dash-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.dashboard-shell.dashboard-layout{padding:0 10px 10px;gap:12px}.dash-sidebar{top:0;gap:4px;margin:0 -10px;padding:8px 9px}.dash-side-brand{padding-right:7px}.dash-side-brand img{width:75px;height:28px}.dash-side-brand span{font-size:8px;letter-spacing:.6px}.dash-nav{gap:2px}.dash-nav a{min-height:34px;padding:7px 8px;font-size:12px}.dash-nav a::before{width:5px;height:5px;margin-right:0}.theme-toggle{padding:5px}.switch-visual{width:36px;height:21px}.switch-visual i{width:15px;height:15px}.theme-toggle[aria-pressed="true"] .switch-visual i{transform:translateX(15px)}.dash-heading h1{font-size:25px}.dashboard-content .dash-header{align-items:flex-start}.dashboard-content .dash-actions{align-self:flex-start}.dashboard-content .dash-grid{grid-template-columns:1fr 1fr;gap:9px}.dashboard-content .metric,.dashboard-content .dash-panel{padding:14px}.dashboard-content .metric strong{font-size:24px}.dashboard-record{align-items:flex-start;flex-direction:column;gap:10px}.dashboard-record-actions{width:100%;display:grid;grid-template-columns:1fr 1fr}.dashboard-record .secondary-action{width:100%}.dashboard-content .filters>*{min-width:0;width:100%}}

/* Base compartilhada dos painéis: navegação consistente, contraste e responsividade. */
.dashboard-shell.dashboard-layout{--dash-bg:#f4f7fb;--dash-surface:#fff;--dash-surface-muted:#f7f9fc;--dash-border:#dce5f0;--dash-text:#172b4d;--dash-muted:#61718a;--dash-primary:#1558bd;--dash-shadow:0 10px 30px #1739610a;max-width:none;min-height:100svh;grid-template-columns:252px minmax(0,1fr);gap:24px;padding:24px clamp(18px,3vw,48px);background:var(--dash-bg);color:var(--dash-text)}
.dashboard-shell .dash-sidebar{position:sticky;top:24px;height:calc(100svh - 48px);min-height:560px;overflow:auto;padding:18px 14px;background:var(--dash-surface);border:1px solid var(--dash-border);border-radius:18px;box-shadow:var(--dash-shadow);transition:width .2s ease,padding .2s ease}
.dashboard-shell .dash-side-brand{padding:10px 12px 20px}.dashboard-shell .dash-nav{gap:6px;padding-top:18px}.dashboard-shell .dash-nav a{min-height:44px;padding:10px 12px;color:var(--dash-muted)}.dashboard-shell .dash-nav a[aria-current=page]{background:#eaf2ff;color:#124b9c}.dashboard-shell .theme-toggle{margin-top:auto}
.dashboard-shell .dashboard-content{min-width:0;max-width:1600px;margin:0 auto;color:var(--dash-text)}.dashboard-shell .dash-header{min-height:90px;margin:0 0 22px;padding:2px 0 18px;border-bottom:1px solid var(--dash-border)}.dashboard-shell .dash-heading h1{font-size:clamp(26px,2.5vw,38px);letter-spacing:-.035em}.dashboard-shell .dash-heading p{color:var(--dash-muted)}.dashboard-shell .dash-menu-toggle{display:inline-flex;align-items:center;gap:8px;min-height:40px;margin:0 0 10px;padding:8px 12px;border-color:var(--dash-border);background:var(--dash-surface);color:var(--dash-text)}
.dashboard-shell .dash-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr));gap:16px}.dashboard-shell .metric,.dashboard-shell .dash-panel{border-color:var(--dash-border);border-radius:16px;box-shadow:var(--dash-shadow)}.dashboard-shell .metric{min-width:0;padding:18px 20px}.dashboard-shell .metric span{color:var(--dash-muted)}.dashboard-shell .dash-panel{padding:22px;margin:0 0 18px}.dashboard-shell .dash-panel h2{line-height:1.25}.dashboard-shell .help,.dashboard-shell .student-help{color:var(--dash-muted);line-height:1.55}.dashboard-shell .table-wrap{max-width:100%;border:1px solid var(--dash-border);border-radius:12px;overscroll-behavior-x:contain}.dashboard-shell table{min-width:720px}.dashboard-shell th{position:sticky;top:0;z-index:1}.dashboard-shell .filters{gap:12px}.dashboard-shell .filters>*{min-width:min(180px,100%)}.dashboard-shell .dashboard-record{border-color:var(--dash-border);border-radius:12px;background:var(--dash-surface-muted)}
.dashboard-shell.sidebar-collapsed{grid-template-columns:82px minmax(0,1fr)}.dashboard-shell.sidebar-collapsed .dash-sidebar{padding-inline:9px}.dashboard-shell.sidebar-collapsed .dash-side-brand{align-items:center;padding-inline:4px}.dashboard-shell.sidebar-collapsed .dash-side-brand img{width:54px;object-position:center}.dashboard-shell.sidebar-collapsed .dash-side-brand span,.dashboard-shell.sidebar-collapsed .dash-nav a span,.dashboard-shell.sidebar-collapsed .nav-badge,.dashboard-shell.sidebar-collapsed .theme-toggle>span:first-child,.dashboard-shell.sidebar-collapsed .admin-preview-nav a,.dashboard-shell.sidebar-collapsed .dashboard-audience a{display:none}.dashboard-shell.sidebar-collapsed .dash-nav a{justify-content:center;font-size:0;padding:10px}.dashboard-shell.sidebar-collapsed .dash-nav a::before{margin:0;width:9px;height:9px}.dashboard-shell.sidebar-collapsed .theme-toggle{justify-content:center;padding:10px 4px}
:root[data-theme=dark] .dashboard-shell.dashboard-layout{--dash-bg:var(--ui-bg);--dash-surface:var(--ui-surface);--dash-surface-muted:var(--ui-surface-2);--dash-border:var(--ui-border);--dash-text:var(--ui-text);--dash-muted:var(--ui-muted);--dash-primary:var(--ui-primary);--dash-shadow:none;background:var(--dash-bg);color:var(--dash-text)}
:root[data-theme=dark] .dashboard-shell .dash-sidebar,:root[data-theme=dark] .dashboard-shell .metric,:root[data-theme=dark] .dashboard-shell .dash-panel{background:var(--dash-surface);border-color:var(--dash-border);color:var(--dash-text)}
:root[data-theme=dark] .dashboard-shell .dash-nav a{color:var(--ui-text-2)}:root[data-theme=dark] .dashboard-shell .dash-nav a:hover,:root[data-theme=dark] .dashboard-shell .dash-nav a[aria-current=page]{background:var(--ui-surface-3);color:var(--ui-text)}:root[data-theme=dark] .dashboard-shell .dash-heading p,:root[data-theme=dark] .dashboard-shell .help,:root[data-theme=dark] .dashboard-shell .student-help,:root[data-theme=dark] .dashboard-shell .metric span{color:var(--dash-muted)}
:root[data-theme=dark] .dashboard-shell .table-wrap{border-color:var(--dash-border)}:root[data-theme=dark] .dashboard-shell th{background:var(--ui-surface-3);color:var(--ui-text)}:root[data-theme=dark] .dashboard-shell td{background:var(--ui-surface);border-color:var(--ui-border);color:var(--ui-text-2)}:root[data-theme=dark] .dashboard-shell .dashboard-record{background:var(--dash-surface-muted);border-color:var(--dash-border)}
.dashboard-shell .dash-backdrop{display:none}
@media(max-width:900px){.dashboard-shell.dashboard-layout,.dashboard-shell.sidebar-collapsed{grid-template-columns:minmax(0,1fr);gap:14px;padding:14px}.dashboard-shell .dash-sidebar,.dashboard-shell.sidebar-collapsed .dash-sidebar{position:fixed;inset:0 auto 0 0;z-index:100;width:min(84vw,320px);height:100dvh;min-height:0;padding:18px 14px;border-radius:0 18px 18px 0;transform:translateX(-105%);transition:transform .22s ease;box-shadow:0 0 0 100vmax transparent}.dashboard-shell .dash-sidebar.is-open{transform:translateX(0);box-shadow:0 0 0 100vmax #08142680}.dashboard-shell .dash-side-brand{flex-direction:column;align-items:flex-start;padding:10px 12px 20px;border:0;border-bottom:1px solid var(--dash-border)}.dashboard-shell .dash-side-brand img{width:min(100%,148px);height:42px}.dashboard-shell .dash-side-brand span{display:block!important;font-size:12px;letter-spacing:1.4px}.dashboard-shell .dash-nav{display:grid;align-items:stretch;overflow:visible;padding-top:18px}.dashboard-shell .dash-nav a{justify-content:space-between;min-height:44px;font-size:14px;padding:10px 12px}.dashboard-shell .dash-nav a span,.dashboard-shell.sidebar-collapsed .dash-nav a span{display:block}.dashboard-shell .dash-nav a::before{margin-right:4px}.dashboard-shell .nav-badge{display:block!important}.dashboard-shell .theme-toggle{width:100%;margin-top:auto}.dashboard-shell .theme-toggle>span:first-child{display:block!important}.dashboard-shell.sidebar-collapsed .admin-preview-nav a,.dashboard-shell.sidebar-collapsed .dashboard-audience a{display:block}.dashboard-shell .dash-menu-toggle{display:inline-flex!important}.dashboard-shell .dash-header{min-height:0}.dashboard-shell .dash-backdrop{display:block;position:fixed;inset:0;z-index:90;border:0;background:#08142680;opacity:0;pointer-events:none;transition:opacity .2s ease}.dashboard-shell.menu-open .dash-backdrop{opacity:1;pointer-events:auto}}
@media(max-width:600px){.dashboard-shell.dashboard-layout,.dashboard-shell.sidebar-collapsed{padding:10px;gap:12px}.dashboard-shell .dash-header{align-items:flex-start;gap:10px;margin-bottom:14px;padding-bottom:12px}.dashboard-shell .dash-heading h1{font-size:25px}.dashboard-shell .dash-actions{align-self:flex-start}.dashboard-shell .dash-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.dashboard-shell .metric{padding:13px}.dashboard-shell .metric strong{font-size:23px}.dashboard-shell .dash-panel{padding:15px;margin-bottom:12px}.dashboard-shell .filters{display:grid;grid-template-columns:minmax(0,1fr);align-items:stretch}.dashboard-shell .filters>*{width:100%;min-width:0}.dashboard-shell .dashboard-record{align-items:flex-start;flex-direction:column}.dashboard-shell .dashboard-record-actions{width:100%;justify-content:stretch}.dashboard-shell .table-wrap{margin-inline:-2px}.dashboard-shell .dash-menu-toggle{min-height:38px;padding:7px 10px}.dashboard-shell .dash-heading .brand{font-size:12px}}

/* Telas de configuração dos jogos: estilização própria dentro do painel e em acesso direto. */
body.game-setup-page{min-height:100svh;background:#f1f5fb;color:#17345f}
body.game-setup-page>header{position:sticky;top:0;z-index:5;display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:62px;padding:12px clamp(16px,3vw,38px);background:#14365f;color:#fff;box-shadow:0 3px 12px #102b601a}
body.game-setup-page>header strong{font-size:17px;letter-spacing:-.01em}
body.game-setup-page>header a{color:#fff;font-size:13px;font-weight:700;text-decoration:none}
body.game-setup-page>header a:hover{text-decoration:underline}
body.game-setup-page>main{display:block;width:min(100% - 32px,1320px);max-width:1320px;height:auto;min-height:calc(100svh - 62px);margin:0 auto;padding:26px 0 38px}
body.game-setup-page #dashboard{display:grid;gap:16px}
body.game-setup-page #dashboard[hidden]{display:none}
body.game-setup-page #dashboard>h1{margin:0;color:#17345f;font-size:clamp(25px,2.5vw,34px);line-height:1.15;letter-spacing:-.025em}
body.game-setup-page #dashboard>p{margin:-8px 0 2px;color:#61738e;font-size:14px;line-height:1.5}
body.game-setup-page .grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:16px}
body.game-setup-page .grid>div{display:grid;gap:16px;min-width:0}
body.game-setup-page .panel,body.game-setup-page .room{min-width:0;margin:0;padding:20px;border:1px solid #dbe5f1;border-radius:14px;background:#fff;box-shadow:0 5px 18px #1739610a}
body.game-setup-page .panel h2{margin:0 0 14px;color:#17345f;font-size:18px;line-height:1.3}
body.game-setup-page .panel h3{color:#17345f}
body.game-setup-page .panel p,body.game-setup-page .help{color:#61738e;font-size:13px;line-height:1.55}
body.game-setup-page form{display:grid;gap:12px}
body.game-setup-page label{display:grid;gap:6px;color:#294565;font-size:13px;font-weight:700}
body.game-setup-page input:not([type="checkbox"]):not([type="radio"]),body.game-setup-page select,body.game-setup-page textarea{width:100%;min-width:0;min-height:42px;padding:9px 11px;border:1px solid #cbd8e8;border-radius:8px;background:#fff;color:#17345f;font:400 14px Arial,Helvetica,sans-serif}
body.game-setup-page input[type="file"]{padding:7px;background:#f8faff}
body.game-setup-page input:focus,body.game-setup-page select:focus,body.game-setup-page textarea:focus{outline:3px solid #1761c41e;border-color:#1761c4}
body.game-setup-page button{min-height:40px;padding:9px 14px;border:1px solid #1558b8;border-radius:8px;background:#1558b8;color:#fff;font:700 13px Arial,sans-serif;cursor:pointer}
body.game-setup-page button:hover{background:#104a9e}
body.game-setup-page button:disabled{border-color:#c8d2df;background:#e5eaf1;color:#718096;cursor:not-allowed}
body.game-setup-page button.secondary,body.game-setup-page .secondary{border-color:#cbd8e8;background:#f4f7fb;color:#234c80}
body.game-setup-page small{display:inline-block;color:#6c7e97;font-size:12px;line-height:1.5}
body.game-setup-page .status{margin:10px 0;padding:11px 13px;border:1px solid #d5e4f6;border-radius:9px;background:#edf5ff;color:#254c7d;font-size:13px;line-height:1.45}
body.game-setup-page .inline{display:flex;align-items:center;justify-content:space-between;gap:12px}
body.game-setup-page .inline h2{margin:0}
body.game-setup-page pre{max-width:100%;overflow:auto;padding:13px;border:1px solid #e0e8f2;border-radius:9px;background:#f5f8fc;color:#30445f;font:12px/1.5 Consolas,"Courier New",monospace;white-space:pre-wrap}
body.game-setup-page details{margin-top:12px;padding:11px 13px;border:1px solid #e0e8f2;border-radius:9px;color:#3b5574}
body.game-setup-page summary{color:#234c80;font-weight:700;cursor:pointer}
body.game-setup-page #rooms,.game-setup-page .rooms{display:grid;gap:11px}
body.game-setup-page .room h3{margin:0 0 7px}
body.game-setup-page .room-grid{gap:16px}
body.game-setup-page dialog{max-width:min(92vw,520px);padding:22px;border:1px solid #dbe5f1;border-radius:14px;background:#fff;color:#17345f;box-shadow:0 18px 60px #102b6033}
body.game-setup-page dialog::backdrop{background:#09172a88}
:root[data-theme="dark"] body.game-setup-page{background:var(--ui-bg);color:var(--ui-text)}
:root[data-theme="dark"] body.game-setup-page>header{background:var(--ui-bg);border-bottom:1px solid var(--ui-border)}
:root[data-theme="dark"] body.game-setup-page #dashboard>h1,:root[data-theme="dark"] body.game-setup-page .panel h2,:root[data-theme="dark"] body.game-setup-page .panel h3{color:var(--ui-text)}
:root[data-theme="dark"] body.game-setup-page #dashboard>p,:root[data-theme="dark"] body.game-setup-page .panel p,:root[data-theme="dark"] body.game-setup-page .help,:root[data-theme="dark"] body.game-setup-page small{color:var(--ui-muted)}
:root[data-theme="dark"] body.game-setup-page .panel,:root[data-theme="dark"] body.game-setup-page .room,:root[data-theme="dark"] body.game-setup-page dialog{border-color:var(--ui-border);background:var(--ui-surface);color:var(--ui-text);box-shadow:none}
:root[data-theme="dark"] body.game-setup-page input:not([type="checkbox"]):not([type="radio"]),:root[data-theme="dark"] body.game-setup-page select,:root[data-theme="dark"] body.game-setup-page textarea{border-color:var(--ui-border-strong);background:var(--ui-sunken);color:var(--ui-text)}
:root[data-theme="dark"] body.game-setup-page input[type="file"],:root[data-theme="dark"] body.game-setup-page pre{border-color:var(--ui-border);background:var(--ui-bg);color:var(--ui-text-2)}
:root[data-theme="dark"] body.game-setup-page label,:root[data-theme="dark"] body.game-setup-page summary,:root[data-theme="dark"] body.game-setup-page details{color:var(--ui-text-2)}
:root[data-theme="dark"] body.game-setup-page .status{border-color:var(--ui-border);background:var(--ui-primary-soft);color:var(--ui-text-2)}
:root[data-theme="dark"] body.game-setup-page button.secondary,:root[data-theme="dark"] body.game-setup-page .secondary{border-color:var(--ui-border-strong);background:var(--ui-surface-3);color:var(--ui-text)}
@media(max-width:760px){body.game-setup-page>main{width:min(100% - 24px,620px);padding:18px 0 28px}body.game-setup-page .grid{grid-template-columns:1fr;gap:12px}body.game-setup-page .panel,body.game-setup-page .room{padding:15px}body.game-setup-page>header{min-height:56px;padding:10px 14px}body.game-setup-page>header strong{font-size:15px}}
@media(max-width:460px){body.game-setup-page>header{align-items:flex-start;flex-direction:column;gap:5px}body.game-setup-page .inline{align-items:flex-start;flex-direction:column}}
/* QR das salas: tamanho de leitura independente da largura do painel. */
.game-setup-page .qr-image{width:260px;max-width:100%;margin:16px auto;background:#fff;flex:none}
.game-setup-page .qr-image svg{display:block;width:100%;height:auto;aspect-ratio:1}
.game-setup-page .room-access{text-align:center;padding:14px 0}
.game-setup-page .room-access p{margin:8px 0}
.game-setup-page .room-access a{overflow-wrap:anywhere}
.game-setup-page #qr-dialog{box-sizing:border-box;width:min(680px,95vw);max-height:94vh;overflow:auto;border:0;border-radius:14px;padding:24px;text-align:center}
.game-setup-page #qr-dialog::backdrop{background:#102d4fd9}
.game-setup-page #qr-dialog .qr-image{width:min(420px,65vh);max-width:100%}
.game-setup-page #qr-dialog h2{overflow-wrap:anywhere}

/* Página antiga de jogos: artes próprias, sem recorte por posição */
.board-art img,.boss-art img{inset:0;left:0;top:0;width:100%;height:100%;object-fit:cover;object-position:center;transform:none}
/* Perfis de acesso: quando o cartão de login fica estreito (monitor em pé, resolução baixa, zoom), os três perfis viram linhas. */
#role-picker{container-type:inline-size}.role-title{overflow-wrap:anywhere}
@container (max-width:430px){.role-options{grid-template-columns:1fr;gap:8px;margin-top:18px}.role-option{min-height:66px;display:grid;grid-template-columns:38px minmax(0,1fr);grid-template-rows:auto auto;column-gap:12px;row-gap:3px;align-content:center;padding:10px 13px}.role-icon{grid-column:1;grid-row:1/3}.role-title,.role-description{grid-column:2}.role-title{align-self:end}.role-description{align-self:start}}
/* tela de acesso: Administrador entra pelo Professor (card oculto) → 2 colunas; crédito do autor no rodapé */
.role-options:has(> .role-option[hidden]){grid-template-columns:repeat(2,minmax(0,1fr))}
.role-option[hidden]{display:none!important}
footer .footer-credit{display:block;margin-top:4px;font-size:.92em;opacity:.9}
@media(max-width:700px){.role-options:has(> .role-option[hidden]){grid-template-columns:1fr}}

footer .footer-ai{display:block;margin-top:2px;font-size:.82em;opacity:.75}
footer .footer-credit,footer .footer-ai{color:inherit!important;font-weight:inherit;opacity:1;font-size:inherit}
