:root {
  color-scheme: light;
  --bg: #f5f7f3;
  --panel: #ffffff;
  --panel-soft: #eef4eb;
  --text: #17231b;
  --muted: #667069;
  --line: #dce5db;
  --forest: #205f34;
  --forest-dark: #173b24;
  --forest-soft: #d8efdc;
  --amber: #d89119;
  --danger: #ba2d2d;
  --danger-soft: #f8dddd;
  --success: #217346;
  --success-soft: #dff4e7;
  --shadow: 0 18px 50px rgba(23, 35, 27, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
  padding: 0.75rem clamp(1rem, 4vw, 3rem);
  background: rgba(245, 247, 243, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.1rem;
}

.brand-logo,
.brand-mark {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 8px;
  background: var(--forest);
  color: #fff;
}

.brand-logo {
  display: block;
  padding: 0;
  background: transparent;
  object-fit: contain;
}

.desktop-nav,
.top-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.desktop-nav a,
.nav-button {
  min-height: 2.5rem;
  padding: 0.55rem 0.8rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
}

.desktop-nav a.active,
.nav-button.active,
.desktop-nav a:hover,
.nav-button:hover {
  background: var(--forest-soft);
  color: var(--forest-dark);
}

.inline-form {
  margin: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.7rem 1rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  line-height: 1;
}

.button-primary {
  background: var(--forest);
  color: #fff;
}

.button-primary:hover {
  background: var(--forest-dark);
}

.button-ghost {
  background: #fff;
  color: var(--forest-dark);
  border-color: var(--line);
}

.button-danger {
  background: var(--danger);
  color: #fff;
}

.page-shell {
  --shell-pad-top: clamp(1.5rem, 4vw, 3rem);
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: var(--shell-pad-top) 0 6rem;
}

.page-heading {
  max-width: 760px;
  margin-bottom: 1.5rem;
}

.page-heading h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4.25rem);
  line-height: 1.02;
}

.page-heading p {
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.6;
}

.eyebrow {
  margin: 0 0 0.55rem;
  color: var(--forest);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.notice {
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid #b7d8c0;
  border-radius: 8px;
  background: var(--success-soft);
  color: var(--forest-dark);
  font-weight: 700;
}

.grid {
  display: grid;
  gap: 1rem;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.panel,
.card,
.form-card,
.question-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.panel,
.form-card,
.question-card {
  padding: clamp(1rem, 3vw, 1.5rem);
  overflow-wrap: anywhere;
}

.card {
  padding: 1rem;
  overflow-wrap: anywhere;
}

.hero-actions,
.form-actions,
.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.scope-select-mobile.field {
  display: none;
}

.scope-select-mobile select {
  min-height: 3.05rem;
  padding-right: 2.6rem;
  border-color: rgba(32, 95, 52, 0.28);
  background:
    linear-gradient(45deg, transparent 50%, var(--forest) 50%) calc(100% - 1.2rem) 1.25rem / 0.42rem 0.42rem no-repeat,
    linear-gradient(135deg, var(--forest) 50%, transparent 50%) calc(100% - 0.9rem) 1.25rem / 0.42rem 0.42rem no-repeat,
    #fffef8;
  color: var(--forest-dark);
  font-weight: 900;
}

.admin-image-uploader {
  display: grid;
  gap: 0.7rem;
}

.admin-image-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.admin-image-dropzone {
  display: grid;
  grid-template-columns: minmax(170px, 280px) minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border: 1.5px dashed rgba(32, 95, 52, 0.38);
  border-radius: 8px;
  background: #fbfff8;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.admin-image-dropzone.is-dragging {
  border-color: var(--forest);
  background: #f2faed;
  box-shadow: 0 0 0 4px rgba(32, 95, 52, 0.1);
}

.admin-image-preview-frame {
  display: grid;
  place-items: center;
  min-height: 150px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbf2;
}

.admin-image-preview {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.admin-image-empty {
  padding: 0.85rem;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.admin-image-copy {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  line-height: 1.45;
}

.admin-image-copy strong {
  color: var(--forest-dark);
  font-size: 1rem;
}

.admin-image-actions {
  margin-top: 0.4rem;
}

@media (max-width: 720px) {
  .admin-image-dropzone {
    grid-template-columns: 1fr;
  }

  .admin-image-preview-frame {
    min-height: 180px;
  }
}

.landing-hero {
  display: grid;
  align-items: end;
  min-height: min(680px, calc(100vh - 132px));
  margin: calc(var(--shell-pad-top) * -1) calc(50% - 50vw) 0;
  padding: 3.25rem max(1rem, calc((100vw - 1120px) / 2)) 2.75rem;
  background:
    linear-gradient(90deg, rgba(11, 24, 14, 0.93) 0%, rgba(11, 24, 14, 0.76) 46%, rgba(11, 24, 14, 0.2) 100%),
    url("/static/img/questions/species/sp-010.jpg") center / cover no-repeat;
  color: #fff;
}

.landing-hero-copy {
  width: min(820px, 100%);
}

.landing-hero h1 {
  max-width: 820px;
  margin: 1.2rem 0 0;
  font-size: 4.05rem;
  line-height: 0.98;
}

.landing-hero p {
  max-width: 650px;
  margin: 1.15rem 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.12rem;
  line-height: 1.65;
}

.landing-hero .free-pill {
  background: #f3d38b;
  color: #152218 !important;
}

.landing-hero .hero-actions {
  margin-top: 1.4rem;
}

.landing-hero .button-ghost {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.44);
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.hero-proof span {
  min-width: 8.5rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
}

.hero-proof strong {
  display: block;
  color: #fff;
  font-size: 1.35rem;
}

.home-section {
  margin: 0 calc(50% - 50vw);
  padding: 4.5rem max(1rem, calc((100vw - 1120px) / 2));
}

.home-section h2 {
  margin: 0;
  font-size: 2.8rem;
  line-height: 1.04;
}

.home-section p {
  color: var(--muted);
  line-height: 1.65;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.75fr);
  gap: 2rem;
  align-items: start;
  background: #fffaf0;
}

.split-section > div:first-child p:last-child {
  max-width: 660px;
  font-size: 1.05rem;
}

.feature-list-strong article {
  border-color: #e4d5b8;
  background: #fff;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 1.75rem;
}

.image-showcase {
  background: #17231b;
  color: #fff;
}

.image-showcase .eyebrow {
  color: #f3d38b;
}

.image-showcase p {
  color: rgba(255, 255, 255, 0.76);
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.image-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.18);
}

.image-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #eef4eb;
}

.image-card:nth-child(3) img {
  object-fit: contain;
  padding: 0.9rem;
}

.image-card div {
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
}

.image-card span {
  color: var(--muted);
  line-height: 1.45;
}

.path-section {
  background: #f5f7f3;
}

.path-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.path-grid article {
  min-height: 13rem;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.path-grid span {
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  background: var(--forest);
  color: #fff;
  font-weight: 900;
}

.path-grid strong {
  display: block;
  font-size: 1.08rem;
}

.path-grid p {
  margin-bottom: 0;
}

.competition-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.55fr);
  gap: 2rem;
  align-items: center;
  background: #1f3b2b;
  color: #fff;
}

.competition-band .eyebrow {
  color: #f3d38b;
}

.competition-band p {
  color: rgba(255, 255, 255, 0.78);
}

.lobby-preview {
  display: grid;
  gap: 0.65rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.lobby-preview div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.lobby-preview p {
  margin: 0;
  padding: 0.75rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
}

.online-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: #75d887;
  box-shadow: 0 0 0 4px rgba(117, 216, 135, 0.18);
}

.collection-section {
  background: #fff;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.collection-grid span {
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  font-weight: 800;
}

.final-cta {
  display: grid;
  justify-items: center;
  text-align: center;
  background: #102016;
  color: #fff;
}

.final-cta p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.76);
}

.final-cta .free-pill {
  background: #f3d38b;
  color: #152218 !important;
}

.final-cta .hero-actions {
  justify-content: center;
}

.final-cta .button-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.36);
}

.marketing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: clamp(1.25rem, 4vw, 3rem);
  align-items: center;
  min-height: min(680px, calc(100vh - 120px));
  padding: clamp(1rem, 4vw, 3rem) 0;
}

