/* ==========================================================================
   JULESHOW 2026 — DEDICATED CAMPAIGN PAGE STYLES (/juleshow-2026) — HANDOFF V2
   Aesthetic: "Premium Christmas meets EDM Festival"
   ========================================================================== */

:root {
  --xmas-crimson: #c81d32;
  --xmas-crimson-bright: #ff475e;
  --xmas-bordeaux: #1c070f;
  --xmas-gold: #f5c95c;
  --xmas-champagne: #ffe8a6;
  --xmas-pine: #1f6e43;
  --xmas-pine-glow: #4cd97b;
}

body.juleshow-page {
  background: #08060e;
}

.juleshow-ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.aurora-sky-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
}

body.juleshow-page main,
body.juleshow-page .site-footer {
  position: relative;
  z-index: 2;
}

.juleshow-pool {
  position: absolute;
  border-radius: 50%;
}

.juleshow-pool-crimson {
  width: 58vw;
  height: 58vw;
  top: -18vw;
  left: -12vw;
  background: radial-gradient(circle, rgba(200, 29, 50, 0.2), transparent 68%);
}

.juleshow-pool-gold {
  width: 50vw;
  height: 50vw;
  top: 12vw;
  right: -14vw;
  background: radial-gradient(circle, rgba(245, 201, 92, 0.14), transparent 68%);
}

.juleshow-page-snow {
  opacity: 0.26;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.jhero {
  padding-top: clamp(32px, 5vw, 64px);
  padding-bottom: clamp(56px, 7vw, 96px);
  border-bottom: 1px solid rgba(245, 201, 92, 0.18);
}

.jhero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 4vw, 52px);
  align-items: start;
}

.jhero-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.jbadge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font: 500 0.64rem var(--mono);
  letter-spacing: 0.11em;
}

.jbadge-crimson {
  background: rgba(200, 29, 50, 0.24);
  border: 1px solid rgba(255, 107, 125, 0.45);
  color: #ffd7dc;
}

.jbadge-gold {
  background: rgba(245, 201, 92, 0.13);
  border: 1px solid rgba(245, 201, 92, 0.42);
  color: var(--xmas-champagne);
}

.jhero-title {
  margin: 0;
  font-size: clamp(2.35rem, 4.9vw, 4.55rem);
  line-height: 0.97;
  letter-spacing: -0.05em;
  font-weight: 700;
  color: var(--text);
}

.jhero-title span {
  background: linear-gradient(92deg, #fff5d1 0%, #f5c95c 45%, #ffe699 75%, #e5a42e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.jhero-lead {
  margin: 22px 0 14px;
  font-size: clamp(1rem, 1.25vw, 1.14rem);
  line-height: 1.64;
  color: rgba(245, 244, 240, 0.86);
  max-width: 580px;
}

.jhero-free-note {
  margin: 0 0 24px;
  padding: 10px 14px;
  border-left: 2px solid var(--xmas-gold);
  background: rgba(245, 201, 92, 0.07);
  border-radius: 0 6px 6px 0;
  font-size: 0.92rem;
  color: var(--xmas-champagne);
  max-width: 580px;
}

.jhero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.jbtn-gold {
  background: linear-gradient(135deg, #f8d46d 0%, #e5a52c 100%);
  color: #160a05;
  border-color: transparent;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(245, 201, 92, 0.24);
}

.jbtn-gold:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #ffe38f 0%, #f5bc42 100%);
  box-shadow: 0 16px 38px rgba(245, 201, 92, 0.38);
}

.jbtn-twitch {
  background: linear-gradient(135deg, #9146ff 0%, #772ce8 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.24);
  font-weight: 700;
  box-shadow:
    0 12px 30px rgba(145, 70, 255, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.jbtn-twitch:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #a463ff 0%, #863df5 100%);
  box-shadow:
    0 16px 38px rgba(145, 70, 255, 0.52),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.twitch-btn-icon {
  flex-shrink: 0;
  display: inline-block;
  margin-right: 2px;
}

.jbtn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid rgba(245, 201, 92, 0.36);
}

.jbtn-ghost:hover {
  transform: translateY(-2px);
  border-color: var(--xmas-gold);
  background: rgba(245, 201, 92, 0.1);
}

.jbtn-terms {
  background: rgba(200, 29, 50, 0.16);
  color: #ffd7dc;
  border: 1px solid rgba(255, 107, 125, 0.36);
}

.jbtn-terms:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 107, 125, 0.72);
  background: rgba(200, 29, 50, 0.28);
}

.jhero-sub-bar {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font: 400 0.68rem var(--mono);
  color: var(--muted);
}

.jhero-sub-bar a {
  color: var(--xmas-gold);
  text-decoration: none;
}

.jhero-sub-bar a:hover {
  text-decoration: underline;
}

/* Right Hero Stage Card */
.jhero-card {
  position: relative;
  border-radius: 12px;
  border: 1px solid rgba(245, 201, 92, 0.42);
  background:
    radial-gradient(circle at 20% 15%, rgba(200, 29, 50, 0.28), transparent 55%),
    linear-gradient(165deg, #1b0811 0%, #0e0917 100%);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.68),
    inset 0 1px 0 rgba(255, 232, 168, 0.24);
  overflow: hidden;
}

.jhero-art-frame {
  width: 100%;
  aspect-ratio: 3 / 1;
  background: #12060d;
  border-bottom: 1px solid rgba(245, 201, 92, 0.25);
}

.jhero-art-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.jcountdown {
  padding: 20px 22px;
}

.jcountdown-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.jcountdown-label {
  font: 500 0.64rem var(--mono);
  letter-spacing: 0.13em;
  color: var(--xmas-gold);
}

.jcountdown-tz {
  font: 500 0.6rem var(--mono);
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--muted);
}

.jcountdown-tz.is-live {
  background: rgba(199, 255, 59, 0.14);
  border-color: rgba(199, 255, 59, 0.5);
  color: var(--acid);
}

.jcountdown-digits {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 8px;
  background: rgba(7, 6, 13, 0.68);
  border: 1px solid rgba(245, 201, 92, 0.2);
}

.jcd-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.jcd-box strong {
  font: 500 clamp(1.5rem, 2.6vw, 2.25rem) var(--mono);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: var(--xmas-champagne);
}

.jcd-box small {
  margin-top: 6px;
  font: 400 0.56rem var(--mono);
  letter-spacing: 0.14em;
  color: var(--muted);
}

.jcountdown-digits > span {
  font: 400 1.35rem var(--mono);
  color: rgba(245, 201, 92, 0.38);
}

.jcountdown-status {
  margin: 14px 0 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--muted);
}

.jcountdown-status a {
  color: var(--xmas-gold);
  text-decoration: none;
}

.jcountdown-status a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   SECTIONS & CARDS
   ========================================================================== */
.jsection {
  padding: clamp(68px, 9vw, 118px) 0;
  border-bottom: 1px solid rgba(245, 201, 92, 0.14);
}

.jsection-header {
  max-width: 740px;
  margin-bottom: clamp(32px, 4.5vw, 48px);
}

.jeyebrow {
  margin: 0 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 500 0.68rem var(--mono);
  letter-spacing: 0.15em;
  color: var(--xmas-gold);
}

.jeyebrow span {
  width: 24px;
  height: 1px;
  background: var(--xmas-gold);
}

.jsection-header h2 {
  margin: 0;
  font-size: clamp(2rem, 4.2vw, 3.5rem);
  letter-spacing: -0.04em;
  line-height: 1.03;
}

.jsection-sub {
  margin: 14px 0 0;
  font-size: 1rem;
  line-height: 1.62;
  color: var(--muted);
}

/* 01 / 4 Features Grid + Value Strip */
.jfeatures-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.jfeature-card {
  padding: 26px 22px;
  border-radius: 10px;
  border: 1px solid rgba(245, 201, 92, 0.2);
  background:
    radial-gradient(circle at 85% 15%, rgba(200, 29, 50, 0.14), transparent 55%),
    rgba(17, 13, 25, 0.84);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition:
    transform 0.3s var(--ease-out-expo),
    border-color 0.3s ease;
}

.jfeature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 201, 92, 0.52);
}

.jfeature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(245, 201, 92, 0.1);
  border: 1px solid rgba(245, 201, 92, 0.3);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  margin-bottom: 6px;
}

.jfeature-num {
  font: 500 0.62rem var(--mono);
  letter-spacing: 0.13em;
  color: var(--xmas-gold);
}

.jfeature-card h3 {
  margin: 0;
  font-size: 1.22rem;
  letter-spacing: -0.02em;
}

.jfeature-card p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.58;
  color: var(--muted);
}

.jvalue-strip {
  margin-top: 20px;
  padding: 18px 22px;
  border-radius: 10px;
  border: 1px solid rgba(245, 201, 92, 0.32);
  background: rgba(20, 13, 24, 0.86);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.jvalue-item small {
  display: block;
  font: 500 0.58rem var(--mono);
  letter-spacing: 0.13em;
  color: var(--xmas-gold);
  margin-bottom: 4px;
}

.jvalue-item strong {
  font-size: 1.15rem;
  color: var(--text);
}

.jvalue-item p {
  margin: 0;
  font-size: 0.84rem;
  color: rgba(245, 244, 240, 0.85);
}

.jvalue-item a {
  color: var(--xmas-gold);
  text-decoration: none;
}

.jvalue-item a:hover {
  text-decoration: underline;
}

.jvalue-item-wide {
  flex: 1;
  min-width: 260px;
}

.jvalue-divider {
  width: 1px;
  height: 36px;
  background: var(--line);
}

/* 02 / 4 Participation Steps */
.jsteps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.jstep-card {
  padding: 24px 22px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(16, 14, 26, 0.84);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.jstep-card-highlight {
  border-color: rgba(245, 201, 92, 0.48);
  background:
    radial-gradient(circle at 80% 18%, rgba(245, 201, 92, 0.14), transparent 58%),
    rgba(20, 15, 28, 0.92);
}

.jstep-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.jstep-badge {
  padding: 4px 9px;
  border-radius: 4px;
  background: linear-gradient(135deg, #c81d32, #931122);
  color: #fff;
  font: 600 0.62rem var(--mono);
  letter-spacing: 0.1em;
}

.jstep-time {
  font: 400 0.6rem var(--mono);
  letter-spacing: 0.1em;
  color: var(--muted);
}

.jstep-card h3 {
  margin: 4px 0 0;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.jstep-card h3 code {
  color: var(--acid);
  background: rgba(199, 255, 59, 0.1);
  padding: 2px 7px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 1.05rem;
}

.jstep-card p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.58;
  color: var(--muted);
}

.jstep-link {
  margin-top: auto;
  font: 500 0.72rem var(--mono);
  color: var(--xmas-gold);
  text-decoration: none;
}

.jstep-link:hover {
  text-decoration: underline;
}

.jchat-preview {
  margin-top: auto;
  padding: 9px 12px;
  border-radius: 6px;
  background: rgba(7, 7, 13, 0.78);
  border: 1px solid rgba(199, 255, 59, 0.3);
  font: 500 0.76rem var(--mono);
  display: flex;
  align-items: center;
  gap: 8px;
}

.jchat-user {
  color: #b49bff;
}

.jchat-cmd {
  color: var(--acid);
}

/* Important Free & Twitch-Only Notice */
.jnotice-box {
  margin-top: 22px;
  padding: 20px 22px;
  border-radius: 10px;
  border: 1px solid rgba(245, 201, 92, 0.38);
  background:
    linear-gradient(135deg, rgba(200, 29, 50, 0.14), rgba(245, 201, 92, 0.07));
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 16px;
  align-items: start;
}

.jnotice-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(245, 201, 92, 0.18);
  border: 1px solid rgba(245, 201, 92, 0.55);
  color: var(--xmas-champagne);
  font: 700 0.95rem var(--mono);
  display: grid;
  place-items: center;
}

.jnotice-content strong {
  display: block;
  font-size: 0.98rem;
  color: var(--text);
  margin-bottom: 6px;
}

.jnotice-content p {
  margin: 0 0 8px;
  font-size: 0.88rem;
  line-height: 1.56;
  color: rgba(245, 244, 240, 0.85);
}

.jnotice-content p:last-child {
  margin-bottom: 0;
}

/* 03 / Round Mechanics & Winner Restriction Grid */
.jmechanics-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
  align-items: stretch;
}

.jmech-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.jmech-card {
  padding: 26px 24px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(15, 13, 24, 0.88);
}

.jmech-card h3 {
  margin: 0 0 16px;
  font-size: 1.32rem;
  letter-spacing: -0.02em;
}

.jround-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.jround-list li {
  position: relative;
  padding: 9px 12px 9px 40px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(245, 244, 240, 0.06);
  font-size: 0.86rem;
  line-height: 1.5;
  color: rgba(245, 244, 240, 0.88);
}

.jround-list li > span {
  position: absolute;
  left: 12px;
  top: 11px;
  font: 500 0.64rem var(--mono);
  color: var(--xmas-gold);
}

.jround-list code {
  color: var(--acid);
  font-family: var(--mono);
}

.jperiod-box {
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  margin-bottom: 12px;
}

.jperiod-cooldown {
  border-left: 3px solid var(--xmas-crimson-bright);
}

.jperiod-finale {
  border-left: 3px solid var(--xmas-gold);
}

.jperiod-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.jperiod-head strong {
  font-size: 0.94rem;
}

.jperiod-tag {
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(200, 29, 50, 0.22);
  border: 1px solid rgba(255, 107, 125, 0.4);
  color: #ffd7dc;
  font: 500 0.58rem var(--mono);
  letter-spacing: 0.1em;
}

.jperiod-tag-gold {
  background: rgba(245, 201, 92, 0.16);
  border-color: rgba(245, 201, 92, 0.45);
  color: var(--xmas-champagne);
}

.jperiod-box p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.54;
  color: rgba(245, 244, 240, 0.84);
}

.jmech-footnote {
  margin: 10px 0 0;
  font: 400 0.72rem var(--mono);
  color: var(--muted);
}

.jcompact-list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.85rem;
  line-height: 1.54;
  color: rgba(245, 244, 240, 0.85);
}

/* Vinderchancer Subsection */
.jodds-shell {
  margin-top: 26px;
  padding: 26px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(14, 12, 23, 0.85);
}

.jodds-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.jodds-header h3 {
  margin: 4px 0 0;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.jlegal-pill {
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(199, 255, 59, 0.12);
  border: 1px solid rgba(199, 255, 59, 0.45);
  color: var(--acid);
  font: 500 0.6rem var(--mono);
  letter-spacing: 0.1em;
}

.jodds-intro {
  margin: 12px 0 18px;
  font-size: 0.9rem;
  color: var(--muted);
}

.jodds-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.jodds-card {
  padding: 20px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.jodds-card-active {
  border-color: rgba(199, 255, 59, 0.48);
  background: rgba(199, 255, 59, 0.05);
}

.jodds-card-pending {
  border-style: dashed;
  border-color: rgba(245, 201, 92, 0.35);
  opacity: 0.78;
}

.jodds-role {
  display: block;
  font: 500 0.65rem var(--mono);
  letter-spacing: 0.1em;
  color: var(--xmas-gold);
}

.jodds-slots {
  display: block;
  margin: 10px 0 8px;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text);
}

.jodds-card p {
  margin: 0;
  font-size: 0.83rem;
  line-height: 1.52;
  color: var(--muted);
}

.jlegal-checkpoint {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 6px;
  border-left: 3px solid var(--xmas-gold);
  background: rgba(245, 201, 92, 0.06);
  font-size: 0.82rem;
  line-height: 1.56;
  color: rgba(245, 244, 240, 0.82);
}

.jlegal-checkpoint code {
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--xmas-champagne);
}

/* ==========================================================================
   04 / PRÆMIER & 7-COLUMN PRIZE TABLE
   ========================================================================== */
.jprize-rules-bar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.jprize-rule-pill {
  padding: 12px 15px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(17, 14, 26, 0.85);
  font-size: 0.84rem;
  color: rgba(245, 244, 240, 0.88);
}

/* Styled inline link for JM Dimensions */
a.jmd-link {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  padding: 1px 7px 2px;
  margin: 0 1px;
  border-radius: 5px;
  background: rgba(245, 201, 92, 0.11);
  border: 1px solid rgba(245, 201, 92, 0.34);
  color: var(--xmas-champagne) !important;
  font-weight: 600;
  text-decoration: none !important;
  white-space: nowrap;
  transition:
    background 0.22s ease,
    border-color 0.22s ease,
    color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s var(--ease-out-expo);
}

a.jmd-link span {
  font: 500 0.72em var(--mono);
  color: var(--xmas-gold);
  transition: transform 0.22s var(--ease-out-expo);
}

a.jmd-link:hover,
a.jmd-link:focus-visible {
  background: rgba(245, 201, 92, 0.22);
  border-color: rgba(245, 201, 92, 0.72);
  color: #fff9e6 !important;
  box-shadow: 0 4px 14px rgba(245, 201, 92, 0.18);
  transform: translateY(-1px);
  outline: none;
}

a.jmd-link:hover span,
a.jmd-link:focus-visible span {
  transform: translate(1.5px, -1.5px);
}

.jprize-card {
  margin-top: 0;
}

.jsponsors-link-card {
  padding: clamp(24px, 3.8vw, 38px);
  border-radius: 12px;
  border: 1px solid rgba(245, 201, 92, 0.36);
  background:
    radial-gradient(circle at 86% 24%, rgba(245, 201, 92, 0.14), transparent 52%),
    linear-gradient(160deg, rgba(22, 10, 18, 0.92), rgba(14, 11, 22, 0.96));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.jsponsors-link-copy {
  flex: 1;
  min-width: 260px;
}

.jsponsors-link-copy h3 {
  margin: 4px 0 10px;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  letter-spacing: -0.025em;
}

.jsponsors-link-copy p {
  margin: 0;
  max-width: 660px;
  font-size: 0.92rem;
  line-height: 1.62;
  color: rgba(245, 244, 240, 0.84);
}

.jsponsors-link-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.jsponsors-link-action small {
  font: 400 0.64rem var(--mono);
  color: var(--muted);
}

/* External Gift Sponsors Page (/juleshow-2026/gavesponsorer.php) */
.jsponsor-vault-banner {
  padding: clamp(28px, 4.5vw, 48px);
  border-radius: 14px;
  border: 1px solid rgba(245, 201, 92, 0.45);
  background:
    radial-gradient(circle at 20% 20%, rgba(200, 29, 50, 0.24), transparent 52%),
    radial-gradient(circle at 82% 75%, rgba(245, 201, 92, 0.16), transparent 54%),
    linear-gradient(165deg, #1b0811 0%, #0e0a16 60%, #130c1a 100%);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.65);
  margin-bottom: 32px;
}

.jsponsor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.jsponsor-card {
  padding: 24px 22px;
  border-radius: 10px;
  border: 1px solid rgba(245, 201, 92, 0.24);
  background: rgba(16, 13, 25, 0.88);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  text-decoration: none;
  color: var(--text);
  transition:
    transform 0.28s var(--ease-out-expo),
    border-color 0.28s ease;
}

.jsponsor-card:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 201, 92, 0.58);
}

.jsponsor-card-locked {
  border-style: dashed;
  border-color: rgba(245, 201, 92, 0.28);
  background:
    radial-gradient(circle at 85% 20%, rgba(200, 29, 50, 0.12), transparent 55%),
    rgba(14, 11, 21, 0.82);
}

.jsponsor-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.jsponsor-num {
  font: 500 0.62rem var(--mono);
  letter-spacing: 0.13em;
  color: var(--xmas-gold);
}

.jsponsor-lock-pill {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(245, 201, 92, 0.12);
  border: 1px solid rgba(245, 201, 92, 0.35);
  color: var(--xmas-champagne);
  font: 500 0.58rem var(--mono);
  letter-spacing: 0.08em;
}

