/* slammys.app: glass over a dark ground, lit in ice blue, like the app. */

:root {
  color-scheme: dark;
  --ground: #050b16;
  --panel: #0c1320;
  --edge: #1b2535;
  --line: rgba(191, 232, 255, 0.12);
  --text: #dbe8f4;
  --muted: #8b9eb3;
  --light: #e6faff;
  --accent: #59c7ff;
  --deep: #1a66f5;
  --ice: #59c7ff;
  --mint: #4deba8;
  --ember: #ff8c40;
  --violet: #ad85ff;
  --rose: #ff73ad;
  --gold: #ffcc40;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { background: var(--ground); }

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font: 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--accent); text-underline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; }

/* Heavy, compressed and slanted, like the app's display type. */
.display,
.wordmark,
.nav a,
h1, h2,
figcaption {
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-stretch: condensed;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

/* Announcement bar */
.bar {
  padding: 9px 16px;
  background: #0f3a86;
  color: var(--light);
  font-size: 14px;
  text-align: center;
}
.bar .pill {
  display: inline-block;
  margin-right: 8px;
  padding: 1px 9px;
  border-radius: 999px;
  background: var(--light);
  color: #0f3a86;
  font: 900 italic 12px/1.6 var(--display);
  text-transform: uppercase;
}

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 6vw, 64px);
  padding: 12px 16px;
  background: rgba(5, 11, 22, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav a {
  color: var(--muted);
  font-size: 17px;
  text-decoration: none;
  letter-spacing: 0.05em;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }
.nav .nav-icon { padding: 0; border: 0; }
.nav .nav-icon img { width: 30px; height: 30px; border-radius: 7px; }

/* Hero */
.hero {
  background: url("/assets/cracks.svg") center / cover no-repeat;
}
.hero-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px 56px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 72px 24px 64px;
}
.hero-mark { display: flex; align-items: center; gap: 28px; }
.hero-icon {
  width: clamp(96px, 16vw, 156px);
  border-radius: 22.5%;
  box-shadow: 0 0 0 1px var(--line), 0 18px 50px rgba(26, 102, 245, 0.35);
}
.wordmark {
  margin: 0;
  font-size: clamp(60px, 11vw, 124px);
  line-height: 0.9;
  padding: 0.06em 0.08em 0.06em 0;
  background: linear-gradient(180deg, var(--light) 8%, var(--accent) 52%, var(--deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 26px rgba(89, 199, 255, 0.4));
}
.hero-pitch { max-width: 360px; }
.hero-pitch p { margin: 0 0 20px; font-size: 20px; line-height: 1.5; }
.hero-pitch strong { color: var(--light); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 22px; }
.store {
  display: inline-flex;
  flex-direction: column;
  padding: 8px 18px 9px;
  border: 1.5px solid rgba(230, 250, 255, 0.55);
  border-radius: 11px;
  background: #000;
  color: var(--light);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.1;
}
.store small { font-size: 11px; font-weight: 500; letter-spacing: 0.02em; }
.requires { color: var(--accent); font-weight: 600; }

/* The four breaks, on a dark glass panel */
.stage { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.stage-frame {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 3vw, 34px);
  margin: 0;
  padding: clamp(20px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(12, 19, 32, 0.6) url("/assets/cracks.svg") center / cover no-repeat;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(230, 250, 255, 0.06);
}
.stage figure { margin: 0; text-align: center; }
.stage img {
  width: 100%;
  aspect-ratio: 1398 / 2034;
  object-fit: cover;
  border: 5px solid #1d2432;
  border-radius: 8% / 5.5%;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55);
}
.stage figcaption { margin-top: 14px; color: var(--c); font-size: 19px; }
.stage figcaption span { color: var(--muted); }

/* A note from the game */
.letter {
  max-width: 680px;
  margin: 0 auto;
  padding: 96px 24px 72px;
  font: 16px/1.95 var(--mono);
}
.letter h2 { margin: 0 0 22px; font-size: 30px; color: var(--light); }
.letter p { margin: 0 0 18px; }
.letter .sign { color: var(--muted); }

/* Footer */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 24px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 24px 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.footer a { color: var(--muted); }
.footer a:hover { color: var(--text); }

/* Privacy and terms */
.doc { max-width: 720px; margin: 0 auto; padding: 64px 24px 88px; }
.doc h1 { margin: 0 0 6px; font-size: clamp(40px, 8vw, 56px); line-height: 1; color: var(--light); }
.doc .effective { margin: 0 0 36px; color: var(--muted); }
.doc h2 { margin: 40px 0 10px; font-size: 22px; color: var(--light); }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 10px; }
.doc strong { color: var(--light); }

@media (max-width: 720px) {
  .hero-inner { flex-direction: column; padding: 48px 20px 44px; text-align: center; }
  .hero-mark { flex-direction: column; gap: 18px; }
  .hero-pitch { max-width: 420px; }
  .hero-actions { justify-content: center; }
  .stage-frame { grid-template-columns: repeat(2, 1fr); }
  .stage figcaption span { display: block; }
  .letter { padding: 72px 20px 56px; font-size: 15px; }
  .footer { flex-direction: column; text-align: center; }
}

@media (max-width: 560px) {
  .nav { gap: 22px; }
  .nav a { font-size: 16px; }
}