.marketing-hero-copy h2,
.cta-band h2,
.info-band h2 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 5.3rem);
  line-height: 1;
}

.marketing-hero-copy p {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.65;
}

.free-pill {
  display: inline-flex;
  align-items: center;
  min-height: 2.4rem;
  padding: 0 0.8rem;
  border-radius: 8px;
  background: var(--forest-soft);
  color: var(--forest-dark) !important;
  font-weight: 900;
}

.hero-visual {
  display: grid;
  place-items: center;
}

.hero-visual img {
  width: min(100%, 520px);
  height: auto;
  filter: drop-shadow(0 26px 50px rgba(23, 35, 27, 0.14));
}

.info-band,
.cta-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.75fr);
  gap: 1.25rem;
  align-items: center;
  padding: clamp(1.25rem, 4vw, 2rem) 0;
}

.info-band p,
.cta-band p {
  color: var(--muted);
  line-height: 1.65;
}

.feature-list {
  display: grid;
  gap: 0.75rem;
}

.feature-list article {
  display: grid;
  gap: 0.25rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.feature-list span {
  color: var(--muted);
}

.cta-band {
  margin-top: 1rem;
  border-top: 1px solid var(--line);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.metric {
  padding: 1rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.metric strong {
  display: block;
  font-size: 1.55rem;
}

.muted {
  color: var(--muted);
}

.account-email {
  margin: -0.35rem 0 0.85rem;
  font-size: 0.92rem;
}

.form-stack {
  display: grid;
  gap: 1rem;
  max-width: 620px;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field label {
  font-weight: 800;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
}

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--text);
  line-height: 1.45;
}

.checkbox-field input {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.15rem;
  accent-color: var(--forest);
  flex: 0 0 auto;
}

.consent-info {
  padding: 1rem;
  border: 1px solid #d5e3d2;
  border-radius: 8px;
  background: #f5f9f2;
  color: var(--text);
}

.consent-info p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.terms-page {
  max-width: 900px;
}

.terms-page h3 {
  margin-top: 1.4rem;
}

.terms-page p {
  color: var(--muted);
}

.field textarea {
  min-height: 8rem;
  resize: vertical;
}

.question-card {
  max-width: 820px;
}

.question-image {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  margin: 1rem 0;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #f7fbf2;
}

.options {
  display: grid;
  gap: 0.7rem;
  margin: 1rem 0;
}

.option {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  width: 100%;
  min-height: 3.25rem;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: left;
}

.option.correct {
  border-color: var(--success);
  background: var(--success-soft);
}

.option.wrong {
  border-color: var(--danger);
  background: var(--danger-soft);
}

.result-pass {
  color: var(--success);
}

.result-fail {
  color: var(--danger);
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.table th,
.table td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.table th {
  background: var(--panel-soft);
  font-size: 0.86rem;
}

.stack-list {
  display: grid;
  gap: 0.65rem;
}

.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.5rem;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.list-row div {
  min-width: 0;
}

.list-row span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.linked-row {
  color: inherit;
  text-decoration: none;
}

.settings-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  min-height: 11rem;
}

.settings-card h2 {
  margin-top: 0.2rem;
}

.settings-card .muted {
  margin: 0.45rem 0 0;
}

.status-pill {
  flex: 0 0 auto;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 4.5rem;
  min-height: 2rem;
  padding: 0 0.6rem;
  border-radius: 999px;
  background: var(--panel-soft);
  color: var(--forest) !important;
  font-weight: 800;
}

.badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.65rem;
}

.badge {
  padding: 0.85rem;
  border: 1px solid #d5e3d2;
  border-radius: 8px;
  background: #f5f9f2;
}

.badge span {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer {
  display: flex;
  justify-content: center;
  padding: 1.25rem 1rem;
  border-top: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--forest-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bottom-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 30;
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-height: 68px;
  background: #fff;
  border-top: 1px solid var(--line);
}

body.is-authenticated .bottom-nav {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.bottom-nav a,
.bottom-nav button {
  display: grid;
  place-items: center;
  gap: 0.15rem;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

body.is-authenticated .bottom-nav a {
  font-size: 0.7rem;
}

.bottom-nav a.active,
.bottom-nav button.active {
  color: var(--forest);
}

.error-page {
  display: grid;
  place-items: center;
  padding: 1rem;
}

.error-card {
  width: min(560px, 100%);
  padding: 2rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.provider-setup-guide {
  width: min(100%, 34rem);
  margin-top: 0.25rem;
  justify-self: start;
  border: 1px solid rgba(32, 95, 52, 0.18);
  border-radius: 8px;
  background: rgba(238, 247, 233, 0.62);
  overflow: hidden;
}

.provider-setup-guide summary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.65rem;
  padding: 0.75rem 0.9rem;
  color: var(--forest-dark);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 900;
  list-style: none;
}

.provider-setup-guide summary::-webkit-details-marker {
  display: none;
}

.provider-setup-guide summary::before {
  content: "?";
  display: inline-grid;
  place-items: center;
  width: 1.45rem;
  height: 1.45rem;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--forest);
  color: #fff;
  font-size: 0.82rem;
  line-height: 1;
}

.provider-setup-guide[open] summary {
  border-bottom: 1px solid rgba(32, 95, 52, 0.14);
  background: rgba(255, 254, 248, 0.76);
}

.provider-setup-guide-body {
  display: grid;
  gap: 0.8rem;
  padding: 0.9rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.provider-setup-guide-body p,
.provider-setup-guide-body ol,
.provider-setup-guide-body ul {
  margin: 0;
}

.provider-setup-guide-body ol,
.provider-setup-guide-body ul {
  padding-left: 1.15rem;
}

.provider-setup-guide-body li + li {
  margin-top: 0.42rem;
}

.provider-setup-guide-body code {
  display: inline-block;
  max-width: 100%;
  padding: 0.12rem 0.34rem;
  border: 1px solid rgba(32, 95, 52, 0.14);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--forest-dark);
  font-size: 0.86em;
  overflow-wrap: anywhere;
}

.provider-setup-guide-body a {
  color: var(--forest-dark);
  font-weight: 900;
}

@media (max-width: 760px) {
  .desktop-nav,
  .top-actions {
    display: none;
  }

  .bottom-nav {
    display: grid;
  }

  .site-footer {
    padding-bottom: 5.5rem;
  }

  .grid-2,
  .grid-3,
  .hero-metrics,
  .marketing-hero,
  .info-band,
  .cta-band,
  .split-section,
  .image-grid,
  .path-grid,
  .competition-band,
  .collection-grid {
    grid-template-columns: 1fr;
  }

  .page-shell {
    --shell-pad-top: 1.25rem;
    width: min(100% - 1rem, 1120px);
  }

  .landing-hero {
    min-height: min(680px, calc(100vh - 142px));
    padding: 2.75rem 1rem 2.25rem;
    background:
      linear-gradient(180deg, rgba(11, 24, 14, 0.92) 0%, rgba(11, 24, 14, 0.72) 58%, rgba(11, 24, 14, 0.5) 100%),
      url("/static/img/questions/species/sp-010.jpg") center / cover no-repeat;
  }

  .landing-hero h1 {
    font-size: 2.35rem;
    line-height: 1;
  }

  .landing-hero p {
    font-size: 0.97rem;
  }

  .home-section {
    padding: 3rem 1rem;
  }

  .home-section h2 {
    font-size: 2.15rem;
  }

  .hero-proof span {
    min-width: 0;
    flex: 1 1 6.5rem;
    padding: 0.65rem 0.75rem;
  }

  .path-grid article {
    min-height: auto;
  }

  .image-card img {
    max-height: 16rem;
  }
}

/* 2026 play layer */
:root {
  --bg: #edf4eb;
  --panel: #fffef8;
  --panel-soft: #eef7e9;
  --text: #102017;
  --muted: #5d685f;
  --line: #d5e2d4;
  --forest: #205f34;
  --forest-dark: #102d1b;
  --forest-soft: #d8efdc;
  --amber: #d89119;
  --clay: #e86f2d;
  --sky: #d8eee8;
  --lime: #b9d37f;
  --ink: #08140d;
  --shadow: 0 18px 48px rgba(16, 32, 23, 0.12), 0 2px 0 rgba(255, 255, 255, 0.9) inset;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(180deg, #e7f2e8 0%, #f6f1df 42%, #edf5e9 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    repeating-linear-gradient(8deg, rgba(32, 95, 52, 0.045) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(112deg, rgba(216, 145, 25, 0.04) 0 1px, transparent 1px 46px);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 80%);
}

.topbar {
  min-height: 76px;
  background: rgba(255, 254, 248, 0.82);
  border-bottom: 1px solid rgba(32, 95, 52, 0.16);
  box-shadow: 0 10px 30px rgba(16, 32, 23, 0.08);
}

.topbar::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--forest), var(--amber), var(--clay), var(--forest));
}

.brand {
  padding: 0.35rem 0.5rem 0.35rem 0.35rem;
  border-radius: 8px;
  transition: transform 180ms ease, background 180ms ease;
}

.brand:hover {
  background: rgba(32, 95, 52, 0.08);
  transform: translateY(-1px);
}

.brand-logo {
  width: clamp(9.5rem, 17vw, 13.25rem);
  height: auto;
  max-height: 3.35rem;
  border-radius: 0;
  filter: drop-shadow(0 8px 14px rgba(32, 95, 52, 0.12));
}

.desktop-nav {
  padding: 0.28rem;
  border: 1px solid rgba(32, 95, 52, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.desktop-nav a,
.nav-button {
  position: relative;
  border-radius: 8px;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.desktop-nav a.active,
.nav-button.active {
  background: var(--forest-dark);
  color: #fff;
  box-shadow: 0 8px 18px rgba(16, 45, 27, 0.18);
}

.desktop-nav a:hover,
.nav-button:hover {
  transform: translateY(-1px);
}

.button {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(16, 32, 23, 0.16);
}

.button:active {
  transform: translateY(0);
}

.button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.button-primary {
  background: linear-gradient(135deg, #205f34 0%, #2d7b43 58%, #d89119 150%);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 24px rgba(32, 95, 52, 0.22);
}

.button-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0 35%, rgba(255, 255, 255, 0.22) 45%, transparent 58% 100%);
  transform: translateX(-120%);
  transition: transform 620ms ease;
}

.button-primary:hover::after {
  transform: translateX(120%);
}

.button-ghost {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(32, 95, 52, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.button-danger {
  background: linear-gradient(135deg, #a32929, #d04a30);
}

.panel,
.card,
.form-card,
.question-card {
  position: relative;
  border-color: rgba(32, 95, 52, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 254, 248, 0.98)),
    var(--panel);
  box-shadow: var(--shadow);
}

.panel::before,
.form-card::before,
.question-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(90deg, var(--forest), var(--amber), var(--clay));
  opacity: 0.75;
}

.card:hover,
.panel:hover,
.image-card:hover,
.path-grid article:hover,
.list-row:hover {
  border-color: rgba(32, 95, 52, 0.28);
}

.page-heading {
  padding: 1rem 0 0.25rem;
}

.page-heading h1 {
  letter-spacing: 0;
}

body.is-authenticated .page-shell:has(.exam-answer-form) .page-heading {
  display: none;
}

.eyebrow {
  color: #b66f09;
}

.notice {
  border-color: rgba(32, 95, 52, 0.22);
  background:
    linear-gradient(90deg, rgba(216, 145, 25, 0.14), rgba(216, 239, 220, 0.92));
  box-shadow: 0 10px 24px rgba(16, 32, 23, 0.07);
}

.timer-notice {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  margin-bottom: 0.8rem;
  border-radius: 8px;
  font-variant-numeric: tabular-nums;
}

.quiz-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 0.8rem;
}

.quiz-status-count {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
  white-space: nowrap;
}

.quiz-status-bar .timer-notice {
  margin-bottom: 0;
}

.landing-hero {
  min-height: min(760px, calc(100vh - 118px));
  padding-top: 4rem;
  background:
    linear-gradient(90deg, rgba(7, 20, 12, 0.93) 0%, rgba(7, 20, 12, 0.72) 46%, rgba(7, 20, 12, 0.12) 100%),
    url("/static/img/questions/collections/samling-01-jakt-holdninger.png") center / cover no-repeat;
}

.landing-hero-copy {
  animation: rise-in 520ms ease both;
}

.landing-hero h1 {
  max-width: 760px;
  text-wrap: balance;
}

.landing-hero p {
  max-width: 680px;
}

.free-pill,
.hero-proof span,
.collection-grid span {
  border: 1px solid rgba(255, 255, 255, 0.38);
  box-shadow: 0 12px 28px rgba(7, 20, 12, 0.16);
  backdrop-filter: blur(8px);
}

.hero-proof span {
  transition: transform 180ms ease, background 180ms ease;
}

.hero-proof span:hover {
  transform: translateY(-3px) rotate(-0.5deg);
}

.home-section {
  position: relative;
}

.section-heading h2,
.home-section h2 {
  text-wrap: balance;
}

.feature-list article,
.path-grid article,
.image-card,
.lobby-preview,
.metric,
.badge {
  border-radius: 8px;
  border-color: rgba(32, 95, 52, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(246, 241, 223, 0.5));
  box-shadow: 0 14px 32px rgba(16, 32, 23, 0.08);
}

.path-grid article span,
.metric strong {
  color: var(--forest-dark);
}

.image-card img,
.question-image {
  box-shadow: 0 16px 34px rgba(16, 32, 23, 0.16);
}

.question-card {
  max-width: 900px;
  margin-inline: auto;
  overflow: hidden;
}

.quiz-card {
  animation: rise-in 320ms ease both;
  scroll-margin-top: 5.5rem;
}

.question-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.65rem;
  border: 1px solid rgba(216, 145, 25, 0.28);
  border-radius: 8px;
  background: rgba(216, 145, 25, 0.1);
}

.question-topline {
  display: grid;
  grid-template-columns: minmax(0, auto) max-content;
  align-items: start;
  gap: 0.8rem;
}

.question-topline .question-kicker {
  margin: 0;
  justify-self: start;
}

.exam-submit-top {
  margin: 0;
  justify-self: end;
}

.exam-submit-top .button {
  min-height: 2.45rem;
  padding-inline: 1rem;
  white-space: nowrap;
}

.question-card h2 {
  margin-top: 0.9rem;
  font-size: clamp(1.4rem, 2.3vw, 2.15rem);
  line-height: 1.14;
  text-wrap: balance;
}

.question-image {
  aspect-ratio: 16 / 9;
  max-height: 500px;
  background: var(--panel-soft);
}

.progress-rail {
  height: 0.72rem;
  margin: -0.1rem 0 1.2rem;
  border-radius: 999px;
  background: rgba(32, 95, 52, 0.12);
  overflow: hidden;
}

.progress-rail span {
  display: block;
  height: 100%;
  min-width: 0.8rem;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--forest), var(--lime), var(--amber));
  box-shadow: 0 0 18px rgba(216, 145, 25, 0.35);
  transition: width 360ms ease;
}

