/* ==========================================================
   Your Game Name — site styles (shared by all three pages)
   Re-theme the whole site by changing the colors and fonts in :root.
   ========================================================== */

:root {
  --paper: #FFFBF2;
  --ink: #1D1B3A;
  --primary: #4B3BFF;
  --primary-deep: #3326C9;
  --sun: #FFC933;
  --coral: #FF6F59;
  --mint: #3DDBA8;

  --font-display: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --shadow-hard: 0 5px 0 var(--ink);
  --radius: 22px;
  --wrap: 1080px;
}

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

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

/* The page is at least one screen tall, and <main> takes up any spare room,
   so the footer always sits at the bottom of the screen, even on short pages. */
body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
}

main { flex: 1 0 auto; }

img, svg { max-width: 100%; display: block; }

a { color: inherit; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.band :focus-visible { outline-color: #fff; }
.foot :focus-visible { outline-color: #fff; }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
}

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }

/* ---------- Colored band (header + hero on every page) ---------- */

/* Background image: replace images/band-bg.png with your own.
   "cover" scales it evenly (never stretched) and trims the edges to fill the band
   on any screen shape. A landscape image around 1920x1080 works well.
   Keep it fairly calm so the white text stays readable. */
.band {
  background-color: var(--primary);
  background-image: url("images/you-win-bg.png");
  background-repeat: no-repeat;
  background-position:top;
  background-size: cover;
  color: #fff;
}

/* Optional: show a separate tall image on phones. Uncomment this and add
   images/band-bg-mobile.png.
@media (max-width: 700px) {
  .band { background-image: url("images/band-bg-mobile.png"); }
}
*/

/* ---------- Header ---------- */

.top-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 16px;
  padding-block: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  text-decoration: none;
  color: palevioletred;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: url("images/icon.png") center / contain no-repeat;
}
.brand-mark::after { display: none; }   /* removes the dark dot */


.top-nav { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 10px 18px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.btn-sun {
  background: palevioletred;
  color: var(--ink);
  border-color: var(--ink);
  box-shadow: 0 3px 0 var(--ink);
}
.btn-sun:hover { transform: translateY(-1px); box-shadow: 0 4px 0 var(--ink); }
.btn-sun:active { transform: translateY(3px); box-shadow: 0 0 0 var(--ink); }

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.75);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.14); border-color: #fff; }

.btn-ink {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  padding: 13px 24px;
  font-size: 1.05rem;
}
.btn-ink:hover { background: var(--primary-deep); border-color: var(--primary-deep); }

/* ---------- Hero ---------- */

.hero {
  padding-block: clamp(40px, 8vw, 88px) clamp(56px, 9vw, 110px);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  color:palevioletred;
  -webkit-text-stroke: 4px #1D1B3A;   /* outline color and thickness */
  paint-order: stroke fill;
}

.lead {
  max-width: 34ch;
  margin: 20px 0 32px;
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  color: palevioletred;
}

/* ---------- Store buttons ---------- */

.stores { display: flex; flex-wrap: wrap; gap: 14px; }

.store {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 176px;
  padding: 10px 20px 11px;
  background: #fff;
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 16px;
  box-shadow: var(--shadow-hard);
  line-height: 1.15;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.store small { font-size: 0.75rem; font-weight: 600; }
.store strong { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; }
.store:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--ink); }
.store:active { transform: translateY(5px); box-shadow: 0 0 0 var(--ink); }

/* ---------- Phone frame ---------- */

/* The frame has a fixed width and its height follows the picture inside it, so a
   screenshot of any shape is shown whole: never stretched and never cropped. */
.phone {
  position: relative;
  width: min(280px, 100%);
  margin-inline: auto;
  padding: 12px;
  background: var(--ink);
  border-radius: 44px;
  box-shadow: 12px 14px 0 rgba(0, 0, 0, 0.22);
}

.phone-screen {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  background: var(--ink);
}
.phone-screen img { display: block; width: 100%; height: auto; }

.hero .phone { transform: rotate(-6deg); animation: drop 0.7s cubic-bezier(0.3, 1.4, 0.5, 1) both; }

@keyframes drop {
  from { transform: translateY(-60px) rotate(-14deg); opacity: 0; }
  to   { transform: translateY(0) rotate(-6deg); opacity: 1; }
}

/* ---------- Sections ---------- */

.section { padding-block: clamp(56px, 9vw, 104px); }
.section h2 { max-width: 18ch; margin-bottom: 36px; font-size: clamp(2rem, 5vw, 3rem); }

/* Features */

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.tile {
  padding: 28px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard);
}
.tile svg { width: 44px; height: 44px; }
.tile h3 { margin: 18px 0 8px; font-size: 1.6rem; }
.tile p { margin: 0; }
.tile-sun { background: pink; }
.tile-mint { background: lightgoldenrodyellow; }
.tile-coral { background: skyblue; }

/* Screenshots */

.shots {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 8px 4px 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}
.shots .phone {
  flex: 0 0 min(220px, 62vw);
  margin: 0;
  scroll-snap-align: center;
  box-shadow: 8px 10px 0 rgba(29, 27, 58, 0.18);
}

/* Closing call to action */

.cta { padding-block: clamp(56px, 9vw, 96px); text-align: center; }
.cta h2 { margin: 0 auto 12px; font-size: clamp(2rem, 5vw, 3rem); }
.cta p { margin: 0 auto 28px; max-width: 40ch; color: #E9E6FF; }
.cta .stores { justify-content: center; }

/* ---------- Footer ---------- */

.foot { padding-block: 36px; background: palevioletred; color: var(--ink); }
.foot-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}
.foot nav { display: flex; gap: 24px; }
.foot a { text-underline-offset: 4px; }
.foot small { font-size: 0.9rem; opacity: 0.8; }

/* ---------- Inner pages (privacy, support) ---------- */

.page-head { padding-block: 28px 56px;}
.page-head h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); font-weight: 700; color:palevioletred; -webkit-text-stroke: 3px #1D1B3A; paint-order: stroke fill;}
.page-head p { margin: 12px 0 0; color:palevioletred; }

.prose { max-width: 68ch; padding-block: 48px 80px; }
.prose h2 { margin: 40px 0 12px; font-size: 1.6rem; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose ul { margin: 0 0 16px; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--primary-deep); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose a.btn { color: #fff; text-decoration: none; }

.contact {
  margin-bottom: 44px;
  padding: 28px;
  background: lightpink;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard);
}
.contact h2 { margin: 0 0 8px; }
.contact p:last-child { margin-bottom: 0; }

.faq { margin-top: 12px; border-top: 2px solid var(--ink); }
.faq details { border-bottom: 2px solid var(--ink); }
.faq summary {
  position: relative;
  padding: 18px 40px 18px 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1.25;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 4px;
  translate: 0 -50%;
  font-size: 1.7rem;
  transition: rotate 0.2s ease;
}
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { margin: 0 0 20px; }

/* ---------- Responsive ---------- */

@media (min-width: 900px) {
  .shots { justify-content: center; overflow: visible; }
  .shots .phone:nth-child(2) { translate: 0 -20px; }
}

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero .phone { width: min(240px, 70%); }
  .features { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .brand { font-size: 1.15rem; }
  .btn { padding: 9px 14px; font-size: 0.92rem; }
  .store { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero .phone { transform: rotate(-6deg); }
}