.jsponsor-name {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.jsponsor-card-locked .jsponsor-name {
  color: rgba(245, 244, 240, 0.72);
}

.jsponsor-meta {
  margin: 0;
  font: 400 0.72rem var(--mono);
  color: var(--muted);
}

/* ==========================================================================
   05 / KONKURRENCEVILKÅR CALLOUT & MODAL (#terms-modal)
   ========================================================================== */
body.modal-open {
  overflow: hidden;
}

.jterms-callout-card {
  padding: clamp(28px, 4.5vw, 46px);
  border-radius: 12px;
  border: 1px solid rgba(245, 201, 92, 0.42);
  background:
    radial-gradient(circle at 82% 22%, rgba(200, 29, 50, 0.24), transparent 54%),
    linear-gradient(160deg, rgba(26, 9, 17, 0.94), rgba(14, 11, 23, 0.96));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.jterms-callout-copy {
  flex: 1;
  min-width: 280px;
}

.jterms-callout-copy h2 {
  margin: 6px 0 12px;
  font-size: clamp(1.75rem, 3.2vw, 2.6rem);
  letter-spacing: -0.035em;
}

.jterms-callout-copy p {
  margin: 0 0 16px;
  max-width: 680px;
  font-size: 0.94rem;
  line-height: 1.62;
  color: rgba(245, 244, 240, 0.84);
}

.jterms-quick-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.jterms-quick-tags span {
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(245, 201, 92, 0.26);
  font: 500 0.62rem var(--mono);
  letter-spacing: 0.06em;
  color: var(--xmas-champagne);
}

.jterms-callout-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.jbtn-open-terms-large {
  padding: 15px 26px;
  font-size: 0.86rem;
}

.jterms-callout-action small {
  font: 400 0.64rem var(--mono);
  color: var(--muted);
}

/* Modal Backdrop & Dialog */
.jmodal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  padding: clamp(14px, 3.5vw, 38px);
  background: rgba(4, 3, 9, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: grid;
  place-items: center;
  animation: jmodal-fade-in 0.22s ease-out forwards;
}

.jmodal-backdrop[hidden] {
  display: none !important;
}

@keyframes jmodal-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.jmodal-dialog {
  position: relative;
  width: min(880px, 100%);
  max-height: min(86vh, 880px);
  border-radius: 14px;
  border: 1px solid rgba(245, 201, 92, 0.52);
  background-color: #0f0a17;
  background-image:
    radial-gradient(circle at 15% 10%, rgba(200, 29, 50, 0.22), transparent 48%),
    linear-gradient(165deg, #180812 0%, #0e0a16 55%, #130c1b 100%);
  box-shadow:
    0 32px 90px rgba(0, 0, 0, 0.92),
    0 0 40px rgba(200, 29, 50, 0.2),
    inset 0 1px 0 rgba(255, 232, 168, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.jmodal-header {
  padding: 22px 26px 18px;
  border-bottom: 1px solid rgba(245, 201, 92, 0.22);
  background: rgba(12, 8, 18, 0.86);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.jmodal-eyebrow {
  display: block;
  font: 500 0.62rem var(--mono);
  letter-spacing: 0.14em;
  color: var(--xmas-gold);
  margin-bottom: 4px;
}

.jmodal-title {
  margin: 0;
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  letter-spacing: -0.03em;
  color: var(--text);
}

.jmodal-close {
  padding: 8px 14px;
  border-radius: 6px;
  border: 1px solid rgba(245, 244, 240, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: 500 0.72rem var(--mono);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  flex-shrink: 0;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.jmodal-close:hover,
.jmodal-close:focus-visible {
  border-color: var(--xmas-gold);
  background: rgba(245, 201, 92, 0.12);
  color: var(--xmas-champagne);
  outline: none;
}

.jmodal-body {
  padding: 24px 26px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.jmodal-body:focus-visible {
  outline: none;
}

.jmodal-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.jmodal-sec {
  padding: 18px 20px;
  border-radius: 10px;
  border: 1px solid rgba(245, 244, 240, 0.09);
  background: rgba(255, 255, 255, 0.022);
}

.jmodal-sec:nth-child(9),
.jmodal-sec:nth-child(10),
.jmodal-sec:nth-child(12),
.jmodal-sec:nth-child(14) {
  grid-column: 1 / -1;
}

.jmodal-sec h3 {
  margin: 0 0 10px;
  font-size: 1.04rem;
  letter-spacing: -0.015em;
  color: var(--xmas-champagne);
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.jmodal-sec h3 span {
  font: 600 0.76rem var(--mono);
  color: var(--xmas-gold);
}

.jmodal-sec p {
  margin: 0 0 8px;
  font-size: 0.86rem;
  line-height: 1.58;
  color: rgba(245, 244, 240, 0.86);
}

.jmodal-sec p:last-child {
  margin-bottom: 0;
}

.jmodal-sec ul,
.jmodal-sec ol {
  margin: 6px 0 10px;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.85rem;
  line-height: 1.54;
  color: rgba(245, 244, 240, 0.88);
}

.jmodal-sec code {
  color: var(--acid);
  background: rgba(199, 255, 59, 0.1);
  padding: 1px 6px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 0.8rem;
}

.jmodal-sec a {
  color: var(--xmas-gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.jmodal-sec a:hover {
  color: var(--xmas-champagne);
}

.jmodal-footer {
  padding: 15px 26px;
  border-top: 1px solid rgba(245, 201, 92, 0.2);
  background: rgba(12, 8, 18, 0.92);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font: 400 0.74rem var(--mono);
  color: var(--muted);
}

.jmodal-footer a {
  color: var(--xmas-gold);
  text-decoration: none;
}

.jmodal-footer a:hover {
  text-decoration: underline;
}

.jmodal-done-btn {
  padding: 9px 18px;
  font-size: 0.74rem;
}
.jpublication-alert {
  margin-bottom: 26px;
  padding: 18px 22px;
  border-radius: 10px;
  border: 1px solid rgba(245, 201, 92, 0.52);
  background:
    linear-gradient(135deg, rgba(245, 201, 92, 0.12), rgba(200, 29, 50, 0.12));
}

.jpub-top-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.jpub-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(245, 244, 240, 0.25);
  color: var(--text);
  font: 600 0.6rem var(--mono);
  letter-spacing: 0.11em;
}

.jpub-badge-warn {
  background: rgba(245, 201, 92, 0.2);
  border-color: rgba(245, 201, 92, 0.55);
  color: var(--xmas-champagne);
}

.jpublication-alert p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.58;
  color: rgba(245, 244, 240, 0.9);
}

.jpending-tag {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(245, 201, 92, 0.15);
  border: 1px solid rgba(245, 201, 92, 0.45);
  color: var(--xmas-champagne);
  font: 500 0.7rem var(--mono);
}

.jterms-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.jterm-card {
  padding: 24px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(14, 12, 22, 0.86);
}

.jterm-card-wide {
  grid-column: 1 / -1;
}

.jgdpr-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.jterm-index {
  display: block;
  font: 500 0.6rem var(--mono);
  letter-spacing: 0.14em;
  color: var(--xmas-gold);
  margin-bottom: 8px;
}

.jterm-card h3 {
  margin: 0 0 14px;
  font-size: 1.24rem;
  letter-spacing: -0.02em;
}

.jterm-card ul {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 0.87rem;
  line-height: 1.58;
  color: rgba(245, 244, 240, 0.84);
}

.jterm-card p {
  margin: 0 0 12px;
  font-size: 0.87rem;
  line-height: 1.58;
  color: rgba(245, 244, 240, 0.84);
}

.jterm-card p:last-child {
  margin-bottom: 0;
}

.jterm-card a {
  color: var(--xmas-gold);
  text-decoration: none;
}

.jterm-card a:hover {
  text-decoration: underline;
}

.jterm-mail {
  display: inline-block;
  font: 500 1.05rem var(--mono);
  color: var(--acid) !important;
  border-bottom: 1px solid rgba(199, 255, 59, 0.45);
  padding-bottom: 3px;
}

.jterm-note {
  font-size: 0.78rem !important;
  color: var(--muted) !important;
}

/* Editable / Configurable 7-Column Prize Schedule Table */
.jprize-table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.jprize-table-head strong {
  display: block;
  font-size: 1.02rem;
  margin-bottom: 4px;
}

.jprize-table-head p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  max-width: 760px;
}

.jprize-toggle-btn {
  padding: 9px 15px;
  border-radius: 6px;
  border: 1px solid rgba(245, 201, 92, 0.38);
  background: rgba(245, 201, 92, 0.08);
  color: var(--xmas-champagne);
  font: 500 0.68rem var(--mono);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.jprize-toggle-btn:hover {
  background: rgba(245, 201, 92, 0.16);
  border-color: var(--xmas-gold);
}

.jprize-collapsible {
  overflow-x: auto;
}

.jprize-table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
  font-size: 0.8rem;
  text-align: left;
}

.jprize-table th,
.jprize-table td {
  padding: 10px 11px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.jprize-table th {
  font: 500 0.6rem var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--xmas-gold);
  background: rgba(255, 255, 255, 0.025);
}

.jprize-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* Bottom CTA Card */
.jbottom-cta {
  padding: clamp(54px, 7vw, 92px) 0;
}

.jbottom-card {
  padding: clamp(28px, 4.5vw, 48px);
  border-radius: 12px;
  border: 1px solid rgba(245, 201, 92, 0.38);
  background:
    radial-gradient(circle at 86% 20%, rgba(200, 29, 50, 0.24), transparent 52%),
    linear-gradient(160deg, #1b0811 0%, #0e0a18 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.jbottom-card h2 {
  margin: 8px 0 12px;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: -0.03em;
}

.jbottom-card p {
  margin: 0;
  max-width: 580px;
  color: var(--muted);
  line-height: 1.6;
}

.jbottom-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (TABLET & MOBILE)
   ========================================================================== */
@media (max-width: 1024px) {
  .jhero-grid,
  .jmechanics-grid,
  .jgdpr-columns {
    grid-template-columns: 1fr;
  }

  .jfeatures-grid,
  .jsteps-grid,
  .jsponsor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .jfeatures-grid,
  .jsteps-grid,
  .jodds-grid,
  .jterms-grid,
  .jprize-rules-bar,
  .jmodal-sections,
  .jsponsor-grid {
    grid-template-columns: 1fr;
  }

  .jsponsors-link-card {
    flex-direction: column;
    align-items: stretch;
  }

  .jsponsors-link-action,
  .jsponsors-link-action .button {
    width: 100%;
    justify-content: center;
  }

  .jterms-callout-card {
    flex-direction: column;
    align-items: stretch;
    padding: 22px 18px;
  }

  .jterms-callout-action,
  .jbtn-open-terms-large {
    width: 100%;
    justify-content: center;
  }

  .jmodal-header,
  .jmodal-body,
  .jmodal-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .jvalue-divider {
    display: none;
  }

  .jhero-actions,
  .jbottom-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .jhero-actions .button,
  .jbottom-actions .button {
    width: 100%;
    justify-content: center;
  }

  .jnotice-box {
    grid-template-columns: 1fr;
  }

  .jodds-shell,
  .jterm-card,
  .jmech-card {
    padding: 18px;
  }

  .jcountdown {
    padding: 16px;
  }

  .jcountdown-digits {
    padding: 12px 10px;
    gap: 4px;
  }
}

/* ==========================================================================
   10 CHRISTMAS ATMOSPHERE & INTERACTIVE UPGRADES
   ========================================================================== */

/* 1. Multi-layer Parallax Snow, Sleigh, Shooting Stars & Embers Canvas (behind cards/text) */
.parallax-snow-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
}

/* 2. Aurora Borealis & Section-Aware Warm Christmas Glow (GPU-safe for Safari) */
.aurora-ribbon {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  transition:
    opacity 1.2s ease,
    transform 1.2s var(--ease-out-expo);
}

.aurora-a {
  width: 72vw;
  height: 36vw;
  top: -10vw;
  left: -14vw;
  background: radial-gradient(ellipse at center, rgba(200, 29, 50, 0.28), rgba(245, 201, 92, 0.08) 55%, transparent 74%);
  animation: aurora-wave-a 18s ease-in-out infinite alternate;
}

.aurora-b {
  width: 66vw;
  height: 34vw;
  top: 26vh;
  right: -18vw;
  background: radial-gradient(ellipse at center, rgba(31, 110, 67, 0.22), rgba(245, 201, 92, 0.14) 52%, transparent 74%);
  animation: aurora-wave-b 22s ease-in-out infinite alternate;
}

.aurora-c {
  width: 60vw;
  height: 30vw;
  bottom: -10vh;
  left: 20vw;
  background: radial-gradient(ellipse at center, rgba(245, 201, 92, 0.16), rgba(151, 108, 255, 0.1) 54%, transparent 76%);
  animation: aurora-wave-a 25s ease-in-out infinite alternate-reverse;
}

body.juleshow-page[data-xmas-mood="forvent"] .aurora-a {
  background: radial-gradient(ellipse at center, rgba(245, 201, 92, 0.24), rgba(200, 29, 50, 0.12) 55%, transparent 74%);
}

body.juleshow-page[data-xmas-mood="deltag"] .aurora-b {
  background: radial-gradient(ellipse at center, rgba(151, 108, 255, 0.26), rgba(199, 255, 59, 0.1) 52%, transparent 74%);
}

body.juleshow-page[data-xmas-mood="hjul"] .aurora-a {
  background: radial-gradient(ellipse at center, rgba(200, 29, 50, 0.3), rgba(151, 108, 255, 0.16) 55%, transparent 74%);
}

body.juleshow-page[data-xmas-mood="praemier"] .aurora-c {
  background: radial-gradient(ellipse at center, rgba(245, 201, 92, 0.26), rgba(31, 110, 67, 0.18) 54%, transparent 76%);
}

@keyframes aurora-wave-a {
  0% {
    transform: translate3d(0, 0, 0) rotate(-6deg) scale(1);
  }
  100% {
    transform: translate3d(4vw, 3vh, 0) rotate(5deg) scale(1.08);
  }
}

@keyframes aurora-wave-b {
  0% {
    transform: translate3d(0, 0, 0) rotate(8deg) scale(1);
  }
  100% {
    transform: translate3d(-5vw, -3vh, 0) rotate(-4deg) scale(1.06);
  }
}

/* 4. Hanging 3D Light Garland below Header */
.hanging-garland {
  position: sticky;
  top: 82px;
  z-index: 44;
  height: 26px;
  width: 100%;
  pointer-events: none;
  overflow: visible;
}

.site-header.scrolled + .hanging-garland {
  top: 66px;
}

.garland-wire {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  border-bottom: 1.5px solid rgba(31, 110, 67, 0.55);
  box-shadow: 0 2px 12px rgba(31, 110, 67, 0.32);
  background: linear-gradient(90deg, rgba(20, 65, 38, 0.45), rgba(38, 112, 68, 0.65), rgba(20, 65, 38, 0.45));
}

.garland-bulbs {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 3vw;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.g-bulb {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  transform-origin: 50% 0%;
  transform: rotate(var(--sway, 0deg));
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  animation: bulb-idle-sway 4.4s ease-in-out infinite alternate;
}

.g-bulb:nth-child(odd) {
  animation-duration: 5.2s;
  animation-delay: -1.3s;
}

.g-bulb::before {
  content: "";
  width: 2px;
  height: 7px;
  background: rgba(245, 201, 92, 0.5);
}

.g-bulb i {
  display: block;
  width: 9px;
  height: 13px;
  border-radius: 45% 45% 55% 55%;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    filter 0.25s ease;
}

.g-gold i {
  background: radial-gradient(circle at 38% 35%, #fff9e2, #f5c95c 68%, #c98a1e);
  box-shadow: 0 0 12px 3px rgba(245, 201, 92, 0.65);
}

.g-red i {
  background: radial-gradient(circle at 38% 35%, #ffd2d8, #ff3852 65%, #a11022);
  box-shadow: 0 0 12px 3px rgba(255, 56, 82, 0.65);
}

.g-warm i {
  background: radial-gradient(circle at 38% 35%, #ffffff, #ffe7a8 70%, #d9a74a);
  box-shadow: 0 0 13px 3px rgba(255, 236, 179, 0.72);
}

.g-green i {
  background: radial-gradient(circle at 38% 35%, #dcffe8, #3ee07f 65%, #166b38);
  box-shadow: 0 0 11px 2px rgba(62, 224, 127, 0.58);
}

.g-bulb.is-excited i {
  transform: scale(1.28);
  filter: brightness(1.3);
}

@keyframes bulb-idle-sway {
  0% {
    rotate: -2.5deg;
  }
  100% {
    rotate: 2.5deg;
  }
}

/* 5. Parallax Outer Side Rails (Hanging Christmas Ornaments) */
.xmas-side-rails {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.xmas-rail {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 64px;
}

.xmas-rail-left {
  left: max(8px, 1.2vw);
}

.xmas-rail-right {
  right: max(8px, 1.2vw);
}

.rail-ornament {
  position: absolute;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translate3d(-50%, 0, 0);
  will-change: transform;
  opacity: 0.72;
}

.xmas-rail-left .rail-orn-1 {
  top: 110px;
}
.xmas-rail-left .rail-orn-2 {
  top: 430px;
}
.xmas-rail-left .rail-orn-3 {
  top: 760px;
}

.xmas-rail-right .rail-orn-1 {
  top: 170px;
}
.xmas-rail-right .rail-orn-2 {
  top: 510px;
}
.xmas-rail-right .rail-orn-3 {
  top: 830px;
}

.orn-thread {
  width: 1px;
  height: 74px;
  background: linear-gradient(180deg, transparent, rgba(245, 201, 92, 0.55));
}

.orn-cap {
  width: 7px;
  height: 4px;
  border-radius: 1px;
  background: #f5c95c;
}

.orn-ball {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  position: relative;
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.65),
    inset -3px -4px 8px rgba(0, 0, 0, 0.55);
}

.orn-ball i {
  position: absolute;
  top: 4px;
  left: 5px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.65);
  filter: blur(0.5px);
}

.orn-ball-red {
  background: radial-gradient(circle at 35% 32%, #ff6b7d, #c81d32 58%, #4d0711);
  border: 1px solid rgba(255, 130, 145, 0.4);
}

.orn-ball-gold {
  background: radial-gradient(circle at 35% 32%, #fff5cf, #f5c95c 56%, #7d520c);
  border: 1px solid rgba(255, 235, 175, 0.5);
}

.orn-ball-pine {
  background: radial-gradient(circle at 35% 32%, #6be89c, #1f6e43 58%, #092616);
  border: 1px solid rgba(120, 235, 165, 0.4);
}

/* 6 & 9. Frost-Rim Glass Corners & Golden Gift Ribbons (Safari-safe: no preserve-3d + overflow:hidden combo!) */
.frost-card {
  position: relative;
  overflow: hidden;
}

.frost-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(
      260px circle at var(--mx, 50%) var(--my, 50%),
      rgba(245, 201, 92, 0.14),
      rgba(200, 29, 50, 0.06) 45%,
      transparent 72%
    ),
    linear-gradient(135deg, rgba(220, 240, 255, 0.12) 0%, transparent 18%, transparent 82%, rgba(245, 201, 92, 0.12) 100%);
  opacity: 0.78;
  transition: opacity 0.35s ease;
}

.frost-card:hover::before {
  opacity: 1;
}

.card-gift-ribbon {
  position: absolute;
  top: 0;
  right: 18px;
  width: 14px;
  height: 26px;
  background: linear-gradient(180deg, #ffe7a3 0%, #f5c95c 55%, #b87b14 100%);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 76%, 0 100%);
  box-shadow: 0 4px 12px rgba(245, 201, 92, 0.32);
  opacity: 0.85;
  pointer-events: none;
  transition:
    transform 0.3s var(--ease-out-expo),
    opacity 0.3s ease;
}

.frost-card:hover .card-gift-ribbon {
  opacity: 1;
  transform: translateY(2px) scaleY(1.08);
}

/* 7. Interactive 1.–24. December Advent Calendar Timeline */
.jcalendar-shell {
  margin-top: 38px;
  padding: 22px 24px;
  border-radius: 12px;
  border: 1px solid rgba(245, 201, 92, 0.35);
  background:
    radial-gradient(circle at 12% 20%, rgba(200, 29, 50, 0.2), transparent 52%),
    radial-gradient(circle at 88% 80%, rgba(245, 201, 92, 0.14), transparent 52%),
    rgba(15, 11, 22, 0.9);
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.52);
}

.jcalendar-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.jcalendar-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.jcalendar-kicker {
  font: 500 0.62rem var(--mono);
  letter-spacing: 0.14em;
  color: var(--xmas-gold);
}

.jcalendar-title-wrap strong {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.jcalendar-legend {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font: 400 0.64rem var(--mono);
  color: var(--muted);
}

.jcalendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.leg-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.leg-gold {
  background: var(--xmas-gold);
  box-shadow: 0 0 8px rgba(245, 201, 92, 0.65);
}

.leg-crimson {
  background: var(--xmas-crimson-bright);
  box-shadow: 0 0 8px rgba(255, 71, 94, 0.65);
}

.jcalendar-doors {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 8px;
}

.jcal-door {
  position: relative;
  padding: 10px 6px;
  border-radius: 8px;
  border: 1px solid rgba(245, 201, 92, 0.24);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-family: var(--mono);
  transition:
    transform 0.25s var(--ease-out-expo),
    border-color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.jcal-door.is-finale {
  border-color: rgba(255, 71, 94, 0.36);
  background: rgba(200, 29, 50, 0.11);
}

.jcal-door:hover,
.jcal-door:focus-visible {
  transform: translateY(-2px);
  border-color: var(--xmas-gold);
  background: rgba(245, 201, 92, 0.12);
  outline: none;
}

.jcal-door.is-selected {
  border-color: var(--xmas-gold);
  background: linear-gradient(145deg, rgba(245, 201, 92, 0.22), rgba(200, 29, 50, 0.22));
  box-shadow: 0 0 20px rgba(245, 201, 92, 0.26);
  transform: translateY(-2px);
}

.jcal-door.is-today {
  border-color: var(--acid);
  box-shadow: 0 0 18px rgba(199, 255, 59, 0.28);
}

.jcal-num {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--xmas-champagne);
  line-height: 1;
}

.jcal-sub {
  font-size: 0.54rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.jcalendar-readout {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid rgba(245, 201, 92, 0.28);
  background: rgba(9, 7, 15, 0.78);
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.jcal-badge {
  padding: 4px 10px;
  border-radius: 4px;
  background: linear-gradient(135deg, #c81d32, #911020);
  color: #fff;
  font: 600 0.6rem var(--mono);
  letter-spacing: 0.1em;
  flex-shrink: 0;
}

.jcalendar-readout p {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(245, 244, 240, 0.9);
}

/* 8. Scroll-Activated Stardust Comet Dividers */
.jsection {
  position: relative;
}

.stardust-divider {
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  overflow: hidden;
  pointer-events: none;
}

.stardust-divider i {
  display: block;
  width: 220px;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(245, 201, 92, 0.9) 55%, #fff 80%, transparent 100%);
  box-shadow: 0 0 16px 2px rgba(245, 201, 92, 0.85);
  transform: translate3d(-240px, 0, 0);
}

.jsection.stardust-fired .stardust-divider i {
  animation: stardust-sweep 1.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes stardust-sweep {
  0% {
    transform: translate3d(-240px, 0, 0);
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    transform: translate3d(100vw, 0, 0);
    opacity: 0;
  }
}

/* 10. Interactive !deltag Chat Simulator Button */
.jchat-sim-btn {
  width: 100%;
  text-align: left;
  cursor: pointer;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    transform 0.22s var(--ease-out-expo),
    box-shadow 0.25s ease;
}

.jchat-sim-btn:hover {
  border-color: var(--acid);
  background: rgba(199, 255, 59, 0.08);
  box-shadow: 0 6px 20px rgba(199, 255, 59, 0.14);
  transform: translateY(-1px);
}

.jchat-sim-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.jchat-sim-cta {
  margin-left: auto;
  font: 500 0.62rem var(--mono);
  color: var(--xmas-gold);
}

.jchat-sim-reply {
  display: block;
  padding-top: 7px;
  border-top: 1px dashed rgba(199, 255, 59, 0.32);
  font: 400 0.72rem var(--sans);
  color: #e6ffad;
  line-height: 1.4;
}

.jchat-sim-reply[hidden] {
  display: none !important;
}

/* 3. Interactive Spinable "Det store gavehjul" Showcase */
.jgavehjul-showcase {
  margin-bottom: 24px;
  padding: clamp(24px, 3.8vw, 38px);
  border-radius: 12px;
  border: 1px solid rgba(245, 201, 92, 0.42);
  background:
    radial-gradient(circle at 22% 50%, rgba(245, 201, 92, 0.18), transparent 50%),
    radial-gradient(circle at 82% 20%, rgba(200, 29, 50, 0.22), transparent 52%),
    rgba(16, 11, 23, 0.92);
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: clamp(24px, 4vw, 44px);
  align-items: center;
}

.jgavehjul-visual {
  display: grid;
  place-items: center;
}

.jgavehjul-stage {
  position: relative;
  width: 280px;
  height: 280px;
  display: grid;
  place-items: center;
}

.jgavehjul-flapper {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  color: #ffe285;
  font-size: 1.45rem;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.85);
  transform-origin: 50% 15%;
  transition: transform 0.12s ease;
}

.jgavehjul-flapper.is-ticking {
  animation: flapper-tick 0.16s ease-in-out infinite alternate;
}

@keyframes flapper-tick {
  from {
    transform: translateX(-50%) rotate(-18deg);
  }
  to {
    transform: translateX(-50%) rotate(8deg);
  }
}

.jgavehjul-rotor {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.72),
    0 0 34px rgba(245, 201, 92, 0.22);
}

.jgavehjul-rotor svg {
  display: block;
  width: 100%;
  height: 100%;
}

.jgavehjul-copy h3 {
  margin: 4px 0 10px;
  font-size: clamp(1.4rem, 2.5vw, 1.95rem);
  letter-spacing: -0.03em;
}

.jgavehjul-copy p {
  margin: 0 0 20px;
  max-width: 620px;
  font-size: 0.92rem;
  line-height: 1.62;
  color: rgba(245, 244, 240, 0.86);
}

.jgavehjul-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
}

.jgavehjul-result {
  width: 100%;
  max-width: 680px;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  text-align: center;
  padding: 12px 18px;
  border-radius: 10px;
  border: 1px solid rgba(245, 201, 92, 0.3);
  background: rgba(8, 6, 14, 0.72);
  font: 500 0.78rem/1.45 var(--mono);
  color: var(--xmas-champagne);
}

@media (max-width: 1240px) {
  .xmas-side-rails {
    display: none;
  }
}

@media (max-width: 960px) {
  .jcalendar-doors {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }

  .jgavehjul-showcase {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .jgavehjul-actions {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .jcalendar-doors {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .hanging-garland {
    top: 64px;
  }

  .g-bulb:nth-child(even) {
    display: none;
  }
}

/* ==========================================================================
   ROUND 2 — 10 EXTRA VISUAL CHRISTMAS ENHANCEMENTS
   ========================================================================== */

/* 1. Snowdrift Edges ("Liggende sne") on Top of Major Cards */
.snow-cap-card {
  position: relative;
}

.snow-cap-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 9px;
  pointer-events: none;
  z-index: 5;
  background:
    radial-gradient(28px 9px at 8% 0%, rgba(250, 252, 255, 0.78) 65%, transparent 100%),
    radial-gradient(46px 10px at 22% 0%, rgba(245, 250, 255, 0.72) 65%, transparent 100%),
    radial-gradient(36px 8px at 41% 0%, rgba(250, 252, 255, 0.68) 65%, transparent 100%),
    radial-gradient(52px 10px at 64% 0%, rgba(245, 250, 255, 0.75) 65%, transparent 100%),
    radial-gradient(38px 9px at 86% 0%, rgba(250, 252, 255, 0.72) 65%, transparent 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(230, 242, 255, 0.14) 65%, transparent 100%);
  filter: drop-shadow(0 2px 6px rgba(210, 235, 255, 0.25));
}

/* 2. Santa Hat on DJ Cosmo Brand Mark */
.brand-mark.has-santa-hat {
  position: relative;
  overflow: visible;
}

.santa-hat-svg {
  position: absolute;
  top: -12px;
  left: -5px;
  width: 30px;
  height: 23px;
  pointer-events: none;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.55));
  transform-origin: 40% 80%;
  transition: transform 0.35s var(--ease-out-expo);
}

.brand:hover .santa-hat-svg {
  transform: rotate(-14deg) translateY(-2px) scale(1.06);
}

/* 3. Interactive "Pak en prøvegave op" Surprise Gift Box */
.junwrap-showcase {
  margin-bottom: 18px;
  padding: clamp(24px, 3.8vw, 38px);
  border-radius: 12px;
  border: 1px solid rgba(245, 201, 92, 0.42);
  background:
    radial-gradient(circle at 18% 50%, rgba(200, 29, 50, 0.22), transparent 52%),
    radial-gradient(circle at 82% 30%, rgba(245, 201, 92, 0.16), transparent 52%),
    rgba(16, 11, 23, 0.92);
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(22px, 3.5vw, 40px);
  align-items: center;
}

.junwrap-visual {
  display: grid;
  place-items: center;
}

.junwrap-gift-btn {
  position: relative;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--xmas-champagne);
}

.junwrap-glow {
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 201, 92, 0.34), transparent 70%);
  filter: blur(14px);
  pointer-events: none;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.junwrap-gift-btn:hover .junwrap-glow,
.junwrap-gift-btn.is-unwrapped .junwrap-glow {
  transform: scale(1.25);
  opacity: 1;
}

.junwrap-svg {
  overflow: visible;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.65));
  animation: gift-idle-wiggle 3.6s ease-in-out infinite;
}

@keyframes gift-idle-wiggle {
  0%, 84%, 100% {
    transform: rotate(0deg) scale(1);
  }
  88% {
    transform: rotate(-4deg) scale(1.03);
  }
  92% {
    transform: rotate(4deg) scale(1.03);
  }
  96% {
    transform: rotate(-2deg) scale(1.01);
  }
}

.gift-beam {
  opacity: 0;
  transform: scaleY(0.3);
  transform-origin: 90px 82px;
  transition:
    opacity 0.45s ease,
    transform 0.45s var(--ease-out-expo);
}

.gift-lid {
  transform-origin: 90px 66px;
  transition: transform 0.55s var(--ease-out-expo);
}

.junwrap-gift-btn.is-unwrapped .gift-lid {
  transform: translateY(-28px) rotate(-14deg);
}

.junwrap-gift-btn.is-unwrapped .gift-beam {
  opacity: 1;
  transform: scaleY(1);
}

.junwrap-hint {
  font: 600 0.6rem var(--mono);
  letter-spacing: 0.12em;
  color: var(--xmas-gold);
}

.junwrap-copy h3 {
  margin: 4px 0 10px;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  letter-spacing: -0.025em;
}

.junwrap-copy p {
  margin: 0 0 18px;
  max-width: 640px;
  font-size: 0.92rem;
  line-height: 1.62;
  color: rgba(245, 244, 240, 0.85);
}

.junwrap-ActionRow {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
}

.junwrap-reveal {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  padding: 11px 16px;
  border-radius: 10px;
  border: 1px solid rgba(245, 201, 92, 0.34);
  background: rgba(8, 6, 14, 0.78);
  font: 500 0.76rem/1.45 var(--mono);
  color: var(--xmas-champagne);
}

/* 5. Animated Ice Crystal Rosettes in Section Headers */
.jsection-header {
  position: relative;
}

.jsection-header::after {
  content: "❄";
  position: absolute;
  top: -6px;
  right: 0;
  font-size: 1.45rem;
  color: rgba(220, 240, 255, 0.22);
  text-shadow: 0 0 14px rgba(245, 201, 92, 0.35);
  pointer-events: none;
  transform: scale(0.6) rotate(-35deg);
  opacity: 0;
  transition:
    transform 0.9s var(--ease-out-expo),
    opacity 0.9s ease;
}

.jsection.stardust-fired .jsection-header::after {
  transform: scale(1) rotate(0deg);
  opacity: 1;
}

/* 6. Candy-Cane / Gold-Crimson Twisted Top Scroll Progress Bar */
body.juleshow-page .scroll-progress {
  height: 3.5px;
  background: repeating-linear-gradient(
    -45deg,
    #c81d32 0px,
    #c81d32 10px,
    #f5c95c 10px,
    #ffe7a3 20px
  );
  box-shadow: 0 0 14px rgba(245, 201, 92, 0.75);
}

/* 7. Warm Candlelight / Fireplace Flicker Halo around Countdown Clock */
.jcountdown-digits {
  position: relative;
  animation: candle-flicker-glow 3.8s ease-in-out infinite alternate;
}

.jcd-box strong {
  text-shadow:
    0 0 18px rgba(245, 201, 92, 0.38),
    0 0 4px rgba(255, 245, 210, 0.35);
}

@keyframes candle-flicker-glow {
  0% {
    box-shadow:
      0 0 18px rgba(245, 185, 72, 0.12),
      inset 0 0 14px rgba(200, 29, 50, 0.08);
    border-color: rgba(245, 201, 92, 0.24);
  }
  50% {
    box-shadow:
      0 0 28px rgba(245, 195, 82, 0.24),
      inset 0 0 20px rgba(245, 201, 92, 0.12);
    border-color: rgba(245, 201, 92, 0.44);
  }
  100% {
    box-shadow:
      0 0 22px rgba(255, 160, 60, 0.18),
      inset 0 0 16px rgba(200, 29, 50, 0.12);
    border-color: rgba(245, 201, 92, 0.34);
  }
}

/* 8. 3D Door-Opening Animation in 24-Day Advent Calendar */
.jcalendar-doors {
  perspective: 900px;
}

.jcal-door {
  transform-style: preserve-3d;
  transform-origin: 0% 50%;
}

.jcal-door.is-selected {
  animation: door-swing-open 0.55s var(--ease-out-expo) forwards;
}

@keyframes door-swing-open {
  0% {
    transform: perspective(600px) rotateY(0deg) scale(1);
  }
  45% {
    transform: perspective(600px) rotateY(-24deg) scale(1.05);
  }
  100% {
    transform: perspective(600px) rotateY(-8deg) translateY(-2px) scale(1.03);
  }
}

/* 9. Winter Skyline, Snow-Covered Pine Forest & Lit Cabins Above Footer */
.winter-skyline {
  position: relative;
  width: 100%;
  height: clamp(84px, 11vw, 145px);
  margin-top: -28px;
  pointer-events: none;
  overflow: hidden;
}

.winter-skyline-svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* 10. Optional "🔔 Julelyd" Header Button (Silent by default) */
.julelyd-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(245, 201, 92, 0.28);
  background: rgba(245, 201, 92, 0.06);
  color: var(--muted);
  font: 500 0.64rem var(--mono);
  letter-spacing: 0.06em;
  cursor: pointer;
  transition:
    color 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease,
    box-shadow 0.22s ease;
}

.julelyd-btn:hover {
  color: var(--xmas-champagne);
  border-color: rgba(245, 201, 92, 0.55);
}

.julelyd-btn[aria-pressed="true"] {
  color: var(--xmas-champagne);
  border-color: var(--xmas-gold);
  background: rgba(245, 201, 92, 0.16);
  box-shadow: 0 0 16px rgba(245, 201, 92, 0.24);
}

@media (max-width: 960px) {
  .junwrap-showcase {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .junwrap-ActionRow {
    justify-content: center;
  }
}

@media (max-width: 760px) {
  .julelyd-label {
    display: none;
  }

  .julelyd-btn {
    padding: 7px 9px;
  }
}

/* ==========================================================================
   ROUND 3 — COZY NORDIC CHRISTMAS OVERHAUL (NO MORE "COOKIE/TECH" LOOK)
   ========================================================================== */

/* 1. Warm Festive Color Palette & Cozy Velvet/Evergreen Background */
body.juleshow-page {
  --xmas-crimson: #e11d38;
  --xmas-crimson-bright: #ff3b56;
  --xmas-gold: #ffd166;
  --xmas-gold-soft: #fff0b8;
  --xmas-champagne: #fff9ec;
  --xmas-pine: #0f3822;
  --xmas-font-display: "Cinzel Decorative", "Instrument Serif", Georgia, serif, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji";
  --xmas-font-body: "Plus Jakarta Sans", "Space Grotesk", -apple-system, BlinkMacSystemFont, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji";
  font-family: var(--xmas-font-body);
  background:
    radial-gradient(1250px 760px at 14% 8%, rgba(190, 22, 48, 0.34), transparent 62%),
    radial-gradient(1100px 680px at 86% 12%, rgba(20, 92, 54, 0.32), transparent 62%),
    radial-gradient(1200px 800px at 50% 48%, rgba(165, 24, 45, 0.22), transparent 68%),
    radial-gradient(1100px 700px at 50% 94%, rgba(225, 130, 35, 0.24), transparent 65%),
    linear-gradient(180deg, #19070d 0%, #121c17 34%, #1c0910 68%, #15080d 100%) !important;
  color: #fff8ed;
}

/* Warm sticky header with festive crimson/gold glass */
body.juleshow-page .site-header {
  background: linear-gradient(
    90deg,
    rgba(34, 9, 16, 0.96) 0%,
    rgba(17, 38, 26, 0.96) 50%,
    rgba(34, 9, 16, 0.96) 100%
  );
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom: 1.5px solid rgba(255, 209, 102, 0.38);
  box-shadow: 0 8px 32px rgba(15, 4, 8, 0.65);
}

/* 2. Soft Aurora Ambient Ribbons (Safari-safe: no 42px full-screen GPU blur + screen blend) */
body.juleshow-page .aurora-ribbon {
  filter: none;
  mix-blend-mode: normal;
  animation: none !important;
}

body.juleshow-page .aurora-a {
  opacity: 0.30 !important;
  background: conic-gradient(
    from 110deg at 50% 50%,
    rgba(225, 29, 56, 0.45),
    rgba(16, 185, 105, 0.42),
    rgba(255, 209, 102, 0.42),
    rgba(225, 29, 56, 0.45)
  );
}

body.juleshow-page .aurora-b {
  opacity: 0.25 !important;
  background: radial-gradient(
    ellipse at center,
    rgba(16, 185, 105, 0.42) 0%,
    rgba(255, 209, 102, 0.32) 45%,
    transparent 74%
  );
}

body.juleshow-page .aurora-c {
  opacity: 0.24 !important;
  background: radial-gradient(
    ellipse at center,
    rgba(225, 29, 56, 0.40) 0%,
    rgba(255, 180, 70, 0.32) 48%,
    transparent 74%
  );
}

/* 3. Realistic 3D Volumetric SVG Snowdrifts + Icicles on Cards */
.snow-cap-card {
  position: relative;
  margin-top: 14px;
}

.snow-cap-card::before {
  content: "";
  position: absolute;
  top: -17px;
  left: -3px;
  right: -3px;
  height: 36px;
  pointer-events: none;
  z-index: 9;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 56' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='snG' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0%25' stop-color='%23ffffff'/%3E%3Cstop offset='62%25' stop-color='%23f2f8ff'/%3E%3Cstop offset='100%25' stop-color='%23cfe4fb'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0,26 Q48,7 110,20 T235,18 T370,22 T510,16 T655,21 T795,15 T935,21 T1075,16 T1200,22 L1200,32 Q1155,34 1142,49 Q1132,33 1085,33 Q1015,43 935,32 Q872,33 862,51 Q852,33 785,33 Q695,44 610,32 Q515,38 430,31 Q355,33 345,48 Q335,33 275,33 Q180,43 95,32 Q42,33 32,50 Q22,33 0,34 Z' fill='rgba(170,205,245,0.45)' transform='translate(0,4)'/%3E%3Cpath d='M0,26 Q48,7 110,20 T235,18 T370,22 T510,16 T655,21 T795,15 T935,21 T1075,16 T1200,22 L1200,31 Q1155,33 1142,47 Q1132,32 1085,32 Q1015,41 935,30 Q872,32 862,49 Q852,32 785,32 Q695,42 610,30 Q515,36 430,29 Q355,32 345,46 Q335,32 275,32 Q180,41 95,30 Q42,32 32,48 Q22,32 0,32 Z' fill='url(%23snG)'/%3E%3Cpath d='M12,21 Q55,11 112,20 M250,18 Q310,10 365,20 M525,16 Q590,9 650,19 M810,15 Q875,9 930,19 M1080,16 Q1140,10 1188,20' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' fill='none'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  filter: drop-shadow(0 5px 10px rgba(8, 16, 32, 0.5));
}

.snow-cap-card::after {
  display: none !important;
}

/* 5. Classical Festive Display Headings & Ribbon Badges (No More Tech Labels) */
.jhero-title,
.jsection-header h2,
.jbottom-card h2,
.jmodal-title {
  font-family: var(--xmas-font-display);
  letter-spacing: 0.02em;
  text-shadow:
    0 4px 24px rgba(225, 29, 56, 0.42),
    0 0 18px rgba(255, 209, 102, 0.25);
}

.jhero-title span {
  background: linear-gradient(135deg, #fff6d6 0%, #ffd166 45%, #ff9e44 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 18px rgba(255, 190, 70, 0.38));
}

/* Turn technical eyebrows into warm crimson & gold Christmas ribbons */
.jeyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(185, 20, 42, 0.88), rgba(125, 14, 30, 0.92));
  border: 1.5px solid rgba(255, 209, 102, 0.65);
  box-shadow:
    0 6px 18px rgba(140, 12, 28, 0.45),
    inset 0 1px 0 rgba(255, 245, 210, 0.35);
  font: 700 0.72rem var(--xmas-font-body) !important;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #fff6dc !important;
}

.jeyebrow span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffd166;
  box-shadow: 0 0 10px #ffd166;
}

.jterm-index,
.jfeature-num,
.jstep-badge {
  font-family: var(--xmas-font-body) !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em;
}

.jstep-badge {
  background: linear-gradient(135deg, #d91e36, #9e1124) !important;
  color: #fff8e7 !important;
  border: 1px solid rgba(255, 209, 102, 0.6) !important;
  border-radius: 999px !important;
  padding: 5px 13px !important;
  box-shadow: 0 4px 12px rgba(217, 30, 54, 0.35);
}

/* 6. Warm Plush Christmas Cards (Goodbye dark-gray cookie boxes!) */
.jhero-card,
.jcalendar-shell,
.jfeature-card,
.jstep-card,
.jgavehjul-showcase,
.jmech-card,
.jodds-shell,
.jodds-card,
.junwrap-showcase,
.jsponsors-link-card,
.jterms-callout-card,
.jbottom-card,
.jnotice-box,
.jvalue-strip {
  border-radius: 22px !important;
  border: 1.5px solid rgba(255, 209, 102, 0.38) !important;
  background:
    radial-gradient(circle at 12% 0%, rgba(225, 29, 56, 0.26), transparent 58%),
    radial-gradient(circle at 88% 100%, rgba(20, 105, 58, 0.24), transparent 58%),
    linear-gradient(165deg, rgba(44, 13, 22, 0.92) 0%, rgba(24, 12, 19, 0.94) 55%, rgba(16, 32, 23, 0.92) 100%) !important;
  box-shadow:
    0 20px 48px rgba(8, 2, 5, 0.65),
    0 0 28px rgba(225, 29, 56, 0.12),
    inset 0 1px 0 rgba(255, 236, 179, 0.28) !important;
}

.jfeature-card:hover,
.jstep-card:hover,
.jmech-card:hover,
.jodds-card:hover {
  border-color: rgba(255, 209, 102, 0.78) !important;
  box-shadow:
    0 24px 56px rgba(8, 2, 5, 0.75),
    0 0 36px rgba(255, 209, 102, 0.24),
    inset 0 1px 0 rgba(255, 244, 204, 0.45) !important;
}

.jfeature-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  font-size: 1.65rem;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 220, 130, 0.35), transparent 65%),
    linear-gradient(135deg, rgba(205, 24, 48, 0.45), rgba(20, 88, 48, 0.45));
  border: 1.5px solid rgba(255, 209, 102, 0.55);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

/* Advent calendar doors look like festive red & gold gift boxes */
.jcal-door {
  border-radius: 14px !important;
  border: 1.5px solid rgba(255, 209, 102, 0.38) !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 209, 102, 0.22), transparent 70%),
    linear-gradient(160deg, rgba(155, 18, 38, 0.78), rgba(56, 12, 22, 0.9)) !important;
  box-shadow:
    0 6px 14px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 240, 195, 0.3);
}

.jcal-door.is-finale {
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 230, 140, 0.35), transparent 72%),
    linear-gradient(160deg, rgba(195, 24, 48, 0.92), rgba(22, 78, 44, 0.88)) !important;
  border-color: rgba(255, 209, 102, 0.72) !important;
}

.jcal-door.is-selected {
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 238, 170, 0.48), transparent 72%),
    linear-gradient(160deg, #e11d38, #9e1024) !important;
  border-color: #ffe28a !important;
  box-shadow:
    0 0 24px rgba(255, 209, 102, 0.55),
    0 10px 22px rgba(0, 0, 0, 0.5) !important;
}

/* 8. Lush Evergreen Pine Bough Garland Across Top (Desktop & Mobile) */
.hanging-garland {
  height: 62px;
  z-index: 48;
}

.pine-garland-bough {
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  height: 52px;
  pointer-events: none;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.65));
}

.pine-bough-svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Keep side ornaments visible on tablets & mobile too (scaled gracefully) */
@media (max-width: 1240px) {
  .xmas-side-rails {
    display: block !important;
    opacity: 0.78;
    z-index: 6;
  }

  .xmas-rail {
    width: 34px;
  }

  .xmas-rail-left {
    left: 2px;
  }

  .xmas-rail-right {
    right: 2px;
  }

  .rail-ornament .orn-ball {
    width: 22px;
    height: 22px;
  }

  .rail-orn-2 {
    display: none;
  }
}

/* 9. Warm Fireplace Hearth Glow at Bottom of Screen */
.hearth-bottom-glow {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 155px;
  pointer-events: none;
  z-index: 7;
  background: radial-gradient(
    76% 100% at 50% 100%,
    rgba(255, 134, 28, 0.42) 0%,
    rgba(225, 42, 32, 0.22) 48%,
    transparent 100%
  );
  animation: hearth-pulse 3.8s ease-in-out infinite alternate;
}

@keyframes hearth-pulse {
  0% {
    opacity: 0.78;
    transform: scaleY(0.95);
  }
  100% {
    opacity: 1;
    transform: scaleY(1.1);
  }
}

@media (max-width: 640px) {
  .hanging-garland {
    height: 48px;
  }

  .pine-garland-bough {
    height: 40px;
  }

  .snow-cap-card::before {
    top: -12px;
    left: 0;
    right: 0;
    height: 26px;
  }

  .jhero-title {
    font-size: clamp(1.75rem, 7.6vw, 2.35rem) !important;
    line-height: 1.06 !important;
  }

  .jhero-copy,
  .jhero-stage,
  .jhero-grid > * {
    min-width: 0;
    max-width: 100%;
  }

  .jeyebrow {
    font-size: 0.64rem !important;
    padding: 6px 12px;
  }
}

/* ==========================================================================
   ROUND 4 — 10 COZY DANISH CHRISTMAS DETAILS & TOP FRAMING FIX
   ========================================================================== */

/* Top framing: ensure full heading + pine garland breathing room on load */
html {
  scroll-padding-top: 150px;
}

body.juleshow-page .jhero {
  padding-top: clamp(38px, 4.8vw, 68px);
}

/* 4. Subtle Warm Nordic Christmas Wallpaper Pattern on Background */
body.juleshow-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%23ffd166' stroke-width='1'%3E%3Cpath d='M48,10 L56,28 L40,28 Z M48,22 L60,44 L36,44 Z'/%3E%3Ccircle cx='16' cy='16' r='2' fill='%23ffd166'/%3E%3Ccircle cx='80' cy='80' r='2' fill='%23ffd166'/%3E%3Cpath d='M48,60 L51,68 L59,71 L51,74 L48,82 L45,74 L37,71 L45,68 Z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 96px 96px;
}

/* 1. Hand-Drawn Holly Leaves & Red Berries on Major Card Corners */
.holly-corner-card::after {
  content: "" !important;
  display: block !important;
  position: absolute;
  top: -12px;
  right: -10px;
  width: 62px;
  height: 48px;
  pointer-events: none;
  z-index: 10;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 70 54'%3E%3Cpath d='M36,24 Q18,8 6,22 Q16,26 12,36 Q26,34 36,26 Z' fill='%231d6b3c' stroke='%23ffd166' stroke-width='1.2'/%3E%3Cpath d='M36,24 Q52,6 64,20 Q54,26 58,36 Q44,34 36,26 Z' fill='%2314522d' stroke='%23ffd166' stroke-width='1.2'/%3E%3Ccircle cx='35' cy='24' r='5.2' fill='%23e11d38' stroke='%23fff4d2' stroke-width='1'/%3E%3Ccircle cx='28' cy='29' r='4.6' fill='%23ff2e4c' stroke='%23fff4d2' stroke-width='0.9'/%3E%3Ccircle cx='42' cy='29' r='4.6' fill='%23e11d38' stroke='%23fff4d2' stroke-width='0.9'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}

/* 2. 4 Living Flickering Danish Advent Candles Above Countdown */
.advent-candles {
  display: flex;
  justify-content: center;
  margin: -6px 0 8px;
}

.candle-flame {
  transform-origin: center bottom;
  animation: flame-flicker 1.9s ease-in-out infinite alternate;
}

.candle-flame-2 {
  animation-duration: 2.3s;
  animation-delay: -0.5s;
}

.candle-flame-3 {
  animation-duration: 1.7s;
  animation-delay: -1.1s;
}

.candle-flame-4 {
  animation-duration: 2.1s;
  animation-delay: -0.8s;
}

.candle-halo {
  animation: halo-breathe 2.2s ease-in-out infinite alternate;
}

@keyframes flame-flicker {
  0% {
    transform: scaleY(0.94) skewX(-2deg);
    opacity: 0.92;
  }
  50% {
    transform: scaleY(1.08) skewX(2deg);
    opacity: 1;
  }
  100% {
    transform: scaleY(0.97) skewX(-1deg);
    opacity: 0.95;
  }
}

@keyframes halo-breathe {
  0% {
    opacity: 0.6;
  }
  100% {
    opacity: 1;
  }
}

/* 3. Danish Braided Christmas Hearts ("Flettede julehjerter") in Section Dividers */
.stardust-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible !important;
}

.danish-heart-ornament {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  background: radial-gradient(circle, rgba(38, 11, 19, 0.92) 45%, transparent 100%);
  filter: drop-shadow(0 4px 12px rgba(225, 29, 56, 0.45));
  animation: heart-gentle-sway 4.5s ease-in-out infinite alternate;
}

@keyframes heart-gentle-sway {
  0% {
    transform: rotate(-5deg);
  }
  100% {
    transform: rotate(5deg);
  }
}

/* 5. Embossed Crimson Wax Seal Stamp on Terms & Sponsors Cards */
.has-wax-seal {
  position: relative;
  overflow: visible !important;
}

.wax-seal-badge {
  position: absolute;
  top: -18px;
  right: 22px;
  z-index: 11;
  pointer-events: none;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.55));
  transform: rotate(7deg);
}

