* { box-sizing: border-box; }
body { margin: 0; color: #214b72; font-family: 'Trebuchet MS', Arial, sans-serif; background: radial-gradient(ellipse at 12% 15%, #fff9 0, transparent 35%), linear-gradient(145deg, #b8e9fc, #e4f5ed 65%, #fff1d6); min-height: 100vh; }
main { max-width: 1250px; margin: auto; padding: 24px; }
nav { display: flex; justify-content: space-between; gap: 16px; align-items: center; font-weight: bold; }
a { color: #214b72; } #score { background: #fff9; padding: 10px 16px; border-radius: 30px; }
header { text-align: center; margin: 28px 0 20px; } h1 { font-size: clamp(36px, 5vw, 54px); margin: 6px 0; letter-spacing: -2px; } h2 { margin: 10px 0; font-size: 25px; } p { line-height: 1.5; margin: 8px 0 16px; }
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: 2px; color: #477b8f; }
.tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
button { font: inherit; font-weight: bold; cursor: pointer; border: 2px solid #fff; border-radius: 16px; padding: 12px 22px; background: #ffffffb8; color: #214b72; box-shadow: 0 4px 12px #24567e12; }
.tabs button[aria-pressed="true"] { background: #5369d7; color: white; }
button:focus-visible, a:focus-visible { outline: 3px solid #214b72; outline-offset: 4px; }
.workspace { display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px; align-items: start; }
.card { border: 3px solid white; border-radius: 26px; padding: 24px; background: #ffffffdc; box-shadow: 0 18px 38px #24567e18; }
.graph-card { background: linear-gradient(180deg, #fafdff, #eefaff); }
#graph svg { width: 100%; height: auto; display: block; } .tip { background: #e2f3fa; padding: 14px; border-radius: 14px; font-size: 14px; margin-bottom: 0; }
.question { padding: 12px 0; border-top: 1px solid #dceaf1; } label { display: block; line-height: 1.4; font-weight: bold; margin-bottom: 7px; font-size: 15px; }
.answer-line { display: flex; align-items: center; gap: 10px; } input { width: 110px; min-width: 0; border: 2px solid #b5cddd; background: white; border-radius: 11px; padding: 9px 12px; font: bold 20px 'Trebuchet MS', sans-serif; color: #214b72; }
input:focus { outline: 3px solid #5369d733; border-color: #5369d7; } input[aria-invalid="true"] { border: 3px solid #d8334b; background: #fff1f3; } input:read-only { border-color: #25a77c; background: #eafaf2; }
.answer-line { flex-wrap: wrap; }
.multi-hint { font-size: 13px; margin: 0 0 8px; }
.number-table { width: 100%; border-collapse: separate; border-spacing: 8px; margin: 12px 0 18px; text-align: center; }
.number-table caption { font-size: 14px; color: #477b8f; margin: 8px; }
.number-table td { background: #e2f3fa; border: 1px solid #c8e4f1; border-radius: 12px; padding: 14px 6px; font-size: 23px; font-weight: bold; }
#sort-numbers { margin-bottom: 20px; font-size: 14px; background: #e9edff; }
.print-link { text-align: center; margin-top: 24px; }
body[data-topic="hyppighed"] #questions { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
body[data-chart="statistics"] h1 { font-size: clamp(30px, 4vw, 48px); }
@media (max-width: 420px) { body[data-topic="hyppighed"] #questions { grid-template-columns: 1fr; } }
body[data-chart="pie"] input { width: 150px; }
.pie-total { text-align: center; padding: 12px; border-radius: 14px; background: #e2f3fa; font-size: 19px; }
.pie-legend { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pie-legend li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pie-legend li > span { width: 18px; height: 18px; border-radius: 5px; flex-shrink: 0; }
.result { font-size: 12px; color: #ab253a; } .question.correct .result { color: #187858; }
.check { background: #5369d7; color: white; width: 100%; margin-top: 12px; } button:disabled { cursor: default; opacity: .65; }
#feedback { min-height: 24px; font-weight: bold; margin-bottom: 0; }
#celebration { position: fixed; inset: 0; z-index: 5; display: grid; place-items: center; background: #e7f6ffb0; padding: 20px; } #celebration[hidden] { display: none; }
#celebration > div { padding: 35px; border: 4px solid white; border-radius: 28px; background: #fff9e4; box-shadow: 0 20px 80px #214b7233; text-align: center; font-size: clamp(26px, 5vw, 42px); font-weight: bold; } small { display: block; margin-top: 14px; font-size: 17px; }
#confetti { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 6; } .confetto { position: absolute; top: -30px; width: 11px; height: 18px; animation: fall 2.8s ease-in forwards; } @keyframes fall { to { transform: translate(60px, 110vh) rotate(700deg); } }
@media (max-width: 850px) { .workspace { grid-template-columns: 1fr; } main { padding: 14px; } .card { padding: 17px; } header { margin-top: 20px; } nav { font-size: 13px; } }
@media (prefers-reduced-motion: reduce) { .confetto { animation: none; top: var(--rest); transform: rotate(25deg); } }
