/* getbrainbattle.de: the landing page and the invite page (backend/site_pages.py). The app's "Playful Arena" look:
   apricot cream, the violet stage, hard-edge buttons; arena-dark below for a dark system setting. */

:root {
  color-scheme: light dark;
  --bg: #FFF0E0;
  --card: #FFFAF4;
  --border: #E5D2C0;
  --text: #26232E;
  --text-2: #4C4658;
  --action: #7935ED;
  --action-edge: #5B21B6;
  --on-action: #FFFFFF;
  --gold: #FFC21A;
  --gold-text: #2B1B00;
  --gold-edge: #D99A00;
  --on-stage: #FFFFFF;
  --on-stage-2: rgba(255, 255, 255, 0.9);
  --glass: rgba(255, 255, 255, 0.14);
  --glass-border: rgba(255, 255, 255, 0.22);
  --stage: linear-gradient(180deg, #3D1150 0%, #3D1150 16%, #6B28B3 60%, #7A2EC0 100%);
  --font: ui-rounded, "SF Pro Rounded", Nunito, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #211E29;
    --card: #2D2938;
    --border: #51485E;
    --text: #F7F3FA;
    --text-2: #C7BFCE;
    --action: #AE95FA;
    --action-edge: #6D28D9;
    --on-action: #1F0750;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.5;
}

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

a { color: inherit; }

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* The stage: the app's calm violet band, rounded at its foot. */
.stage {
  background: var(--stage);
  color: var(--on-stage);
  border-radius: 0 0 32px 32px;
  padding: max(20px, env(safe-area-inset-top)) 0 40px;
}

.stage__inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.stage__text { max-width: 520px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  text-decoration: none;
  color: var(--on-stage);
}

.brand__icon { width: 48px; height: 48px; border-radius: 12px; }

.brand__name { font-size: 20px; font-weight: 900; }

h1, h2 { font-weight: 900; letter-spacing: -0.01em; }

h1 {
  margin: 28px 0 16px;
  font-size: clamp(40px, 12vw, 68px);
  line-height: 1.1;
}

/* The highlighted word, the store's gold label. */
.hl {
  display: inline-block;
  padding: 0 0.16em;
  border-radius: 0.2em;
  background: var(--gold);
  color: var(--gold-text);
  box-shadow: 0 0.08em 0 var(--gold-edge);
}

.lead {
  margin: 0 0 24px;
  font-size: 18px;
  color: var(--on-stage-2);
}

/* Hard-edge buttons: a darker edge under the face, sinking onto it when pressed. */
.button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  margin: 0 0 12px;
  padding: 14px 24px;
  border-radius: 14px;
  font-weight: 900;
  font-size: 18px;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  background: var(--gold);
  color: var(--gold-text);
  box-shadow: 0 4px 0 var(--gold-edge);
}

.button:active { transform: translateY(4px); box-shadow: 0 0 0 var(--gold-edge); }

.button:focus-visible { outline: 3px solid var(--on-stage); outline-offset: 3px; }

.button--violet { background: var(--action); color: var(--on-action); box-shadow: 0 4px 0 var(--action-edge); }
.button--violet:active { box-shadow: 0 0 0 var(--action-edge); }
.button--violet:focus-visible,
.button--ghost:focus-visible { outline-color: var(--action); }

.button--ghost {
  background: var(--card);
  color: var(--action);
  border: 1px solid var(--border);
  box-shadow: 0 4px 0 var(--border);
}
.button--ghost:active { box-shadow: 0 0 0 var(--border); }

.button--store { max-width: 360px; }

/* The second way in on the stage (the Android beta): a glass face, quieter than the store's gold. */
.button--glass {
  max-width: 360px;
  background: var(--glass);
  color: var(--on-stage);
  border: 1px solid var(--glass-border);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.18);
  font-size: 16px;
  min-height: 48px;
}
.button--glass:active { box-shadow: 0 0 0 rgba(0, 0, 0, 0.18); }

/* The beta's steps: numbered buttons in Google's order, a line under each. */
.steps { margin: 0; padding: 0; list-style: none; }
.steps li { margin: 0 0 20px; }
.steps .button { justify-content: flex-start; margin-bottom: 6px; }
.steps__n {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--glass);
  border: 1px solid var(--glass-border);
}
.steps p { margin: 0; padding: 0 4px; color: var(--text-2); font-size: 15px; }
.hint a { color: var(--action); font-weight: 900; }

.promise { margin: 8px 0 0; font-weight: 900; color: var(--on-stage); }

.promise--plain { color: var(--text); text-align: center; }

.next { margin: 8px 0 0; color: var(--on-stage-2); max-width: 360px; }

/* The two figures facing each other, the VS between them (the match stage). Whole-pixel scale only. */
.duel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.figure {
  width: 132px;
  height: 132px;
  image-rendering: pixelated;
}

.vs {
  display: grid;
  place-items: center;
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--gold-text);
  box-shadow: 0 4px 0 var(--gold-edge);
  font-weight: 900;
  font-size: 20px;
}

/* The screenshots: a row that scrolls sideways on a phone, all five in a row on a wide screen. */
.shots { padding: 40px 0 8px; }

.shots__list {
  display: flex;
  gap: 16px;
  margin: 0;
  padding: 0 max(16px, env(safe-area-inset-left)) 16px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 16px;
  overscroll-behavior-x: contain;
}

.shots__list > li { flex: 0 0 min(68vw, 260px); scroll-snap-align: start; }

.shot { margin: 0; }

.shot img {
  display: block;
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 4px 0 var(--border);
}

.shot figcaption { margin-top: 14px; color: var(--text-2); font-size: 15px; }

.shot strong { display: block; color: var(--text); font-size: 17px; font-weight: 900; }

.again { padding-top: 40px; padding-bottom: 32px; text-align: center; }

.again h2 { margin: 0 0 8px; font-size: 28px; line-height: 1.2; }

.again p { margin: 0 auto 24px; max-width: 460px; color: var(--text-2); }

.again .button { margin: 0 auto; }

/* The invite page: the rest under the stage. */
.invite { max-width: 452px; padding-top: 28px; padding-bottom: 16px; }

.hint { margin: 20px 0 0; color: var(--text-2); text-align: center; }

.invite .promise--plain { margin-top: 24px; }

.footer {
  padding: 24px 16px max(32px, env(safe-area-inset-bottom));
  text-align: center;
  color: var(--text-2);
  font-size: 14px;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 0;
}

.nowrap { white-space: nowrap; }

.footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 8px;
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

.footer nav a:hover { text-decoration: underline; }

.footer p { margin: 8px 0 0; }

/* Small phones (320 px): 1.5x, still whole device pixels on a 2x screen. */
@media (max-width: 374px) {
  .figure { width: 99px; height: 99px; }
  .vs { width: 48px; height: 48px; font-size: 17px; }
}

@media (min-width: 860px) {
  .stage { padding-top: 32px; padding-bottom: 56px; }
  .stage__inner { flex-direction: row; align-items: center; justify-content: space-between; }
  .stage--invite .stage__inner { justify-content: center; }
  .stage--invite .stage__text { text-align: center; }
  .stage--invite .button--store { margin-left: auto; margin-right: auto; }
  .stage--invite .next { margin-left: auto; margin-right: auto; }
  .duel { flex: 1; }
}

@media (min-width: 1100px) {
  .figure { width: 198px; height: 198px; }
  .vs { width: 64px; height: 64px; font-size: 22px; }
  .shots__list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 0 16px;
    overflow: visible;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shots__list { scroll-behavior: auto; }
  .button:active { transform: none; }
}
