:root {
  color-scheme: dark;
  --bg: #06100d;
  --bg-deep: #030906;
  --surface: rgba(13, 31, 24, 0.88);
  --surface-strong: #10271e;
  --surface-soft: rgba(255, 255, 255, 0.045);
  --line: rgba(215, 255, 229, 0.11);
  --line-strong: rgba(184, 245, 105, 0.3);
  --text: #f4f8f2;
  --muted: #9aaca2;
  --lime: #b8f569;
  --mint: #53ddbd;
  --orange: #ff8c4c;
  --red: #ff7f79;
  --blue: #75bfff;
  --ink: #0a1710;
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.34);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 0;
  background: var(--bg-deep);
}

body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 14% 4%, rgba(83, 221, 189, 0.13), transparent 25rem),
    radial-gradient(circle at 88% 14%, rgba(255, 140, 76, 0.11), transparent 28rem),
    linear-gradient(155deg, #071510 0%, #06100d 52%, #030906 100%);
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  opacity: 0.28;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

button,
a {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
}

.nav {
  position: sticky;
  top: 0;
}

.page-shell {
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
  padding: 62px 0 84px;
}

.hero {
  position: relative;
  max-width: 870px;
  margin-bottom: 42px;
}

.hero::after {
  position: absolute;
  top: -30px;
  right: 2%;
  display: grid;
  width: 180px;
  height: 180px;
  place-items: center;
  border: 1px solid rgba(83, 221, 189, 0.12);
  border-radius: 50%;
  box-shadow:
    0 0 0 28px rgba(83, 221, 189, 0.025),
    0 0 0 64px rgba(184, 245, 105, 0.018);
  content: "";
  pointer-events: none;
}

.hero-leaf {
  position: absolute;
  z-index: 1;
  top: 24px;
  right: calc(2% + 56px);
  font-size: 58px;
  filter: drop-shadow(0 10px 24px rgba(83, 221, 189, 0.2));
  pointer-events: none;
  transform: rotate(-8deg);
}

.eyebrow,
.section-kicker {
  margin: 0 0 9px;
  color: var(--mint);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: clamp(58px, 6vw, 84px);
  font-weight: 850;
  line-height: 0.94;
  letter-spacing: -0.072em;
}

.hero h1 span {
  color: transparent;
  background: linear-gradient(115deg, var(--lime), var(--mint));
  background-clip: text;
  -webkit-background-clip: text;
  filter: drop-shadow(0 8px 24px rgba(83, 221, 189, 0.16));
}

.hero > p:not(.eyebrow) {
  max-width: 670px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.62;
}

.game-panel-header h2,
.info-panel h2 {
  margin: 0;
  font-size: 23px;
  font-weight: 760;
  letter-spacing: -0.035em;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.game-panel,
.info-panel,
.leaderboard-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(150deg, rgba(20, 48, 37, 0.9), rgba(6, 19, 13, 0.95));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.sidebar-stack {
  display: grid;
  gap: 20px;
}

.game-panel {
  overflow: hidden;
  padding: 27px;
}

.game-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin-bottom: 20px;
}

/* Titlen tager pladsen til venstre; «ErDet420.dk»/«← Alle spil» (css/spil-tilbage.css) og «Ny runde» står til højre
   og rykker ned på en linje for sig på smalle telefoner (Emil 28/10: nem vej tilbage, også når menuen er rullet væk) */
.game-panel-header > div {
  flex: 1 1 auto;
  margin-right: auto;
}

.quiet-button,
.text-button {
  border: 0;
  color: var(--lime);
  background: transparent;
  cursor: pointer;
}

.quiet-button {
  padding: 10px 14px;
  border: 1px solid rgba(184, 245, 105, 0.2);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  transition:
    background 160ms ease,
    border-color 160ms ease;
}

.quiet-button:hover {
  border-color: rgba(184, 245, 105, 0.4);
  background: rgba(184, 245, 105, 0.08);
}

.stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 9px;
  margin-bottom: 21px;
}

.stat {
  display: flex;
  gap: 7px;
  align-items: baseline;
  justify-content: center;
  padding: 13px 10px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.stat span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.stat strong {
  color: var(--text);
  font-size: 22px;
}

.stat-streak {
  border-color: rgba(255, 140, 76, 0.18);
  background: rgba(255, 140, 76, 0.06);
}

.stat-streak strong {
  color: var(--orange);
}

.game-table {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 184px minmax(220px, 1fr);
  gap: 22px;
  align-items: center;
  min-height: 372px;
  padding: 30px;
  overflow: hidden;
  border: 1px solid rgba(184, 245, 105, 0.11);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 45%, rgba(83, 221, 189, 0.1), transparent 20rem),
    linear-gradient(145deg, rgba(2, 12, 8, 0.76), rgba(8, 25, 17, 0.88));
}

.game-table::before {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  pointer-events: none;
  background-image: radial-gradient(rgba(184, 245, 105, 0.2) 0.8px, transparent 0.8px);
  background-size: 18px 18px;
  content: "";
  mask-image: linear-gradient(90deg, transparent, black 28%, black 72%, transparent);
}

