/* Bibelquiz – felles stilark i Apple-inspirert stil */

:root {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --surface-2: #fbfbfd;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #86868b;
  --line: rgba(0, 0, 0, 0.08);
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --green: #28a745;
  --green-bg: #e8f7ec;
  --red: #e5352b;
  --red-bg: #fdecea;
  --orange: #ff9500;
  --radius-lg: 28px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 2px 6px rgba(0, 0, 0, 0.04), 0 12px 32px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 4px 10px rgba(0, 0, 0, 0.06), 0 22px 48px rgba(0, 0, 0, 0.1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  color-scheme: light dark;
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000;
    --surface: #1c1c1e;
    --surface-2: #2c2c2e;
    --text: #f5f5f7;
    --text-2: #a1a1a6;
    --text-3: #86868b;
    --line: rgba(255, 255, 255, 0.1);
    --accent: #2997ff;
    --accent-hover: #47a6ff;
    --green-bg: rgba(48, 209, 88, 0.16);
    --red-bg: rgba(255, 69, 58, 0.16);
    --green: #30d158;
    --red: #ff453a;
    --shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
    --shadow-hover: 0 0 0 1px rgba(255, 255, 255, 0.14);
  }
}
:root[data-theme="dark"] {
    --bg: #000000;
    --surface: #1c1c1e;
    --surface-2: #2c2c2e;
    --text: #f5f5f7;
    --text-2: #a1a1a6;
    --text-3: #86868b;
    --line: rgba(255, 255, 255, 0.1);
    --accent: #2997ff;
    --accent-hover: #47a6ff;
    --green-bg: rgba(48, 209, 88, 0.16);
    --red-bg: rgba(255, 69, 58, 0.16);
    --green: #30d158;
    --red: #ff453a;
    --shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
    --shadow-hover: 0 0 0 1px rgba(255, 255, 255, 0.14);
  }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 19px;
  line-height: 1.47;
  letter-spacing: -0.012em;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
h1, h2, h3 { margin: 0; letter-spacing: -0.025em; line-height: 1.1; font-weight: 700; }
p { margin: 0; }
button, input, textarea, select { font: inherit; color: inherit; letter-spacing: inherit; }
[hidden] { display: none !important; }

/* ---------- Navigasjonslinje ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: 60px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 max(22px, calc((100vw - 1080px) / 2));
  background: rgba(245, 245, 247, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .nav { background: rgba(22, 22, 23, 0.72); }
}
:root[data-theme="dark"] .nav { background: rgba(22, 22, 23, 0.72); }
.nav-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 21px; text-decoration: none; color: var(--text); }
.nav-brand .logo { font-size: 26px; }
.nav-right { display: flex; align-items: center; gap: 14px; }
.nav-user { display: flex; align-items: center; gap: 8px; font-size: 17px; color: var(--text-2); }
.nav-user .avatar { font-size: 24px; }

/* ---------- Layout ---------- */
.container { max-width: 1080px; margin: 0 auto; padding: 0 22px 96px; }
.narrow { max-width: 720px; }
.hero { padding: 72px 0 40px; text-align: center; }
.eyebrow { font-size: 19px; font-weight: 600; color: var(--orange); margin-bottom: 10px; }
.headline { font-size: clamp(44px, 7vw, 76px); font-weight: 800; letter-spacing: -0.035em; }
.subhead { font-size: clamp(21px, 2.6vw, 28px); color: var(--text-2); margin-top: 16px; font-weight: 500; line-height: 1.3; }
.section-title { font-size: clamp(32px, 4.4vw, 48px); margin: 56px 0 8px; }
.section-sub { font-size: 21px; color: var(--text-2); margin-bottom: 28px; }
.gradient-text {
  background: linear-gradient(90deg, #0071e3, #7d4cdb 50%, #ff6a3d);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Knapper ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 28px;
  border-radius: 980px; border: none; cursor: pointer;
  font-size: 19px; font-weight: 600;
  background: var(--accent); color: #fff;
  transition: background 0.2s var(--ease), transform 0.15s var(--ease), opacity 0.2s;
  text-decoration: none;
}
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.45; cursor: default; transform: none; }
.btn-lg { min-height: 60px; padding: 0 36px; font-size: 21px; }
.btn-block { width: 100%; }
.btn-secondary { background: rgba(0, 113, 227, 0.1); color: var(--accent); }
.btn-secondary:hover { background: rgba(0, 113, 227, 0.16); }
.btn-ghost { background: transparent; color: var(--accent); padding: 0 14px; min-height: 40px; font-size: 17px; font-weight: 500; }
.btn-ghost:hover { background: rgba(0, 113, 227, 0.08); }
.btn-danger { background: var(--red-bg); color: var(--red); }
.btn-danger:hover { background: var(--red); color: #fff; }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 15px; }
.link { color: var(--accent); text-decoration: none; cursor: pointer; background: none; border: none; padding: 0; font-weight: 500; }
.link:hover { text-decoration: underline; }

/* ---------- Kort ---------- */
.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 36px;
}