.question-map {
  margin: -0.35rem 0 0.95rem;
}

.question-map-scroll {
  display: grid;
  grid-template-columns: repeat(50, minmax(0.72rem, 1fr));
  gap: 0.18rem;
  align-items: end;
  width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  padding: 0.55rem 0.1rem 0.35rem;
  scrollbar-width: thin;
}

.question-map-item {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0.72rem;
  width: 100%;
  height: 0.9rem;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 2px;
  background: #d8ddd5;
  color: transparent;
  font-size: 0;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(23, 35, 27, 0.04);
}

.question-map-item:hover,
.question-map-item:focus-visible {
  outline: none;
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(32, 95, 52, 0.14);
}

.question-map-item.is-answered {
  background: #233229;
}

.question-map-item.is-unanswered {
  background: #d8ddd5;
}

.question-map-item.is-current {
  height: 1.15rem;
  border-color: var(--forest);
  background: #88be55;
  box-shadow: 0 0 0 3px rgba(136, 190, 85, 0.24);
}

.question-map-number {
  position: absolute;
  bottom: calc(100% + 0.13rem);
  left: 50%;
  display: none;
  color: var(--forest-dark);
  font-size: 0.58rem;
  font-weight: 900;
  transform: translateX(-50%);
}

.question-map-item:nth-child(1) .question-map-number,
.question-map-item:nth-child(5n) .question-map-number,
.question-map-item.is-current .question-map-number {
  display: block;
}

