:root {
  --green: #009e64;
  --green-dark: #168f45;
  --orange: #ef4423;
  --orange-dark: #d63a1a;
  --teal: #0382ac;
  --ink: #121212;
  --ink-soft: #444;
  --paper: #ffffff;
  --paper-soft: #faf8f3;
  --line: #e3e3e3;

  --shadow-sm: 0 2px 6px rgba(18, 18, 18, 0.08);
  --shadow-md: 0 14px 36px rgba(18, 18, 18, 0.12);
  --shadow-lg: 0 30px 60px rgba(18, 18, 18, 0.18);
  --shadow-card: 0 40px 80px rgba(18, 18, 18, 0.22), 0 6px 14px rgba(18, 18, 18, 0.1);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --header-h: 96px;
  --footer-h: 44px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink);
  background:
    linear-gradient(rgba(18, 18, 18, 0.22), rgba(18, 18, 18, 0.32)),
    url("/images/hero-bg.jpg") center/cover no-repeat;
  background-color: var(--ink);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

a {
  color: var(--orange);
  text-decoration: none;
}
a:hover,
a:focus-visible {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

:root[data-view="invite"] [data-view="promo"] { display: none !important; }
:root[data-view="promo"]  [data-view="invite"] { display: none !important; }

.site-header {
  height: var(--header-h);
  padding: 0 clamp(16px, 4vw, 48px);
  background: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}
.logo-link {
  display: inline-flex;
  align-items: center;
}
.logo {
  height: 54px;
  width: auto;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.4));
}

.hero {
  flex: 1 1 auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 3vw, 56px) clamp(16px, 3vw, 56px);
  background: transparent;
  min-height: 0;
}

.hero__card {
  position: relative;
  width: 100%;
  max-width: 880px;
  background: var(--paper);
  padding: clamp(24px, 4vw, 56px) clamp(24px, 5vw, 72px);
  box-shadow: var(--shadow-card);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow--invite {
  color: var(--orange);
}
.eyebrow__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--orange);
  display: inline-block;
  animation: pulse 1.6s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(239, 68, 35, 0.55);
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 35, 0.55); }
  50% { box-shadow: 0 0 0 9px rgba(239, 68, 35, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .eyebrow__dot { animation: none; }
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.85rem, 5.4vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0 0 14px;
  color: var(--ink);
  font-variation-settings: "opsz" 28, "SOFT" 100, "WONK" 0;
  overflow-wrap: break-word;
  hyphens: auto;
  max-width: 100%;
}

.hero__lead {
  font-size: clamp(0.98rem, 1.3vw, 1.1rem);
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0 0 22px;
  max-width: 480px;
}

.game-id {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--paper-soft);
  border: 2px dashed var(--green);
  padding: 10px 18px;
  margin: 0 auto 22px;
  box-shadow: var(--shadow-sm);
}
.game-id__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-dark);
}
.game-id__value {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.04em;
  padding: 2px 8px;
  background: var(--paper);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 0 0 8px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: 0.01em;
  padding: 14px 32px;
  border-radius: 0;
  border: 0;
  cursor: pointer;
  transition: transform 220ms ease;
  text-decoration: none;
  transform-origin: center;
  will-change: transform;
}
.btn--primary {
  background: var(--orange);
  color: var(--paper);
  box-shadow: var(--shadow-md);
}
.btn--primary:hover,
.btn--primary:focus-visible {
  transform: scale(1.01);
  text-decoration: none;
  color: var(--paper);
}
.btn--primary:active {
  transform: scale(1.01);
}
.btn__arrow {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.hint {
  margin: 4px 0 16px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  font-style: italic;
}

.store-row {
  width: 100%;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.store-row__label {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 0 0 12px;
  font-weight: 700;
}
.store-row__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  width: 100%;
}
.store-btn {
  display: inline-grid;
  grid-template-columns: auto auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 10px;
  row-gap: 0;
  padding: 8px 16px 8px 14px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 0;
  text-decoration: none;
  transition: transform 220ms ease;
  flex: 0 1 auto;
  min-width: 0;
  transform-origin: center;
  will-change: transform;
}
.store-btn:hover,
.store-btn:focus-visible {
  transform: scale(1.01);
  text-decoration: none;
  color: var(--paper);
}
.store-btn svg {
  grid-row: 1 / 3;
  width: 26px;
  height: 26px;
}
.store-btn__sub {
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.85;
  line-height: 1;
  text-align: left;
}
.store-btn__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.15;
  letter-spacing: 0.005em;
  text-align: left;
  font-variation-settings: "opsz" 18, "SOFT" 100;
}

.site-footer {
  height: var(--footer-h);
  padding: 0 clamp(16px, 4vw, 48px);
  background: var(--teal);
  color: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-shrink: 0;
}
.site-footer small {
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}
.site-footer__sep {
  margin: 0 10px;
  color: rgba(255, 255, 255, 0.45);
}

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (max-height: 720px) {
  .hero__title { font-size: clamp(1.65rem, 4.8vw, 2.6rem); margin-bottom: 10px; }
  .hero__lead  { margin-bottom: 16px; font-size: 0.95rem; }
  .eyebrow     { margin-bottom: 12px; }
  .game-id     { margin-bottom: 16px; padding: 8px 16px; }
  .btn         { padding: 12px 28px; font-size: 0.95rem; }
  .store-row   { margin-top: 14px; padding-top: 14px; }
  .hero__card  { padding: 24px clamp(20px, 4vw, 56px); }
}
