/* ==========================================================================
   PEAK – countdown timers (everything scoped under .countdown)
   Markup is generated by /assets/js/countdown.js + /assets/js/styles/*.js
   ========================================================================== */

/* -------------------------------------------------------------- card shell */

.countdown {
  --cd-font-ui: var(--font-ui, 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif);
  --cd-radius: 20px;
  --cd-pad-top: 3.1rem;
  --cd-pad-bottom: 3.7rem;

  position: relative;
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  min-height: clamp(260px, 150px + 30vw, 360px);
  border-radius: var(--cd-radius);
  overflow: hidden;
  isolation: isolate;
  container: countdown / inline-size;
  background: #0b1020;
  color: #fff;
  font-family: var(--cd-font-ui);
  font-variant-numeric: tabular-nums;
  box-shadow: 0 22px 44px -22px rgba(0, 0, 0, .7), 0 2px 8px rgba(0, 0, 0, .25);
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
}

/* Before the module has run: a calm placeholder card. */
.countdown:not(.cd-ready) {
  background: linear-gradient(160deg, #141a33, #0b1020);
}

.countdown .cd-stage {
  grid-area: 1 / 1;
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  min-width: 0;
}

.countdown .cd-scene {
  grid-area: 1 / 1;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  font-variant-numeric: tabular-nums;
}

.countdown .cd-scene.is-leaving { pointer-events: none; }

.countdown .cd-head {
  grid-area: 1 / 1;
  align-self: start;
  position: relative;
  z-index: 5;
  padding: .95rem 1rem 0;
  text-align: center;
  pointer-events: none;
}

.countdown .cd-title {
  margin: 0;
  font: 800 clamp(.95rem, .55rem + 2.2cqi, 1.3rem) / 1.15 var(--cd-font-ui);
  letter-spacing: .01em;
  color: #fff;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .45);
}

/* ---------------------------------------------------------------- toolbar */

.countdown .cd-toolbar {
  grid-area: 1 / 1;
  align-self: end;
  justify-self: center;
  position: relative;
  z-index: 6;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: .25rem;
  max-width: calc(100% - 1rem);
  margin: 0 .5rem .7rem;
  padding: .25rem;
  border-radius: 999px;
  background: rgba(8, 10, 22, .5);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .6);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  backdrop-filter: blur(10px) saturate(1.2);
}

.countdown .cd-toolbar button {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  border: 0;
  min-height: 30px;
  border-radius: 999px;
  font: 600 .74rem / 1 var(--cd-font-ui);
  letter-spacing: .01em;
  color: rgba(255, 255, 255, .85);
  background: transparent;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, opacity .15s ease, transform .15s ease;
  touch-action: manipulation;
}

.countdown .cd-pill { padding: .45rem .66rem; }

.countdown .cd-pill:hover { background: rgba(255, 255, 255, .14); color: #fff; }

.countdown .cd-pill[aria-pressed="true"] {
  background: #fff;
  color: #111526;
  box-shadow: 0 1px 6px rgba(0, 0, 0, .3);
}

.countdown .cd-toolbar .cd-sound {
  width: 30px;
  padding: 0;
  font-size: .9rem;
  line-height: 30px;
}

.countdown .cd-sound:hover { background: rgba(255, 255, 255, .14); }
.countdown .cd-sound[aria-pressed="true"] { background: rgba(255, 255, 255, .22); }
.countdown .cd-toolbar button[hidden] { display: none; }

.countdown .cd-toolbar button:active { transform: scale(.95); }

.countdown .cd-toolbar button:focus { outline: none; }
.countdown .cd-toolbar button:focus-visible {
  outline: 2px solid var(--focus-ring, #fff);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px rgba(0, 0, 0, .65);
}

@container countdown (max-width: 340px) {
  .countdown .cd-pill { padding: .42rem .5rem; }
  .countdown .cd-toolbar button { font-size: .7rem; }
}

/* ----------------------------------------------------------- celebration */

.countdown.is-celebrating {
  animation: cd-celebrate 1.1s cubic-bezier(.2, .8, .3, 1) 1;
}

@keyframes cd-celebrate {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 255, 255, .0); }
  14% { transform: scale(1.025); box-shadow: 0 0 0 6px rgba(255, 255, 255, .35); }
  32% { transform: scale(.995); }
  100% { transform: scale(1); box-shadow: 0 22px 44px -22px rgba(0, 0, 0, .7), 0 2px 8px rgba(0, 0, 0, .25); }
}

/* ------------------------------------------------- "it's time" (done) state */
/* At zero the counter stops for good; the scene stays alive but steps back behind the message. */

.countdown .cd-stage { transition: filter var(--cd-done-fade, .9s) ease, transform var(--cd-done-fade, .9s) ease; }

.countdown.is-done .cd-stage {
  filter: brightness(.42) saturate(1.25) blur(6px);
  transform: scale(1.04);
}

.countdown .cd-done {
  --cd-done-a: #ffffff;
  --cd-done-b: #a8e6ff;
  --cd-done-c: #5ad1ff;
  --cd-done-glow: rgba(90, 209, 255, .38);
  grid-area: 1 / 1;
  position: relative;
  z-index: 4;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: .7rem;
  padding: var(--cd-pad-top) 1rem var(--cd-pad-bottom);
  text-align: center;
  pointer-events: none;
}

.countdown .cd-done[hidden] { display: none; }

.countdown[data-kind="beer"] .cd-done {
  --cd-done-b: #ffe29a;
  --cd-done-c: #ffb02e;
  --cd-done-glow: rgba(255, 176, 46, .36);
}

.countdown .cd-done-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(closest-side at 50% 48%, var(--cd-done-glow), transparent 75%);
  animation: cd-done-pulse 3.4s ease-in-out infinite;
}

.countdown .cd-done-title {
  margin: 0;
  font: 800 clamp(2.4rem, 1.2rem + 9cqi, 5.4rem) / .95 "Bricolage Grotesque", var(--cd-font-ui);
  letter-spacing: -.01em;
  background: linear-gradient(100deg, var(--cd-done-a) 0%, var(--cd-done-b) 38%, var(--cd-done-a) 52%, var(--cd-done-c) 100%);
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, .45)) drop-shadow(0 0 22px var(--cd-done-glow));
  animation: cd-done-in .9s cubic-bezier(.2, .9, .3, 1.25) both, cd-done-shine 5.5s 1s ease-in-out infinite;
}

.countdown .cd-done-sub {
  margin: 0;
  padding: .38rem .9rem;
  border-radius: 999px;
  font: 600 clamp(.8rem, .6rem + 1.1cqi, .98rem) / 1.3 var(--cd-font-ui);
  color: rgba(255, 255, 255, .92);
  background: rgba(8, 10, 22, .5);
  border: 1px solid rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  animation: cd-done-in .7s .25s ease-out both;
}

.countdown .cd-done-sub:empty { display: none; }

@keyframes cd-done-in {
  from { opacity: 0; transform: translateY(10px) scale(.92); }
  to { opacity: 1; transform: none; }
}

@keyframes cd-done-shine {
  0%, 100% { background-position: 100% 0; }
  50% { background-position: 0% 0; }
}

@keyframes cd-done-pulse {
  0%, 100% { opacity: .75; transform: scale(.96); }
  50% { opacity: 1; transform: scale(1.04); }
}

@media (prefers-reduced-motion: reduce) {
  .countdown .cd-stage { transition: none; }
  .countdown .cd-done-title, .countdown .cd-done-sub, .countdown .cd-done-glow { animation: none; }
}

/* Off-screen cards: pause every CSS animation inside. */
.countdown.is-offscreen *,
.countdown.is-offscreen *::before,
.countdown.is-offscreen *::after {
  animation-play-state: paused !important;
}

/* ==========================================================================
   1. FLIPBOARD – split-flap departure board
   ========================================================================== */

.countdown[data-style="flipboard"] .cd-title {
  font-family: 'Oswald', var(--cd-font-ui);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: #ffd34e;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .6);
}

.countdown .cd-scene--flipboard {
  color: #f4ead2;
  background:
    radial-gradient(130% 80% at 50% -15%, rgba(255, 255, 255, .08), transparent 60%),
    linear-gradient(180deg, #2b2d32 0%, #1c1d21 60%, #141518 100%);
}

.countdown .fb-texture {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .016) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, .08) 0 1px, transparent 1px 4px),
    radial-gradient(ellipse at center, transparent 50%, rgba(0, 0, 0, .5) 100%);
}

.countdown .fb-bolt {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #8b8e94, #3a3c41 60%, #1c1d20);
  box-shadow: 0 1px 1px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(0, 0, 0, .3);
}
.countdown .fb-bolt::after {
  content: '';
  position: absolute;
  left: 2px;
  right: 2px;
  top: 4px;
  height: 1px;
  background: rgba(0, 0, 0, .55);
  transform: rotate(35deg);
}
.countdown .fb-bolt--tl { top: 12px; left: 12px; }
.countdown .fb-bolt--tr { top: 12px; right: 12px; }
.countdown .fb-bolt--bl { bottom: 12px; left: 12px; }
.countdown .fb-bolt--br { bottom: 12px; right: 12px; }
@container countdown (max-width: 460px) {
  .countdown .fb-bolt--bl,
  .countdown .fb-bolt--br { display: none; }
}

.countdown .fb-board {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(.55rem, 2.4cqi, 1.1rem);
  padding: var(--cd-pad-top) 4cqi var(--cd-pad-bottom);
}

.countdown .fb-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  width: min(100%, 36rem);
  padding-bottom: .45rem;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  font: 600 clamp(.6rem, .45rem + .9cqi, .78rem) / 1 var(--cd-font-ui);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(244, 234, 210, .62);
}

.countdown .fb-dest { display: flex; align-items: center; gap: .55em; min-width: 0; }

.countdown .fb-tiles { display: inline-flex; gap: 2px; }

.countdown .fb-tile {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 1.32em;
  height: 1.75em;
  border-radius: 2px;
  font: 500 1.12em / 1 'Oswald', sans-serif;
  letter-spacing: 0;
  color: #ffd34e;
  background: linear-gradient(180deg, #35383e 0 50%, #26292d 50% 100%);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .05);
}
.countdown .fb-tile::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: rgba(0, 0, 0, .7);
}

.countdown .fb-status { display: flex; align-items: center; gap: .5em; white-space: nowrap; color: rgba(244, 234, 210, .85); }