.question-map-flag {
  position: absolute;
  top: calc(100% + 0.16rem);
  left: 50%;
  width: 0.42rem;
  height: 0.48rem;
  border-left: 1px solid var(--forest);
  transform: translateX(-50%);
}

.question-map-flag::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0.05rem;
  width: 0.38rem;
  height: 0.26rem;
  background: #20a9a5;
  clip-path: polygon(0 0, 100% 20%, 82% 100%, 0 82%);
}

.question-toolbar {
  display: flex;
  justify-content: flex-end;
  margin: 0.65rem 0 0;
}

.question-flag-button {
  min-height: 2.35rem;
  gap: 0.45rem;
  padding: 0.5rem 0.72rem;
  font-size: 0.88rem;
}

.question-flag-button.is-flagged {
  border-color: rgba(32, 169, 165, 0.4);
  background: #e5f6f5;
  color: #0c5754;
}

.flag-icon {
  position: relative;
  width: 0.72rem;
  height: 0.9rem;
  border-left: 2px solid currentColor;
}

.flag-icon::before {
  content: "";
  position: absolute;
  top: 0.05rem;
  left: 0.05rem;
  width: 0.56rem;
  height: 0.36rem;
  background: currentColor;
  clip-path: polygon(0 0, 100% 18%, 82% 100%, 0 82%);
}

.options {
  gap: 0.85rem;
}

.option {
  position: relative;
  align-items: center;
  border-color: rgba(32, 95, 52, 0.18);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 18px rgba(16, 32, 23, 0.06);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.option:hover,
.option.is-selected,
.option:has(input:checked) {
  transform: translateY(-2px);
  border-color: var(--forest);
  background: #f7fbf2;
  box-shadow: 0 12px 26px rgba(32, 95, 52, 0.14);
}

.option input[type="radio"] {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--forest);
  flex: 0 0 auto;
}

.option.correct {
  border-color: var(--success);
  background:
    linear-gradient(90deg, rgba(33, 115, 70, 0.16), rgba(223, 244, 231, 0.92));
}

.option.wrong {
  border-color: var(--danger);
  background:
    linear-gradient(90deg, rgba(186, 45, 45, 0.13), rgba(248, 221, 221, 0.92));
}

.feedback-correct {
  border-color: rgba(33, 115, 70, 0.38);
}

.feedback-wrong {
  border-color: rgba(186, 45, 45, 0.28);
}

.explanation-box {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid rgba(32, 95, 52, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(216, 239, 220, 0.62), rgba(255, 254, 248, 0.9));
}

.result-pass,
.result-fail {
  font-weight: 900;
}

.result-hero,
.winner-stage {
  overflow: hidden;
}

.result-hero-pass,
.winner-stage {
  background:
    linear-gradient(135deg, rgba(32, 95, 52, 0.95), rgba(26, 70, 40, 0.92)),
    var(--forest-dark);
  color: #fff;
}

.result-hero-pass .eyebrow,
.winner-stage .eyebrow,
.result-hero-pass .muted,
.winner-stage .muted {
  color: rgba(255, 255, 255, 0.78);
}

.result-hero-pass .metric,
.winner-stage .metric {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
}

.result-hero-pass .metric strong,
.winner-stage .metric strong {
  color: #fff;
}

.result-hero-fail {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 221, 221, 0.7));
}

.scoreboard-grid {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.scoreboard-row {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr) repeat(3, minmax(5.5rem, 0.35fr));
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem;
  border: 1px solid rgba(32, 95, 52, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
}

.scoreboard-row.winner-card {
  border-color: rgba(216, 145, 25, 0.74);
  background:
    linear-gradient(135deg, #fff7d8, #ffffff 58%, #e4f4df);
  box-shadow: 0 18px 42px rgba(216, 145, 25, 0.22);
}

.score-rank {
  display: grid;
  place-items: center;
  min-height: 3.2rem;
  border-radius: 8px;
  background: var(--forest-dark);
  color: #fff;
  font-weight: 950;
  font-size: 1.35rem;
}

.winner-card .score-rank {
  background: linear-gradient(135deg, var(--amber), var(--clay));
  color: var(--ink);
}

.score-player {
  min-width: 0;
}

.score-player strong,
.score-player span,
.score-stat strong,
.score-stat span {
  display: block;
}

.score-player span,
.score-stat span {
  color: var(--muted);
  font-size: 0.86rem;
}

.score-stat {
  padding: 0.55rem;
  border-radius: 8px;
  background: rgba(32, 95, 52, 0.07);
  text-align: center;
}

.list-row {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 254, 248, 0.92));
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.list-row:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(16, 32, 23, 0.1);
}

.friend-row strong {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.online-dot {
  display: inline-block;
  width: 0.68rem;
  height: 0.68rem;
  border-radius: 999px;
  background: #35c76d;
  box-shadow: 0 0 0 0 rgba(53, 199, 109, 0.55);
  animation: online-pulse 1.8s ease-out infinite;
}

.status-pill {
  min-width: 5.25rem;
  border: 1px solid rgba(32, 95, 52, 0.12);
}

.status-live {
  background: rgba(216, 145, 25, 0.16);
  color: #7d4f05 !important;
}

.status-done {
  background: var(--success-soft);
  color: var(--success) !important;
}

.status-failed {
  background: var(--danger-soft);
  color: var(--danger) !important;
}

.status-invite {
  background: var(--sky);
  color: var(--forest-dark) !important;
}

.exam-history-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.9rem;
}

.exam-history-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem;
  border: 1px solid rgba(32, 95, 52, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(246, 241, 223, 0.5));
  box-shadow: 0 10px 24px rgba(16, 32, 23, 0.06);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.exam-history-card:hover {
  transform: translateY(-1px);
  border-color: rgba(32, 95, 52, 0.32);
  box-shadow: 0 14px 30px rgba(16, 32, 23, 0.1);
}

.exam-history-main {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
}

.exam-history-date {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.exam-history-main strong {
  color: var(--forest-dark);
  font-size: 1.18rem;
}

.exam-history-cta {
  color: var(--forest-dark);
  font-weight: 900;
  white-space: nowrap;
}

.exam-answer-form {
  margin: 0;
}

.exam-action-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 0.65rem;
  margin-top: 1rem;
}

.exam-action-row form {
  margin: 0;
}

.exam-nav-button,
.exam-action-row .button {
  width: 100%;
  min-height: 3.8rem;
  justify-content: center;
  font-size: 1.06rem;
}

.exam-action-row > :only-child {
  grid-column: 1 / -1;
}

.exam-finish-button {
  background: var(--amber);
  color: #1e1606;
}

.badge {
  position: relative;
  overflow: hidden;
}

.badge::after {
  content: "";
  position: absolute;
  right: -1.2rem;
  bottom: -1.4rem;
  width: 4rem;
  height: 4rem;
  border: 1px solid rgba(216, 145, 25, 0.18);
  transform: rotate(18deg);
}

.table {
  border-color: rgba(32, 95, 52, 0.16);
  box-shadow: 0 12px 28px rgba(16, 32, 23, 0.06);
}