.game-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 302px;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 26px;
  color: #15231a;
  text-align: center;
  background:
    radial-gradient(circle at 50% 8%, rgba(255, 255, 255, 0.85), transparent 32%),
    linear-gradient(145deg, #fbfff5, #dbe7d6);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.34),
    0 2px 0 rgba(255, 255, 255, 0.75) inset,
    0 0 0 6px rgba(255, 255, 255, 0.055);
  transition:
    transform 200ms ease,
    opacity 200ms ease;
}

.game-card::before {
  position: absolute;
  top: 13px;
  right: 13px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 5px rgba(0, 0, 0, 0.055);
  content: "";
  opacity: 0.55;
}

.game-card > * {
  position: relative;
  z-index: 1;
}

.card-leaf {
  position: absolute;
  right: -20px;
  bottom: -24px;
  font-size: 104px;
  opacity: 0.11;
  pointer-events: none;
  transform: rotate(-24deg);
}

.hidden-card .card-leaf {
  right: -10px;
  bottom: -18px;
  opacity: 0.055;
}

.game-card.strain-card {
  border-color: rgba(184, 245, 105, 0.38);
  color: #f7fff1;
  background:
    radial-gradient(circle at 72% 14%, rgba(184, 245, 105, 0.24), transparent 30%),
    linear-gradient(150deg, #286044, #10291c 72%);
}

.game-card.auto-card {
  border-color: rgba(231, 255, 146, 0.55);
  color: #172113;
  background:
    radial-gradient(circle at 34% 16%, rgba(255, 255, 255, 0.56), transparent 30%),
    linear-gradient(150deg, #e5ee7d, #72c277);
}

.game-card.photo-card {
  border-color: rgba(193, 171, 255, 0.46);
  color: #fbf7ff;
  background:
    radial-gradient(circle at 34% 17%, rgba(255, 140, 76, 0.24), transparent 31%),
    linear-gradient(150deg, #765390, #283c55 75%);
}

.card-eyebrow {
  margin: 0 0 13px;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.17em;
  opacity: 0.62;
  text-transform: uppercase;
}

.card-symbol {
  min-height: 90px;
  font-size: 84px;
  font-weight: 700;
  line-height: 1;
  filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.08));
}

.game-card h3 {
  margin: 8px 0 4px;
  font-size: 31px;
  font-weight: 850;
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.card-meta {
  min-height: 38px;
  margin: 6px 0 0;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
  opacity: 0.7;
}

.hidden-card {
  border-color: rgba(83, 221, 189, 0.25);
  color: rgba(244, 248, 242, 0.78);
  background:
    radial-gradient(circle at center, rgba(184, 245, 105, 0.11), transparent 36%),
    linear-gradient(135deg, rgba(18, 52, 38, 0.98), rgba(7, 24, 16, 0.98));
}

.hidden-card::after {
  position: absolute;
  inset: 10px;
  border: 1px dashed rgba(184, 245, 105, 0.2);
  border-radius: 18px;
  content: "";
}

.hidden-card .card-symbol {
  color: var(--lime);
  text-shadow: 0 10px 30px rgba(184, 245, 105, 0.22);
}

.waiting-card {
  animation: waiting-card 700ms ease-in-out both;
}

.waiting-card .card-symbol {
  animation: waiting-symbol 700ms ease-in-out both;
}

@keyframes waiting-card {
  0%,
  100% {
    border-color: rgba(83, 221, 189, 0.25);
    transform: translateY(0) rotate(0);
  }

  50% {
    border-color: rgba(184, 245, 105, 0.58);
    box-shadow:
      0 28px 60px rgba(0, 0, 0, 0.4),
      0 0 32px rgba(83, 221, 189, 0.14);
    transform: translateY(-4px) rotate(1deg);
  }
}

@keyframes waiting-symbol {
  50% {
    color: var(--mint);
    transform: scale(1.12);
  }
}

.choice-zone {
  position: relative;
  z-index: 2;
  text-align: center;
}

.direction-line {
  display: flex;
  width: calc(100% + 34px);
  height: 1px;
  align-items: center;
  margin-left: -17px;
  background: linear-gradient(90deg, transparent, rgba(83, 221, 189, 0.7), transparent);
}

.direction-line::after {
  width: 8px;
  height: 8px;
  margin: auto;
  border: 2px solid var(--mint);
  border-radius: 50%;
  background: #0b2017;
  box-shadow: 0 0 18px rgba(83, 221, 189, 0.55);
  content: "";
}

.choice-zone > p {
  margin: 17px 0;
  color: #b8c7bf;
  font-size: 13px;
  line-height: 1.45;
}

.choice-buttons {
  display: grid;
  gap: 9px;
}

.choice-button,
.primary-button {
  min-height: 49px;
  padding: 12px 15px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition:
    filter 150ms ease,
    transform 150ms ease,
    box-shadow 150ms ease;
}

.choice-button {
  color: #112017;
  background: linear-gradient(135deg, var(--lime), var(--mint));
  box-shadow: 0 10px 24px rgba(83, 221, 189, 0.13);
}

.choice-button:last-child {
  color: #fff6ef;
  background: linear-gradient(135deg, #de7044, var(--orange));
  box-shadow: 0 10px 24px rgba(255, 140, 76, 0.13);
}

.choice-button:hover:not(:disabled) {
  filter: brightness(1.08);
  box-shadow: 0 13px 30px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.choice-button:active:not(:disabled) {
  transform: translateY(0);
}

.choice-button:disabled {
  cursor: not-allowed;
  filter: saturate(0.45);
  opacity: 0.3;
}

.choice-zone .keyboard-hint {
  margin-bottom: 0;
  color: #71877b;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.feedback {
  position: relative;
  margin-top: 17px;
  padding: 14px 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: #c6d2cb;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  background: rgba(2, 12, 8, 0.52);
}

.feedback.success {
  border-color: rgba(184, 245, 105, 0.3);
  color: #d8ffac;
  background: rgba(123, 181, 63, 0.1);
}

.feedback.tie {
  border-color: rgba(117, 191, 255, 0.34);
  color: #c6e5ff;
  background: rgba(70, 132, 184, 0.12);
}

.feedback.failure {
  border-color: rgba(255, 127, 121, 0.34);
  color: #ffc7c4;
  background: rgba(175, 69, 64, 0.12);
}

.feedback.resolving::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--lime), var(--mint));
  box-shadow: 0 0 12px rgba(83, 221, 189, 0.7);
  content: "";
  transform-origin: left;
  animation: reveal-countdown 700ms linear forwards;
}

@keyframes reveal-countdown {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

.milestone {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 140, 76, 0.42);
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(255, 140, 76, 0.13), rgba(184, 245, 105, 0.09));
}

