:root {
  --bg: #0b1f29;
  --bg2: #102c3a;
  --card: #163a4b;
  --line: #255066;
  --text: #f5fbfc;
  --muted: #a9c9d4;
  --accent: #f2b544;
  --good: #2fbf71;
  --bad: #ef4d5a;
  --c0: #ff6f59; --c1: #2e86a6; --c2: #e0a53a; --c3: #2e9e74;
  --radius: 12px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: radial-gradient(1200px 700px at 20% -10%, #1a4a5e 0%, transparent 60%), var(--bg);
  color: var(--text);
  font-family: 'Literata', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.brand { font-weight: 900; letter-spacing: -0.02em; }
.brand span { color: var(--accent); }

.btn {
  background: var(--accent); color: #123647; font-weight: 700;
  padding: 12px 20px; border-radius: 999px; transition: transform .08s, filter .15s;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: default; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn.small { padding: 7px 14px; font-size: 14px; }

input[type=text], input[type=password], input[type=number], select {
  width: 100%; background: var(--bg2); border: 1px solid var(--line); border-radius: 10px;
  padding: 11px 12px; outline: none;
}
input:focus, select:focus { border-color: var(--accent); }
label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 6px; }

.err { background: #4a1822; color: #ffd7dc; border: 1px solid #7a2533; padding: 10px 12px; border-radius: 10px; margin-top: 12px; }

/* Svarlitir */
.opt0 { background: var(--c0); } .opt1 { background: var(--c1); }
.opt2 { background: var(--c2); } .opt3 { background: var(--c3); }

/* Hljóðbylgja */
.wave { display: flex; gap: 6px; align-items: center; height: 70px; justify-content: center; }
.wave i { width: 9px; border-radius: 9px; background: var(--accent); height: 12px; }
.wave.on i { animation: wv 0.9s ease-in-out infinite; }
.wave i:nth-child(2n) { animation-delay: .15s; } .wave i:nth-child(3n) { animation-delay: .3s; }
.wave i:nth-child(5n) { animation-delay: .45s; }
@keyframes wv { 0%,100% { height: 12px; } 50% { height: 66px; } }

@keyframes pop { from { transform: scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }
.pop { animation: pop .35s cubic-bezier(.2,1.4,.4,1); }

/* ---------- Útlit Hljómeyjar (sama og hljomey.is) ----------
   Oswald í fyrirsögnum, hnöppum og tölum, Literata í texta,
   dökkblár grunnur og gulur „lampi“ sem áherslulitur. */
body {
  background:
    radial-gradient(1100px 650px at 15% -10%, #1a4a5e 0%, transparent 60%),
    linear-gradient(180deg, #123647 0%, var(--bg) 70%);
  background-attachment: fixed;
}
h1, h2, h3, h4, .brand, .btn, .big, .code, .timer, .kicker, .sec-title, .badge, .pts, .rank, .pcount,
.qinfo .t, .result, .ans, .chip, .modes, nav, th, legend, button {
  font-family: 'Oswald', 'Arial Narrow', sans-serif;
}
h1, h2, h3, .big, .sec-title { font-weight: 600 !important; letter-spacing: 0.01em; }
.brand { font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.brand span { color: var(--accent); }
.btn { border-radius: 4px; font-weight: 500; letter-spacing: 0.02em; text-transform: none; }
.btn.small { border-radius: 4px; }
label { font-family: 'Oswald', 'Arial Narrow', sans-serif; letter-spacing: 0.02em; }
input[type=text], input[type=password], input[type=number], select { border-radius: 6px; }
.err { border-radius: 6px; }

/* Merki leikjanna (fjall, hús með spilunarhnapp og nótur) framan við heiti á öllum síðum */
.brand::before {
  content: "";
  display: inline-block;
  width: 1.9em;
  height: 1.2em;
  margin-right: 0.45em;
  vertical-align: -0.15em;
  background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 240 150%22%3E%3Cpolygon points=%220,140 45,60 90,100 130,35 175,90 220,55 240,140%22 fill=%22%236FC4DC%22/%3E%3Cpolygon points=%2210,140 55,75 95,110 140,140%22 fill=%22%232E86A6%22/%3E%3Cpolygon points=%2255,140 55,55 90,20 125,55 125,140%22 fill=%22%23fff%22/%3E%3Cpolygon points=%2280,80 80,120 112,100%22 fill=%22%23F2B544%22/%3E%3Cg fill=%22%23F2B544%22%3E%3Cellipse cx=%22183%22 cy=%2240%22 rx=%228%22 ry=%226%22 transform=%22rotate(-20 183 40)%22/%3E%3Cellipse cx=%22211%22 cy=%2232%22 rx=%228%22 ry=%226%22 transform=%22rotate(-20 211 32)%22/%3E%3Crect x=%22188%22 y=%228%22 width=%223.5%22 height=%2231%22/%3E%3Crect x=%22216%22 y=%222%22 width=%223.5%22 height=%2229%22/%3E%3Cpolygon points=%22188,8 219.5,2 219.5,9 188,15%22/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain;
}