/* 6. Wrapped Golden Gift-Ribbon Bows on the 4 "Sådan deltager du" Step Cards */
.jstep-card {
  position: relative;
  overflow: visible !important;
  margin-top: 12px;
}

.jstep-card::after {
  content: "";
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 54px;
  height: 26px;
  pointer-events: none;
  z-index: 9;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 30'%3E%3Cpath d='M32,16 C18,2 4,8 12,20 C18,24 26,20 32,16 Z' fill='%23ffd166' stroke='%23b87914' stroke-width='1.5'/%3E%3Cpath d='M32,16 C46,2 60,8 52,20 C46,24 38,20 32,16 Z' fill='%23f5c95c' stroke='%23b87914' stroke-width='1.5'/%3E%3Ccircle cx='32' cy='16' r='5' fill='%23e11d38' stroke='%23ffe699' stroke-width='1.5'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.45));
}

/* 8. Cozy Steaming Hot Cocoa / Gløgg Mug by Advent Calendar */
.jcalendar-title-with-mug {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 12px;
}

.cozy-cocoa-mug {
  flex-shrink: 0;
  display: inline-flex;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.45));
}

.cocoa-steam {
  animation: steam-rise 2.8s ease-in-out infinite;
}

.steam-2 {
  animation-delay: -0.9s;
}

