@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,600;0,700;1,500&family=Outfit:wght@400;500;600;700;800&display=swap');

/* ═══════════════════════════════════════════
   Fényképlabor Advent – „Kis ablakok” arculat
   ═══════════════════════════════════════════ */

.advent-launcher {
  --ad-gold: #e8c547;
  --ad-gold-soft: #fff3c4;
  --ad-wood: #3d2518;
  font-family: "Outfit", "Segoe UI", sans-serif;
  display: flex;
  justify-content: center;
  padding: 10px 0;
}

.advent-launch-btn {
  appearance: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 15px 28px;
  border-radius: 999px;
  background: linear-gradient(145deg, #2a1810, #1a0f0a 60%, #3d1a14);
  color: var(--ad-gold-soft);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(232, 197, 71, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.advent-launch-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.42), 0 0 24px rgba(232, 197, 71, 0.2);
}

.advent-launch-btn span.icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(232, 197, 71, 0.15);
  border: 1px solid rgba(232, 197, 71, 0.45);
  font-size: 18px;
}

/* ── FAB ── */
.advent-fab {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 9991;
  appearance: none;
  border: 2px solid rgba(255, 243, 196, 0.35);
  border-radius: 999px;
  padding: 14px 20px;
  cursor: pointer;
  font-weight: 800;
  font-size: 14px;
  display: none;
  align-items: center;
  gap: 10px;
  color: #fff3c4;
  background: linear-gradient(135deg, #3d2518 0%, #2a1510 50%, #1a0f0a 100%);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), 0 0 0 4px rgba(232, 197, 71, 0.12);
  font-family: "Outfit", sans-serif;
  transition: transform 0.25s ease, filter 0.25s ease;
  animation: advent-fab-glow 3s ease-in-out infinite;
}

.advent-fab.is-visible { display: inline-flex; }

.advent-fab:hover {
  transform: scale(1.06) translateY(-3px);
  filter: brightness(1.1);
}

.advent-fab i { font-size: 17px; color: #e8c547; }

@keyframes advent-fab-glow {
  0%, 100% { box-shadow: 0 12px 32px rgba(0,0,0,.45), 0 0 0 4px rgba(232,197,71,.1); }
  50% { box-shadow: 0 14px 38px rgba(0,0,0,.5), 0 0 20px rgba(232,197,71,.35); }
}

@media (max-width: 560px) {
  .advent-fab {
    left: 10px;
    bottom: 10px;
    padding: 10px 14px;
    font-size: 12px;
    gap: 8px;
  }
  .advent-fab span.advent-fab-label {
    display: inline !important;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.01em;
    white-space: nowrap;
  }
  .advent-fab i { font-size: 14px; }
}

/* ── Stage overlay ── */
.advent-stage {
  --ad-gold: #e8c547;
  --ad-gold-soft: #fff3c4;
  --ad-crimson: #8b2332;
  --ad-crimson-deep: #4a1219;
  --ad-door: #1f6b45;
  --ad-accent: #e8c547;
  --ad-snow: #fff8ee;
  --ad-ink: #f5ebe0;
  --ad-muted: rgba(245, 235, 224, 0.72);
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(10px, 2.5vw, 24px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  font-family: "Outfit", "Segoe UI", sans-serif;
  color: var(--ad-ink);
}

.advent-stage.is-open {
  display: flex;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.advent-stage *, .advent-stage *::before, .advent-stage *::after { box-sizing: border-box; }

/* Eredeti oldal háttér + blur – nincs sötét overlay / hó */
.advent-stage-bg {
  position: absolute;
  inset: 0;
  background: rgba(12, 18, 16, 0.28);
  backdrop-filter: blur(14px) saturate(1.05);
  -webkit-backdrop-filter: blur(14px) saturate(1.05);
}

.advent-stage-bg::after {
  content: none;
}

.advent-stage-lights,
.advent-bg-light,
.advent-snow {
  display: none !important;
}

/* Hó csak a naptár táblán */
.advent-board-snow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 2;
  border-radius: inherit;
}

.advent-board-snow i {
  position: absolute;
  top: -8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
  animation: advent-fall linear infinite;
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.3);
}

@keyframes advent-fall {
  0% { transform: translate3d(0, -8px, 0); opacity: 0; }
  12% { opacity: 0.7; }
  100% { transform: translate3d(16px, 105%, 0); opacity: 0; }
}

/* ── Calendar board (fa keret + papír) ── */
.advent-stage-panel {
  position: relative;
  z-index: 3;
  width: min(700px, 100%);
  max-height: min(88vh, 820px);
  max-height: min(88dvh, 820px);
  display: flex;
  flex-direction: column;
  padding: clamp(10px, 2vw, 16px);
  overflow: hidden;
  border-radius: 28px;
  background: #ffffff;
  box-shadow:
    0 0 0 1px rgba(26, 58, 42, 0.08),
    0 24px 70px rgba(0, 0, 0, 0.28);
  animation: advent-stage-in 0.55s cubic-bezier(0.22, 0.9, 0.25, 1);
}

@keyframes advent-stage-in {
  from { opacity: 0; transform: scale(0.92) translateY(24px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.advent-board-frame {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  padding: clamp(12px, 2vw, 18px);
  background: #ffffff;
  box-shadow: none;
  position: relative;
  overflow: hidden;
}

.advent-board-garland {
  display: none !important;
}

.advent-garland-bulb {
  width: 9px;
  height: 12px;
  border-radius: 50% 50% 45% 45%;
  box-shadow: 0 0 8px currentColor;
  animation: advent-bulb-blink 1.8s ease-in-out infinite;
  opacity: 0.85;
}

@keyframes advent-bulb-blink {
  0%, 100% { opacity: 0.5; filter: brightness(0.8); }
  50% { opacity: 1; filter: brightness(1.3); }
}

.advent-stage-top {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: clamp(8px, 1.5vw, 14px);
  flex-shrink: 0;
  position: relative;
  z-index: 3;
  text-align: left;
}

.advent-brand-row {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.2vw, 20px);
  min-width: 0;
  width: 100%;
  padding-right: 44px;
}

.advent-logo {
  flex: 0 0 auto;
  width: clamp(120px, 20vw, 188px);
  height: auto;
  max-height: 76px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.1));
}

.advent-stage-brand {
  min-width: 0;
  flex: 1;
  text-align: left;
  position: relative;
  z-index: 1;
}

.advent-kicker {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c45a12;
  margin-bottom: 4px;
}

.advent-kicker-tree { display: none; }

.advent-title {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.35rem, 3.2vw, 2rem);
  font-weight: 700;
  line-height: 1.1;
  color: #3d2518;
}

.advent-subtitle {
  margin: 5px 0 0;
  max-width: 420px;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(61, 37, 24, 0.72);
}

.advent-meta {
  margin-top: 8px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.advent-chip {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  background: rgba(139, 35, 50, 0.08);
  border: 1px solid rgba(139, 35, 50, 0.2);
  color: #6b2832;
}

.advent-stage-close {
  appearance: none;
  border: 1px solid rgba(61, 37, 24, 0.15);
  background: rgba(255, 255, 255, 0.65);
  color: #3d2518;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  position: absolute;
  top: 0;
  right: 0;
  z-index: 3;
  transition: transform 0.2s ease, background 0.2s ease;
}

.advent-stage-close:hover {
  background: #fff;
  transform: scale(1.08) rotate(90deg);
}

.advent-demo-bar {
  margin: 0 auto 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(61, 37, 24, 0.08);
  border: 1px solid rgba(61, 37, 24, 0.12);
}

.advent-demo-bar label {
  font-size: 10px;
  font-weight: 700;
  color: #6b5344;
  text-transform: uppercase;
}

.advent-demo-bar select {
  border-radius: 8px;
  border: 1px solid rgba(61, 37, 24, 0.2);
  background: #fff;
  color: #3d2518;
  padding: 5px 10px;
  font-size: 12px;
}

.advent-stage-body {
  flex: 1;
  min-height: 0;
  position: relative;
  display: flex;
  flex-direction: column;
}

.advent-view {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  transition: opacity 0.4s ease, transform 0.4s ease, filter 0.4s ease;
}

.advent-view.is-dimmed {
  opacity: 0.15;
  filter: blur(3px);
  pointer-events: none;
  transform: scale(0.96);
}

.advent-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(6px, 1.2vw, 10px);
  flex: 1;
  align-content: center;
}

@media (max-width: 720px) {
  .advent-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ═══ Mini ablakok (grid) – valódi kis ajtók ═══ */
.advent-door {
  --ad-door: #1f6b45;
  --ad-accent: #e8c547;
  position: relative;
  aspect-ratio: 1 / 1.08;
  border: none;
  padding: 0;
  cursor: pointer;
  background: transparent;
  perspective: 900px;
  -webkit-tap-highlight-color: transparent;
  animation: advent-door-pop 0.45s cubic-bezier(0.22, 0.9, 0.25, 1) both;
  z-index: 1;
}

.advent-door.is-animating {
  z-index: 8;
}

.advent-door.is-opened {
  z-index: 3;
}

.advent-door:nth-child(1) { --i: 1; }
.advent-door:nth-child(2) { --i: 2; }
.advent-door:nth-child(3) { --i: 3; }
.advent-door:nth-child(4) { --i: 4; }
.advent-door:nth-child(5) { --i: 5; }
.advent-door:nth-child(6) { --i: 6; }
.advent-door:nth-child(7) { --i: 7; }
.advent-door:nth-child(8) { --i: 8; }
.advent-door:nth-child(9) { --i: 9; }
.advent-door:nth-child(10) { --i: 10; }
.advent-door:nth-child(11) { --i: 11; }
.advent-door:nth-child(12) { --i: 12; }
.advent-door:nth-child(13) { --i: 13; }
.advent-door:nth-child(14) { --i: 14; }
.advent-door:nth-child(15) { --i: 15; }
.advent-door:nth-child(16) { --i: 16; }
.advent-door:nth-child(17) { --i: 17; }
.advent-door:nth-child(18) { --i: 18; }
.advent-door:nth-child(19) { --i: 19; }
.advent-door:nth-child(20) { --i: 20; }
.advent-door:nth-child(21) { --i: 21; }
.advent-door:nth-child(22) { --i: 22; }
.advent-door:nth-child(23) { --i: 23; }
.advent-door:nth-child(24) { --i: 24; }
.advent-door:nth-child(n) { animation-delay: calc(0.02s * var(--i, 1)); }

@keyframes advent-door-pop {
  from { opacity: 0; transform: scale(0.7) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.advent-door:disabled { cursor: not-allowed; }

.advent-door-casing {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  padding: 3px;
  background: linear-gradient(145deg, #2a8a55, #166038 55%, #0e4028);
  box-shadow: 0 4px 12px rgba(15, 64, 40, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transform-style: preserve-3d;
  overflow: hidden;
  perspective: 700px;
}

/* Nyitáskor / nyitva: az ajtó kilóghasson a keretből */
.advent-door.is-animating .advent-door-casing,
.advent-door.is-sash-open .advent-door-casing,
.advent-door.is-opened .advent-door-casing {
  overflow: visible;
}

.advent-door-reveal {
  position: absolute;
  inset: 3px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 220, 120, 0.55), transparent 50%),
    linear-gradient(165deg, #9b2d3a, #5c1520 55%, #3a0e14);
  overflow: hidden;
}

.advent-door-reveal-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-align: center;
  padding: 4px;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.35s ease 0.15s, transform 0.4s ease 0.12s;
}

.advent-door.is-sash-open .advent-door-reveal-inner,
.advent-door.is-opened .advent-door-reveal-inner,
.advent-door.is-animating.is-sash-open .advent-door-reveal-inner {
  opacity: 1;
  transform: scale(1);
}

.advent-door-reveal-icon {
  font-size: clamp(0.85rem, 2.4vw, 1.15rem);
  color: #fff3c4;
  line-height: 1;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}

.advent-door-reveal-day {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(0.95rem, 2.4vw, 1.25rem);
  font-weight: 700;
  color: #fff8ee;
  line-height: 1;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.advent-door-reveal-tag {
  font-size: clamp(0.7rem, 1.8vw, 0.9rem);
  line-height: 1;
  margin-top: 1px;
}

.advent-door-reveal-glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle, rgba(255, 243, 196, 0.4), transparent 60%);
  animation: advent-inner-glow 2.5s ease-in-out infinite;
}

@keyframes advent-inner-glow {
  0%, 100% { opacity: 0.5; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.1); }
}

.advent-door-sash {
  position: absolute;
  inset: 3px;
  border-radius: 7px;
  transform-origin: left center;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  transform: rotateY(0deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.16) 0%, transparent 42%),
    linear-gradient(165deg, var(--ad-door, #1f6b45), color-mix(in srgb, var(--ad-door, #1f6b45) 72%, #0a2a18));
  border: 1.5px solid rgba(232, 197, 71, 0.55);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 3px 10px rgba(0, 0, 0, 0.22);
  color: #fff8e7;
  transition: transform 0.75s cubic-bezier(0.4, 0.05, 0.2, 1), box-shadow 0.3s ease;
  z-index: 2;
  will-change: transform;
}

.advent-door-sash::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px dashed rgba(232, 197, 71, 0.25);
  border-radius: 4px;
  pointer-events: none;
}

/* Ajtópánt a bal szélen */
.advent-door-sash::after {
  content: "";
  position: absolute;
  left: -1px;
  top: 18%;
  bottom: 18%;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, #c9a227, #8a6a12 50%, #c9a227);
  box-shadow: 1px 0 2px rgba(0, 0, 0, 0.25);
  opacity: 0.85;
}

.advent-door-knob {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff8d0, var(--ad-accent) 60%, #8a6a12);
  box-shadow: 0 0 6px rgba(232, 197, 71, 0.6);
  z-index: 3;
}

.advent-door-num {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.1rem, 2.6vw, 1.65rem);
  font-weight: 700;
  line-height: 1;
  z-index: 1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.advent-door-icon {
  font-size: clamp(0.65rem, 1.8vw, 0.85rem);
  opacity: 0.9;
  z-index: 1;
  color: var(--ad-accent);
}

.advent-door-badge {
  position: absolute;
  top: 5px;
  left: 5px;
  z-index: 4;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  color: var(--ad-gold-soft);
  font-size: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Kis ajtó: zárva indul → jól láthatóan nyílik (több mint 3/4), de nem teljesen */
.advent-door.is-sash-open .advent-door-sash,
.advent-door.is-opened .advent-door-sash {
  transform: rotateY(-78deg);
  box-shadow: -8px 6px 18px rgba(0, 0, 0, 0.42);
}

.advent-door.is-animating .advent-door-sash {
  transition: none;
  animation: none;
}

.advent-door.is-animating.is-sash-open .advent-door-sash,
.advent-door.is-available.is-animating.is-sash-open .advent-door-sash {
  animation: advent-mini-door-open 0.8s cubic-bezier(0.45, 0.05, 0.15, 1) forwards;
}

@keyframes advent-mini-door-open {
  0% { transform: rotateY(0deg); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), 0 3px 10px rgba(0,0,0,.22); }
  40% { transform: rotateY(-32deg); }
  100% { transform: rotateY(-78deg); box-shadow: -8px 6px 18px rgba(0, 0, 0, 0.42); }
}

.advent-door.is-available:not(:disabled):hover .advent-door-sash {
  transform: rotateY(-6deg);
  box-shadow: 0 0 14px rgba(232, 197, 71, 0.22), 0 4px 12px rgba(0, 0, 0, 0.28);
}

.advent-door.is-available:not(:disabled):active .advent-door-sash {
  transform: rotateY(-14deg);
}

.advent-door.is-available .advent-door-sash {
  animation: advent-window-pulse 2.6s ease-in-out infinite;
}

.advent-door.is-available.is-animating .advent-door-sash {
  animation: none;
}

.advent-door.is-available.is-animating.is-sash-open .advent-door-sash {
  animation: advent-mini-door-open 0.8s cubic-bezier(0.45, 0.05, 0.15, 1) forwards;
}

/* Már kinyitott napok: vizuálisan nyitva maradnak, ne pulzáljanak */
.advent-door.is-opened .advent-door-sash {
  animation: none !important;
  transform: rotateY(-78deg);
  box-shadow: -8px 6px 18px rgba(0, 0, 0, 0.42);
}

/* Animáció közben még ne legyen is-opened override */
.advent-door.is-animating.is-opened.is-sash-open .advent-door-sash {
  animation: advent-mini-door-open 0.8s cubic-bezier(0.45, 0.05, 0.15, 1) forwards !important;
}

@keyframes advent-window-pulse {
  0%, 100% { box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 3px 10px rgba(0,0,0,.3); }
  50% { box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 0 18px rgba(232,197,71,.35), 0 4px 12px rgba(0,0,0,.3); }
}

.advent-door.is-locked .advent-door-sash,
.advent-door.is-missed .advent-door-sash,
.advent-door.is-disabled .advent-door-sash {
  filter: grayscale(0.7) brightness(0.65);
  opacity: 0.75;
  border-color: rgba(150, 150, 150, 0.3);
  animation: none;
}

.advent-door.is-opened .advent-door-reveal {
  background:
    radial-gradient(circle at 50% 40%, rgba(232, 197, 71, 0.5), transparent 55%),
    linear-gradient(165deg, #6b2832, #3a1218);
}

.advent-footer-note {
  margin-top: 12px;
  text-align: center;
  font-size: 12px;
  color: rgba(61, 37, 24, 0.65);
  flex-shrink: 0;
}

/* ═══ Nagy ablak – nyitás ceremónia ═══ */
.advent-ceremony {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.advent-ceremony.is-active { display: flex; }

.advent-ceremony-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 15, 10, 0.55);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.advent-ceremony.is-active .advent-ceremony-backdrop { opacity: 1; }

.advent-ceremony-door {
  width: min(220px, 62vw);
  aspect-ratio: 4 / 5;
  perspective: 1400px;
  position: relative;
  transform: scale(0.75) translateY(30px);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.22, 0.9, 0.25, 1), opacity 0.4s ease;
}

.advent-ceremony.is-active .advent-ceremony-door {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.advent-ceremony-door.is-shaking {
  animation: advent-window-shake 0.45s ease-in-out;
}

@keyframes advent-window-shake {
  0%, 100% { transform: scale(1) translateY(0) rotate(0); }
  20% { transform: scale(1.02) translateY(-2px) rotate(-1.5deg); }
  40% { transform: scale(1.02) translateY(1px) rotate(1.5deg); }
  60% { transform: scale(1.01) translateY(-1px) rotate(-1deg); }
  80% { transform: scale(1.01) translateY(0) rotate(0.5deg); }
}

.advent-ceremony-casing {
  position: absolute;
  inset: 0;
  padding: 6px;
  border-radius: 14px;
  background: linear-gradient(145deg, #a08020, #6b5010 50%, #4a3810);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform-style: preserve-3d;
}

.advent-ceremony-reveal {
  position: absolute;
  inset: 6px;
  border-radius: 10px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 35%, rgba(232, 197, 71, 0.4), transparent 50%),
    linear-gradient(165deg, var(--ad-crimson, #8b2332), var(--ad-crimson-deep, #4a1219));
}

.advent-ceremony-gift {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  text-align: center;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.4s ease 0.5s, transform 0.5s cubic-bezier(0.22, 0.9, 0.25, 1) 0.45s;
}

.advent-ceremony-door.is-opening .advent-ceremony-gift,
.advent-ceremony.is-revealed .advent-ceremony-gift {
  opacity: 1;
  transform: scale(1);
}

.advent-ceremony-gift-day {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--ad-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ad-gold-soft);
  margin-bottom: 8px;
  background: rgba(0, 0, 0, 0.25);
}

.advent-ceremony-gift-title {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.25rem;
  color: var(--ad-snow);
  line-height: 1.15;
}

.advent-ceremony-gift-label {
  margin-top: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ad-gold);
}

.advent-ceremony-sash {
  position: absolute;
  inset: 6px;
  border-radius: 10px;
  transform-origin: left center;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.14) 0%, transparent 42%),
    linear-gradient(165deg, var(--ad-door, #2d5a40), color-mix(in srgb, var(--ad-door, #2d5a40) 65%, #0a1510));
  border: 2px solid var(--ad-accent, var(--ad-gold));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 6px 12px 30px rgba(0, 0, 0, 0.45);
  color: var(--ad-gold-soft);
  z-index: 2;
  transition: transform 1s cubic-bezier(0.45, 0.05, 0.15, 1);
}

.advent-ceremony-sash::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px dashed rgba(232, 197, 71, 0.3);
  border-radius: 6px;
}

.advent-ceremony-knob {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff8d0, var(--ad-gold) 55%, #8a6a12);
  box-shadow: 0 0 10px rgba(232, 197, 71, 0.7);
}

.advent-ceremony-icon {
  font-size: clamp(1.2rem, 4vw, 1.6rem);
  z-index: 1;
  color: var(--ad-accent, var(--ad-gold));
}

.advent-ceremony-num {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.8rem, 10vw, 4.2rem);
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.advent-ceremony-door.is-opening .advent-ceremony-sash {
  transform: rotateY(-112deg);
}

.advent-ceremony-spark {
  position: absolute;
  inset: -30%;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255, 243, 196, 0.5), transparent 45%);
  z-index: 5;
}

.advent-ceremony-door.is-opening .advent-ceremony-spark {
  opacity: 1;
  animation: advent-spark-burst 1s ease-out forwards;
}

@keyframes advent-spark-burst {
  0% { transform: scale(0.5); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}

.advent-ceremony-burst {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
}

.advent-burst-particle {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  opacity: 0;
  box-shadow: 0 0 6px currentColor;
  animation: advent-particle-fly 0.95s ease-out forwards;
}

@keyframes advent-particle-fly {
  0% { opacity: 1; transform: translate(0, 0) scale(1); }
  100% { opacity: 0; transform: translate(var(--tx), var(--ty)) scale(0.15); }
}

/* ═══ Jutalom kártya ═══ */
.advent-reward {
  position: absolute;
  inset: 0;
  z-index: 12;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.advent-reward.is-open {
  display: flex;
  animation: advent-fade 0.4s ease;
}

@keyframes advent-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.advent-reward-card {
  width: min(420px, 100%);
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(31, 107, 69, 0.18);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
  padding: 28px 22px 22px;
  text-align: center;
  position: relative;
  animation: advent-reward-fade 0.45s ease forwards;
}

@keyframes advent-reward-fade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.advent-reward-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: transparent;
  color: rgba(61, 37, 24, 0.5);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.15s, transform 0.15s;
}

.advent-reward-close:hover { color: #3d2518; transform: rotate(90deg); }

.advent-reward-day {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid #1f6b45;
  color: #1f6b45;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.55rem;
  font-weight: 700;
  margin-bottom: 10px;
  background: rgba(31, 107, 69, 0.08);
}

.advent-reward-title {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.75rem;
  color: #1a2e24;
  line-height: 1.15;
}

.advent-reward-label {
  margin: 8px 0 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c45a12;
}

.advent-reward-msg {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(26, 46, 36, 0.78);
  white-space: pre-line;
}

.advent-code-box {
  margin: 16px 0 8px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(61, 37, 24, 0.06);
  border: 2px dashed #c9a227;
}

.advent-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #6b2832;
  word-break: break-all;
}

.advent-reward-actions {
  margin-top: 16px;
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.advent-btn {
  appearance: none;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.advent-btn:hover { transform: translateY(-2px); }

.advent-btn-primary {
  background: linear-gradient(135deg, #c9a227, #a08020);
  color: #1a0f0a;
  box-shadow: 0 4px 14px rgba(201, 162, 39, 0.35);
}

.advent-btn-ghost {
  background: rgba(61, 37, 24, 0.08);
  color: #3d2518;
  border: 1px solid rgba(61, 37, 24, 0.15);
}

.advent-email-row {
  margin-top: 14px;
  display: none;
  gap: 8px;
  flex-direction: column;
  width: 100%;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.advent-email-row.is-visible { display: flex; }

.advent-email-row .advent-email-input {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(61, 37, 24, 0.2);
  background: #fff;
  color: #3d2518;
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
}

.advent-email-row .advent-email-input:focus {
  border-color: #c9a227;
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.2);
}

.advent-terms {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(61, 37, 24, 0.75);
  cursor: pointer;
}

.advent-terms input {
  margin-top: 2px;
  accent-color: #c9a227;
  cursor: pointer;
}

.advent-terms a {
  color: #8b2332;
  text-decoration: underline;
}

.advent-email-row .advent-claim-confirm { width: 100%; }

.advent-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  background: #3d2518;
  color: #fff3c4;
  border: 1px solid rgba(201, 162, 39, 0.45);
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  z-index: 100010;
  font-family: "Outfit", sans-serif;
  transition: opacity 0.25s ease, transform 0.25s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.advent-toast.is-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

body.advent-no-scroll { overflow: hidden !important; }

/* ── Mobil ── */
@media (max-width: 560px) {
  .advent-stage {
    padding: 6px;
    align-items: stretch;
    justify-content: flex-start;
  }

  .advent-stage-panel {
    width: 100%;
    max-height: calc(100dvh - 12px);
    border-radius: 16px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .advent-board-frame {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 8px 6px 10px;
    border-radius: 12px;
    overflow: hidden;
  }

  .advent-stage-top {
    flex: 0 0 auto !important;
    position: relative !important;
    z-index: 5;
    margin-bottom: 10px;
    padding-bottom: 2px;
    background: #fff;
  }

  .advent-brand-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding-right: 40px;
  }

  .advent-logo {
    width: 118px;
    max-height: 48px;
  }

  .advent-stage-brand {
    width: 100%;
    padding: 0;
  }

  .advent-kicker {
    font-size: 10px;
    margin-bottom: 2px;
  }

  .advent-title {
    font-size: 1.15rem;
    line-height: 1.15;
  }

  .advent-subtitle {
    font-size: 11px;
    margin-top: 3px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .advent-stage-close {
    top: 0;
    right: 0;
    width: 34px;
    height: 34px;
    z-index: 6;
  }

  .advent-stage-body {
    flex: 1 1 auto;
    min-height: 0;
    position: relative;
    display: flex;
    flex-direction: column;
  }

  .advent-view {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  .advent-grid {
    flex: 1 1 auto;
    width: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
    max-height: none;
    align-content: start;
  }

  .advent-door { animation: none; }
  .advent-door-knob { width: 6px; height: 6px; right: 5px; }
  .advent-door-num { font-size: clamp(0.85rem, 3.2vw, 1rem); }
  .advent-door-icon { font-size: 0.55rem; }
  .advent-door-badge { width: 12px; height: 12px; font-size: 7px; }
  .advent-door-reveal-icon { font-size: 0.85rem; }
  .advent-door-reveal-day { font-size: 0.9rem; }
  .advent-door-reveal-tag { font-size: 0.65rem; }

  .advent-footer-note {
    flex: 0 0 auto;
    font-size: 10px;
    margin-top: 8px;
  }

  .advent-reward {
    position: absolute;
    inset: 0;
  }
}

@media (max-width: 560px) and (max-height: 720px) {
  .advent-subtitle { display: none; }
  .advent-logo { width: 100px; max-height: 40px; }
  .advent-title { font-size: 1.05rem; }
  .advent-stage-top { margin-bottom: 6px; }
  .advent-grid { gap: 4px; }
}

@media (max-width: 560px) and (max-height: 640px) {
  .advent-footer-note { display: none; }
  .advent-kicker { display: none; }
  .advent-logo { width: 88px; max-height: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  .advent-door,
  .advent-fab,
  .advent-garland-bulb,
  .advent-door-reveal-glow,
  .advent-door.is-available .advent-door-sash,
  .advent-door.is-animating.is-sash-open .advent-door-sash,
  .advent-board-snow i {
    animation: none !important;
  }
  .advent-door-sash,
  .advent-ceremony-sash {
    transition-duration: 0.01ms !important;
  }
}
