:root {
  color-scheme: dark;
  --bg: #151322;
  --surface: #211d32;
  --surface-raised: #2b2540;
  --text: #f8f6ff;
  --muted: #b4acc9;
  --line: rgba(236, 225, 255, .13);
  --accent: #c4a9ff;
  --accent-strong: #7954ce;
  --on-accent: #160e2e;
  --focus: #72e0cf;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f8f6fc;
  --surface: #fff;
  --surface-raised: #f1ecfa;
  --text: #252035;
  --muted: #625b70;
  --line: rgba(63, 43, 96, .14);
  --accent: #5c39aa;
  --accent-strong: #6e46c6;
  --on-accent: #fff;
  --focus: #286d6b;
}
* { box-sizing: border-box; }
html { min-width: 280px; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; background: radial-gradient(circle at 85% 5%, rgba(124, 87, 207, .19), transparent 34%), radial-gradient(circle at 0 55%, rgba(37, 118, 135, .1), transparent 35%); }
button, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .35; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
[v-cloak] { display: none; }
#app { position: relative; min-height: 100vh; display: flex; flex-direction: column; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { max-width: 780px; margin: auto; min-height: 72px; display: flex; align-items: center; gap: 11px; padding: 12px 20px; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
.brand-mark { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 13px; overflow: hidden; }
.brand-mark svg { display: block; width: 100%; height: 100%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.08; letter-spacing: .06em; font-size: 10px; }
.brand-text strong { font-size: 14px; letter-spacing: .035em; }
.header-date { margin-left: auto; font-size: 13px; color: var(--muted); white-space: nowrap; }
.page { width: min(100%, 780px); margin: 0 auto; flex: 1; padding: 38px 20px 44px; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
.eyebrow, .recommendation-kicker { color: var(--accent); font-size: 11px; letter-spacing: .15em; font-weight: 750; }
.welcome h1 { margin: 12px 0 14px; font-size: clamp(42px, 10vw, 72px); line-height: 1.03; letter-spacing: -.055em; }
.welcome h1 em { font-style: normal; color: var(--accent); }
.intro { max-width: 470px; color: var(--muted); font-size: 16px; line-height: 1.55; margin: 0 0 26px; }
.button { min-height: 48px; border-radius: 14px; border: 1px solid transparent; padding: 11px 18px; font-weight: 700; }
.button-primary { background: var(--accent-strong); color: #fff; }
.button-primary:hover { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .24); }
.button-secondary { background: var(--surface); color: var(--text); border-color: var(--line); }
.personal-button { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: min(100%, 450px); text-align: left; margin-bottom: 34px; }
.personal-icon { width: 31px; height: 31px; flex: 0 0 31px; }
.personal-button .personal-arrow { margin-left: auto; font-size: 22px; line-height: 1; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.section-heading h2 { margin: 0; font-size: 20px; }
.section-heading span { color: var(--muted); font-size: 12px; white-space: nowrap; }
.sign-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.sign-card { min-width: 0; min-height: 76px; display: flex; align-items: center; gap: 12px; text-align: left; padding: 12px 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--text); font-weight: 650; transition: background .15s, transform .15s; }
.sign-card:hover { background: var(--surface-raised); transform: translateY(-2px); }
.sign-image { width: 42px; height: 42px; flex: 0 0 42px; }
.sign-arrow { margin-left: auto; font-weight: 400; color: var(--muted); }
.back-button { background: none; border: 0; padding: 10px 8px; margin-left: -8px; color: var(--accent); font-weight: 650; min-height: 44px; }
.back-button span { margin-left: 7px; }
.date-nav { width: min(100%, 500px); margin: 15px auto 21px; display: flex; align-items: center; justify-content: space-between; text-align: center; gap: 12px; }
.date-nav div { display: flex; flex-direction: column; gap: 5px; }
.date-nav span { color: var(--accent); font-size: 10px; letter-spacing: .16em; font-weight: 800; }
.date-nav strong { font-size: 17px; white-space: nowrap; }
.date-nav small { color: var(--muted); font-size: 12px; }
.date-step { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: 29px; line-height: 1; }
.reading-card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: clamp(20px, 5vw, 35px); box-shadow: 0 16px 48px rgba(0, 0, 0, .12); }
.reading-head { display: flex; align-items: center; gap: 16px; }
.reading-image { width: 67px; height: 67px; flex: 0 0 67px; }
.reading-head p { margin: 0 0 3px; color: var(--muted); font-size: 13px; }
.reading-head > div { min-width: 0; }
.reading-head h1 { margin: 0; overflow-wrap: anywhere; font-size: clamp(28px, 8.5vw, 33px); letter-spacing: -.035em; }
.planet-label { color: var(--accent); font-size: 14px; font-weight: 700; margin: 24px 0 13px; }
.prediction-text { font-size: clamp(17px, 4.4vw, 20px); line-height: 1.65; margin: 0; white-space: pre-line; }
.recommendation { margin-top: 27px; padding: 20px; background: var(--surface-raised); border-radius: 18px; }
.recommendation-kicker { margin: 0 0 5px; }
.genre { margin: 0 0 16px; font-size: 17px; font-weight: 750; }
.song-link { min-height: 66px; display: flex; align-items: center; gap: 12px; text-decoration: none; padding: 9px 12px; border-radius: 13px; background: var(--surface); border: 1px solid var(--line); }
.song-link > span:nth-child(2) { min-width: 0; display: flex; flex: 1; flex-direction: column; gap: 3px; }
.song-link strong { overflow-wrap: anywhere; }
.song-link small { color: var(--muted); overflow-wrap: anywhere; }
.song-action { color: var(--accent); font-size: 12px; font-weight: 650; margin-top: 5px; }
.song-link:hover { border-color: var(--accent); }
.music-search-icon { width: 35px; height: 35px; flex: 0 0 35px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-strong); color: #fff; font-size: 12px; }
.music-search-icon svg { width: 19px; height: 19px; }
.reading-actions { margin: 18px 0 10px; display: flex; gap: 10px; flex-wrap: wrap; }
.action-message { color: var(--muted); font-size: 14px; }
.sign-explorer { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.7fr); align-items: center; gap: 28px; margin-top: 42px; padding: 28px; border: 1px solid var(--line); border-radius: 26px; background: radial-gradient(circle at 0 0, rgba(137, 101, 224, .14), transparent 58%), var(--surface); }
.sign-explorer-kicker { margin: 0 0 11px; color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.sign-explorer-heading h2 { margin: 0; font-size: clamp(23px, 3.5vw, 29px); line-height: 1.13; letter-spacing: -.035em; }
.sign-explorer-heading h2 em { color: var(--accent); font-style: normal; }
.sign-explorer-heading > p:last-child { margin: 14px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.sign-explorer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.sign-explorer-option { min-width: 0; min-height: 78px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 7px 3px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-raised); color: var(--text); font-size: 12px; font-weight: 650; transition: border-color .15s, transform .15s, background .15s; }
.sign-explorer-option:hover { border-color: var(--accent); transform: translateY(-2px); }
.sign-explorer-option.is-current { border-color: var(--accent); background: var(--surface); color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.sign-explorer-option img { width: 38px; height: 38px; }
.state-card { max-width: 530px; margin: 11vh auto 0; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 36px 25px; }
.state-card h1 { font-size: 24px; }
.state-card p { color: var(--muted); line-height: 1.5; }
.state-icon { color: var(--accent); font-size: 52px; }
.loader { display: inline-block; width: 39px; height: 39px; border: 4px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.site-footer { display: flex; justify-content: center; gap: 8px 20px; flex-wrap: wrap; padding: 14px 16px calc(22px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.site-footer button, .site-footer a { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 8px 4px; }
.site-footer button { border: 0; background: none; color: inherit; }
.site-footer a { text-decoration: none; }
.dialog-backdrop { position: fixed; z-index: 10; inset: 0; background: rgba(9, 7, 20, .72); display: grid; place-items: end center; }
.apps-dialog { width: min(100%, 560px); max-height: min(85vh, 780px); overflow: auto; padding: 20px 20px calc(20px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; background: var(--surface); }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; }
.dialog-heading h2 { font-size: 21px; margin: 0 0 12px; }
.close-button { border: 0; background: var(--surface-raised); color: var(--text); border-radius: 50%; width: 44px; height: 44px; flex: 0 0 44px; font-size: 25px; }
.app-row { min-height: 75px; display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); text-decoration: none; }
.app-row img { width: 50px; height: 50px; object-fit: cover; border-radius: 12px; }
.app-row span:nth-child(2) { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.app-row small { color: var(--muted); }
@media (max-width: 620px) {
  .page { padding-top: 31px; }
  .sign-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .sign-card { min-height: 100px; flex-direction: column; justify-content: center; text-align: center; gap: 7px; padding: 10px 4px; font-size: 13px; }
  .sign-image { width: 48px; height: 48px; flex-basis: 48px; }
  .sign-arrow { display: none; }
  .reading-actions .button { width: 100%; }
  .sign-explorer { grid-template-columns: 1fr; gap: 21px; margin-top: 31px; padding: 21px; }
  .sign-explorer-heading > p:last-child { margin-top: 8px; }
  .sign-explorer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 340px) {
  .header-date { display: none; }
  .page { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
  .reading-card { padding: 18px; }
  .reading-head { gap: 12px; }
  .reading-image { width: 58px; height: 58px; flex-basis: 58px; }
  .recommendation { padding: 14px; }
  .song-link { gap: 9px; padding: 10px; }
  .sign-explorer { padding: 17px; }
  .sign-explorer-grid { gap: 6px; }
  .sign-explorer-option { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