.steam-3 {
  animation-delay: -1.8s;
}

@keyframes steam-rise {
  0% {
    opacity: 0.2;
    transform: translateY(3px);
  }
  50% {
    opacity: 0.85;
    transform: translateY(-2px);
  }
  100% {
    opacity: 0.15;
    transform: translateY(-5px);
  }
}

/* 9. Warm Velvet & Gold-Stitched Christmas Card Frame Around Countdown Clock */
.jcountdown-digits {
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 209, 102, 0.14), transparent 70%),
    linear-gradient(165deg, rgba(64, 15, 26, 0.92), rgba(34, 9, 16, 0.96)) !important;
  border: 1.5px dashed rgba(255, 209, 102, 0.55) !important;
  border-radius: 16px !important;
  box-shadow:
    inset 0 0 24px rgba(255, 195, 75, 0.12),
    0 8px 24px rgba(0, 0, 0, 0.45) !important;
}

.jcd-box strong {
  color: #ffe8a6 !important;
}

/* 10. Animated Chimney Smoke & Twinkling Tree Fairy Lights in Winter Skyline */
.chimney-smoke {
  animation: chimney-puff 4.6s ease-in-out infinite;
}

.smoke-b {
  animation-delay: -1.5s;
}

.smoke-c {
  animation-delay: -3s;
}

@keyframes chimney-puff {
  0% {
    transform: translate(0, 4px) scale(0.8);
    opacity: 0.45;
  }
  50% {
    transform: translate(4px, -6px) scale(1.12);
    opacity: 0.24;
  }
  100% {
    transform: translate(9px, -16px) scale(1.38);
    opacity: 0;
  }
}

.skyline-tree-lights circle {
  animation: tree-twinkle 2.4s ease-in-out infinite alternate;
}

.skyline-tree-lights circle:nth-child(odd) {
  animation-delay: -1.1s;
}

@keyframes tree-twinkle {
  0% {
    opacity: 0.4;
  }
  100% {
    opacity: 1;
  }
}

@media (max-width: 640px) {
  .wax-seal-badge {
    top: -14px;
    right: 12px;
    transform: scale(0.82) rotate(7deg);
  }

  .holly-corner-card::after {
    width: 48px;
    height: 38px;
    top: -9px;
    right: -6px;
  }
}

/* ==========================================================================
   ROUND 5 — JULEPOSTKORT STUDIO, FAQ ACCORDION, EQ, BANNER FRAME & TOP STAR
   ========================================================================== */

/* 9. Warm "Julepostkort"-ramme om julebanner-billedet (Double gold border + corner stars) */
.jhero-art-frame {
  position: relative;
  margin: 10px 10px 0;
  width: calc(100% - 20px);
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid rgba(255, 209, 102, 0.72) !important;
  box-shadow:
    0 0 0 3px rgba(34, 9, 16, 0.9),
    0 0 0 4.5px rgba(255, 209, 102, 0.34),
    0 12px 28px rgba(0, 0, 0, 0.52);
}

.jhero-art-frame::before,
.jhero-art-frame::after {
  content: "✦";
  position: absolute;
  bottom: 6px;
  z-index: 3;
  font-size: 0.78rem;
  color: #ffe8a6;
  text-shadow: 0 0 8px rgba(255, 209, 102, 0.95);
  pointer-events: none;
}

.jhero-art-frame::before {
  left: 8px;
}

.jhero-art-frame::after {
  right: 8px;
}

/* 7. Subtle Golden & Crimson Christmas EQ Visualizer on "Musik og julestemning" */
.jfeature-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.jfeature-head-row .jfeature-icon {
  margin-bottom: 0;
}

.xmas-eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 4px;
  height: 26px;
  padding: 5px 9px;
  border-radius: 10px;
  background: rgba(18, 6, 12, 0.55);
  border: 1px solid rgba(255, 209, 102, 0.28);
}

.xmas-eq span {
  width: 3.5px;
  border-radius: 99px;
  background: linear-gradient(180deg, #ffe8a6 0%, #ffd166 48%, #e11d38 100%);
  animation: xmas-eq-dance 1.35s ease-in-out infinite alternate;
}

.xmas-eq span:nth-child(1) { height: 38%; animation-delay: -0.1s; animation-duration: 1.2s; }
.xmas-eq span:nth-child(2) { height: 78%; animation-delay: -0.5s; animation-duration: 1.45s; }
.xmas-eq span:nth-child(3) { height: 52%; animation-delay: -0.9s; animation-duration: 1.1s; }
.xmas-eq span:nth-child(4) { height: 92%; animation-delay: -0.3s; animation-duration: 1.55s; }
.xmas-eq span:nth-child(5) { height: 64%; animation-delay: -0.7s; animation-duration: 1.25s; }
.xmas-eq span:nth-child(6) { height: 42%; animation-delay: -1.1s; animation-duration: 1.4s; }

@keyframes xmas-eq-dance {
  0% {
    transform: scaleY(0.32);
    opacity: 0.72;
  }
  100% {
    transform: scaleY(1);
    opacity: 1;
  }
}

/* SEND ET JULEPOSTKORT — INTERACTIVE POSTCARD STUDIO */
.jpostcard-studio {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(22px, 3.6vw, 40px);
  padding: clamp(22px, 3.6vw, 36px);
  align-items: center;
}

.jpostcard-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.jpc-theme-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.jpc-theme-btn {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 209, 102, 0.34);
  background: rgba(20, 8, 14, 0.72);
  color: #fff6dc;
  font: 600 0.78rem var(--xmas-font-body);
  cursor: pointer;
  transition: all 0.22s ease;
}

.jpc-theme-btn:hover {
  border-color: #ffd166;
}

.jpc-theme-btn.is-active {
  background: linear-gradient(135deg, #d91e36, #9e1124);
  border-color: #ffe28a;
  box-shadow: 0 4px 16px rgba(217, 30, 54, 0.42);
}

.jpc-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.jpc-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.jpc-field span {
  font: 700 0.74rem var(--xmas-font-body);
  letter-spacing: 0.04em;
  color: #ffe8a6;
}

.jpc-field input,
.jpc-field textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1.5px solid rgba(255, 209, 102, 0.3);
  background: rgba(14, 6, 11, 0.78);
  color: #fff9ec;
  font: 500 0.9rem var(--xmas-font-body);
  resize: vertical;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.jpc-field input:focus,
.jpc-field textarea:focus {
  border-color: #ffd166;
  box-shadow: 0 0 0 3px rgba(255, 209, 102, 0.16);
}

.jpc-share-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}

.jpc-share-grid .button {
  justify-content: center;
  width: 100%;
  padding-inline: 14px;
}

.jpc-social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.jpc-mini-btn {
  flex: 1 1 110px;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 209, 102, 0.32);
  background: rgba(255, 255, 255, 0.05);
  color: #fff6dc;
  font: 600 0.78rem var(--xmas-font-body);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.jpc-mini-btn:hover {
  background: rgba(255, 209, 102, 0.14);
  border-color: #ffd166;
  transform: translateY(-1px);
}

.jpc-status {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: rgba(255, 240, 208, 0.8);
}

.jpostcard-preview-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

#postcard-canvas {
  width: 100%;
  max-width: 380px;
  height: auto;
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  border: 2px solid rgba(255, 209, 102, 0.65);
  box-shadow:
    0 22px 50px rgba(0, 0, 0, 0.68),
    0 0 28px rgba(255, 209, 102, 0.2);
  display: block;
}

/* 6. Hyggelig Animeret FAQ-Harmonika */
.jfaq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 880px;
  margin: 0 auto;
}

.jfaq-item {
  border-radius: 18px;
  border: 1.5px solid rgba(255, 209, 102, 0.34);
  background:
    radial-gradient(circle at 8% 0%, rgba(225, 29, 56, 0.22), transparent 55%),
    linear-gradient(165deg, rgba(44, 13, 22, 0.92), rgba(22, 12, 19, 0.94));
  box-shadow: 0 12px 28px rgba(8, 2, 5, 0.48);
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.jfaq-item.is-open {
  border-color: rgba(255, 209, 102, 0.72);
  box-shadow:
    0 16px 34px rgba(8, 2, 5, 0.62),
    0 0 22px rgba(255, 209, 102, 0.16);
}

.jfaq-trigger {
  width: 100%;
  padding: 18px 22px;
  background: none;
  border: 0;
  color: #fff8ed;
  font: 700 1.02rem var(--xmas-font-body);
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
}

.jfaq-chevron {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-style: normal;
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1;
  color: #ffe8a6;
  background: rgba(255, 209, 102, 0.14);
  border: 1px solid rgba(255, 209, 102, 0.45);
  transition: transform 0.32s var(--ease-out-expo), background 0.25s ease;
}

.jfaq-item.is-open .jfaq-chevron {
  transform: rotate(45deg);
  background: rgba(225, 29, 56, 0.42);
}

.jfaq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.36s var(--ease-out-expo);
}

.jfaq-item.is-open .jfaq-panel {
  grid-template-rows: 1fr;
}

.jfaq-panel-inner {
  overflow: hidden;
}

.jfaq-panel-inner p {
  margin: 0;
  padding: 0 22px 20px;
  font-size: 0.94rem;
  line-height: 1.66;
  color: rgba(255, 245, 228, 0.88);
}

.jfaq-panel-inner a {
  color: #ffd166;
}

/* 10. Floating Golden Christmas Tree Star "Til toppen" Button */
.xmas-top-star {
  position: fixed;
  right: max(18px, 2.2vw);
  bottom: 22px;
  z-index: 46;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 35% 30%, rgba(205, 24, 48, 0.94), rgba(88, 12, 24, 0.96));
  border: 1.5px solid rgba(255, 209, 102, 0.78);
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.55),
    0 0 22px rgba(255, 209, 102, 0.42);
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px) scale(0.86);
  transition:
    opacity 0.3s ease,
    transform 0.35s var(--ease-out-expo),
    box-shadow 0.25s ease;
}

.xmas-top-star.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.xmas-top-star:hover {
  transform: translateY(-3px) scale(1.08);
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.65),
    0 0 32px rgba(255, 209, 102, 0.72);
}

@media (max-width: 900px) {
  .jpostcard-studio {
    grid-template-columns: 1fr;
  }

  .jpostcard-preview-wrap {
    order: -1;
  }
}

@media (max-width: 640px) {
  .jpc-field-row,
  .jpc-share-grid {
    grid-template-columns: 1fr;
  }

  .jfaq-trigger {
    padding: 15px 16px;
    font-size: 0.94rem;
  }

  .jfaq-panel-inner p {
    padding: 0 16px 16px;
  }
}

/* ==========================================================================
   ANIMATED CHRISTMAS ENVELOPE CTA IN HERO ("Send Julekort til dine kære")
   ========================================================================== */
.hero-cta-row {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.hero-cta-row .hero-envelope-cta {
  margin-top: 0;
  max-width: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
}

.hero-nisse-cta {
  background:
    radial-gradient(circle at 14% 50%, rgba(245, 201, 92, 0.22), transparent 60%),
    linear-gradient(135deg, rgba(64, 15, 26, 0.9), rgba(24, 38, 28, 0.9));
}

.hero-envelope-cta {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  max-width: 520px;
  border-radius: 16px;
  text-decoration: none;
  color: #fff9ec;
  border: 1.5px solid rgba(255, 209, 102, 0.58);
  background:
    radial-gradient(circle at 14% 50%, rgba(225, 29, 56, 0.34), transparent 60%),
    linear-gradient(135deg, rgba(64, 15, 26, 0.9), rgba(24, 38, 28, 0.9));
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.45),
    0 0 24px rgba(255, 209, 102, 0.16);
  transition: transform 0.25s var(--ease-out-expo), border-color 0.25s ease, box-shadow 0.25s ease;
}

.hero-envelope-cta:hover {
  transform: translateY(-3px);
  border-color: #ffe28a;
  box-shadow:
    0 16px 38px rgba(0, 0, 0, 0.56),
    0 0 32px rgba(255, 209, 102, 0.34);
}

.envelope-icon-wrap {
  flex-shrink: 0;
  display: inline-flex;
  animation: envelope-bob 2.8s ease-in-out infinite;
}

.envelope-svg {
  display: block;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}

.env-sparkle {
  animation: env-sparkle-twinkle 1.8s ease-in-out infinite alternate;
}

@keyframes envelope-bob {
  0%, 100% {
    transform: translateY(0) rotate(-3deg);
  }
  50% {
    transform: translateY(-4px) rotate(3deg);
  }
}

@keyframes env-sparkle-twinkle {
  0% {
    opacity: 0.35;
    transform: scale(0.85);
  }
  100% {
    opacity: 1;
    transform: scale(1.15);
  }
}

.envelope-cta-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.envelope-cta-copy strong {
  font-size: 0.96rem;
  font-weight: 700;
  color: #ffe8a6;
}

.envelope-cta-copy small {
  font-size: 0.78rem;
  color: rgba(255, 244, 224, 0.84);
}

.envelope-cta-arrow {
  margin-left: auto;
  font-size: 1.15rem;
  color: #ffd166;
  font-weight: 700;
}

.jpc-mini-btn-primary {
  border-color: rgba(255, 209, 102, 0.65);
  background: rgba(255, 209, 102, 0.14);
  color: #ffe8a6;
}

@media (max-width: 780px) {
  .hero-cta-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero-envelope-cta {
    width: 100%;
    padding: 11px 14px;
  }
}

/* Date-Locked Advent Calendar Doors (opens on each exact December date) */
.jcal-door.is-locked {
  opacity: 0.62;
  cursor: not-allowed;
  filter: saturate(0.75);
}

.jcal-door.is-locked:hover {
  transform: none;
  opacity: 0.75;
}

.jcal-door.is-shake {
  animation: door-locked-shake 0.36s ease-in-out;
}

@keyframes door-locked-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px) rotate(-2deg); }
  50% { transform: translateX(4px) rotate(2deg); }
  75% { transform: translateX(-3px) rotate(-1deg); }
}

/* ==========================================================================
   ROUND 6 — 10 LAYOUT & VISUAL RHYTHM POLISHES
   ========================================================================== */

/* 1. Cleaner Single-Row Hero Button Hierarchy on Desktop */
@media (min-width: 1100px) {
  .jhero-actions {
    flex-wrap: nowrap;
    gap: 10px;
  }

  .jhero-actions .button {
    white-space: nowrap;
    padding-inline: 18px;
  }
}

/* 2 & 3. Single-Line Top Navigation (Never wraps to 2 lines) */
body.juleshow-page .nav a {
  white-space: nowrap;
  flex-shrink: 0;
}

/* 4. Compact Horizontal Swipeable 24-Day Advent Calendar on Mobile */
.jcalendar-swipe-hint {
  display: none;
  font: 600 0.72rem var(--xmas-font-body);
  color: rgba(255, 232, 166, 0.78);
  text-align: center;
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}

@media (max-width: 640px) {
  .jcalendar-swipe-hint {
    display: block;
  }

  .jcalendar-doors {
    display: flex !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
    padding: 4px 2px 10px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 209, 102, 0.45) transparent;
  }

  .jcal-door {
    flex: 0 0 66px;
    scroll-snap-align: start;
  }
}

/* 5. Consistent 2-Column Showcase Balance (Gavehjulet & Prøvegave) */
@media (min-width: 961px) {
  .jgavehjul-showcase,
  .junwrap-showcase {
    grid-template-columns: 280px 1fr;
    gap: clamp(24px, 3.6vw, 44px);
    align-items: center;
  }
}

/* 6. 3-Phase Grouped Round Lifecycle (Tilmelding -> Udtrækning -> Gevinst) */
.jround-phases {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 14px;
}

.jround-phase {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(14, 6, 11, 0.48);
  border: 1px solid rgba(255, 209, 102, 0.22);
}

.jround-phase-label {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(225, 29, 56, 0.28);
  border: 1px solid rgba(255, 209, 102, 0.45);
  font: 700 0.72rem var(--xmas-font-body);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffe8a6;
}

.jround-phase .jround-list {
  margin: 0;
  gap: 8px;
}

/* 7. Tighter, Cohesive Section Vertical Rhythm */
body.juleshow-page .jsection {
  padding-top: clamp(38px, 4.6vw, 62px);
  padding-bottom: clamp(38px, 4.6vw, 62px);
}

body.juleshow-page .stardust-divider {
  margin-bottom: clamp(22px, 2.8vw, 34px);
}

