:root {
  --bg: #0a0f24;
  --bg-2: #141a3a;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-strong: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.09);
  --text: #f6f4ff;
  --muted: #a8aecb;
  --gold: #ffcf5c;
  --gold-2: #ffb03a;
  --red: #ff5b6e;
  --green: #3ddc97;
  --radius: 22px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.6);
  --font-head: "Unbounded", "Noto Sans Armenian", system-ui, sans-serif;
  --font-body: "Manrope", "Noto Sans Armenian", system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(255, 91, 110, 0.18), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(98, 112, 255, 0.22), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  background-attachment: fixed;
  color: var(--text);
  font: 400 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

#snow { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.wrap { position: relative; z-index: 1; width: min(1160px, 100% - 32px); margin: 0 auto; }

/* Header */
header {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(10, 15, 36, 0.6);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font: 700 22px/1 var(--font-head); letter-spacing: -0.02em; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--red), var(--gold-2)); font-size: 18px;
  box-shadow: 0 8px 24px -8px rgba(255, 91, 110, 0.7);
}
.nav-links { display: flex; gap: 28px; color: var(--muted); font-weight: 600; font-size: 15px; }
.nav-links a:hover { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-signin { color: var(--muted); font-weight: 700; font-size: 15px; }
.nav-signin:hover { color: var(--text); }
.hero-note { color: var(--muted); font-size: 15px; margin: 22px 0 0; }
.hero-note a { color: var(--gold); font-weight: 700; }
.lang { display: flex; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 3px; }
.lang button {
  border: 0; background: transparent; color: var(--muted); font: 700 12px/1 var(--font-body);
  padding: 7px 10px; border-radius: 999px; cursor: pointer;
}
.lang button.active { background: var(--surface-strong); color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; border: 1px solid transparent;
  font: 700 16px/1 var(--font-body); cursor: pointer; transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:disabled { opacity: 0.6; cursor: default; transform: none; }
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: #2a1a00;
  box-shadow: 0 14px 34px -12px rgba(255, 176, 58, 0.75);
}
.btn-ghost { background: var(--surface); border-color: var(--border); color: var(--text); }
.btn-ghost:hover { background: var(--surface-strong); }
.btn-sm { padding: 10px 18px; font-size: 14px; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; padding: 84px 0 72px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  background: rgba(61, 220, 151, 0.1); border: 1px solid rgba(61, 220, 151, 0.25); color: var(--green);
  font-weight: 700; font-size: 13px; letter-spacing: 0.02em;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); }
h1, h2, h3 { font-family: var(--font-head); letter-spacing: -0.025em; margin: 0; overflow-wrap: break-word; }
/* Grid children may shrink below their longest word (long Armenian/Russian words would widen the page). */
.hero > *, .products > *, .steps > *, .plans > *, .privacy > * { min-width: 0; }
h1 { font-size: clamp(38px, 5.4vw, 64px); line-height: 1.05; font-weight: 700; margin: 22px 0 20px; }
h1 .accent {
  background: linear-gradient(120deg, var(--gold) 10%, var(--red) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { color: var(--muted); font-size: 19px; max-width: 34em; margin: 0 0 32px; }
.cta { display: flex; gap: 14px; flex-wrap: wrap; }
.cta.center { justify-content: center; }
.hero-art { position: relative; }
.hero-art::before {
  content: ""; position: absolute; inset: 8% -4% -6% 6%;
  background: radial-gradient(closest-side, rgba(255, 176, 58, 0.35), transparent); filter: blur(30px);
}
.hero-card {
  position: relative; border-radius: 28px; overflow: hidden; border: 1px solid var(--border);
  box-shadow: var(--shadow); transform: rotate(1.5deg);
}
.hero-badge {
  position: absolute; left: -18px; bottom: 26px; display: flex; gap: 12px; align-items: center;
  padding: 14px 18px; border-radius: 18px; background: rgba(20, 26, 58, 0.92); border: 1px solid var(--border);
  box-shadow: var(--shadow); font-size: 14px; font-weight: 600; transform: rotate(-2deg);
}
.hero-badge b { display: block; font-size: 15px; }
.hero-badge span { color: var(--muted); font-weight: 500; }

/* Sections */
section { padding: 72px 0; }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; margin-bottom: 14px; }
.section-head p { color: var(--muted); margin: 0; font-size: 18px; }
.kicker { color: var(--gold); font-weight: 800; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 14px; }

.card {
  /* Dense enough that falling snow doesn't cross the text, with the background softly blurred behind. */
  background: rgba(22, 28, 62, 0.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: transform 0.2s ease, border-color 0.2s, background 0.2s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, 0.16); }

/* Products */
.products { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 20px; }
.product { display: flex; flex-direction: column; gap: 14px; min-height: 280px; }
.product .emoji { font-size: 40px; line-height: 1; }
.product h3 { font-size: 22px; }
.product p { color: var(--muted); margin: 0; flex: 1; }
.product.featured {
  grid-row: span 2;
  background: linear-gradient(160deg, rgba(74, 34, 66, 0.9), rgba(40, 34, 60, 0.85) 60%, rgba(22, 28, 62, 0.8));
  border-color: rgba(255, 176, 58, 0.3);
}
.product.featured h3 { font-size: 30px; }
.product ul { margin: 4px 0 8px; padding: 0; list-style: none; display: grid; gap: 10px; }
.product li { display: flex; gap: 10px; align-items: flex-start; }
.product li::before { content: "✦"; color: var(--gold); }
.tag { align-self: flex-start; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: 0.04em; }
.tag-live { background: rgba(61, 220, 151, 0.14); color: var(--green); }
.tag-soon { background: var(--surface-strong); color: var(--muted); }
.product.soon { opacity: 0.85; }
.product .actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; margin-bottom: 18px;
  background: linear-gradient(135deg, var(--red), var(--gold-2)); color: #fff; font: 700 17px/1 var(--font-head);
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--muted); margin: 0; font-size: 15px; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { display: flex; flex-direction: column; gap: 18px; position: relative; }
.plans-paid { display: contents; }
.plans-4 { grid-template-columns: repeat(4, 1fr); }
.plans-4 .price { font-size: 30px; white-space: nowrap; }
.promo-row { margin: 4px 0 18px; position: relative; z-index: 2; }
/* The checkout makes its buttons full-width; in the promo row the field takes the room, the button its text. */
.checkout-card .promo-row .btn { width: auto; flex: none; }
.promo-row .copy-input { flex: 1 1 auto; min-width: 0; padding: 13px 16px; font-size: 16px; }
.plan h3 { font-size: 20px; }
.price { font: 700 40px/1 var(--font-head); letter-spacing: -0.03em; }
.price small { display: block; margin-top: 10px; font: 600 15px/1.2 var(--font-body); color: var(--muted); letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; flex: 1; color: var(--muted); }
.plan li { display: flex; gap: 10px; }
.plan li::before { content: "✓"; color: var(--green); font-weight: 800; }
.plan.best {
  background: linear-gradient(170deg, rgba(70, 58, 52, 0.9), rgba(22, 28, 62, 0.8) 55%);
  border-color: rgba(255, 207, 92, 0.45); box-shadow: 0 30px 80px -30px rgba(255, 176, 58, 0.45);
}
.ribbon {
  position: absolute; top: -13px; right: 22px; padding: 6px 14px; border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: #2a1a00; font-weight: 800; font-size: 12px;
}
.note { margin-top: 22px; color: var(--muted); font-size: 15px; display: flex; gap: 10px; align-items: center; }

