/* Shared by index.html and reserva.html. SK tokens, same as the web home (apps/web/src/styles/globals.css). */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg-primary: #07070A;
  --bg-secondary: #0F0F14;
  --bg-card: #16161D;
  --line: #24242E;
  --gold: #FFC93C;
  --gold-ink: #07070A;
  --red: #FF5A66;
  --green: #1FE0A0;
  --discord: #5865F2;
  --discord-hover: #4752C4;
  --text-primary: #FFFFFF;
  --text-secondary: #C8C8D2;
  --text-muted: #8F8F9E;
  --font-display: 'Anton', 'Impact', 'Arial Narrow Bold', ui-sans-serif, sans-serif;
  --font-heading: 'Sora', 'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, sans-serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: rgba(255, 201, 60, 0.35); color: white; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: var(--gold); }
b, strong { color: var(--text-primary); font-weight: 700; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 900px) { .wrap { padding: 0 32px; } }

.kicker {
  font-size: 0.8125rem; font-weight: 800;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold);
}
.h-display {
  font-family: var(--font-display); font-weight: 400;
  line-height: 0.95; letter-spacing: 0.01em; text-transform: uppercase;
}
.h2 { font-size: clamp(40px, 6.4vw, 76px); margin-top: 12px; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--text-secondary); }
.muted { color: var(--text-muted); }
.small { font-size: 0.875rem; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border: 0; border-radius: 16px;
  font: 800 1rem var(--font-body);
  text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, filter 0.15s ease;
}
.btn:hover { transform: scale(1.02); }
.btn:active { transform: scale(0.98); }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.btn svg { width: 22px; height: 22px; flex-shrink: 0; }
.btn-primary { background: var(--gold); color: var(--gold-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-line { background: rgba(255, 255, 255, 0.06); color: var(--text-primary); border: 1px solid rgba(255, 255, 255, 0.22); }
.btn-line:hover { background: rgba(255, 255, 255, 0.12); }
.btn-discord { background: var(--discord); color: #FFFFFF; }
.btn-discord:hover { background: var(--discord-hover); }
.btn[disabled] { opacity: 0.65; cursor: progress; transform: none; }

/* ── Notice bar ── */
.notice {
  position: relative; z-index: 2;
  display: block; padding: 10px 16px;
  background: var(--gold); color: var(--gold-ink);
  font-size: 0.875rem; font-weight: 700; text-align: center; text-decoration: none;
}
.notice span { text-decoration: underline; text-underline-offset: 3px; }
.notice:focus-visible { outline: 3px solid #fff; outline-offset: -3px; }

/* ── Sections ── */
.section { position: relative; padding: clamp(72px, 10vw, 128px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { max-width: 760px; }
.section-head .lead { margin-top: 18px; }

/* ── Timeline (e02) ── */
.timeline { list-style: none; margin-top: 36px; display: grid; gap: 10px; }
.timeline li {
  display: grid; grid-template-columns: 96px 1fr; gap: 18px; align-items: center;
  background: var(--bg-secondary); border: 1px solid var(--line); border-radius: 18px;
  padding: 18px 22px;
}
.timeline .mark { font-family: var(--font-display); font-size: 30px; line-height: 1; color: var(--text-muted); text-align: center; }
.timeline h3 { font: 700 1.05rem/1.3 var(--font-heading); }
.timeline p { margin-top: 4px; color: var(--text-secondary); font-size: 0.95rem; }
.timeline li.now { border-color: rgba(255, 201, 60, 0.55); background: linear-gradient(90deg, rgba(255, 201, 60, 0.1), var(--bg-secondary) 70%); }
.timeline li.now .mark { color: var(--gold); }
@media (max-width: 520px) {
  .timeline li { grid-template-columns: 64px 1fr; gap: 12px; padding: 16px; }
  .timeline .mark { font-size: 24px; }
}

/* ── Countdown (small) ── */
.cd { display: flex; gap: 10px; }
.cd > div {
  min-width: 78px; text-align: center;
  background: var(--bg-secondary); border: 1px solid var(--line); border-radius: 14px; padding: 12px 8px 10px;
}
.cd b { display: block; font: 400 40px/1 var(--font-display); color: var(--gold); font-variant-numeric: tabular-nums; }
.cd span { display: block; margin-top: 6px; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-muted); }

/* ── Reserve card ── */
.card {
  width: 100%;
  background: var(--bg-secondary); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 24px;
  padding: clamp(22px, 3vw, 32px);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.9);
}
.card-title { font: 400 38px/1 var(--font-display); text-transform: uppercase; }
.card-desc { margin-top: 10px; color: var(--text-secondary); font-size: 0.95rem; }
.form { margin-top: 22px; display: grid; gap: 16px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 0.875rem; font-weight: 700; }
.input-wrap { position: relative; }
.input {
  width: 100%; height: 52px; padding: 0 16px;
  background: rgba(255, 255, 255, 0.06); color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 14px;
  font: 500 1rem var(--font-body);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.input::placeholder { color: var(--text-muted); }
.input:focus { outline: none; border-color: rgba(255, 201, 60, 0.75); box-shadow: 0 0 0 3px rgba(255, 201, 60, 0.2); }
.input[aria-invalid="true"] { border-color: rgba(255, 90, 102, 0.75); }
.input-wrap .input { padding-right: 56px; }
.reveal-pass {
  position: absolute; top: 50%; right: 6px; transform: translateY(-50%);
  width: 42px; height: 42px; border: 0; border-radius: 10px;
  background: transparent; color: var(--text-muted); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.reveal-pass:hover { background: rgba(255, 255, 255, 0.06); color: var(--text-primary); }
.reveal-pass:focus-visible { outline: 2px solid var(--gold); }
.reveal-pass svg { width: 20px; height: 20px; }
.field-error { font-size: 0.8125rem; font-weight: 600; color: var(--red); }
.alert {
  display: flex; gap: 10px; align-items: flex-start;
  border: 1px solid rgba(255, 90, 102, 0.4); background: rgba(255, 90, 102, 0.1); color: var(--red);
  border-radius: 14px; padding: 12px 14px; font-size: 0.875rem; font-weight: 600;
}
.form .btn { width: 100%; }
.ts:empty { display: none; }
.card-foot { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 0.8125rem; color: var(--text-muted); }

.done { text-align: center; }
/* Head-only imager render (128×220): the head sits around (69, 75), centred in the circle. */
.done-avatar {
  position: relative; width: 112px; height: 112px; margin: 4px auto 0; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 50% 55%, rgba(255, 201, 60, 0.26), rgba(255, 201, 60, 0.04) 72%);
  border: 1px solid rgba(255, 201, 60, 0.35);
}
.done-avatar img { position: absolute; left: -13px; top: -19px; width: 128px; height: 220px; max-width: none; image-rendering: pixelated; }
.done-check {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 14px;
  color: var(--green); font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
}
.done-check svg { width: 18px; height: 18px; }
.done h3 { font: 400 40px/1 var(--font-display); text-transform: uppercase; margin-top: 10px; overflow-wrap: anywhere; }
.done .since { margin-top: 6px; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.done p { margin-top: 14px; color: var(--text-secondary); font-size: 0.95rem; }
.done .actions-col { display: grid; gap: 10px; margin-top: 22px; }
.done .actions-col .btn { width: 100%; }
.link-btn {
  margin-top: 16px; border: 0; background: none; cursor: pointer;
  color: var(--text-muted); font: 600 0.875rem var(--font-body); text-decoration: underline; text-underline-offset: 3px;
}
.link-btn:hover { color: var(--text-primary); }
.link-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

/* Step 2: confirm the email */
.verify-head { display: flex; align-items: center; gap: 14px; }
/* Same render at 1×, centred in an 88 px circle so the whole head fits. */
.done-avatar.small { width: 88px; height: 88px; margin: 0; flex-shrink: 0; }
.done-avatar.small img { left: -25px; top: -31px; }
.done-mail { justify-content: center; margin-top: 14px !important; }
[data-step="verify"] > .link-btn { display: block; margin: 16px auto 0; }

/* Account email */
.mail { margin-top: 22px; padding: 18px; text-align: left; border: 1px solid rgba(255, 201, 60, 0.35); border-radius: 18px; background: rgba(255, 201, 60, 0.06); }
.mail-k { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.mail-addr { margin-top: 6px !important; font: 700 1.05rem/1.3 var(--font-heading); color: var(--text-primary) !important; overflow-wrap: anywhere; }
.mail-addr.none { color: var(--text-muted) !important; }
.mail-hint { margin-top: 8px !important; font-size: 0.875rem !important; }
.mail .alert { margin-top: 12px; }
.mail-row { display: grid; gap: 10px; margin-top: 14px; }
.mail-form { display: grid; gap: 10px; margin-top: 14px; }
.mail-form .btn { width: 100%; }
.mail-form .link-btn { margin-top: 2px; justify-self: center; }
.input.code { text-align: center; font: 700 1.5rem var(--font-body); letter-spacing: 0.4em; }
.mail-ok { display: flex; gap: 8px; align-items: center; margin-top: 14px !important; color: var(--green) !important; font-weight: 700; font-size: 0.9rem !important; }
.mail-ok svg { width: 18px; height: 18px; flex-shrink: 0; }
.mail-ok b { color: var(--text-primary); }

.reserved-count { margin-top: 14px; font-size: 0.875rem; color: var(--text-muted); text-align: center; }
.reserved-count b { color: var(--gold); }

/* ── Tiles ── */
.tiles { margin-top: 40px; display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
.tile { background: var(--bg-secondary); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.tile img { width: 100%; height: auto; aspect-ratio: 608 / 420; object-fit: cover; object-position: center 35%; }
.tile div { padding: 16px 18px 18px; }
.tile h3 { font: 700 1.05rem/1.3 var(--font-heading); }
.tile p { margin-top: 4px; color: var(--text-secondary); font-size: 0.9rem; }

/* ── Steps ── */
.steps { list-style: none; margin-top: 24px; display: grid; gap: 14px; }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; }
.steps .n {
  width: 44px; height: 44px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 201, 60, 0.12); color: var(--gold);
  font: 400 24px/1 var(--font-display);
}
.steps h3 { font: 700 1.05rem/1.3 var(--font-heading); }
.steps p { margin-top: 2px; color: var(--text-secondary); font-size: 0.95rem; }

/* ── FAQ ── */
.faq { margin-top: 36px; display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--bg-secondary); border: 1px solid var(--line); border-radius: 16px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 52px 18px 20px; position: relative;
  font: 700 1rem/1.4 var(--font-heading);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font: 400 26px/1 var(--font-body); color: var(--gold);
}
.faq details[open] summary::after { content: "−"; }
.faq summary:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; border-radius: 16px; }
.faq details p { padding: 0 20px 18px; color: var(--text-secondary); font-size: 0.95rem; }

/* ── Footer ── */
.footer { padding: 28px 16px max(28px, env(safe-area-inset-bottom)); text-align: center; font-size: 0.75rem; line-height: 1.6; color: var(--text-muted); border-top: 1px solid var(--line); }

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

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.rise { animation: rise 0.45s ease-out both; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