/* 8. Hide Floating Side Baubles on Narrow Mobile (<820px) for Clean Text Margins */
@media (max-width: 820px) {
  .xmas-side-rails {
    display: none !important;
  }
}

/* 9. Visual 1x / 2x / 3x Ticket Badges & 3-Bar Meters in Vinderchancer */
.jodds-meter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0 10px;
}

.jodds-lod-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.22), rgba(225, 29, 56, 0.24));
  border: 1px solid rgba(255, 209, 102, 0.62);
  font: 800 0.78rem var(--xmas-font-body);
  letter-spacing: 0.05em;
  color: #ffe8a6;
}

.jodds-bars {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.jodds-bars i {
  display: block;
  width: 24px;
  height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 209, 102, 0.22);
}

.jodds-bars i.is-filled {
  background: linear-gradient(90deg, #ffd166, #ff9e44);
  border-color: #fff0b8;
  box-shadow: 0 0 10px rgba(255, 209, 102, 0.55);
}

/* 10. Seamless Winter Skyline + Footer Transition */
body.juleshow-page .winter-skyline {
  margin-top: -12px;
  margin-bottom: -2px;
}

body.juleshow-page .site-footer {
  border-top: 1px solid rgba(255, 240, 210, 0.16);
  background: linear-gradient(180deg, rgba(28, 18, 30, 0.96) 0%, rgba(16, 7, 13, 0.98) 100%);
  padding-top: 28px;
}

/* ==========================================================================
   ROUND 7 — "LAV DIN EGEN NISSE" STUDIO + MAGICAL GOLDEN FOUNTAIN PEN
   ========================================================================== */
.jnisse-studio {
  padding: clamp(22px, 3.6vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.jnisse-top-row {
  display: flex;
  justify-content: flex-end;
}

.jnisse-quota-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(18, 6, 12, 0.78);
  border: 1.5px solid rgba(255, 209, 102, 0.48);
  font: 700 0.78rem var(--xmas-font-body);
  color: #ffe8a6;
}

.jnisse-upload-row {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.jnisse-crop-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.jnisse-crop-stage {
  position: relative;
  width: 148px;
  height: 148px;
  border-radius: 20px;
  border: 2px dashed rgba(255, 209, 102, 0.62);
  background: rgba(12, 5, 9, 0.78);
  overflow: hidden;
  display: grid;
  place-items: center;
  font-size: 2.3rem;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.jnisse-crop-stage:active { cursor: grabbing; }
.jnisse-crop-stage canvas { width: 100%; height: 100%; display: block; }

.jnisse-crop-ring {
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  border: 1.5px dashed rgba(255, 232, 166, 0.55);
  pointer-events: none;
}

.jnisse-zoom-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font: 600 0.72rem var(--xmas-font-body);
  color: #ffe8a6;
}

.jnisse-zoom-row input[type="range"] {
  width: 104px;
  accent-color: #ffd166;
}

.jnisse-controls {
  flex: 1 1 280px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.jnisse-btn-row,
.jnisse-gender-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.jnisse-file-btn { cursor: pointer; }
.jnisse-file-btn input { display: none; }

.jnisse-gender-btn {
  flex: 1 1 140px;
  padding: 11px 16px;
  border-radius: 12px;
  border: 1.5px solid rgba(255, 209, 102, 0.4);
  background: rgba(255, 255, 255, 0.06);
  color: #ffe8a6;
  font: 700 0.88rem var(--xmas-font-body);
  cursor: pointer;
  transition: all 0.2s ease;
}

.jnisse-gender-btn.is-active {
  background: linear-gradient(135deg, #d91e36, #9e1124);
  color: #fff9ec;
  border-color: #ffe28a;
  box-shadow: 0 6px 20px rgba(217, 30, 54, 0.42);
}

.jnisse-helper {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(255, 240, 210, 0.82);
}

/* Live Webcam / Mobile Camera Viewfinder */
.jnisse-camera-box {
  padding: 16px;
  border-radius: 18px;
  border: 1.5px solid rgba(255, 209, 102, 0.5);
  background: rgba(10, 4, 8, 0.86);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.jnisse-camera-box[hidden] { display: none; }

.jnisse-camera-video-wrap {
  position: relative;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
}

.jnisse-camera-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}

.jnisse-camera-oval {
  position: absolute;
  inset: 14% 20%;
  border-radius: 50%;
  border: 2px dashed rgba(255, 209, 102, 0.82);
  box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.34);
  pointer-events: none;
}

.jnisse-camera-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

/* 3 Animated Roulette Shuffler Boxes */
.jnisse-shuffler-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.jnisse-shuffle-box {
  border-radius: 18px;
  border: 2px solid rgba(255, 209, 102, 0.4);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 209, 102, 0.14), transparent 68%),
    rgba(14, 6, 11, 0.8);
  padding: 16px 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 126px;
  gap: 5px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.jnisse-shuffle-box.is-spinning {
  border-color: #ffd166;
  box-shadow: 0 0 26px rgba(255, 209, 102, 0.42);
}

.jnisse-shuffle-box.is-locked {
  border-color: #ffe8a6;
  background:
    radial-gradient(circle at 50% 0%, rgba(225, 29, 56, 0.32), transparent 72%),
    rgba(22, 10, 16, 0.92);
  box-shadow: 0 0 30px rgba(255, 209, 102, 0.46);
  animation: ns-lock-pop 0.38s var(--ease-out-expo);
}

@keyframes ns-lock-pop {
  0% { transform: scale(0.95); }
  55% { transform: scale(1.04); }
  100% { transform: scale(1); }
}

.ns-kicker {
  font: 800 0.66rem var(--xmas-font-body);
  letter-spacing: 0.09em;
  color: rgba(255, 232, 166, 0.78);
}

.ns-icon {
  font-size: 2.1rem;
  line-height: 1;
}

.ns-name {
  font: 800 0.92rem var(--xmas-font-body);
  color: #fff9ec;
}

.ns-sub {
  font-size: 0.72rem;
  color: rgba(255, 232, 166, 0.8);
}

.jnisse-options-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.jnisse-check {
  display: inline-flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(255, 242, 214, 0.9);
  cursor: pointer;
}

.jnisse-check input {
  margin-top: 2px;
  width: 17px;
  height: 17px;
  accent-color: #ffd166;
  flex-shrink: 0;
}

.jnisse-go-btn {
  width: 100%;
  justify-content: center;
  font-size: 1.02rem;
  padding: 15px 22px;
}

.jnisse-go-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.jnisse-msg {
  margin: 0;
  font-size: 0.88rem;
  color: #ffe8a6;
  min-height: 20px;
}

/* Result Stage + Magical Golden Fountain Pen */
.jnisse-result-wrap {
  margin-top: 8px;
  padding-top: 22px;
  border-top: 1px dashed rgba(255, 209, 102, 0.36);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.jnisse-result-wrap[hidden] { display: none; }

.jnisse-result-head {
  text-align: center;
}

.jnisse-result-head h3 {
  margin: 0 0 4px;
  font-family: var(--xmas-font-display);
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  color: #ffe8a6;
}

.jnisse-result-head span {
  font-size: 0.82rem;
  color: rgba(255, 240, 210, 0.84);
}

.jnisse-canvas-stage {
  position: relative;
  width: 100%;
  max-width: 440px;
  border-radius: 20px;
  overflow: visible;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.72),
    0 0 36px rgba(255, 209, 102, 0.24);
}

#nisse-result-canvas {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
  border: 2px solid rgba(255, 209, 102, 0.72);
  background: repeating-conic-gradient(#e5e7eb 0% 25%, #ffffff 0% 50%) 50% / 18px 18px;
}

.nisse-magic-pen {
  position: absolute;
  left: 20%;
  top: 78%;
  width: 76px;
  height: 76px;
  /* Anchor the pen's nib (bottom-left of SVG) directly onto the exact writing coordinate! */
  transform: translate(-4px, -72px) rotate(-6deg);
  pointer-events: none;
  z-index: 12;
  transition: opacity 0.3s ease;
}

.nisse-magic-pen.is-writing {
  animation: magic-pen-glow 0.45s ease-in-out infinite alternate;
}

@keyframes magic-pen-glow {
  0% { filter: drop-shadow(0 0 10px rgba(255, 209, 102, 0.85)); }
  100% { filter: drop-shadow(0 0 22px rgba(255, 244, 180, 1)); }
}

.jnisse-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  width: 100%;
  max-width: 440px;
}

.jnisse-result-actions .button {
  flex: 1 1 190px;
  justify-content: center;
}

@media (max-width: 720px) {
  .jnisse-shuffler-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   ROUND 8 — 5-SLIDE "LAV DIN EGEN NISSE" MODAL WIZARD
   ========================================================================== */

/* Compact Launch Card on /juleshow-2026/ */
.jnisse-launch-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: clamp(20px, 3.4vw, 38px);
  padding: clamp(22px, 3.6vw, 34px);
  align-items: center;
}

.jnisse-launch-visual {
  display: grid;
  place-items: center;
}

.jnisse-launch-visual img {
  width: 150px;
  height: auto;
  border-radius: 18px;
  background: radial-gradient(circle, rgba(255, 240, 200, 0.2), transparent 72%);
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.55));
}

.jnisse-launch-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.jnisse-launch-copy h3 {
  margin: 0;
  font-size: clamp(1.25rem, 2.3vw, 1.75rem);
  color: #fff9ec;
}

.jnisse-launch-copy p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.62;
  color: rgba(255, 244, 224, 0.88);
  max-width: 620px;
}

.jnisse-launch-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 4px;
}

.jnisse-launch-actions small {
  font-size: 0.78rem;
  color: rgba(255, 232, 166, 0.78);
}

/* Modal Dialog */
.nisse-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(10, 3, 7, 0.84);
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  padding: 14px;
}

.nisse-modal-backdrop[hidden] {
  display: none !important;
}

.nm-dialog {
  width: 100%;
  max-width: 580px;
  max-height: 94vh;
  border-radius: 24px;
  border: 1.5px solid rgba(255, 209, 102, 0.55);
  background:
    radial-gradient(circle at 18% 0%, rgba(225, 29, 56, 0.26), transparent 55%),
    radial-gradient(circle at 86% 100%, rgba(20, 105, 58, 0.24), transparent 58%),
    linear-gradient(170deg, #2b0b15 0%, #170910 55%, #112219 100%);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.78),
    0 0 40px rgba(255, 209, 102, 0.16);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.nm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 209, 102, 0.22);
}

.nm-dots {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nm-dots i {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: rgba(255, 232, 166, 0.25);
  transition: all 0.28s var(--ease-out-expo);
}

.nm-dots i.is-active {
  width: 22px;
  background: #ffd166;
  box-shadow: 0 0 10px rgba(255, 209, 102, 0.75);
}

.nm-dots i.is-done {
  background: rgba(255, 209, 102, 0.68);
}

.nm-step-badge {
  font: 700 0.75rem var(--xmas-font-body);
  color: #ffe8a6;
  letter-spacing: 0.05em;
}

.nm-close-x {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 209, 102, 0.35);
  background: rgba(255, 255, 255, 0.06);
  color: #fff9ec;
  font-size: 0.95rem;
  cursor: pointer;
}

.nm-viewport {
  flex: 1 1 auto;
  overflow-x: hidden;
  overflow-y: auto;
}

.nm-track {
  display: flex;
  width: 100%;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.nm-slide {
  flex: 0 0 100%;
  width: 100%;
  padding: 20px 22px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.nm-title {
  margin: 0;
  font-family: var(--xmas-font-display);
  font-size: clamp(1.25rem, 3.6vw, 1.7rem);
  color: #ffe8a6;
}

.nm-desc {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(255, 244, 224, 0.88);
  max-width: 440px;
}

/* Slide 1 Silhouette */
.nm-silhouette-stage {
  display: grid;
  place-items: center;
  margin: 4px 0;
}

.nm-silhouette-svg {
  filter: drop-shadow(0 0 18px rgba(255, 183, 50, 0.28));
}

.nm-slide1-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 320px;
}

.nm-big-btn {
  width: 100%;
  justify-content: center;
  padding: 14px 20px;
  font-size: 0.98rem;
}

.nm-upload-alt {
  font-size: 0.82rem;
  font-weight: 600;
  color: #ffe8a6;
  cursor: pointer;
  text-decoration: underline;
  opacity: 0.9;
}

.nm-upload-alt input { display: none; }

.nm-twitch-user-bar {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(185, 138, 255, 0.55);
  background: rgba(145, 70, 255, 0.18);
  max-width: 100%;
}

.nm-twitch-user-bar[hidden] { display: none !important; }

.nm-twitch-user-bar img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #ffd166;
}

.nm-twitch-user-meta {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.2;
}

.nm-twitch-user-meta strong {
  font-size: 0.82rem;
  color: #fff9ec;
}

.nm-twitch-user-meta small {
  font-size: 0.68rem;
  color: #ffe8a6;
}

.nm-twitch-logout {
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.28);
  color: #fff9ec;
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
}

.nm-slide1-actions[hidden] { display: none !important; }

/* Slide 2 Camera + 5-second Countdown */
.nm-cam-wrap {
  position: relative;
  width: 100%;
  max-width: 300px;
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid rgba(255, 209, 102, 0.6);
  background: #090407;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
}

.nm-cam-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}

.nm-cam-oval {
  position: absolute;
  inset: 12% 18%;
  border-radius: 50%;
  border: 3px dashed #ffb732;
  box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.34);
  pointer-events: none;
}

.nm-countdown-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--xmas-font-display);
  font-size: 4.5rem;
  font-weight: 900;
  color: #ffe8a6;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.85), 0 0 24px rgba(255, 183, 50, 0.9);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nm-countdown-overlay.is-active {
  opacity: 1;
  animation: nm-count-pulse 0.95s ease-out infinite;
}

@keyframes nm-count-pulse {
  0% { transform: scale(1.22); }
  100% { transform: scale(0.95); }
}

/* Full-screen camera blitz flash (lights up entire viewport when selfie snaps) */
.nm-screen-flash {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #ffffff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.36s ease-out;
}

.nm-screen-flash.is-flash {
  opacity: 1;
  transition: opacity 0.05s ease-in;
}

/* Slide 3: Centered Preview + Zoom Slider + Mand/Kvinde + Consent at bottom */
.nm-slide-crop {
  justify-content: flex-start;
  gap: 14px;
}

.nm-crop-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

.nm-crop-stage {
  width: min(260px, 58vw);
  height: min(260px, 58vw);
}

.nm-zoom-slider-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 300px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 209, 102, 0.3);
  background: rgba(12, 5, 9, 0.5);
}

.nm-zoom-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: #ffe8a6;
  white-space: nowrap;
}

.nm-zoom-slider-wrap input[type="range"] {
  flex: 1 1 auto;
  accent-color: #ffd166;
  cursor: pointer;
}

.nm-gender-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
  max-width: 340px;
  margin-top: 2px;
}

.nm-consent-box {
  width: 100%;
  margin-top: auto;
  text-align: left;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 209, 102, 0.3);
  background: rgba(12, 5, 9, 0.62);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Slide 4: 3 Side-by-Side Shufflers (Balanced & Auto-starting!) */
.nm-slide-roulette {
  justify-content: center;
  gap: 20px;
  padding: 28px 22px 24px;
}

.nm-shuffler-row {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.nm-sbox {
  min-height: 146px;
  padding: 16px 8px;
  border-radius: 16px;
}

.nm-sbox .ns-kicker {
  font-size: 0.62rem;
}

.nm-sbox .ns-icon {
  font-size: 2.1rem;
}

.nm-sbox .ns-name {
  font-size: 0.82rem;
  line-height: 1.25;
}

.nm-sbox .ns-sub {
  font-size: 0.68rem;
  line-height: 1.25;
}

.nm-gen-loader {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  background: rgba(255, 209, 102, 0.14);
  border: 1px solid rgba(255, 209, 102, 0.45);
  font: 700 0.85rem var(--xmas-font-body);
  color: #ffe8a6;
}

.nm-gen-loader[hidden] { display: none; }

.nm-spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 209, 102, 0.25);
  border-top-color: #ffd166;
  animation: nm-spin 0.8s linear infinite;
}

@keyframes nm-spin {
  to { transform: rotate(360deg); }
}

/* Slide 5: Result Showcase fitted cleanly inside modal + Cute Share Icons */
.nm-slide-result {
  gap: 10px;
  padding-top: 14px;
}

.nm-res-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nm-res-tags {
  font-size: 0.74rem;
  color: rgba(255, 232, 166, 0.82);
}

.nm-canvas-stage {
  position: relative;
  width: auto;
  height: min(46vh, 390px);
  aspect-ratio: 2 / 3;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 18px;
  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.7),
    0 0 28px rgba(255, 209, 102, 0.26);
}

.nm-canvas-stage #nisse-result-canvas {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 18px;
}

.nm-canvas-stage .nisse-magic-pen {
  width: 64px;
  height: 64px;
  transform: translate(-3px, -60px) rotate(-6deg);
}

.nm-share-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 6px;
}

.nm-icon-btn {
  width: 72px;
  height: 60px;
  border-radius: 16px;
  border: 1.5px solid rgba(255, 209, 102, 0.36);
  background: rgba(255, 255, 255, 0.06);
  color: #fff9ec;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.nm-icon-btn span {
  font-size: 1.2rem;
  line-height: 1;
}

.nm-icon-btn small {
  font: 700 0.62rem var(--xmas-font-body);
  color: #ffe8a6;
}

.nm-icon-btn:hover {
  transform: translateY(-2px);
  border-color: #ffd166;
  background: rgba(255, 209, 102, 0.16);
}

.nm-icon-save {
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.28), rgba(225, 29, 56, 0.28));
  border-color: #ffd166;
}

.nm-icon-share {
  background: linear-gradient(135deg, rgba(145, 70, 255, 0.38), rgba(119, 44, 232, 0.32));
  border-color: rgba(185, 138, 255, 0.7);
}

.nm-inline-msg {
  margin: 0;
  font-size: 0.78rem;
  color: #ffe8a6;
  min-height: 18px;
}

/* Bottom Navigation Bar (Twitch Logout / Prev on left; Next / Luk on right) */
.nm-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  border-top: 1px solid rgba(255, 209, 102, 0.22);
  background: rgba(12, 5, 9, 0.65);
}

.nm-footer-left,
.nm-footer-right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nm-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1.5px solid rgba(255, 209, 102, 0.45);
  background: rgba(255, 255, 255, 0.06);
  color: #ffe8a6;
  font: 700 0.86rem var(--xmas-font-body);
  cursor: pointer;
  transition: all 0.2s ease;
}

.nm-nav-btn[hidden] { display: none !important; }
.nm-nav-btn:disabled { opacity: 0.32; cursor: not-allowed; }

.nm-next-btn,
.nm-done-close-btn {
  background: linear-gradient(135deg, #d91e36, #9e1124);
  color: #fff9ec;
  border-color: rgba(255, 209, 102, 0.72);
}

.nm-twitch-footer-btn img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 232, 166, 0.85);
}

.nm-twitch-footer-btn img[hidden] {
  display: none !important;
}

.nm-twitch-logout-sep {
  opacity: 0.88;
  font-weight: 600;
}

@media (max-width: 720px) {
  .jnisse-launch-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .jnisse-launch-copy {
    align-items: center;
  }

  .jnisse-launch-actions {
    justify-content: center;
  }

  .nm-slide {
    padding: 16px 14px 12px;
  }

  .nm-icon-btn {
    width: 50px;
    height: 50px;
    border-radius: 14px;
  }
}









/* ==========================================================================
   HERO CARD CAROUSEL — ÅRETS JULESPONSORER (3D Coverflow + Golden Shimmer)
   ========================================================================== */
.jsponsor-carousel-wrap {
  margin-top: clamp(32px, 4.5vw, 52px);
  padding: clamp(20px, 2.8vw, 30px) clamp(14px, 2.5vw, 28px) clamp(22px, 2.8vw, 28px);
  border-radius: 24px;
  border: 1.5px solid rgba(255, 209, 102, 0.34);
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(225, 29, 56, 0.2), transparent 65%),
    radial-gradient(ellipse 70% 60% at 50% 100%, rgba(20, 105, 58, 0.2), transparent 65%),
    linear-gradient(170deg, rgba(35, 10, 19, 0.84) 0%, rgba(18, 7, 13, 0.88) 100%);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.52),
    inset 0 1px 0 rgba(255, 232, 166, 0.2);
  position: relative;
  overflow: hidden;
}

.jsponsor-head {
  text-align: center;
  margin-bottom: clamp(16px, 2.2vw, 24px);
}

.jsponsor-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 209, 102, 0.42);
  background: rgba(130, 18, 38, 0.45);
  color: #ffe8a6;
  font: 700 0.72rem var(--mono, monospace);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.jsponsor-sub {
  margin: 8px 0 0;
  font-size: 0.9rem;
  color: rgba(255, 242, 218, 0.82);
}

.jsponsor-stage-outer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.jsponsor-stage {
  position: relative;
  width: 100%;
  max-width: 1060px;
  aspect-ratio: 16 / 6.2;
  min-height: 230px;
  perspective: 1400px;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  touch-action: pan-y;
}

.jsponsor-card {
  position: absolute;
  width: min(68%, 680px);
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid rgba(255, 209, 102, 0.48);
  background: #1a060b;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.65);
  text-decoration: none;
  transition:
    transform 0.72s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.62s ease,
    filter 0.62s ease,
    border-color 0.4s ease,
    box-shadow 0.4s ease;
  will-change: transform, opacity;
}

.jsponsor-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* Active center hero card */
.jsponsor-card.is-active {
  z-index: 6;
  opacity: 1;
  transform: translateX(0) scale(1);
  filter: brightness(1) saturate(1.04);
  border-color: rgba(255, 214, 112, 0.92);
  box-shadow:
    0 28px 66px rgba(0, 0, 0, 0.75),
    0 0 36px rgba(255, 209, 102, 0.28);
  cursor: pointer;
}

.jsponsor-card.is-active:hover {
  transform: translateY(-4px) scale(1.015);
  box-shadow:
    0 34px 72px rgba(0, 0, 0, 0.8),
    0 0 46px rgba(255, 209, 102, 0.42);
}