/* Privacy */
.privacy { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.privacy .icon { font-size: 28px; margin-bottom: 12px; }
.privacy h3 { font-size: 18px; margin-bottom: 8px; }
.privacy p { color: var(--muted); margin: 0; font-size: 15px; }

/* FAQ */
.faq { display: grid; gap: 12px; }
details { background: rgba(22, 28, 62, 0.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid var(--border); border-radius: 18px; padding: 0; transition: border-color 0.2s, background 0.2s, box-shadow 0.2s; }
details:hover { border-color: rgba(255, 176, 58, 0.35); }
details[open] { border-color: rgba(255, 176, 58, 0.45); background: rgba(28, 34, 74, 0.82); box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25); }
summary { cursor: pointer; font-weight: 700; font-size: 17px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; border-radius: 18px; outline: none; }
summary:focus-visible { box-shadow: 0 0 0 2px var(--gold) inset; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 176, 58, 0.12); color: var(--gold); font-size: 20px; line-height: 1; transition: transform 0.25s, background 0.2s; }
details[open] summary::after { transform: rotate(45deg); background: rgba(255, 176, 58, 0.22); }
details p { color: var(--muted); margin: 0; padding: 0 24px 22px; max-width: 70em; line-height: 1.6; animation: faq-in 0.25s ease; }
@keyframes faq-in { from { opacity: 0; transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { details p { animation: none; } }

/* CTA banner + footer */
.banner {
  text-align: center; padding: 56px 28px; border-radius: 30px; border: 1px solid rgba(255, 176, 58, 0.3);
  background: radial-gradient(600px 240px at 50% 0%, rgba(255, 176, 58, 0.25), transparent), var(--surface);
}
.banner h2 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 14px; }
.banner p { color: var(--muted); margin: 0 auto 28px; max-width: 32em; }
footer { padding: 40px 0 56px; color: var(--muted); font-size: 14px; }
.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--border); padding-top: 28px; }

/* Checkout */
.checkout { min-height: calc(100vh - 68px); display: grid; place-items: center; padding: 48px 0; }
.checkout-card { width: min(520px, 100%); padding: 36px; background: rgba(20, 26, 58, 0.94); }
.checkout-card h1 { font-size: 30px; margin: 0 0 8px; }
.summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  margin: 26px 0; padding: 20px; border-radius: 18px; background: var(--surface-strong); border: 1px solid var(--border);
}
.summary b { font-family: var(--font-head); font-size: 18px; }
.summary .muted { color: var(--muted); font-size: 14px; }
.summary .price { font-size: 26px; }
.test-banner {
  padding: 12px 16px; border-radius: 14px; background: rgba(255, 207, 92, 0.1); border: 1px solid rgba(255, 207, 92, 0.3);
  color: var(--gold); font-size: 14px; margin-bottom: 22px;
}
.status { margin-top: 18px; font-size: 15px; min-height: 24px; }
.status.error { color: var(--red); }
.status.ok { color: var(--green); }
.checkout-card .btn { width: 100%; }
.small-print { color: var(--muted); font-size: 13px; margin-top: 18px; text-align: center; }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 48px; gap: 40px; }
  .products { grid-template-columns: 1fr 1fr; }
  .product.featured { grid-column: span 2; grid-row: auto; }
  .steps { grid-template-columns: 1fr 1fr; }
  .plans, .plans-4, .privacy { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  h1 { font-size: 34px; hyphens: auto; }
  .lead { font-size: 17px; }
  .cta .btn { width: 100%; }
  .hero-card { transform: none; }
  .hero-badge { position: relative; left: 0; bottom: 0; margin: -22px 12px 0; transform: none; }
  .products, .steps { grid-template-columns: 1fr; }
  .product.featured { grid-column: auto; }
  .card { padding: 22px; }
  .nav-right .btn { display: none; }
  .checkout-card { padding: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .btn { transition: none; }
}

/* Registration form */
.co-lead { font-size: 16px; margin: 0 0 22px; }
.products-pick { display: grid; gap: 12px; margin-bottom: 22px; }
.pick {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); transition: border-color 0.2s, background 0.2s;
}
.pick:has(input:checked) { border-color: rgba(255, 207, 92, 0.6); background: rgba(255, 207, 92, 0.08); }
.pick input { accent-color: var(--gold-2); width: 18px; height: 18px; margin: 0; flex: none; }
.pick span { flex: 1; display: grid; gap: 2px; min-width: 0; }
.pick b { font-family: var(--font-head); font-size: 16px; }
.pick small { color: var(--muted); font-size: 13px; }
.pick em { font-style: normal; font: 700 17px/1 var(--font-head); white-space: nowrap; }
.field { display: grid; gap: 8px; margin-bottom: 16px; font-weight: 700; font-size: 14px; }
.field input {
  width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25); color: var(--text); font: 500 16px/1.2 var(--font-body); outline: none;
}
.field input:focus { border-color: rgba(255, 207, 92, 0.6); box-shadow: 0 0 0 4px rgba(255, 207, 92, 0.12); }
.field small { color: var(--muted); font-weight: 500; font-size: 13px; }
.done-icon { font-size: 54px; line-height: 1; margin-bottom: 14px; }

