/* ===========================================================================
   QuickSpin: Decision Roulette — app page styles.
   Self-contained so the page renders on its own, using the same design tokens
   as the sweet spot apps site (see /style.css). Loaded after ../styles.css.
   =========================================================================== */

:root {
  --bg: #0f131a;
  --bg-2: #0f1724;
  --text: #e8e9ee;
  --muted: #a4acc2;
  --panel: rgba(255,255,255,.04);
  --border: rgba(255,255,255,.10);
  --accent: #6aa8ff;
  --accent-2: #50e6ff;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --ring: rgba(80,230,255,.35);
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f8fb;
    --bg-2: #ffffff;
    --text: #1b2130;
    --muted: #667085;
    --panel: #ffffff;
    --border: #e8eaf1;
    --accent: #3b82f6;
    --accent-2: #22d3ee;
    --shadow: 0 10px 30px rgba(15,23,42,.08);
    --ring: rgba(59,130,246,.25);
  }
}

/* --- Base --- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", sans-serif;
  line-height: 1.65;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(106,168,255,.12), transparent 70%),
    radial-gradient(900px 500px at -10% 80%, rgba(80,230,255,.10), transparent 70%),
    var(--bg);
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); }

/* --- Layout --- */
.container { width: min(100%, 1120px); margin-inline: auto; padding: 20px; }
.app { max-width: 880px; }

.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in oklab, var(--bg) 70%, transparent);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .2px; }
.mark {
  width: 24px; height: 24px; display: grid; place-items: center; color: #0b1220;
  border-radius: 7px; font-weight: 900;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

/* --- Back link --- */
.back { margin: 8px 0 16px; }
.back a { color: var(--muted); text-decoration: none; font-weight: 600; }
.back a:hover, .back a:focus-visible { color: var(--text); }

/* --- Panels --- */
.panel {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow); margin-bottom: 20px;
}
.panel h2 {
  margin: 28px 0 12px; font-size: clamp(18px, 2.4vw, 22px); line-height: 1.3;
}
.panel h2:first-child { margin-top: 0; }
.panel p { margin: 0 0 12px; }
.panel p:last-child { margin-bottom: 0; }

/* --- App hero --- */
.app-hero { text-align: center; }
.app-title { font-size: clamp(26px, 4vw, 38px); margin: 4px 0 8px; line-height: 1.22; }
.app-tagline { color: var(--muted); font-size: clamp(15px, 2vw, 18px); margin: 0 0 8px; }
.hero-figure { margin: 18px 0 0; display: grid; place-items: center; gap: 8px; }
.hero-figure img { border-radius: 22px; box-shadow: var(--shadow); }
.hero-figure figcaption { color: var(--muted); font-size: 13px; }

/* --- Text blocks --- */
.app-desc { color: var(--text); }
.bullets { margin: 10px 0 14px; padding-left: 1.2em; display: grid; gap: 8px; }
.bullets li { color: var(--text); }

/* --- Screenshot gallery --- */
.gallery {
  display: flex; gap: 16px; overflow-x: auto; padding: 4px 2px 10px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.gallery img {
  flex: 0 0 auto; width: 300px; height: auto; border-radius: 18px;
  border: 1px solid var(--border); box-shadow: var(--shadow); scroll-snap-align: start;
}

/* --- Link lists --- */
.store-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.store-links li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.store-links .label { color: var(--muted); font-weight: 700; min-width: 96px; }
.store-links a { color: var(--accent); text-decoration: none; font-weight: 600; }
.store-links a:hover, .store-links a:focus-visible { text-decoration: underline; }

/* --- Footer --- */
.site-footer { border-top: 1px solid var(--border); margin-top: 12px; }
.site-footer .container { color: var(--muted); font-size: 14px; padding: 18px 20px 40px; }

/* --- Small screens --- */
@media (max-width: 640px) {
  .store-links .label { min-width: 0; }
}