/* Left & right 3D angled side cards (no negative translateZ so Safari keeps them 100% clickable!) */
.jsponsor-card.is-prev {
  z-index: 3;
  opacity: 0.5;
  transform: translateX(-44%) scale(0.78) rotateY(16deg);
  filter: brightness(0.7) blur(0.4px);
  cursor: pointer;
}

.jsponsor-card.is-next {
  z-index: 3;
  opacity: 0.5;
  transform: translateX(44%) scale(0.78) rotateY(-16deg);
  filter: brightness(0.7) blur(0.4px);
  cursor: pointer;
}

.jsponsor-card.is-prev:hover,
.jsponsor-card.is-next:hover {
  opacity: 0.78;
  filter: brightness(0.9) blur(0);
}

.jsponsor-card.is-hidden {
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  transform: translateX(0) scale(0.66);
}

/* Golden shimmer sweep on active slide enter */
.jsponsor-shimmer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 20%,
    rgba(255, 240, 185, 0.28) 48%,
    rgba(255, 255, 255, 0.16) 52%,
    transparent 76%
  );
  transform: translateX(-130%);
  opacity: 0;
}

.jsponsor-card.is-active .jsponsor-shimmer {
  animation: jsponsor-sweep 1.25s cubic-bezier(0.22, 1, 0.36, 1) 0.15s 1;
}

@keyframes jsponsor-sweep {
  0% { transform: translateX(-130%); opacity: 0; }
  18% { opacity: 1; }
  100% { transform: translateX(130%); opacity: 0; }
}

/* Subtle hover visit pill in bottom-right of active card */
.jsponsor-visit-pill {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 4;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(16, 6, 11, 0.9);
  border: 1px solid rgba(255, 209, 102, 0.72);
  color: #ffe8a6;
  font: 700 0.74rem var(--xmas-font-body, sans-serif);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.jsponsor-card.is-active:hover .jsponsor-visit-pill {
  opacity: 1;
  transform: translateY(0);
}

/* Golden auto-advance progress bar along bottom edge of active card */
.jsponsor-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3.5px;
  background: rgba(255, 255, 255, 0.14);
  z-index: 4;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.jsponsor-card.is-active .jsponsor-progress {
  opacity: 1;
}

.jsponsor-progress i {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ffd166, #fff3b8, #f2b705);
  box-shadow: 0 0 10px rgba(255, 209, 102, 0.85);
}

.jsponsor-card.is-active .jsponsor-progress i {
  animation: jsponsor-prog 5.5s linear forwards;
}

.jsponsor-carousel-wrap.is-paused .jsponsor-card.is-active .jsponsor-progress i {
  animation-play-state: paused;
}

@keyframes jsponsor-prog {
  from { width: 0%; }
  to { width: 100%; }
}

/* Left / Right Navigation Arrows */
.jsponsor-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 209, 102, 0.6);
  background: rgba(24, 7, 14, 0.92);
  color: #ffe8a6;
  font-size: 1.7rem;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.55);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.jsponsor-arrow:hover {
  background: linear-gradient(135deg, #d91e36, #9e1124);
  border-color: #ffd166;
  color: #fff9ec;
  transform: translateY(-50%) scale(1.08);
}

.jsponsor-prev { left: 8px; }
.jsponsor-next { right: 8px; }

/* Interactive Sponsor Name Pills below carousel */
.jsponsor-pills {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: clamp(16px, 2vw, 22px);
}

.jsponsor-pill {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 209, 102, 0.3);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 240, 212, 0.82);
  font: 700 0.78rem var(--xmas-font-body, sans-serif);
  cursor: pointer;
  transition: all 0.24s ease;
}

.jsponsor-pill:hover {
  border-color: rgba(255, 209, 102, 0.72);
  color: #fff9ec;
  background: rgba(255, 209, 102, 0.14);
}

.jsponsor-pill.is-active {
  background: linear-gradient(135deg, #d91e36, #9e1124);
  border-color: #ffd166;
  color: #fff9ec;
  box-shadow: 0 6px 20px rgba(217, 30, 54, 0.4);
}

@media (max-width: 780px) {
  .jsponsor-stage {
    aspect-ratio: 16 / 9.2;
    min-height: 195px;
  }

  .jsponsor-card {
    width: 100%;
    border-radius: 16px;
  }

  .jsponsor-card.is-prev {
    transform: translate3d(-104%, 0, -100px) scale(0.88);
    opacity: 0;
    pointer-events: none;
  }

  .jsponsor-card.is-next {
    transform: translate3d(104%, 0, -100px) scale(0.88);
    opacity: 0;
    pointer-events: none;
  }

  .jsponsor-arrow {
    width: 36px;
    height: 36px;
    font-size: 1.4rem;
  }

  .jsponsor-prev { left: 6px; }
  .jsponsor-next { right: 6px; }
}

/* ==========================================================================
   COMPACT LAYOUT OVERHAUL (Punkt 1, 2, 4, 5):
   - Compact Sponsor Carousel + Tighter Section Spacing
   - 2-Column Side-by-Side Jule-Værksted (Nissificer + Julepostkort Modal)
   - 4-Tab "Alt om Juleshowet" Hub
   - Julepostkort Modal Dialog
   ========================================================================== */

/* 4. Slankere Sponsor Carousel */
.jsponsor-carousel-wrap {
  margin-top: clamp(22px, 3vw, 34px);
  padding: clamp(14px, 2vw, 20px) clamp(12px, 2vw, 22px) clamp(16px, 2vw, 20px);
}

.jsponsor-head {
  margin-bottom: 14px;
}

.jsponsor-stage {
  max-width: 880px;
  aspect-ratio: 16 / 5.2;
  min-height: 195px;
}

.jsponsor-card {
  width: min(62%, 540px);
}

.jsponsor-pills {
  margin-top: 12px;
}

/* 5. Mindre vertikal luft mellem sektioner */
.jsection {
  padding-top: clamp(28px, 3.8vw, 48px) !important;
  padding-bottom: clamp(20px, 3vw, 36px) !important;
}

.jsection-header-compact {
  margin-bottom: clamp(18px, 2.5vw, 26px);
}

.jsection-header-compact h2 {
  margin-bottom: 0;
}

.stardust-divider {
  margin-bottom: clamp(18px, 2.4vw, 28px) !important;
}

/* 2. Side-by-Side Jule-Værksted (Nissificer mig! + Send et Julepostkort) */
.jworkshop-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.2vw, 24px);
}

.jworkshop-card {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 20px 22px;
  border-radius: 22px;
  border: 1.5px solid rgba(255, 209, 102, 0.36);
  background:
    radial-gradient(circle at 0% 0%, rgba(225, 29, 56, 0.18), transparent 60%),
    linear-gradient(165deg, rgba(36, 11, 20, 0.86) 0%, rgba(16, 7, 13, 0.92) 100%);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.45);
}

.jworkshop-visual {
  display: grid;
  place-items: center;
}

.jworkshop-visual img {
  width: 114px;
  height: auto;
  aspect-ratio: 253 / 380;
  border-radius: 16px;
  border: 1.5px solid rgba(255, 209, 102, 0.55);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.5);
  display: block;
}

.jworkshop-postcard-thumb svg {
  display: block;
}

.jpc-mini-card {
  position: relative;
  width: 110px;
  height: 138px;
  border-radius: 12px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.52);
}

.jpc-mini-title {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 72px;
  text-align: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #ffe8a6;
  pointer-events: none;
}

.jpc-mini-sub {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 13px;
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, "Plus Jakarta Sans", sans-serif;
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #ffd166;
  pointer-events: none;
}

.xmas-inline-svg {
  display: inline-block;
  vertical-align: -0.14em;
  flex-shrink: 0;
}

/* Safari/WebKit FontCascade::drawGlyphBuffer protection:
   Isolates Color Emoji glyphs into their own clean Apple Color Emoji run so they NEVER share
   a GlyphBuffer with custom Google Fonts (Cinzel Decorative / Plus Jakarta Sans) or text-shadow. */
.xmas-emoji {
  display: inline-block;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif !important;
  font-style: normal !important;
  font-weight: 400 !important;
  line-height: 1;
  text-shadow: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  -webkit-text-fill-color: initial !important;
  color: initial !important;
  vertical-align: -0.06em;
}

.jworkshop-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  text-align: left;
}

.jworkshop-copy h3 {
  margin: 0;
  font-family: var(--xmas-font-display, Georgia, serif);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  color: #ffe8a6;
}

.jworkshop-copy p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: rgba(255, 242, 220, 0.86);
}

.jworkshop-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-top: 4px;
}

.jworkshop-actions small {
  font-size: 0.72rem;
  color: rgba(255, 232, 166, 0.74);
}

/* 1. Interaktiv 4-Faners Hub ("Alt om Juleshowet") */
.jhub-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.jhub-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 209, 102, 0.34);
  background: rgba(25, 8, 15, 0.72);
  color: rgba(255, 240, 212, 0.86);
  font: 700 0.86rem var(--xmas-font-body, sans-serif);
  cursor: pointer;
  transition: all 0.24s ease;
}

.jhub-tab:hover {
  border-color: rgba(255, 209, 102, 0.78);
  color: #fff9ec;
  background: rgba(255, 209, 102, 0.14);
  transform: translateY(-1px);
}

.jhub-tab.is-active {
  background: linear-gradient(135deg, #d91e36, #9e1124);
  border-color: #ffd166;
  color: #fff9ec;
  box-shadow: 0 8px 24px rgba(217, 30, 54, 0.42), 0 0 18px rgba(255, 209, 102, 0.22);
}

.jhub-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: jhub-fade 0.32s ease;
}

.jhub-panel[hidden] {
  display: none !important;
}

@keyframes jhub-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* 2b. Julepostkort Modal */
.jpc-modal-dialog {
  max-width: 980px !important;
}

.jpc-modal-body {
  padding: 18px 20px 22px !important;
}

.jpostcard-studio-modal {
  margin: 0 !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}

@media (max-width: 920px) {
  .jworkshop-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .jworkshop-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 18px 16px;
  }

  .jworkshop-copy,
  .jworkshop-actions {
    align-items: center;
    text-align: center;
  }

  .jhub-tab {
    padding: 9px 14px;
    font-size: 0.78rem;
  }
}

/* ==========================================================================
   INTEGRATED SPONSOR CAROUSEL INSIDE HERO COUNTDOWN CARD (Mulighed A)
   ========================================================================== */
.jhero-card .jcountdown {
  padding-top: 14px !important;
  padding-bottom: 14px !important;
}

.jcountdown-head-below {
  display: flex;
  justify-content: center !important;
  align-items: center;
  text-align: center;
  margin-top: 10px !important;
  margin-bottom: 0 !important;
}

.jcountdown-head-below .jcountdown-label {
  text-align: center;
}

.jhero-card .jcountdown-status {
  margin-top: 6px !important;
  font-size: 0.78rem !important;
  text-align: center;
}

.jsponsor-carousel-wrap.jsponsor-in-hero {
  margin: 0;
  padding: 14px 16px 16px;
  border: none;
  border-top: 1px solid rgba(255, 209, 102, 0.24);
  border-radius: 0;
  background:
    radial-gradient(ellipse 80% 70% at 50% 100%, rgba(20, 105, 58, 0.22), transparent 70%),
    linear-gradient(180deg, rgba(16, 6, 12, 0.45) 0%, rgba(12, 19, 14, 0.65) 100%);
  box-shadow: none;
}

.jsponsor-in-hero .jsponsor-head {
  margin-bottom: 10px;
}

.jsponsor-in-hero .jsponsor-eyebrow {
  font-size: clamp(0.54rem, 2.6vw, 0.65rem);
  letter-spacing: clamp(0.04em, 0.35vw, 0.12em);
  padding: 4px 11px;
  white-space: nowrap;
  max-width: 100%;
}

.jsponsor-in-hero .jsponsor-stage {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 0;
  overflow: hidden;
  border-radius: 14px;
}

.jsponsor-in-hero .jsponsor-card {
  width: 100%;
  height: 100%;
  padding: 0;
  border-radius: 14px;
  border-width: 1.5px;
}

.jsponsor-in-hero .jsponsor-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.jsponsor-in-hero .jsponsor-card.is-active {
  transform: translateX(0) scale(1);
  opacity: 1;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
}

.jsponsor-in-hero .jsponsor-card.is-active:hover {
  transform: scale(1.015);
}

.jsponsor-in-hero .jsponsor-card.is-prev {
  transform: translateX(-104%) scale(0.94);
  opacity: 0;
  pointer-events: none;
}

.jsponsor-in-hero .jsponsor-card.is-next {
  transform: translateX(104%) scale(0.94);
  opacity: 0;
  pointer-events: none;
}

.jsponsor-in-hero .jsponsor-card.is-hidden {
  transform: translateX(0) scale(0.92);
  opacity: 0;
  pointer-events: none;
}

.jsponsor-in-hero .jsponsor-arrow {
  width: 32px;
  height: 32px;
  font-size: 1.3rem;
}

.jsponsor-in-hero .jsponsor-prev { left: 8px; }
.jsponsor-in-hero .jsponsor-next { right: 8px; }

.jsponsor-in-hero .jsponsor-visit-pill {
  right: 10px;
  bottom: 10px;
  padding: 4px 10px;
  font-size: 0.68rem;
}

.jsponsor-in-hero .jsponsor-pills {
  margin-top: 10px;
  gap: 6px;
}

.jsponsor-in-hero .jsponsor-pill {
  padding: 5px 10px;
  font-size: 0.7rem;
}

/* ==========================================================================
   COMPACT 2-CARD INFO ROW (FAQ MODAL + KONKURRENCEVILKÅR MODAL)
   ========================================================================== */
.jinfo-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.2vw, 24px);
}

.jinfo-modal-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  border-radius: 22px;
  border: 1.5px solid rgba(255, 209, 102, 0.34);
  background:
    radial-gradient(circle at 0% 0%, rgba(225, 29, 56, 0.16), transparent 60%),
    linear-gradient(165deg, rgba(34, 10, 19, 0.86) 0%, rgba(16, 7, 13, 0.92) 100%);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42);
}

.jinfo-modal-top h2 {
  margin: 6px 0 8px;
  font-family: var(--xmas-font-display, Georgia, serif);
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  color: #ffe8a6;
}

.jinfo-modal-desc {
  margin: 0 0 12px;
  font-size: 0.86rem;
  line-height: 1.5;
  color: rgba(255, 242, 220, 0.84);
}

.jfaq-preview-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.jfaq-chip {
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 209, 102, 0.34);
  background: rgba(255, 255, 255, 0.06);
  color: #ffe8a6;
  font: 600 0.74rem var(--xmas-font-body, sans-serif);
  cursor: pointer;
  transition: all 0.2s ease;
}

.jfaq-chip:hover {
  background: rgba(255, 209, 102, 0.18);
  border-color: #ffd166;
  color: #fff9ec;
  transform: translateY(-1px);
}

.jinfo-modal-action {
  display: flex;
  align-items: center;
  gap: 10px;
}

.jfaq-modal-dialog {
  max-width: 740px !important;
}

@media (max-width: 820px) {
  .jinfo-cards-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   UNIFORM VERTICAL RHYTHM ACROSS ALL SECTIONS
   ========================================================================== */
body.juleshow-page .jhero {
  padding-bottom: clamp(28px, 3.6vw, 44px) !important;
}

body.juleshow-page .jsection {
  padding-top: clamp(28px, 3.6vw, 44px) !important;
  padding-bottom: clamp(28px, 3.6vw, 44px) !important;
}

body.juleshow-page .jbottom-cta {
  padding-top: clamp(28px, 3.6vw, 44px) !important;
  padding-bottom: clamp(44px, 5vw, 68px) !important;
}

body.juleshow-page .jsection-header-compact {
  margin-bottom: clamp(18px, 2.4vw, 26px) !important;
}

/* ==========================================================================
   TRUE 1:1 ROUND 3D GLASS BAUBLES ON TOP GARLAND (matching side-rail baubles)
   ========================================================================== */
.garland-ornaments {
  position: absolute;
  top: 24px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  padding: 0 4vw;
  pointer-events: none;
  z-index: 3;
}

.g-orn {
  position: relative;
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  margin-top: 10px;
  box-shadow:
    inset -3px -4px 6px rgba(0, 0, 0, 0.45),
    inset 3px 3px 5px rgba(255, 255, 255, 0.32),
    0 5px 12px rgba(0, 0, 0, 0.55);
}

/* Thin gold hanging thread + gold crown cap */
.g-orn::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -11px;
  width: 1.5px;
  height: 9px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(255, 209, 102, 0.55), #ffd166);
}

.g-orn::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -4px;
  width: 6px;
  height: 4px;
  border-radius: 1.5px 1.5px 0 0;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #fff2b2, #c98a1c);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.g-orn-crimson {
  background: radial-gradient(circle at 34% 30%, #ff7b90, #d91e36 56%, #6a0918 100%);
  border: 1px solid rgba(255, 196, 178, 0.42);
}

.g-orn-gold {
  background: radial-gradient(circle at 34% 30%, #fff8d6, #f5c95c 54%, #9a600a 100%);
  border: 1px solid rgba(255, 244, 196, 0.55);
}

.g-orn-pine {
  background: radial-gradient(circle at 34% 30%, #7ef0ae, #1f6e43 58%, #092616 100%);
  border: 1px solid rgba(135, 240, 175, 0.45);
}

@media (max-width: 640px) {
  .g-orn {
    width: 14px;
    height: 14px;
  }
}

/* ==========================================================================
   LOCKED HEADER HEIGHT + FLUSH TOP GARLAND (NO HEIGHT JUMP ON SCROLL)
   ========================================================================== */
body.juleshow-page .site-header,
body.juleshow-page .site-header.scrolled {
  height: 72px !important;
}

body.juleshow-page .hanging-garland,
body.juleshow-page .site-header.scrolled + .hanging-garland {
  top: 72px !important;
}

@media (max-width: 760px) {
  body.juleshow-page .site-header,
  body.juleshow-page .site-header.scrolled {
    height: 64px !important;
  }

  body.juleshow-page .hanging-garland,
  body.juleshow-page .site-header.scrolled + .hanging-garland {
    top: 64px !important;
  }
}


/* =========================================================================
   Safari WebKit Stability & Full Visual Fidelity
   - FontCascade::drawGlyphBuffer crash is eliminated at the root via pure-vector
     SVG ornaments + .xmas-emoji font-run isolation (zero quality downgrade!).
   - Ambient snow & aurora remain active at DPR=1; only redundant will-change
     layer promotions are kept restrained to avoid compositor bloat.
   ========================================================================= */
html.is-safari .cursor-snow-canvas {
  display: none !important;
}

html.is-safari *,
html.is-safari *::before,
html.is-safari *::after {
  will-change: auto !important;
}


/* ==========================================================================
   3-STEP "SEND ET JULEPOSTKORT" WIZARD (2026 Upgrade — 20 improvements)
   ========================================================================== */
.jpc-wizard-dialog {
  max-width: 960px;
}

.jpc-wiz-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.jpc-wiz-progress {
  display: flex;
  align-items: center;
  gap: 12px;
}

.jpc-step-badge {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffe8a6;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 209, 102, 0.14);
  border: 1px solid rgba(255, 209, 102, 0.42);
}

.jpc-step-dots {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.jpc-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 209, 102, 0.5);
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.jpc-dot.is-active {
  background: #ffd166;
  border-color: #fff2c2;
  transform: scale(1.22);
  box-shadow: 0 0 10px rgba(255, 209, 102, 0.6);
}

.jpc-wiz-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 24px;
  align-items: start;
}