/* --- Website app (account, event, participant, admin) --- */
.app-nav { display: flex; gap: 22px; font-weight: 600; font-size: 15px; color: var(--muted); }
.app-nav a:hover { color: var(--text); }
.app-nav .nav-strong { color: var(--gold); }
.app-main { position: relative; z-index: 1; padding: 36px 0 80px; min-height: calc(100vh - 68px); }
.app-main h1 { font-size: clamp(26px, 3.4vw, 36px); margin: 0 0 18px; }
.app-main h2 { font-size: 21px; margin: 28px 0 14px; }
.app-main h3 { font-size: 17px; margin: 0 0 14px; }
.app-main .card { margin-bottom: 18px; }
.app-main .card:hover { transform: none; }
.card.narrow { max-width: 520px; margin: 24px auto; }
.card.highlight { border-color: rgba(255, 207, 92, 0.45); background: linear-gradient(170deg, rgba(70, 58, 52, 0.9), rgba(22, 28, 62, 0.85) 60%); }
.notice { padding: 12px 16px; border-radius: 14px; background: rgba(61, 220, 151, 0.1); border: 1px solid rgba(61, 220, 151, 0.3); color: var(--text); margin: 0 0 18px; }
.notice.error { background: rgba(255, 91, 110, 0.12); border-color: rgba(255, 91, 110, 0.4); }
.notice.warn { background: rgba(255, 207, 92, 0.1); border-color: rgba(255, 207, 92, 0.35); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-main { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: start; }
.grid-main > * { min-width: 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.event-card { display: block; padding: 18px; }
.event-card:hover { border-color: rgba(255, 207, 92, 0.4); }
.event-card b { font-family: var(--font-head); font-size: 16px; }
.badge { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 800; white-space: nowrap; background: var(--surface-strong); color: var(--muted); }
.badge-blue { background: rgba(98, 112, 255, 0.18); color: #b9c1ff; }
.badge-green { background: rgba(61, 220, 151, 0.15); color: var(--green); }
.badge-grey { background: var(--surface-strong); color: var(--muted); }
.badge-gold { background: rgba(255, 207, 92, 0.15); color: var(--gold); }
.event-summary { margin-bottom: 18px; }
.event-summary h2 { margin: 0; font-size: 22px; }
.event-summary p { margin: 8px 0 0; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.field select, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: 14px; border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25); color: var(--text); font: 500 16px/1.4 var(--font-body); outline: none; resize: vertical;
}
.field select:focus, .field textarea:focus { border-color: rgba(255, 207, 92, 0.6); }
.btn.wide { width: 100%; }
.btn-link { background: none; border: 0; padding: 0; color: var(--gold); font: 600 14px/1.4 var(--font-body); cursor: pointer; }
.btn-link.danger, .danger { color: var(--red); }
.check { display: flex; gap: 10px; align-items: center; font-weight: 600; margin: 8px 0; }
.check input { width: 18px; height: 18px; accent-color: var(--gold-2); }
.copy-row { display: flex; gap: 8px; }
.copy-input { flex: 1; min-width: 0; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--border); background: rgba(0, 0, 0, 0.25); color: var(--text); font: 500 14px/1.2 var(--font-body); }
.code-big { font: 700 34px/1 var(--font-head); letter-spacing: 0.08em; color: var(--gold); margin: 6px 0 18px; }
.code-input { text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700 !important; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th { text-align: left; color: var(--muted); font-weight: 700; font-size: 13px; padding: 8px 10px; border-bottom: 1px solid var(--border); }
td { padding: 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
td select { padding: 6px 8px; border-radius: 10px; border: 1px solid var(--border); background: rgba(0, 0, 0, 0.25); color: var(--text); }
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); margin-bottom: 16px; }
.tabs button { border: 0; background: transparent; color: var(--muted); font: 700 14px/1 var(--font-body); padding: 9px 14px; border-radius: 999px; cursor: pointer; }
.tabs button.active { background: var(--surface-strong); color: var(--text); }
.msg { padding: 14px 16px; border-radius: 14px; background: var(--surface-strong); margin-bottom: 12px; }
.msg p { margin: 6px 0; white-space: pre-wrap; }
.msg-actions { display: flex; gap: 16px; }
.wishlist p { margin: 6px 0; }
.free-text { white-space: pre-wrap; }
.history, .pairs { padding-left: 18px; color: var(--muted); }
.history li, .pairs li { margin: 6px 0; }
.pairs li { color: var(--text); }
@media (max-width: 860px) {
  .grid-main, .grid2 { grid-template-columns: 1fr; }
  .app-nav { gap: 14px; font-size: 14px; }
}
@media (max-width: 560px) {
  .app-nav a:first-child:not(:only-child) { display: none; }
  .copy-row { flex-direction: column; }
}
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 18px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* Legal pages: one article per language, shown for the current one */
html[lang="ru"] [data-lang-block]:not([data-lang-block="ru"]),
html[lang="en"] [data-lang-block]:not([data-lang-block="en"]),
html[lang="hy"] [data-lang-block]:not([data-lang-block="hy"]) { display: none; }
.legal-card { max-width: 860px; margin: 0 auto; }
.legal h2 { font-size: 19px; margin: 26px 0 10px; }
.legal p, .legal li { color: var(--muted); }
.legal li { margin: 6px 0; }
.legal b { color: var(--text); }

/* Business section: one panel — audience switch, benefits and numbers on the left, the request form on the right */
.biz-panel {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: start;
  padding: 48px; border-radius: 32px; border: 1px solid rgba(255, 207, 92, 0.22);
  background:
    radial-gradient(700px 360px at 0% 0%, rgba(98, 112, 255, 0.25), transparent 60%),
    radial-gradient(600px 320px at 100% 100%, rgba(255, 91, 110, 0.2), transparent 60%),
    rgba(20, 26, 58, 0.82);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 40px 100px -40px rgba(0, 0, 0, 0.7);
}
.biz-panel > * { min-width: 0; position: relative; }
.biz-panel h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.08; margin-bottom: 14px; }
.biz-lead { color: var(--muted); font-size: 18px; margin: 0 0 26px; max-width: 30em; }
.segmented { display: inline-flex; padding: 5px; gap: 4px; border-radius: 999px; background: rgba(0, 0, 0, 0.28); border: 1px solid var(--border); margin-bottom: 26px; }
.segmented button {
  display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer; padding: 11px 20px; border-radius: 999px;
  background: transparent; color: var(--muted); font: 700 15px/1 var(--font-body); transition: background 0.2s, color 0.2s;
}
.segmented button.active { background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: #2a1a00; box-shadow: 0 10px 26px -12px rgba(255, 176, 58, 0.8); }
.biz-benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.benefit { display: flex; gap: 14px; padding: 18px; border-radius: 18px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border); }
.benefit .ico {
  flex: none; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; font-size: 22px;
  background: linear-gradient(135deg, rgba(255, 207, 92, 0.22), rgba(255, 91, 110, 0.18)); border: 1px solid rgba(255, 207, 92, 0.25);
}
.benefit b { display: block; font-family: var(--font-head); font-size: 15px; margin-bottom: 4px; }
.benefit p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.biz-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--border); }
.stat b { display: block; font: 700 30px/1 var(--font-head); background: linear-gradient(120deg, var(--gold), var(--red)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { display: block; margin-top: 8px; color: var(--muted); font-size: 13px; line-height: 1.35; }
.biz-form {
  padding: 30px; border-radius: 24px; background: rgba(12, 16, 40, 0.92); border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.8);
}
.biz-form h3 { font-size: 22px; margin: 0 0 6px; }
.biz-form .muted.small { margin: 0 0 20px; }
@media (max-width: 960px) {
  .biz-panel { grid-template-columns: 1fr; padding: 28px; gap: 28px; }
}
@media (max-width: 560px) {
  .biz-panel { padding: 20px; border-radius: 24px; }
  .biz-benefits { grid-template-columns: 1fr; }
  .biz-stats { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .stat b { font-size: 22px; }
  .segmented button { padding: 10px 14px; font-size: 14px; }
}
.offers { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.offer { display: grid; gap: 4px; padding: 14px 16px; border-radius: 14px; background: var(--surface-strong); border: 1px solid var(--border); }
.offer:hover { border-color: rgba(255, 207, 92, 0.4); }
.offer p { margin: 4px 0 0; color: var(--muted); }

/* --- Motion (kept gentle; everything is off for prefers-reduced-motion) --- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
@keyframes float { 0%, 100% { transform: rotate(1.5deg) translateY(0); } 50% { transform: rotate(1.5deg) translateY(-10px); } }
.hero-card { animation: float 7s ease-in-out infinite; }
@keyframes pop-in { from { opacity: 0; transform: rotate(-2deg) translateY(16px) scale(.92); } to { opacity: 1; transform: rotate(-2deg); } }
.hero-badge { animation: pop-in 0.7s 0.9s both cubic-bezier(.2, .8, .3, 1.3); }
@keyframes pulse-dot { 0%, 100% { box-shadow: 0 0 0 0 rgba(61, 220, 151, 0.6); } 50% { box-shadow: 0 0 0 7px rgba(61, 220, 151, 0); } }
.eyebrow::before { animation: pulse-dot 2.2s infinite; }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-12deg); } 75% { transform: rotate(12deg); } }
.logo:hover .logo-mark { animation: wiggle 0.5s ease; }
.btn-primary:hover { box-shadow: 0 18px 40px -12px rgba(255, 176, 58, 0.9); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-card, .hero-badge, .eyebrow::before, .santa-hand, .santa-eye { animation: none; }
}

/* Price calculator */
.calc {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 36px; align-items: stretch; margin-top: 22px; padding: 34px;
  background: radial-gradient(520px 260px at 0% 0%, rgba(255, 176, 58, 0.14), transparent 70%),
              radial-gradient(420px 240px at 100% 100%, rgba(122, 140, 255, 0.14), transparent 70%), var(--surface);
}
.calc-left { display: flex; flex-direction: column; justify-content: center; }
.calc-label { font-family: var(--font-head); font-size: clamp(22px, 2.4vw, 28px); line-height: 1.2; }
.calc-sub { color: var(--muted); margin: 8px 0 22px; font-size: 15px; }
.calc-stepper { display: flex; align-items: center; gap: 10px; }
.calc-stepper .calc-step {
  flex: none; width: 52px; height: 52px; border-radius: 16px; border: 1px solid var(--border); background: rgba(255, 255, 255, 0.05);
  color: var(--text); font-size: 24px; cursor: pointer; transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.calc-stepper .calc-step:hover { background: rgba(255, 176, 58, 0.14); border-color: rgba(255, 176, 58, 0.45); }
.calc-stepper .calc-step:active { transform: scale(0.94); }
.calc-field {
  flex: 1 1 auto; min-width: 0; display: flex; align-items: baseline; gap: 10px; padding: 8px 18px; border-radius: 18px;
  border: 1px solid var(--border); background: rgba(0, 0, 0, 0.28); transition: border-color 0.2s, box-shadow 0.2s;
}
.calc-field:focus-within { border-color: rgba(255, 207, 92, 0.6); box-shadow: 0 0 0 4px rgba(255, 176, 58, 0.12); }
.calc-field input {
  flex: 1 1 auto; min-width: 0; width: 100%; border: 0; background: transparent; color: var(--text); outline: none;
  font: 700 40px/1.15 var(--font-head); -moz-appearance: textfield; appearance: textfield;
}
.calc-field input::-webkit-outer-spin-button, .calc-field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc-field input:focus-visible { outline: none; }
.calc-field span { color: var(--muted); font-weight: 600; }
.calc-result {
  display: flex; flex-direction: column; justify-content: center; padding: 28px; border-radius: 22px; text-align: center;
  background: linear-gradient(160deg, rgba(255, 176, 58, 0.16), rgba(0, 0, 0, 0.25) 60%); border: 1px solid rgba(255, 176, 58, 0.3);
}
.calc-result .name { color: var(--gold); font-weight: 700; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; }
.calc-result .sum { display: block; font: 700 clamp(34px, 4vw, 46px)/1.1 var(--font-head); margin: 10px 0 12px; }
.calc-hint { display: block; color: var(--muted); font-size: 13px; margin: 0 0 18px; }
.calc-result .btn { width: 100%; }
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; gap: 22px; padding: 22px; } .calc-field input { font-size: 34px; } }
.event-logo { max-height: 64px; max-width: 240px; margin-bottom: 16px; border-radius: 10px; }
.logo-preview { max-height: 80px; max-width: 260px; border-radius: 12px; background: #fff; padding: 8px; margin-bottom: 12px; }
.file-btn { cursor: pointer; }
.sign-select { padding: 9px 12px; border-radius: 12px; border: 1px solid var(--border); background: rgba(0, 0, 0, 0.25); color: var(--text); font: 600 14px var(--font-body); }

/* Site-wide polish */
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
::selection { background: rgba(255, 176, 58, 0.35); color: #fff; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
a, button, .btn { -webkit-tap-highlight-color: transparent; }
.btn { transition: transform 0.18s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease; }
.btn:hover:not(:disabled) { transform: translateY(-2px); }
.btn:active:not(:disabled) { transform: translateY(0); }
.btn-primary:hover:not(:disabled) { box-shadow: 0 10px 28px rgba(255, 176, 58, 0.35); }
.card { transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease; }
.card:hover { border-color: rgba(255, 176, 58, 0.3); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 8px; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline-offset: 0; }
* { scrollbar-width: thin; scrollbar-color: rgba(255, 176, 58, 0.35) transparent; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card { transition: none; }
  .btn:hover:not(:disabled), .card:hover { transform: none; }
}

/* Countdown, first reveal, confetti, landing totals */
.countdown { display: inline-flex; align-items: baseline; gap: 8px; margin-top: 4px; padding: 8px 16px; border-radius: 999px;
  background: rgba(255, 176, 58, 0.12); border: 1px solid rgba(255, 176, 58, 0.3); color: var(--muted); font-size: 14px; }
.countdown b { font-family: var(--font-head); font-size: 22px; color: var(--gold); }
.countdown.today { color: var(--gold); font-weight: 700; }
.reveal-card { animation: reveal 0.9s cubic-bezier(0.2, 0.8, 0.2, 1.15) both; transform-origin: top center; }
@keyframes reveal { from { opacity: 0; transform: perspective(900px) rotateX(-70deg) translateY(-12px); } }
.confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 1000; }
.hero-stats { margin: 14px 0 0; color: var(--gold); font-weight: 600; font-size: 15px; animation: faq-in 0.5s ease; }
@media (prefers-reduced-motion: reduce) { .reveal-card, .hero-stats { animation: none; } }
.product-title { white-space: pre-line; }
.product-title::first-line { color: var(--gold); }

/* Secret Santa as a gift */
.gift-banner {
  display: flex; align-items: center; gap: 22px; margin-top: 22px; padding: 24px 28px; border-radius: 24px;
  border: 1px solid rgba(255, 107, 107, 0.35);
  background: radial-gradient(420px 200px at 0% 50%, rgba(255, 107, 107, 0.2), transparent 70%),
              radial-gradient(420px 200px at 100% 50%, rgba(255, 176, 58, 0.16), transparent 70%), var(--surface);
}
.gift-banner-icon { flex: none; font-size: 46px; line-height: 1; animation: gift-bob 3.2s ease-in-out infinite; }
.gift-banner-text { flex: 1 1 auto; min-width: 0; }
.gift-banner h3 { font-family: var(--font-head); font-size: 20px; margin: 0 0 4px; }
.gift-banner p { color: var(--muted); margin: 0; font-size: 15px; }
.gift-banner .btn { flex: none; }
@keyframes gift-bob { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-6px) rotate(4deg); } }
@media (max-width: 700px) { .gift-banner { flex-direction: column; text-align: center; } .gift-banner .btn { width: 100%; } }

.checkout-card .copy-row .btn { width: auto; flex: none; }
.checkout-card .copy-row .copy-input { flex: 1 1 auto; min-width: 0; }

.gift-card { text-align: center; }
.gift-card .actions { justify-content: center; margin: 14px 0; }
.gift-card .btn.wide + .btn.wide { margin-top: 10px; }
.gift-hero { font-size: 72px; line-height: 1; margin: 4px 0 10px; animation: gift-bob 3.2s ease-in-out infinite; filter: drop-shadow(0 10px 24px rgba(255, 107, 107, 0.35)); }
.gift-from { color: var(--gold); font-weight: 700; margin: 6px 0 0; }
@media (prefers-reduced-motion: reduce) { .gift-banner-icon, .gift-hero { animation: none; } }

.gift-switch { margin: 6px 0 16px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 16px; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--border); }
.seg button {
  padding: 11px 12px; border: 0; border-radius: 12px; background: transparent; color: var(--muted); cursor: pointer;
  font: 700 15px/1.2 var(--font-body); transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.seg button:hover { color: var(--text); }
.seg button.active { background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: #1a1300; box-shadow: 0 6px 18px rgba(255, 176, 58, 0.3); }
.gift-note { margin: 10px 2px 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.checkout-card h1 + .gift-switch { margin-top: 14px; }
.gift-contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; margin-top: 12px; text-align: left; }
.gift-contacts small { grid-column: 1 / -1; font-size: 12.5px; }
.gift-contacts .field { margin: 0; }
@media (max-width: 560px) { .gift-contacts { grid-template-columns: 1fr; } }
.gift-sent { list-style: none; padding: 0; margin: 4px 0 12px; display: grid; gap: 6px; color: var(--text); }

/* Compact calculator */
.calc { max-width: none; margin: 18px 0 0; padding: 20px 24px; gap: 22px; grid-template-columns: 1fr 1fr; border-radius: 22px; }
.calc-label { font-size: 18px; }
.calc-sub { margin: 4px 0 12px; font-size: 13.5px; }
.calc-stepper { gap: 8px; }
.calc-stepper .calc-step { width: 40px; height: 40px; border-radius: 12px; font-size: 20px; }
.calc-field { padding: 4px 14px; border-radius: 14px; }
.calc-field input { font-size: 26px; }
.calc-field span { font-size: 14px; }
.calc-result { padding: 16px 18px; border-radius: 18px; }
.calc-result .name { font-size: 11.5px; }
.calc-result .sum { font-size: clamp(26px, 3vw, 32px); margin: 6px 0 6px; }
.calc-hint { font-size: 12px; margin: 0 0 12px; }
.calc-result .btn { padding-top: 11px; padding-bottom: 11px; }
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; padding: 18px; } .calc-field input { font-size: 24px; } }