.milestone > span {
  font-size: 27px;
}

.milestone p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.round-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 15px;
}

/* «← Alle spil» ved siden af «Spil en ny runde» – kun når runden er slut (samme øjeblik som knappen). Uden :has vises linket altid; det er stadig korrekt. */
.round-actions .spil-tilbage__knap {
  min-height: 49px;
  padding: 12px 18px;
  font-size: 12px;
}

.round-actions:has(#continue-button[hidden]) .spil-tilbage__knap {
  display: none;
}

.primary-button {
  min-width: 200px;
  color: var(--ink);
  background: linear-gradient(135deg, var(--lime), var(--mint));
  box-shadow: 0 11px 28px rgba(83, 221, 189, 0.16);
}

.primary-button:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.info-panel,
.leaderboard-panel {
  padding: 25px;
}

.leaderboard-panel {
  position: relative;
  overflow: hidden;
}

.leaderboard-panel::before {
  position: absolute;
  top: -54px;
  right: -50px;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(184, 245, 105, 0.1);
  border-radius: 50%;
  box-shadow: 0 0 0 24px rgba(83, 221, 189, 0.025);
  content: "";
}

.leaderboard-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: start;
  justify-content: space-between;
}

.leaderboard-header h2 {
  margin: 0;
  font-size: 27px;
  line-height: 1;
  letter-spacing: -0.045em;
}

.demo-badge {
  padding: 6px 9px;
  border: 1px solid rgba(255, 140, 76, 0.3);
  border-radius: 999px;
  color: #ffc29f;
  background: rgba(255, 140, 76, 0.1);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.leaderboard-mode {
  display: inline-flex;
  margin: 14px 0 17px;
  padding: 6px 10px;
  border: 1px solid rgba(83, 221, 189, 0.16);
  border-radius: 999px;
  color: var(--mint);
  background: rgba(83, 221, 189, 0.06);
  font-size: 10px;
  font-weight: 800;
}

.leaderboard-columns {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 42px;
  gap: 9px;
  margin-bottom: 6px;
  padding: 0 9px;
  color: #70837a;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.leaderboard-columns span:first-child {
  grid-column: 2;
}

.leaderboard-columns span:last-child {
  text-align: right;
}

.leaderboard-list {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.leaderboard-list li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 42px;
  gap: 9px;
  align-items: center;
  min-height: 45px;
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.045);
  border-radius: 12px;
  background: rgba(2, 12, 8, 0.38);
}

.leaderboard-list li:nth-child(-n + 3) {
  border-color: rgba(184, 245, 105, 0.14);
  background: linear-gradient(90deg, rgba(184, 245, 105, 0.08), rgba(2, 12, 8, 0.4));
}

.leaderboard-list li.leaderboard-empty {
  display: block;
  min-height: 0;
  padding: 14px 9px;
  color: #8fa298;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  border-color: rgba(255, 255, 255, 0.045);
  background: rgba(2, 12, 8, 0.38);
}

.leaderboard-rank {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 9px;
  color: #82938a;
  font-size: 10px;
  font-weight: 900;
}