.jpc-wiz-slides {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.jpc-slide[hidden] {
  display: none !important;
}

.jpc-slide {
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: jpc-slide-in 260ms ease both;
}

@keyframes jpc-slide-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.jpc-slide-heading {
  margin: 0;
  font-family: "Cinzel Decorative", Georgia, serif;
  font-size: 1.08rem;
  color: #ffe8a6;
}

.jpc-slide-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.jpc-mobile-preview-toggle {
  display: none;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 209, 102, 0.48);
  background: rgba(255, 209, 102, 0.14);
  color: #ffe8a6;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

/* 6 Visual Theme Cards */
.jpc-theme-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.jpc-theme-card {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 11px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(255, 209, 102, 0.24);
  color: #fff9ec;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.18s ease;
}

.jpc-theme-card:hover {
  background: rgba(255, 209, 102, 0.12);
  border-color: rgba(255, 209, 102, 0.65);
  transform: translateY(-1px);
}

.jpc-theme-card.is-active {
  background: rgba(255, 209, 102, 0.18);
  border-color: #ffd166;
  box-shadow: 0 0 14px rgba(255, 209, 102, 0.25);
}

.jpc-swatch {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1.5px solid rgba(255, 245, 215, 0.72);
}

.jpc-swatch.is-crimson   { background: linear-gradient(135deg, #b81932, #3e0814); }
.jpc-swatch.is-aurora    { background: linear-gradient(135deg, #22a87e, #1a0b29); }
.jpc-swatch.is-pine      { background: linear-gradient(135deg, #1f6e43, #091f13); }
.jpc-swatch.is-parchment { background: linear-gradient(135deg, #faf1dc, #c9a66b); }
.jpc-swatch.is-starry    { background: linear-gradient(135deg, #1e3b7a, #070d21); }
.jpc-swatch.is-gold      { background: linear-gradient(135deg, #f0c969, #54370e); }

.jpc-option-block {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.jpc-option-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255, 240, 204, 0.8);
}

.jpc-seg-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.jpc-seg-btn {
  padding: 9px 12px;
  border-radius: 10px;
  border: 1.5px solid rgba(255, 209, 102, 0.28);
  background: rgba(255, 255, 255, 0.05);
  color: #fff9ec;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.jpc-seg-btn.is-active {
  background: rgba(255, 209, 102, 0.2);
  border-color: #ffd166;
  color: #ffe8a6;
}

.jpc-nisse-bridge {
  padding: 11px 13px;
  border-radius: 12px;
  background: rgba(255, 209, 102, 0.08);
  border: 1px dashed rgba(255, 209, 102, 0.42);
}

.jpc-check-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.84rem;
  color: rgba(255, 249, 236, 0.92);
  cursor: pointer;
  line-height: 1.38;
}

.jpc-check-row[hidden],
.jpc-nisse-hint[hidden] {
  display: none !important;
}

.jpc-check-row input[type="checkbox"] {
  margin-top: 2px;
  accent-color: #ffd166;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.jpc-nisse-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.82rem;
  color: rgba(255, 249, 236, 0.82);
}

.jpc-link-btn {
  background: none;
  border: 0;
  padding: 0;
  color: #ffd166;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  text-decoration: underline;
}

/* Step 2: Presets, Closing pills & Char counter */
.jpc-presets-row,
.jpc-closing-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.jpc-preset-pill,
.jpc-closing-pill {
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 209, 102, 0.34);
  background: rgba(255, 255, 255, 0.06);
  color: #fff6dc;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease;
}

.jpc-preset-pill:hover,
.jpc-closing-pill:hover {
  background: rgba(255, 209, 102, 0.18);
  border-color: #ffd166;
}

.jpc-closing-pill.is-active {
  background: rgba(255, 209, 102, 0.24);
  border-color: #ffd166;
  color: #ffe8a6;
}

.jpc-field-label-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.jpc-char-count {
  font-family: "DM Mono", monospace;
  font-size: 0.75rem;
  color: rgba(255, 232, 166, 0.75);
}

.jpc-char-count.is-near-max {
  color: #ff9aa8;
}

.jpc-seal-toggle {
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(185, 20, 42, 0.16);
  border: 1px solid rgba(255, 209, 102, 0.32);
}

/* Step 3: Calm primary gold button + round icon buttons + QR panel */
.jpc-primary-share-btn {
  width: 100%;
  padding: 14px 18px !important;
  font-size: 0.98rem !important;
  justify-content: center;
}

.jpc-icon-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.jpc-icon-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 72px;
  height: 68px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 209, 102, 0.32);
  color: #ffe8a6;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.jpc-icon-btn[hidden] {
  display: none !important;
}

.jpc-icon-btn:hover {
  background: rgba(255, 209, 102, 0.16);
  border-color: #ffd166;
  transform: translateY(-2px);
}

.jpc-qr-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(15, 7, 10, 0.7);
  border: 1px solid rgba(255, 209, 102, 0.42);
  text-align: center;
}

.jpc-qr-panel[hidden] {
  display: none !important;
}

.jpc-qr-panel img {
  border-radius: 10px;
  border: 3px solid #ffd166;
  background: #fff8e8;
}

.jpc-qr-panel p {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(255, 249, 236, 0.85);
}

.jpc-status-clean {
  min-height: 1.2em;
  margin: 2px 0 0;
  text-align: center;
  font-size: 0.84rem;
  color: #bdf7d6;
}

/* Preview Card Tilt (#13) & Envelope Reveal (#10) */
.jpc-card-tilt {
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  display: flex;
  justify-content: center;
}

.jpc-card-tilt.is-revealed {
  animation: jpc-envelope-pop 560ms cubic-bezier(0.22, 1.18, 0.36, 1) both;
}

@keyframes jpc-envelope-pop {
  0%   { opacity: 0.45; transform: translateY(28px) scale(0.94); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

#postcard-canvas.is-story {
  max-height: 490px;
  width: auto !important;
  margin: 0 auto;
}

/* Wizard Footer */
.jpc-wiz-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 24px 18px;
  border-top: 1px solid rgba(255, 209, 102, 0.22);
}

.jpc-wiz-footer-spacer {
  flex: 1;
}

.jpc-nav-btn[hidden] {
  display: none !important;
}

.jpc-nav-btn.is-back,
.jpc-nav-btn.is-done {
  padding: 10px 18px;
  border-radius: 12px;
  border: 1.5px solid rgba(255, 209, 102, 0.42);
  background: rgba(255, 255, 255, 0.06);
  color: #fff6dc;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
}

.jpc-nav-btn.is-back:hover,
.jpc-nav-btn.is-done:hover {
  background: rgba(255, 209, 102, 0.16);
}

@media (max-width: 820px) {
  .jpc-wiz-layout {
    grid-template-columns: 1fr;
  }
  .jpc-wiz-layout[data-step="1"] .jpc-mobile-preview-toggle {
    display: inline-flex;
  }
  .jpc-wiz-layout[data-step="1"] .jpc-wiz-preview:not(.is-mobile-open) {
    display: none;
  }
  .jpc-theme-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* =========================================================================
   NISSE-KOMMANDOER MODAL (#nisser-modal)
   ========================================================================= */
.jnisser-modal-dialog {
  max-width: 920px;
}

.jnc-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(122, 18, 38, 0.45), rgba(32, 10, 18, 0.78));
  border: 1px solid rgba(255, 209, 102, 0.34);
  flex-wrap: wrap;
}

.jnc-tip-copy {
  flex: 1 1 320px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255, 248, 232, 0.92);
}

.jnc-tip-copy strong {
  color: #ffe299;
}

.jnc-tip-copy code {
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255, 209, 102, 0.14);
  border: 1px solid rgba(255, 209, 102, 0.3);
  color: #ffeaad;
  font-size: 0.85em;
}

.jnc-target-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 210px;
}

.jnc-target-field > span {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffd166;
}

.jnc-target-input-wrap {
  display: flex;
  align-items: center;
  border-radius: 10px;
  border: 1.5px solid rgba(255, 209, 102, 0.44);
  background: rgba(12, 6, 10, 0.65);
  padding: 0 10px;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.jnc-target-input-wrap:focus-within {
  border-color: #ffd166;
  box-shadow: 0 0 0 3px rgba(255, 209, 102, 0.16);
}

.jnc-at {
  color: #ffd166;
  font-weight: 800;
  margin-right: 4px;
}

.jnc-target-input-wrap input {
  width: 100%;
  border: 0;
  background: transparent;
  color: #fff9ec;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 8px 0;
  outline: none;
}

.jnc-target-input-wrap input::placeholder {
  color: rgba(255, 240, 210, 0.42);
}

.jnc-elf-bar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
  padding: 11px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 209, 102, 0.2);
}

.jnc-elf-bar-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255, 240, 210, 0.8);
}

.jnc-elf-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.jnc-elf-chip {
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 209, 102, 0.34);
  background: rgba(255, 209, 102, 0.08);
  color: #fff6e0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 120ms ease;
}

.jnc-elf-chip:hover {
  background: rgba(255, 209, 102, 0.22);
  border-color: rgba(255, 209, 102, 0.72);
  transform: translateY(-1px);
}

.jnc-elf-chip.is-active,
.jnc-elf-chip.is-copied {
  background: linear-gradient(135deg, #ffd166, #d9992b);
  border-color: #ffeaad;
  color: #24080e;
  box-shadow: 0 3px 12px rgba(255, 209, 102, 0.26);
}

.jnc-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.jnc-filter-pill {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 209, 102, 0.32);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 245, 224, 0.85);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 140ms ease;
}

.jnc-filter-pill:hover {
  background: rgba(255, 209, 102, 0.14);
  border-color: rgba(255, 209, 102, 0.6);
  color: #fff9ec;
}

.jnc-filter-pill.is-active {
  background: linear-gradient(135deg, #ffd166, #d9992b);
  border-color: #ffeaad;
  color: #24080e;
  box-shadow: 0 4px 16px rgba(255, 209, 102, 0.25);
}

.jnc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.jnc-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  padding: 13px 15px;
  border-radius: 13px;
  border: 1px solid rgba(255, 209, 102, 0.24);
  background: linear-gradient(145deg, rgba(64, 14, 28, 0.52), rgba(22, 8, 14, 0.78));
  color: #fff9ec;
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.jnc-card[hidden] {
  display: none !important;
}

.jnc-card-wide {
  grid-column: 1 / -1;
}

.jnc-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 209, 102, 0.65);
  background: linear-gradient(145deg, rgba(92, 18, 38, 0.66), rgba(30, 10, 18, 0.86));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.jnc-card.is-copied {
  border-color: #5ee6a0;
  box-shadow: 0 0 0 2px rgba(94, 230, 160, 0.22);
}

.jnc-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.jnc-cmd {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.96rem;
  font-weight: 800;
  color: #ffe39b;
  letter-spacing: 0.01em;
}

.jnc-copy-pill {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 209, 102, 0.14);
  border: 1px solid rgba(255, 209, 102, 0.35);
  color: #ffe8a6;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.jnc-card.is-copied .jnc-copy-pill {
  background: rgba(46, 186, 114, 0.28);
  border-color: rgba(94, 230, 160, 0.72);
  color: #c8ffe1;
}

.jnc-desc {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.42;
  color: rgba(255, 246, 230, 0.88);
}

.jnc-desc code {
  padding: 1px 5px;
  border-radius: 5px;
  background: rgba(255, 209, 102, 0.12);
  color: #ffe39b;
  font-size: 0.84em;
}

.jnc-aliases {
  font-size: 0.74rem;
  color: rgba(255, 224, 162, 0.62);
}

.jnc-footer-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 720px) {
  .jnc-grid {
    grid-template-columns: 1fr;
  }
  .jnc-card-wide {
    grid-column: auto;
  }
}

/* =========================================================================
   JULEMANDENS BOG MODAL (#julebogen-modal — Ancient Leather & Parchment)
   ========================================================================= */
.jbook-modal-dialog {
  max-width: 960px;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(118, 36, 48, 0.42), transparent 56%),
    radial-gradient(ellipse at 85% 100%, rgba(28, 12, 8, 0.72), transparent 58%),
    linear-gradient(155deg, #4b151e 0%, #2d0b12 46%, #1b060a 100%);
  border: 2px solid rgba(196, 152, 68, 0.62);
  box-shadow:
    0 34px 80px rgba(0, 0, 0, 0.78),
    inset 0 0 42px rgba(0, 0, 0, 0.56);
}

.jbook-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.jbook-refresh-btn {
  cursor: pointer;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(232, 196, 114, 0.45);
  background: rgba(232, 196, 114, 0.14);
  color: #f6df9d;
  font-size: 0.82rem;
  font-weight: 700;
  transition: background 150ms ease, transform 150ms ease;
}
.jbook-refresh-btn:hover {
  background: rgba(232, 196, 114, 0.28);
  transform: translateY(-1px);
}

.jbook-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.jbook-tabs {
  display: inline-flex;
  gap: 8px;
}

.jbook-tab {
  cursor: pointer;
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid rgba(224, 184, 102, 0.38);
  background: rgba(18, 6, 9, 0.52);
  color: rgba(255, 244, 222, 0.86);
  font-size: 0.86rem;
  font-weight: 700;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}
.jbook-tab:hover {
  border-color: rgba(242, 212, 136, 0.78);
}
.jbook-tab.is-active {
  background: linear-gradient(135deg, #cfa246, #986d1f);
  border-color: #f7df99;
  color: #210e05;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.jbook-meta-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.jbook-date-select {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(224, 184, 102, 0.45);
  background: rgba(18, 6, 9, 0.75);
  color: #f6df9d;
  font-size: 0.82rem;
  font-weight: 600;
}

.jbook-date-pill {
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid rgba(224, 184, 102, 0.42);
  background: rgba(28, 10, 14, 0.65);
  color: #f4d88c;
  font-size: 0.82rem;
  font-weight: 700;
}

.jbook-dec-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 9px 14px;
  border-radius: 10px;
  background: rgba(16, 6, 8, 0.55);
  border: 1px solid rgba(212, 170, 88, 0.34);
  font-size: 0.84rem;
  font-weight: 800;
}
.jbook-dec-bar[hidden] { display: none !important; }
.jbook-dec-bar .is-nice { color: #8af0b8; }
.jbook-dec-bar .is-naughty { color: #ff9ba6; }
.jbook-dec-track {
  flex: 1;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: linear-gradient(90deg, #981e2c, #68101a);
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.5);
}
.jbook-dec-fill {
  height: 100%;
  background: linear-gradient(90deg, #1b663e, #48c983);
  transition: width 450ms ease;
}

/* Open weathered double parchment spread */
.jbook-spread {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.52),
    0 0 0 2px rgba(176, 134, 62, 0.42);
}

.jbook-page {
  position: relative;
  padding: 20px 22px 22px;
  min-height: 300px;
  color: #2b1a10;
  background:
    radial-gradient(circle at 18% 82%, rgba(118, 78, 34, 0.16), transparent 38%),
    radial-gradient(circle at 86% 14%, rgba(102, 66, 28, 0.14), transparent 34%),
    linear-gradient(180deg, #e5d1a6 0%, #d9c08e 52%, #ccb07b 100%);
}

.jbook-page.is-nice {
  box-shadow:
    inset -18px 0 26px rgba(48, 24, 10, 0.28),
    inset 10px 0 18px rgba(82, 50, 20, 0.18);
  border-right: 1px solid rgba(62, 34, 14, 0.35);
}

.jbook-page.is-naughty {
  box-shadow:
    inset 18px 0 26px rgba(48, 24, 10, 0.28),
    inset -10px 0 18px rgba(82, 50, 20, 0.18);
}

.jbook-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 2px solid rgba(98, 62, 26, 0.34);
}

.jbook-page-head h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.24rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}
.jbook-page.is-nice .jbook-page-head h3 { color: #164f30; }
.jbook-page.is-naughty .jbook-page-head h3 { color: #7e1925; }

.jbook-count-pill {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}
.jbook-page.is-nice .jbook-count-pill {
  background: rgba(22, 79, 48, 0.14);
  border: 1px solid rgba(22, 79, 48, 0.35);
  color: #164f30;
}
.jbook-page.is-naughty .jbook-count-pill {
  background: rgba(126, 25, 37, 0.14);
  border: 1px solid rgba(126, 25, 37, 0.35);
  color: #7e1925;
}

.jbook-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.jbook-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  background: rgba(255, 248, 226, 0.42);
  border-bottom: 1px dashed rgba(102, 66, 28, 0.28);
  font-size: 0.92rem;
}

.jbook-row-main {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  flex: 1;
}

.jbook-avatar-wrap {
  position: relative;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid rgba(154, 108, 36, 0.72);
  background: radial-gradient(circle at 35% 30%, #63202d 0%, #300c14 100%);
  box-shadow: 0 1px 4px rgba(42, 22, 8, 0.3);
}

.jbook-avatar-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.78rem;
  font-weight: 800;
  color: #f6df9d;
}

.jbook-avatar {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 220ms ease;
}

.jbook-avatar.is-loaded {
  opacity: 1;
}

.jbook-row-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.jbook-row-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.jbook-row-reason {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 0.8rem;
  line-height: 1.3;
  color: #5b3b1e;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jbook-row-name {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 800;
  color: #24130a;
}

.jbook-badge {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
}
.jbook-badge.is-saint { background: #185c38; color: #f6df9d; }
.jbook-badge.is-rascal { background: #841826; color: #f6df9d; }
.jbook-badge.is-forgiven { background: rgba(24, 92, 56, 0.16); color: #164f30; border: 1px solid rgba(24, 92, 56, 0.32); }
.jbook-badge.is-fallen { background: rgba(132, 24, 38, 0.16); color: #7e1925; border: 1px solid rgba(132, 24, 38, 0.32); }

.jbook-row-score {
  font-size: 0.78rem;
  font-weight: 700;
  color: #5a3c1d;
  white-space: nowrap;
}

.jbook-empty {
  padding: 22px 10px;
  text-align: center;
  font-style: italic;
  font-size: 0.88rem;
  color: #6b4c28;
}

.jbook-guide {
  margin-top: 16px;
  padding: 14px 16px 16px;
  border-radius: 12px;
  background: rgba(18, 6, 9, 0.56);
  border: 1px solid rgba(224, 184, 102, 0.34);
}

.jbook-guide-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.jbook-guide-head h3 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 800;
  color: #f6df9d;
}

.jbook-guide-note {
  font-size: 0.76rem;
  color: rgba(255, 245, 224, 0.72);
}

.jbook-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.jbook-guide-card {
  padding: 11px 12px;
  border-radius: 10px;
  background: rgba(42, 12, 18, 0.58);
  border: 1px solid rgba(224, 184, 102, 0.24);
}

.jbook-guide-step {
  display: inline-block;
  margin-bottom: 5px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(242, 212, 136, 0.16);
  border: 1px solid rgba(242, 212, 136, 0.34);
  color: #f6df9d;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.jbook-guide-card h4 {
  margin: 0 0 6px;
  font-size: 0.88rem;
  font-weight: 800;
  color: #fff6e0;
}

.jbook-guide-card p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.48;
  color: rgba(255, 245, 224, 0.84);
}

.jbook-guide-card code,
.jbook-footer code {
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(242, 212, 136, 0.16);
  color: #f6df9d;
  font-size: 0.92em;
}

@media (max-width: 760px) {
  .jbook-spread {
    grid-template-columns: 1fr;
  }
  .jbook-guide-grid {
    grid-template-columns: 1fr;
  }
  .jbook-page.is-nice {
    border-right: 0;
    border-bottom: 2px solid rgba(62, 34, 14, 0.35);
    box-shadow: inset 0 -10px 18px rgba(48, 24, 10, 0.22);
  }
}

/* =========================================================================
   MODAL: BLIV SPONSOR TIL JULESHOW 2026
   ========================================================================= */
.jhub-tab-sponsor {
  border-color: rgba(255, 209, 102, 0.42);
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.14), rgba(185, 28, 46, 0.18));
}
.jhub-tab-sponsor:hover,
.jhub-tab-sponsor:focus-visible {
  border-color: rgba(255, 209, 102, 0.78);
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.24), rgba(185, 28, 46, 0.28));
}

.jsponsor-cta-wrap {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}

.jsponsor-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 209, 102, 0.36);
  background: rgba(20, 11, 18, 0.65);
  color: rgba(255, 245, 224, 0.92);
  font-size: 0.86rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.jsponsor-cta-btn strong {
  color: #ffd166;
  font-weight: 700;
}

.jsponsor-cta-btn:hover,
.jsponsor-cta-btn:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 209, 102, 0.75);
  background: rgba(155, 23, 41, 0.32);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35), 0 0 18px rgba(255, 209, 102, 0.16);
}

.jsponsor-modal-dialog {
  max-width: 720px;
}

.jsponsor-intro {
  margin-bottom: 18px;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 209, 102, 0.24);
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.08), rgba(168, 22, 42, 0.12));
  color: rgba(255, 244, 228, 0.92);
  font-size: 0.93rem;
  line-height: 1.55;
}

.jsponsor-intro p {
  margin: 0;
}

.jsponsor-intro a {
  color: #ffd166;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.jsponsor-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.jsponsor-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.jsponsor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
}

.jsponsor-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.jsponsor-field label {
  font-size: 0.83rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgba(255, 241, 214, 0.92);
}

.jsponsor-req {
  color: #ff6b7a;
}

.jsponsor-field input,
.jsponsor-field select,
.jsponsor-field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 224, 166, 0.24);
  background: rgba(14, 9, 17, 0.72);
  color: #fff9ee;
  font: inherit;
  font-size: 0.93rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.jsponsor-field select option {
  background: #1a0f18;
  color: #fff9ee;
}

.jsponsor-field textarea {
  resize: vertical;
  min-height: 108px;
  line-height: 1.5;
}

.jsponsor-field input::placeholder,
.jsponsor-field textarea::placeholder {
  color: rgba(255, 238, 210, 0.42);
}

.jsponsor-field input:focus,
.jsponsor-field select:focus,
.jsponsor-field textarea:focus {
  outline: none;
  border-color: rgba(255, 209, 102, 0.82);
  background: rgba(22, 12, 24, 0.88);
  box-shadow: 0 0 0 3px rgba(255, 209, 102, 0.16);
}

.jsponsor-alert {
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 0.89rem;
  line-height: 1.45;
  border: 1px solid rgba(255, 107, 122, 0.45);
  background: rgba(185, 28, 46, 0.24);
  color: #ffd9de;
}

.jsponsor-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 4px;
}

.jsponsor-submit-btn {
  width: 100%;
  justify-content: center;
  padding: 12px 18px;
  font-size: 0.96rem;
}

.jsponsor-submit-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.jsponsor-success {
  text-align: center;
  padding: 26px 18px;
  border-radius: 14px;
  border: 1px solid rgba(82, 214, 138, 0.38);
  background: linear-gradient(160deg, rgba(24, 92, 56, 0.26), rgba(16, 12, 22, 0.72));
}

.jsponsor-success-icon {
  font-size: 2.3rem;
  margin-bottom: 8px;
}

.jsponsor-success h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  color: #ffd166;
}

.jsponsor-success p {
  margin: 0 auto 10px;
  max-width: 480px;
  color: rgba(255, 245, 228, 0.92);
  line-height: 1.55;
}

.jsponsor-success-ref {
  font-family: "DM Mono", monospace;
  font-size: 0.8rem;
  color: rgba(255, 225, 160, 0.78);
}

.jsponsor-success-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

@media (max-width: 640px) {
  .jsponsor-grid {
    grid-template-columns: 1fr;
  }
  .jsponsor-cta-btn {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }
}