/* Signed-in header */
.user-box { display: flex; align-items: center; gap: 10px; }
.user-chip {
  display: inline-flex; align-items: center; gap: 8px; max-width: 200px; padding: 4px 12px 4px 4px; border-radius: 999px;
  border: 1px solid var(--border); background: rgba(255, 255, 255, 0.04); color: var(--text); text-decoration: none; font-weight: 700; font-size: 14px;
  transition: border-color 0.2s, background 0.2s;
}
.user-chip:hover { border-color: rgba(255, 176, 58, 0.45); background: rgba(255, 176, 58, 0.08); }
.user-chip .avatar {
  flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #ff6b6b); color: #1a1300; font: 800 14px/1 var(--font-head);
}
.user-chip .user-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 700px) { .user-chip .user-name { display: none; } .user-chip { padding: 3px; } }

/* Account */
.acc-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 26px 28px; border-radius: 26px;
  border: 1px solid rgba(255, 176, 58, 0.25);
  background: radial-gradient(500px 220px at 0% 0%, rgba(255, 176, 58, 0.18), transparent 70%),
              radial-gradient(500px 220px at 100% 100%, rgba(255, 107, 107, 0.14), transparent 70%), var(--surface);
}
.acc-hero h1 { margin: 0 0 6px; }
.acc-hero p { margin: 0; max-width: 36em; }
.acc-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.acc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 16px 0 6px; }
.stat { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 18px; border: 1px solid var(--border); background: var(--surface); }
.stat .stat-icon { font-size: 26px; flex: none; color: inherit; }
.stat b { display: block; font: 700 22px/1.1 var(--font-head); }
.stat span { color: var(--muted); font-size: 13px; }
.new-event-card { margin-top: 16px; border-color: rgba(255, 176, 58, 0.35); animation: faq-in 0.3s ease; scroll-margin-top: 90px; }
.new-event-card .row-between h3 { margin: 0; }
.grid2 > * { min-width: 0; }
.grid2 input, .grid2 select { width: 100%; min-width: 0; }
.cards { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.event-card { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px; text-decoration: none; color: inherit; min-height: 150px; }
.event-card:hover { transform: translateY(-3px); }
.event-card h3 { font-family: var(--font-head); font-size: 18px; margin: 4px 0 0; overflow-wrap: anywhere; }
.event-meta { display: flex; gap: 14px; color: var(--muted); font-size: 14px; flex-wrap: wrap; }
.event-open { margin-top: auto; color: var(--gold); font-weight: 700; font-size: 14px; }
.days-chip { font-size: 12px; font-weight: 700; color: var(--gold); background: rgba(255, 176, 58, 0.12); padding: 4px 10px; border-radius: 999px; }
.add-card {
  align-items: center; justify-content: center; text-align: center; cursor: pointer; font: inherit; color: var(--muted);
  border: 1.5px dashed rgba(255, 176, 58, 0.35); background: rgba(255, 176, 58, 0.03);
}
.add-card:hover { color: var(--text); border-color: rgba(255, 176, 58, 0.7); background: rgba(255, 176, 58, 0.08); }
.add-card .plus { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 176, 58, 0.15); color: var(--gold); font-size: 26px; }
.empty-note { color: var(--muted); padding: 18px 20px; border: 1px dashed var(--border); border-radius: 18px; margin: 0; }
.acc-side { display: grid; gap: 16px; margin-top: 28px; }
.acc-side .card { margin: 0; }
.plan-card { background: linear-gradient(160deg, rgba(122, 140, 255, 0.14), transparent 70%), var(--surface); }
.plan-card h3 { font-family: var(--font-head); font-size: 22px; margin: 6px 0 14px; }
.plan-card .actions { margin: 0; }
@media (max-width: 860px) { .acc-stats { grid-template-columns: 1fr; } .acc-hero { padding: 20px; } }

