/* FanFest landing: SVO 26 palette from the fan card + the approved email. */
@font-face { font-family: 'Senistia'; src: url('/fonts/Senistia.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'BahnPro'; src: url('/fonts/BahnPro-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'BahnPro'; src: url('/fonts/BahnPro-Light.woff2') format('woff2'); font-weight: 300; font-display: swap; }

/* Light page so the teal card pops (Carlos 10-20: teal-on-teal blended together). */
:root {
  --deep: #163a42;
  --teal: #2e5560;
  --gold: #e8c05a;
  --cream: #f4efe2;
  --paper: #fdfefe;
  --line: rgba(22, 58, 66, 0.16);
  --font-display: 'Senistia', 'Oswald', Impact, sans-serif;
  --font-body: 'BahnPro', 'DIN Alternate', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

.notice {
  margin: 6px 0 6px;
  padding: 12px 14px;
  background: var(--paper);
  border-left: 4px solid var(--gold);
  box-shadow: 0 2px 0 rgba(22, 58, 66, 0.12);
  font-size: 15px;
  line-height: 1.4;
  color: var(--deep);
}
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.45;
  color: var(--deep);
  background: radial-gradient(ellipse at 50% -10%, var(--paper) 0%, var(--cream) 60%) fixed, var(--cream);
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--teal); }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: max(18px, env(safe-area-inset-top)) 16px 8px;
  max-width: 560px;
  width: 100%;
  margin: 0 auto;
}
.logo { height: 44px; width: auto; display: block; }
.pill {
  background: var(--gold);
  color: var(--deep);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 10px;
  white-space: nowrap;
}

.stage {
  flex: 1;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 8px 16px 28px;
}

.hero { padding: 10px 0 14px; transition: opacity 0.3s ease; }
body.loading .hero, body.loading .video-frame, body.loading .actions { opacity: 0; }
body.no-fan .hero, body.no-fan .video-frame, body.no-fan .actions, body.no-fan .tournament { display: none; }

.greeting {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--deep);
  font-size: clamp(40px, 11vw, 62px);
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0;
  overflow-wrap: anywhere;
}
.greeting .js-name { box-shadow: inset 0 -0.22em 0 var(--gold); }
.hero-sub { margin: 12px 0 0; font-weight: 300; font-size: 18px; color: var(--teal); }

.video-frame {
  margin: 4px auto 0;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 9 / 16;
  background: #0d2329;
  border: 6px solid var(--paper);
  box-shadow: 0 2px 0 var(--line), 0 24px 50px rgba(22, 58, 66, 0.32);
  transition: opacity 0.3s ease;
}
.video-frame video { width: 100%; height: 100%; display: block; object-fit: cover; background: #0d2329; }

.actions { text-align: center; padding-top: 20px; transition: opacity 0.3s ease; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  width: 100%;
  max-width: 400px;
  padding: 14px 22px;
  font: 700 17px/1 var(--font-body);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: 0;
}
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-primary { background: var(--gold); color: var(--deep); box-shadow: 0 8px 0 #b8902f; }
.btn-primary:active { transform: translateY(3px); box-shadow: 0 5px 0 #b8902f; }

.hint { margin: 14px auto 0; max-width: 400px; font-size: 15px; color: var(--teal); }

.share-label { margin: 26px 0 10px; font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase; }
.share-label a { font-weight: 700; }

.share-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(22, 58, 66, 0.28);
  background: var(--paper);
  color: var(--deep);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.share-btn svg { width: 21px; height: 21px; }
.share-btn:hover, .share-btn:focus-visible { background: var(--deep); color: var(--cream); outline: none; }
.share-btn.is-native { background: var(--deep); color: var(--cream); border-color: var(--deep); }
.share-btn.is-native { width: auto; padding: 0 18px; font: 700 14px/1 var(--font-body); letter-spacing: 0.06em; text-transform: uppercase; }
.share-btn.copied { background: var(--gold); color: var(--deep); }

.tournament { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); text-align: center; font-weight: 300; }
.tournament p { margin: 0; }

.error { text-align: center; padding: 48px 0; font-size: 18px; }

/* Footer pinned to the bottom of the page (body is a column flex, .stage grows). */
.bottombar {
  margin-top: auto;
  background: var(--deep);
  color: var(--cream);
  font-size: 13px;
  text-align: center;
  padding: 22px 16px max(26px, env(safe-area-inset-bottom));
}
.bottombar .event { margin: 0 0 18px; opacity: 0.85; }
.bottombar .sep { margin: 0 8px; opacity: 0.6; }
.made {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--cream);
  text-decoration: none;
}
.made-label { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.75; }
.ditto-mark { display: block; width: 274px; height: 60px; border-radius: 10px; object-fit: contain; }
.made:hover .ditto-mark, .made:focus-visible .ditto-mark { transform: translateY(-2px); transition: transform 0.15s ease; }
@media (prefers-reduced-motion: reduce) { .ditto-mark { object-fit: contain; padding: 8px 18px; } }

@media (min-width: 720px) {
  .stage { padding-top: 16px; }
  .logo { height: 52px; }
}
