/* triviamix.app home (B-154). Self-hosted fonts (the app's Fredoka + Nunito, SIL OFL; licences in /assets/fonts/). */
@font-face { font-family: "Fredoka"; font-weight: 700; font-display: swap; src: url("/assets/fonts/Fredoka-Bold.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 700; font-display: swap; src: url("/assets/fonts/Nunito-Bold.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 800; font-display: swap; src: url("/assets/fonts/Nunito-ExtraBold.woff2") format("woff2"); }

:root {
  --green: #4cc291;
  --green-light: #6fd9ab;
  --green-deep: #2f9c70;
  --green-dark: #1d6f4f;
  --ink: #0f4a34;
  --yellow: #ffd447;
  --white: #ffffff;
}

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

html { background: var(--green-dark); }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--white);
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 700;
  overflow-x: hidden;
  background:
    repeating-conic-gradient(from 0deg at 50% 0%, rgba(255, 255, 255, 0.07) 0deg 6deg, rgba(255, 255, 255, 0) 6deg 14deg),
    radial-gradient(ellipse 120% 80% at 50% 0%, var(--green-light) 0%, var(--green) 32%, var(--green-deep) 68%, var(--green-dark) 100%);
  background-attachment: scroll;
}

.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 20px 8px;
  text-align: center;
}

.logo {
  display: block;
  width: min(560px, 90vw);
  height: auto;
  margin: 0 auto;
}

h1 {
  margin: 18px 0 10px;
  font-family: "Fredoka", "Nunito", system-ui, sans-serif;
  font-weight: 700;
  font-size: 44px;
  line-height: 1.1;
  text-shadow: 0 3px 0 rgba(15, 74, 52, 0.35);
}

.tagline {
  max-width: 460px;
  margin: 0 auto 24px;
  font-size: 19px;
  line-height: 1.45;
  color: #eafff6;
}

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: center;
  margin-bottom: 36px;
}

/* The official badge PNG carries its own clear space; 646x250 shown at 72 px high. */
.play img { display: block; height: 72px; width: auto; }

.soon {
  display: inline-flex;
  align-items: center;
  height: 50px;
  padding: 0 20px;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  color: var(--white);
  font-weight: 800;
  font-size: 16px;
  text-decoration: none;
  background: rgba(15, 74, 52, 0.25);
}

.shots {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 18px;
}

.shot {
  margin: 0;
  width: 236px;
  padding: 18px 16px 0;
  border-radius: 26px;
  background: linear-gradient(180deg, #5fd0a0 0%, #3fae80 100%);
  border: 2px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 18px 40px rgba(10, 50, 35, 0.35);
  overflow: hidden;
}
.shot.center { width: 236px; margin-top: -10px; }
.shot.left { transform: rotate(-3deg); margin-top: 8px; }
.shot.right { transform: rotate(3deg); margin-top: 8px; }

figcaption {
  font-family: "Fredoka", "Nunito", sans-serif;
  line-height: 1.05;
  margin-bottom: 14px;
  text-shadow: 0 2px 0 rgba(15, 74, 52, 0.4);
}
figcaption span { display: block; font-size: 19px; color: var(--white); }
figcaption b { display: block; font-size: 25px; color: var(--yellow); }

.phone {
  border: 7px solid #123b2b;
  border-bottom: 0;
  border-radius: 30px 30px 0 0;
  overflow: hidden;
  background: #123b2b;
}
.phone img { display: block; width: 100%; height: auto; }

footer {
  padding: 26px 20px 32px;
  text-align: center;
  color: #d9f7ea;
  font-size: 15px;
}
footer p { margin: 0 0 6px; }
footer a { color: var(--white); }
footer .legal { font-size: 12px; color: rgba(255, 255, 255, 0.6); }

/* Phones: the three shots become a swipeable row inside the page (never a horizontal page scroll). */
@media (max-width: 760px) {
  .page { padding: 28px 16px 4px; }
  h1 { font-size: 30px; }
  .tagline { font-size: 17px; }
  .play img { height: 62px; }
  .stores { gap: 8px; flex-wrap: nowrap; }
  .soon { height: 44px; padding: 0 12px; font-size: 14px; white-space: nowrap; }
  .shots {
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin: 0 -16px;
    padding: 6px 16px 18px;
    gap: 14px;
  }
  .shots .shot { flex: 0 0 72%; width: auto; scroll-snap-align: center; margin-top: 0; transform: none; }
  .shots .center { order: -1; }
}