.leaderboard-list li:nth-child(1) .leaderboard-rank {
  border-color: rgba(255, 205, 93, 0.34);
  color: #ffd66e;
  background: rgba(255, 205, 93, 0.1);
}

.leaderboard-list li:nth-child(2) .leaderboard-rank {
  border-color: rgba(206, 222, 213, 0.27);
  color: #dbe8e1;
  background: rgba(206, 222, 213, 0.08);
}

.leaderboard-list li:nth-child(3) .leaderboard-rank {
  border-color: rgba(214, 139, 91, 0.3);
  color: #e5a67b;
  background: rgba(214, 139, 91, 0.09);
}

.leaderboard-player {
  display: grid;
  min-width: 0;
}

.leaderboard-player strong {
  overflow: hidden;
  font-size: 11px;
  font-weight: 780;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leaderboard-player small {
  margin-top: 2px;
  color: #71857a;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.leaderboard-score {
  color: var(--lime);
  font-size: 18px;
  text-align: right;
}

.leaderboard-note {
  display: block; /* ikke flex: teksten omkring linket blev til tre spalter (Fable 21/10 L1) */
  margin: 15px 2px 0;
  color: #6f8278;
  font-size: 9px;
  line-height: 1.4;
}

.leaderboard-note span {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 5px;
  vertical-align: middle;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 10px rgba(255, 140, 76, 0.55);
}

.rules-list {
  display: grid;
  gap: 15px;
  margin: 24px 0 27px;
  padding: 0;
  counter-reset: rules;
  list-style: none;
}

.rules-list li {
  position: relative;
  min-height: 32px;
  padding-left: 42px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  counter-increment: rules;
}

.rules-list li::before {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border: 1px solid rgba(83, 221, 189, 0.24);
  border-radius: 10px;
  color: var(--mint);
  background: rgba(83, 221, 189, 0.07);
  font-size: 10px;
  font-weight: 900;
  content: counter(rules);
}

.fairness-box,
.local-data-box {
  padding: 17px;
  border-radius: 16px;
  background: rgba(2, 12, 8, 0.47);
}

.fairness-box {
  display: flex;
  gap: 11px;
  border: 1px solid rgba(83, 221, 189, 0.16);
}

.fairness-box p,
.local-data-box p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.local-data-box {
  margin-top: 11px;
  border: 1px solid var(--line);
}

.text-button {
  margin-top: 12px;
  padding: 0;
  font-size: 10px;
  font-weight: 750;
  text-decoration: underline;
  text-decoration-color: rgba(184, 245, 105, 0.45);
  text-underline-offset: 4px;
}

.site-footer {
  padding: 36px 4vw 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
  background: rgba(2, 8, 5, 0.75);
}

.site-footer strong {
  color: var(--lime);
}

.site-footer p {
  margin: 7px 0 0;
  font-size: 12px;
}

.site-footer .legal-note {
  margin-top: 14px;
  font-size: 10px;
  opacity: 0.65;
}

.site-footer .age-note {
  margin-top: 12px;
  font-size: 11px;
  opacity: 0.85;
}

.site-footer .age-note a {
  color: var(--lime);
  text-decoration: underline;
}

.site-footer .footer-reset {
  margin-top: 10px;
  font-size: 11px;
  opacity: 0.75;
}

.site-footer .footer-reset .text-button {
  margin-top: 0;
  padding: 0;
  font: inherit;
  text-decoration: underline;
}

[hidden] {
  display: none !important;
}

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

.audio-badge {
  position: fixed;
  right: 14px;
  bottom: 12px;
  z-index: 60;
  padding: 7px 14px;
  border-radius: 999px;
  border: 2px solid rgba(6, 19, 13, 0.7);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.09em;
  pointer-events: none;
}

.audio-badge.is-on {
  background: rgba(148, 226, 118, 0.94);
  color: #0c2410;
}

.audio-badge.is-off {
  background: rgba(10, 26, 18, 0.88);
  color: rgba(235, 244, 226, 0.72);
}

.streak-bump {
  animation: streak-bump 380ms ease-out;
}

@keyframes streak-bump {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.35);
    color: #ffdf6b;
  }
  100% {
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .streak-bump {
    animation: none;
  }
}

@media (max-width: 1020px) {
}

@media (max-width: 720px) {
  .choice-button,
  .primary-button,
  .quiet-button {
    min-height: 48px;
  }

  .game-table {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
  }

  .choice-zone {
    grid-column: 1 / -1;
    order: 2;
  }

  .game-card {
    min-width: 0;
  }

  .stats {
    grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
    gap: 10px;
  }
}

.game-panel {
  position: relative;
  overflow: hidden;
}

.dealer-scene {
  position: relative;
  display: grid;
  justify-items: center;
  margin-bottom: -34px;
  pointer-events: none;
}

#dealer-canvas {
  width: min(340px, 78%);
  height: auto;
  filter: drop-shadow(0 14px 26px rgba(0, 0, 0, 0.4));
}