/* Header fits longer words (Armenian, Russian) */
.nav-links a { white-space: nowrap; }
@media (max-width: 1240px) { .nav-links { gap: 18px; font-size: 14px; } }
html[lang="hy"] .nav-links { gap: 16px; font-size: 14px; }
html[lang="hy"] .nav-right { gap: 10px; }
@media (max-width: 1180px) { html[lang="hy"] .nav-links { display: none; } }

/* Intro on every page load: short and quiet */
.intro {
  position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 45%, rgba(23, 28, 72, 0.55) 0%, rgba(11, 15, 42, 0.4) 60%, rgba(7, 9, 32, 0.3) 100%);
  backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
  transition: opacity 0.5s ease;
}
.intro.out { opacity: 0; pointer-events: none; }
.intro-glow {
  position: absolute; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 176, 58, 0.25), transparent 70%); animation: intro-glow 0.9s ease-out both;
}
.intro-word { position: relative; font: 800 clamp(34px, 6vw, 54px)/1 var(--font-head); }
.intro-word i {
  display: inline-block; font-style: normal; opacity: 0;
  background: linear-gradient(180deg, #fff 25%, var(--gold) 85%); -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: intro-letter 0.45s ease-out both; animation-delay: calc(0.05s + var(--i) * 0.045s);
}
@keyframes intro-glow { from { transform: scale(0.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes intro-letter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Music on/off: a round speaker icon */
.sound-toggle {
  position: fixed; left: 18px; bottom: 18px; z-index: 900; width: 52px; height: 52px; padding: 0; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; color: var(--gold);
  border: 2px solid rgba(255, 176, 58, 0.7); background: rgba(16, 20, 52, 0.92);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 18px rgba(255, 176, 58, 0.25);
  transition: transform 0.2s, background 0.2s, color 0.2s, box-shadow 0.2s;
}
.sound-toggle svg { width: 24px; height: 24px; }
.sound-toggle:hover { transform: scale(1.07); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 26px rgba(255, 176, 58, 0.45); }
.sound-toggle.on { color: #1a1300; background: linear-gradient(135deg, var(--gold), var(--gold-2)); border-color: transparent; }


/* Hero scene: gates open, Santa comes with gifts */
.hero-card { position: relative; cursor: pointer; }
.scene { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; pointer-events: none; perspective: 900px; }
.gate { position: absolute; inset: 0; display: flex; }
.door {
  flex: 1; position: relative; transform-style: preserve-3d; backface-visibility: hidden;
  background:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.18) 0 2px, transparent 2px 46px),
    linear-gradient(160deg, #a3263c, #5c0f22);
  border: 3px solid #e9b44c; box-shadow: inset 0 0 0 6px rgba(233, 180, 76, 0.35), inset 0 0 60px rgba(0, 0, 0, 0.45);
}
.door.left { transform-origin: left center; border-right-width: 1.5px; }
.door.right { transform-origin: right center; border-left-width: 1.5px; }
.door::before { /* a wreath on each door */
  content: ""; position: absolute; top: 30%; width: 64px; height: 64px; border-radius: 50%;
  border: 10px solid #2f8f4e; box-shadow: 0 0 0 2px #1f6b38, inset 0 0 0 2px #1f6b38;
}
.door.left::before { right: 18%; }
.door.right::before { left: 18%; }
.door::after { /* golden handle */
  content: ""; position: absolute; top: 55%; width: 10px; height: 34px; border-radius: 6px; background: linear-gradient(#ffe08a, #c58b1d);
}
.door.left::after { right: 10px; }
.door.right::after { left: 10px; }
.scene-gifts span { position: absolute; bottom: 12%; font-size: 30px; opacity: 0; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4)); }
.scene-gifts span:nth-child(1) { left: 22%; }
.scene-gifts span:nth-child(2) { left: 70%; bottom: 16%; }
.scene-gifts span:nth-child(3) { left: 80%; }

.hero-card:not(.play) .gate { opacity: 0; } /* without the animation the picture is never covered */
.hero-card.play .door.left { animation: door-left 9s ease-in-out both; }
.hero-card.play .door.right { animation: door-right 9s ease-in-out both; }
.hero-card.play .scene-gifts span { animation: gift-pop 9s ease-out both; }
.hero-card.play .scene-gifts span:nth-child(2) { animation-delay: 0.15s; }
.hero-card.play .scene-gifts span:nth-child(3) { animation-delay: 0.3s; }
/* doors: closed → open (and stay open) */
@keyframes door-left { 0%, 6% { transform: rotateY(0); opacity: 1; } 18%, 86% { transform: rotateY(-108deg); opacity: 1; } 97% { transform: rotateY(0); opacity: 1; } 100% { transform: rotateY(0); opacity: 0; } }
@keyframes door-right { 0%, 6% { transform: rotateY(0); opacity: 1; } 18%, 86% { transform: rotateY(108deg); opacity: 1; } 97% { transform: rotateY(0); opacity: 1; } 100% { transform: rotateY(0); opacity: 0; } }
@keyframes gift-pop {
  0%, 28% { opacity: 0; transform: translateY(20px) scale(0.3); }
  33% { opacity: 1; transform: translateY(-14px) scale(1.15); }
  37%, 100% { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .gate { display: none; }
}
.intro-word { text-shadow: none; filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.55)); }
.credit { text-align: center; color: var(--muted); font-size: 12px; margin: 6px 0 24px; opacity: 0.75; }
.credit a { color: inherit; text-decoration: underline; }

/* Mystical intro (overrides the quiet version) */
.intro {
  background: radial-gradient(circle at 50% 45%, rgba(40, 22, 92, 0.86) 0%, rgba(12, 14, 46, 0.9) 55%, rgba(5, 6, 22, 0.94) 100%);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: opacity 0.7s ease;
}
.intro-aurora {
  position: absolute; width: 140vmax; height: 60vmax; top: 10%; left: 50%; transform: translateX(-50%);
  background: conic-gradient(from 200deg at 50% 50%, transparent, rgba(46, 242, 196, 0.35), rgba(123, 108, 255, 0.4), rgba(211, 108, 255, 0.3), transparent 70%);
  filter: blur(60px); opacity: 0; animation: intro-aurora 1.6s ease-out both;
}
.intro-glow { width: 380px; height: 380px; background: radial-gradient(circle, rgba(190, 160, 255, 0.35), rgba(255, 176, 58, 0.12) 45%, transparent 70%); }
.intro-word i { animation-duration: 0.6s; text-shadow: none; }
.intro-word { filter: drop-shadow(0 0 22px rgba(190, 160, 255, 0.55)) drop-shadow(0 4px 14px rgba(0, 0, 0, 0.6)); }
.intro-mote {
  position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #e9e4ff; box-shadow: 0 0 12px 3px rgba(190, 160, 255, 0.8);
  opacity: 0; animation: intro-mote 1.4s ease-out both; animation-delay: var(--t);
}
@keyframes intro-aurora { from { opacity: 0; transform: translateX(-50%) rotate(-8deg) scale(0.9); } to { opacity: 1; transform: translateX(-50%) rotate(4deg) scale(1); } }
@keyframes intro-mote { 0% { opacity: 0; transform: translateY(20px) scale(0.5); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(-50px) scale(1); } }

/* Bigger hero picture */
.hero { grid-template-columns: 0.95fr 1.15fr; gap: 40px; }
.hero-card { transform: rotate(1deg) scale(1.04); }

/* Santa who walks out of the picture */
.santa-actor { position: absolute; z-index: 60; width: 140px; height: 180px; pointer-events: none; transform-origin: 50% 100%; will-change: transform, opacity; }
.santa-actor svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.45)); }
.santa-actor .s-leg { transform-box: fill-box; transform-origin: 50% 0; }
.santa-actor.walking .s-leg-l { animation: s-step 0.5s ease-in-out infinite alternate; }
.santa-actor.walking .s-leg-r { animation: s-step 0.5s ease-in-out infinite alternate-reverse; }
.santa-actor.walking svg { animation: s-bounce 0.25s ease-in-out infinite alternate; }
.santa-actor .s-arm { transform-box: fill-box; transform-origin: 0 0; }
.santa-actor.waving .s-arm { animation: s-wave 0.35s ease-in-out infinite alternate; }
.santa-actor.facing-left svg { transform: scaleX(-1); }
.santa-bubble {
  position: absolute; left: 50%; bottom: 100%; transform: translateX(-50%); white-space: nowrap; padding: 8px 14px; border-radius: 14px;
  background: #fff8ec; color: #c21f3a; font: 800 15px/1 var(--font-head); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  opacity: 0; transition: opacity 0.3s;
}
.santa-actor.waving .santa-bubble { opacity: 1; }
@keyframes s-step { from { transform: rotate(-16deg); } to { transform: rotate(16deg); } }
@keyframes s-bounce { from { translate: 0 0; } to { translate: 0 -4px; } }
@keyframes s-wave { from { transform: rotate(-35deg); } to { transform: rotate(25deg); } }

