* { box-sizing: border-box; }
body { margin: 0; color: #17263c; background: #eef3f8; font: 1rem/1.55 system-ui,sans-serif; }
header { padding: 1rem max(1.25rem,calc((100% - 66rem)/2)); display: flex; justify-content: space-between; gap: 1rem; background: #102843; }
header a { color: white; text-decoration: none; font-weight: 750; }
header .portal { font-weight: 500; }
main { max-width: 66rem; margin: 2rem auto; padding: 0 1rem; }
section { padding: clamp(1rem,4vw,2.5rem); border: 1px solid #d6e0eb; border-radius: 1rem; background: white; }
h1,h2,h3 { line-height: 1.2; }
h1 { margin: 0 0 1.25rem; font-size: clamp(1.65rem,4vw,2.6rem); }
form, fieldset { margin: 1rem 0; }
fieldset { padding: 1rem; border: 1px solid #d6e0eb; border-radius: .65rem; }
label { display: block; font-weight: 600; margin: .7rem 0; }
input:not([type=checkbox]):not([type=radio]),textarea,select { display: block; width: 100%; border: 1px solid #8597ad; border-radius: .4rem; padding: .65rem; font: inherit; }
input[type=radio],input[type=checkbox] { width: 1.2rem; height: 1.2rem; vertical-align: middle; }
button,.primary { display: inline-block; border: 0; padding: .65rem .9rem; margin: .35rem .4rem .35rem 0; border-radius: .4rem; background: #184e82; color: white; font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; }
button:disabled { opacity: .55; cursor: default; }
a { color: #134f87; }
.session { display: block; padding: .7rem 0; }
.choice { display: flex; align-items: center; gap: .5rem; margin: .5rem 0; }
.choice input:first-child { flex: 0 0 auto; }
.clock,.score { font-variant-numeric: tabular-nums; font-size: clamp(2rem,8vw,4rem); font-weight: 800; margin: .5rem 0; }
#notice { border-radius: .5rem; padding: .75rem; background: #fff1df; color: #752b05; }
[data-mode=screen] section { font-size: clamp(1rem,2.5vw,1.65rem); }
[data-mode=play] form label:has(input[type=radio],input[type=checkbox]) { background: #eef3f8; padding: .9rem; border-radius: .45rem; }

header nav { display: flex; flex-wrap: wrap; gap: .4rem 1rem; justify-content: flex-end; }

header nav { align-items: center; }
.quiz-user { color: white; border: 1px solid #7792b0; border-radius: 2rem; padding: .25rem .7rem; }
.quiz-logout { margin: 0; }
.quiz-logout button { margin: 0; padding: .25rem .65rem; }
.quiz-login { max-width: 32rem; margin-inline: auto; }
.login-error { color: #752b05; background: #fff1df; border-radius: .5rem; padding: .7rem; }