.dealer-bubble {
  position: relative;
  max-width: 460px;
  margin: 16px auto 6px;
  padding: 11px 20px;
  border: 2px solid rgba(10, 23, 16, 0.85);
  border-radius: 16px;
  background: var(--surface-strong);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.dealer-bubble::after {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-bottom: 10px solid var(--surface-strong);
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  content: "";
}

.bubble-pop {
  animation: bubble-pop 260ms ease-out;
}

@keyframes bubble-pop {
  0% {
    transform: scale(0.86);
    opacity: 0.4;
  }
  60% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.game-table {
  position: relative;
  perspective: 900px;
  padding-top: 26px;
  padding-bottom: 18px;
}

.game-table::before {
  position: absolute;
  z-index: 0;
  right: -4%;
  bottom: -8px;
  left: -4%;
  height: 78%;
  border: 3px solid rgba(10, 23, 16, 0.75);
  border-radius: 50% 50% 42% 42% / 68% 68% 32% 32%;
  background:
    radial-gradient(ellipse at 50% 32%, rgba(53, 118, 66, 0.95), rgba(24, 64, 38, 0.97) 62%, rgba(12, 36, 22, 1) 100%);
  box-shadow:
    inset 0 10px 34px rgba(255, 255, 255, 0.07),
    inset 0 -18px 40px rgba(0, 0, 0, 0.45),
    0 22px 44px rgba(0, 0, 0, 0.4);
  content: "";
}

.game-table > * {
  position: relative;
  z-index: 1;
}

.game-card {
  transform: rotateX(5deg);
  box-shadow:
    0 18px 30px rgba(0, 0, 0, 0.42),
    0 3px 0 rgba(0, 0, 0, 0.28);
}

.flip-in {
  animation: card-flip 340ms ease-out;
  transform-origin: center;
}

@keyframes card-flip {
  0% {
    transform: rotateX(5deg) rotateY(88deg);
  }
  100% {
    transform: rotateX(5deg) rotateY(0deg);
  }
}

.table-haze {
  position: absolute;
  z-index: 5;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(216, 226, 212, 0.5), transparent 55%),
    radial-gradient(ellipse at 75% 45%, rgba(216, 226, 212, 0.4), transparent 60%),
    radial-gradient(ellipse at 50% 80%, rgba(216, 226, 212, 0.3), transparent 65%);
  transition: opacity 1.4s ease;
}

@media (prefers-reduced-motion: reduce) {
  .flip-in,
  .bubble-pop {
    animation: none;
  }
}

@media (max-width: 720px) {
  .dealer-scene {
    margin-bottom: -18px;
  }

  #dealer-canvas {
    width: min(250px, 88%);
  }

  .dealer-bubble {
    position: static;
    max-width: none;
    margin-top: 6px;
    border-radius: 14px;
  }

  .dealer-bubble::after {
    display: none;
  }
}

#dealer-canvas {
  width: min(640px, 98%);
  border-radius: 18px 18px 0 0;
}