.table th {
  background: #e7f2e3;
  color: var(--forest-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.field input,
.field select,
.field textarea {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(32, 95, 52, 0.18);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--forest);
  box-shadow: 0 0 0 4px rgba(32, 95, 52, 0.12);
  background: #fff;
}

.checkbox-field,
.consent-info {
  border-color: rgba(32, 95, 52, 0.18);
  background: linear-gradient(180deg, rgba(216, 239, 220, 0.58), rgba(255, 254, 248, 0.9));
}

.bottom-nav {
  min-height: 72px;
  background: rgba(255, 254, 248, 0.92);
  border-top-color: rgba(32, 95, 52, 0.18);
  box-shadow: 0 -16px 34px rgba(16, 32, 23, 0.1);
  backdrop-filter: blur(14px);
}

.bottom-nav a.active,
.bottom-nav button.active {
  color: var(--forest-dark);
}

.image-showcase > .section-heading p:not(.eyebrow),
.competition-band > div:first-child p:not(.eyebrow),
.final-cta > p:not(.free-pill) {
  color: rgba(255, 255, 255, 0.86);
}

.lobby-preview p {
  color: var(--muted);
}

.path-grid article span {
  color: #fff;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

/* Mobile-first answer cards: make the whole option a confident tap target. */
.quiz-card .options {
  counter-reset: answer-option;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 0.9rem 0 1rem;
}

.quiz-card .option {
  counter-increment: answer-option;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.78rem;
  min-height: 5.25rem;
  padding: 0.92rem 3.15rem 0.92rem 0.95rem;
  border: 2px solid rgba(24, 70, 41, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 253, 246, 0.96)),
    #fffef8;
  color: var(--forest-dark);
  cursor: pointer;
  font-size: 0.98rem;
  font-weight: 900;
  line-height: 1.25;
  box-shadow: 0 12px 24px rgba(16, 32, 23, 0.08);
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.quiz-card .option span {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.quiz-card .option::before {
  content: counter(answer-option, upper-alpha);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 999px;
  background: #e2f2e2;
  color: var(--forest-dark);
  font-size: 0.92rem;
  font-weight: 950;
  box-shadow: inset 0 0 0 1px rgba(24, 70, 41, 0.14);
}

.quiz-card .option::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0.9rem;
  width: 1.55rem;
  height: 1.55rem;
  border: 3px solid rgba(24, 70, 41, 0.38);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  transform: translateY(-50%);
  box-shadow: 0 4px 10px rgba(16, 32, 23, 0.08);
}

.quiz-card .option input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.quiz-card .option:hover,
.quiz-card .option.is-selected,
.quiz-card .option:has(input:checked) {
  transform: translateY(-2px);
  border-color: var(--forest);
  background:
    linear-gradient(180deg, rgba(244, 252, 239, 0.98), rgba(255, 253, 246, 0.98)),
    #f6fbf2;
  box-shadow: 0 16px 30px rgba(32, 95, 52, 0.16);
}

.quiz-card .option:has(input:checked)::after {
  border-color: var(--forest);
  background: radial-gradient(circle at center, var(--forest) 0 42%, #fff 45% 58%, var(--forest) 61%);
}

.quiz-card .option:has(input:focus-visible) {
  outline: 3px solid rgba(216, 145, 25, 0.5);
  outline-offset: 3px;
}

.quiz-card .option.correct {
  border-color: var(--success);
  background:
    linear-gradient(135deg, rgba(21, 95, 56, 0.18), rgba(220, 241, 228, 0.96)),
    #eef9f1;
}

.quiz-card .option.correct::before {
  background: #d4efd9;
  color: #104b2c;
}

.quiz-card .option.correct::after {
  content: "✓";
  display: grid;
  place-items: center;
  border-color: #155f38;
  background: #155f38;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 950;
}

.quiz-card .option.wrong {
  border-color: var(--danger);
  background:
    linear-gradient(135deg, rgba(152, 36, 36, 0.16), rgba(247, 215, 215, 0.96)),
    #fff3f3;
}

.quiz-card .option.wrong::before {
  background: #f5d2d2;
  color: #7f1d1d;
}

.quiz-card .option.wrong::after {
  content: "×";
  display: grid;
  place-items: center;
  border-color: #982424;
  background: #982424;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 950;
}

@media (max-width: 620px) {
  .quiz-card .options {
    grid-template-columns: 1fr;
    gap: 0.62rem;
    margin: 0.68rem 0 0.78rem;
  }

  .quiz-card .option {
    min-height: 4.75rem;
    padding: 0.78rem 2.9rem 0.78rem 0.82rem;
    gap: 0.66rem;
    font-size: 0.94rem;
    line-height: 1.22;
  }

  .quiz-card .option::before {
    width: 1.92rem;
    height: 1.92rem;
    font-size: 0.82rem;
  }

  .quiz-card .option::after {
    right: 0.78rem;
    width: 1.38rem;
    height: 1.38rem;
    border-width: 2px;
  }
}

.bottom-nav a.active span:first-child,
.bottom-nav button.active span:first-child {
  display: grid;
  place-items: center;
  min-width: 2rem;
  min-height: 1.45rem;
  border-radius: 8px;
  background: var(--forest-soft);
}

.site-footer {
  background:
    linear-gradient(180deg, rgba(255, 254, 248, 0.96), rgba(237, 244, 235, 0.96));
}

.celebration-layer {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  overflow: hidden;
}

.celebration-piece {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 2px;
  opacity: 0;
  transform: translate3d(0, 0, 0) rotate(0deg);
  animation: star-fall var(--duration) cubic-bezier(0.16, 0.8, 0.28, 1) var(--delay) forwards;
}

.celebration-correct .celebration-piece {
  width: 0.55rem;
  height: 0.55rem;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes online-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(53, 199, 109, 0.55);
  }
  70% {
    box-shadow: 0 0 0 9px rgba(53, 199, 109, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(53, 199, 109, 0);
  }
}

@keyframes star-fall {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(0deg) scale(0.8);
  }
  10% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--drift), var(--fall), 0) rotate(var(--spin)) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .celebration-layer {
    display: none;
  }
}

@media (max-width: 900px) {
  .scoreboard-row {
    grid-template-columns: 3.75rem minmax(0, 1fr) repeat(2, minmax(4.5rem, 0.4fr));
  }

  .scoreboard-row .score-stat:last-child {
    grid-column: 2 / -1;
  }
}

@media (max-width: 760px) {
  .topbar {
    min-height: 64px;
  }

  .brand-logo {
    width: min(11rem, 56vw);
    max-height: 2.8rem;
  }

  .landing-hero {
    margin: calc(var(--shell-pad-top) * -1) -0.5rem 0;
    background:
      linear-gradient(180deg, rgba(7, 20, 12, 0.88) 0%, rgba(7, 20, 12, 0.68) 62%, rgba(7, 20, 12, 0.42) 100%),
      url("/static/img/questions/collections/samling-01-jakt-holdninger.png") center / cover no-repeat;
  }

  .home-section {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
  }

  .question-card {
    padding: 1rem;
  }

  .question-image {
    max-height: 320px;
  }

  .scoreboard-row {
    grid-template-columns: 3.25rem minmax(0, 1fr);
  }

  .scoreboard-row .score-stat {
    grid-column: span 1;
  }

  .scoreboard-row .score-stat:last-child {
    grid-column: span 2;
  }

  .list-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

body:has(.landing-hero) .page-shell {
  width: 100%;
}

body:has(.landing-hero) .landing-hero {
  margin: calc(var(--shell-pad-top) * -1) 0 0;
}

body:has(.landing-hero) .home-section {
  margin-left: 0;
  margin-right: 0;
}

body:has(.auth-shell) {
  background:
    radial-gradient(circle at 12% 12%, rgba(216, 145, 25, 0.2), transparent 26rem),
    radial-gradient(circle at 86% 14%, rgba(32, 95, 52, 0.18), transparent 24rem),
    linear-gradient(135deg, #eef6e9 0%, #fff9e9 48%, #e9f2e7 100%);
}

body:has(.auth-shell) .page-shell {
  width: min(1240px, calc(100% - 1rem));
  padding-top: clamp(0.75rem, 2vw, 1.35rem);
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
  gap: clamp(0.75rem, 2vw, 1.25rem);
  align-items: stretch;
  min-height: calc(100vh - 176px);
}

.auth-story,
.auth-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(32, 95, 52, 0.18);
  border-radius: 8px;
  box-shadow: 0 28px 70px rgba(16, 32, 23, 0.14);
}

.auth-story {
  display: grid;
  align-items: center;
  min-height: clamp(560px, calc(100vh - 150px), 680px);
  padding: clamp(1rem, 3vw, 2rem);
  color: #fff;
  background:
    linear-gradient(180deg, rgba(7, 20, 12, 0.18) 0%, rgba(7, 20, 12, 0.52) 44%, rgba(7, 20, 12, 0.9) 100%),
    url("/static/img/questions/species/sp-010.jpg") center / cover no-repeat;
}

.auth-story::after {
  content: "";
  position: absolute;
  inset: auto 1rem 1rem 1rem;
  height: 8.5rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(16, 32, 23, 0.86), rgba(32, 95, 52, 0.54)),
    url("/static/img/questions/collections/samling-05-artskunnskap.png") center / cover no-repeat;
  opacity: 0.95;
}

