:root {
  background: #f7f8f2;
  color-scheme: light;
}

:root[data-theme="dark"] {
  background: #1d241f;
  color-scheme: dark;
}

body {
  margin: 0;
}

.boot-shell {
  --boot-canvas: #f7f8f2;
  --boot-surface: #fff;
  --boot-text: #20251f;
  --boot-muted: #52604f;
  --boot-line: #dce2d5;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  padding: 0 32px;
  background: var(--boot-canvas);
  color: var(--boot-text);
  font: 16px/1.55 system-ui, sans-serif;
}

:root[data-theme="dark"] .boot-shell {
  --boot-canvas: #1d241f;
  --boot-surface: #28332b;
  --boot-text: #f7f8f2;
  --boot-muted: #bbc8b9;
  --boot-line: #465447;
}

.boot-header {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 1440px;
  min-height: 64px;
  margin: 0 auto;
  padding: 8px 0;
}

.boot-logo {
  display: block;
  width: 148px;
  height: auto;
}

.boot-logo-dark,
:root[data-theme="dark"] .boot-logo-light {
  display: none;
}

:root[data-theme="dark"] .boot-logo-dark {
  display: block;
}

.boot-main {
  box-sizing: border-box;
  display: grid;
  flex: 1;
  place-items: center;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px 0 64px;
}

.boot-card {
  box-sizing: border-box;
  width: min(100%, 480px);
  padding: clamp(24px, 5vw, 40px);
  border: 1px solid var(--boot-line);
  border-radius: 24px;
  background: var(--boot-surface);
  text-align: center;
}

.boot-pieces {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}

.boot-pieces span {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #d8f36a;
}

.boot-pieces span:nth-child(2) {
  border-radius: 50%;
  background: #d9d2f4;
}

.boot-pieces span:nth-child(3) {
  border-radius: 12px 12px 4px 12px;
  background: #ffaf86;
}

.boot-card h1 {
  margin: 0 0 8px;
  font: 600 clamp(1.75rem, 4vw, 2rem)/1.15 system-ui, sans-serif;
  letter-spacing: -0.015em;
}

.boot-card p {
  margin: 0;
  color: var(--boot-muted);
}

.boot-card a { color: #5243c2; }
:root[data-theme="dark"] .boot-card a { color: #c7beff; }
.boot-landing { width: min(100%, 1120px); display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; text-align: left; }
.boot-promo { display: block; width: 100%; height: auto; border-radius: 16px; }
.boot-actions { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-top: 24px; }
.boot-actions a { min-height: 44px; display: inline-flex; align-items: center; }
.boot-actions .boot-primary { padding: 0 16px; border-radius: 12px; color: #f7f8f2; background: #5243c2; }
:root[data-theme="dark"] .boot-actions .boot-primary { color: #20251f; background: #c7beff; }
.boot-card .boot-explore { margin-top: 16px; }

.boot-details { margin-top: 16px; text-align: left; }
.boot-details summary { display: list-item; min-height: 44px; align-content: center; cursor: pointer; }
.boot-details ul { padding-left: 24px; }
.boot-details li + li { margin-top: 16px; }
.boot-details h2, .boot-policy h2 { margin: 24px 0 8px; font-size: 1.25rem; line-height: 1.3; }
.boot-details h3 { margin: 0 0 4px; font-size: 1rem; }
.boot-policy { width: min(100%, 900px); text-align: left; }
.boot-policy p + p { margin-top: 16px; }
.boot-policy .privacy-updated { margin-bottom: 16px; font-size: 0.875rem; }

@media (max-width: 767px) {
  .boot-landing { grid-template-columns: 1fr; gap: 24px; }
}

.boot-noscript {
  padding: 16px 24px 48px;
  color: #20251f;
  font: 16px/1.55 system-ui, sans-serif;
}

.boot-noscript a {
  color: #5243c2;
}

@media (max-width: 767px) {
  .boot-shell {
    padding: 0 16px;
  }

  .boot-main {
    padding-bottom: 32px;
  }
}

/* Reuse the app's layout before JavaScript. These surfaces have already arrived. */
.boot-skeleton [data-reveal] { opacity: 1 !important; visibility: visible !important; transform: none !important; }
.boot-skeleton [data-boot-account="account"] { display: none; }
:root[data-account="account"] .boot-skeleton [data-boot-account="guest"] { display: none; }
:root[data-account="account"] .boot-skeleton [data-boot-account="account"] { display: contents; }
.boot-skeleton .loading-indicator { visibility: hidden; }
.boot-skeleton .guest-avatar { width: 36px; height: 36px; }
/* Play pages reserve the sound switch; its icon arrives with the saved preference. */
.boot-skeleton .header-sound-icon { width: 36px; height: 36px; }
