/* ECIT AI-julekalender ---------------------------------------------------
   Farverne er samlet her – justér til ECIT's præcise brandfarver hvis ønsket. */
:root {
  --ecit-navy: #012c56;        /* fra ECIT-logoet */
  --ecit-navy-2: #023466;
  --ecit-blue: #0b4a85;
  --ecit-deep: #001a36;
  --ecit-accent: #6fc3df;      /* kold, ECIT-agtig accent til sne og detaljer */
  --red: #a51c2c;
  --red-dark: #7d1220;
  --red-deep: #4a0a12;
  --gold: #e3b04b;
  --gold-light: #f7d98a;
  --gold-dark: #b47c1c;
  --cream: #f6efe0;
  --text: #f4f1ea;
  --muted: rgba(244, 241, 234, .68);
  --board-w: min(980px, 94vw, calc((100vh - 250px) * 1.42));
  --board-bg:
    radial-gradient(circle, rgba(255, 255, 255, .55) 0 .9px, transparent 1.5px) 0 0 / 22px 22px,
    radial-gradient(circle, rgba(236, 188, 82, .65) 0 .9px, transparent 1.5px) 11px 11px / 22px 22px,
    linear-gradient(155deg, #b8222f 0%, #a51c2c 45%, #8c1424 100%);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
html { scrollbar-gutter: stable; }   /* intet layout-hop når scroll låses under zoom */
body {
  font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--ecit-navy);
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
body.locked-scroll { overflow: hidden; }
[hidden] { display: none !important; }
button { font: inherit; }

/* ------------------------------------------------------------ baggrund */
.sky {
  position: fixed; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(111, 195, 223, .22), transparent 60%),
    radial-gradient(ellipse at 50% 0%, var(--ecit-blue) 0%, var(--ecit-navy-2) 40%, var(--ecit-navy) 70%, var(--ecit-deep) 100%);
}
.sky::before {
  content: ''; position: absolute; inset: 0; opacity: .7;
  background-image:
    radial-gradient(1px 1px at 20px 30px, #fff, transparent),
    radial-gradient(1px 1px at 120px 80px, rgba(255,255,255,.8), transparent),
    radial-gradient(1.5px 1.5px at 200px 150px, #fff, transparent),
    radial-gradient(1px 1px at 260px 40px, rgba(255,255,255,.7), transparent),
    radial-gradient(1px 1px at 80px 200px, rgba(255,255,255,.6), transparent),
    radial-gradient(1.5px 1.5px at 310px 230px, rgba(255,255,255,.9), transparent);
  background-size: 340px 260px;
  mask-image: linear-gradient(#000 0%, transparent 70%);
  animation: twinkle 6s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: .45; } to { opacity: .85; } }
.frost {
  position: fixed; inset: 0; z-index: 7; pointer-events: none;
  background:
    radial-gradient(circle at 0 0, rgba(230, 242, 255, .28), transparent 22%),
    radial-gradient(circle at 100% 0, rgba(230, 242, 255, .28), transparent 22%),
    radial-gradient(circle at 0 100%, rgba(230, 242, 255, .22), transparent 20%),
    radial-gradient(circle at 100% 100%, rgba(230, 242, 255, .22), transparent 20%);
}
.forest { position: fixed; left: 0; bottom: 30px; width: 100%; height: 20vh; z-index: 1; opacity: .95; }
.snowbank { position: fixed; left: 0; bottom: 0; width: 100%; height: 90px; z-index: 2; filter: drop-shadow(0 -6px 14px rgba(180, 210, 255, .18)); }
#snow { position: fixed; inset: 0; z-index: 6; pointer-events: none; }

/* lyskæde */
.lights { position: fixed; top: 0; left: 0; width: 100%; height: 64px; z-index: 8; pointer-events: none; overflow: visible; }
.lights .wire { fill: none; stroke: #0f2a1d; stroke-width: 2.2; }
.lights .bulb { animation: bulb 1.8s ease-in-out infinite alternate; }
@keyframes bulb { from { opacity: .35; } to { opacity: 1; } }

/* --------------------------------------------------------------- top */
.top {
  position: relative; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 50px 32px 0;
  transition: opacity .5s;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-logo {
  display: block; height: 46px; width: auto; border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .22), 0 6px 18px rgba(0, 0, 0, .35);
}
.brand-divider { width: 1px; height: 24px; background: linear-gradient(transparent, var(--gold), transparent); }
.brand-sub { font-family: 'Playfair Display', Georgia, serif; font-style: italic; font-weight: 600; font-size: 19px; color: var(--gold-light); }
.test-badge {
  background: #ff9f43; color: #3a1a00; font-weight: 800; font-size: 13px;
  padding: 6px 12px; border-radius: 99px; box-shadow: 0 4px 14px rgba(255, 159, 67, .35);
}

/* nedtælling til fredagens lodtrækning */
.top-right { display: flex; align-items: center; gap: 12px; }
.draw-clock {
  display: grid; gap: 6px; justify-items: center;
  padding: 10px 16px 9px; border-radius: 16px;
  background: linear-gradient(160deg, rgba(165, 28, 44, .92), rgba(110, 14, 28, .92));
  border: 1.5px solid rgba(243, 197, 90, .65);
  box-shadow: 0 8px 26px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .15);
}
.dc-label { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-light); white-space: nowrap; }
.dc-tiles { display: flex; gap: 6px; }
.dc-tile {
  display: grid; justify-items: center; min-width: 48px; padding: 4px 6px 3px; border-radius: 10px;
  background: rgba(0, 0, 0, .28); border: 1px solid rgba(255, 255, 255, .12);
}
.dc-tile b { font-family: 'Playfair Display', Georgia, serif; font-size: 24px; line-height: 1.1; font-variant-numeric: tabular-nums; color: #fff; }
.dc-tile i { font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.dc-mine { display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 800; color: var(--muted); }
.dc-mine > span:first-child { margin-right: 3px; }
.dc-dot {
  width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center;
  font-size: 10px; line-height: 1; color: var(--red-deep);
  border: 1.5px solid rgba(243, 197, 90, .55); background: rgba(0, 0, 0, .2);
}
.dc-dot.on { background: var(--gold-light); border-color: var(--gold-light); }
.dc-n { margin-left: 3px; color: var(--gold-light); font-variant-numeric: tabular-nums; }
body.zoomed .draw-clock { opacity: 0; }

/* -------------------------------------------------------------- scene */
.scene { position: relative; z-index: 4; padding: 22px 16px 120px; }
.stage {
  width: var(--board-w); margin: 0 auto;
  transform-origin: 0 0;
}
.board {
  position: relative;
  padding: calc(var(--board-w) * .028) calc(var(--board-w) * .04) calc(var(--board-w) * .045);
  border-radius: 8px;
  background: var(--board-bg);
  box-shadow:
    0 40px 80px rgba(0, 0, 0, .55), 0 10px 20px rgba(0, 0, 0, .35),
    inset 0 0 0 1px rgba(255, 255, 255, .08), inset 0 0 90px rgba(60, 0, 10, .4);
}
.board::before {
  content: ''; position: absolute; inset: 10px; pointer-events: none;
  border: 1.5px solid rgba(227, 176, 75, .55); border-radius: 4px;
  box-shadow: inset 0 0 0 4px rgba(227, 176, 75, .12);
}
.snowcap {
  position: absolute; top: -20px; left: -8px; width: calc(100% + 16px); height: 36px;
  filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .25)); pointer-events: none; z-index: 2;
}
.board-title {
  position: relative; margin: calc(var(--board-w) * .012) 0 calc(var(--board-w) * .024);
  text-align: center;
  font-family: 'Playfair Display', Georgia, serif; font-weight: 800;
  font-size: calc(var(--board-w) * .052); line-height: 1.1; letter-spacing: .005em;
  background: linear-gradient(180deg, var(--gold-light), var(--gold) 55%, var(--gold-dark));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 rgba(60, 0, 10, .45));
}
.grid {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: calc(var(--board-w) * .03) calc(var(--board-w) * .028);
}

/* --------------------------------------------------------------- låger */
.door {
  position: relative; aspect-ratio: 1.08 / 1;
  border: 0; padding: 0; margin: 0; background: transparent; color: inherit;
  cursor: pointer; perspective: 650px; container-type: inline-size;
  -webkit-tap-highlight-color: transparent; outline: none;
}
.door:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 4px; border-radius: 4px; }
.door-inside {
  position: absolute; inset: 0; border-radius: 3px; overflow: hidden;
  background: radial-gradient(circle at 50% 40%, #6b1220, #2b050b 80%);
  box-shadow: inset 0 3px 12px rgba(0, 0, 0, .85);
  display: grid; place-items: center; text-align: center;
}
.door-inside::before {
  content: ''; position: absolute; inset: -20%; opacity: 0; transition: opacity .9s ease;
  background: radial-gradient(circle, #fffbe6 0%, #ffe39a 22%, rgba(255, 170, 70, .75) 45%, transparent 72%);
}
.door.active .door-inside::before { opacity: 1; }

/* Sne bag lågen: to lag mønster-snefnug der glider ned (kun transform = billigt og glat). */
.snowfall {
  position: absolute; left: 0; top: -100%; width: 100%; height: 200%; pointer-events: none;
  animation: doorSnow 7s linear infinite;
}
.snowfall.s1 {
  background-image:
    radial-gradient(circle at 18% 20%, #fff 0 1.6cqw, transparent 2.3cqw),
    radial-gradient(circle at 62% 8%, #fff 0 1.1cqw, transparent 1.7cqw),
    radial-gradient(circle at 84% 46%, #fff 0 1.8cqw, transparent 2.5cqw),
    radial-gradient(circle at 38% 62%, #fff 0 1.2cqw, transparent 1.8cqw),
    radial-gradient(circle at 8% 84%, #fff 0 1cqw, transparent 1.6cqw),
    radial-gradient(circle at 70% 88%, #fff 0 1.4cqw, transparent 2cqw);
  background-size: 50% 25%;
  opacity: .95;
}
.snowfall.s2 {
  background-image:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .8) 0 .8cqw, transparent 1.3cqw),
    radial-gradient(circle at 75% 15%, rgba(255, 255, 255, .7) 0 .6cqw, transparent 1.1cqw),
    radial-gradient(circle at 55% 75%, rgba(255, 255, 255, .8) 0 .7cqw, transparent 1.2cqw),
    radial-gradient(circle at 10% 60%, rgba(255, 255, 255, .6) 0 .6cqw, transparent 1.1cqw);
  background-size: 33.333% 12.5%;
  animation-duration: 11s;
}
@keyframes doorSnow { from { transform: translateY(0); } to { transform: translateY(50%); } }
.door.locked .snowfall { animation: none; }
/* Under zoom: ingen glød-animation (box-shadow skal ellers males om i hvert billede = hak). */
body.zoomed .door.today .face-front { animation: none; }
body.zoomed .door:not(.active) .snowfall { animation-play-state: paused; }
/* Lille snedrive i bunden. */
.drift {
  position: absolute; left: -4%; right: -4%; bottom: -1px; height: 20%; pointer-events: none;
  background:
    radial-gradient(ellipse 38% 100% at 22% 100%, #fff 64%, transparent 66%),
    radial-gradient(ellipse 34% 85% at 62% 100%, #eef4ff 64%, transparent 66%),
    radial-gradient(ellipse 30% 95% at 92% 100%, #fff 64%, transparent 66%);
  filter: drop-shadow(0 -1px 2px rgba(0, 0, 0, .25));
}

.door-flap {
  position: absolute; inset: 0; transform-origin: 0% 50%; transform-style: preserve-3d;
  transition: transform 1s cubic-bezier(.25, .8, .25, 1);
}
.face { position: absolute; inset: 0; border-radius: 3px; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.face-front {
  background: var(--board-bg);
  border: 1.6px dashed rgba(70, 4, 14, .6);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05), inset 0 -10px 24px rgba(60, 0, 10, .18);
  display: grid; place-items: center;
}
.face-back {
  transform: rotateY(180deg);
  background: linear-gradient(135deg, #f1e7d3, #d7c3a0);
  box-shadow: inset 0 0 0 1px rgba(120, 80, 30, .25), inset 0 0 18px rgba(120, 80, 30, .25);
}
.num {
  font-family: 'Playfair Display', Georgia, serif; font-weight: 800; font-size: 38cqw; line-height: 1;
  background: linear-gradient(180deg, var(--gold-light), var(--gold) 55%, var(--gold-dark));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 1.5px 0 rgba(60, 0, 10, .5));
  user-select: none;
}
.door.locked { cursor: not-allowed; }
.door.locked:hover .face-front { filter: brightness(.92); }
.door.noting { z-index: 6; }
.door-note {
  position: absolute; left: 50%; bottom: calc(100% + 10px); z-index: 6;
  width: max-content; max-width: 220px; transform: translateX(-50%);
  padding: 10px 14px; border-radius: 14px; text-align: center; pointer-events: none;
  background: #fffaf0; color: var(--red-deep); font-weight: 800; font-size: 14px; line-height: 1.3;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .45);
  animation: noteIn .35s cubic-bezier(.2, .9, .25, 1.3) both;
}
.door-note small { display: block; font-weight: 700; font-size: 12px; color: #7d1220; opacity: .8; margin-top: 2px; }
.door-note::after {
  content: ''; position: absolute; left: 50%; top: 100%; transform: translateX(-50%);
  border: 8px solid transparent; border-top-color: #fffaf0;
}
.door-note.out { animation: noteOut .3s ease-in both; }
@keyframes noteIn { from { opacity: 0; transform: translate(-50%, 8px) scale(.8); } }
@keyframes noteOut { to { opacity: 0; transform: translate(-50%, 6px) scale(.9); } }
.door.past .door-flap { transform: rotateY(-72deg); }
.door.past:hover .door-flap { transform: rotateY(-80deg); }
.door.is-open .door-flap { transform: rotateY(-115deg) !important; }

.door.today .face-front { animation: todayGlow 2.4s ease-in-out infinite; border-color: rgba(247, 217, 138, .8); }
@keyframes todayGlow {
  0%, 100% { box-shadow: 0 0 0 2px rgba(247, 217, 138, .9), 0 0 14px 3px rgba(255, 205, 90, .4); }
  50% { box-shadow: 0 0 0 2px rgba(247, 217, 138, 1), 0 0 28px 8px rgba(255, 205, 90, .7); }
}
.door .badge {
  position: absolute; top: -10px; right: -10px; z-index: 3;
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  color: var(--red-deep); font-weight: 900; font-size: 11px; letter-spacing: .08em;
  padding: 4px 8px; border-radius: 99px; transform: rotate(8deg);
  box-shadow: 0 3px 8px rgba(0, 0, 0, .35); pointer-events: none;
}
.door.shake { animation: shake .5s cubic-bezier(.36, .07, .19, .97); }
@keyframes shake {
  10%, 90% { transform: translateX(-1px) rotate(-.5deg); }
  20%, 80% { transform: translateX(2px) rotate(.5deg); }
  30%, 50%, 70% { transform: translateX(-4px) rotate(-1deg); }
  40%, 60% { transform: translateX(4px) rotate(1deg); }
}

body.zoomed .top, body.zoomed .infobar, body.zoomed .winners { opacity: 0; pointer-events: none; }
body.zoomed .door:not(.active) { pointer-events: none; }

/* ------------------------------------------------------------- infobar */
.infobar {
  width: var(--board-w); max-width: 100%; margin: 30px auto 0;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px 16px 14px 22px;
  background: rgba(9, 20, 42, .62); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .1); border-radius: 18px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .3);
  transition: opacity .5s;
}
.info-main { font-weight: 700; font-size: 16px; line-height: 1.45; }
.info-main strong { color: var(--gold-light); }
.countdown { font-variant-numeric: tabular-nums; font-weight: 800; color: var(--gold-light); }
.info-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.winners[hidden] { display: none; }
.winners {
  width: var(--board-w); max-width: 100%; margin: 14px auto 0;
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center;
  transition: opacity .5s;
}
.winners .label { font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.chip {
  font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 99px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12);
}
.chip b { color: var(--gold-light); font-weight: 800; }

/* ------------------------------------------------------------- knapper */
.btn {
  font-weight: 800; font-size: 15px; border: 0; border-radius: 999px; padding: 12px 22px;
  cursor: pointer; transition: transform .15s, box-shadow .15s, filter .15s; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: default; transform: none; }
.btn-gold {
  background: linear-gradient(180deg, var(--gold-light), #d9a12f); color: var(--red-deep);
  box-shadow: 0 6px 18px rgba(217, 161, 47, .35), inset 0 1px 0 rgba(255, 255, 255, .6);
}
.btn-red { background: linear-gradient(180deg, #cf2e3f, #9c1626); color: #fff; box-shadow: 0 6px 18px rgba(165, 28, 44, .4); }
.btn-ghost { background: rgba(255, 255, 255, .08); color: #fff; border: 1px solid rgba(255, 255, 255, .2); }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .08); color: #fff; font-size: 16px; cursor: pointer;
}
.icon-btn:hover { background: rgba(255, 255, 255, .16); }

/* --------------------------------------------------------------- modal */
.modal { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 16px; }
.modal-backdrop { position: absolute; inset: 0; }   /* baggrunden er "portalen" (sneen inde i lågen) */

/* Dæmpning af kalenderen bag den store låge. */
.dim {
  position: fixed; inset: 0; z-index: 27; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at 50% 50%, rgba(3, 14, 32, .55), rgba(3, 14, 32, .92) 75%);
}
/* Den store, skarpe kopi af lågen, der flyver op og åbner. */
.door-zoom {
  position: fixed; left: 0; top: 0; z-index: 28; transform-origin: 0 0;
  pointer-events: none; will-change: transform;
}
.door-zoom .door { display: block; }

/* Portalen: indersiden af lågen i fuld skærm – varmt lys og sne. Farverne matcher lågens glød. */
.portal {
  position: fixed; left: 0; top: 0; z-index: 29; transform-origin: 0 0; overflow: hidden;
  will-change: transform, opacity; pointer-events: none;
  background: radial-gradient(circle at 50% 45%, #fff6d8 0%, #ffdc8a 14%, #f0a24e 30%, #a8322c 52%, #5a0d17 74%, #2b050b 100%);
}
.portal[hidden] { display: none; }
.portal canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.modal-card {
  position: relative; width: min(980px, 100%); max-height: calc(100vh - 32px); overflow: auto;
  background: linear-gradient(180deg, #03386b, var(--ecit-navy) 60%, #01244a);
  border: 1px solid rgba(243, 197, 90, .35); border-radius: 20px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, .65), 0 0 0 6px rgba(255, 255, 255, .03), 0 0 80px rgba(255, 210, 110, .15);
  padding: 22px 26px 26px;
  transform-origin: 50% 50%;
}
@keyframes fromDoor {
  0% { opacity: 0; transform: scale(.25); filter: brightness(3) blur(6px); }
  60% { opacity: 1; filter: brightness(1.15) blur(0); }
  100% { opacity: 1; transform: scale(1); filter: none; }
}
@keyframes toDoor { to { opacity: 0; transform: scale(.4); filter: brightness(2) blur(4px); } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }
.modal-close { position: absolute; top: 16px; right: 16px; z-index: 2; }
.modal-head { padding-right: 50px; }
.kicker { font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.modal h2, .wheel-card h2 {
  font-family: 'Playfair Display', Georgia, serif; font-weight: 700; color: #fff;
  font-size: clamp(22px, 3vw, 32px); margin: 4px 0 16px; line-height: 1.15;
}
.video-wrap {
  position: relative; margin: 0 auto; border-radius: 14px; overflow: hidden; background: #000;
  width: min(100%, calc(54vh * var(--arn, 1.7778)));
  aspect-ratio: var(--ar, 16 / 9);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 18px 40px rgba(0, 0, 0, .5);
}
.video-wrap video { width: 100%; height: 100%; display: block; object-fit: contain; background: #000; }
.bigplay {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 88px; height: 88px; border-radius: 50%; border: 0; cursor: pointer; font-size: 32px; padding-left: 6px;
  background: linear-gradient(180deg, var(--gold-light), #d9a12f); color: var(--red-deep);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5), 0 0 0 8px rgba(247, 217, 138, .25);
}
.greeting { text-align: center; padding: 30px 10px 14px; }
.greeting .g-icon { font-size: 72px; line-height: 1; }
.greeting p { font-size: 18px; line-height: 1.55; color: var(--text); max-width: 520px; margin: 16px auto 0; }

.entry { margin-top: 18px; }
.watch { display: flex; align-items: center; gap: 14px; }
.watch .bar { flex: 1; height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.watch .bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--gold), #e0503f); transition: width .3s linear; }
.watch .label { font-size: 14px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.entry-card {
  display: flex; align-items: center; gap: 16px; padding: 16px 18px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); border-radius: 16px;
  animation: rise .5s cubic-bezier(.2, .9, .25, 1.1) both;
}
.entry-card .e-icon { font-size: 34px; line-height: 1; }
.entry-card .e-text { flex: 1; font-size: 16px; line-height: 1.45; }
.entry-card .e-text b { color: var(--gold-light); }
.entry-form { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.entry-form input, .entry-form select {
  flex: 1 1 150px; min-width: 0; padding: 13px 16px; border-radius: 14px; font: inherit; font-size: 16px; font-weight: 700;
  border: 1.5px solid rgba(243, 197, 90, .55); background: rgba(255, 255, 255, .07); color: #fff; outline: none;
}
.entry-form select {
  flex-basis: 190px; cursor: pointer; appearance: none; padding-right: 40px;
  background: rgba(255, 255, 255, .07) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23f7d98a' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 15px center / 12px 8px;
}
.entry-form select:invalid { color: rgba(255, 255, 255, .45); }
.entry-form select option { color: #1b1b1b; background: #fff; }
.entry-form input:focus, .entry-form select:focus { border-color: var(--gold-light); box-shadow: 0 0 0 4px rgba(243, 197, 90, .18); }
.entry-form input::placeholder { color: rgba(255, 255, 255, .45); }
.entry .err { color: #ffb4a8; font-weight: 700; font-size: 14px; margin-top: 8px; min-height: 1em; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

/* ---------------------------------------------------------------- hjul */
.wheel-overlay {
  position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 16px; overflow: auto;
  background: radial-gradient(circle at 50% 40%, rgba(29, 58, 107, .92), rgba(5, 10, 25, .96) 70%);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  animation: fadeIn .5s ease both;
}
.wheel-card { position: relative; width: min(620px, 100%); text-align: center; padding: 10px 10px 20px; }
.wheel-card .modal-close { top: 0; right: 0; }
.wheel-tabs { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 12px; border-radius: 99px; background: rgba(0, 0, 0, .3); border: 1px solid rgba(243, 197, 90, .35); }
.wheel-tabs:empty { display: none; }
.wheel-tab {
  border: 0; cursor: pointer; padding: 7px 20px; border-radius: 99px; font-weight: 800; font-size: 14px;
  background: transparent; color: var(--muted); transition: background .2s, color .2s;
}
.wheel-tab:hover { color: #fff; }
.wheel-tab.on { background: var(--gold); color: var(--red-deep); }
.wheel-box {
  --size: min(460px, 80vw, 50vh);
  position: relative; width: var(--size); height: var(--size); margin: 48px auto 8px;
  border-radius: 50%;
  box-shadow: 0 0 0 12px var(--red-dark), 0 0 0 17px var(--gold), 0 0 0 19px var(--gold-dark), 0 30px 70px rgba(0, 0, 0, .6), 0 0 80px rgba(255, 200, 90, .25);
}
.wheel-box canvas { width: 100%; height: 100%; border-radius: 50%; display: block; }
.wheel-bulb {
  position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%;
  background: #fff6cf; box-shadow: 0 0 8px 2px rgba(255, 230, 150, .9);
  animation: bulb .6s ease-in-out infinite alternate;
}
.wheel-pointer {
  position: absolute; left: 50%; top: -34px; transform: translateX(-50%); z-index: 3;
  width: 0; height: 0; border-left: 20px solid transparent; border-right: 20px solid transparent;
  border-top: 44px solid var(--gold-light); filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .5));
}
.wheel-pointer::before {
  content: '★'; position: absolute; left: 50%; top: -64px; transform: translateX(-50%);
  font-size: 24px; color: var(--gold-light); text-shadow: 0 0 12px rgba(255, 220, 120, .9);
}
.wheel-hub {
  position: absolute; left: 50%; top: 50%; width: 22%; height: 22%; transform: translate(-50%, -50%);
  border-radius: 50%; display: grid; place-items: center; z-index: 2;
  background: var(--ecit-navy); overflow: hidden;
  box-shadow: 0 0 0 4px var(--gold), 0 0 0 6px var(--gold-dark), 0 4px 14px rgba(0, 0, 0, .5);
}
.wheel-hub img { width: 92%; height: auto; display: block; }
.ticker {
  font-family: 'Playfair Display', Georgia, serif; font-weight: 800; font-size: clamp(24px, 4vw, 34px);
  color: var(--gold-light); min-height: 1.4em; margin-top: 18px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.winner-card { margin: 6px auto 4px; animation: winnerPop .9s cubic-bezier(.2, .9, .25, 1.3) both; }
.winner-card .w-kicker { font-size: 13px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.winner-card .w-name {
  font-family: 'Playfair Display', Georgia, serif; font-weight: 900; font-size: clamp(36px, 7vw, 60px); line-height: 1.1;
  background: linear-gradient(180deg, #fff, var(--gold-light) 50%, var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 14px rgba(255, 200, 90, .45));
}
.winner-card p { color: var(--muted); margin: 6px 0 0; font-weight: 700; }
@keyframes winnerPop { from { opacity: 0; transform: scale(.4); } }
.wheel-actions { display: flex; gap: 10px; justify-content: center; margin-top: 18px; }

/* --------------------------------------------------------------- toast */
.toast {
  position: fixed; left: 50%; bottom: 100px; z-index: 60; max-width: calc(100vw - 32px);
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: rgba(12, 26, 52, .96); border: 1px solid rgba(243, 197, 90, .5); color: #fff;
  padding: 12px 20px; border-radius: 99px; font-weight: 700; text-align: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .45); transition: opacity .3s, transform .3s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
#confetti { position: fixed; inset: 0; z-index: 55; pointer-events: none; }

/* -------------------------------------------------------------- mobil */
@media (max-width: 720px) {
  :root { --board-w: calc(100vw - 28px); }
  .top { padding: 44px 16px 0; flex-wrap: wrap; justify-content: center; }
  .top-right { width: 100%; justify-content: center; flex-wrap: wrap; }
  .dc-tile { min-width: 42px; }
  .dc-tile b { font-size: 20px; }
  .brand-logo { height: 36px; }
  .brand-sub { font-size: 16px; }
  .scene { padding: 24px 14px 110px; }
  .grid { grid-template-columns: repeat(4, 1fr); gap: 12px 10px; }
  .board { padding: 14px 14px 18px; }
  .board-title { font-size: 30px; margin: 6px 0 16px; }
  .infobar { flex-direction: column; align-items: stretch; text-align: center; padding: 14px; }
  .info-actions { justify-content: center; }
  .modal-card { padding: 18px 16px 18px; border-radius: 16px; }
  .video-wrap { width: min(100%, calc(56vh * var(--arn, 1.7778))); }
  .door .badge { font-size: 9px; top: -8px; right: -6px; }
}
@media (prefers-reduced-motion: reduce) {
  .stage, .door-flap { transition-duration: .01s; }
  .modal-card, .winner-card, .entry-card { animation-duration: .01s; }
  .snowfall, .door.today .face-front, .lights .bulb, .wheel-bulb, .sky::before { animation: none; }
}