/* Stream-showcase consent checkbox inside Nissificer mig! */
.nm-consent-box {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.jnisse-check-stream {
  padding-top: 9px;
  border-top: 1px solid rgba(255, 209, 102, 0.2);
}

.nm-stream-consent-bar {
  margin-top: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 209, 102, 0.28);
  background: rgba(255, 209, 102, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nm-stream-consent-bar[hidden] {
  display: none;
}

.jnisse-check-stream-inline {
  font-size: 0.78rem;
  align-items: center;
  gap: 8px;
}

.jnisse-check-stream-inline input {
  margin-top: 0;
  width: 15px;
  height: 15px;
}

/* ==========================================================================
   HERO ADVENT CALENDAR DOOR ("DAGENS LÅGE") — GAMMEL, SLIDT JULESTIL
   Placed in the empty space above "Konkurrence vilkår" in .jhero-copy
   ========================================================================== */
.jhero-body-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(18px, 2.2vw, 32px);
  margin: 22px 0 24px;
}

.jhero-body-text {
  flex: 1 1 340px;
  min-width: 0;
  max-width: 580px;
}

.jhero-body-text .jhero-lead {
  margin: 0 0 14px;
}

.jhero-body-text .jhero-free-note {
  margin: 0;
}

.jhero-advent-wrap {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding-right: 4px;
  position: relative;
  z-index: 3;
}

/* Recessed aged mahogany / antique cardboard outer casing */
.jadvent-door-frame {
  position: relative;
  width: clamp(154px, 13vw, 178px);
  height: clamp(180px, 15.2vw, 206px);
  padding: 6px;
  border-radius: 7px;
  background:
    radial-gradient(circle at 25% 18%, rgba(122, 34, 42, 0.42), transparent 60%),
    linear-gradient(155deg, #2a0c11 0%, #160508 55%, #0c0305 100%);
  border: 1.5px solid rgba(212, 160, 68, 0.48);
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.65),
    0 0 26px rgba(245, 201, 92, 0.11),
    inset 0 1px 0 rgba(255, 232, 166, 0.22),
    inset 0 0 18px rgba(0, 0, 0, 0.88);
  perspective: 920px;
  perspective-origin: 35% 50%;
}

/* Worn perforated / scored antique advent-calendar cut edge around the casing */
.jadvent-door-frame::before {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 5px;
  border: 1px dashed rgba(245, 201, 92, 0.22);
  pointer-events: none;
  z-index: 0;
}

/* Warm light spill from the frame when the door is open */
.jadvent-door-frame.is-open {
  border-color: rgba(245, 201, 92, 0.65);
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.68),
    0 0 34px rgba(255, 198, 86, 0.24),
    0 0 14px rgba(200, 29, 50, 0.28),
    inset 0 1px 0 rgba(255, 240, 190, 0.34),
    inset 0 0 20px rgba(0, 0, 0, 0.85);
}

/* Recessed glowing interior niche */
.jadvent-inside {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px 10px 10px;
  background:
    radial-gradient(ellipse at 50% 38%, rgba(255, 205, 102, 0.26) 0%, rgba(132, 26, 38, 0.45) 54%, rgba(16, 5, 9, 0.96) 100%),
    linear-gradient(180deg, #270a10 0%, #140407 100%);
  border: 1px solid rgba(245, 201, 92, 0.28);
  box-shadow:
    inset 0 8px 22px rgba(0, 0, 0, 0.82),
    inset 0 0 26px rgba(255, 196, 82, 0.14);
}

.jadvent-inside-glow {
  position: absolute;
  inset: -12px;
  background: radial-gradient(circle at 50% 44%, rgba(255, 214, 118, 0.26), transparent 64%);
  pointer-events: none;
  animation: jadventHearthGlow 4.2s ease-in-out infinite;
}

@keyframes jadventHearthGlow {
  0%, 100% { opacity: 0.72; transform: scale(0.96); }
  50% { opacity: 1; transform: scale(1.04); }
}

.jadvent-inside-gift-svg {
  position: relative;
  z-index: 1;
  margin-bottom: 4px;
  filter: drop-shadow(0 2px 8px rgba(255, 209, 102, 0.45));
  opacity: 0.92;
}

.jadvent-gift-count {
  position: relative;
  z-index: 1;
  font-family: var(--xmas-font-display, "Cinzel Decorative", serif);
  font-weight: 900;
  font-size: clamp(2.15rem, 2.75vw, 2.75rem);
  line-height: 1.02;
  letter-spacing: 0.01em;
  background: linear-gradient(145deg, #fff8de 0%, #ffd166 44%, #f0a43b 82%, #c97f1d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 3px 10px rgba(255, 190, 70, 0.42)) drop-shadow(0 2px 2px rgba(0, 0, 0, 0.85));
}

.jadvent-gift-label {
  position: relative;
  z-index: 1;
  margin-top: 4px;
  font-family: var(--xmas-font-body, "Plus Jakarta Sans", sans-serif);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffe8a6;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
}

.jadvent-gift-divider {
  position: relative;
  z-index: 1;
  width: 44px;
  height: 1px;
  margin: 7px 0 6px;
  background: linear-gradient(90deg, transparent, rgba(255, 209, 102, 0.62), transparent);
}

.jadvent-gift-sub {
  position: relative;
  z-index: 1;
  font-family: var(--mono, "DM Mono", monospace);
  font-size: 0.63rem;
  letter-spacing: 0.04em;
  color: rgba(255, 236, 194, 0.78);
}

/* 3D Hinged Vintage Door Leaf */
.jadvent-leaf {
  position: absolute;
  inset: 6px;
  width: calc(100% - 12px);
  height: calc(100% - 12px);
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transform-origin: left center;
  transform-style: preserve-3d;
  transform: rotateY(0deg);
  transition: transform 0.95s cubic-bezier(0.24, 0.82, 0.25, 1), filter 0.25s ease;
  z-index: 2;
  -webkit-tap-highlight-color: transparent;
}

.jadvent-leaf:focus-visible {
  outline: 2px solid var(--xmas-gold);
  outline-offset: 4px;
  border-radius: 4px;
}

/* Closed hover: subtle tactile creak/lift hint */
.jadvent-door-frame.is-closed .jadvent-leaf:hover {
  transform: rotateY(-5deg);
}

/* Open state: door swings cleanly open in 3D without colliding with left text */
.jadvent-door-frame.is-open .jadvent-leaf {
  transform: rotateY(-96deg);
}

.jadvent-door-frame.is-open .jadvent-leaf:hover {
  transform: rotateY(-88deg);
}

/* Optional peek state when open door is clicked to admire today's gold date */
.jadvent-door-frame.is-open.is-peeking .jadvent-leaf {
  transform: rotateY(-8deg);
}

/* Locked rattle animation when user clicks before opening hour */
.jadvent-door-frame.is-rattling .jadvent-leaf {
  animation: jadventLockedRattle 0.42s ease-in-out;
}

@keyframes jadventLockedRattle {
  0%, 100% { transform: rotateY(0deg); }
  22% { transform: rotateY(-9deg); }
  45% { transform: rotateY(2deg); }
  68% { transform: rotateY(-6deg); }
  85% { transform: rotateY(1deg); }
}

.jadvent-face {
  position: absolute;
  inset: 0;
  border-radius: 4px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
}

/* FRONT FACE: Aged, worn antique crimson/mahogany lacquer + tarnished gold */
.jadvent-front {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
    /* Darkened worn edges & age vignette */
    radial-gradient(ellipse at 50% 45%, rgba(138, 28, 42, 0.22) 0%, rgba(28, 6, 11, 0.72) 78%, rgba(10, 2, 4, 0.92) 100%),
    /* Subtle vertical antique wood/cardboard grain */
    repeating-linear-gradient(
      90deg,
      rgba(255, 224, 160, 0.025) 0px,
      rgba(255, 224, 160, 0.025) 1px,
      transparent 1px,
      transparent 5px,
      rgba(0, 0, 0, 0.09) 5px,
      rgba(0, 0, 0, 0.09) 7px
    ),
    /* Aged burgundy/crimson base */
    linear-gradient(152deg, #571822 0%, #3a0e16 46%, #24070d 100%);
  border: 1.5px solid rgba(208, 156, 66, 0.52);
  box-shadow:
    inset 0 0 24px rgba(0, 0, 0, 0.72),
    inset 1px 1px 0 rgba(255, 228, 158, 0.26),
    inset -2px -2px 6px rgba(0, 0, 0, 0.65),
    3px 0 12px rgba(0, 0, 0, 0.55);
}

/* Aged paper/lacquer grain & mottled patina texture (pure inline SVG data URI) */
.jadvent-patina {
  position: absolute;
  inset: 0;
  opacity: 0.24;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.85'/%3E%3C/svg%3E");
}

/* Worn edge scuffs, faded gold rubs & aged blotches */
.jadvent-scuffs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 14% 16%, rgba(255, 226, 156, 0.11), transparent 28%),
    radial-gradient(circle at 86% 84%, rgba(255, 214, 130, 0.09), transparent 30%),
    radial-gradient(circle at 78% 22%, rgba(0, 0, 0, 0.34), transparent 26%),
    radial-gradient(circle at 22% 80%, rgba(0, 0, 0, 0.36), transparent 28%),
    linear-gradient(124deg, transparent 36%, rgba(255, 232, 175, 0.06) 49%, transparent 56%);
}

.jadvent-filigree-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Oxidized antique brass hinges on the left edge */
.jadvent-hinge {
  position: absolute;
  left: 0;
  width: 11px;
  height: 24px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, #b88934 0%, #6b4914 48%, #9c7228 76%, #452e0a 100%);
  border: 1px solid rgba(255, 224, 148, 0.35);
  border-left: 0;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.65);
  pointer-events: none;
}

.jadvent-hinge::before,
.jadvent-hinge::after {
  content: "";
  position: absolute;
  left: 3px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #231404;
  box-shadow: 0 0.5px 0 rgba(255, 225, 145, 0.45);
}

.jadvent-hinge::before { top: 4px; }
.jadvent-hinge::after { bottom: 4px; }

.jadvent-hinge-top { top: 28px; }
.jadvent-hinge-bot { bottom: 28px; }

/* Tarnished antique brass door knob / pull on the right edge */
.jadvent-knob {
  position: absolute;
  right: 11px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 32%, #fff0bd 0%, #d49d3a 42%, #704b12 82%, #3a2406 100%);
  border: 1px solid rgba(255, 232, 166, 0.45);
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.78),
    0 0 8px rgba(245, 201, 92, 0.25);
  pointer-events: none;
}

/* Embossed gold date on the front — matches .jhero-title span */
.jadvent-date-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translateY(-4px);
}

.jadvent-day {
  font-family: var(--xmas-font-display, "Cinzel Decorative", serif);
  font-weight: 900;
  font-size: clamp(2.65rem, 3.3vw, 3.35rem);
  line-height: 0.96;
  letter-spacing: -0.01em;
  background: linear-gradient(142deg, #fff7db 0%, #ffd166 40%, #e4a135 74%, #a86f1a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter:
    drop-shadow(0 2px 1px rgba(10, 2, 4, 0.92))
    drop-shadow(0 0 14px rgba(255, 196, 78, 0.36));
}

.jadvent-month-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 6px;
}

.jadvent-month-line {
  width: 16px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245, 201, 92, 0.72), transparent);
}

.jadvent-month {
  font-family: var(--xmas-font-display, "Cinzel Decorative", serif);
  font-weight: 700;
  font-size: 0.84rem;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  background: linear-gradient(135deg, #fff5d1 0%, #f5c95c 55%, #c98924 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.85));
}

.jadvent-front-seal {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--mono, "DM Mono", monospace);
  font-size: 0.56rem;
  letter-spacing: 0.18em;
  color: rgba(245, 201, 92, 0.55);
  text-transform: uppercase;
  pointer-events: none;
}

/* BACK FACE: Aged dark parchment / wood reverse visible when swung open */
.jadvent-back {
  transform: rotateY(180deg);
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 50%, rgba(72, 20, 28, 0.55), rgba(14, 4, 6, 0.96)),
    linear-gradient(160deg, #24090e 0%, #120407 100%);
  border: 1.5px solid rgba(185, 136, 52, 0.42);
  box-shadow: inset 0 0 22px rgba(0, 0, 0, 0.85);
}

.jadvent-back-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 10px;
  border: 1px dashed rgba(245, 201, 92, 0.22);
  border-radius: 3px;
  width: calc(100% - 18px);
  height: calc(100% - 18px);
  justify-content: center;
}

.jadvent-back-star {
  color: rgba(245, 201, 92, 0.45);
  font-size: 0.85rem;
}

.jadvent-back-date {
  font-family: var(--xmas-font-display, "Cinzel Decorative", serif);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  color: rgba(245, 201, 92, 0.52);
}

/* Subtle vintage status caption under the door */
.jadvent-caption {
  font-family: var(--mono, "DM Mono", monospace);
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  color: rgba(255, 232, 166, 0.72);
  text-align: center;
  max-width: 190px;
  line-height: 1.35;
}

.jadvent-caption.is-highlight {
  color: #ffd166;
}

/* Responsive adjustments */
@media (max-width: 1220px) {
  .jadvent-door-frame {
    width: 150px;
    height: 176px;
  }
  .jadvent-door-frame.is-open .jadvent-leaf {
    transform: rotateY(-92deg);
  }
}

@media (max-width: 780px) {
  .jhero-body-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .jhero-advent-wrap {
    margin-left: 0;
    align-self: center;
    padding-right: 0;
  }
  .jadvent-door-frame {
    width: 168px;
    height: 196px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .jadvent-leaf {
    transition: transform 0.2s linear;
  }
  .jadvent-inside-glow {
    animation: none;
  }
}


/* ============================================================================
   MODAL: SKRIV EN SØD HILSEN TIL JERES DJ JULEMAND (GULNET PERGAMENTPAPIR)
   ============================================================================ */
.jbtn-hilsen,
.jhub-tab-hilsen {
  border-color: rgba(242, 205, 118, 0.45);
}

.jhub-tab-hilsen:hover {
  border-color: rgba(255, 217, 128, 0.85);
}

.jhilsen-modal-dialog {
  max-width: 760px;
  background:
    radial-gradient(ellipse at 18% 0%, rgba(132, 34, 48, 0.44), transparent 56%),
    radial-gradient(ellipse at 85% 100%, rgba(36, 16, 8, 0.72), transparent 58%),
    linear-gradient(155deg, #4b151e 0%, #2d0b12 46%, #1b060a 100%);
  border: 2px solid rgba(212, 168, 78, 0.66);
  box-shadow:
    0 34px 80px rgba(0, 0, 0, 0.8),
    inset 0 0 42px rgba(0, 0, 0, 0.56);
}

.jhilsen-body {
  padding: 20px 24px 24px;
}

/* Gammelt, ældet og gulnet pergamentpapir */
.jhilsen-parchment {
  position: relative;
  padding: 30px 34px 28px;
  border-radius: 10px;
  color: #2e180a;
  background:
    radial-gradient(ellipse at 12% 14%, rgba(136, 84, 28, 0.22), transparent 36%),
    radial-gradient(ellipse at 88% 82%, rgba(122, 72, 22, 0.26), transparent 40%),
    radial-gradient(circle at 82% 16%, rgba(154, 102, 38, 0.16), transparent 30%),
    radial-gradient(circle at 22% 88%, rgba(114, 68, 22, 0.18), transparent 34%),
    linear-gradient(168deg, #f3e4bd 0%, #ead39d 36%, #dfc082 72%, #d3ae6a 100%);
  border: 1px solid rgba(112, 72, 26, 0.52);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.56),
    0 0 0 2px rgba(196, 152, 68, 0.36),
    inset 0 0 54px rgba(102, 58, 16, 0.34),
    inset 0 0 14px rgba(72, 38, 10, 0.26);
  overflow: hidden;
}

/* Fin papir-grain tekstur over pergamentet */
.jhilsen-parchment::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

/* Dekorativ indre dobbeltramme */
.jhilsen-parchment::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(110, 68, 24, 0.26);
  border-radius: 6px;
  pointer-events: none;
}

.jhilsen-corner {
  position: absolute;
  font-size: 1.15rem;
  line-height: 1;
  color: rgba(118, 68, 22, 0.48);
  pointer-events: none;
  user-select: none;
  z-index: 1;
}
.jhilsen-corner-tl { top: 14px; left: 16px; }
.jhilsen-corner-tr { top: 14px; right: 16px; transform: scaleX(-1); }
.jhilsen-corner-bl { bottom: 14px; left: 16px; transform: scaleY(-1); }
.jhilsen-corner-br { bottom: 14px; right: 16px; transform: scale(-1); }

.jhilsen-form,
.jhilsen-success {
  position: relative;
  z-index: 2;
}

.jhilsen-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.jhilsen-sr-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.jhilsen-letter-top {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 10px;
}

.jhilsen-date-stamp {
  align-self: flex-end;
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-size: 0.96rem;
  letter-spacing: 0.03em;
  color: rgba(84, 46, 18, 0.78);
}

.jhilsen-salutation {
  margin: 0;
  font-family: "Great Vibes", "Caveat", cursive;
  font-size: 2.25rem;
  line-height: 1.15;
  color: #5b1814;
  text-shadow: 0 1px 0 rgba(255, 248, 224, 0.5);
}

.jhilsen-field-message textarea {
  display: block;
  width: 100%;
  min-height: 192px;
  padding: 6px 10px 8px;
  border: none;
  border-radius: 6px;
  resize: vertical;
  color: #2b1508;
  font-family: "Caveat", "Great Vibes", cursive;
  font-size: 1.52rem;
  font-weight: 600;
  line-height: 2.1rem;
  letter-spacing: 0.01em;
  background-color: rgba(255, 248, 226, 0.18);
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent calc(2.1rem - 1px),
    rgba(104, 64, 24, 0.24) calc(2.1rem - 1px),
    rgba(104, 64, 24, 0.24) 2.1rem
  );
  background-position: 0 6px;
  background-attachment: local;
  box-shadow: inset 0 0 0 1px rgba(112, 70, 26, 0.16);
  transition: box-shadow 160ms ease, background-color 160ms ease;
}

.jhilsen-field-message textarea::placeholder {
  color: rgba(82, 48, 20, 0.52);
  font-weight: 500;
}

.jhilsen-field-message textarea:focus {
  outline: none;
  background-color: rgba(255, 250, 234, 0.34);
  box-shadow:
    inset 0 0 0 1.5px rgba(138, 36, 28, 0.45),
    0 0 0 3px rgba(188, 128, 42, 0.18);
}

.jhilsen-counter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 0.9rem;
  color: rgba(84, 48, 20, 0.76);
}

.jhilsen-char-count {
  font-family: var(--mono, "DM Mono", monospace);
  font-size: 0.76rem;
  color: rgba(84, 48, 20, 0.78);
}

.jhilsen-char-count.is-near-limit {
  color: #8f1d18;
  font-weight: 700;
}

.jhilsen-signature-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-top: 18px;
}

.jhilsen-signature-fields {
  flex: 1;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.jhilsen-sign-label {
  font-family: "Great Vibes", "Caveat", cursive;
  font-size: 1.75rem;
  line-height: 1.1;
  color: #5b1814;
}

.jhilsen-signature-fields input {
  width: 100%;
  padding: 4px 8px 6px;
  border: none;
  border-bottom: 1.5px solid rgba(98, 56, 20, 0.48);
  border-radius: 4px 4px 0 0;
  background: rgba(255, 248, 226, 0.22);
  color: #2b1508;
  font-family: "Caveat", "Great Vibes", cursive;
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.3;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.jhilsen-signature-fields input::placeholder {
  color: rgba(82, 48, 20, 0.5);
  font-weight: 500;
}

.jhilsen-signature-fields input:focus {
  outline: none;
  border-bottom-color: #8f1d18;
  background: rgba(255, 250, 234, 0.4);
}

/* Rødt jule-vokssegl i hjørnet af brevet */
.jhilsen-wax-seal {
  flex: 0 0 auto;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 32% 28%, #d43838 0%, #9b161b 56%, #640b10 100%);
  border: 2px dashed rgba(246, 204, 120, 0.55);
  box-shadow:
    0 6px 16px rgba(56, 12, 8, 0.42),
    inset 0 2px 5px rgba(255, 196, 182, 0.35),
    inset 0 -4px 8px rgba(42, 4, 6, 0.55);
  transform: rotate(-8deg);
  user-select: none;
}

.jhilsen-wax-seal span {
  font-size: 1.75rem;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}

.jhilsen-alert {
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid rgba(145, 28, 24, 0.48);
  background: rgba(145, 28, 24, 0.12);
  color: #6f110e;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
}

.jhilsen-actions {
  margin-top: 22px;
  display: flex;
  justify-content: center;
}

.jhilsen-submit-btn {
  cursor: pointer;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1.5px solid #f2cf7e;
  background: linear-gradient(135deg, #a61b26 0%, #7c111a 55%, #5b0b12 100%);
  color: #fff6df;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow:
    0 10px 22px rgba(68, 18, 12, 0.36),
    inset 0 1px 0 rgba(255, 232, 178, 0.38);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.jhilsen-submit-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow:
    0 14px 28px rgba(68, 18, 12, 0.44),
    inset 0 1px 0 rgba(255, 232, 178, 0.5);
}

.jhilsen-submit-btn:disabled {
  opacity: 0.68;
  cursor: wait;
}

.jhilsen-secondary-btn {
  cursor: pointer;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1.5px solid rgba(102, 60, 22, 0.45);
  background: rgba(255, 248, 228, 0.42);
  color: #3d1f0d;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  transition: background-color 150ms ease, border-color 150ms ease;
}

.jhilsen-secondary-btn:hover {
  background: rgba(255, 250, 236, 0.72);
  border-color: rgba(102, 60, 22, 0.75);
}

/* Bekræftelse på pergamentet efter indsendelse */
.jhilsen-success {
  text-align: center;
  padding: 24px 12px 16px;
}

.jhilsen-success-seal {
  width: 78px;
  height: 78px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 2.2rem;
  background: radial-gradient(circle at 32% 28%, #d43838 0%, #9b161b 58%, #640b10 100%);
  border: 2px dashed rgba(246, 204, 120, 0.62);
  box-shadow:
    0 10px 24px rgba(56, 12, 8, 0.36),
    inset 0 2px 6px rgba(255, 204, 186, 0.35);
}

.jhilsen-success-title {
  margin: 0 0 8px;
  font-family: "Great Vibes", "Caveat", cursive;
  font-size: 2.45rem;
  font-weight: 400;
  line-height: 1.15;
  color: #5b1814;
}

.jhilsen-success-text {
  margin: 0 auto 22px;
  max-width: 460px;
  font-family: "Caveat", cursive;
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.4;
  color: #361c0c;
}

.jhilsen-success-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.jhilsen-footer code {
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(255, 222, 138, 0.14);
  border: 1px solid rgba(242, 202, 110, 0.3);
  color: #f8de99;
  font-size: 0.82rem;
}

@media (max-width: 640px) {
  .jhilsen-body {
    padding: 14px 14px 18px;
  }
  .jhilsen-parchment {
    padding: 22px 18px 20px;
  }
  .jhilsen-salutation {
    font-size: 1.9rem;
  }
  .jhilsen-field-message textarea {
    font-size: 1.35rem;
    line-height: 1.95rem;
    min-height: 165px;
  }
  .jhilsen-signature-row {
    flex-direction: column;
    align-items: stretch;
  }
  .jhilsen-wax-seal {
    align-self: flex-end;
    width: 56px;
    height: 56px;
  }
  .jhilsen-counter-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
}