.game-card {
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(199, 158, 92, 0.65);
  background:
    linear-gradient(160deg, #f6eed6 0%, #ece0bd 55%, #dfd2a8 100%);
  box-shadow:
    0 0 0 3px rgba(239, 200, 63, 0.32),
    0 0 0 4px rgba(10, 23, 16, 0.55),
    0 18px 30px rgba(0, 0, 0, 0.42);
}

.game-card.strain-card {
  background:
    linear-gradient(160deg, #eaf3d8 0%, #d9e8bd 55%, #c6dba3 100%);
}

.game-card .card-leaf {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 0;
  font-size: 120px;
  opacity: 0.1;
  pointer-events: none;
  transform: translate(-50%, -50%) rotate(-14deg);
  filter: grayscale(0.2);
}

.game-card > *:not(.card-leaf) {
  position: relative;
  z-index: 1;
}

.game-card::after {
  position: absolute;
  z-index: 2;
  top: -60%;
  left: -80%;
  width: 55%;
  height: 220%;
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgba(255, 250, 220, 0.55) 45%,
    rgba(239, 200, 63, 0.3) 55%,
    transparent 100%
  );
  content: "";
  pointer-events: none;
  transform: translateX(-40px) rotate(8deg);
  opacity: 0;
}

.game-card.flip-in::after {
  animation: card-shine 700ms ease-out 180ms;
}

.game-card:hover::after {
  animation: card-shine 900ms ease-out;
}

@keyframes card-shine {
  0% {
    opacity: 0;
    transform: translateX(-60px) rotate(8deg);
  }
  25% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(420px) rotate(8deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .game-card.flip-in::after,
  .game-card:hover::after {
    animation: none;
  }
}

.game-card.hidden-card {
  background:
    radial-gradient(ellipse at 50% 42%, #2c6b3a 0%, #1a4527 55%, #0d2b17 100%);
  color: var(--text);
}

.game-card.hidden-card .card-leaf {
  font-size: 150px;
  opacity: 0.5;
  filter: none;
}

.game-card.hidden-card .card-eyebrow,
.game-card.hidden-card .card-meta {
  color: rgba(235, 244, 226, 0.75);
}

.game-card.hidden-card .card-symbol {
  color: var(--lime);
  text-shadow: 0 0 14px rgba(184, 245, 105, 0.5);
}

.game-card.hidden-card::before {
  position: absolute;
  z-index: 0;
  inset: 8px;
  border: 2px solid rgba(239, 200, 63, 0.4);
  border-radius: inherit;
  content: "";
  pointer-events: none;
}

.game-card.product-card {
  background:
    radial-gradient(ellipse at 50% 36%, #eef4dd 0%, #dcE8c2 55%, #c3d5a4 100%);
}

.card-symbol.photo-symbol {
  width: 156px;
  height: 156px;
  margin: 0 auto;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  mix-blend-mode: multiply;
}

.game-card.product-card .card-leaf {
  opacity: 0.06;
}

.game-card.product-card .card-meta {
  font-weight: 900;
  color: #274a1e;
}

.outcome-flash {
  position: absolute;
  z-index: 30;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: clamp(44px, 7vw, 84px);
  font-weight: 900;
  letter-spacing: 0.04em;
  opacity: 0;
  pointer-events: none;
}

.outcome-flash.flash-correct {
  color: #8fe370;
  text-shadow: 0 0 30px rgba(143, 227, 112, 0.8);
  background: radial-gradient(ellipse at center, rgba(46, 135, 62, 0.34), transparent 70%);
  animation: outcome-pop 950ms ease-out;
}

.outcome-flash.flash-wrong {
  color: #ff7f79;
  text-shadow: 0 0 30px rgba(255, 127, 121, 0.8);
  background: radial-gradient(ellipse at center, rgba(180, 45, 38, 0.36), transparent 70%);
  animation: outcome-pop 950ms ease-out;
}

.outcome-flash.flash-tie {
  color: #efc83f;
  text-shadow: 0 0 26px rgba(239, 200, 63, 0.8);
  background: radial-gradient(ellipse at center, rgba(239, 200, 63, 0.22), transparent 70%);
  animation: outcome-pop 950ms ease-out;
}

@keyframes outcome-pop {
  0% {
    opacity: 0;
    transform: scale(0.7);
  }
  18% {
    opacity: 1;
    transform: scale(1.06);
  }
  30% {
    transform: scale(1);
  }
  75% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: scale(1.02);
  }
}

.game-card.card-correct {
  box-shadow:
    0 0 0 4px rgba(143, 227, 112, 0.85),
    0 0 34px rgba(143, 227, 112, 0.55),
    0 18px 30px rgba(0, 0, 0, 0.42);
}

.game-card.card-wrong {
  box-shadow:
    0 0 0 4px rgba(255, 127, 121, 0.85),
    0 0 34px rgba(255, 127, 121, 0.55),
    0 18px 30px rgba(0, 0, 0, 0.42);
  animation: card-shake 420ms ease-out;
}

@keyframes card-shake {
  0%, 100% { transform: rotateX(5deg) translateX(0); }
  25% { transform: rotateX(5deg) translateX(-7px); }
  50% { transform: rotateX(5deg) translateX(6px); }
  75% { transform: rotateX(5deg) translateX(-4px); }
}

@media (prefers-reduced-motion: reduce) {
  .outcome-flash.flash-correct,
  .outcome-flash.flash-wrong,
  .outcome-flash.flash-tie {
    animation: outcome-fade 950ms ease-out;
  }
  .game-card.card-wrong {
    animation: none;
  }
}

@keyframes outcome-fade {
  0% { opacity: 0; }
  20% { opacity: 1; }
  75% { opacity: 1; }
  100% { opacity: 0; }
}

.sale-badge {
  display: inline-block;
  margin: 0 6px 0 2px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #c8362b;
  color: #fff2e8;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.09em;
  vertical-align: 1px;
}

.old-price {
  margin-right: 6px;
  color: rgba(39, 74, 30, 0.55);
  font-weight: 700;
  text-decoration-thickness: 2px;
}

.now-price {
  color: #1e6b2c;
  font-size: 1.15em;
  font-weight: 900;
}

#dealer-canvas {
  width: min(1124px, 100%);
}

.dealer-scene {
  margin-bottom: 4px;
}

.game-table {
  padding-top: 16px;
  padding-bottom: 12px;
}

.game-card {
  min-height: 218px;
  max-width: 200px;
  margin: 0 auto;
  padding: 14px 16px;
  border-radius: 18px;
}

.card-symbol {
  min-height: 58px;
  font-size: 54px;
}

.card-symbol.photo-symbol {
  width: 104px;
  height: 104px;
}

.game-card h3 {
  font-size: 19px;
}

.game-card .card-leaf {
  font-size: 84px;
}

.game-card.hidden-card .card-leaf {
  font-size: 100px;
}

.game-card {
  background:
    repeating-linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.02) 0 1px,
      transparent 1px 3px
    ),
    linear-gradient(160deg, #f8f1dc 0%, #eadfbc 55%, #ddcfa4 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.55),
    inset 0 0 0 5px rgba(199, 158, 92, 0.3),
    inset 0 0 0 6px rgba(255, 255, 255, 0.25),
    0 0 0 3px rgba(239, 200, 63, 0.4),
    0 0 0 4.5px rgba(10, 23, 16, 0.6),
    0 14px 24px rgba(0, 0, 0, 0.42);
}

.game-card h3 {
  letter-spacing: -0.015em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

.card-eyebrow {
  color: #7a5c22;
  font-size: 9px;
  letter-spacing: 0.16em;
}

.card-meta {
  font-size: 12.5px;
}

.hero-mascot {
  position: absolute;
  z-index: 2;
  top: -6px;
  right: calc(2% + 24px);
  width: 132px;
  height: 132px;
  object-fit: cover;
  border: 4px solid rgba(239, 200, 63, 0.75);
  border-radius: 50%;
  box-shadow:
    0 0 0 3px rgba(10, 23, 16, 0.7),
    0 16px 40px rgba(0, 0, 0, 0.45);
  transform: rotate(-4deg);
}

@media (max-width: 720px) {
  .hero-mascot {
    width: 92px;
    height: 92px;
    top: 6px;
  }

  .hero {
    padding-right: 104px;
  }

  .hero h1 {
    font-size: clamp(40px, 12.5vw, 58px);
  }

  .game-card {
    max-width: none;
  }
}

.game-card.hidden-card {
  color: #ead28c;
  background: linear-gradient(160deg, #f2edd8 0%, #e6dfc4 100%);
}

.game-card.hidden-card::before {
  position: absolute;
  inset: 9px;
  width: auto;
  height: auto;
  border-radius: 12px;
  background:
    repeating-linear-gradient(45deg, rgba(206, 174, 98, 0.08) 0 1px, transparent 1px 12px),
    repeating-linear-gradient(-45deg, rgba(206, 174, 98, 0.08) 0 1px, transparent 1px 12px),
    radial-gradient(120% 140% at 50% 25%, #173622, #0a1f13 70%);
  box-shadow:
    inset 0 0 0 2px #c9a85c,
    inset 0 0 0 6px rgba(201, 168, 92, 0.35);
  content: "";
  opacity: 1;
}

.game-card.hidden-card .card-leaf {
  display: none;
}

.game-card.hidden-card .card-eyebrow,
.game-card.hidden-card .card-meta {
  color: rgba(234, 210, 140, 0.75);
}

.game-card.hidden-card h3 {
  color: #f4e8c8;
}

.game-card.hidden-card .card-symbol {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 104px;
  height: 104px;
  min-height: 0;
  margin: 2px auto 6px;
  border: 1.5px solid #c9a85c;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 36%, #1c4029, #0e2818 78%);
  color: #ead28c;
  font-size: 50px;
  text-shadow: 0 0 10px rgba(232, 206, 140, 0.35);
  box-shadow:
    0 0 0 4px rgba(201, 168, 92, 0.15),
    inset 0 1px 0 rgba(255, 235, 180, 0.2);
}

.game-card.hidden-card .card-symbol::before {
  position: absolute;
  inset: 4px;
  border: 1.5px dashed rgba(201, 168, 92, 0.55);
  border-radius: 50%;
  content: "";
}

.game-card {
  box-shadow: 0 22px 28px -14px rgba(0, 0, 0, 0.65);
}

.choice-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #06140c;
  background: linear-gradient(180deg, #a8e063 0%, #3dbb6e 60%, #1f9457 100%);
  border-radius: 16px;
  box-shadow:
    0 6px 0 #145c36,
    0 12px 20px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition:
    transform 70ms ease-out,
    box-shadow 70ms ease-out,
    filter 150ms ease;
}

.choice-button:last-child {
  color: #fff7ec;
  background: linear-gradient(180deg, #f0876a 0%, #d2553b 55%, #a83a28 100%);
  box-shadow:
    0 6px 0 #7a2418,
    0 12px 20px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35);
}

.choice-button:hover:not(:disabled) {
  filter: brightness(1.04);
  transform: translateY(-1px);
  box-shadow:
    0 7px 0 #145c36,
    0 14px 24px rgba(0, 0, 0, 0.45),
    0 0 22px rgba(80, 200, 120, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.choice-button:last-child:hover:not(:disabled) {
  box-shadow:
    0 7px 0 #7a2418,
    0 14px 24px rgba(0, 0, 0, 0.45),
    0 0 22px rgba(210, 85, 59, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.choice-button:active:not(:disabled) {
  transform: translateY(4px);
  box-shadow:
    0 2px 0 #145c36,
    0 6px 12px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.choice-button:last-child:active:not(:disabled) {
  box-shadow:
    0 2px 0 #7a2418,
    0 6px 12px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.choice-button:focus-visible {
  outline: 2px solid #c9a85c;
  outline-offset: 3px;
}

.choice-key {
  padding: 1px 6px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.25);
  font-family: inherit;
  font-size: 11px;
  opacity: 0.85;
}

.keyboard-hint {
  display: none;
}

#dealer-canvas {
  pointer-events: auto;
}

.radio-nu {
  position: absolute;
  z-index: 4;
  top: 88%;
  left: 80.4%;
  max-width: 170px;
  padding: 3px 9px;
  transform: translateX(-50%);
  border: 1px solid rgba(12, 8, 4, 0.75);
  border-radius: 999px;
  background: rgba(18, 13, 8, 0.88);
  color: #e8d7a8;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

.radio-nu[data-motor="syntese"] {
  color: #f0b429;
  border-color: rgba(240, 180, 41, 0.55);
}

.screen-preview-mode body {
  min-height: 0;
  background: #07100c;
}

.screen-preview-mode .nav,
.screen-preview-mode .hero,
.screen-preview-mode .sidebar-stack,
.screen-preview-mode .site-footer,
.screen-preview-mode .game-panel > :not(.dealer-scene),
.screen-preview-mode #highlow-audio-badge {
  display: none;
}

.screen-preview-mode .page-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.screen-preview-mode .content-grid {
  display: block;
}

.screen-preview-mode .game-panel {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #07100c;
  box-shadow: none;
}

.screen-preview-mode .dealer-scene {
  margin: 0;
}

.screen-preview-mode #dealer-canvas {
  width: 100%;
  max-width: none;
  filter: none;
}

.beta-baelke {
  background: #1e7a34;
  color: #fff;
  text-align: center;
  padding: 8px 14px;
  font-size: 0.9rem;
  line-height: 1.4;
  position: relative;
  z-index: 9999;
}

@media (pointer: coarse) {
  .choice-key {
    display: none;
  }

  .text-button,
  .site-footer .footer-reset .text-button,
  .site-footer .age-note a {
    display: inline-block;
    padding: 16px 8px;
    margin: -10px -2px;
  }
}

/* Hurtige rettelser 2026-10-10 */

/* Kun til skærmlæsere (fx varen og prisen i feedback-beskeden) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Blivende besked, når spillet kører lokalt, fordi serveren ikke kunne nås */
.lokal-besked {
  margin: -6px 0 18px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 140, 76, 0.5);
  border-radius: 14px;
  color: #ffd9c2;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  background: rgba(175, 90, 40, 0.18);
}

/* Gæst: "Log ind for at gemme" i stedet for et tal */
.stat strong.stat-login {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.25;
}

/* Ingen dobbelttryk-zoom eller forsinkelse på knapperne på telefoner */
button,
.choice-button,
.primary-button,
.quiet-button,
.text-button {
  touch-action: manipulation;
}

/* Toplisten var 8–9 px: læsbar på telefon */
@media (max-width: 720px) {
  .leaderboard-columns,
  .leaderboard-player small,
  .leaderboard-note {
    font-size: 11px;
  }
}

/* Små telefoner (≤400 px, 11/10): mopsen dækkede enden af "High/Low"-titlen ved 320-360 px */
@media (max-width: 400px) {
  .hero-mascot {
    width: 72px;
    height: 72px;
  }

  .hero {
    padding-right: 84px;
  }

  .hero h1 {
    font-size: clamp(34px, 11.5vw, 46px);
  }
}

/* Mobil (≤720 px, Fable 21/10 M3): varekortene var 64–100 px brede (navnet klippet), og første gæt lå 1,3 skærme nede.
 * 16 px sidekant, kompakt hero + statusfliser og mindre luft i bordet, så kortene bliver ~145 px (390) og knapperne rykker op. */
@media (max-width: 720px) {
  .page-shell {
    width: calc(100% - 32px);
    padding-top: 24px;
  }

  .hero {
    margin-bottom: 18px;
  }

  .hero > p:not(.eyebrow) {
    margin-top: 10px;
    margin-right: -104px; /* mopsen sidder kun ud for titlen – teksten må bruge hele bredden */
    font-size: 13px;
    line-height: 1.45;
  }

  .game-panel {
    padding: 16px;
  }

  .game-panel-header {
    margin-bottom: 12px;
  }

  .stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
  }

  .stat {
    flex-direction: column;
    gap: 2px;
    align-items: center;
    padding: 7px 4px;
    text-align: center;
  }

  .stat span {
    font-size: 9px;
  }

  .stat strong {
    font-size: 18px;
  }

  .game-table {
    gap: 10px;
    padding: 12px 10px;
    min-height: 0;
  }

  .game-card {
    padding: 12px 10px;
  }

  .game-card h3 {
    font-size: 17px;
    overflow-wrap: anywhere;
  }

  .card-meta {
    min-height: 0;
    overflow-wrap: anywhere;
  }

  .choice-zone > p {
    margin: 10px 0;
  }
}

@media (max-width: 400px) {
  .hero {
    padding-right: 104px; /* 16 px sidekant: titlen nåede ellers ind under mopsen ved 320 px */
  }

  .hero > p:not(.eyebrow) {
    margin-right: -104px;
  }

  .card-symbol.photo-symbol {
    width: 84px;
    height: 84px;
  }
}
