:root {
  --orange: #ff5a00;
  --orange-hot: #ff7a00;
  --red: #d8270d;
  --ink: #080604;
  --cream: #fff3d6;
  --muted: rgba(255, 240, 218, .66);
  --line: rgba(255, 187, 113, .22);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  background: var(--ink);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  color: var(--cream);
  background: #090604;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
  overscroll-behavior-y: none;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

/* The flyer artwork is the site's background: fixed behind everything, for
   the whole page, not just a boxed image at the top. */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    image-set(url('../assets/automoween-flyer.webp') type('image/webp'), url('../assets/automoween-flyer.png') type('image/png')) center 20% / cover no-repeat;
}

.backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6,4,2,.2) 0%, rgba(7,4,2,.08) 26%, rgba(7,4,2,.3) 58%, rgba(6,4,2,.72) 84%, #070402 100%),
    linear-gradient(90deg, rgba(0,0,0,.3), transparent 18% 82%, rgba(0,0,0,.3));
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.embers { position: fixed; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.ember {
  position: absolute;
  bottom: -14px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #ff9a27;
  box-shadow: 0 0 7px #ff5a00, 0 0 15px rgba(255, 48, 0, .8);
  opacity: 0;
  animation: rise var(--duration) linear var(--delay) infinite;
}

@keyframes rise {
  0% { opacity: 0; transform: translate3d(0, 0, 0) scale(.7); }
  12% { opacity: .65; }
  70% { opacity: .25; }
  100% { opacity: 0; transform: translate3d(var(--drift), -105vh, 0) scale(1.5); }
}

.page-shell {
  width: min(100%, 580px);
  min-height: 100dvh;
  margin: 0 auto;
  padding: calc(var(--safe-top) + 30px) 12px calc(22px + var(--safe-bottom));
  padding-left: max(7px, env(safe-area-inset-left, 0px));
  padding-right: max(7px, env(safe-area-inset-right, 0px));
  position: relative;
  z-index: 2;
}

/* ===== Event heading: a single, clean headline that sits directly on the
   background artwork, above the action panel. ===== */
.event-heading {
  padding: 6px 4px 2px;
  text-align: center;
  text-shadow: 0 3px 18px rgba(0,0,0,.7);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 176, 100, .28);
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  color: rgba(255, 240, 219, .83);
  font-size: .7rem;
  font-weight: 750;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange-hot);
  box-shadow: 0 0 10px var(--orange-hot);
}

.event-heading h1 {
  margin: 12px 0 0;
  color: #fff7df;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(2.3rem, 10vw, 3.1rem);
  line-height: .92;
  letter-spacing: -.01em;
  text-transform: uppercase;
  -webkit-text-stroke: 1px rgba(41, 10, 2, .5);
}