.auth-story-content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.9rem;
  max-width: 720px;
  padding-bottom: 6.5rem;
}

.auth-story h1 {
  max-width: 680px;
  margin: 0;
  color: #fff;
  font-size: clamp(2.45rem, 4.4vw, 4.1rem);
  line-height: 0.96;
  text-wrap: balance;
}

.auth-story p {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.04rem;
  line-height: 1.65;
}

.auth-story .free-pill {
  justify-self: start;
  background: #f2cf7c;
  color: #152218 !important;
}

.auth-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 620px;
}

.auth-proof-grid span {
  display: grid;
  gap: 0.25rem;
  min-height: 4.4rem;
  padding: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.78);
}

.auth-proof-grid strong {
  color: #fff;
  font-size: 1.25rem;
}

.auth-panel {
  display: grid;
  align-content: center;
  padding: clamp(1.25rem, 3vw, 2.35rem);
  background:
    linear-gradient(180deg, rgba(255, 254, 248, 0.96), rgba(255, 255, 255, 0.98)),
    var(--panel);
}

.auth-panel::before {
  content: "";
  position: absolute;
  right: -5rem;
  top: -5rem;
  width: 14rem;
  height: 14rem;
  border-radius: 999px;
  background: rgba(216, 145, 25, 0.16);
}

.auth-panel-head,
.auth-form,
.auth-switch,
.auth-divider,
.social-login-grid,
.auth-provider-note {
  position: relative;
  z-index: 1;
}

.auth-mode {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 0.8rem;
  padding: 0.45rem 0.72rem;
  border-radius: 8px;
  background: var(--forest-soft);
  color: var(--forest-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.auth-panel h1 {
  margin: 0;
  font-size: clamp(2rem, 3.2vw, 3.25rem);
  line-height: 0.98;
  text-wrap: balance;
}

.auth-panel-head p,
.auth-switch,
.auth-provider-note,
.auth-hint {
  color: var(--muted);
  line-height: 1.55;
}

.auth-panel-head p {
  max-width: 520px;
  margin: 0.85rem 0 0;
}

.auth-switch {
  margin: 0.75rem 0 0.9rem;
}

.auth-switch a,
.auth-options-row a {
  color: var(--forest-dark);
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.22em;
}

.auth-form {
  display: grid;
  gap: 0.72rem;
}

.auth-form .field {
  gap: 0.45rem;
}

.auth-form .field label {
  color: var(--forest-dark);
  font-size: 0.9rem;
}

.auth-form .field input {
  min-height: 2.9rem;
  border-radius: 8px;
  font-weight: 650;
}

.auth-password-wrap {
  position: relative;
}

.auth-password-wrap input {
  padding-right: 4.25rem;
}

.password-toggle {
  position: absolute;
  right: 0.45rem;
  top: 50%;
  min-width: 3rem;
  min-height: 2.15rem;
  border: 0;
  border-radius: 8px;
  background: var(--forest-soft);
  color: var(--forest-dark);
  font-size: 0.82rem;
  font-weight: 900;
  transform: translateY(-50%);
}

.auth-options-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.auth-inline-error {
  margin: 0;
  padding: 0.72rem 0.85rem;
  border: 1px solid rgba(156, 44, 35, 0.28);
  border-radius: 8px;
  background: #fff1ed;
  color: #7b211a;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.35;
}

.auth-check {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--forest-dark);
  font-weight: 800;
}

.auth-check input,
.auth-consent input {
  accent-color: var(--forest);
}

.auth-submit {
  width: 100%;
  min-height: 2.95rem;
  margin-top: 0.25rem;
}

.auth-consent {
  padding: 0.85rem;
  font-size: 0.92rem;
}

.auth-consent-info {
  max-height: 12rem;
  overflow: auto;
  font-size: 0.9rem;
}

.auth-consent-info summary {
  cursor: pointer;
  color: var(--forest-dark);
  font-weight: 950;
  list-style-position: inside;
}

.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.85rem;
  align-items: center;
  margin: 0.95rem 0 0.75rem;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  background: rgba(32, 95, 52, 0.16);
}

.social-login-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.social-login {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 0.7rem;
  align-items: center;
  width: 100%;
  min-height: 3rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(32, 95, 52, 0.14);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-weight: 900;
  text-align: left;
  text-decoration: none;
}

.social-login:disabled {
  cursor: not-allowed;
  opacity: 0.92;
}

.social-login[href]:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(18, 33, 22, 0.12);
}

.social-login em {
  grid-column: 2;
  justify-self: start;
  padding: 0.28rem 0.48rem;
  border-radius: 8px;
  background: rgba(32, 95, 52, 0.08);
  color: var(--muted);
  font-size: 0.72rem;
  font-style: normal;
  white-space: nowrap;
}

.social-mark {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: var(--forest-soft);
  color: var(--forest-dark);
  font-weight: 950;
}

.social-google .social-mark {
  background: #fff3d6;
  color: #b45f06;
}

.social-apple {
  background: #101010;
  color: #fff;
}

.social-apple .social-mark {
  background: #fff;
  color: #101010;
}

.social-facebook {
  background: #1877f2;
  color: #fff;
  border-color: #1877f2;
}

.social-facebook .social-mark {
  background: rgba(255, 255, 255, 0.95);
  color: #1877f2;
}

.social-facebook em,
.social-apple em,
.social-vipps em {
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.82);
}

