/* Play Burst: privacy, terms and support pages.
   The app icon's palette: a coral-to-orange gradient, a cream badge, and confetti. */

:root {
  color-scheme: light dark;
  --coral: #f5504b;
  --orange: #ff8a50;
  /* Darker ends of the same gradient, for anything with white text on it (4.7:1 or more) */
  --deep-orange: #c74c25;
  --deep-coral: #cc3d3a;
  --cream: #fff6e5;
  --cocoa: #4a2328;
  --green: #4cd964;
  --cyan: #33c9dc;
  --yellow: #ffd93b;
  --purple: #8e6cf8;

  --bg: #fbf7f2;
  --surface: #ffffff;
  --text: #2a1a1c;
  --muted: #7a6a6c;
  --line: rgba(74, 35, 40, 0.1);
  --link: #d9423d;
  --shadow: 0 1px 2px rgba(74, 35, 40, 0.06), 0 8px 24px rgba(74, 35, 40, 0.07);

  --radius: 22px;
  --rounded: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17110f;
    --surface: #221a18;
    --text: #f6ece6;
    --muted: #b3a29e;
    --line: rgba(255, 236, 225, 0.1);
    --link: #ff8a70;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 var(--body);
}

a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }

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

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, var(--deep-orange) 0%, var(--deep-coral) 100%);
  padding: 22px 0 76px;
}

/* Confetti, as on the icon */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-repeat: no-repeat;
}
.hero::before {
  background-image:
    radial-gradient(circle, var(--yellow) 0 7px, transparent 8px),
    radial-gradient(circle, var(--purple) 0 8px, transparent 9px),
    radial-gradient(circle, var(--yellow) 0 6px, transparent 7px);
  background-size: 40px 40px;
  background-position: right 10% top 22px, right 34% bottom 38px, left 6% bottom 40px;
}
.hero::after {
  background-image:
    linear-gradient(var(--green), var(--green)),
    linear-gradient(var(--cyan), var(--cyan)),
    linear-gradient(var(--purple), var(--purple));
  background-size: 7px 28px, 7px 26px, 7px 26px;
  background-position: right 26% top 28px, right 8% bottom 36px, right 3% top 64px;
  opacity: 0.95;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.12));
}
.brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  width: fit-content;
}
.brand img {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  box-shadow: 0 4px 14px rgba(120, 30, 20, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.35);
}
.brand span {
  font: 800 20px/1 var(--rounded);
  letter-spacing: -0.01em;
}

.hero h1 {
  position: relative;
  z-index: 1;
  margin: 40px 0 8px;
  font: 900 clamp(34px, 7vw, 52px)/1.05 var(--rounded);
  letter-spacing: -0.02em;
}
.hero .lede {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 560px;
  font-size: 19px;
  opacity: 0.95;
}

/* ---------- Tabs between the pages ---------- */

.tabs {
  position: relative;
  z-index: 2;
  margin-top: -30px;
}
.tabs nav {
  display: flex;
  gap: 4px;
  padding: 5px;
  background: var(--surface);
  border-radius: 999px;
  box-shadow: var(--shadow);
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
}
.tabs a {
  flex: none;
  padding: 10px 18px;
  border-radius: 999px;
  color: var(--text);
  font: 700 15px/1 var(--rounded);
  text-decoration: none;
  white-space: nowrap;
}
.tabs a:hover { background: var(--line); }
.tabs a[aria-current="page"] {
  color: #fff;
  background: linear-gradient(135deg, var(--deep-orange), var(--deep-coral));
}

/* ---------- Content ---------- */

main { padding: 36px 0 24px; }

.meta {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 14px;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 26px;
  margin: 0 0 16px;
}
.card h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 8px;
  font: 800 21px/1.25 var(--rounded);
  letter-spacing: -0.01em;
}
.card p { margin: 0 0 12px; }
.card p:last-child,
.card ul:last-child { margin-bottom: 0; }
.card ul { margin: 0 0 12px; padding-left: 22px; }
.card li { margin: 4px 0; }

.icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  font-size: 19px;
  line-height: 1;
}
.i-coral  { background: rgba(245, 80, 75, 0.14); }
.i-green  { background: rgba(76, 217, 100, 0.18); }
.i-cyan   { background: rgba(51, 201, 220, 0.18); }
.i-yellow { background: rgba(255, 217, 59, 0.25); }
.i-purple { background: rgba(142, 108, 248, 0.18); }

/* ---------- "At a glance" tiles ---------- */

.glance {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin: 0 0 28px;
}
.glance div {
  background: var(--surface);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 18px;
}
.glance strong {
  display: block;
  margin: 10px 0 2px;
  font: 800 17px/1.2 var(--rounded);
}
.glance span:not(.icon) { color: var(--muted); font-size: 14px; line-height: 1.4; display: block; }

.section-title {
  margin: 32px 0 14px;
  font: 800 13px/1 var(--rounded);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Support ---------- */

.contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(135deg, rgba(255, 138, 80, 0.14), rgba(245, 80, 75, 0.14));
  border: 1px solid rgba(245, 80, 75, 0.25);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin: 0 0 12px;
}
.contact h2 { margin: 0 0 4px; font: 800 21px/1.25 var(--rounded); }
.contact p { margin: 0; color: var(--muted); }

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--deep-orange), var(--deep-coral));
  box-shadow: 0 6px 18px rgba(245, 80, 75, 0.35);
  font: 800 16px/1 var(--rounded);
  text-decoration: none;
  white-space: nowrap;
}
.button:hover { filter: brightness(1.05); text-decoration: none; }

.hint { margin: 0 0 8px; color: var(--muted); font-size: 15px; }

details {
  background: var(--surface);
  border-radius: 18px;
  box-shadow: var(--shadow);
  margin: 0 0 10px;
}
summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
  font: 700 17px/1.35 var(--rounded);
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--line);
  font: 700 18px/1 var(--rounded);
  transition: transform 0.2s ease;
}
details[open] summary::after { transform: rotate(45deg); }
details > div { padding: 0 22px 18px; }
details p { margin: 0 0 10px; }
details p:last-child { margin-bottom: 0; }

kbd {
  font: 600 14px/1 var(--rounded);
  padding: 3px 7px;
  border-radius: 7px;
  background: var(--line);
}

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

footer {
  padding: 28px 0 48px;
  color: var(--muted);
  font-size: 14px;
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }

/* ---------- Landing ---------- */

.pages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}
.pages a {
  display: block;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  color: var(--text);
  text-decoration: none;
  transition: transform 0.15s ease;
}
.pages a:hover { transform: translateY(-2px); }
.pages strong { display: block; margin: 12px 0 4px; font: 800 19px/1.2 var(--rounded); }
.pages span:not(.icon) { color: var(--muted); font-size: 15px; line-height: 1.45; display: block; }

@media (max-width: 520px) {
  body { font-size: 16px; }
  .card { padding: 20px; }
  .contact { padding: 20px; }
  .hero { padding-bottom: 70px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  .hero { background: none; color: #000; padding-bottom: 0; }
  .hero::before, .hero::after, .tabs, footer nav { display: none; }
  .card, details, .glance div { box-shadow: none; border: 1px solid #ddd; }
}