/* Calmer gate colours (overrides above) */
.door {
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 44px),
    linear-gradient(165deg, rgba(46, 34, 96, 0.96), rgba(18, 16, 50, 0.98));
  border: 1.5px solid rgba(233, 180, 76, 0.55);
  box-shadow: inset 0 0 0 5px rgba(233, 180, 76, 0.12), inset 0 0 70px rgba(0, 0, 0, 0.55);
}
.door::before {
  width: 58px; height: 58px; border: 2px solid rgba(233, 196, 120, 0.7); box-shadow: 0 0 18px rgba(233, 196, 120, 0.35), inset 0 0 12px rgba(233, 196, 120, 0.25);
}
.door::after { width: 6px; height: 28px; background: linear-gradient(#f3d79a, #a8792a); opacity: 0.85; }
.scene-gifts span { filter: saturate(0.75) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4)); }

/* Bigger Santa and boot prints */
.santa-actor { width: 210px; height: 270px; }
.santa-bubble { font-size: 17px; padding: 10px 16px; }
.boot-print {
  position: absolute; z-index: 55; width: 18px; height: 30px; pointer-events: none; transform-origin: 50% 50%;
  background:
    radial-gradient(ellipse 45% 30% at 50% 24%, rgba(40, 46, 96, 0.55), transparent 72%),
    radial-gradient(ellipse 38% 26% at 50% 78%, rgba(40, 46, 96, 0.5), transparent 72%);
  filter: blur(0.6px) drop-shadow(0 0 4px rgba(220, 230, 255, 0.5));
  animation: boot-fade 7s ease-in forwards;
}
@keyframes boot-fade { 0% { opacity: 0; } 6% { opacity: 1; } 70% { opacity: 0.8; } 100% { opacity: 0; } }
.hero-card.play .door.left { animation-duration: 15s; }
.hero-card.play .door.right { animation-duration: 15s; }
.hero-card.play .scene-gifts span { animation-duration: 15s; }
/* Narrower hero picture (overrides "Bigger hero picture") */
.hero { grid-template-columns: 1.15fr 0.85fr; gap: 48px; }
.hero-art { max-width: 500px; justify-self: end; width: 100%; }
.hero-card { transform: rotate(1deg); }

