:root {
  color-scheme: light dark;
  --bg: #f6f8fc;
  --bg-2: #eaf0fb;
  --card: #ffffff;
  --text: #141b27;
  --muted: #5a6675;
  --border: #d9e0ec;
  --accent: #2c50b4;
  --accent-strong: #1b306e;
  --accent-soft: #e9f0ff;
  --on-accent: #ffffff;
  --shadow: 0 14px 40px rgb(20 40 110 / 10%);
  --wrap-max: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0f16;
    --bg-2: #0e141d;
    --card: #141b25;
    --text: #eef2f8;
    --muted: #a9b4c2;
    --border: #273140;
    --accent: #7d9dff;
    --accent-strong: #a8bfff;
    --accent-soft: #16202f;
    --on-accent: #0b1326;
    --shadow: 0 18px 50px rgb(0 0 0 / 45%);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }

.wrap {
  width: min(100%, var(--wrap-max));
  margin: 0 auto;
  padding: 0 24px;
}

header.bar {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(180%) blur(12px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--border);
}

.bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  width: min(100%, var(--wrap-max));
  margin: 0 auto;
  padding: 0 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.1rem;
  text-decoration: none;
  color: var(--text);
}

.brand .logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  overflow: hidden;
  flex: 0 0 auto;
}

.brand .sync { color: var(--accent); }

.bar-inner a.home {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.bar-inner a.home:hover { color: var(--text); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn.primary {
  background: var(--accent);
  color: var(--on-accent);
}

.btn.primary:hover { background: var(--accent-strong); }

.btn.secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn.secondary:hover { background: var(--accent-soft); }

.play {
  background: #000;
  color: #fff;
  border-radius: 12px;
  padding: 10px 20px 10px 16px;
  min-height: 56px;
  gap: 12px;
}

.play:hover { background: #111; }

.play .pp-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  text-align: left;
}

.play .pp-text small {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.92;
}

.play .pp-text strong {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.foot-inner {
  width: min(100%, var(--wrap-max));
  margin: 0 auto;
  padding: 0 24px;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 22px;
  margin-top: 8px;
}

.foot-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.foot-links a:hover { color: var(--text); }

.hidden { display: none; }
