:root{
--pitch: #0a0a0c;
--pitch-line: #28282c;
--card-bg: #18181b;
--yellow: #f2c14e;
--yellow-dark: #c99a2e;
--red: #d8453d;
--blue: #3d5fd9;
--green: #4caf6d;
--ink: #f4f1ea;
--ink-dim: #b7c9be;
}
*{box-sizing:border-box;}
html,body{margin:0;padding:0;}
body{
background: var(--pitch);
background-image:
url('bg-main.jpg'),
repeating-linear-gradient(0deg, rgba(255,255,255,0.015) 0 2px, transparent 2px 40px),
repeating-linear-gradient(90deg, rgba(255,255,255,0.015) 0 2px, transparent 2px 40px);
background-position: center, 0 0, 0 0;
background-repeat: no-repeat, repeat, repeat;
background-size: cover, auto, auto;
background-attachment: fixed, fixed, fixed;
color: var(--ink);
font-family: 'Segoe UI', Roboto, -apple-system, sans-serif;
min-height: 100vh;
display:flex;
flex-direction:column;
align-items:center;
padding: 16px 12px 40px;
}
.screen{ width:100%; max-width: 520px; display:none; }
.open-app-banner{
position: sticky; top: 0; z-index: 50; width:100%; max-width: 520px;
background: var(--yellow); color: #241a04;
border-radius: 10px; padding: 10px 12px; margin-bottom: 14px;
display:flex; align-items:center; justify-content:space-between; gap:10px;
font-size: 13px; font-weight:700; line-height:1.4;
}
.open-app-banner-actions{ display:flex; align-items:center; gap:6px; flex:none; }
.open-app-banner-actions button{
font-family:inherit; font-size:12px; font-weight:800; cursor:pointer;
border-radius:7px; padding:7px 10px; border:none;
background:#241a04; color: var(--yellow);
}
#open-app-banner-close{ padding:7px 9px; background:transparent; color:#241a04; }
.screen.active{ display:flex; flex-direction:column; align-items:center; }
.logo-eyebrow{
font-size: 11px;
letter-spacing: 3px;
text-transform: uppercase;
color: var(--yellow);
font-weight: 700;
margin-bottom: 4px;
text-align:center;
}
.logo-title{
font-size: 24px;
margin: 0 0 28px;
font-weight: 800;
letter-spacing: 0.3px;
text-align:center;
}
#menu-main-title{
font-style: italic;
}
.logo-tagline{
font-size: 13px;
color: var(--ink-dim);
text-align:center;
margin-bottom: 24px;
font-style: italic;
}
.streak-badge{
font-size: 13px;
color: var(--yellow);
text-align:center;
margin: -12px 0 22px;
font-weight: 600;
}
#mode-select-title{ margin-bottom: 24px; }
.stats-summary{
width:100%;
display:grid;
grid-template-columns: 1fr 1fr;
gap: 10px;
margin-bottom: 20px;
}
.stats-summary .stat-card{
background: var(--card-bg); border: 1px solid var(--pitch-line);
border-radius: 10px; padding: 14px 8px; text-align:center;
}
.stats-summary .stat-num{ font-size: 22px; font-weight: 800; color: var(--yellow); }
.stats-summary .stat-label{ font-size: 10px; color: var(--ink-dim); text-transform:uppercase; letter-spacing: 0.5px; margin-top:4px; }
.stats-categories{ width:100%; display:flex; flex-direction:column; gap: 10px; }
.stat-row{
background: var(--card-bg); border: 1px solid var(--pitch-line);
border-radius: 10px; padding: 12px 14px;
}
.stat-row-top{ display:flex; justify-content:space-between; font-size: 13px; font-weight:700; margin-bottom: 6px; }
.stat-row-bar{ height: 6px; background: var(--pitch-line); border-radius: 4px; overflow:hidden; }
.stat-row-bar-inner{ height:100%; background: var(--green); border-radius: 4px; }
.stat-row-empty{ font-size: 12px; color: var(--ink-dim); text-align:center; padding: 6px 0; }
.stat-row-exam-title{ font-size: 13px; font-weight:700; margin-bottom: 10px; }
.stat-row-exam-stats{ display:flex; gap: 10px; }
.stat-row-exam-stat{
flex:1; background: var(--pitch); border-radius:8px; padding: 8px 6px;
text-align:center; display:flex; flex-direction:column; gap:2px;
}
.stat-row-exam-stat-label{ font-size: 10px; color: var(--ink-dim); text-transform:uppercase; letter-spacing:0.3px; }
.stat-row-exam-stat-value{ font-size: 16px; font-weight:800; color: var(--yellow); }
.menu-btn{
width:100%;
font-family: inherit;
background: var(--card-bg);
border: 1px solid var(--pitch-line);
color: var(--ink);
padding: 18px 16px;
border-radius: 12px;
font-size: 16px;
font-weight: 700;
cursor: pointer;
text-align: left;
margin-bottom: 12px;
display:flex;
align-items:center;
gap: 12px;
transition: transform .08s ease, border-color .15s ease;
}
.menu-btn:active{ transform: scale(0.98); }
.menu-btn:hover{ border-color: var(--yellow); }
.menu-btn .icon{ font-size: 22px; }
.menu-btn .sub{
display:block;
font-size: 12px;
font-weight: 400;
color: var(--ink-dim);
margin-top: 2px;
}
.menu-section-title{
width:100%;
font-size: 11px;
text-transform: uppercase;
letter-spacing: 2px;
color: var(--yellow);
font-weight: 700;
margin: 18px 0 8px;
}
.menu-section-title:first-of-type{ margin-top: 4px; }
.disclaimer-footer{
width:100%;
text-align:center;
font-size: 11px;
color: var(--ink-dim);
margin-top: 24px;
padding-top: 14px;
border-top: 1px solid var(--pitch-line);
line-height: 1.5;
}
.install-link{
display:block;
width:100%;
text-align:center;
font-size: 13px;
color: var(--yellow);
text-decoration: none;
font-weight: 700;
margin-top: 20px;
padding: 12px;
background: var(--card-bg);
border: 1px solid var(--pitch-line);
border-radius: 10px;
}
.disclaimer-link{
display:block;
width:100%;
text-align:center;
font-size: 11px;
color: var(--ink-dim);
background:none;
border:none;
font-family: inherit;
cursor:pointer;
margin-top: 14px;
padding: 4px;
text-decoration: underline;
}
.disclaimer-topbar{
width:100%;
display:flex;
justify-content:space-between;
margin-bottom: 14px;
}
.small-btn{
background: var(--card-bg);
border: 1px solid var(--pitch-line);
color: var(--ink-dim);
font-family: inherit;
font-size: 11px;
padding: 6px 10px;
border-radius: 8px;
cursor:pointer;
}
.disclaimer-body{
width:100%;
font-size: 13px;
line-height: 1.6;
color: var(--ink);
}
.disclaimer-body h3{
color: var(--yellow);
font-size: 15px;
margin: 0 0 10px;
}
.disclaimer-body p{ margin: 0 0 12px; }
.disclaimer-body .d-card{
background: var(--card-bg);
border: 1px solid var(--pitch-line);
border-radius: 14px;
padding: 18px 18px 6px;
margin-bottom: 14px;
}