.event-heading h1 span { color: #ff761c; }

.event-sub {
  margin: 8px 0 0;
  color: rgba(255, 244, 226, .78);
  font-size: .86rem;
  font-weight: 600;
  letter-spacing: .01em;
}

.event-sub strong { color: #ff8a3a; font-weight: 800; }

.action-panel {
  position: relative;
  z-index: 2;
  margin: 10px 5px 0;
  padding: 18px 8px 6px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(13,8,5,.82), rgba(10,6,4,.94));
  border: 1px solid rgba(255, 170, 85, .14);
  box-shadow: 0 28px 65px rgba(0,0,0,.54);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.countdown { text-align: center; margin-top: 14px; }

.countdown-label {
  margin: 0 0 8px;
  color: rgba(255, 221, 183, .62);
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .28em;
  text-transform: uppercase;
}

.countdown-grid {
  display: grid;
  grid-template-columns: 1fr 1px 1fr 1px 1fr 1px 1fr;
  align-items: center;
  max-width: 374px;
  margin: 0 auto;
}

.countdown-grid div { display: grid; gap: 1px; }
.countdown-grid strong {
  font-variant-numeric: tabular-nums;
  font-size: 1.4rem;
  line-height: 1;
  letter-spacing: -.03em;
}
.countdown-grid span {
  color: var(--muted);
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.countdown-grid i { width: 1px; height: 22px; background: var(--line); }
.countdown-started {
  padding: 8px 0 4px;
  color: #ff8130;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 40px;
  margin: 19px 2px 12px;
  padding: 9px 11px;
  border: 1px solid rgba(255, 116, 31, .18);
  border-radius: 12px;
  background: rgba(255, 81, 0, .065);
  color: rgba(255, 235, 211, .78);
  font-size: clamp(.64rem, 2.6vw, .75rem);
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.action-list { display: grid; gap: 10px; }

.action-card {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 11px;
  min-height: 78px;
  padding: 13px 13px 13px 11px;
  overflow: hidden;
  border: 1px solid rgba(255, 190, 124, .2);
  border-radius: 19px;
  background:
    linear-gradient(105deg, rgba(255,255,255,.075), rgba(255,255,255,.025)),
    rgba(18, 10, 7, .72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 9px 24px rgba(0,0,0,.3);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: transform .2s ease, border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.action-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.1) 50%, transparent 65%);
  transform: translateX(-140%);
}

.action-card--primary {
  min-height: 86px;
  border-color: rgba(255, 149, 67, .62);
  background: linear-gradient(110deg, rgba(215, 45, 8, .96), rgba(255, 101, 0, .92));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 9px 32px rgba(255, 68, 0, .26), 0 0 0 1px rgba(255, 99, 0, .08);
  animation: soft-pulse 3.8s ease-in-out infinite;
}

.action-card--primary::before { animation: sheen 5.5s ease-in-out 1.8s infinite; }

@keyframes soft-pulse {
  0%, 100% { box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 9px 28px rgba(255, 68, 0, .22); }
  50% { box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 11px 38px rgba(255, 68, 0, .38); }
}

@keyframes sheen {
  0%, 70%, 100% { transform: translateX(-140%); }
  82% { transform: translateX(140%); }
}

.action-card--whatsapp { border-color: rgba(68, 205, 112, .25); }

.action-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 14px;
  background: rgba(0,0,0,.24);
  color: #ffb063;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.055);
}

.action-icon svg {
  width: 24px;
  height: 24px;
  overflow: visible;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.action-icon--ticket {
  color: #fff4dc;
  background: rgba(87, 18, 8, .38);
  border-color: rgba(255,255,255,.16);
}

.action-icon--whatsapp,
.action-icon--group {
  color: #58e08d;
  background: rgba(37, 211, 102, .08);
  border-color: rgba(88, 224, 141, .2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 0 18px rgba(37, 211, 102, .06);
}

.action-icon--group {
  color: #8af0ae;
  background: rgba(37, 211, 102, .12);
  border-color: rgba(138, 240, 174, .25);
}

.whatsapp-mark,
.whatsapp-group-mark { stroke-width: 1.65 !important; }

.action-text { display: grid; gap: 4px; min-width: 0; }
.action-text strong {
  color: #fff5e3;
  font-size: .92rem;
  font-weight: 850;
  letter-spacing: .015em;
  line-height: 1.1;
  text-transform: uppercase;
}
.action-text small {
  overflow: visible;
  color: rgba(255, 240, 217, .63);
  font-size: .72rem;
  line-height: 1.25;
  white-space: normal;
}
.action-card--primary .action-text small { color: rgba(255,255,255,.76); }

.arrow {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 50%;
  background: rgba(0,0,0,.13);
  font-size: 1rem;
  transition: transform .2s ease, background .2s ease;
}

.action-card:hover,
.action-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 152, 74, .62);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 14px 31px rgba(0,0,0,.38);
  outline: none;
}
.action-card:hover .arrow,
.action-card:focus-visible .arrow { transform: rotate(7deg) scale(1.05); background: rgba(255,255,255,.09); }
.action-card:active { transform: scale(.985); }

.microcopy {
  margin: 20px 0 10px;
  color: rgba(255, 221, 185, .55);
  font-family: Georgia, "Times New Roman", serif;
  font-size: .76rem;
  font-style: italic;
  letter-spacing: .08em;
  text-align: center;
  text-transform: uppercase;
}
.microcopy span { color: var(--orange); }

footer {
  padding: 26px 18px calc(10px + var(--safe-bottom));
  color: rgba(255, 239, 219, .46);
  font-size: .7rem;
  line-height: 1.5;
  text-align: center;
}
.footer-brand { margin: 0 0 5px; color: rgba(255, 238, 216, .78); font-size: .78rem; font-weight: 800; letter-spacing: .06em; }
.footer-brand span { color: var(--orange); }
footer p:last-child { margin: 0; }

@media (min-width: 600px) {
  .page-shell { width: min(100%, 460px); padding-inline: 18px; }
}

@media (max-width: 370px) {
  .page-shell { padding-inline: 8px; }
  .action-panel { margin-inline: 2px; padding-inline: 6px; }
  .action-card { grid-template-columns: 42px minmax(0, 1fr) 28px; gap: 9px; padding-inline: 9px; }
  .action-icon { width: 42px; height: 42px; }
  .action-text strong { font-size: .82rem; }
  .action-text small { font-size: .67rem; }
  .notice { gap: 7px; font-size: .61rem; }
}

@media (max-width: 390px) {
  .action-panel { margin-inline: 0; padding-inline: 5px; }
  .action-card { grid-template-columns: 42px minmax(0, 1fr) 28px; gap: 8px; padding-inline: 8px; }
  .action-icon { width: 42px; height: 42px; }
  .action-icon svg { width: 22px; height: 22px; }
}

@media (max-width: 340px) {
  .eyebrow { letter-spacing: .08em; }
  .event-heading h1 { font-size: 2rem; }
  .action-card { grid-template-columns: 40px minmax(0, 1fr) 26px; gap: 7px; min-height: 68px; }
  .action-icon { width: 40px; height: 40px; }
  .action-text strong { font-size: .76rem; }
  .action-text small { font-size: .62rem; }
  .arrow { width: 26px; height: 26px; font-size: .9rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .embers { display: none; }
}

@supports not (backdrop-filter: blur(2px)) {
  .action-panel { background: rgba(12,7,4,.97); }
}
