/* ── AnistoreTCG julekalender (home page, only while the campaign runs) ──
   The first carousel slide (.jk-slide) and the home section (.jk).
   Images: assets/img/julekalender (red snowflake background for computer
   and phone, the calendar in the snow). */

/* ── Carousel slide ─────────────────────────────────────────── */
.jk-slide__bg {
  position: absolute;
  inset: 0;
  background: #0d0a14 url("../img/julekalender/baggrund_computer.webp") right center / cover no-repeat;
}
.jk-slide .v4-hero__inner { position: relative; z-index: 1; }
.jk-slide__box {
  position: relative;
  justify-self: center;
  align-self: end;
  margin-bottom: -96px;          /* down to the snow, through the slide's bottom padding */
}
.jk-slide__box .jk-scene { height: min(470px, 62vh); }
.jk-tag {
  position: absolute;
  top: 22%;
  left: -14%;
  transform: rotate(-6deg);
  background: #fdf3d3;
  color: #8b1a10;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 6px;
  box-shadow: 0 10px 24px rgba(0,0,0,.35);
  white-space: nowrap;
  z-index: 2;
}

/* ── The calendar in the snow with its packs (both places) ────
   One canvas, 976 × 1100: snow behind, box, packs, snow in front. */
.jk-scene { position: relative; aspect-ratio: 976 / 1100; }
.jk-scene__layer { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.jk-scene__pack {
  position: absolute;
  bottom: 12%;
  height: 33%;
  aspect-ratio: 303 / 555;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.45));
}
.jk-scene__pack--1 { left: 3%;  transform: rotate(-9deg); }
.jk-scene__pack--2 { left: 55%; bottom: 13%; transform: rotate(-4deg); }
.jk-scene__pack--3 { left: 67%; bottom: 12.5%; transform: rotate(2deg); }
.jk-scene__pack--4 { left: 79%; bottom: 11.5%; transform: rotate(7deg); }
/* A pack whose photo isn't uploaded yet: a plain foil pack with crimped ends. */
.jk-scene__pack--placeholder {
  display: block;
  border-radius: 6px;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.35) 0 2px, rgba(0,0,0,.08) 2px 6px) top / 100% 6% no-repeat,
    repeating-linear-gradient(90deg, rgba(255,255,255,.35) 0 2px, rgba(0,0,0,.08) 2px 6px) bottom / 100% 6% no-repeat,
    radial-gradient(circle at 50% 40%, rgba(255,255,255,.35), transparent 38%),
    linear-gradient(160deg, #8d93a6, #3a3f52 60%, #262a38);
}

/* ── Section ────────────────────────────────────────────────── */
.jk {
  position: relative;
  overflow: hidden;
  background: var(--bg-home);
  padding: 72px 40px 0;
}
/* The same background, mirrored so the red glow sits behind the box on the left. */
.jk::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/julekalender/baggrund_computer.webp") right center / cover no-repeat;
  transform: scaleX(-1);
}
.jk__inner {
  position: relative;
  z-index: 1;
  max-width: 1360px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 60px;
  align-items: center;
}
.jk__visual { align-self: end; }
.jk__visual .jk-scene { width: min(440px, 100%); margin: 0 auto; }
.jk__copy { padding-bottom: 88px; min-width: 0; }
/* As in the design: no accent line before this eyebrow. */
.page-home-v4 .jk__eyebrow::before { display: none; }
.jk__title {
  font-size: clamp(36px, 4.4vw, 52px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.03em;
  color: var(--text-warm);
  margin: 10px 0 18px;
}
.jk__sub { font-size: 16px; line-height: 1.7; color: #cdbfb6; margin: 0; max-width: 520px; }

.jk__doors {
  list-style: none;
  padding: 0;
  margin: 26px 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 86px));
  gap: 12px;
}
.jk__door-item { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.jk__door {
  width: 100%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #fdf3d3;
  color: #8b1a10;
  font-size: 30px;
  font-weight: 900;
  box-shadow: inset 0 -4px 0 rgba(0,0,0,.12), 0 10px 24px rgba(0,0,0,.35);
}
.jk__door-item:last-child .jk__door { background: #f7b552; }
.jk__date { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text-warm); white-space: nowrap; }

.jk__facts {
  list-style: none;
  padding: 18px 0 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  border-top: 1px solid rgba(243,240,235,.14);
  font-size: 14px;
  color: #cdbfb6;
}
.jk__facts strong { color: var(--text-warm); font-weight: 800; }

.jk__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 26px; margin-top: 26px; }
.jk__buy {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f4a82a, #e8870d);
  color: #1a1a1a;
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(232,135,13,.32);
  transition: transform .14s ease, box-shadow .14s ease;
}
.jk__buy:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(232,135,13,.5); }
.jk__rules { color: var(--text-warm); font-weight: 700; font-size: 15px; text-decoration: underline; text-underline-offset: 5px; }

/* ── Tablet: one column, centred ───────────────────────────── */
@media (max-width: 1100px) {
  .jk-slide__box { margin-bottom: -96px; }
  .jk-slide__box .jk-scene { height: 340px; }
  .jk-tag { left: -24%; }
  .jk__inner { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .jk__visual { order: -1; }
  .jk__visual .jk-scene { width: min(360px, 80%); }
  .jk__copy { padding-bottom: 72px; }
}

/* ── Phones: the box, then the buttons (texts hidden like the other slides) ── */
@media (max-width: 768px) {
  .jk-slide__bg { background-image: url("../img/julekalender/baggrund_telefon.webp"); background-position: center 40%; }
  .jk-slide .v4-hero__inner { gap: 0; }
  .jk-slide__box { order: -1; margin: 0 auto 22px; }
  .jk-slide__box .jk-scene { height: min(290px, 40vh); }
  .jk-tag { left: -24%; top: 30%; font-size: 12px; }

  .jk { padding: 48px 16px 0; }
  .jk::before { background-image: url("../img/julekalender/baggrund_telefon.webp"); background-position: center top; transform: none; }
  .jk__visual .jk-scene { width: min(300px, 78%); }
  .jk__copy { padding-bottom: 64px; }
  .jk__doors { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; max-width: 400px; }
  .jk__door { font-size: 26px; }
  .jk__date { font-size: 11px; letter-spacing: .04em; }
}

/* Smallest phones: a smaller tag that stays on screen. */
@media (max-width: 420px) {
  .jk-tag { left: -12%; font-size: 11px; padding: 6px 10px; }
}