/* Calm intro (overrides the mystical version) */
.intro { background: rgba(6, 8, 26, 0.88); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.intro-aurora { display: none; }
.intro-glow { width: 300px; height: 300px; background: radial-gradient(circle, rgba(170, 160, 220, 0.12), transparent 70%); }
.intro-word { filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.6)); }
.intro-word i { background: linear-gradient(180deg, #e9e7f5 30%, #b9b3d6 100%); -webkit-background-clip: text; background-clip: text; opacity: 0; }
.intro-mote { background: #cfcbe6; box-shadow: 0 0 6px 1px rgba(200, 195, 235, 0.35); }
.santa-media { width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.45)); }
.santa-actor.facing-left .santa-media { transform: scaleX(-1); }
.santa-actor.walking .santa-photo { animation: s-photo-walk 0.5s ease-in-out infinite alternate; transform-origin: 50% 100%; }
.santa-actor.walking.facing-left .santa-photo { animation-name: s-photo-walk-left; }
@keyframes s-photo-walk { from { transform: rotate(-3deg) translateY(0); } to { transform: rotate(3deg) translateY(-6px); } }
@keyframes s-photo-walk-left { from { transform: scaleX(-1) rotate(-3deg) translateY(0); } to { transform: scaleX(-1) rotate(3deg) translateY(-6px); } }

/* Intro: soft and light — the page shows through (overrides the calm version) */
.intro {
  background: radial-gradient(circle at 50% 45%, rgba(58, 48, 110, 0.55) 0%, rgba(24, 26, 66, 0.6) 55%, rgba(12, 14, 40, 0.66) 100%);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
}
.intro-glow { width: 360px; height: 360px; background: radial-gradient(circle, rgba(255, 214, 140, 0.22), rgba(200, 180, 255, 0.1) 45%, transparent 70%); }
.intro-word i { background: linear-gradient(180deg, #ffffff 30%, #f3d9a4 100%); -webkit-background-clip: text; background-clip: text; }
.intro-word { filter: drop-shadow(0 0 16px rgba(255, 220, 160, 0.35)) drop-shadow(0 3px 10px rgba(0, 0, 0, 0.45)); }
.intro-mote { background: #fff3d6; box-shadow: 0 0 8px 2px rgba(255, 225, 170, 0.45); }

/* Mystical Santa: appears from a glow, glides slowly, leaves frosty prints and drifting light */
.santa-actor { filter: blur(6px) brightness(1.6); transition: filter 1.4s ease; }
.santa-actor.materialize { filter: none; }
.santa-actor.dissolve { filter: blur(5px) brightness(1.8); transition: filter 1s ease; }
.santa-actor::before {
  content: ""; position: absolute; inset: -18% -30% -6%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(205, 190, 255, 0.38), rgba(255, 214, 160, 0.14) 55%, transparent 75%);
  animation: aura 3.2s ease-in-out infinite;
}
.santa-actor svg, .santa-actor .santa-media { filter: drop-shadow(0 0 16px rgba(205, 195, 255, 0.55)) drop-shadow(0 10px 14px rgba(0, 0, 0, 0.4)); }
.santa-actor.walking .s-leg-l { animation: s-step 0.8s ease-in-out infinite alternate; }
.santa-actor.walking .s-leg-r { animation: s-step 0.8s ease-in-out infinite alternate-reverse; }
.santa-actor.walking svg, .santa-actor.walking .santa-photo { animation: s-glide 1.6s ease-in-out infinite alternate; }
.santa-actor.walking.facing-left .santa-photo { animation: s-glide-left 1.6s ease-in-out infinite alternate; }
@keyframes s-glide { from { translate: 0 0; rotate: -1.5deg; } to { translate: 0 -8px; rotate: 1.5deg; } }
@keyframes s-glide-left { from { transform: scaleX(-1); translate: 0 0; } to { transform: scaleX(-1); translate: 0 -8px; } }
@keyframes aura { 0%, 100% { opacity: 0.75; transform: scale(0.96); } 50% { opacity: 1; transform: scale(1.05); } }
.magic-spark {
  position: absolute; z-index: 61; width: var(--size); height: var(--size); border-radius: 50%; pointer-events: none;
  background: #fff6e0; box-shadow: 0 0 8px 2px rgba(220, 205, 255, 0.85);
  animation: spark-drift 1.8s ease-out forwards;
}
@keyframes spark-drift { 0% { opacity: 0; transform: translate(0, 0) scale(0.4); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1); } }
.boot-print {
  background:
    radial-gradient(ellipse 45% 30% at 50% 24%, rgba(215, 230, 255, 0.85), rgba(160, 180, 255, 0.25) 60%, transparent 75%),
    radial-gradient(ellipse 38% 26% at 50% 78%, rgba(215, 230, 255, 0.8), rgba(160, 180, 255, 0.2) 60%, transparent 75%);
  filter: blur(0.5px) drop-shadow(0 0 6px rgba(190, 210, 255, 0.8));
}
.sound-toggle.waiting { color: var(--gold); animation: sound-wait 1.8s ease-in-out infinite; }
@keyframes sound-wait { 0%, 100% { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 0 0 rgba(255, 176, 58, 0.45); } 50% { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 0 10px rgba(255, 176, 58, 0); } }
.hero-card.play .door.left, .hero-card.play .door.right, .hero-card.play .scene-gifts span { animation-duration: 21s; }
.sound-toggle:focus:not(:focus-visible) { outline: none; }
/* Music button icons: equalizer bars (on) and a note (off) */
.sound-toggle .eq { display: flex; align-items: flex-end; gap: 3px; height: 20px; }
.sound-toggle .eq i { width: 3.5px; height: 10px; background: currentColor; border-radius: 2px; }
.sound-toggle .eq i:nth-child(1) { height: 8px; } .sound-toggle .eq i:nth-child(2) { height: 16px; }
.sound-toggle .eq i:nth-child(3) { height: 12px; } .sound-toggle .eq i:nth-child(4) { height: 18px; }
.sound-toggle.live .eq i { animation: eq-bar 0.9s ease-in-out infinite; }
.sound-toggle.live .eq i:nth-child(2) { animation-delay: -0.3s; }
.sound-toggle.live .eq i:nth-child(3) { animation-delay: -0.6s; }
.sound-toggle.live .eq i:nth-child(4) { animation-delay: -0.45s; }
@keyframes eq-bar { 0%, 100% { height: 5px; } 50% { height: 20px; } }
.sound-toggle .note { font-size: 24px; line-height: 1; }
.sound-toggle.waiting { animation: none; }
@media (prefers-reduced-motion: reduce) { .sound-toggle.live .eq i { animation: none; } }
.sound-toggle.pressed { transform: scale(0.88); }
/* While asking for a click Santa listens to clicks (the first click on him or anywhere starts the music) */
.santa-actor.waving { pointer-events: auto; cursor: pointer; }

/* Music button: a glowing crystal snowflake (overrides earlier button styles) */
.sound-toggle, .sound-toggle.on {
  width: 54px; height: 54px; border-radius: 50%; color: #9aa3c7; border: 1px solid rgba(190, 200, 255, 0.25);
  background: radial-gradient(circle at 50% 40%, rgba(60, 64, 120, 0.85), rgba(14, 16, 44, 0.92));
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45), inset 0 0 12px rgba(150, 160, 255, 0.12);
}
.sound-toggle .flake { width: 28px; height: 28px; opacity: 0.55; transition: opacity 0.4s, filter 0.4s; }
.sound-toggle.on { color: #eaf0ff; border-color: rgba(200, 215, 255, 0.55); }
.sound-toggle.on .flake { opacity: 0.85; filter: drop-shadow(0 0 4px rgba(200, 220, 255, 0.8)); }
.sound-toggle.live .flake { opacity: 1; animation: flake-turn 14s linear infinite, flake-glow 2.6s ease-in-out infinite; }
.sound-toggle.live { box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45), 0 0 22px rgba(170, 190, 255, 0.45), inset 0 0 14px rgba(190, 205, 255, 0.25); }
.sound-toggle .eq, .sound-toggle .note { display: none; }
@keyframes flake-turn { to { rotate: 360deg; } }
@keyframes flake-glow { 0%, 100% { filter: drop-shadow(0 0 3px rgba(200, 220, 255, 0.7)); } 50% { filter: drop-shadow(0 0 9px rgba(220, 230, 255, 1)); } }
@media (prefers-reduced-motion: reduce) { .sound-toggle.live .flake { animation: none; } }

/* Mystical accents: a slow aurora behind the page, faint twinkling stars, soft glow on headings and buttons */
body::before {
  content: ""; position: fixed; inset: -20% -10% auto; height: 70vh; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 50% at 25% 40%, rgba(46, 242, 196, 0.07), transparent 70%),
    radial-gradient(45% 55% at 70% 30%, rgba(123, 108, 255, 0.10), transparent 70%),
    radial-gradient(35% 45% at 50% 60%, rgba(211, 108, 255, 0.06), transparent 70%);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.5;
  background-image:
    radial-gradient(1px 1px at 12% 18%, #fff, transparent), radial-gradient(1px 1px at 33% 72%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 58% 24%, #fff, transparent), radial-gradient(1px 1px at 81% 61%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 91% 12%, #fff, transparent), radial-gradient(1px 1px at 46% 88%, #fff, transparent),
    radial-gradient(1px 1px at 7% 54%, #fff, transparent), radial-gradient(1.5px 1.5px at 70% 83%, #fff, transparent);
  animation: twinkle 5s ease-in-out infinite alternate; will-change: opacity;
}
@keyframes aurora-drift { from { transform: translateX(-4%) skewX(-4deg); } to { transform: translateX(4%) skewX(4deg); } }
@keyframes twinkle { from { opacity: 0.25; } to { opacity: 0.6; } }
.section-head h2, .hero h1 { text-shadow: 0 0 28px rgba(170, 160, 255, 0.22); }
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent); transform: skewX(-20deg);
}
.btn-primary:hover::after { animation: btn-shimmer 0.9s ease; }
@keyframes btn-shimmer { to { left: 130%; } }
.card { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 0 0 1px rgba(160, 150, 255, 0.04); }
.card:hover { box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28), 0 0 28px rgba(150, 140, 255, 0.12); }
@media (prefers-reduced-motion: reduce) { body::before, body::after { animation: none; } }
.hero-card.play .door.left, .hero-card.play .door.right, .hero-card.play .scene-gifts span { animation-duration: 25s; }

