/* Between Stars pages on melon.tools. Palette taken from the app icon and
   the in-game colours: night blue, starlight cyan, aura violet, figure gold.
   Text never goes below ~7:1 against the background. */
:root {
  --night: #05061f;
  --deep: #0c1152;
  --panel: rgba(255, 255, 255, 0.05);
  --line: rgba(255, 255, 255, 0.12);
  --ink: #eef0ff;
  --muted: #b9bde6;
  --cyan: #8cd9ff;
  --violet: #c9a6ff;
  --gold: #ffd68c;
  --max: 1080px;
  --read: 720px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(1200px 700px at 80% -10%, #1a22a8 0%, rgba(26, 34, 168, 0) 60%),
              radial-gradient(900px 600px at -10% 30%, rgba(120, 70, 220, 0.35) 0%, rgba(120, 70, 220, 0) 60%),
              var(--night);
  background-attachment: fixed;
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
p a, li a, dd a, .faq-item a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
p a:hover, li a:hover, .faq-item a:hover { color: #fff; }
img { max-width: 100%; height: auto; display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.shell { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.read { max-width: var(--read); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(5, 6, 31, 0.82);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; letter-spacing: 0.01em; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav-links { display: flex; gap: 20px; font-size: 15px; }
.nav-links a { text-decoration: none; color: var(--muted); }
.nav-links a:hover { color: #fff; }
@media (max-width: 720px) { .nav-links { display: none; } }

/* Hero */
.hero { padding: 72px 0 56px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.kicker { text-transform: uppercase; letter-spacing: 0.14em; font-size: 13px; color: var(--gold); margin: 0 0 12px; }
h1 { font-size: clamp(40px, 7vw, 68px); line-height: 1.05; margin: 0 0 18px; font-weight: 600; letter-spacing: -0.02em; }
.lede { font-size: 20px; color: var(--muted); margin: 0 0 28px; }
.app-id { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.app-id .kicker { margin: 0; }
.app-icon { width: 64px; height: 64px; border-radius: 22%; box-shadow: 0 8px 24px rgba(60, 80, 255, 0.35); }
/* Three screenshots, the middle one in front, the others fanned behind. */
.hero-shots { display: flex; justify-content: center; align-items: center; padding: 12px 0 24px; }
.shot { height: auto; border-radius: 11% / 5.1%; border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 60px rgba(90, 100, 255, 0.18); }
.shot-main { width: 44%; max-width: 270px; position: relative; z-index: 2; }
.shot-side { width: 36%; max-width: 220px; opacity: 0.92; }
.shot-left { transform: rotate(-7deg) translate(34%, 18px); }
.shot-right { transform: rotate(7deg) translate(-34%, 18px); }
@media (max-width: 820px) {
  .hero { padding-top: 32px; }
  .hero-grid { grid-template-columns: 1fr; gap: 20px; }
  .hero-shots { max-width: 520px; margin: 0 auto; }
}
.store-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.store-badge { display: inline-flex; height: 48px; }
a.store-badge, a.store-badge img { cursor: pointer; -webkit-user-select: none; user-select: none; -webkit-user-drag: none; }
.store-badge img { height: 100%; width: auto; }
.store-note { font-size: 14px; color: var(--muted); margin: 10px 0 0; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 26px 0 0; padding: 0; list-style: none; font-size: 15px; color: var(--muted); }
.facts b { color: var(--ink); font-weight: 600; }

/* Sections */
section { padding: 56px 0; }
h2 { font-size: clamp(28px, 4vw, 38px); line-height: 1.15; margin: 0 0 14px; font-weight: 600; letter-spacing: -0.01em; }
h3 { font-size: 20px; margin: 0 0 8px; font-weight: 600; }
.section-lede { color: var(--muted); max-width: 640px; margin: 0 0 32px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 22px; }
.card p { color: var(--muted); margin: 0; }
.card img { border-radius: 16px; margin-bottom: 18px; }
.cards.pair { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 720px) { .cards.pair { grid-template-columns: 1fr; } }
.card.wide { grid-column: 1 / -1; }
.tag { display: inline-block; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 6px; }
.tag.cyan { color: var(--cyan); } .tag.violet { color: var(--violet); } .tag.gold { color: var(--gold); }
.figures { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 18px; }
.figures img { border-radius: 14px; }

.checks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px 28px; }
.checks li { padding-left: 30px; position: relative; color: var(--muted); }
.checks li b { color: var(--ink); font-weight: 600; }
.checks li::before { content: "✦"; position: absolute; left: 0; top: 0; color: var(--gold); }
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.price-grid .card.highlight { border-color: rgba(255, 214, 140, 0.55); background: rgba(255, 214, 140, 0.07); }
.price { font-size: 28px; font-weight: 600; margin: 4px 0 12px; }
.price small { font-size: 15px; color: var(--muted); font-weight: 400; }
.card ul { margin: 0; padding-left: 20px; color: var(--muted); }
.card ul li { margin: 4px 0; }

/* Buttons and the beta call to action */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 14px; font-weight: 600; font-size: 16px; text-decoration: none; border: 1px solid var(--line); color: var(--ink); background: var(--panel); }
.button.primary { background: var(--gold); border-color: var(--gold); color: #120f2a; }
.button.primary:hover { background: #ffe2a8; }
.beta-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; border-color: rgba(255, 214, 140, 0.45); background: rgba(255, 214, 140, 0.07); }
.beta-card h2 { font-size: clamp(24px, 3.4vw, 30px); margin-bottom: 8px; }
.beta-card p { max-width: 560px; }

/* FAQ */
.faq-list { display: grid; gap: 12px; }
.faq-item { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; }
.faq-item summary { cursor: pointer; font-weight: 600; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; float: right; color: var(--muted); }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { color: var(--muted); margin: 10px 0 0; }
.sources { font-size: 14px; color: var(--muted); }
.sources ol { padding-left: 20px; }

/* Text pages (privacy, support) */
.doc { padding: 48px 0 24px; }
.doc h1 { font-size: clamp(34px, 5vw, 48px); }
.doc h2 { font-size: 24px; margin-top: 36px; }
.doc p, .doc li { color: var(--muted); }
.doc strong { color: var(--ink); }
.doc .updated { font-size: 14px; }
.lang-switch { font-size: 15px; margin: 0 0 24px; }
.lang-switch a { color: var(--cyan); }
.divider { border: 0; border-top: 1px solid var(--line); margin: 56px 0 40px; }
address { font-style: normal; color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 48px; margin-top: 40px; font-size: 14px; color: var(--muted); }
.site-footer .shell { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }
