/* Eve Countdown Interactive Tool Styles — Midnight Champagne Gala */
.ewf-stage [hidden] { display: none !important; }

.ewf-stage {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 60px);
  min-height: calc(100svh - 60px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(circle at 18% 16%, rgba(243, 201, 105, 0.14), transparent 36%),
    radial-gradient(circle at 84% 20%, rgba(225, 59, 110, 0.16), transparent 34%),
    radial-gradient(circle at 52% 88%, rgba(65, 90, 200, 0.18), transparent 46%),
    linear-gradient(180deg, #080b1d 0%, #101635 55%, #181a40 100%);
  color: #f8f9ff;
  padding: 46px 0 84px;
}

/* Festive NYE string lights pinned to top of full-viewport stage */
.ewf-garland {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 44px;
  pointer-events: none;
  overflow: hidden;
  z-index: 2;
}
.ewf-garland svg {
  width: 100%;
  height: 44px;
  display: block;
}
.ewf-bulb-glow {
  animation: ewfTwinkle 3.2s ease-in-out infinite alternate;
}
.ewf-bulb-glow:nth-child(2n) { animation-delay: 0.7s; }
.ewf-bulb-glow:nth-child(3n) { animation-delay: 1.4s; }
@keyframes ewfTwinkle {
  0% { opacity: 0.72; }
  100% { opacity: 1; }
}

/* Subtle starry & fireworks sky layer */
.ewf-sky-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.ewf-stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 8% 18%, rgba(255, 244, 210, 0.78), transparent),
    radial-gradient(1.5px 1.5px at 22% 12%, rgba(255, 255, 255, 0.62), transparent),
    radial-gradient(2px 2px at 38% 24%, rgba(243, 201, 105, 0.72), transparent),
    radial-gradient(1.5px 1.5px at 56% 14%, rgba(255, 255, 255, 0.56), transparent),
    radial-gradient(2px 2px at 74% 19%, rgba(255, 190, 212, 0.65), transparent),
    radial-gradient(1.5px 1.5px at 91% 28%, rgba(243, 201, 105, 0.75), transparent),
    radial-gradient(1.5px 1.5px at 14% 58%, rgba(255, 255, 255, 0.45), transparent),
    radial-gradient(1.5px 1.5px at 86% 62%, rgba(243, 201, 105, 0.5), transparent),
    radial-gradient(2px 2px at 47% 72%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1.5px 1.5px at 66% 80%, rgba(243, 201, 105, 0.55), transparent);
}
.ewf-fw {
  position: absolute;
  width: 170px;
  height: 170px;
  opacity: 0.16;
}
.ewf-fw-left { top: 44px; left: -24px; }
.ewf-fw-right { top: 56px; right: -20px; width: 200px; height: 200px; opacity: 0.18; }

/* Midnight city skyline pinned along bottom edge */
.ewf-skyline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 92px;
  pointer-events: none;
  z-index: 1;
}
.ewf-skyline svg {
  width: 100%;
  height: 92px;
  display: block;
}

.ewf-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1160px;
  margin: auto;
  padding: 0 20px;
}

/* Preview-as-friend banner when owner tests friend view */
.ewf-preview-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(243, 201, 105, 0.16);
  border: 1px solid rgba(243, 201, 105, 0.55);
  color: #fff6dc;
  font-size: 13px;
  font-weight: 600;
}
.ewf-preview-back {
  padding: 6px 14px;
  border-radius: 999px;
  border: 0;
  background: #f3c969;
  color: #14182b;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.ewf-preview-back:hover { filter: brightness(1.06); }

/* Two-column hero centered inside full-viewport stage */
.ewf-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(340px, 0.88fr);
  gap: 28px;
  align-items: center;
}

.ewf-board-col { min-width: 0; }

.ewf-board-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.ewf-title-wrap h1 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 38px;
  line-height: 1.12;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}
.ewf-title-wrap h1 em {
  color: #f3c969;
  font-style: italic;
}
.ewf-sub {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #f3c969;
  letter-spacing: 0.01em;
}

.ewf-help-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  min-height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(16, 22, 53, 0.72);
  color: #f8f9ff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.16s ease, border-color 0.16s ease;
}
.ewf-help-pill:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(243, 201, 105, 0.65);
}
.ewf-help-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f3c969;
  color: #14182b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

/* Live board status bar */
.ewf-board-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.ewf-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(243, 201, 105, 0.35);
  color: #fff6dc;
  font-size: 12px;
  font-weight: 600;
}
.ewf-meta-pill strong { color: #f3c969; }

/* Art-Deco Framed 12-Door NYE Countdown Board */
.ewf-frame {
  border-radius: 20px;
  padding: 10px;
  background: linear-gradient(135deg, #dfae4b 0%, #8f621c 48%, #f3cc75 100%);
  box-shadow: 0 24px 54px rgba(3, 5, 16, 0.6), inset 0 1px 0 rgba(255, 245, 210, 0.6);
  transition: background 0.25s ease;
}
.ewf-mat {
  border-radius: 14px;
  padding: 12px 12px 9px;
  background-color: #131936;
  background-image:
    radial-gradient(rgba(243, 201, 105, 0.14) 1px, transparent 1px),
    radial-gradient(circle at 50% 0%, rgba(243, 201, 105, 0.14), transparent 65%);
  background-size: 18px 18px, 100% 100%;
  box-shadow: inset 0 0 0 1px rgba(243, 201, 105, 0.34), inset 0 8px 24px rgba(0, 0, 0, 0.44);
  transition: background-color 0.25s ease;
}

/* 5 Distinct NYE Board Themes */
.ewf-frame[data-style="midnight-gold"] { background: linear-gradient(135deg, #dfae4b 0%, #8d611c 48%, #f3cc75 100%); }
.ewf-frame[data-style="midnight-gold"] .ewf-mat { background-color: #131936; }

.ewf-frame[data-style="champagne-pop"] { background: linear-gradient(135deg, #eab9a4 0%, #a56455 50%, #f5d3c2 100%); }
.ewf-frame[data-style="champagne-pop"] .ewf-mat {
  background-color: #2b1726;
  background-image:
    radial-gradient(rgba(255, 224, 205, 0.16) 1.2px, transparent 1.2px),
    radial-gradient(circle at 50% 0%, rgba(255, 180, 198, 0.18), transparent 65%);
}

.ewf-frame[data-style="disco-velvet"] { background: linear-gradient(135deg, #cfd8ec 0%, #6f7c9b 50%, #edf2ff 100%); }
.ewf-frame[data-style="disco-velvet"] .ewf-mat {
  background-color: #1c1035;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 20px 20px;
}

.ewf-frame[data-style="fireworks-gala"] { background: linear-gradient(135deg, #f2c45a 0%, #b82e66 52%, #5240b8 100%); }
.ewf-frame[data-style="fireworks-gala"] .ewf-mat {
  background-color: #0c1026;
  background-image:
    radial-gradient(rgba(255, 222, 130, 0.16) 1.2px, transparent 1.2px),
    radial-gradient(circle at 20% 20%, rgba(225, 59, 110, 0.24), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(82, 64, 184, 0.25), transparent 50%);
  background-size: 20px 20px, 100% 100%, 100% 100%;
}

.ewf-frame[data-style="crystal-clock"] { background: linear-gradient(135deg, #e5c467 0%, #24575e 52%, #f4dc8a 100%); }
.ewf-frame[data-style="crystal-clock"] .ewf-mat {
  background-color: #0c2326;
  background-image:
    radial-gradient(rgba(229, 196, 103, 0.16) 1.2px, transparent 1.2px),
    radial-gradient(circle at 50% 50%, rgba(45, 165, 165, 0.18), transparent 65%);
  background-size: 18px 18px, 100% 100%;
}

/* 4x3 Grid of Tactile NYE Door Tiles */
.ewf-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.ewf-door {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  padding: 5px 2px 5px;
  border: 1.5px solid rgba(226, 206, 162, 0.85);
  border-radius: 13px;
  background: linear-gradient(180deg, #fbf4e4 0%, #f3e8d0 100%);
  color: #14182b;
  cursor: pointer;
  overflow: visible;
  font-family: inherit;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.ewf-door:hover {
  transform: translateY(-2px);
  border-color: #f3c969;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.44), 0 0 0 2px rgba(243, 201, 105, 0.65);
}
.ewf-door:focus-visible {
  outline: 3px solid #f3c969;
  outline-offset: 2px;
}

/* 5-Tier Progressive Door Surfaces & Live Animations */
.ewf-door[data-box-tier="1"] {
  background: linear-gradient(180deg, #fff8f2 0%, #f7e6d9 100%);
  border-color: #e4b9a6;
}
.ewf-door[data-box-tier="2"] {
  background: linear-gradient(180deg, #faf5ff 0%, #ece0fa 100%);
  border-color: #c3ace6;
}
.ewf-door[data-box-tier="3"] {
  background: linear-gradient(180deg, #fff9ea 0%, #f5e5be 100%);
  border-color: #d8a944;
  box-shadow: 0 5px 16px rgba(216, 169, 68, 0.34), inset 0 1px 0 rgba(255, 252, 236, 0.9);
}
.ewf-door[data-box-tier="4"] {
  background: linear-gradient(160deg, #fff7e2 0%, #fce3b4 54%, #f4ca82 100%);
  border: 2px solid #c92a54;
  box-shadow:
    0 0 0 1.5px rgba(243, 201, 105, 0.85),
    0 8px 24px rgba(178, 28, 66, 0.48),
    inset 0 1px 0 rgba(255, 250, 224, 0.95);
  animation: ewfSovereignPulse 3s ease-in-out infinite;
}
@keyframes ewfSovereignPulse {
  0%, 100% {
    box-shadow:
      0 0 0 1.5px rgba(243, 201, 105, 0.82),
      0 8px 22px rgba(178, 28, 66, 0.42),
      0 0 14px rgba(243, 201, 105, 0.35);
  }
  50% {
    box-shadow:
      0 0 0 2px rgba(255, 230, 146, 0.98),
      0 10px 28px rgba(196, 30, 74, 0.62),
      0 0 26px rgba(243, 201, 105, 0.72);
  }
}

/* Clipped sheen/sparkle overlay inside door tile */
.ewf-tile-fx {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

/* Tier 1 ($4.99): Soft pearl sheen */
.ewf-door[data-box-tier="1"] .ewf-tile-fx::after,
.ewf-box-opt[data-box-tier="1"] .ewf-tile-fx::after {
  content: "";
  position: absolute;
  top: -30%;
  left: -120%;
  width: 65%;
  height: 160%;
  background: linear-gradient(105deg, transparent 20%, rgba(255, 255, 255, 0.52) 50%, transparent 80%);
  transform: skewX(-18deg);
  animation: ewfSheen 5.6s ease-in-out infinite;
}

/* Tier 2 ($9.99): Metallic silver-violet diagonal sweep */
.ewf-door[data-box-tier="2"] .ewf-tile-fx::after,
.ewf-box-opt[data-box-tier="2"] .ewf-tile-fx::after {
  content: "";
  position: absolute;
  top: -30%;
  left: -120%;
  width: 70%;
  height: 160%;
  background: linear-gradient(105deg, transparent 15%, rgba(255, 255, 255, 0.66) 48%, rgba(212, 188, 255, 0.45) 62%, transparent 85%);
  transform: skewX(-20deg);
  animation: ewfSheen 4.4s ease-in-out infinite;
}

/* Tier 3 ($14.99): Warm gold shimmer sweep + rising sparks */
.ewf-door[data-box-tier="3"] .ewf-tile-fx::after,
.ewf-box-opt[data-box-tier="3"] .ewf-tile-fx::after {
  content: "";
  position: absolute;
  top: -30%;
  left: -120%;
  width: 75%;
  height: 160%;
  background: linear-gradient(105deg, transparent 15%, rgba(255, 238, 170, 0.62) 50%, transparent 85%);
  transform: skewX(-20deg);
  animation: ewfSheen 3.6s ease-in-out infinite;
}

/* Tier 4 ($19.99 Sovereign): Radiant pulsing golden crown halo + fast 24K liquid-gold sweep */
.ewf-door[data-box-tier="4"] .ewf-tile-fx::before,
.ewf-box-opt[data-box-tier="4"] .ewf-tile-fx::before {
  content: "";
  position: absolute;
  top: -12%;
  left: 50%;
  width: 118%;
  height: 78%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255, 220, 108, 0.68) 0%, rgba(214, 40, 96, 0.2) 48%, transparent 72%);
  animation: ewfHaloBreath 2.6s ease-in-out infinite;
}
.ewf-door[data-box-tier="4"] .ewf-tile-fx::after,
.ewf-box-opt[data-box-tier="4"] .ewf-tile-fx::after {
  content: "";
  position: absolute;
  top: -30%;
  left: -120%;
  width: 82%;
  height: 160%;
  background: linear-gradient(108deg, transparent 12%, rgba(255, 248, 206, 0.78) 46%, rgba(243, 195, 76, 0.45) 58%, transparent 86%);
  transform: skewX(-22deg);
  animation: ewfSheen 2.7s ease-in-out infinite;
}

@keyframes ewfSheen {
  0%, 58% { left: -125%; }
  100% { left: 155%; }
}
@keyframes ewfHaloBreath {
  0%, 100% { opacity: 0.62; transform: translateX(-50%) scale(0.95); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.08); }
}

/* Twinkling & Rising Stardust Particles inside Tier 2/3/4 tiles */
.ewf-spark {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff 0%, #f7cb57 58%, transparent 100%);
  pointer-events: none;
  z-index: 3;
}
.ewf-spark.is-silver {
  background: radial-gradient(circle, #ffffff 0%, #c8b6ff 60%, transparent 100%);
  animation: ewfStarBlink 2.2s ease-in-out infinite;
}
.ewf-spark.is-rise {
  animation: ewfSparkRise 2.6s ease-out infinite;
}
.ewf-spark.is-ruby {
  width: 7px;
  height: 7px;
  background: radial-gradient(circle, #fff8d4 0%, #ff5c8a 52%, transparent 100%);
  animation: ewfSparkRise 2.2s ease-out infinite;
}
.ewf-spark.s1 { left: 16%; top: 26%; animation-delay: 0s; }
.ewf-spark.s2 { right: 15%; top: 22%; animation-delay: 0.65s; }
.ewf-spark.s3 { left: 24%; top: 52%; animation-delay: 1.2s; }
.ewf-spark.s4 { right: 20%; top: 48%; animation-delay: 1.75s; }
.ewf-spark.s5 { left: 50%; top: 14%; animation-delay: 0.35s; }

@keyframes ewfStarBlink {
  0%, 100% { opacity: 0.15; transform: scale(0.5); }
  50% { opacity: 1; transform: scale(1.25); }
}
@keyframes ewfSparkRise {
  0% { opacity: 0; transform: translateY(14px) scale(0.4); }
  25% { opacity: 1; transform: translateY(4px) scale(1.15); }
  100% { opacity: 0; transform: translateY(-20px) scale(0.3); }
}

/* Selected door in Friend View or OPEN demo door */
.ewf-door.is-selected {
  border: 2px solid #e13b6e;
  box-shadow: 0 0 0 3px rgba(225, 59, 110, 0.36), 0 10px 22px rgba(0, 0, 0, 0.42);
}

/* Corner number badge inside every ivory tile */
.ewf-door-num {
  position: absolute;
  top: 5px;
  left: 5px;
  z-index: 6;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #202640;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.14);
}
.ewf-door[data-door="12"]:not(.is-empty-slot) .ewf-door-num,
.ewf-door[data-box-tier="4"] .ewf-door-num {
  background: #7b122d;
  color: #ffe394;
}

/* Top pill like "OPEN", "NYE", or "👑 VIP" */
.ewf-top-pill {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  padding: 2px 8px;
  border-radius: 999px;
  background: #d62860;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.32);
}
.ewf-top-pill.is-nye {
  background: linear-gradient(135deg, #7d132f 0%, #b81d46 100%);
  color: #ffe699;
  border: 1px solid #f3c969;
}

/* Hand-painted Transparent WebP Gift Box Artwork — large & lush inside each door tile */
.ewf-gift-img {
  position: relative;
  z-index: 2;
  width: 122px;
  height: 122px;
  object-fit: contain;
  display: block;
  pointer-events: none;
  filter: drop-shadow(0 5px 8px rgba(20, 24, 43, 0.22));
  transition: transform 0.2s ease, filter 0.2s ease;
}
.ewf-door:hover .ewf-gift-img {
  transform: scale(1.05) translateY(-2px);
}
.ewf-door[data-box-tier="1"] .ewf-gift-img,
.ewf-door[data-box-tier="2"] .ewf-gift-img,
.ewf-door[data-box-tier="3"] .ewf-gift-img {
  width: 126px;
  height: 126px;
}
.ewf-door[data-box-tier="4"] .ewf-gift-img {
  width: 130px;
  height: 130px;
  filter: drop-shadow(0 6px 12px rgba(125, 19, 47, 0.38));
  animation: ewfSovereignFloat 2.8s ease-in-out infinite;
}
@keyframes ewfSovereignFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-2.5px) scale(1.03); }
}

/* Bottom gift-tag pill resting snugly over the lower rim of the box */
.ewf-door-cap {
  position: relative;
  z-index: 5;
  margin-top: -18px;
  padding: 2.5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #14182b;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  max-width: 92%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(14, 18, 36, 0.22);
}
.ewf-door[data-box-tier="4"] .ewf-door-cap {
  background: #6b0f27;
  color: #ffe8a6;
}
.ewf-door.is-ready {
  animation: ewfReadyPulse 2.4s ease-in-out infinite;
}
@keyframes ewfReadyPulse {
  0%, 100% { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28), 0 0 0 2px rgba(243, 201, 105, 0.55); }
  50% { box-shadow: 0 8px 20px rgba(243, 201, 105, 0.6), 0 0 0 3px rgba(255, 240, 184, 0.95); }
}
.ewf-door.is-opened .ewf-door-cap {
  background: #166534;
  color: #ffffff;
}

/* Empty slot look in Owner / Friend live views */
.ewf-door.is-empty-slot {
  background: rgba(9, 13, 31, 0.44);
  border: 1.5px dashed rgba(243, 201, 105, 0.44);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.28);
  color: #fff6dc;
  animation: none;
}
.ewf-door.is-empty-slot:hover {
  background: rgba(243, 201, 105, 0.12);
  border-color: #f3c969;
}
.ewf-door.is-empty-slot.is-selected {
  background: linear-gradient(180deg, #fffaf0 0%, #f5e9d0 100%);
  border: 2px solid #e13b6e;
  color: #14182b;
  box-shadow: 0 0 0 3px rgba(225, 59, 110, 0.35), 0 8px 18px rgba(0, 0, 0, 0.35);
}
.ewf-door.is-empty-slot.is-selected[data-box-tier="4"] {
  background: linear-gradient(160deg, #fff7e2 0%, #fce3b4 54%, #f4ca82 100%);
  border-color: #c92a54;
}
.ewf-door.is-empty-slot.is-today-slot:not(.is-selected) {
  border: 2px solid #f3c969;
  box-shadow: 0 0 18px rgba(243, 201, 105, 0.32), inset 0 2px 10px rgba(0, 0, 0, 0.28);
}
.ewf-empty-num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
}
.ewf-door.is-empty-slot:not(.is-selected) .ewf-door-cap {
  margin-top: 4px;
  background: rgba(9, 13, 31, 0.65);
  color: #f3c969;
  box-shadow: none;
}
.ewf-door.is-empty-slot.is-selected .ewf-door-cap {
  background: #d62860;
  color: #ffffff;
}

/* Corner count badge when multiple friends fill a door */
.ewf-note-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 5;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: #d62860;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.28);
}

/* Footer strip inside the board mat (hint on left, sound button on right) */
.ewf-mat-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  padding-top: 6px;
}
.ewf-mat-hint {
  margin: 0;
  font-size: 12px;
  color: #cfd7f6;
}
.ewf-sound-pill {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(243, 201, 105, 0.45);
  background: rgba(255, 252, 245, 0.92);
  color: #14182b;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.14s ease, background 0.15s ease;
}
.ewf-sound-pill:hover { transform: scale(1.06); }
.ewf-sound-pill[aria-pressed="true"] {
  background: #f3c969;
  border-color: #fff0b8;
}

/* Interactive Confetti / Firework Particle Burst for Tier 3 & Tier 4 */
.ewf-burst-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1200;
  overflow: hidden;
}
.ewf-burst-p {
  position: fixed;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  pointer-events: none;
  will-change: transform, opacity;
  animation: ewfBurstFly 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes ewfBurstFly {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.5) rotate(0deg);
  }
  75% { opacity: 1; }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1.1) rotate(var(--rot));
  }
}

/* Right Column Warm Ivory Card */
.ewf-card {
  background: #fffcf5;
  color: #14182b;
  border-radius: 18px;
  padding: 20px 22px 18px;
  box-shadow: 0 24px 52px rgba(3, 5, 16, 0.48), 0 0 0 1px rgba(243, 201, 105, 0.35);
}
.ewf-card-intro {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.5;
  color: #202640;
}
.ewf-label {
  display: block;
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
  color: #464e6b;
}
.ewf-input,
.ewf-textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #dcd5c5;
  border-radius: 11px;
  background: #ffffff;
  color: #14182b;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.4;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.ewf-input:focus,
.ewf-textarea:focus {
  outline: none;
  border-color: #d62860;
  box-shadow: 0 0 0 3px rgba(214, 40, 96, 0.16);
}
.ewf-field { margin-bottom: 12px; }

/* Board Style selector pills */
.ewf-style-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 8px;
}
.ewf-style-row-deluxe {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 0;
}
.ewf-style-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 6px 8px;
  border-radius: 10px;
  border: 1.5px solid #e2dbcc;
  background: #f5f1e6;
  color: #1f243b;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.ewf-style-btn:hover { border-color: #c88d1e; }
.ewf-style-btn.is-active {
  background: #ffffff;
  border-color: #d62860;
  color: #14182b;
  box-shadow: 0 0 0 2px rgba(214, 40, 96, 0.18);
}
.ewf-style-btn.is-gala {
  background: linear-gradient(125deg, #1b2255 0%, #4d297a 55%, #8f2255 100%);
  color: #ffffff;
  border-color: transparent;
}
.ewf-style-btn.is-crystal {
  background: linear-gradient(125deg, #102a30 0%, #1d4c52 58%, #8f6d24 100%);
  color: #ffffff;
  border-color: transparent;
}
.ewf-style-btn.is-gala.is-active,
.ewf-style-btn.is-crystal.is-active {
  border-color: #f3c969;
  box-shadow: 0 0 0 2px rgba(214, 40, 96, 0.35);
}

/* Unlock mode pills */
.ewf-mode-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.ewf-mode-btn {
  min-height: 36px;
  padding: 5px 6px;
  border-radius: 9px;
  border: 1.5px solid #e2dbcc;
  background: #f5f1e6;
  color: #2b324d;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.ewf-mode-btn.is-active {
  background: #14182b;
  border-color: #14182b;
  color: #f3c969;
}

/* Inline Friend Composer (Handwritten Lined Stationery + Stickers + 5 Box Cards) */
.ewf-composer-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.ewf-composer-thumb {
  width: 62px;
  height: 62px;
  flex-shrink: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #fbf4e4 0%, #f1e3c4 100%);
  border: 1.5px solid #e2d0a8;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.ewf-composer-thumb img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  position: relative;
  z-index: 2;
}
.ewf-composer-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.2;
  color: #14182b;
}
.ewf-composer-sub {
  margin: 2px 0 0;
  font-size: 12px;
  color: #555e7a;
}

.ewf-stationery {
  border-radius: 14px;
  border: 1.5px solid #e6dbc4;
  background: #fffdf8;
  padding: 12px 14px 10px;
  margin-bottom: 12px;
  box-shadow: inset 0 1px 3px rgba(20, 24, 43, 0.04);
}
.ewf-stationery-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  color: #7c6844;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.ewf-lined-ta {
  width: 100%;
  border: 0;
  background: repeating-linear-gradient(
    transparent,
    transparent 27px,
    rgba(210, 195, 165, 0.45) 27px,
    rgba(210, 195, 165, 0.45) 28px
  );
  color: #14182b;
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 28px;
  resize: vertical;
  min-height: 84px;
  padding: 0;
}
.ewf-lined-ta:focus { outline: none; }
.ewf-lined-ta::placeholder {
  color: #8a8372;
  font-style: italic;
}
.ewf-from-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed #d8ccb2;
  font-size: 13px;
  color: #5c5444;
  font-style: italic;
}
.ewf-from-input {
  flex: 1;
  border: 0;
  background: transparent;
  color: #14182b;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 2px 0;
}
.ewf-from-input:focus { outline: none; }

/* One-tap NYE starter ideas */
.ewf-ideas-wrap { margin-bottom: 12px; }
.ewf-ideas-label {
  font-size: 12px;
  font-weight: 700;
  color: #8a641b;
  margin-bottom: 6px;
}
.ewf-idea-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.ewf-idea-pill {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid #e4d2a5;
  background: #fdf6e4;
  color: #2b2416;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: background 0.14s ease, border-color 0.14s ease;
}
.ewf-idea-pill:hover {
  background: #faecc8;
  border-color: #c88d1e;
}

/* Circular Sticker Picker */
.ewf-sticker-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.ewf-sticker-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid #e2dbcc;
  background: #ffffff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.12s ease, border-color 0.14s ease;
}
.ewf-sticker-btn:hover { transform: scale(1.08); }
.ewf-sticker-btn.is-active {
  border-color: #d49b27;
  background: #fff6dc;
  box-shadow: 0 0 0 2px rgba(212, 155, 39, 0.28);
}

/* 5-Tier Visual Painted Gift Box Picker inside Friend Composer */
.ewf-box-picker {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 8px;
}
.ewf-box-opt {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 3px 6px;
  border-radius: 12px;
  border: 1.5px solid #e2dbcc;
  background: #fbf7ee;
  color: #14182b;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.14s ease, box-shadow 0.15s ease;
}
.ewf-box-opt[data-box-tier="1"] { background: linear-gradient(180deg, #fff9f5 0%, #f8ebe2 100%); }
.ewf-box-opt[data-box-tier="2"] { background: linear-gradient(180deg, #faf5ff 0%, #eee2fc 100%); }
.ewf-box-opt[data-box-tier="3"] { background: linear-gradient(180deg, #fff9ea 0%, #f6e7c3 100%); border-color: #dcb14e; }
.ewf-box-opt[data-box-tier="4"] {
  background: linear-gradient(160deg, #fff6de 0%, #fbe0ae 60%, #f3c67a 100%);
  border-color: #b81d46;
  box-shadow: 0 3px 10px rgba(184, 29, 70, 0.24);
}
.ewf-box-opt:hover { border-color: #c88d1e; transform: translateY(-2px); }
.ewf-box-opt.is-active {
  border: 2px solid #d62860;
  box-shadow: 0 0 0 2px rgba(214, 40, 96, 0.24), 0 4px 12px rgba(214, 40, 96, 0.18);
}
.ewf-box-opt-img {
  position: relative;
  z-index: 2;
  width: 60px;
  height: 60px;
  object-fit: contain;
  display: block;
}
.ewf-box-opt-name {
  position: relative;
  z-index: 2;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
}
.ewf-box-opt-price {
  position: relative;
  z-index: 2;
  font-size: 11px;
  font-weight: 700;
  color: #166534;
}
.ewf-box-opt[data-box-tier="1"] .ewf-box-opt-price,
.ewf-box-opt[data-box-tier="2"] .ewf-box-opt-price,
.ewf-box-opt[data-box-tier="3"] .ewf-box-opt-price {
  color: #7c4d0f;
}
.ewf-box-opt[data-box-tier="4"] .ewf-box-opt-price {
  color: #8f1436;
}
.ewf-deluxe-tag {
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  padding: 1px 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, #7d132f 0%, #b81d46 100%);
  color: #ffe89e;
  border: 1px solid #f3c969;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.ewf-tier-note {
  margin: 0 0 10px;
  padding: 7px 10px;
  border-radius: 9px;
  background: #f8f2e2;
  border: 1px solid #e6d7b2;
  font-size: 12px;
  line-height: 1.4;
  color: #3a3120;
}
.ewf-tier-note.is-sovereign {
  background: linear-gradient(90deg, #fff5e2 0%, #fce8e9 100%);
  border-color: #d98296;
  color: #5d1227;
  font-weight: 600;
}

/* Checkboxes */
.ewf-checks {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 11px;
  background: #f6f1e4;
  margin-bottom: 12px;
}
.ewf-check-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: #252c47;
  cursor: pointer;
}
.ewf-check-row input {
  margin-top: 3px;
  accent-color: #d62860;
}

/* Collapsible details */
.ewf-details { margin: 10px 0 14px; }
.ewf-details summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: #464e6b;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  user-select: none;
}
.ewf-details summary::-webkit-details-marker { display: none; }
.ewf-details summary::before { content: "▸"; display: inline-block; transition: transform 0.15s ease; }
.ewf-details[open] summary::before { transform: rotate(90deg); }
.ewf-details-body { margin-top: 10px; }

/* Primary & secondary buttons */
.ewf-cta {
  width: 100%;
  min-height: 46px;
  padding: 11px 18px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #e84376 0%, #c41e55 100%);
  color: #ffffff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(196, 30, 85, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition: transform 0.14s ease, filter 0.14s ease;
}
.ewf-cta:hover { filter: brightness(1.06); transform: translateY(-1px); }
.ewf-cta:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }
.ewf-cta:focus-visible { outline: 3px solid #14182b; outline-offset: 2px; }

.ewf-btn-sec {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 9px 14px;
  border-radius: 11px;
  border: 1.5px solid #d5cebe;
  background: #ffffff;
  color: #14182b;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.ewf-btn-sec:hover { border-color: #14182b; background: #f7f3e8; }

.ewf-card-foot {
  margin: 12px 0 0;
  text-align: center;
  font-size: 13px;
  color: #4b526b;
  line-height: 1.5;
}
.ewf-card-foot a,
.ewf-link-btn {
  color: #b81d52;
  font-weight: 700;
  text-decoration: underline;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}
.ewf-trust {
  margin: 8px 0 0;
  text-align: center;
  font-size: 12px;
  color: #2f6b47;
  font-weight: 600;
}

.ewf-msg-inline {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}
.ewf-msg-inline.is-err { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.ewf-msg-inline.is-ok { background: #ecfdf5; color: #14532d; border: 1px solid #bbf7d0; }
.ewf-msg-inline.is-info { background: #fffbeb; color: #78350f; border: 1px solid #fde68a; }

/* Owner Share Toolkit */
.ewf-share-box { display: flex; gap: 8px; margin-bottom: 10px; }
.ewf-share-box .ewf-input { font-size: 13px; padding: 10px 12px; background: #f5f1e6; }
.ewf-action-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.ewf-code-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 11px;
  background: #14182b;
  color: #ffffff;
  margin-bottom: 10px;
}
.ewf-code-val {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #f3c969;
}
.ewf-code-copy {
  min-height: 34px;
  padding: 5px 12px;
  border: 1px solid rgba(243, 201, 105, 0.55);
  border-radius: 8px;
  background: rgba(243, 201, 105, 0.14);
  color: #fff6dc;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.ewf-code-copy:hover { background: rgba(243, 201, 105, 0.28); }

.ewf-pw-banner {
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff7e0;
  border: 1px solid #ecd28b;
  color: #543b06;
  font-size: 13px;
  line-height: 1.45;
  margin-bottom: 10px;
}
.ewf-pw-banner code {
  font-weight: 700;
  background: rgba(20, 24, 43, 0.08);
  padding: 1px 6px;
  border-radius: 5px;
}

/* Welcome Back strip & Bottom Dock */
.ewf-below-hero {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.ewf-scroll-dock {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 3;
}
.ewf-scroll-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(12, 16, 38, 0.84);
  backdrop-filter: blur(6px);
  color: #f8f9ff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.ewf-scroll-pill:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(243, 201, 105, 0.72);
}

.ewf-recent-wrap {
  width: 100%;
  max-width: 720px;
  padding: 10px 16px;
  border-radius: 14px;
  background: rgba(15, 20, 48, 0.84);
  border: 1px solid rgba(243, 201, 105, 0.34);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.ewf-recent-title { font-size: 13px; font-weight: 700; color: #f3c969; }
.ewf-recent-list { display: flex; flex-wrap: wrap; gap: 8px; }
.ewf-recent-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.ewf-recent-chip:hover { background: rgba(243, 201, 105, 0.22); border-color: #f3c969; }

/* Modal Backdrop & Dialog */
.ewf-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(7, 10, 26, 0.78);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.ewf-modal {
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 18px;
  background: #fffcf5;
  color: #14182b;
  padding: 24px;
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.55);
  position: relative;
}
.ewf-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.ewf-modal-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.2;
  color: #14182b;
}
.ewf-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #dfd8c8;
  background: #ffffff;
  color: #14182b;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ewf-close:hover { background: #f3ede0; }

/* Modal Box Banner Preview */
.ewf-modal-box-showcase {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 13px;
  background: linear-gradient(90deg, #fbf4e4 0%, #f6ebd1 100%);
  border: 1px solid #e3d1a8;
  margin-bottom: 12px;
}
.ewf-modal-box-showcase.is-sovereign {
  background: linear-gradient(90deg, #fff5dc 0%, #fce3e7 100%);
  border-color: #c92a54;
}
.ewf-modal-box-showcase img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  flex-shrink: 0;
}
.ewf-modal-box-label {
  font-size: 13px;
  font-weight: 700;
  color: #14182b;
}
.ewf-modal-box-sub {
  font-size: 12px;
  color: #555e7a;
}

/* Rendered Secret Note Postcard inside Reveal / Demo Modal */
.ewf-note-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 14px; }
.ewf-note-card {
  border-radius: 14px;
  padding: 18px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(10, 12, 26, 0.16);
}
.ewf-note-card[data-wrap="classic-gold"],
.ewf-note-card[data-wrap="gold-foil"] {
  background: linear-gradient(135deg, #252042 0%, #44311b 100%);
  border: 1.5px solid #f3c969;
}
.ewf-note-card[data-wrap="champagne-foil"],
.ewf-note-card[data-wrap="rose-sparkler"] {
  background: linear-gradient(135deg, #5c1c39 0%, #9b355c 100%);
  border: 1.5px solid #f7c3b5;
}
.ewf-note-card[data-wrap="disco-mirror"],
.ewf-note-card[data-wrap="violet-disco"] {
  background: linear-gradient(135deg, #2a1452 0%, #582891 100%);
  border: 1.5px solid #d5b4ff;
}
.ewf-note-card[data-wrap="fireworks-burst"],
.ewf-note-card[data-wrap="midnight-star"] {
  background: linear-gradient(135deg, #0f1940 0%, #243b7a 100%);
  border: 1.5px solid #f3c969;
}
.ewf-note-card[data-wrap="royal-midnight"],
.ewf-note-card[data-wrap="emerald-champagne"] {
  background: linear-gradient(135deg, #4b0c1e 0%, #801534 55%, #3d0918 100%);
  border: 2px solid #f3c969;
  box-shadow: 0 12px 28px rgba(112, 16, 44, 0.42), inset 0 0 0 1px rgba(255, 232, 158, 0.32);
}
.ewf-note-tag {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff6dc;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
}
.ewf-note-text {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.55;
  color: #ffffff;
  white-space: pre-wrap;
  word-break: break-word;
}
.ewf-note-from { font-size: 13px; font-weight: 700; color: #f3c969; }
.ewf-note-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ewf-note-mini-btn {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.ewf-note-mini-btn:hover { background: rgba(255, 255, 255, 0.22); }

.ewf-story-preview {
  display: block;
  width: 100%;
  max-width: 260px;
  margin: 12px auto;
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}

@media (prefers-reduced-motion: reduce) {
  .ewf-bulb-glow,
  .ewf-door[data-box-tier="4"],
  .ewf-door[data-box-tier="4"] .ewf-gift-img,
  .ewf-door .ewf-tile-fx::before,
  .ewf-door .ewf-tile-fx::after,
  .ewf-box-opt .ewf-tile-fx::before,
  .ewf-box-opt .ewf-tile-fx::after,
  .ewf-spark {
    animation: none !important;
  }
}

@media (max-width: 960px) {
  .ewf-hero-grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 640px) {
  .ewf-stage {
    min-height: calc(100svh - 54px);
    padding: 50px 0 96px;
    justify-content: flex-start;
  }
  .ewf-inner { padding: 0 14px; margin: 0 auto; }
  .ewf-title-wrap h1 { font-size: 29px; }
  .ewf-mat { padding: 10px 10px 8px; }
  .ewf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .ewf-door { min-height: 116px; padding: 3px 1px 4px; }
  .ewf-gift-img { width: 96px; height: 96px; }
  .ewf-door[data-box-tier="1"] .ewf-gift-img,
  .ewf-door[data-box-tier="2"] .ewf-gift-img,
  .ewf-door[data-box-tier="3"] .ewf-gift-img { width: 98px; height: 98px; }
  .ewf-door[data-box-tier="4"] .ewf-gift-img { width: 102px; height: 102px; }
  .ewf-door-cap { margin-top: -15px; font-size: 10.5px; padding: 2px 7px; }
  .ewf-card { padding: 18px 15px 16px; }
  .ewf-box-picker { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ewf-box-opt-img { width: 54px; height: 54px; }
  .ewf-action-grid { grid-template-columns: 1fr; }
}