/* ---- Mobile (must stay last: overrides the desktop hero tweaks above) ---- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 26px; padding: 26px 0 44px; }
  .hero-art { max-width: 520px; width: 100%; justify-self: center; }
  .hero-card { transform: none; }
  .hero h1 { font-size: clamp(32px, 9vw, 46px); hyphens: manual; -webkit-hyphens: manual; overflow-wrap: normal; word-break: normal; margin: 16px 0 14px; }
  .lead { font-size: 17px; margin-bottom: 22px; }
  .cta { flex-direction: column; align-items: stretch; }
  .cta .btn { width: 100%; justify-content: center; text-align: center; }
  .hero-note { font-size: 14px; }
  .section-head h2 { font-size: clamp(28px, 7.5vw, 38px); }
}
@media (max-width: 600px) {
  .nav { gap: 8px; height: 60px; }
  .logo { font-size: 19px; gap: 8px; }
  .logo-mark { width: 32px; height: 32px; font-size: 17px; }
  .nav-right { gap: 6px; }
  .lang button { padding: 6px 7px; font-size: 11px; }
  .nav-right .btn-primary.btn-sm { display: none; } /* "Sign up" is in the hero; keep "Sign in" in the header */
  .nav-signin { font-size: 14px; white-space: nowrap; }
  .user-logout { padding: 7px 10px; font-size: 13px; }
  .eyebrow { font-size: 12px; padding: 6px 12px; white-space: nowrap; }
  .sound-toggle, .sound-toggle.on { left: auto; right: 14px; bottom: 14px; width: 46px; height: 46px; }
  .sound-toggle .flake { width: 24px; height: 24px; }
  .calc { padding: 16px; }
}
@media (max-width: 380px) {
  .logo { font-size: 17px; }
  .logo-mark { width: 28px; height: 28px; }
  .lang button { padding: 5px 5px; }
}