.countdown .fb-led {
  width: .62em;
  height: .62em;
  border-radius: 50%;
  background: #39d97b;
  box-shadow: 0 0 .5em #39d97b, inset 0 -1px 1px rgba(0, 0, 0, .3);
}
.countdown .fb-status[data-tone="warn"] .fb-led { background: #ffb21e; box-shadow: 0 0 .7em #ffb21e; animation: fb-blink 1s steps(2, jump-none) infinite; }
.countdown .fb-status[data-tone="party"] .fb-led { background: #ff4f7b; box-shadow: 0 0 .8em #ff4f7b; animation: fb-blink .5s steps(2, jump-none) infinite; }
.countdown .fb-status[data-tone="off"] .fb-led { background: #6b6e74; box-shadow: none; }

@keyframes fb-blink { 0% { opacity: 1; } 100% { opacity: .25; } }

.countdown .fb-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: .42em;
  font-size: min(6.2rem, calc(90cqi / var(--fb-units, 8)));
  line-height: 1;
}

.countdown .fb-group { display: flex; flex-direction: column; align-items: center; gap: .14em; }
.countdown .fb-group.is-off { display: none; }
.countdown .fb-cells { display: flex; gap: .07em; }

.countdown .fb-label {
  font: 600 max(.62rem, .17em) / 1 var(--cd-font-ui);
  font-variant-caps: all-small-caps;
  letter-spacing: .16em;
  text-indent: .16em;
  color: rgba(244, 234, 210, .66);
}

.countdown .fb-card {
  position: relative;
  display: block;
  width: .66em;
  height: 1em;
  perspective: 2.8em;
  border-radius: .07em;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  color: #f6ecd3;
  box-shadow: 0 .05em .09em rgba(0, 0, 0, .6), 0 .012em 0 rgba(255, 255, 255, .06);
}
.countdown .fb-group--s .fb-card,
.countdown .fb-group--c .fb-card { color: #ffcb37; }

.countdown .fb-half,
.countdown .fb-flap {
  position: absolute;
  left: 0;
  right: 0;
  height: 50%;
  overflow: hidden;
}
.countdown .fb-top,
.countdown .fb-flap-top {
  top: 0;
  border-radius: .07em .07em 0 0;
  background: linear-gradient(180deg, #383b41, #2c2f34);
}
.countdown .fb-bottom,
.countdown .fb-flap-bottom {
  bottom: 0;
  border-radius: 0 0 .07em .07em;
  background: linear-gradient(180deg, #25282c, #1c1e22);
}
.countdown .fb-flap {
  z-index: 2;
  opacity: 0;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.countdown .fb-flap-top { transform-origin: 50% 100%; }
.countdown .fb-flap-bottom { transform-origin: 50% 0; }

.countdown .fb-face {
  position: absolute;
  left: 0;
  right: 0;
  height: 200%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .84em;
  line-height: 1;
  text-shadow: 0 .02em .03em rgba(0, 0, 0, .55);
}
.countdown .fb-top > .fb-face,
.countdown .fb-flap-top > .fb-face { top: 0; }
.countdown .fb-bottom > .fb-face,
.countdown .fb-flap-bottom > .fb-face { bottom: 0; }

/* Hinge line + the little side pins. */
.countdown .fb-card::after {
  content: '';
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  top: 50%;
  height: max(1px, .024em);
  transform: translateY(-50%);
  background: rgba(0, 0, 0, .7);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .04);
}
.countdown .fb-card::before {
  content: '';
  position: absolute;
  z-index: 3;
  top: 50%;
  left: -.025em;
  right: -.025em;
  height: .09em;
  transform: translateY(-50%);
  border-radius: .02em;
  background: linear-gradient(90deg, #0c0d0f 0 .05em, transparent .05em calc(100% - .05em), #0c0d0f calc(100% - .05em));
}

.countdown .fb-caption {
  margin: .2rem 0 0;
  text-align: center;
  font: 600 clamp(.72rem, .55rem + 1.1cqi, .95rem) / 1.35 var(--cd-font-ui);
  letter-spacing: .04em;
  color: rgba(244, 234, 210, .82);
}

.countdown .cd-scene--flipboard.is-ended .fb-row { opacity: .45; filter: grayscale(.6); }
.countdown .cd-scene--flipboard.is-ended .fb-caption { font-size: clamp(.9rem, .6rem + 1.8cqi, 1.25rem); color: #ffd34e; }

.countdown .cd-scene--flipboard.is-party .fb-board::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 50% at 50% 50%, rgba(255, 205, 60, .22), transparent 70%);
  animation: fb-party-glow 1.2s ease-in-out 3;
  pointer-events: none;
}
@keyframes fb-party-glow { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }

/* ==========================================================================
   1b. JUNGLE (PEAK Sun) – the split-flap board in golden bamboo, in a jungle
   (styles/jungle.js; the board itself is the flipboard's, re-dressed here)
   ========================================================================== */

.countdown[data-style="jungle"] .cd-title {
  font-family: 'Oswald', var(--cd-font-ui);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: #fbe7a1;
  text-shadow: 0 2px 0 rgba(4, 30, 12, .7), 0 0 18px rgba(4, 30, 12, .6);
}

.countdown .cd-scene--jungle {
  --jg-far: #0f3a22;
  --jg-mid: #1f6b38;
  --jg-near: #2f8a46;
  --jg-fern: #3f9a4e;
  --jg-rib: #174f27;
  --jg-rib-light: #6cc06a;
  --jg-gap: #0f3a24;
  --jg-vine: #2b5e2a;
  --jg-vine-leaf: #3f9a4e;
  --jg-cane: #6f9a34;
  --jg-cane-light: #b5d66a;
  --jg-cane-dark: #3a5a18;
  color: #fdf1d4;
  background:
    radial-gradient(62% 48% at 50% 54%, rgba(3, 18, 9, .62), transparent 78%),
    radial-gradient(90% 60% at 50% -12%, rgba(255, 236, 160, .26), transparent 62%),
    linear-gradient(180deg, #1d5a34 0%, #12432a 45%, #0b2c1b 100%);
}
:root[data-theme="light"] .countdown .cd-scene--jungle {
  --jg-far: #1f6337;
  --jg-mid: #2f8247;
  --jg-near: #46a85a;
  --jg-fern: #5cb862;
  --jg-rib: #23683a;
  --jg-rib-light: #9be08c;
  --jg-gap: #20653a;
  --jg-vine: #356f2f;
  --jg-vine-leaf: #57b864;
  --jg-cane: #86b043;
  --jg-cane-light: #cfe88a;
  --jg-cane-dark: #4c7222;
  background:
    radial-gradient(62% 48% at 50% 54%, rgba(6, 34, 16, .6), transparent 78%),
    radial-gradient(90% 60% at 50% -12%, rgba(255, 244, 190, .5), transparent 62%),
    linear-gradient(180deg, #3e9a57 0%, #2a7a44 45%, #1a5532 100%);
}

/* Light falling through the canopy. */
.countdown .jg-light {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(104deg, rgba(255, 240, 180, .07) 0 2.5%, transparent 2.5% 8%);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 72%);
  mask-image: linear-gradient(180deg, #000, transparent 72%);
  animation: jg-breathe 9s ease-in-out infinite alternate;
}
@keyframes jg-breathe { from { opacity: .55; } to { opacity: 1; } }

.countdown .jg-canopy {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 46%;
  pointer-events: none;
  overflow: visible;
}
.countdown .jg-canes {
  position: absolute;
  top: 0;
  width: 9%;
  height: 100%;
  pointer-events: none;
}
.countdown .jg-canes--left { left: 0; }
.countdown .jg-canes--right { right: 0; transform: scaleX(-1); }
.countdown .jg-corner {
  position: absolute;
  bottom: -2%;
  width: min(32%, 250px);
  height: auto;
  aspect-ratio: 32 / 30;
  pointer-events: none;
  overflow: visible;
}
.countdown .jg-corner--left { left: -3%; }
.countdown .jg-corner--right { right: -3%; transform: scaleX(-1); }

.countdown .jg-far .jg-leaf { fill: var(--jg-far); }
.countdown .jg-mid .jg-leaf { fill: var(--jg-mid); }
.countdown .jg-near .jg-leaf { fill: var(--jg-near); }
.countdown .jg-fern .jg-leaf { fill: var(--jg-fern); }
.countdown .cd-scene--jungle .jg-rib { fill: none; stroke: var(--jg-rib); stroke-width: 3; stroke-linecap: round; }
.countdown .jg-near .jg-rib { stroke: var(--jg-rib-light); stroke-width: 2.5; opacity: .75; }
.countdown .jg-far .jg-rib { stroke: var(--jg-far); }
.countdown .jg-veins { fill: none; stroke: rgba(0, 40, 10, .28); stroke-width: 2; }
.countdown .jg-tears { fill: none; stroke: var(--jg-gap); stroke-width: 3; stroke-linecap: round; }
.countdown .jg-vine-line { fill: none; stroke: var(--jg-vine); stroke-width: 3; stroke-linecap: round; }
.countdown .jg-vine-leaf { fill: var(--jg-vine-leaf); }
.countdown .jg-node { fill: rgba(30, 50, 10, .55); }
.countdown .jg-sprig { fill: var(--jg-vine-leaf); }
.countdown .jg-stalk { fill: none; stroke: #4a3a18; stroke-width: 3; stroke-linecap: round; }
.countdown .jg-nut-shine { fill: none; stroke: rgba(255, 220, 170, .4); stroke-width: 2; stroke-linecap: round; }
.countdown .jg-nut-eye { fill: #1c1006; }

/* The leaves sway – slowly, a degree or two. */
.countdown .jg-sway,
.countdown .jg-sway-slow {
  transform-box: fill-box;
  transform-origin: 50% 0;
  animation: jg-sway 6s ease-in-out infinite alternate;
}
.countdown .jg-sway-slow { animation-duration: 9s; animation-delay: -3s; }
@keyframes jg-sway { from { transform: rotate(-1.6deg); } to { transform: rotate(1.6deg); } }

/* Fireflies after dark (the night theme). */
.countdown .jg-flies { position: absolute; inset: 0; pointer-events: none; }
.countdown .jg-flies i {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff7b0;
  box-shadow: 0 0 8px 2px rgba(255, 240, 140, .7);
  opacity: 0;
  animation: jg-fly var(--t) ease-in-out var(--d) infinite;
}
@keyframes jg-fly {
  0% { opacity: 0; transform: translate(0, 0); }
  30% { opacity: .9; }
  60% { opacity: .45; transform: translate(12px, -10px); }
  100% { opacity: 0; transform: translate(-6px, -22px); }
}
:root[data-theme="light"] .countdown .jg-flies { display: none; }

/* The board: bamboo flaps with burnt-in digits; the hinge is the cane's node. Seconds on fresh green bamboo. */
.countdown .cd-scene--jungle .fb-info {
  border-bottom: 2px dashed rgba(240, 214, 150, .32);
  color: rgba(253, 241, 212, .78);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .6);
}
.countdown .cd-scene--jungle .fb-status { color: #fdf1d4; }
.countdown .cd-scene--jungle .fb-led { background: #c8ff6a; box-shadow: 0 0 .7em #c8ff6a, inset 0 -1px 1px rgba(0, 0, 0, .25); }
.countdown .cd-scene--jungle .fb-tile,
.countdown .cd-scene--jungle .fb-card {
  --bamboo: linear-gradient(90deg, #7b5a22 0%, #c99a4c 14%, #f0d38e 32%, #e2bd6c 52%, #b88a3f 76%, #6e4f1d 100%);
  --fibre: repeating-linear-gradient(90deg, rgba(90, 60, 20, .12) 0 1px, transparent 1px 5px);
  color: #3b220c;
}
.countdown .cd-scene--jungle .fb-group--s .fb-card,
.countdown .cd-scene--jungle .fb-group--c .fb-card {
  --bamboo: linear-gradient(90deg, #3f6a1c 0%, #79a83a 15%, #b6d36a 33%, #9cc152 52%, #6b9a2e 76%, #3a5f18 100%);
  --fibre: repeating-linear-gradient(90deg, rgba(30, 60, 10, .14) 0 1px, transparent 1px 5px);
  color: #1d3a0b;
}
.countdown .cd-scene--jungle .fb-tile {
  font-weight: 700;
  background: var(--fibre), var(--bamboo);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .5);
}
.countdown .cd-scene--jungle .fb-tile::after { background: rgba(70, 45, 12, .6); }
.countdown .cd-scene--jungle .fb-card {
  border-radius: .12em;
  box-shadow: 0 .06em .12em rgba(0, 0, 0, .55), 0 0 0 max(1px, .012em) rgba(60, 40, 10, .35);
}
.countdown .cd-scene--jungle .fb-top,
.countdown .cd-scene--jungle .fb-flap-top {
  border-radius: .12em .12em 0 0;
  background: var(--fibre), linear-gradient(180deg, rgba(255, 250, 225, .16), rgba(0, 0, 0, 0) 70%), var(--bamboo);
  box-shadow: inset 0 .05em 0 rgba(90, 60, 20, .45);
}
.countdown .cd-scene--jungle .fb-bottom,
.countdown .cd-scene--jungle .fb-flap-bottom {
  border-radius: 0 0 .12em .12em;
  background: var(--fibre), linear-gradient(180deg, rgba(0, 0, 0, .1), rgba(0, 0, 0, .24)), var(--bamboo);
  box-shadow: inset 0 -.05em 0 rgba(90, 60, 20, .5);
}
.countdown .cd-scene--jungle .fb-face {
  font-weight: 700;
  text-shadow: 0 .02em 0 rgba(255, 236, 190, .55), 0 -.012em 0 rgba(50, 25, 0, .45);
}
.countdown .cd-scene--jungle .fb-card::after {
  height: .075em;
  background: linear-gradient(180deg, rgba(60, 40, 10, .65), rgba(255, 232, 170, .55) 45%, rgba(60, 40, 10, .75));
  box-shadow: none;
}
.countdown .cd-scene--jungle .fb-card::before {
  height: .13em;
  background: linear-gradient(90deg, #5b3b14 0 .05em, transparent .05em calc(100% - .05em), #5b3b14 calc(100% - .05em));
}
.countdown .cd-scene--jungle .fb-label { color: rgba(253, 241, 212, .8); text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.countdown .cd-scene--jungle .fb-caption { color: #fdf1d4; text-shadow: 0 1px 3px rgba(0, 0, 0, .7); }
.countdown .cd-scene--jungle.is-ended .fb-row { opacity: .5; filter: saturate(.5); }
.countdown .cd-scene--jungle.is-ended .fb-caption { font-size: clamp(.9rem, .6rem + 1.8cqi, 1.25rem); color: #ffe08a; }
.countdown .cd-scene--jungle.is-party .fb-board::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 50% at 50% 50%, rgba(255, 225, 120, .24), transparent 70%);
  animation: fb-party-glow 1.2s ease-in-out 3;
  pointer-events: none;
}
/* At zero the coconuts swing. */
.countdown .cd-scene--jungle.is-party .jg-coconuts { animation: jg-swing .45s ease-in-out 8 alternate; }
@keyframes jg-swing { from { transform: rotate(-9deg); } to { transform: rotate(9deg); } }

@media (prefers-reduced-motion: reduce) {
  .countdown .cd-scene--jungle *,
  .countdown .cd-scene--jungle .jg-light { animation: none !important; }
  .countdown .jg-flies { display: none; }
}

/* ==========================================================================
   2. SNESTORM & BJERGE
   ========================================================================== */

.countdown[data-style="snowstorm"] .cd-title {
  font-family: 'Outfit', var(--cd-font-ui);
  font-weight: 400;
  letter-spacing: .07em;
  color: #eef6ff;
  text-shadow: 0 0 12px rgba(160, 210, 255, .75), 0 1px 3px rgba(0, 10, 40, .6);
}

.countdown .cd-scene--snowstorm { background: #050a1f; color: #f2f8ff; }

.countdown .sn-back { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }

.countdown .sn-sky {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #030716 0%, #0a1536 36%, #1b2c62 70%, #344f8e 100%);
}

.countdown .sn-dawn {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 2.6s ease;
  background: linear-gradient(180deg, #1c2a68 0%, #61509b 34%, #d98a95 62%, #ffc996 84%, #ffe6bd 100%);
}

.countdown .sn-stars {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 72%;
  fill: #fff;
  opacity: .9;
  transition: opacity 2.6s ease;
}
.countdown .sn-stars .sn-tw { animation: sn-twinkle 3.4s ease-in-out infinite; }
@keyframes sn-twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .15; } }

.countdown .sn-moon {
  position: absolute;
  top: 17%;
  right: 11%;
  width: clamp(22px, 6.5cqi, 48px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 34%, #fffef4, #ece8d2 58%, #cdc8ae);
  box-shadow: 0 0 22px 6px rgba(255, 250, 220, .22), 0 0 80px 24px rgba(190, 215, 255, .12);
  transition: opacity 2.6s ease, transform 2.6s ease;
}

.countdown .sn-sunrise {
  position: absolute;
  left: 50%;
  bottom: 14%;
  width: max(320px, 80cqi);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 240, 200, .95) 0%, rgba(255, 196, 130, .6) 14%, rgba(255, 140, 120, .2) 40%, transparent 68%);
  opacity: 0;
  transform: translate(-50%, 62%) scale(.6);
  transition: opacity 2.6s ease, transform 3.2s cubic-bezier(.2, .7, .2, 1);
}

.countdown .sn-mtn {
  position: absolute;
  left: -5%;
  bottom: 0;
  width: 110%;
  display: block;
  will-change: transform;
}
.countdown .sn-mtn--far { height: 60%; }
.countdown .sn-mtn--mid { height: 45%; }
.countdown .sn-mtn--near { height: 25%; bottom: -1px; }
.countdown .sn-mtn path { transition: fill 2.6s ease, filter 1.2s ease; }
.countdown .sn-mtn--far .sn-rock { fill: #31457b; }
.countdown .sn-mtn--far .sn-cap { fill: #b8c7ec; opacity: .72; }
.countdown .sn-mtn--mid .sn-rock { fill: #18254f; }
.countdown .sn-mtn--mid .sn-cap { fill: #e4edff; opacity: .9; }
.countdown .sn-mtn--near .sn-rock { fill: #060b22; }

.countdown .sn-snow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.countdown .sn-fog {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .05;
  transition: opacity 1.5s linear;
  background: linear-gradient(180deg, rgba(225, 236, 255, .25) 0%, rgba(225, 236, 255, .7) 100%);
}

/* Dawn on the mountain: celebration and the days on the trip. */
.countdown .cd-scene--snowstorm.is-dawn .sn-dawn,
.countdown .cd-scene--snowstorm.is-glow .sn-dawn { opacity: 1; }
.countdown .cd-scene--snowstorm.is-dawn .sn-stars,
.countdown .cd-scene--snowstorm.is-glow .sn-stars { opacity: .12; }
.countdown .cd-scene--snowstorm.is-dawn .sn-moon,
.countdown .cd-scene--snowstorm.is-glow .sn-moon { opacity: 0; transform: translateY(24px); }
.countdown .cd-scene--snowstorm.is-dawn .sn-sunrise,
.countdown .cd-scene--snowstorm.is-glow .sn-sunrise { opacity: 1; transform: translate(-50%, 38%) scale(1); }
.countdown .cd-scene--snowstorm.is-dawn .sn-mtn--far .sn-rock,
.countdown .cd-scene--snowstorm.is-glow .sn-mtn--far .sn-rock { fill: #8a6ea7; }
.countdown .cd-scene--snowstorm.is-dawn .sn-mtn--far .sn-cap,
.countdown .cd-scene--snowstorm.is-glow .sn-mtn--far .sn-cap { fill: #ffd8c6; opacity: .9; }
.countdown .cd-scene--snowstorm.is-dawn .sn-mtn--mid .sn-rock,
.countdown .cd-scene--snowstorm.is-glow .sn-mtn--mid .sn-rock { fill: #4a3a77; }
.countdown .cd-scene--snowstorm.is-dawn .sn-mtn--mid .sn-cap,
.countdown .cd-scene--snowstorm.is-glow .sn-mtn--mid .sn-cap { fill: #ffe7da; }
.countdown .cd-scene--snowstorm.is-dawn .sn-mtn--near .sn-rock,
.countdown .cd-scene--snowstorm.is-glow .sn-mtn--near .sn-rock { fill: #1b1436; }
.countdown .cd-scene--snowstorm.is-glow .sn-cap { filter: drop-shadow(0 0 5px rgba(255, 180, 140, .95)); }

.countdown .sn-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(.45rem, 2.2cqi, 1rem);
  padding: var(--cd-pad-top) 3cqi var(--cd-pad-bottom);
}

.countdown .sn-row {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: .14em;
  font-family: 'Outfit', var(--cd-font-ui);
  font-weight: 400;
  font-size: min(5.4rem, calc(92cqi / var(--sn-units, 8)));
  line-height: 1;
}
@container countdown (min-width: 520px) {
  .countdown .sn-row { font-weight: 200; }
}

.countdown .sn-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: .1em .12em .13em;
  border-radius: .2em;
  background: linear-gradient(160deg, rgba(255, 255, 255, .26), rgba(255, 255, 255, .07) 55%, rgba(200, 225, 255, .14));
  border: 1px solid rgba(255, 255, 255, .36);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .6),
    inset 0 -.2em .3em -.2em rgba(170, 210, 255, .45),
    0 .14em .36em -.1em rgba(0, 8, 40, .6);
  -webkit-backdrop-filter: blur(10px) saturate(1.4);
  backdrop-filter: blur(10px) saturate(1.4);
}
.countdown .sn-group.is-off { display: none; }
.countdown .sn-group--c { font-size: .6em; }

.countdown .sn-digits { display: flex; }
.countdown .sn-slot { display: inline-grid; width: .6em; }
.countdown .sn-c {
  grid-area: 1 / 1;
  text-align: center;
  color: #f7fbff;
  text-shadow:
    0 0 .05em rgba(255, 255, 255, .95),
    0 0 .2em rgba(150, 205, 255, .9),
    0 0 .5em rgba(90, 160, 255, .5);
}

.countdown .sn-label {
  margin-top: .1em;
  font: 800 max(9px, .14em) / 1 'Outfit', var(--cd-font-ui);
  letter-spacing: .24em;
  text-indent: .24em;
  text-transform: uppercase;
  color: rgba(225, 240, 255, .86);
}

.countdown .sn-caption {
  margin: 0;
  text-align: center;
  font: 400 clamp(.8rem, .6rem + 1.4cqi, 1.05rem) / 1.35 'Outfit', var(--cd-font-ui);
  letter-spacing: .04em;
  color: rgba(238, 246, 255, .92);
  text-shadow: 0 1px 8px rgba(0, 10, 40, .85);
}

.countdown .cd-scene--snowstorm.is-ended .sn-row { display: none; }
.countdown .cd-scene--snowstorm.is-ended .sn-caption {
  font-size: clamp(1.05rem, .6rem + 3cqi, 1.8rem);
  font-weight: 400;
  max-width: 22ch;
  padding: .5em .9em;
  border-radius: .6em;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .3);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.countdown .cd-scene--snowstorm.is-dawn .sn-caption { font-size: clamp(.9rem, .6rem + 1.9cqi, 1.25rem); }

/* ==========================================================================
   3. ØLGLASSET – the beer glass
   ========================================================================== */

.countdown[data-style="beerglass"] .cd-title {
  font-family: 'Bungee', var(--cd-font-ui);
  font-weight: 400;
  letter-spacing: .03em;
  color: #ffd98a;
  text-shadow: 0 2px 0 #8a3c06, 0 4px 14px rgba(0, 0, 0, .55);
}

.countdown .cd-scene--beerglass {
  color: #ffe9c2;
  background:
    radial-gradient(70% 60% at 28% 40%, rgba(255, 166, 60, .3), transparent 70%),
    radial-gradient(50% 40% at 86% 14%, rgba(255, 120, 40, .18), transparent 70%),
    linear-gradient(180deg, #2c1508 0%, #1c0c04 64%, #120701 100%);
}

.countdown .bg-back { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }

/* Faint brick wall. */
.countdown .bg-back::before {
  content: '';
  position: absolute;
  inset: 0 0 20% 0;
  opacity: .35;
  background:
    repeating-linear-gradient(180deg, transparent 0 22px, rgba(0, 0, 0, .55) 22px 24px),
    repeating-linear-gradient(90deg, transparent 0 46px, rgba(0, 0, 0, .45) 46px 48px);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 90%);
  mask-image: linear-gradient(180deg, #000, transparent 90%);
}

.countdown .bg-bokeh {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, hsla(var(--hue), 95%, 64%, .9), hsla(var(--hue), 95%, 55%, 0) 68%);
  animation: bg-float 14s ease-in-out infinite alternate;
}
@keyframes bg-float {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(14px, -18px, 0) scale(1.08); }
}

.countdown .bg-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 21%;
  background:
    repeating-linear-gradient(176deg, rgba(255, 220, 170, .05) 0 2px, transparent 2px 9px),
    linear-gradient(180deg, #74411b 0, #4f270c 7%, #321705 100%);
  box-shadow: 0 -1px 0 rgba(255, 205, 150, .35), 0 -16px 32px rgba(0, 0, 0, .35);
}

.countdown .bg-wrap {
  --bg-avail: 90cqi;
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .35rem 4cqi;
  padding: var(--cd-pad-top) 3cqi var(--cd-pad-bottom);
}

.countdown .bg-glass {
  flex: none;
  height: clamp(118px, 34cqi, 170px);
  aspect-ratio: 224 / 334;
}

.countdown .bg-svg { display: block; width: 100%; height: 100%; overflow: visible; }
.countdown .bg-shadow { fill: rgba(0, 0, 0, .5); }
.countdown .bg-outline { fill: none; stroke: rgba(255, 255, 255, .6); stroke-width: 1.8; }
.countdown .bg-rim { fill: none; stroke: rgba(255, 255, 255, .6); stroke-width: 1.2; }
.countdown .bg-hl { opacity: .55; }
.countdown .bg-hl--thin { opacity: .35; }
.countdown .bg-halo { opacity: .65; transition: opacity 1.2s ease; }
.countdown .bg-bubbles circle { fill: rgba(255, 246, 214, .78); stroke: rgba(255, 255, 255, .65); stroke-width: .3; }
.countdown .bg-lace circle { fill: none; stroke: rgba(205, 165, 105, .5); stroke-width: .6; }

.countdown .bg-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .45rem;
  min-width: 0;
}

@container countdown (min-width: 540px) {
  .countdown .bg-wrap { --bg-avail: 58cqi; flex-direction: row; }
  .countdown .bg-glass { height: clamp(170px, 32cqi, 260px); }
  .countdown .bg-info { align-items: flex-start; }
  .countdown .bg-caption { text-align: left; }
}

.countdown .bg-row {
  display: flex;
  align-items: flex-end;
  gap: .14em;
  font-family: 'Bungee', var(--cd-font-ui);
  font-weight: 400;
  font-size: min(4.4rem, calc(var(--bg-avail) / var(--bg-units, 8)));
  line-height: 1;
}

.countdown .bg-group { display: flex; flex-direction: column; align-items: center; }
.countdown .bg-group.is-off { display: none; }
.countdown .bg-group--c { font-size: .62em; }
.countdown .bg-digits { display: flex; }

.countdown .bg-ch {
  display: inline-block;
  width: .74em;
  text-align: center;
  color: #ffe3a1;
  text-shadow:
    0 .035em 0 #f29b2b,
    0 .07em 0 #c4620f,
    0 .105em 0 #7c3305,
    0 .2em .25em rgba(0, 0, 0, .6);
}
.countdown .bg-group--c .bg-ch { color: #fff3d4; }

.countdown .bg-label {
  margin-top: .36em;
  font: 800 max(9px, .15em) / 1 var(--cd-font-ui);
  letter-spacing: .2em;
  text-indent: .2em;
  text-transform: uppercase;
  color: rgba(255, 210, 140, .82);
}

.countdown .bg-caption {
  margin: 0;
  text-align: center;
  font: 600 clamp(.78rem, .6rem + 1.2cqi, 1rem) / 1.35 var(--cd-font-ui);
  color: rgba(255, 233, 194, .92);
  text-shadow: 0 1px 6px rgba(0, 0, 0, .65);
}

.countdown .bg-skaal {
  position: absolute;
  left: 50%;
  top: 46%;
  z-index: 4;
  transform: translate(-50%, -50%) rotate(-8deg);
  font: 400 clamp(2.6rem, 17cqi, 7rem) / 1 'Bungee', var(--cd-font-ui);
  color: #fff7e0;
  white-space: nowrap;
  text-shadow:
    0 .035em 0 #ffb43a,
    0 .07em 0 #e07a0e,
    0 .105em 0 #9a4507,
    0 .14em 0 #5c2603,
    0 .24em .3em rgba(0, 0, 0, .6),
    0 0 .6em rgba(255, 190, 80, .6);
  opacity: 0;
  pointer-events: none;
}
.countdown .bg-skaal.is-on { opacity: 1; }

.countdown .cd-scene--beerglass.is-done .bg-halo { opacity: 1; }
.countdown .cd-scene--beerglass.is-final .bg-row { animation: bg-shake .16s linear infinite; }
@keyframes bg-shake {
  0% { transform: translate(0, 0) rotate(0); }
  25% { transform: translate(1px, -1px) rotate(-.5deg); }
  50% { transform: translate(-1px, 1px) rotate(.4deg); }
  75% { transform: translate(1px, 1px) rotate(-.3deg); }
  100% { transform: translate(0, 0) rotate(0); }
}
.countdown .cd-scene--beerglass.is-ended .bg-row { display: none; }
.countdown .cd-scene--beerglass.is-ended .bg-caption { font-size: clamp(.95rem, .6rem + 2cqi, 1.35rem); }

/* ==========================================================================
   4. NEON 80'ER – synthwave
   ========================================================================== */

.countdown[data-style="neon"] .cd-title {
  font-family: 'Orbitron', var(--cd-font-ui);
  font-weight: 800;
  font-size: clamp(.8rem, .5rem + 1.8cqi, 1.1rem);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #ffeafb;
  text-shadow: 0 0 4px #fff, 0 0 10px #ff2bd6, 0 0 22px #ff2bd6;
}

.countdown .cd-scene--neon { background: #12002b; color: #fff; }

.countdown .nn-back { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }

.countdown .nn-sky {
  position: absolute;
  inset: 0 0 38% 0;
  background: linear-gradient(180deg, #0c0022 0%, #2a0a5e 34%, #6a1491 60%, #c3187f 84%, #ff528c 100%);
}

.countdown .nn-stars { position: absolute; inset: 0 0 38% 0; }
.countdown .nn-star {
  position: absolute;
  width: var(--s, 1.5px);
  height: var(--s, 1.5px);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 4px #fff;
  opacity: .75;
}
.countdown .nn-star--tw { animation: nn-twinkle 2.6s ease-in-out infinite; }
@keyframes nn-twinkle { 0%, 100% { opacity: .9; } 50% { opacity: .1; } }

.countdown .nn-sunwrap {
  position: absolute;
  left: 50%;
  bottom: 38%;
  width: min(46cqi, 250px);
  aspect-ratio: 1;
  transform: translate(-50%, 52%);
  filter: drop-shadow(0 0 16px rgba(255, 90, 150, .7)) drop-shadow(0 0 46px rgba(255, 60, 160, .35));
}
.countdown .nn-sun { display: block; width: 100%; height: 100%; }

.countdown .nn-ridge {
  position: absolute;
  left: -2%;
  bottom: 38%;
  width: 104%;
  height: 15%;
  overflow: visible;
}
.countdown .nn-ridge-fill { fill: #1a0640; }
.countdown .nn-ridge-line {
  fill: none;
  stroke: #24e6ff;
  stroke-width: 1.5;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 3px #24e6ff);
}

.countdown .nn-floor {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 38%;
  overflow: hidden;
  perspective: 220px;
  perspective-origin: 50% 0;
  background: linear-gradient(180deg, #2c0752 0%, #13012e 55%, #07000f 100%);
}
.countdown .nn-plane {
  position: absolute;
  left: -90%;
  right: -90%;
  top: 0;
  height: 280%;
  transform-origin: 50% 0;
  transform: rotateX(68deg);
}
.countdown .nn-grid {
  position: absolute;
  left: 0;
  right: 0;
  top: -44px;
  bottom: 0;
  background-image:
    linear-gradient(90deg, transparent 18px, rgba(255, 64, 220, .28) 18px 20.5px, rgba(255, 110, 235, .95) 20.5px 23.5px, rgba(255, 64, 220, .28) 23.5px 26px, transparent 26px),
    linear-gradient(180deg, transparent 18px, rgba(255, 64, 220, .28) 18px 20.5px, rgba(255, 110, 235, .95) 20.5px 23.5px, rgba(255, 64, 220, .28) 23.5px 26px, transparent 26px);
  background-size: 44px 44px;
  background-position: 50% 0;
  will-change: transform;
}
.countdown .nn-floor::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, #2c0752 0%, rgba(44, 7, 82, .55) 14%, rgba(44, 7, 82, 0) 42%),
    linear-gradient(0deg, rgba(7, 0, 15, .55), transparent 45%);
}
.countdown .nn-flash {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  mix-blend-mode: screen;
  background: radial-gradient(90% 130% at 50% 0%, rgba(140, 255, 255, .85), rgba(255, 80, 230, .4) 50%, transparent 80%);
}

.countdown .nn-horizon {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 38%;
  height: 2px;
  background: #ffc8f3;
  box-shadow: 0 0 8px 2px #ff4fd8, 0 0 26px 6px rgba(255, 79, 216, .5);
}

/* Digits live in the sky (above the horizon); the caption sits on the floor. */
.countdown .nn-content {
  position: absolute;
  z-index: 2;
  inset: 0 0 38% 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--cd-pad-top) - .3rem) 3cqi .4rem;
}

.countdown .nn-row {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  font-family: 'Orbitron', var(--cd-font-ui);
  font-weight: 800;
  font-size: min(4.6rem, calc(92cqi / var(--nn-units, 8)));
  line-height: 1;
}

.countdown .nn-group { display: flex; flex-direction: column; align-items: center; padding: 0 .19em; }
.countdown .nn-group--c { font-size: .6em; }
.countdown .nn-group.is-off,
.countdown .nn-sep.is-off { display: none; }
.countdown .nn-digits { display: flex; }

.countdown .nn-sep {
  align-self: flex-start;
  width: .32em;
  text-align: center;
  color: #b9fbff;
  text-shadow: 0 0 .06em #fff, 0 0 .14em #19f0ff, 0 0 .34em #19f0ff;
  animation: nn-blink 1s steps(2, jump-none) infinite;
}
@keyframes nn-blink { 0% { opacity: 1; } 100% { opacity: .35; } }

.countdown .nn-ch {
  position: relative;
  display: inline-block;
  width: .78em;
  text-align: center;
  color: #fff6fe;
  text-shadow:
    0 0 .025em rgba(50, 0, 80, .95),
    0 0 .09em #ff4fd8,
    0 0 .2em #ff2bd6,
    0 0 .46em rgba(255, 43, 214, .65),
    .035em .03em 0 rgba(0, 229, 255, .55);
}
.countdown .nn-ch::before,
.countdown .nn-ch::after {
  content: attr(data-ch);
  position: absolute;
  inset: 0;
  opacity: 0;
  text-shadow: none;
  pointer-events: none;
}
.countdown .nn-ch::before { color: #ff2b6d; }
.countdown .nn-ch::after { color: #19f0ff; }

.countdown .nn-row.is-glitch-a .nn-ch::before { animation: nn-glitch-r-a .24s steps(1, end) 1; }
.countdown .nn-row.is-glitch-a .nn-ch::after { animation: nn-glitch-c-a .24s steps(1, end) 1; }
.countdown .nn-row.is-glitch-a .nn-ch { animation: nn-jitter-a .2s steps(1, end) 1; }
.countdown .nn-row.is-glitch-b .nn-ch::before { animation: nn-glitch-r-b .24s steps(1, end) 1; }
.countdown .nn-row.is-glitch-b .nn-ch::after { animation: nn-glitch-c-b .24s steps(1, end) 1; }
.countdown .nn-row.is-glitch-b .nn-ch { animation: nn-jitter-b .2s steps(1, end) 1; }

@keyframes nn-glitch-r-a {
  0% { opacity: .95; transform: translate(-0.106em, 0); clip-path: inset(6% 0 64% 0); }
  25% { opacity: .95; transform: translate(0.076em, 0); clip-path: inset(52% 0 22% 0); }
  50% { opacity: .95; transform: translate(-0.046em, 0); clip-path: inset(28% 0 48% 0); }
  75% { opacity: .95; transform: translate(0.091em, 0); clip-path: inset(72% 0 4% 0); }
  100% { opacity: 0; }
}
@keyframes nn-glitch-c-a {
  0% { opacity: .95; transform: translate(0.106em, 0); clip-path: inset(58% 0 18% 0); }
  25% { opacity: .95; transform: translate(-0.076em, 0); clip-path: inset(12% 0 70% 0); }
  50% { opacity: .95; transform: translate(0.061em, 0); clip-path: inset(40% 0 36% 0); }
  75% { opacity: .95; transform: translate(-0.091em, 0); clip-path: inset(2% 0 80% 0); }
  100% { opacity: 0; }
}
@keyframes nn-jitter-a {
  0% { transform: translate(0.038em, 0) skewX(-8deg); }
  40% { transform: translate(-0.030em, 0) skewX(4deg); }
  80% { transform: none; }
}
@keyframes nn-glitch-r-b {
  0% { opacity: .95; transform: translate(-0.106em, 0); clip-path: inset(6% 0 64% 0); }
  25% { opacity: .95; transform: translate(0.076em, 0); clip-path: inset(52% 0 22% 0); }
  50% { opacity: .95; transform: translate(-0.046em, 0); clip-path: inset(28% 0 48% 0); }
  75% { opacity: .95; transform: translate(0.091em, 0); clip-path: inset(72% 0 4% 0); }
  100% { opacity: 0; }
}
@keyframes nn-glitch-c-b {
  0% { opacity: .95; transform: translate(0.106em, 0); clip-path: inset(58% 0 18% 0); }
  25% { opacity: .95; transform: translate(-0.076em, 0); clip-path: inset(12% 0 70% 0); }
  50% { opacity: .95; transform: translate(0.061em, 0); clip-path: inset(40% 0 36% 0); }
  75% { opacity: .95; transform: translate(-0.091em, 0); clip-path: inset(2% 0 80% 0); }
  100% { opacity: 0; }
}
@keyframes nn-jitter-b {
  0% { transform: translate(0.038em, 0) skewX(-8deg); }
  40% { transform: translate(-0.030em, 0) skewX(4deg); }
  80% { transform: none; }
}

.countdown .nn-label {
  margin-top: .36em;
  font: 500 max(8px, .15em) / 1 'Orbitron', var(--cd-font-ui);
  letter-spacing: .26em;
  text-indent: .26em;
  text-transform: uppercase;
  color: #9ff9ff;
  text-shadow: 0 0 2px #14002e, 0 0 3px #14002e, 0 0 4px #14002e, 0 0 9px rgba(25, 240, 255, .8);
}

.countdown .nn-caption {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: calc(var(--cd-pad-bottom) - .1rem);
  transform: translateX(-50%);
  max-width: calc(100% - 1.5rem);
  width: max-content;
  margin: 0;
  padding: .3em .9em;
  border-radius: 999px;
  background: rgba(12, 0, 34, .62);
  border: 1px solid rgba(25, 240, 255, .35);
  box-shadow: 0 0 12px rgba(25, 240, 255, .25);
  text-align: center;
  font: 500 clamp(.66rem, .48rem + 1.2cqi, .9rem) / 1.4 'Orbitron', var(--cd-font-ui);
  letter-spacing: .08em;
  color: #b4fbff;
  text-shadow: 0 0 8px rgba(25, 240, 255, .75), 0 1px 2px rgba(20, 0, 40, .9);
}

.countdown .nn-banner {
  position: absolute;
  left: 50%;
  top: 40%;
  z-index: 5;
  transform: translate(-50%, -50%) skewX(-10deg);
  font: 800 clamp(2.2rem, 15cqi, 6.4rem) / 1.1 'Orbitron', var(--cd-font-ui);
  letter-spacing: .04em;
  white-space: nowrap;
  color: transparent;
  background: linear-gradient(180deg, #fff 0%, #c4f7ff 28%, #4fb3ff 48%, #2a0a5e 50%, #ff8ad8 53%, #ffd8f4 76%, #fff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke: .012em rgba(255, 255, 255, .7);
  filter: drop-shadow(0 0 .06em #ff2bd6) drop-shadow(0 0 .25em rgba(255, 43, 214, .75));
  opacity: 0;
  pointer-events: none;
}
.countdown .nn-banner.is-on { opacity: 1; }

.countdown .nn-scan {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background:
    repeating-linear-gradient(180deg, rgba(0, 0, 0, .26) 0 1px, transparent 1px 3px),
    radial-gradient(120% 90% at 50% 50%, transparent 58%, rgba(0, 0, 0, .5) 100%);
}
.countdown .nn-scan::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -20%;
  height: 18%;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .05), transparent);
  animation: nn-roll 7s linear infinite;
}
@keyframes nn-roll { to { transform: translateY(720%); } }

.countdown .cd-scene--neon.is-party .nn-sunwrap { animation: nn-sun-pulse .55s ease-in-out 5; }
@keyframes nn-sun-pulse {
  0%, 100% { filter: drop-shadow(0 0 16px rgba(255, 90, 150, .7)) drop-shadow(0 0 46px rgba(255, 60, 160, .35)); }
  50% { filter: drop-shadow(0 0 28px rgba(255, 220, 120, 1)) drop-shadow(0 0 90px rgba(255, 80, 200, .8)); }
}
.countdown .cd-scene--neon.is-ended .nn-row { opacity: .4; filter: saturate(.35); }
.countdown .cd-scene--neon.is-ended .nn-sep { animation: none; }

/* ==========================================================================
   5. STOLELIFT – chairlift (ski only)
   ========================================================================== */

@property --cl-top { syntax: '<color>'; inherits: true; initial-value: #2f7fd0; }
@property --cl-mid { syntax: '<color>'; inherits: true; initial-value: #7cb9ec; }
@property --cl-bot { syntax: '<color>'; inherits: true; initial-value: #d8edff; }
@property --cl-far { syntax: '<color>'; inherits: true; initial-value: #bccdea; }
@property --cl-near { syntax: '<color>'; inherits: true; initial-value: #94acd2; }
@property --cl-snow { syntax: '<color>'; inherits: true; initial-value: #f6faff; }
@property --cl-shade { syntax: '<color>'; inherits: true; initial-value: #c6d7ee; }
@property --cl-tree { syntax: '<color>'; inherits: true; initial-value: #1f4a3a; }
@property --cl-sun { syntax: '<color>'; inherits: true; initial-value: #fff6d2; }
@property --cl-win { syntax: '<color>'; inherits: true; initial-value: #a9cbe8; }
@property --cl-sun-x { syntax: '<percentage>'; inherits: true; initial-value: 18%; }
@property --cl-sun-y { syntax: '<percentage>'; inherits: true; initial-value: 20%; }

.countdown[data-style="chairlift"] .cd-title {
  font-family: var(--cd-font-ui);
  font-weight: 800;
  letter-spacing: .03em;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 25, 70, .55), 0 0 16px rgba(0, 30, 80, .35);
}

.countdown .cd-scene--chairlift {
  color: #fff;
  background: var(--cl-bot);
  transition:
    --cl-top 2.4s ease, --cl-mid 2.4s ease, --cl-bot 2.4s ease, --cl-far 2.4s ease, --cl-near 2.4s ease,
    --cl-snow 2.4s ease, --cl-shade 2.4s ease, --cl-tree 2.4s ease, --cl-sun 2.4s ease, --cl-win 2.4s ease,
    --cl-sun-x 3s ease, --cl-sun-y 3s ease;
}

.countdown .cl-sky {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--cl-top) 0%, var(--cl-mid) 58%, var(--cl-bot) 100%);
}

.countdown .cl-sun {
  position: absolute;
  left: var(--cl-sun-x);
  top: var(--cl-sun-y);
  width: clamp(26px, 7cqi, 54px);
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, #fff 0 34%, var(--cl-sun) 60%, transparent 71%);
  box-shadow: 0 0 46px 16px rgba(255, 236, 190, .35);
}
.countdown .cd-scene--chairlift.is-ended .cl-sun {
  width: clamp(20px, 5cqi, 40px);
  background: radial-gradient(circle at 38% 36%, #fffdf2, #e4e0cc 58%, #cbc6ad 69%, transparent 71%);
  box-shadow: 0 0 30px 8px rgba(210, 225, 255, .16);
}

.countdown .cl-svg {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.countdown .cl-far { fill: var(--cl-far); }
.countdown .cl-near { fill: var(--cl-near); }
.countdown .cl-cap { fill: var(--cl-snow); opacity: .82; }
.countdown .cl-cap--near { opacity: .9; }
.countdown .cl-tree { fill: var(--cl-tree); }
.countdown .cl-treesnow { fill: var(--cl-snow); opacity: .92; }
.countdown .cl-cable { fill: none; stroke: #262a31; stroke-linecap: round; }
.countdown .cl-cable--ret { stroke: rgba(38, 42, 49, .55); }
.countdown .cl-steel { fill: #5b6675; }
.countdown .cl-sheave { fill: #1f2227; }
.countdown .cl-wood { fill: #8a5a3b; }
.countdown .cl-roof { fill: #3b3f4a; }
.countdown .cl-roofsnow { fill: var(--cl-snow); }
.countdown .cl-opening { fill: #2a1d16; }
.countdown .cl-window { fill: var(--cl-win); }
.countdown .cl-pole { fill: none; stroke: #dfe3e8; stroke-width: 1.4; }

/* Chairs, riders and skiers are <use> clones styled inline (see chairlift.js); only colours flow in via custom properties. */
.countdown .cl-chair { --seat: #46505f; }
.countdown .cl-chair--ret { --seat: #6c7787; }
.countdown .cl-ours { --seat: #d4202f; }

.countdown .cl-snow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.countdown .cl-content {
  position: relative;
  z-index: 3;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  min-height: clamp(360px, 250px + 30cqi, 470px);
  padding: var(--cd-pad-top) 3cqi calc(var(--cd-pad-bottom) - .1rem);
}

/* The lift sign: red enamel with a white rim and a white caption strip. */
.countdown .cl-board {
  position: relative;
  width: min(100%, 34rem);
  padding: .5rem .8rem 0;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(180deg, #da2635 0%, #b5131e 100%);
  box-shadow:
    inset 0 0 0 2px #a30f19,
    inset 0 0 0 4px rgba(255, 255, 255, .92),
    0 16px 30px -14px rgba(30, 0, 0, .65),
    0 3px 0 #7a0b12;
}
.countdown .cl-board::before,
.countdown .cl-board::after {
  content: '';
  position: absolute;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff, #c9cdd3 55%, #80868f);
  box-shadow: 0 1px 1px rgba(0, 0, 0, .4);
}
.countdown .cl-board::before { left: 9px; }
.countdown .cl-board::after { right: 9px; }

.countdown .cl-board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  padding: .12rem .55rem .4rem;
  font: 800 clamp(.56rem, .44rem + .8cqi, .72rem) / 1 var(--cd-font-ui);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.countdown .cl-board-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.countdown .cl-status { display: flex; align-items: center; gap: .45em; white-space: nowrap; }
.countdown .cl-led {
  width: .66em;
  height: .66em;
  border-radius: 50%;
  background: #3ddc84;
  box-shadow: 0 0 .5em #3ddc84, inset 0 -1px 1px rgba(0, 0, 0, .3);
}
.countdown .cl-status[data-tone="warn"] .cl-led { background: #ffd23f; box-shadow: 0 0 .6em #ffd23f; animation: cl-blink 1s steps(2, jump-none) infinite; }
.countdown .cl-status[data-tone="party"] .cl-led { background: #fff; box-shadow: 0 0 .7em #fff; animation: cl-blink .5s steps(2, jump-none) infinite; }
.countdown .cl-status[data-tone="off"] .cl-led { background: #6e0b13; box-shadow: none; }
@keyframes cl-blink { 0% { opacity: 1; } 100% { opacity: .3; } }

.countdown .cl-row {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  font: 800 min(3.6rem, calc(min(80cqi, 30.5rem) / var(--cl-units, 8))) / 1 var(--cd-font-ui);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}
.countdown .cl-group { display: flex; flex-direction: column; align-items: center; padding: 0 .12em; }
.countdown .cl-group + .cl-group { border-left: 1px solid rgba(255, 255, 255, .28); }
.countdown .cl-group.is-off { display: none; }
.countdown .cl-group--c { font-size: .6em; }
.countdown .cl-digits { display: flex; }
.countdown .cl-ch {
  display: inline-block;
  width: .62em;
  text-align: center;
  text-shadow: 0 .03em 0 rgba(90, 0, 10, .55);
}
.countdown .cl-label {
  margin-top: .3em;
  font: 700 max(8.5px, .15em) / 1 var(--cd-font-ui);
  letter-spacing: .2em;
  text-indent: .2em;
  text-transform: uppercase;
  opacity: .88;
}

.countdown .cl-board-foot {
  margin: .5rem -.8rem 0;
  padding: .38rem .8rem .42rem;
  border-radius: 0 0 12px 12px;
  background: #fff;
  color: #9b1018;
  text-align: center;
  font: 700 clamp(.7rem, .55rem + 1cqi, .9rem) / 1.3 var(--cd-font-ui);
}

.countdown .cd-scene--chairlift.is-ended .cl-row { display: none; }
.countdown .cd-scene--chairlift.is-ended .cl-board-foot {
  margin-top: .3rem;
  padding: .7rem .9rem .75rem;
  font-size: clamp(.9rem, .6rem + 1.8cqi, 1.2rem);
}

.countdown .cd-scene--chairlift.is-party .cl-board { animation: cl-party .55s ease-in-out 4; }
@keyframes cl-party {
  0%, 100% { transform: none; }
  50% {
    transform: translateY(-3px) scale(1.02);
    box-shadow: inset 0 0 0 2px #a30f19, inset 0 0 0 4px #fff, 0 0 26px 6px rgba(255, 220, 120, .65), 0 3px 0 #7a0b12;
  }
}

/* ------------------------------------------------------------ reduced motion */

@media (prefers-reduced-motion: reduce) {
  .countdown,
  .countdown *,
  .countdown *::before,
  .countdown *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* ==========================================================================
   FLYVETUR – the trip to the first beer (beer timer, styles/flight.js)
   ========================================================================== */

.countdown .cd-scene--flight {
  --fl-sky-top: #070d26; --fl-sky-mid: #16235a; --fl-sky-bot: #33407e; --fl-horizon: rgba(255, 170, 80, .28);
  --fl-far-top: #3d4c8a; --fl-far: #27315f;
  --fl-near-top: #6274b4; --fl-near: #2c3769;
  --fl-snow: #eef6ff; --fl-shade: #b6c8ea; --fl-pine: #12233a; --fl-hill: #d9e6f7;
  --fl-ground-top: #2a3566; --fl-ground: #141c40;
  --fl-glow: #ffb547;
  --fl-route: rgba(173, 225, 255, .42); --fl-route-flown: #5ad1ff;
  --fl-code: #e9f1ff;
  --fl-tile-a: rgba(220, 240, 255, .2); --fl-tile-b: rgba(150, 205, 255, .07); --fl-tile-line: rgba(200, 235, 255, .34);
  --fl-digit-a: #ffffff; --fl-digit-b: #d6f2ff; --fl-digit-c: #8fd6ff; --fl-digit-glow: rgba(120, 210, 255, .5);
  --fl-label: #bfe4ff; --fl-caption: #bcd3f0; --fl-ice: rgba(205, 238, 255, .6);
  --fl-icicles: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 22' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23f4fcff'/%3E%3Cstop offset='.55' stop-color='%23bfe7ff'/%3E%3Cstop offset='1' stop-color='%238fd6ff' stop-opacity='.35'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cg fill='url(%23g)' stroke='rgba(255,255,255,.85)' stroke-width='.8' stroke-linejoin='round' vector-effect='non-scaling-stroke'%3E%3Cpath d='M4 0h9l-4.2 15Z'/%3E%3Cpath d='M17 0h7l-3.2 10Z'/%3E%3Cpath d='M28 0h10l-4.7 21Z'/%3E%3Cpath d='M43 0h7l-3.2 12Z'/%3E%3Cpath d='M54 0h10l-4.7 18Z'/%3E%3Cpath d='M68 0h7l-3.2 9Z'/%3E%3Cpath d='M79 0h9l-4.2 16Z'/%3E%3Cpath d='M91 0h6l-2.7 8Z'/%3E%3C/g%3E%3Cg fill='none' stroke='rgba(255,255,255,.9)' stroke-width='.9' stroke-linecap='round' vector-effect='non-scaling-stroke'%3E%3Cpath d='M6.7 1L8.1 10.8'/%3E%3Cpath d='M19.1 1L20.1 7.2'/%3E%3Cpath d='M31.0 1L32.6 15.1'/%3E%3Cpath d='M45.1 1L46.1 8.6'/%3E%3Cpath d='M57.0 1L58.6 13.0'/%3E%3Cpath d='M70.1 1L71.1 6.5'/%3E%3Cpath d='M81.7 1L83.1 11.5'/%3E%3Cpath d='M92.8 1L93.6 5.8'/%3E%3C/g%3E%3C/svg%3E");
  color: #fff;
  background: var(--fl-ground);
}
:root[data-theme="light"] .countdown .cd-scene--flight {
  --fl-sky-top: #6fb0ea; --fl-sky-mid: #b5d8f6; --fl-sky-bot: #e6f3ff; --fl-horizon: rgba(255, 196, 120, .35);
  --fl-far-top: #b7cbe8; --fl-far: #94afd6;
  --fl-near-top: #9db4dc; --fl-near: #6d88bd;
  --fl-snow: #ffffff; --fl-shade: #cfdcf0; --fl-pine: #2c4d5e; --fl-hill: #f2f8ff;
  --fl-ground-top: #eaf3fd; --fl-ground: #d5e5f6;
  --fl-route: rgba(16, 48, 92, .32); --fl-route-flown: #0872ad;
  --fl-code: #17325a;
  --fl-tile-a: rgba(255, 255, 255, .78); --fl-tile-b: rgba(232, 243, 255, .55); --fl-tile-line: rgba(120, 170, 220, .55);
  --fl-digit-a: #0e3a66; --fl-digit-b: #1a5f9e; --fl-digit-c: #2b86c7; --fl-digit-glow: rgba(255, 255, 255, .9);
  --fl-label: #3b6893; --fl-caption: #35577f; --fl-ice: rgba(150, 200, 240, .8);
  --fl-icicles: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 22' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23ffffff'/%3E%3Cstop offset='.55' stop-color='%23d3eafc'/%3E%3Cstop offset='1' stop-color='%238cc2ee' stop-opacity='.35'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cg fill='url(%23g)' stroke='rgba(70,130,190,.75)' stroke-width='.8' stroke-linejoin='round' vector-effect='non-scaling-stroke'%3E%3Cpath d='M4 0h9l-4.2 15Z'/%3E%3Cpath d='M17 0h7l-3.2 10Z'/%3E%3Cpath d='M28 0h10l-4.7 21Z'/%3E%3Cpath d='M43 0h7l-3.2 12Z'/%3E%3Cpath d='M54 0h10l-4.7 18Z'/%3E%3Cpath d='M68 0h7l-3.2 9Z'/%3E%3Cpath d='M79 0h9l-4.2 16Z'/%3E%3Cpath d='M91 0h6l-2.7 8Z'/%3E%3C/g%3E%3Cg fill='none' stroke='rgba(255,255,255,.95)' stroke-width='.9' stroke-linecap='round' vector-effect='non-scaling-stroke'%3E%3Cpath d='M6.7 1L8.1 10.8'/%3E%3Cpath d='M19.1 1L20.1 7.2'/%3E%3Cpath d='M31.0 1L32.6 15.1'/%3E%3Cpath d='M45.1 1L46.1 8.6'/%3E%3Cpath d='M57.0 1L58.6 13.0'/%3E%3Cpath d='M70.1 1L71.1 6.5'/%3E%3Cpath d='M81.7 1L83.1 11.5'/%3E%3Cpath d='M92.8 1L93.6 5.8'/%3E%3C/g%3E%3C/svg%3E");
}
:root[data-theme="light"] .countdown[data-style="flight"] .cd-title { color: #0b1b33; text-shadow: 0 1px 8px rgba(255, 255, 255, .6); }

.countdown .fl-sky {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(60% 40% at 88% 78%, var(--fl-horizon), transparent 70%),
    linear-gradient(180deg, var(--fl-sky-top) 0%, var(--fl-sky-mid) 42%, var(--fl-sky-bot) 72%, var(--fl-ground-top) 100%);
}
.countdown .fl-star {
  position: absolute; width: var(--sz, 2px); height: var(--sz, 2px); border-radius: 50%; background: #fff;
  opacity: .7; animation: fl-twinkle 3.6s ease-in-out infinite;
}
:root[data-theme="light"] .countdown .fl-star { display: none; }
@keyframes fl-twinkle { 50% { opacity: .15; } }
.countdown .fl-cloud {
  position: absolute; left: 0; width: var(--w, 80px); height: calc(var(--w, 80px) * .28); border-radius: 999px;
  background: rgba(255, 255, 255, .12); filter: blur(1px);
  box-shadow: calc(var(--w, 80px) * .22) calc(var(--w, 80px) * -.1) 0 calc(var(--w, 80px) * -.04) rgba(255, 255, 255, .1);
  animation: fl-drift 70s linear infinite;
}
:root[data-theme="light"] .countdown .fl-cloud {
  background: rgba(255, 255, 255, .7);
  box-shadow: calc(var(--w, 80px) * .22) calc(var(--w, 80px) * -.1) 0 calc(var(--w, 80px) * -.04) rgba(255, 255, 255, .6);
}
@keyframes fl-drift { from { transform: translateX(-30%); } to { transform: translateX(calc(100cqi + 30%)); } }

.countdown .fl-art { position: relative; flex: 1 1 auto; min-height: 96px; margin-top: calc(var(--cd-pad-top) + .2rem); }
.countdown .fl-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }

.countdown .fl-near, .countdown .fl-far { stroke: none; }
.countdown .fl-snowcap { fill: var(--fl-snow); }
.countdown .fl-shade { fill: var(--fl-shade); opacity: .55; }
.countdown .fl-pine { fill: var(--fl-pine); }
.countdown .fl-hill { fill: var(--fl-hill); }
.countdown .fl-runway { fill: #232b48; }
:root[data-theme="light"] .countdown .fl-runway { fill: #5b6c8c; }
.countdown .fl-runway-line { stroke: rgba(255, 255, 255, .75); stroke-width: 1; stroke-dasharray: 4 4; }
.countdown .fl-terminal { fill: #c9d6ec; }
.countdown .fl-terminal-roof, .countdown .fl-tower-cab { fill: #8ea3c7; }
.countdown .fl-tower { fill: #b4c3dd; }
.countdown .fl-glass { fill: #5ad1ff; }
.countdown .fl-tower-light { fill: #ff5d5d; animation: fl-blink 1.6s steps(2, jump-none) infinite; }
@keyframes fl-blink { 50% { opacity: .2; } }
.countdown .fl-code { font: 800 8px/1 var(--cd-font-ui); letter-spacing: .12em; fill: var(--fl-code); }
.countdown .fl-code--dest { font-size: 7.5px; letter-spacing: .06em; }

.countdown .fl-route { fill: none; stroke: var(--fl-route); stroke-width: 1.6; stroke-dasharray: 2 6; stroke-linecap: round; }
.countdown .fl-route-flown {
  fill: none; stroke: var(--fl-route-flown); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 0 1;
  filter: drop-shadow(0 0 3px var(--fl-route-flown));
}
.countdown .fl-trail circle { fill: #fff; }

.countdown .fl-plane-body { fill: #f4f8ff; }
.countdown .fl-plane-belly { fill: #d4e0f3; }
.countdown .fl-plane-stripe { fill: #5ad1ff; }
.countdown .fl-plane-tail, .countdown .fl-plane-fin { fill: #ff9f43; }
.countdown .fl-plane-wing { fill: #c5d4ea; }
.countdown .fl-plane-wing--far { fill: #9fb3d4; }
.countdown .fl-plane-engine { fill: #8fa4c6; }
.countdown .fl-plane-cockpit { fill: #13234a; }
.countdown .fl-plane-windows circle { fill: #1f3d73; }
.countdown .fl-plane { filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .35)); }
.countdown .fl-plane-shadow { fill: #000; opacity: 0; transition: opacity .4s ease; }
.countdown .fl-plane.is-parked .fl-plane-shadow { opacity: .3; }
.countdown .fl-plane-beacon { animation: fl-blink 1.2s steps(2, jump-none) infinite; }

.countdown .fl-glow { transform-box: fill-box; transform-origin: center; transition: opacity .6s ease; }
.countdown .fl-hut-body { fill: #8a5a3c; }
.countdown .fl-hut-logs { stroke: #6b4329; stroke-width: .8; }
.countdown .fl-roof { fill: #4a2c22; }
.countdown .fl-roof-snow { fill: var(--fl-snow); }
.countdown .fl-chimney { fill: #5b3a2c; }
.countdown .fl-door { fill: #5b3624; }
.countdown .fl-window { fill: #ffcf6b; filter: drop-shadow(0 0 3px #ffb547); }
.countdown .fl-lights circle { fill: #ffd166; animation: fl-twinkle 2.4s ease-in-out infinite; }
.countdown .fl-lights circle:nth-child(2n) { fill: #ff9f43; animation-delay: -.8s; }
.countdown .fl-lights circle:nth-child(3n) { fill: #8fe3ff; animation-delay: -1.6s; }
.countdown .fl-sign-post { fill: #5b3a2c; }
.countdown .fl-sign-board { fill: #3a2318; stroke: #ffb547; stroke-width: .8; }
.countdown .fl-mug { fill: none; stroke: #ffcf6b; stroke-width: 1.1; stroke-linejoin: round; }
.countdown .fl-foam { fill: #fff6e0; }
.countdown .fl-smoke circle {
  fill: rgba(230, 236, 255, .55); transform-box: fill-box; transform-origin: center;
  animation: fl-smoke 4.5s ease-out infinite;
}
.countdown .fl-smoke circle:nth-child(2) { animation-delay: -1.5s; }
.countdown .fl-smoke circle:nth-child(3) { animation-delay: -3s; }
@keyframes fl-smoke {
  0% { transform: translate(0, 0) scale(.5); opacity: 0; }
  20% { opacity: .7; }
  100% { transform: translate(7px, -20px) scale(1.7); opacity: 0; }
}
.countdown .fl-bubbles circle, .countdown .fl-spark { opacity: 0; }

/* Status (top left, under the title) */
.countdown .fl-status {
  position: absolute; z-index: 3; top: calc(var(--cd-pad-top) + .1rem); left: .85rem;
  display: flex; align-items: center; gap: .45em; padding: .3em .75em;
  font: 700 clamp(.58rem, .5rem + .5cqi, .7rem)/1 var(--cd-font-ui); letter-spacing: .08em; text-transform: uppercase;
  color: #e6f3ff; border-radius: 999px; background: rgba(8, 14, 36, .5); border: 1px solid rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
:root[data-theme="light"] .countdown .fl-status { color: #12335c; background: rgba(255, 255, 255, .65); border-color: rgba(16, 48, 92, .18); }
.countdown .fl-status-led { width: .6em; height: .6em; border-radius: 50%; background: #5ad1ff; box-shadow: 0 0 .6em #5ad1ff; }
.countdown .fl-status[data-tone="warn"] .fl-status-led { background: #ffd23f; box-shadow: 0 0 .6em #ffd23f; animation: fl-blink 1s steps(2, jump-none) infinite; }
.countdown .fl-status[data-tone="party"] .fl-status-led { background: #ffb547; box-shadow: 0 0 .8em #ffb547; animation: fl-blink .6s steps(2, jump-none) infinite; }
.countdown .fl-status[data-tone="off"] .fl-status-led { background: #56607e; box-shadow: none; }

/* Frosted digits hanging under the mountains */
.countdown .fl-board {
  position: relative; z-index: 2; display: grid; justify-items: center; gap: 1.3rem;
  padding: .55rem .8rem calc(var(--cd-pad-bottom) - .1rem);
  background: linear-gradient(180deg, var(--fl-ground-top), var(--fl-ground));
}
.countdown .fl-row { display: flex; justify-content: center; gap: clamp(.35rem, .2rem + 1cqi, .7rem); }
.countdown .fl-tile {
  position: relative; display: grid; justify-items: center; gap: .1rem;
  min-width: clamp(3.1rem, 2.3rem + 6cqi, 4.7rem); padding: .45rem .5rem .4rem;
  border-radius: 12px 12px 14px 14px;
  background: linear-gradient(180deg, var(--fl-tile-a), var(--fl-tile-b));
  border: 1px solid var(--fl-tile-line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 10px 20px -10px rgba(0, 0, 0, .55);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.countdown .fl-tile.is-off { display: none; }
/* Snow on top, icicles below. */
.countdown .fl-tile::before {
  content: ''; position: absolute; top: -4px; left: 7%; right: 7%; height: 8px;
  background: var(--fl-snow); border-radius: 10px 10px 40% 40% / 8px 8px 100% 100%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .15);
}
.countdown .fl-tile::after {
  content: ''; position: absolute; left: 5%; right: 5%; top: 100%; height: clamp(14px, 10px + 1.6cqi, 20px); margin-top: -1px;
  background: var(--fl-icicles) top center / 100% 100% no-repeat;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .28));
}
/* An ice glow like an Iskrystal trophy, breathing very slightly – all tiles in step (no delays). */
.countdown .fl-tile {
  border-color: #5fd4f5;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 0 0 1px #5fd4f5, 0 0 14px color-mix(in srgb, #5fd4f5 52%, transparent), 0 10px 20px -10px rgba(0, 0, 0, .55);
  animation: fl-breathe 3.2s ease-in-out infinite;
}
@keyframes fl-breathe {
  50% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 0 0 1px #5fd4f5, 0 0 19px color-mix(in srgb, #5fd4f5 66%, transparent), 0 10px 20px -10px rgba(0, 0, 0, .55); }
}

.countdown .fl-value {
  font: 800 clamp(1.55rem, .9rem + 5.4cqi, 2.5rem)/1 'Bricolage Grotesque', var(--cd-font-ui);
  letter-spacing: .01em; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, var(--fl-digit-a) 0%, var(--fl-digit-b) 45%, var(--fl-digit-c) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 7px var(--fl-digit-glow));
}
.countdown .fl-label { font: 700 .58rem/1 var(--cd-font-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--fl-label); opacity: .85; }
.countdown .fl-caption { margin: 0; font-size: clamp(.72rem, .62rem + .6cqi, .86rem); font-weight: 600; color: var(--fl-caption); text-align: center; }

/* Landed (the first beer is here): the hut comes alive; the scene stays sharp behind a lighter message. */
.countdown[data-style="flight"].is-done .cd-stage { filter: none; transform: none; }
.countdown[data-style="flight"] .cd-done { place-content: end center; gap: .35rem; padding-bottom: calc(var(--cd-pad-bottom) + .2rem); }
.countdown[data-style="flight"] .cd-done-title { font-size: clamp(1.9rem, 1rem + 6.5cqi, 3.3rem); }
.countdown[data-style="flight"] .cd-done-glow { background: radial-gradient(60% 40% at 50% 92%, var(--cd-done-glow), transparent 75%); }
.countdown .cd-scene--flight.is-landed .fl-board, .countdown .cd-scene--flight.is-ended .fl-board { visibility: hidden; }
.countdown .cd-scene--flight.is-landed .fl-glow { animation: fl-glow 2.6s ease-in-out infinite; }
@keyframes fl-glow { 50% { transform: scale(1.12); } }
.countdown .cd-scene--flight.is-landed .fl-window { fill: #ffe08a; filter: drop-shadow(0 0 5px #ffb547) drop-shadow(0 0 10px #ff9f43); }
.countdown .cd-scene--flight.is-landed .fl-lights circle { animation-duration: 1.1s; }
.countdown .cd-scene--flight.is-landed .fl-bubbles circle { fill: #ffe9a8; transform-box: fill-box; animation: fl-bubble 2.4s ease-in infinite; }
.countdown .cd-scene--flight.is-landed .fl-bubbles circle:nth-child(2) { animation-delay: -.6s; }
.countdown .cd-scene--flight.is-landed .fl-bubbles circle:nth-child(3) { animation-delay: -1.2s; }
.countdown .cd-scene--flight.is-landed .fl-bubbles circle:nth-child(4) { animation-delay: -1.8s; }
@keyframes fl-bubble { 0% { transform: translateY(0); opacity: 0; } 25% { opacity: .9; } 100% { transform: translateY(-16px); opacity: 0; } }
.countdown .cd-scene--flight.is-party .fl-spark { fill: #ffd166; transform-box: fill-box; animation: fl-spark 1.4s ease-out 3; }
@keyframes fl-spark { 0% { transform: translate(0, 0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translate(var(--dx, 0), -34px); opacity: 0; } }
/* The trip is over: night falls on the hut. */
.countdown .cd-scene--flight.is-ended .fl-window { fill: #6b5a3a; filter: none; }
.countdown .cd-scene--flight.is-ended .fl-lights circle, .countdown .cd-scene--flight.is-ended .fl-smoke circle { animation: none; opacity: .2; }

@media (prefers-reduced-motion: reduce) {
  .countdown .cd-scene--flight *, .countdown .cd-scene--flight *::before, .countdown .cd-scene--flight *::after { animation: none !important; }
}

/* ==========================================================================
   TID TIL SOL – shared by "Mod solen" and "Strandøl": the sunny glass digits
   ========================================================================== */

.countdown .cd-scene--island,
.countdown .cd-scene--beach {
  --sun-tile-a: rgba(255, 255, 255, .26); --sun-tile-b: rgba(190, 240, 255, .08); --sun-tile-line: rgba(220, 248, 255, .42);
  --sun-tile-glow: #6fe3f0;
  --sun-digit-a: #ffffff; --sun-digit-b: #fff3c9; --sun-digit-c: #ffd36b; --sun-digit-glow: rgba(255, 196, 90, .55);
  --sun-label: #d9f6ff; --sun-caption: #e6f7ff;
}
:root[data-theme="light"] .countdown .cd-scene--island,
:root[data-theme="light"] .countdown .cd-scene--beach {
  --sun-tile-a: rgba(255, 255, 255, .8); --sun-tile-b: rgba(235, 251, 255, .55); --sun-tile-line: rgba(120, 205, 225, .65);
  --sun-tile-glow: #8fe6f2;
  --sun-digit-a: #0a4d63; --sun-digit-b: #0b6f86; --sun-digit-c: #e07a12; --sun-digit-glow: rgba(255, 255, 255, .95);
  --sun-label: #0d5d72; --sun-caption: #0b4f63;
}

.countdown .il-tile,
.countdown .bc-cell {
  position: relative; display: grid; justify-items: center; gap: .1rem;
  padding: .45rem .5rem .4rem;
}
.countdown .il-tile {
  min-width: clamp(3.1rem, 2.3rem + 6cqi, 4.7rem);
  border-radius: 14px;
  background: linear-gradient(180deg, var(--sun-tile-a), var(--sun-tile-b));
  border: 1px solid var(--sun-tile-line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 0 0 1px color-mix(in srgb, var(--sun-tile-glow) 45%, transparent),
    0 0 14px color-mix(in srgb, var(--sun-tile-glow) 40%, transparent), 0 10px 20px -10px rgba(0, 0, 0, .45);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.countdown .il-tile.is-off, .countdown .bc-cell.is-off { display: none; }
/* A sunny glint across the glass. */
.countdown .il-tile::before,
.countdown .bc-glass::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .28) 42%, transparent 54%);
}
.countdown .il-value,
.countdown .bc-value {
  font: 800 clamp(1.55rem, .9rem + 5.4cqi, 2.5rem)/1 'Bricolage Grotesque', var(--cd-font-ui);
  letter-spacing: .01em; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, var(--sun-digit-a) 0%, var(--sun-digit-b) 50%, var(--sun-digit-c) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 7px var(--sun-digit-glow));
}
.countdown .il-label,
.countdown .bc-label { font: 700 .58rem/1 var(--cd-font-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--sun-label); opacity: .9; }
.countdown .il-caption,
.countdown .bc-caption {
  margin: 0; font-size: clamp(.72rem, .62rem + .6cqi, .86rem); font-weight: 600; color: var(--sun-caption); text-align: center;
  text-shadow: 0 1px 6px rgba(0, 30, 50, .45);
}
:root[data-theme="light"] .countdown .il-caption,
:root[data-theme="light"] .countdown .bc-caption { text-shadow: 0 1px 6px rgba(255, 255, 255, .8); }

/* The palms (styles/_palm.js) */
.countdown .palm-trunk { fill: #9a6a3c; }
.countdown .palm-rings { fill: none; stroke: #6e4520; stroke-width: .8; stroke-linecap: round; }
.countdown .palm-leaf { fill: #2f9b4f; }
.countdown .palm-leaf--dark { fill: #1f7a3c; }
.countdown .palm-nut { fill: #6b4423; }

/* ==========================================================================
   MOD SOLEN – PEAK Sun's trip timer (styles/island.js): CPH → the palm island
   ========================================================================== */

.countdown .cd-scene--island {
  --il-dawn-top: #0d1a45; --il-dawn-mid: #43306f; --il-dawn-bot: #f2875e;
  --il-day-top: #0f4f8a; --il-day-mid: #2b86c2; --il-day-bot: #93d8ea;
  --il-dusk-top: #1a1240; --il-dusk-mid: #6a2c6a; --il-dusk-bot: #ff8a4c;
  --il-sun-glow: #ffb35c;
  --il-sea-far: #2ab4bb; --il-sea-near: #0c6f88; --il-sea-deep: #07475f;
  --il-swell: rgba(210, 252, 255, .35); --il-glint: #fff6d6;
  --il-sand-top: #ffe2a6; --il-sand: #e3b066;
  --il-coast: #3f7d57;
  --il-cloud: rgba(255, 255, 255, .5); --il-gull: rgba(255, 255, 255, .85);
  --fl-route: rgba(220, 250, 255, .45); --fl-route-flown: #ffd36b; --fl-code: #f2fbff;
  color: #fff;
  background: var(--il-sea-deep);
}
:root[data-theme="light"] .countdown .cd-scene--island {
  --il-dawn-top: #8db3e6; --il-dawn-mid: #f4c3d6; --il-dawn-bot: #ffd5a1;
  --il-day-top: #46aeee; --il-day-mid: #9cdbf7; --il-day-bot: #e8f9ff;
  --il-dusk-top: #5a59a6; --il-dusk-mid: #ec98a7; --il-dusk-bot: #ffc178;
  --il-sun-glow: #ffc56b;
  --il-sea-far: #63d9d2; --il-sea-near: #17a8b8; --il-sea-deep: #0f8ea3;
  --il-swell: rgba(255, 255, 255, .55);
  --il-coast: #78b56d;
  --il-cloud: rgba(255, 255, 255, .85); --il-gull: rgba(40, 70, 100, .7);
  --fl-route: rgba(10, 70, 100, .35); --fl-route-flown: #f08a12; --fl-code: #0b3b50;
}
:root[data-theme="light"] .countdown[data-style="island"] .cd-title { color: #08304a; text-shadow: 0 1px 8px rgba(255, 255, 255, .7); }

.countdown .il-sky {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
  background: linear-gradient(180deg, var(--il-dawn-top) 0%, var(--il-dawn-mid) 34%, var(--il-dawn-bot) 58%, var(--il-sea-far) 100%);
}
.countdown .il-day, .countdown .il-dusk { position: absolute; inset: 0; }
.countdown .il-day { background: linear-gradient(180deg, var(--il-day-top) 0%, var(--il-day-mid) 34%, var(--il-day-bot) 58%, var(--il-sea-far) 100%); opacity: 0; }
.countdown .il-dusk {
  background: linear-gradient(180deg, var(--il-dusk-top) 0%, var(--il-dusk-mid) 34%, var(--il-dusk-bot) 58%, var(--il-sea-far) 100%);
  opacity: 0; transition: opacity 1.2s ease;
}
.countdown .cd-scene--island.is-ended .il-dusk { opacity: 1; }

.countdown .il-cloud {
  position: absolute; left: 0; width: var(--w, 80px); height: calc(var(--w, 80px) * .3); border-radius: 999px;
  background: var(--il-cloud);
  box-shadow: calc(var(--w, 80px) * .2) calc(var(--w, 80px) * -.12) 0 calc(var(--w, 80px) * -.03) var(--il-cloud),
    calc(var(--w, 80px) * -.16) calc(var(--w, 80px) * -.06) 0 calc(var(--w, 80px) * -.07) var(--il-cloud);
  animation: il-drift 80s linear infinite;
}
@keyframes il-drift { from { transform: translateX(-40%); } to { transform: translateX(calc(100cqi + 40%)); } }
.countdown .il-gull {
  position: absolute; left: 0; width: 15px; height: 6px;
  animation: il-glide 36s linear infinite;
}
.countdown .il-gull::before, .countdown .il-gull::after {
  content: ''; position: absolute; top: 0; width: 7.5px; height: 5px;
  border-top: 1.6px solid var(--il-gull); border-radius: 60% 60% 0 0;
  animation: il-flap .7s var(--fd, 0s) ease-in-out infinite alternate;
}
.countdown .il-gull::before { left: 0; transform-origin: 100% 100%; }
.countdown .il-gull::after { left: 7px; transform-origin: 0 100%; }
@keyframes il-glide {
  0% { transform: translate(calc(100cqi + 20px), 0) scale(var(--gs, 1)); }
  50% { transform: translate(calc(50cqi), -10px) scale(var(--gs, 1)); }
  100% { transform: translate(-30px, 4px) scale(var(--gs, 1)); }
}
@keyframes il-flap { to { transform: scaleY(.35) translateY(1.5px); } }
.countdown .cd-scene--island.is-ended .il-gull { display: none; }

.countdown .il-art { position: relative; flex: 1 1 auto; min-height: 104px; margin-top: calc(var(--cd-pad-top) + .2rem); }
.countdown .il-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }

.countdown .il-sun-glow { opacity: .9; }
.countdown .il-horizon { stroke: rgba(255, 255, 255, .35); stroke-width: 1; }
.countdown .il-glints rect { fill: var(--il-glint); opacity: .75; animation: il-glint 2.8s ease-in-out infinite; }
@keyframes il-glint { 50% { opacity: .08; } }
.countdown .il-swell { fill: none; stroke: var(--il-swell); stroke-width: 1.3; stroke-linecap: round; animation: il-swell 24s linear infinite; }
.countdown .il-swell--1 { animation-duration: 32s; animation-direction: reverse; stroke-width: 1.6; opacity: .85; }
.countdown .il-swell--2 { animation-duration: 20s; stroke-width: 2; opacity: .7; }
@keyframes il-swell { to { transform: translateX(var(--p, 40px)); } }

.countdown .il-coast { fill: var(--il-coast); }
.countdown .il-beach { fill: var(--il-sand-top); }
.countdown .il-mast, .countdown .il-rotor path { fill: #eef5fb; }
.countdown .il-hub { fill: #c8d6e4; }
.countdown .il-rotor { transform-box: view-box; transform-origin: 0 0; animation: il-spin 6s linear infinite; }
@keyframes il-spin { to { transform: rotate(360deg); } }

.countdown .il-foam { fill: none; stroke: rgba(255, 255, 255, .7); stroke-width: 1.4; }
.countdown .il-strip { fill: #5c6878; }
.countdown .il-strip-line { stroke: rgba(255, 255, 255, .8); stroke-width: .8; stroke-dasharray: 3 3; }
.countdown .il-glow { fill: var(--il-sun-glow); opacity: .1; filter: blur(14px); transition: opacity .6s ease; }
.countdown .cd-scene--island .palm-fronds { transform-box: view-box; transform-origin: 0 0; animation: il-sway 4.6s ease-in-out infinite alternate; }
@keyframes il-sway { from { transform: rotate(-4deg); } to { transform: rotate(5deg); } }
.countdown .il-bar-post { fill: #7a4f2a; }
.countdown .il-bar-counter { fill: #a8733f; }
.countdown .il-bar-roof { fill: #e7c46a; stroke: #b98a35; stroke-width: .6; }
.countdown .il-drink { fill: #ffb43c; }
.countdown .il-drink--b { fill: #ff6f8a; }
.countdown .il-lights circle { fill: #ffe9a6; opacity: .35; }
.countdown .il-dest { font-size: 8px; }

.countdown .cd-scene--island .fl-runway { fill: #3a4656; }
:root[data-theme="light"] .countdown .cd-scene--island .fl-runway { fill: #5c6b7c; }
.countdown .il-party .il-spark { opacity: 0; }

/* Status (top left, under the title) – Flyvetur's pill */
:root[data-theme="light"] .countdown .il-status { color: #0b3b50; }

/* The glass board floats on the sea */
.countdown .il-board {
  position: relative; z-index: 2; display: grid; justify-items: center; gap: .55rem;
  padding: .55rem .8rem calc(var(--cd-pad-bottom) - .1rem);
  background: linear-gradient(180deg, var(--il-sea-near), var(--il-sea-deep));
}
.countdown .il-row { display: flex; justify-content: center; gap: clamp(.35rem, .2rem + 1cqi, .7rem); }

/* Landed (the holiday is on): the beach bar lights up; the scene stays sharp behind a lighter message. */
.countdown[data-style="island"].is-done .cd-stage { filter: none; transform: none; }
.countdown[data-style="island"] .cd-done { place-content: end center; gap: .35rem; padding-bottom: calc(var(--cd-pad-bottom) + .2rem); }
.countdown[data-style="island"] .cd-done-title { font-size: clamp(1.9rem, 1rem + 6.5cqi, 3.3rem); }
.countdown[data-style="island"] .cd-done-glow { background: radial-gradient(60% 40% at 50% 92%, var(--cd-done-glow), transparent 75%); }
.countdown[data-kind="sol"] .cd-done { --cd-done-b: #fff1b8; --cd-done-c: #ffb02e; --cd-done-glow: rgba(255, 190, 70, .38); }
/* On the bright sea and sand of the light theme the message is painted dark, with a white glow. */
:root[data-theme="light"] .countdown[data-style="island"] .cd-done,
:root[data-theme="light"] .countdown[data-style="beach"] .cd-done {
  --cd-done-a: #0a4d63; --cd-done-b: #0e7d93; --cd-done-c: #d9700f; --cd-done-glow: rgba(255, 255, 255, .5);
}
.countdown .cd-scene--island.is-landed .il-board > *, .countdown .cd-scene--island.is-ended .il-board > * { visibility: hidden; }
.countdown .cd-scene--island.is-landed .il-lights circle { opacity: 1; animation: fl-twinkle 1.6s ease-in-out infinite; }
.countdown .cd-scene--island.is-landed .il-lights circle:nth-child(2n) { fill: #ff9f6b; animation-delay: -.6s; }
.countdown .cd-scene--island.is-party .palm-fronds { animation-duration: 1.1s; }
.countdown .cd-scene--island.is-party .il-spark { fill: #ffd166; transform-box: fill-box; animation: fl-spark 1.4s ease-out 3; }
.countdown .cd-scene--island.is-ended .il-glints rect { animation: none; opacity: .15; }

@media (prefers-reduced-motion: reduce) {
  .countdown .cd-scene--island *, .countdown .cd-scene--island *::before, .countdown .cd-scene--island *::after { animation: none !important; }
}

/* ==========================================================================
   STRANDØL – PEAK Sun's beer timer (styles/beach.js): the beer on the beach.
   Everything moves from the script's animation loop; the CSS only paints.
   ========================================================================== */

.countdown .cd-scene--beach {
  --bc-sky-top: #15265a; --bc-sky-mid: #4a3f86; --bc-sky-bot: #f49a62;
  --bc-sun: #ffcf5a; --bc-sun-edge: #ff9a3c; --bc-sun-glow: #ffb15c; --bc-ray: rgba(255, 206, 120, .45);
  --bc-sea-far: #145f80; --bc-sea-near: #26adb0; --bc-water: rgba(110, 220, 214, .6);
  --bc-sand-top: #dfbd86; --bc-sand: #b98a52; --bc-wet: rgba(96, 58, 22, .3);
  --bc-islet: #2b5a5c; --bc-far-leaf: #24575a; --bc-glint: #ffe2a0;
  --sun-tile-a: rgba(14, 36, 54, .5); --sun-tile-b: rgba(14, 36, 54, .3); /* darker glass on the evening sand */
  min-height: 296px;
  color: #fff;
  background: var(--bc-sand);
}
:root[data-theme="light"] .countdown .cd-scene--beach {
  --bc-sky-top: #3aa6ea; --bc-sky-mid: #8fd2f4; --bc-sky-bot: #e2f6ff;
  --bc-sun: #ffe46b; --bc-sun-edge: #ffbf3a; --bc-sun-glow: #fff0a0; --bc-ray: rgba(255, 238, 150, .65);
  --bc-sea-far: #1495b4; --bc-sea-near: #45d5cd; --bc-water: rgba(150, 236, 226, .6);
  --bc-sand-top: #fbe8bf; --bc-sand: #efca8a; --bc-wet: rgba(150, 100, 45, .2);
  --bc-islet: #73ac8f; --bc-far-leaf: #58a080; --bc-glint: #ffffff;
}
:root[data-theme="light"] .countdown[data-style="beach"] .cd-title { color: #08304a; text-shadow: 0 1px 8px rgba(255, 255, 255, .7); }

.countdown .bc-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden; }
.countdown .bc-rays path { fill: var(--bc-ray); }
.countdown .bc-islet { fill: var(--bc-islet); opacity: .85; }
.countdown .bc-palm--far .palm-trunk { fill: var(--bc-islet); }
.countdown .bc-palm--far .palm-leaf, .countdown .bc-palm--far .palm-leaf--dark { fill: var(--bc-far-leaf); }
.countdown .bc-palm--far .palm-rings, .countdown .bc-palm--far .palm-nut { display: none; }
.countdown .bc-glint { fill: var(--bc-glint); opacity: .85; }
.countdown .bc-wet { fill: var(--bc-wet); }
.countdown .bc-foam { fill: none; stroke: rgba(255, 255, 255, .92); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.countdown .bc-lace { fill: none; stroke: rgba(255, 255, 255, .5); stroke-width: 1.4; stroke-linecap: round; stroke-dasharray: 3 6; }
.countdown .bc-shadow { fill: rgba(70, 38, 8, .3); }
.countdown .bc-splash circle { fill: rgba(225, 252, 255, .92); }

/* The mug (drawn in its own units, so the strokes scale with it) */
.countdown .bc-handle { fill: rgba(255, 255, 255, .16); }
.countdown .bc-outline { fill: none; stroke: rgba(255, 255, 255, .8); stroke-width: 1.5; stroke-linejoin: round; }
.countdown .bc-base { fill: rgba(255, 255, 255, .24); }
.countdown .bc-mist { fill: #fff; }
.countdown .bc-hl { opacity: .65; }
.countdown .bc-hl--thin { opacity: .45; }
.countdown .bc-drop ellipse { stroke: rgba(255, 255, 255, .75); stroke-width: .3; }
.countdown .bc-drop-hl { fill: #fff; }
.countdown .bc-bubble { fill: rgba(255, 248, 222, .82); stroke: rgba(255, 255, 255, .6); stroke-width: .3; }
.countdown .bc-crown, .countdown .bc-drip, .countdown .bc-head { stroke: rgba(214, 186, 132, .55); stroke-width: .5; }
.countdown .bc-dusk { fill: #24164a; opacity: 0; transition: opacity 1.2s ease; pointer-events: none; }
.countdown .cd-scene--beach.is-ended .bc-dusk { opacity: .45; }

/* The digits in a glass bar on the sand, the caption under it */
.countdown .bc-ui {
  position: relative; z-index: 2; margin-top: auto; display: grid; justify-items: center; gap: .4rem;
  padding: 0 .7rem calc(var(--cd-pad-bottom) - .15rem);
}
.countdown .bc-glass {
  position: relative; display: flex; justify-content: center; padding: .1rem .3rem;
  border-radius: 18px;
  background: linear-gradient(180deg, var(--sun-tile-a), var(--sun-tile-b));
  border: 1px solid var(--sun-tile-line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 0 0 1px color-mix(in srgb, var(--sun-tile-glow) 45%, transparent),
    0 0 16px color-mix(in srgb, var(--sun-tile-glow) 38%, transparent), 0 12px 22px -12px rgba(0, 0, 0, .5);
  -webkit-backdrop-filter: blur(8px) saturate(1.2); backdrop-filter: blur(8px) saturate(1.2);
}
.countdown .bc-cell { min-width: clamp(2.8rem, 2rem + 5cqi, 4.4rem); padding: .35rem .5rem .3rem; }
/* A little smaller than Mod solen's: the beer is the hero here. */
.countdown .bc-value { font-size: clamp(1.4rem, .8rem + 4.6cqi, 2.35rem); }
.countdown .bc-cell:not(.is-off) ~ .bc-cell { border-left: 1px solid color-mix(in srgb, var(--sun-tile-line) 75%, transparent); }
.countdown .bc-caption {
  padding: .2rem .7rem; border-radius: 999px;
  background: rgba(10, 30, 45, .28);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
:root[data-theme="light"] .countdown .bc-caption { background: rgba(255, 255, 255, .5); }

.countdown .bc-skaal {
  position: absolute; left: 50%; top: 42%; z-index: 4;
  transform: translate(-50%, -50%) rotate(-8deg);
  font: 400 clamp(2.4rem, 15cqi, 6rem) / 1 'Bungee', var(--cd-font-ui);
  color: #fff7e0; white-space: nowrap;
  text-shadow: 0 .035em 0 #ffb43a, 0 .07em 0 #e07a0e, 0 .105em 0 #9a4507, 0 .14em 0 #5c2603, 0 .24em .3em rgba(0, 0, 0, .55), 0 0 .6em rgba(255, 190, 80, .6);
  opacity: 0; pointer-events: none;
}
.countdown .bc-skaal.is-on { animation: bc-skaal 3.8s cubic-bezier(.2, .8, .3, 1) both; }
@keyframes bc-skaal {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.2) rotate(-24deg); }
  12% { opacity: 1; transform: translate(-50%, -50%) scale(1.22) rotate(-4deg); }
  18% { transform: translate(-50%, -50%) scale(.95) rotate(-9deg); }
  22%, 84% { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-8deg); }
  100% { opacity: 0; transform: translate(-50%, -62%) scale(1.08) rotate(-8deg); }
}

/* Beer o'clock: the mug stays the hero, sharp, with the message where the digits were. */
.countdown[data-style="beach"].is-done .cd-stage { filter: none; transform: none; }
.countdown[data-style="beach"] .cd-done { place-content: end center; gap: .35rem; padding-bottom: calc(var(--cd-pad-bottom) + .2rem); }
.countdown[data-style="beach"] .cd-done-title { font-size: clamp(1.9rem, 1rem + 6.5cqi, 3.3rem); }
.countdown[data-style="beach"] .cd-done-glow { background: radial-gradient(60% 40% at 50% 92%, var(--cd-done-glow), transparent 75%); }
.countdown .cd-scene--beach.is-done .bc-ui, .countdown .cd-scene--beach.is-ended .bc-ui { visibility: hidden; }

@media (prefers-reduced-motion: reduce) {
  .countdown .cd-scene--beach .bc-skaal.is-on { animation: none !important; opacity: 1; }
}
