/* Shared, opaque text colors keep secondary navigation readable. */
:root {
  color-scheme: dark;
  --bg: #211b1b;
  --fg: #faf3eb;
  --fg-muted: #d8c8bd;
  --fg-faint: #c2b0a4;
  --accent: #88dcd4;
  --cyan: #88dcd4;
  --border: #64534b;
  --card-bg: #2c2423;
  --ring: #64534b;
  --shadow: rgba(0, 0, 0, .3);
}
@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #faf5ef;
    --fg: #302522;
    --fg-muted: #65534b;
    --fg-faint: #715f55;
    --accent: #196d68;
    --border: #bdada0;
    --card-bg: #f1e8df;
    --ring: #bdada0;
    --shadow: rgba(70, 40, 25, .14);
  }
}
html, body { height: auto; }
body { overflow-x: hidden; overflow-y: auto; }
body::before {
  background: radial-gradient(ellipse at center, rgba(206, 132, 92, .10), transparent 70%);
}
.icon-wrap { display: block; flex-shrink: 0; }
a:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
  border-radius: 4px;
}
.site-footer { width: 100%; text-align: center; margin-top: 32px; }
.card .site-footer { margin-top: 0; }
.footer-links, .social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 20px;
  margin: 0;
}
.footer-links a, .social-links a, .back-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--fg-muted);
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 4px;
}
.footer-links a:hover, .social-links a:hover, .back-link:hover {
  color: var(--fg);
  text-decoration-color: currentColor;
}
.social-links {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  margin-top: 16px;
  gap: 14px;
}
.social-links a {
  width: 50px;
  min-height: 50px;
  height: 50px;
  justify-content: center;
  border-radius: 50%;
  background: #fffaf5;
  color: #2f2530;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.social-links a:hover {
  color: #fffaf5;
  background: var(--accent);
  transform: translateY(-2px);
  text-decoration: none;
}
.social-links svg { width: 22px; height: 22px; fill: currentColor; }
.social-links .social-icon--youtube { color: #e52d27; }
.social-links .social-icon--instagram { color: #d83c84; }
.social-links .social-icon--tiktok { color: #17141a; }
.social-links .social-icon--reddit { color: #f04a24; }
.social-links a:hover svg { color: #2f2530; }
.platform-line {
  color: var(--fg-faint);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin: -22px 0 22px;
}
.download-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-bottom: 44px; }
@property --spin-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
.download-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card-bg);
  color: var(--fg);
  text-decoration: none;
  isolation: isolate;
  transition: transform .15s ease;
}
.download-btn::before {
  content: '';
  position: absolute;
  inset: -3px;
  z-index: -1;
  border-radius: 15px;
  padding: 2px;
  background: conic-gradient(from var(--spin-angle),
    #cf6f92 0%, #f0a860 14.28%, #d4c268 28.56%, #93b98a 42.84%,
    #78b0af 57.12%, #7ea3d8 71.4%, #a578c9 85.68%, #cf6f92 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: .58;
  filter: blur(.45px) drop-shadow(0 0 3px rgba(165, 120, 201, .25));
  transition: opacity .25s ease;
  pointer-events: none;
  animation: spin-border 6s linear infinite;
}
.download-btn:hover { transform: translateY(-2px); }
.download-btn:hover::before { opacity: .72; }
.download-btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; }
.btn-sub { color: var(--fg-faint); font-size: 9px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.btn-main { font-size: 13px; font-weight: 600; }
.download-btn--coming { cursor: default; opacity: .72; }
.download-btn--coming::before { display: none; }
@keyframes spin-border { to { --spin-angle: 360deg; } }
.platform-note { color: var(--fg-faint); font-size: 12px; line-height: 1.8; margin-top: 20px; }
.badge-rainbow { background: none; -webkit-text-fill-color: currentColor; color: var(--accent); animation: none; }
.badge { color: var(--accent); border-color: var(--border); background: var(--card-bg); }
.coming-soon { color: var(--accent); font-weight: 600; margin: 16px 0; }
header p { line-height: 1.7; }
article.post-featured:hover, article.post-item:hover { transform: none; border-color: var(--border); background: var(--card-bg); }
article.post-featured:hover::before { opacity: 0; }
.legal-page { background: #faf5ef; color: #302522; color-scheme: light; }
.legal-page > .site-footer {
  box-sizing: border-box;
  padding: 28px 20px;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}
.legal-page .site-footer a { color: var(--fg-muted); }
@media (max-width: 400px) {
  .footer-links, .social-links { column-gap: 16px; }
  .download-row { gap: 10px; }
  .download-btn { padding: 10px 14px; }
  .post-featured { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