/* ---------- Skjema ---------- */
.auth-wrap { min-height: calc(100vh - 60px); display: grid; place-items: center; padding: 40px 22px; }
.auth-card { width: 100%; max-width: 460px; text-align: center; }
.auth-card .big-icon { font-size: 64px; line-height: 1; margin-bottom: 14px; }
.auth-card h1 { font-size: 40px; margin-bottom: 8px; }
.auth-card .lead { color: var(--text-2); font-size: 19px; margin-bottom: 28px; }
.form { display: grid; gap: 14px; text-align: left; }
.field label { display: block; font-size: 15px; font-weight: 600; color: var(--text-2); margin: 0 0 6px 4px; }
.input, .textarea, .select {
  width: 100%;
  min-height: 56px; padding: 14px 18px;
  font-size: 19px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.textarea { min-height: 96px; resize: vertical; line-height: 1.4; }
.input:focus, .textarea:focus, .select:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.18); }
.form-error { color: var(--red); background: var(--red-bg); padding: 12px 16px; border-radius: var(--radius-sm); font-size: 17px; }
.auth-switch { margin-top: 22px; color: var(--text-2); font-size: 17px; }

.avatar-picker { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.avatar-option {
  aspect-ratio: 1; font-size: 30px; border-radius: 14px; border: 2px solid transparent;
  background: var(--surface-2); cursor: pointer; transition: transform 0.15s, border-color 0.15s;
}
.avatar-option:hover { transform: scale(1.08); }
.avatar-option.selected { border-color: var(--accent); background: rgba(0, 113, 227, 0.1); }

/* ---------- Kategorier og sett ---------- */
.category { margin-top: 56px; }
.category-head { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.category-icon {
  width: 72px; height: 72px; flex: none; border-radius: 20px;
  display: grid; place-items: center; font-size: 38px;
  background: color-mix(in srgb, var(--cat) 14%, transparent);
}
.category-head h2 { font-size: clamp(30px, 4vw, 40px); }
.category-head p { color: var(--text-2); font-size: 19px; margin-top: 4px; }
.category-progress { margin-left: auto; text-align: right; flex: none; }
.category-progress .num { font-size: 28px; font-weight: 700; }
.category-progress .lbl { font-size: 15px; color: var(--text-3); }

.sets { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.set-card {
  position: relative; text-align: left; cursor: pointer;
  background: var(--surface); border: none; border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 28px; min-height: 220px;
  display: flex; flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.set-card:hover:not(.locked) { transform: translateY(-4px) scale(1.01); box-shadow: var(--shadow-hover); }
.set-card .set-num { font-size: 15px; font-weight: 600; color: var(--cat); text-transform: uppercase; letter-spacing: 0.04em; }
.set-card h3 { font-size: 28px; margin: 8px 0 8px; }
.set-card .set-desc { color: var(--text-2); font-size: 17px; flex: 1; }
.set-card .set-read {
  margin-top: 14px; padding: 10px 14px; border-radius: 12px; font-size: 16px; font-weight: 600; line-height: 1.35;
  background: color-mix(in srgb, var(--cat) 9%, transparent); color: var(--text);
}
.set-card .set-read .lbl { display: block; font-size: 13px; font-weight: 600; color: var(--cat); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 2px; }
.set-card.locked .set-read { opacity: 1; }
.set-card .set-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; font-size: 17px; }
.set-card .set-meta { color: var(--text-3); }
.set-card .badge { font-weight: 600; padding: 6px 14px; border-radius: 980px; font-size: 15px; }
.badge-done { background: var(--green-bg); color: var(--green); }
.badge-go { background: color-mix(in srgb, var(--cat) 14%, transparent); color: var(--cat); }
.set-card.locked { cursor: default; opacity: 0.55; }
.set-card.locked .lock { position: absolute; top: 24px; right: 26px; font-size: 26px; }
.set-card.current { box-shadow: 0 0 0 3px var(--cat), var(--shadow); }

/* ---------- Quiz ---------- */
.quiz-top { display: flex; align-items: center; gap: 16px; padding: 28px 0 8px; }
.quiz-top .close { width: 44px; height: 44px; border-radius: 50%; border: none; background: var(--surface); box-shadow: var(--shadow); font-size: 20px; cursor: pointer; flex: none; color: var(--text-2); }
.progress-bar { flex: 1; height: 10px; background: var(--line); border-radius: 10px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--cat, var(--accent)); border-radius: 10px; transition: width 0.5s var(--ease); }
.quiz-count { font-size: 17px; font-weight: 600; color: var(--text-2); flex: none; min-width: 56px; text-align: right; }

.question-wrap { padding: 36px 0 0; animation: rise 0.45s var(--ease); }
.question-label { font-size: 17px; font-weight: 600; color: var(--cat, var(--accent)); margin-bottom: 12px; }
.question-text { font-size: clamp(32px, 4.6vw, 48px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.12; margin-bottom: 36px; }
.answers { display: grid; gap: 14px; }
.answer {
  display: flex; align-items: center; gap: 18px; width: 100%;
  min-height: 76px; padding: 16px 22px; text-align: left;
  font-size: 22px; font-weight: 500;
  background: var(--surface); border: 2px solid transparent; border-radius: var(--radius);
  box-shadow: var(--shadow); cursor: pointer;
  transition: transform 0.15s var(--ease), border-color 0.2s, background 0.2s;
}
.answer:hover:not(:disabled) { border-color: var(--cat, var(--accent)); transform: translateX(4px); }
.answer:disabled { cursor: default; }
.answer .letter {
  width: 44px; height: 44px; flex: none; border-radius: 12px;
  display: grid; place-items: center; font-size: 19px; font-weight: 700;
  background: var(--bg); color: var(--text-2);
}
.answer.correct { border-color: var(--green); background: var(--green-bg); }
.answer.correct .letter { background: var(--green); color: #fff; }
.answer.wrong { border-color: var(--red); background: var(--red-bg); animation: shake 0.4s; }
.answer.wrong .letter { background: var(--red); color: #fff; }
.answer.dim { opacity: 0.45; }

.feedback {
  margin-top: 24px; padding: 24px 26px; border-radius: var(--radius);
  display: flex; gap: 18px; align-items: flex-start; animation: rise 0.35s var(--ease);
}
.feedback.good { background: var(--green-bg); }
.feedback.bad { background: var(--red-bg); }
.feedback .fb-icon { font-size: 36px; line-height: 1; }
.feedback .fb-title { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.feedback .fb-text { font-size: 18px; color: var(--text); }
.feedback .fb-ref { margin-top: 10px; font-size: 16px; font-weight: 600; color: var(--text-2); }
.quiz-actions { margin-top: 28px; display: flex; justify-content: flex-end; }

/* ---------- Resultat ---------- */
.result { text-align: center; padding: 64px 0; animation: rise 0.5s var(--ease); }
.ring { width: 220px; height: 220px; margin: 0 auto 28px; position: relative; }
.ring svg { transform: rotate(-90deg); }
.ring .ring-bg { stroke: var(--line); }
.ring .ring-fg { transition: stroke-dashoffset 1.2s var(--ease); stroke-linecap: round; }
.ring .ring-label { position: absolute; inset: 0; display: grid; place-content: center; }
.ring .ring-num { font-size: 56px; font-weight: 800; letter-spacing: -0.04em; }
.ring .ring-of { font-size: 17px; color: var(--text-2); }
.result h1 { font-size: clamp(40px, 6vw, 60px); }
.result .subhead { margin: 14px auto 0; max-width: 560px; }
.unlock-box {
  margin: 32px auto 0; max-width: 480px; padding: 22px 26px; border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow); display: flex; align-items: center; gap: 16px; text-align: left;
  animation: pop 0.6s 0.6s both var(--ease);
}
.unlock-box .u-icon { font-size: 40px; }
.unlock-box .u-title { font-size: 15px; color: var(--text-2); font-weight: 600; }
.unlock-box .u-name { font-size: 22px; font-weight: 700; }
.result-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }

/* ---------- Modal ---------- */
.modal {
  border: none; padding: 0; border-radius: var(--radius-lg); background: var(--surface); color: var(--text);
  width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 48px);
  box-shadow: 0 30px 80px rgba(0,0,0,0.3);
}
.modal::backdrop { background: rgba(0,0,0,0.35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal[open] { animation: pop 0.3s var(--ease); }
.modal-head { padding: 26px 28px 0; }
.modal-head h2 { font-size: 30px; }
.modal-body { padding: 22px 28px; display: grid; gap: 16px; }
.modal-foot { padding: 0 28px 26px; display: flex; justify-content: flex-end; gap: 10px; }
.hint { font-size: 14px; color: var(--text-3); margin: 6px 0 0 4px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ---------- Kallenavn ---------- */
.nick-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.nick-option {
  min-height: 52px; padding: 8px 12px; border-radius: var(--radius-sm); cursor: pointer;
  border: 2px solid var(--line); background: var(--surface-2); font-size: 17px; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: border-color 0.15s, background 0.15s, transform 0.1s;
}
.nick-option:active { transform: scale(0.97); }
.nick-option.selected { border-color: var(--accent); background: rgba(0, 113, 227, 0.1); color: var(--accent); }
.nick-more { margin-top: 6px; width: 100%; }
.input-row { display: flex; gap: 8px; }
.input-row .input { flex: 1; min-width: 0; }
.dice {
  width: 56px; flex: none; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: var(--surface-2); font-size: 26px; cursor: pointer; transition: transform 0.2s var(--ease);
}
.dice:hover { transform: rotate(-12deg) scale(1.06); }
.nav-link { font-size: 17px; font-weight: 500; color: var(--text); text-decoration: none; padding: 6px 12px; border-radius: 980px; }
.nav-link:hover, .nav-link.active { background: rgba(0, 0, 0, 0.05); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .nav-link:hover, :root:not([data-theme="light"]) .nav-link.active { background: rgba(255, 255, 255, 0.1); }
}
:root[data-theme="dark"] .nav-link:hover, :root[data-theme="dark"] .nav-link.active { background: rgba(255, 255, 255, 0.1); }
button.nav-user { background: none; border: none; cursor: pointer; padding: 4px 10px; border-radius: 980px; }
button.nav-user:hover { background: rgba(0, 0, 0, 0.05); }

/* ---------- Toppliste ---------- */
.segmented {
  display: flex; gap: 4px; padding: 4px; margin: 0 auto 8px; width: fit-content; max-width: 100%;
  background: rgba(0, 0, 0, 0.05); border-radius: 980px; overflow-x: auto; scrollbar-width: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .segmented { background: rgba(255, 255, 255, 0.08); }
}
:root[data-theme="dark"] .segmented { background: rgba(255, 255, 255, 0.08); }
.segment {
  border: none; background: none; cursor: pointer; white-space: nowrap;
  padding: 10px 20px; border-radius: 980px; font-size: 17px; font-weight: 500; color: var(--text-2);
  transition: background 0.2s, color 0.2s;
}
.segment.active { background: var(--surface); color: var(--text); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12); }

.podium {
  display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: 16px;
  max-width: 720px; margin: 48px auto 32px;
}
.podium-spot { text-align: center; animation: rise 0.5s var(--ease) both; }
.podium-spot:nth-child(1) { animation-delay: 0.15s; }
.podium-spot:nth-child(3) { animation-delay: 0.3s; }
.podium-avatar { font-size: 52px; line-height: 1; margin-bottom: 6px; }
.podium-spot.first .podium-avatar { font-size: 68px; }
.podium-name { font-size: 20px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 4px; }
.podium-points { font-size: 16px; color: var(--text-2); margin-bottom: 12px; }
.podium-block {
  border-radius: 22px 22px 8px 8px; display: grid; place-items: start center; padding-top: 16px;
  font-size: 40px; box-shadow: var(--shadow);
}
.podium-spot.first .podium-block { height: 180px; background: linear-gradient(180deg, #ffe58a, #f5c542); }
.podium-spot.second .podium-block { height: 132px; background: linear-gradient(180deg, #eef0f3, #c9ced6); }
.podium-spot.third .podium-block { height: 100px; background: linear-gradient(180deg, #f6d2b0, #d9a273); }
.podium-spot.empty { opacity: 0.35; }
.podium-spot.me .podium-name { color: var(--accent); }

.board { max-width: 720px; margin: 0 auto; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.board-row { display: flex; align-items: center; gap: 16px; padding: 16px 24px; border-bottom: 1px solid var(--line); animation: rise 0.4s var(--ease) both; }
.board-row:last-child { border-bottom: none; }
.board-row.me { background: rgba(0, 113, 227, 0.08); }
.board-rank { width: 36px; font-size: 20px; font-weight: 700; color: var(--text-3); text-align: center; flex: none; }
.board-avatar { font-size: 32px; flex: none; }
.board-name { flex: 1; min-width: 0; font-size: 20px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-name .you { font-size: 14px; font-weight: 600; color: var(--accent); margin-left: 6px; }
.board-sets { font-size: 15px; color: var(--text-3); flex: none; }
.board-points { font-size: 22px; font-weight: 700; flex: none; min-width: 64px; text-align: right; }
.board-points small { font-size: 14px; font-weight: 500; color: var(--text-3); }
.board-gap { text-align: center; color: var(--text-3); padding: 6px; font-size: 20px; letter-spacing: 4px; border-bottom: 1px solid var(--line); }
.board-note { text-align: center; color: var(--text-2); font-size: 17px; margin: 22px auto 0; max-width: 560px; }

/* ---------- Diverse ---------- */
.center-load { display: grid; place-items: center; min-height: 50vh; }
.spinner { width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent); animation: spin 0.8s linear infinite; }
.toast {
  position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%) translateY(20px);
  background: rgba(29, 29, 31, 0.92); color: #fff; padding: 14px 24px; border-radius: 980px;
  font-size: 17px; font-weight: 500; opacity: 0; transition: all 0.3s var(--ease); z-index: 200; pointer-events: none;
  backdrop-filter: blur(20px);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.empty { text-align: center; color: var(--text-2); padding: 48px 0; font-size: 21px; }
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 100; }

@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(0.85); } to { opacity: 1; transform: none; } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

@media (max-width: 640px) {
  body { font-size: 18px; }
  .card { padding: 26px 22px; }
  .hero { padding: 48px 0 24px; }
  .category-head { flex-wrap: wrap; }
  .category-progress { margin-left: 0; text-align: left; width: 100%; }
  .answer { font-size: 20px; min-height: 68px; }
  .nav-user .name { display: none; }
  .nav-link { padding: 6px 8px; }
  .nav { padding: 0 12px; }
  .nav-brand { font-size: 19px; gap: 6px; }
  .nav-right { gap: 2px; }
  .nav .btn-ghost { padding: 0 8px; }
  .theme-toggle:not(.floating) { width: 36px; height: 36px; }
  .nav-link .name-sm { display: none; }
  .podium { gap: 8px; margin-top: 32px; }
  .podium-avatar { font-size: 40px; }
  .podium-spot.first .podium-avatar { font-size: 52px; }
  .podium-name { font-size: 16px; }
  .board-row { padding: 14px 16px; gap: 12px; }
  .board-sets { display: none; }
  .segmented { flex-wrap: wrap; justify-content: center; border-radius: 24px; }
  .segment { padding: 8px 14px; font-size: 16px; }
  .two-col { grid-template-columns: 1fr; }
}

/* Velkomstskjerm etter registrering */
.nick-badge {
  display: inline-block; font-size: 30px; font-weight: 800; letter-spacing: -0.02em;
  padding: 14px 28px; border-radius: var(--radius); background: rgba(0, 113, 227, 0.1); color: var(--accent);
  border: 2px dashed rgba(0, 113, 227, 0.4); word-break: break-all; margin-bottom: 8px;
}

/* Knapp for lys og mørk modus */
.theme-toggle {
  width: 40px; height: 40px; flex: none; border-radius: 50%; border: none; cursor: pointer;
  background: transparent; font-size: 20px; line-height: 1; display: grid; place-items: center;
  transition: background 0.2s, transform 0.3s var(--ease);
}
.theme-toggle:hover { background: rgba(127, 127, 127, 0.14); }
.theme-toggle:active { transform: rotate(-20deg) scale(0.92); }
.theme-toggle.floating {
  position: fixed; top: max(12px, env(safe-area-inset-top)); right: 12px; z-index: 60;
  background: var(--surface); box-shadow: var(--shadow);
}