.disclaimer-body b{ color: var(--yellow); }
.disclaimer-tagline{ text-align:center; font-style:italic; margin-top: 20px; }
.modal-overlay{
position: fixed; inset: 0; background: rgba(0,0,0,0.7);
display:flex; align-items:center; justify-content:center;
z-index: 1000; padding: 20px;
}
.modal-box{
background: var(--pitch); border: 1px solid var(--pitch-line);
border-radius: 14px; padding: 22px 18px; max-width: 480px;
max-height: 85vh; overflow-y: auto;
box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}
.modal-title{
font-size: 18px; font-weight: 800; color: var(--yellow);
text-align:center; margin-bottom: 14px;
}
.modal-body{ font-size: 13px; line-height: 1.6; color: var(--ink); }
.modal-body p{ margin: 0 0 10px; }
.modal-actions{ margin-top: 16px; }
.question-panel{
width:100%;
background: var(--card-bg);
border: 1px solid var(--pitch-line);
border-radius: 10px;
padding: 20px 16px;
font-size: 16px;
font-weight: 600;
line-height: 1.5;
text-align: center;
box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}
.single-options{ margin-top: 16px; }
header{ width:100%; text-align:center; margin-bottom: 14px; position:relative; }
.pressure-timer{
position:absolute; top:0; right:0;
width:40px; height:40px; border-radius:50%;
display:flex; align-items:center; justify-content:center;
font-size:16px; font-weight:800; color:#f4f1ea;
background: var(--card-bg); border:2px solid var(--yellow);
transition: border-color .2s, color .2s;
}
.pressure-timer.is-low{ border-color:#e0524d; color:#e0524d; }
.exam-timer{
position:absolute; top:0; right:0;
min-width:64px; height:32px; padding:0 10px; border-radius:16px;
display:flex; align-items:center; justify-content:center;
font-size:14px; font-weight:800; color:#f4f1ea; letter-spacing:0.5px;
background: var(--card-bg); border:2px solid var(--yellow);
transition: border-color .2s, color .2s;
}
.exam-timer.is-low{ border-color:#e0524d; color:#e0524d; }
.justification-hint{
width:100%; text-align:left; font-size: 13px; color: var(--green);
font-weight: 600; margin-top: 10px; line-height: 1.6;
background:#163d28; border:1px solid var(--green); border-radius: 10px;
padding: 10px 12px;
}
.pressure-toggle-row{
display:flex; align-items:center; justify-content:space-between;
background: var(--card-bg); border:1px solid var(--pitch-line);
border-radius:10px; padding:12px 14px; margin-bottom:14px;
}
.pressure-toggle-row .label{ font-size:13px; font-weight:600; }
.pressure-toggle-row .sub{ font-size:11px; color: var(--ink-dim); display:block; margin-top:2px; }
.pressure-switch{
width:44px; height:26px; border-radius:13px; background:#3a3a3f;
position:relative; cursor:pointer; flex-shrink:0; border:none; padding:0;
}
.pressure-switch .knob{
position:absolute; top:3px; left:3px; width:20px; height:20px; border-radius:50%;
background:#f4f1ea; transition: left .15s;
}
.pressure-switch.is-on{ background: var(--yellow); }
.pressure-switch.is-on .knob{ left:21px; background:#0a0a0c; }
.eyebrow{
font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
color: var(--yellow); font-weight: 700; margin-bottom: 4px;
}
h1{ font-size: 20px; margin: 0; font-weight: 800; letter-spacing: 0.5px; }
.progress{ font-size: 12px; color: var(--ink-dim); margin-top: 4px; }
.progress-bar-outer{
width: 100%;
max-width: 220px;
height: 6px;
background: var(--pitch-line);
border-radius: 4px;
margin: 8px auto 0;
overflow: hidden;
}
.progress-bar-inner{
height: 100%;
background: var(--yellow);
border-radius: 4px;
width: 0%;
transition: width .25s ease;
}
.score-live{ font-size: 12px; color: var(--yellow); margin-top: 2px; font-weight:700; }
.video-wrap{
width: 100%; aspect-ratio: 16/9; background: #000;
border-radius: 10px 10px 0 0; overflow: hidden; border: 1px solid var(--pitch-line);
border-bottom: none;
position: relative;
transition: width .2s ease, border-radius .2s ease;
}
.video-wrap iframe{ width:100%; height:100%; border:0; display:block; pointer-events: none; }
.video-zoom-layer{
width:100%; height:100%;
transform-origin: center center;
transition: transform .12s ease-out;
touch-action: none;
}
#player-mount{ width:100%; height:100%; }
.tap-shield{
position: absolute;
inset: 0;
display:flex;
align-items:center;
justify-content:center;
cursor: pointer;
background: transparent;
touch-action: none;
}
.tap-shield .play-icon{
width: 72px; height: 72px;
border-radius: 50%;
background: rgba(14,43,31,0.85);
border: 2px solid var(--yellow);
display:flex;
align-items:center;
justify-content:center;
transition: opacity .15s ease, transform .15s ease;
pointer-events: none;
}
.tap-shield .play-icon svg{ width:30px; height:30px; }
.tap-shield.is-playing .play-icon{ opacity: 0; }
.seek-flash{
position: absolute;
top: 50%;
transform: translateY(-50%) scale(0.8);
background: rgba(0,0,0,0.55);
border-radius: 50%;
width: 64px; height: 64px;
display:flex; align-items:center; justify-content:center;
color: var(--ink);
font-size: 13px; font-weight: 700;
opacity: 0;
pointer-events: none;
transition: opacity .2s ease, transform .2s ease;
}
.seek-flash-left{ left: 12%; }
.seek-flash-right{ right: 12%; }
.seek-flash.show{ opacity: 1; transform: translateY(-50%) scale(1); }
.expand-btn{
position: absolute;
top: 8px; right: 8px;
width: 34px; height: 34px;
border-radius: 8px;
background: rgba(0,0,0,0.5);
border: 1px solid rgba(255,255,255,0.15);
display:flex; align-items:center; justify-content:center;
cursor:pointer;
z-index: 5;
}
.expand-btn svg{ width:16px; height:16px; fill: var(--ink); }
.video-wrap.is-expanded{
width: calc(100% + 24px);
margin-left: -12px;
margin-right: -12px;
border-radius: 0;
}
.answers-area{ transition: opacity .15s ease; }
.answers-area.hidden-while-expanded{ display:none; }
.video-controls-bar{
width:100%;
display:flex;
align-items:center;
justify-content:center;
gap: 5px;
background: var(--card-bg);
border: 1px solid var(--pitch-line);
border-top: none;
border-radius: 0 0 10px 10px;
padding: 8px 6px;
box-shadow: 0 6px 20px rgba(0,0,0,0.25);
overflow-x: auto;
}
.ctrl-btn{
width: 40px; height: 40px;
border-radius: 50%;
background: rgba(255,255,255,0.06);
border: 1px solid var(--pitch-line);
display:flex;
align-items:center;
justify-content:center;
cursor:pointer;
flex-shrink: 0;
}
.ctrl-btn:active{ transform: scale(0.92); }
.ctrl-btn svg{ width:18px; height:18px; fill: var(--ink); }
.ctrl-btn.pill{
width: auto;
min-height: 40px;
padding: 0 10px;
border-radius: 20px;
font-size: 12px;
font-weight: 700;
color: var(--ink);
font-family: inherit;
}
.speed-btn.is-active{
background: var(--yellow);
color: #241a04;
}
.ctrl-divider{
width: 1px;
height: 26px;
background: var(--pitch-line);
flex-shrink: 0;
}
.cols{ width:100%; display:grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.col-label{
font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px;
color: var(--ink-dim); margin-bottom: 6px; padding-left: 2px;
}
.options{ display:flex; flex-direction:column; gap: 8px; }
button.opt{
font-family: inherit; background: var(--card-bg); border: 1px solid var(--pitch-line);
color: var(--ink); padding: 14px 10px; min-height: 44px; border-radius: 8px; font-size: 14px;
font-weight: 600; cursor: pointer; text-align: left;
transition: transform .08s ease, border-color .15s ease, background .15s ease;
}
button.opt:active{ transform: scale(0.97); }
button.opt.selected{ border-color: var(--yellow); background: #1a3f2c; }
button.opt.correct{ border-color: var(--green); background: #163d28; color: var(--green); }
button.opt.wrong{ border-color: var(--red); background: #3a1c1a; color: #ffb3ae; }
button.opt:disabled{ cursor: default; }
.action-row{ width:100%; margin-top: 16px; display:flex; gap: 10px; }
.btn{
flex:1; font-family: inherit; font-weight: 800; font-size: 14px; letter-spacing: 0.5px;
text-transform: uppercase; padding: 13px; border-radius: 8px; border: none; cursor: pointer;
}
.btn-primary{ background: var(--yellow); color: #241a04; }
.btn-primary:disabled{ background: #4a4632; color: #8a8672; cursor: not-allowed; }
.btn-ghost{
background: transparent; border: 1px solid var(--pitch-line); color: var(--ink-dim);
}
.result-banner{
width:100%; margin-top: 14px; padding: 12px 14px; border-radius: 8px;
font-size: 13px; font-weight: 700; text-align:center; display:none;
}
.result-banner.show{ display:block; }
.result-banner.ok{ background:#163d28; color: var(--green); border:1px solid var(--green); }
.result-banner.bad{ background:#3a1c1a; color:#ffb3ae; border:1px solid var(--red); }
.next-countdown{ font-size: 11px; color: var(--ink-dim); margin-top: 8px; text-align:center; }
.fallback-link{
width:100%; text-align:center; font-size: 11px; color: var(--yellow);
margin-top: 6px; cursor: pointer; text-decoration: underline;
}
.final-icon{ font-size: 48px; margin-bottom: 8px; }
.final-title{ font-size: 22px; font-weight: 800; margin-bottom: 6px; text-align:center; }
.final-score{
font-size: 17px; color: var(--yellow); font-weight: 700; text-align:center; margin-bottom: 8px;
}
.final-message{
font-size: 14px; color: var(--ink); text-align:center; margin-bottom: 8px; font-weight: 600;
}
.final-best{
font-size: 12px; color: var(--ink-dim); text-align:center; margin-bottom: 8px;
}
.final-laws{
font-size: 13px; color: var(--yellow); text-align:center; margin-bottom: 24px;
font-weight: 600; line-height: 1.6; padding: 0 8px;
}
.final-laws-title{ margin-bottom: 4px; }
.law-hint{
width:100%; text-align:center; font-size: 13px; color: var(--yellow);
font-weight: 600; margin-top: 10px; line-height: 1.6;
}
.law-line{ display:block; }
.pdf-download-link{
display:block; width:100%; text-align:center; box-sizing:border-box;
font-size: 12px; color: var(--ink-dim); text-decoration: underline;
margin-top: 20px; padding: 10px;
}
.back-link{
background:none; border:none; color: var(--ink-dim); font-family:inherit;
font-size: 12px; cursor:pointer; margin-bottom: 14px; align-self:flex-start;
display:flex; align-items:center; gap:4px;
}
.duel-intro{
font-size: 13px; color: var(--ink-dim); line-height: 1.6;
text-align:center; margin: 0 0 18px; padding: 0 4px;
}
.duel-join-box{
width:100%; border-top: 1px solid var(--pitch-line); margin-top: 16px; padding-top: 16px;
}
.duel-join-label{ font-size: 13px; color: var(--ink-dim); margin: 0 0 8px; text-align:center; }
.duel-join-row{ display:flex; gap: 8px; }
.duel-join-row input{
flex:1; min-width:0; background: var(--card-bg); border: 1px solid var(--pitch-line);
color: var(--ink); font-family: inherit; font-size: 16px; font-weight: 700;
letter-spacing: 2px; text-transform: uppercase; text-align:center;
border-radius: 8px; padding: 10px 8px;
}
.duel-join-row button{ flex:none; padding: 10px 18px; }
.duel-error{
width:100%; text-align:center; font-size: 13px; color: #ffb3ae;
background:#3a1c1a; border:1px solid var(--red); border-radius: 8px;
padding: 10px 12px; margin-top: 14px; font-weight:600;
}
.duel-code-box{
width:100%; background: var(--card-bg); border: 1px solid var(--pitch-line);
border-radius: 12px; padding: 18px; text-align:center; margin-bottom: 16px;
}
.duel-code-label{ font-size: 11px; color: var(--ink-dim); text-transform:uppercase; letter-spacing:0.5px; margin:0 0 6px; }
.duel-code-value{ font-size: 30px; font-weight: 800; letter-spacing: 4px; color: var(--yellow); margin:0; }
.duel-code-expiry{ font-size: 11px; color: var(--ink-dim); margin: 8px 0 0; }
.duel-score-card{
width:100%; background: var(--card-bg); border: 1px solid var(--pitch-line);
border-radius: 10px; padding: 14px; text-align:center; margin-bottom: 14px;
font-size: 14px; font-weight:700;
}
.duel-waiting-note{ font-size: 12px; color: var(--ink-dim); text-align:center; margin: 0 0 16px; }
.duel-result-rows{ width:100%; display:flex; flex-direction:column; gap:10px; }
.duel-result-row{
display:flex; align-items:center; justify-content:space-between;
background: var(--card-bg); border: 1px solid var(--pitch-line);
border-radius: 10px; padding: 14px 16px; font-size: 15px; font-weight:700;
}
.duel-result-row .duel-result-score{ font-size: 18px; font-weight: 800; }
.duel-result-row.is-winner{ background:#163d28; border-color: var(--green); color: var(--green); }
.duel-result-row.is-winner .duel-result-score{ color: var(--green); }
.duel-result-row.is-tie{ background:#2a2410; border-color: var(--yellow); color: var(--yellow); }
.duel-result-row.is-tie .duel-result-score{ color: var(--yellow); }
#menu-duel{ position:relative; }
.dot-badge{
display:none; position:absolute; top:10px; right:14px;
width:10px; height:10px; border-radius:50%;
background: var(--red); box-shadow: 0 0 0 2px var(--card-bg);
}
.law-grid{
width:100%; display:grid; grid-template-columns: repeat(3, 1fr);
gap: 8px;
}
.law-btn{
font-family: inherit; background: var(--card-bg); border: 1px solid var(--pitch-line);
color: var(--ink); font-size: 13px; font-weight:700; cursor:pointer;
border-radius: 10px; padding: 12px 6px; text-align:center;
display:flex; align-items:center; justify-content:center; text-align:center;
line-height: 1.3; transition: transform .08s ease, border-color .15s ease;
}
.law-btn:active{ transform: scale(0.97); }
.law-btn:hover{ border-color: var(--yellow); }
.law-btn-wide{ grid-column: 1 / -1; font-size: 14px; padding: 12px 10px; }

/* aviso de "voltar a premir para sair" (botão físico/gesto de voltar do telemóvel) */
#exit-hint{
position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(12px);
background: var(--card-bg); color: var(--ink); border: 1px solid var(--pitch-line);
padding: 10px 18px; border-radius: 999px; font-size: 14px; box-shadow: 0 6px 20px rgba(0,0,0,.4);
opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; z-index: 999;
}
#exit-hint.show{ opacity: 1; transform: translateX(-50%) translateY(0); }

/* três botões pequenos e simétricos no rodapé do menu (Sobre, Quem Somos, Leis de Jogo) */
.mini-menu-row{
display:flex; gap:8px; width:100%; margin-top:14px;
}
.mini-menu-btn{
flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px;
background: var(--card-bg); border:1px solid var(--pitch-line); border-radius:10px;
padding:10px 4px; text-align:center; text-decoration:none; color:var(--ink);
font-family:inherit; cursor:pointer; font-size:11px; font-weight:600; line-height:1.25;
}
.mini-menu-btn:hover{ border-color: var(--yellow); }
.mini-menu-btn:active{ transform: scale(0.97); }
.mini-menu-btn .mini-icon{ font-size:18px; }