.social-vipps {
  background: linear-gradient(135deg, #ff5b24, #ff8f1f);
  color: #fff;
  border-color: #ff6a2b;
}

.social-vipps .social-mark {
  background: rgba(255, 255, 255, 0.95);
  color: #ff5b24;
}

.auth-provider-note {
  margin: 0.85rem 0 0;
  font-size: 0.82rem;
}

@media (max-width: 980px) {
  .auth-shell {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .auth-panel {
    order: -1;
  }

  .auth-story {
    min-height: 300px;
  }

  .social-login-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .desktop-nav {
    display: none;
  }

  .bottom-nav {
    display: grid;
  }

  .site-footer {
    padding-bottom: 5.5rem;
  }

  body:has(.auth-shell) .bottom-nav {
    display: none;
  }

  .auth-panel::before {
    display: none;
  }
}

@media (max-width: 760px) {
  body:has(.auth-shell) .page-shell {
    width: min(100% - 0.8rem, 1120px);
    padding-top: 0.55rem;
    padding-bottom: 1rem;
  }

  body:has(.auth-shell) .bottom-nav {
    display: none;
  }

  .auth-shell {
    gap: 0.6rem;
  }

  .auth-shell-login .auth-panel {
    min-height: 0;
    align-content: start;
  }

  .auth-story {
    display: none;
  }

  .auth-story::after {
    display: none;
  }

  .auth-story-content {
    gap: 0.55rem;
    padding-bottom: 0;
  }

  .auth-story h1 {
    max-width: 19rem;
    font-size: 1.35rem;
    line-height: 1.05;
  }

  .auth-story p {
    max-width: 20rem;
    font-size: 0.86rem;
    line-height: 1.42;
  }

  .auth-story .free-pill {
    font-size: 0.7rem;
  }

  .auth-proof-grid {
    display: none;
  }

  .auth-panel {
    padding: clamp(0.9rem, 4vw, 1.1rem);
    align-content: start;
  }

  .auth-panel::before {
    width: 8rem;
    height: 8rem;
    right: -3.5rem;
    top: -3.5rem;
  }

  .auth-mode {
    margin-bottom: 0.45rem;
    padding: 0.32rem 0.5rem;
    font-size: 0.68rem;
  }

  .auth-panel h1 {
    font-size: clamp(1.65rem, 8vw, 2.1rem);
    line-height: 1.02;
  }

  .auth-panel-head p {
    max-width: none;
    margin-top: 0.45rem;
    font-size: 0.9rem;
    line-height: 1.38;
  }

  .auth-switch {
    margin: 0.5rem 0 0.62rem;
    font-size: 0.9rem;
    line-height: 1.35;
  }

  .auth-form {
    gap: 0.52rem;
  }

  .auth-form .field {
    gap: 0.32rem;
  }

  .auth-form .field label {
    font-size: 0.84rem;
  }

  .auth-form .field input {
    min-height: 2.62rem;
  }

  .auth-options-row {
    gap: 0.55rem;
    font-size: 0.84rem;
  }

  .auth-submit {
    min-height: 2.72rem;
  }

  .auth-consent {
    padding: 0.72rem;
    font-size: 0.88rem;
    line-height: 1.38;
  }

  .auth-consent-info {
    max-height: none;
    padding: 0.72rem;
    font-size: 0.86rem;
  }

  .auth-consent-info:not([open]) {
    max-height: 2.65rem;
    overflow: hidden;
  }

  .auth-consent-info p {
    font-size: 0.84rem;
    line-height: 1.45;
  }

  .social-login {
    grid-template-columns: 2rem minmax(0, 1fr);
  }

  .social-login em {
    grid-column: 2;
    justify-self: start;
  }
}

/* Final mobile polish: compact header, transparent logo and app-like nav. */
.brand-logo {
  background: transparent !important;
}

.landing-hero {
  background:
    linear-gradient(90deg, rgba(7, 20, 12, 0.93) 0%, rgba(7, 20, 12, 0.72) 46%, rgba(7, 20, 12, 0.12) 100%),
    url("/static/img/questions/collections/samling-01-jakt-holdninger.png?v=20260625-new-collections") center / cover no-repeat;
}

.auth-story::after {
  background:
    linear-gradient(90deg, rgba(16, 32, 23, 0.86), rgba(32, 95, 52, 0.54)),
    url("/static/img/questions/collections/samling-05-artskunnskap.png?v=20260625-new-collections") center / cover no-repeat;
}

.bottom-nav {
  min-height: auto;
  padding: 0.34rem 0.45rem max(0.38rem, env(safe-area-inset-bottom));
  gap: 0.2rem;
  align-items: center;
  background:
    linear-gradient(180deg, rgba(255, 254, 248, 0.94), rgba(244, 250, 241, 0.96));
}

.bottom-nav a,
.bottom-nav button {
  display: grid;
  grid-template-rows: 1.85rem auto;
  place-items: center;
  gap: 0.1rem;
  min-width: 0;
  min-height: 3.45rem;
  height: auto;
  padding: 0.3rem 0.08rem 0.25rem;
  border-radius: 8px;
  color: #526259;
  line-height: 1;
  text-align: center;
}

body.is-authenticated .bottom-nav a {
  font-size: 0.7rem;
}

.bottom-nav a.active,
.bottom-nav button.active {
  color: var(--forest-dark);
  background: rgba(216, 239, 220, 0.72);
  box-shadow: inset 0 0 0 1px rgba(32, 95, 52, 0.12);
}

.bottom-nav a.active span:first-child,
.bottom-nav button.active span:first-child,
.bottom-nav-icon {
  display: grid;
  place-items: center;
  width: 2.05rem;
  min-width: 0;
  height: 1.8rem;
  min-height: 0;
  border-radius: 999px;
  background: transparent;
}

.bottom-nav a.active .bottom-nav-icon,
.bottom-nav button.active .bottom-nav-icon {
  background: rgba(32, 95, 52, 0.13);
}

.bottom-nav-icon svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bottom-nav-label {
  display: block;
  max-width: 100%;
  overflow: hidden;
  font-size: clamp(0.62rem, 2.35vw, 0.72rem);
  font-weight: 900;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.folder-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}

.folder-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.5rem;
  padding: 0.55rem 0.78rem;
  border: 1px solid rgba(32, 95, 52, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--forest-dark);
  font-weight: 900;
  text-decoration: none;
}

.folder-tabs a.active {
  border-color: rgba(32, 95, 52, 0.34);
  background: linear-gradient(135deg, rgba(32, 95, 52, 0.14), rgba(214, 132, 22, 0.16));
  box-shadow: 0 12px 24px rgba(32, 95, 52, 0.1);
}

.folder-tabs span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.7rem;
  min-height: 1.7rem;
  padding: 0 0.45rem;
  border-radius: 999px;
  background: rgba(32, 95, 52, 0.1);
  color: var(--forest);
  font-size: 0.8rem;
}

.feedback-inbox-list {
  display: grid;
  gap: 1rem;
}

.feedback-card {
  padding: clamp(1rem, 3vw, 1.4rem);
  border: 1px solid rgba(32, 95, 52, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 253, 246, 0.92)),
    var(--panel);
  box-shadow: 0 16px 34px rgba(29, 45, 32, 0.08);
}

.feedback-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.feedback-card h2 {
  margin: 0.1rem 0 0;
  font-size: clamp(1.08rem, 2.4vw, 1.35rem);
  line-height: 1.15;
}

.feedback-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.9rem;
  margin-bottom: 0.85rem;
  color: var(--muted);
  font-size: 0.93rem;
}

.feedback-meta a {
  color: var(--forest);
  font-weight: 800;
}

.feedback-message {
  margin: 0;
  color: var(--ink);
  line-height: 1.55;
}

.feedback-context {
  margin: 0.8rem 0 0;
  color: var(--muted);
}

.feedback-context code {
  overflow-wrap: anywhere;
  white-space: normal;
}

.feedback-card .form-actions {
  margin-top: 1rem;
}

.feedback-entry-panel .button {
  margin-top: 0.45rem;
}

@media (max-width: 900px) {
  .topbar {
    min-height: 64px;
    padding: 0.5rem clamp(0.75rem, 3vw, 1rem);
  }

  .brand {
    padding: 0;
    background: transparent;
  }

  .brand:hover {
    background: transparent;
  }

  .brand-logo {
    width: min(9.25rem, 44vw);
    max-height: 2.45rem;
    filter: drop-shadow(0 8px 14px rgba(32, 95, 52, 0.1));
  }

  .landing-hero {
    background:
      linear-gradient(90deg, rgba(7, 20, 12, 0.98) 0%, rgba(7, 20, 12, 0.9) 38%, rgba(7, 20, 12, 0.62) 74%, rgba(7, 20, 12, 0.42) 100%),
      linear-gradient(180deg, rgba(7, 20, 12, 0.82) 0%, rgba(7, 20, 12, 0.56) 58%, rgba(7, 20, 12, 0.36) 100%),
      url("/static/img/questions/collections/samling-01-jakt-holdninger.png?v=20260625-new-collections") 82% center / cover no-repeat;
  }
}

@media (max-width: 760px) {
  .topbar {
    justify-content: center;
    min-height: 58px;
    padding: 0.35rem 0.75rem;
  }

  .brand-logo {
    width: min(8.25rem, 48vw);
    max-height: 2.2rem;
  }

  .landing-hero {
    background:
      linear-gradient(90deg, rgba(7, 20, 12, 0.98) 0%, rgba(7, 20, 12, 0.9) 48%, rgba(7, 20, 12, 0.64) 82%, rgba(7, 20, 12, 0.5) 100%),
      linear-gradient(180deg, rgba(7, 20, 12, 0.84) 0%, rgba(7, 20, 12, 0.58) 58%, rgba(7, 20, 12, 0.38) 100%),
      url("/static/img/questions/collections/samling-01-jakt-holdninger.png?v=20260625-new-collections") 82% center / cover no-repeat;
  }

  .bottom-nav {
    box-shadow: 0 -14px 30px rgba(16, 32, 23, 0.12);
  }

  .site-footer {
    padding-bottom: calc(5.8rem + env(safe-area-inset-bottom));
  }

  .scope-panel {
    padding: 0.78rem;
  }

  .scope-panel .eyebrow {
    margin-bottom: 0.42rem;
  }

  .scope-panel .scope-button-list {
    display: none;
  }

  .scope-select-mobile.field {
    display: grid;
    gap: 0.35rem;
  }

  .scope-select-mobile label {
    font-size: 0.76rem;
    letter-spacing: 0;
    text-transform: uppercase;
    color: var(--muted);
  }

  body.is-authenticated .page-shell:has(.quiz-card) {
    --shell-pad-top: 0.55rem;
    width: min(100% - 0.65rem, 1120px);
  }

  body.is-authenticated:has(.quiz-card) .bottom-nav {
    display: none;
  }

  body.is-authenticated:has(.quiz-card) .site-footer {
    padding-bottom: 1.25rem;
  }

  body.is-authenticated .page-shell:has(.quiz-card) .page-heading {
    padding-top: 0;
    padding-bottom: 0.3rem;
  }

  body.is-authenticated .page-shell:has(.quiz-card) .page-heading .eyebrow,
  body.is-authenticated .page-shell:has(.quiz-card) .page-heading p {
    display: none;
  }

  body.is-authenticated .page-shell:has(.quiz-card) .page-heading h1 {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.05;
  }

  .timer-notice {
    min-height: 2.2rem;
    margin-bottom: 0.45rem;
    padding: 0.5rem 0.65rem;
    font-size: 0.88rem;
  }

  .quiz-status-bar {
    gap: 0.45rem;
    margin-bottom: 0.5rem;
  }

  .quiz-status-count {
    font-size: 0.78rem;
  }

  .quiz-status-bar .timer-notice {
    margin-bottom: 0;
    white-space: nowrap;
  }

  .quiz-card.question-card {
    padding: 0.72rem;
  }

  .quiz-card .progress-rail {
    height: 0.42rem;
    margin: -0.05rem 0 0.5rem;
  }

  .quiz-card .question-map {
    margin: -0.05rem 0 0.58rem;
  }

  .quiz-card .question-map-scroll {
    grid-template-columns: repeat(50, 0.72rem);
    gap: 0.16rem;
    padding: 0.5rem 0.05rem 0.38rem;
  }

  .quiz-card .question-map-item {
    height: 0.82rem;
  }

  .quiz-card .question-map-item.is-current {
    height: 1.04rem;
  }

  .quiz-card .question-map-number {
    font-size: 0.52rem;
  }

  .quiz-card .question-kicker {
    display: block;
    width: 100%;
    padding: 0.34rem 0.45rem;
    font-size: 0.68rem;
    line-height: 1.22;
  }

  .question-topline {
    align-items: stretch;
    gap: 0.45rem;
  }

  .question-toolbar {
    justify-content: stretch;
    margin-top: 0.45rem;
  }

  .question-toolbar .inline-form,
  .question-flag-button {
    width: 100%;
  }

  .exam-submit-top .button {
    min-height: 2.15rem;
    padding: 0.42rem 0.55rem;
    font-size: 0.82rem;
  }

  .quiz-card h2 {
    margin: 0.48rem 0 0;
    font-size: clamp(1rem, 4.65vw, 1.24rem);
    line-height: 1.12;
  }

  .quiz-card .question-image {
    width: 100%;
    height: auto;
    max-height: min(32vh, 245px);
    margin: 0.52rem 0;
    object-fit: contain;
    aspect-ratio: auto;
    background: #f7fbf2;
  }

  .quiz-card .options {
    grid-template-columns: 1fr;
    gap: 0.62rem;
    margin: 0.68rem 0 0.78rem;
  }

  .quiz-card .option {
    min-height: 4.75rem;
    padding: 0.78rem 2.9rem 0.78rem 0.82rem;
    gap: 0.66rem;
    font-size: 0.94rem;
    line-height: 1.22;
  }

  .quiz-card .option input[type="radio"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
  }

  .exam-action-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
    margin-top: 0.5rem;
  }

  .exam-action-row .button {
    width: 100%;
    min-height: 2.42rem;
    padding: 0.55rem 0.7rem;
    font-size: 0.9rem;
  }

  .exam-history-card {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.55rem;
    padding: 0.72rem;
  }

  .exam-history-cta {
    grid-column: 1 / -1;
    font-size: 0.92rem;
  }

  .folder-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .folder-tabs a {
    justify-content: center;
    width: 100%;
  }

  .feedback-card-head {
    align-items: stretch;
    flex-direction: column;
    gap: 0.65rem;
  }

  .feedback-card .status-pill {
    align-self: flex-start;
  }

  .feedback-card .form-actions,
  .feedback-card .form-actions form,
  .feedback-card .button {
    width: 100%;
  }
}

@media (max-width: 370px) {
  .bottom-nav {
    padding-right: 0.25rem;
    padding-left: 0.25rem;
    gap: 0.1rem;
  }

  .bottom-nav a,
  .bottom-nav button {
    min-height: 3.25rem;
    padding-right: 0.02rem;
    padding-left: 0.02rem;
  }

  .bottom-nav-icon {
    width: 1.8rem;
  }

  .bottom-nav-icon svg {
    width: 1.08rem;
    height: 1.08rem;
  }

  .bottom-nav-label {
    font-size: 0.6rem;
  }
}

/* Readability pass: stronger contrast across cards, labels and action surfaces. */
:root {
  --muted: #47584d;
  --line: #c5d3c4;
  --amber: #b66a04;
  --danger: #982424;
  --success: #155f38;
}

.page-heading p,
.home-section p,
.info-band p,
.cta-band p,
.marketing-hero-copy p,
.muted,
.list-row span,
.score-player span,
.score-stat span,
.exam-history-date,
.feedback-meta,
.feedback-context,
.consent-info p,
.terms-page p,
.auth-divider,
.auth-provider-note,
.feature-list span {
  color: var(--muted);
}

.panel,
.card,
.form-card,
.question-card {
  border-color: rgba(24, 70, 41, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 253, 246, 0.98)),
    #fffef8;
}

.panel::before,
.form-card::before,
.question-card::before {
  background: linear-gradient(90deg, #1d5a31, #b66a04, #c55121);
  opacity: 1;
}

.eyebrow {
  color: #754304;
  letter-spacing: 0.055em;
}

.image-showcase .eyebrow,
.competition-band .eyebrow {
  color: #ffe4a4;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.32);
}

.button-primary {
  background: linear-gradient(135deg, #164827 0%, #23683a 72%, #315c20 100%);
  border-color: rgba(8, 20, 13, 0.16);
  color: #fff !important;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.28);
}

.button-primary:hover {
  background: linear-gradient(135deg, #102d1b 0%, #1f5d35 100%);
}

.button-danger {
  background: linear-gradient(135deg, #7f1d1d, #a92d26);
  color: #fff !important;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.24);
}

.button-ghost {
  background: #fffefb;
  border-color: rgba(24, 70, 41, 0.24);
  color: var(--forest-dark);
}

.landing-hero .button-ghost,
.final-cta .button-ghost {
  background: rgba(8, 20, 13, 0.34);
  border-color: rgba(255, 255, 255, 0.58);
  color: #fff;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.34);
}

.field input,
.field select,
.field textarea,
.auth-form .field input {
  border-color: #c5d3c4;
  background: #fffefb;
  color: var(--ink);
}

.field input::placeholder,
.field textarea::placeholder,
.auth-form .field input::placeholder {
  color: #68766c;
  opacity: 1;
}

.field label,
.auth-form .field label,
.checkbox-field,
.auth-check {
  color: var(--forest-dark);
}

.image-card {
  background: #fffef8;
}

.image-card div {
  background: #fffdf7;
  color: var(--text);
}

.image-card span {
  color: #405044;
}

.status-live {
  background: #f3dfb7;
  color: #5c3500 !important;
}

.status-done {
  background: #dcf1e4;
  color: #104b2c !important;
}

.status-failed {
  background: #f7d7d7;
  color: #7f1d1d !important;
}

.status-pill {
  border-color: rgba(24, 70, 41, 0.2);
}

.bottom-nav a,
.bottom-nav button {
  color: #314437;
}

.bottom-nav a.active,
.bottom-nav button.active {
  color: var(--forest-dark);
}
