/* Luna — an illustrated, quiet night sky. No remote font or UI dependencies. */
:root {
  color-scheme: dark;
  --bg: #100d1a;
  --panel: #21172d;
  --panel-light: #302039;
  --text: #fff1f5;
  --muted: #c0adbf;
  --dim: #a08b9f;
  --rose: #f5b7d1;
  --rose-light: #ffe0e9;
  --gold: #e5bd87;
  --border: #d49dbb33;
  --border-bright: #f1b9d16b;
  --sans: 'Segoe UI', Arial, sans-serif;
  --serif: Georgia, 'Times New Roman', serif;
  --ease: cubic-bezier(.22, .72, .18, 1);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-color: #78546d #120d1b; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(ellipse at 82% 3%, #6a24412b, transparent 33%),
    radial-gradient(ellipse at 4% 30%, #48265d26, transparent 42%),
    radial-gradient(ellipse at 80% 85%, #4f254c26, transparent 43%),
    var(--bg);
  font: 15px/1.65 var(--sans);
}
body::before {
  content: '';
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: .43;
  background-image:
    radial-gradient(1px 1px at 21px 59px, #f1c2dc 80%, transparent),
    radial-gradient(1px 1px at 107px 123px, #e3bb88 80%, transparent),
    radial-gradient(1px 1px at 73px 219px, #bf9abe 80%, transparent);
  background-size: 271px 287px, 331px 353px, 419px 467px;
}
button, input, textarea, select { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; }
button:disabled { opacity: .5; cursor: default; }
button, a, input, textarea, select { touch-action: manipulation; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible,
select:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--rose-light); outline-offset: 4px; }
::selection { color: #24152d; background: var(--rose); }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; top: 10px; left: 10px; transform: translateY(-150%); padding: 10px 20px; border-radius: 8px; color: #211321; background: var(--rose); }
.skip-link:focus { transform: translateY(0); }
.app-shell { max-width: 1440px; margin: auto; padding: 0 44px; }
.main { min-height: calc(100dvh - 244px); }
.view { min-width: 0; animation: view-enter .35s var(--ease) both; }
.eyebrow { font-size: 10px; font-weight: 600; letter-spacing: .18em; color: #d7adc5; }
.muted { color: var(--muted); }
.gold { color: var(--gold); }
.small-copy { font-size: 12px; line-height: 1.7; }
.danger { color: #ffb4bd !important; }
h1, h2, h3, p { overflow-wrap: break-word; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; }
h1 { margin: 20px 0; font-size: clamp(38px, 4.2vw, 62px); line-height: 1.1; letter-spacing: -.035em; }
h2 { margin: 12px 0; font-size: 30px; line-height: 1.2; letter-spacing: -.025em; }
h3 { margin: 10px 0; font-size: 24px; line-height: 1.2; }
h1 em, h2 em, h3 em { color: var(--rose); font-weight: 400; }

/* A compact top bar becomes a fixed, thumb-friendly tab bar on phones. */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 96px; border-bottom: 1px solid var(--border); }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; font: 38px/1 var(--serif); }
.brand-mark { display: inline-block; color: var(--rose); font-size: 56px; line-height: 1; transform: rotate(-15deg); text-shadow: 0 0 22px #e7a1cc69; }
.brand-caption { display: block; color: #ce9bb9; font: 8px/1.4 var(--sans); letter-spacing: .14em; margin-top: 8px; }
.main-nav { display: flex; gap: 6px; align-items: center; }
.nav-item { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid transparent; border-radius: 24px; padding: 10px 13px; color: #c7b2c7; background: transparent; font-size: 12px; white-space: nowrap; transition: background .25s, color .25s, border-color .25s; }
.nav-item svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.nav-item.active { color: var(--rose-light); background: linear-gradient(115deg, #62324f66, #3c28445c); border-color: #d799bf32; }
.nav-item:hover { color: #fff1f7; background-color: #6f405030; }
.mobile-profile { display: none; }
.topbar-actions { display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
.trial-chip { color: var(--muted); font-size: 10px; max-width: 95px; line-height: 1.5; }
.avatar-button { width: 41px; height: 41px; border: 1px solid var(--border-bright); border-radius: 50%; background: radial-gradient(circle at 30% 20%, #864266, #342038); color: var(--rose-light); box-shadow: 0 0 20px #de87c51f; }
.page-location { display: flex; justify-content: space-between; align-items: center; padding: 22px 2px 18px; gap: 20px; }
.page-location .eyebrow { font-size: 9px; color: #ceb1c5; }
.date-label { color: #a78da6; font-size: 9px; letter-spacing: .12em; }
.notice { padding: 12px 18px; background: #432d44; border: 1px solid #b27ca35c; border-radius: 12px; margin-bottom: 18px; color: #f9d7e9; font-size: 12px; }

/* Buttons keep a luminous rim and readable text against the night palette. */
.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 16px; padding: 12px 23px; border: 1px solid transparent; border-radius: 999px; font-size: 13px; font-weight: 500; line-height: 1.4; transition: transform .25s var(--ease), box-shadow .25s, background .25s, border-color .25s; }
.button span[aria-hidden] { font-size: 20px; font-weight: 400; line-height: 1; }
.button.primary, .button.premium { color: #341c31; background: linear-gradient(110deg, #f7bad6, #ffd4df 52%, #ebb0cd); border-color: #ffe0e3; box-shadow: inset 0 1px 0 #fff9, 0 5px 25px #db72b52a; }
.button.primary:hover, .button.premium:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 #fff9, 0 8px 32px #ef9bc349; }
.button.outline { color: #f7d2e5; background: linear-gradient(120deg, #55324c55, #281b3140); border-color: #c588ad67; box-shadow: inset 0 1px 0 #f0b5d114; }
.button.outline:hover { background-color: #5d35493d; border-color: #e6a1c9a1; }
.button.small { min-height: 38px; padding: 8px 16px; font-size: 11px; gap: 12px; }
.button:disabled { transform: none; box-shadow: none; }
.text-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 10px 0; background: none; border: 0; color: #ebbacf; font-size: 12px; }
.text-button:hover { color: #ffe6ef; }
.circle-button { display: grid; place-items: center; width: 45px; height: 45px; background: #271c30; border: 1px solid #be83aa66; border-radius: 50%; font-size: 22px; line-height: 1; color: #f2c3da; transition: background .25s, transform .25s; }
.circle-button:hover { background: #54324c; transform: translateY(-2px); }
.circle-button:disabled { transform: none; }

/* Homepage: the portrait stays large, with the moon and hands in view. */
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: 602px; border: 1px solid #c484a744; border-radius: 28px; background: radial-gradient(ellipse at 58% 68%, #7d395d44, transparent 48%), linear-gradient(115deg, #23172b, #17111f 70%); box-shadow: inset 0 1px 0 #fed0e41c, 0 18px 90px #05030a40; }
.hero::before { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 3; border-radius: inherit; box-shadow: inset 0 0 45px #e3a0c114; }
.hero-aura { position: absolute; z-index: -1; width: 620px; height: 620px; left: -340px; top: 200px; border: 1px solid #ca789436; border-radius: 50%; box-shadow: 0 0 0 24px #ba749508, 0 0 0 95px #ba749508; transform: rotate(-30deg); }
.hero-copy { position: relative; z-index: 4; width: 54%; padding: 52px 0 43px 54px; }
.hero-kicker { display: flex; align-items: center; gap: 9px; color: #d7b394; font-size: 10px; letter-spacing: .16em; }
.sparkle { font-size: 21px; line-height: 1; color: #f1bfcc; }
.hero h1 { font-size: clamp(51px, 5.6vw, 77px); line-height: 1.035; margin: 25px 0 24px; letter-spacing: -.045em; text-shadow: 0 3px 16px #100917; }
.hero h1 em { color: #f6bdcf; text-shadow: 0 0 32px #dc7aaa35; }
.hero-description { font-size: 15px; line-height: 1.8; color: #d6bdcc; margin: 0 0 24px; }
.hero-actions { display: flex; align-items: flex-start; flex-direction: column; gap: 16px; }
.hero-actions .primary { min-height: 50px; padding-left: 26px; padding-right: 24px; font-size: 13px; }
.hero-chat-link { display: flex; gap: 10px; align-items: center; color: #e7c2d6; background: none; border: 0; font-size: 11px; padding: 0; }
.hero-chat-link > span:last-child { margin-left: 4px; font-size: 17px; }
.tiny-avatar { width: 32px; height: 32px; border: 1px solid #d5a280; border-radius: 50%; overflow: hidden; }
.tiny-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.hero-footnote { display: flex; align-items: center; gap: 8px; color: #bd9ab3; font-size: 10px; margin-top: 27px; }
.tiny-star { color: #d0a67d; }
.hero-visual { position: absolute; z-index: 1; inset: 0 0 0 43%; overflow: hidden; }
.hero-visual::before { content: ''; z-index: 2; position: absolute; inset: 0; background: linear-gradient(90deg, #201526 0%, #201526cf 4%, #20152630 19%, transparent 33%), linear-gradient(0deg, #1b112485, transparent 16%); }
.hero-portrait { width: 100%; height: 100%; object-fit: cover; object-position: center 44%; filter: saturate(1.12) brightness(1.08); }
.hero-orbit { position: absolute; z-index: 3; border: 1px solid #e5b68830; border-radius: 50%; width: 510px; height: 510px; left: 7%; top: 35px; pointer-events: none; }
.orbit-two { width: 558px; height: 558px; top: 10px; left: 3%; border-color: #e5b68815; }
.floating-star { position: absolute; z-index: 3; color: #f1c697; text-shadow: 0 0 18px #ed9bcc; animation: star-breathe 6s ease-in-out infinite; }
.star-one { top: 14%; right: 12%; font-size: 32px; }
.star-two { top: 49%; right: 7%; font-size: 24px; animation-delay: -2s; }
.star-three { top: 19%; left: 21%; font-size: 23px; animation-delay: -4s; }
.hero-whisper { position: absolute; z-index: 3; right: 25px; bottom: 25px; text-align: center; font: italic 19px/1.4 var(--serif); color: #ffe8da; transform: rotate(-5deg); text-shadow: 0 2px 15px #2b1234; }
.hero-whisper span { display: block; font-size: 28px; margin-bottom: 6px; color: #e9c397; }

/* Daily card and usage are a dashboard row, never a competing third column. */
.day-dashboard { display: grid; grid-template-columns: 1.48fr 1fr; gap: 18px; margin: 22px 0 49px; }
.daily-preview, .quota-panel { min-width: 0; border: 1px solid var(--border); border-radius: 17px; background: linear-gradient(125deg, #36223588, #201627); box-shadow: inset 0 1px 0 #f0c5e010; }
.daily-preview { display: flex; gap: 18px; align-items: center; padding: 21px 22px; }
.daily-preview-symbol { font: 52px/1 var(--serif); color: #e9c091; text-shadow: 0 0 26px #e5a47550; width: 55px; flex-shrink: 0; text-align: center; }
.daily-preview h2 { font-size: 25px; margin: 5px 0; }
.daily-preview h3 { font-size: 25px; margin: 5px 0 7px; }
.daily-preview p { color: #c4a9bf; font-size: 11px; margin: 6px 0 0; max-width: 240px; }
.daily-preview .eyebrow { font-size: 8px; }
.daily-preview .button { margin-left: auto; padding: 9px 16px; min-height: 40px; font-size: 11px; white-space: nowrap; gap: 12px; }
.daily-preview:has(.mini-card-back) { gap: 22px; }
.daily-preview:has(.mini-card-back) p { max-width: 350px; }
.daily-preview:has(.mini-card-back) .button { margin: 13px 0 0; min-height: 35px; padding: 8px 17px; font-size: 10px; }
.mini-card-back { display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0; width: 74px; height: 114px; border: 1px solid #e4b99594; border-radius: 8px; color: #e7bf94; font: 39px/1 var(--serif); background: radial-gradient(ellipse at center, #87566d4a, transparent 75%), #281b34; box-shadow: inset 0 0 0 4px #25182c, inset 0 0 0 5px #cbaa815e, 0 5px 24px #bd679925; transform: rotate(-7deg); }
.mini-card-back i { display: block; font-size: 15px; font-style: normal; margin-top: 12px; }
.quota-panel { padding: 18px 22px; }
.quota-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.quota-heading .eyebrow { font-size: 8px; }
.quota-moon { color: #b28ab1; font-size: 23px; line-height: 1; }
.quota-row { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 17px; }
.quota-item { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 10px; color: #cfb5ca; margin-bottom: 9px; }
.quota-item b { color: #ffcee1; font-weight: 500; white-space: nowrap; }
.quota-track { height: 4px; overflow: hidden; background: #563650; border-radius: 4px; }
.quota-track > span { display: block; width: 100%; height: 100%; background: linear-gradient(90deg, #bd759e, #f0b6cf); border-radius: inherit; transition: width .5s var(--ease); }
.quota-note { font-size: 9px; margin: 11px 0 0; color: #ac90a8; }

/* Twelve illustrated abilities; the same cards can live in a grid or carousel. */
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 25px; margin-bottom: 23px; }
.section-heading h2 { font-size: 39px; margin: 12px 0 0; }
.section-heading .eyebrow { font-size: 9px; }
.carousel-controls { display: flex; gap: 9px; margin-bottom: 4px; }
.ability-carousel { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 60px) / 4); gap: 20px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 1px; padding: 3px 1px 14px; margin: -3px -1px -14px; scrollbar-width: none; scroll-behavior: smooth; }
.ability-carousel::-webkit-scrollbar { display: none; }
.ability-carousel > * { min-width: 0; scroll-snap-align: start; }
.ability-carousel:focus-visible { outline-offset: 5px; }
.ability-card, .feature-card { display: flex; flex-direction: column; align-items: stretch; position: relative; isolation: isolate; overflow: hidden; min-width: 0; width: 100%; border: 1px solid #c895b45c; border-radius: 17px; padding: 0; text-align: left; background: linear-gradient(135deg, #3c26418c, #211728 60%, #392038b3); box-shadow: inset 0 0 0 5px #08080b27, inset 0 1px 0 #f5cde125, 0 6px 25px #05030a33; transition: transform .4s var(--ease), box-shadow .4s, border-color .4s; }
.ability-card::after, .feature-card::after { content: ''; pointer-events: none; position: absolute; z-index: 3; inset: 5px; border: 1px solid #d19ab621; border-radius: 12px; }
.ability-card:hover, .feature-card:hover { transform: translateY(-4px); border-color: #e6b1cfa3; box-shadow: inset 0 0 0 5px #0a06152b, 0 12px 30px #be71b31b; }
.ability-card > img, .feature-card > img,
.ability-image, .ability-art, .card-art { display: block; width: 100%; aspect-ratio: 1.48; object-fit: cover; overflow: hidden; background: #39243c url('./assets/luna-hero.webp') center 36% / cover; }
.ability-image img, .ability-art img, .card-art img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s var(--ease); }
.ability-card:hover img, .feature-card:hover img { transform: scale(1.035); }
.ability-image, .ability-art, .card-art { position: relative; }
.ability-image::after, .ability-art::after, .card-art::after { content: ''; position: absolute; inset: 50% 0 0; background: linear-gradient(transparent, #24182b); pointer-events: none; }
.ability-content, .ability-copy, .card-content { display: flex; flex-direction: column; flex: 1; padding: 1px 20px 20px; position: relative; z-index: 2; }
.card-eyebrow { display: block; color: #c6a589; font-size: 8px; line-height: 1.6; letter-spacing: .04em; margin-top: 2px; }
.art-shine { position: absolute; z-index: 2; inset: 0; pointer-events: none; background: linear-gradient(120deg, transparent 15%, #ffecff0a 33%, transparent 50%); background-size: 220% 100%; transition: background-position .8s var(--ease); }
.ability-card:hover .art-shine, .feature-card:hover .art-shine { background-position: 100% 0; }
.ability-card h2, .ability-card h3, .feature-card h2, .feature-card h3 { font-size: 23px; color: #ffe1ec; margin: 8px 0 10px; letter-spacing: -.025em; }
.ability-card > h2, .ability-card > h3, .feature-card > h2, .feature-card > h3 { padding: 0 20px; }
.ability-card p, .feature-card p { color: #d6becf; font-size: 12px; line-height: 1.7; margin: 0 0 20px; }
.ability-card > p, .feature-card > p { padding: 0 20px; }
.card-link, .ability-link, .ability-card .tag, .feature-card .tag { display: flex; align-items: center; justify-content: space-between; gap: 9px; border: 1px solid #cb93b16b; border-radius: 999px; padding: 8px 13px; margin-top: auto; color: #f4cbe0; background: linear-gradient(90deg, #76466745, #3b294236); box-shadow: inset 0 1px 0 #eab8d21a; font: 11px/1.4 var(--sans); }
.ability-card > .card-link, .ability-card > .tag, .feature-card > .card-link { margin: auto 20px 20px; }
.card-link span:last-child, .ability-link span:last-child { font-size: 20px; line-height: 1; }
.ability-icon { color: #e8b3cb; font-size: 30px; }
.carousel-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; margin-top: 19px; gap: 10px 16px; }
.carousel-dots { display: flex; align-items: center; gap: 0; min-height: 24px; }
.carousel-dots button, .carousel-dot { display: grid; place-items: center; width: 24px; height: 24px; min-width: 24px; padding: 0; border: 0; border-radius: 50%; background: transparent; }
.carousel-dots button::after, .carousel-dot::after { content: ''; width: 5px; height: 5px; border-radius: 6px; background: #8b6481; transition: background .25s, width .35s; }
.carousel-dots button.active::after, .carousel-dots button[aria-current='true']::after, .carousel-dot.active::after { width: 18px; background: #e2aec9; }
.abilities-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 20px; }
.extras-section { margin: 50px 0 0; }
.extras-section > h2 { font-size: 31px; margin-bottom: 22px; }
.extras-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.extras-grid .ability-card { min-height: 0; }
.extra-ability { display: grid; grid-template-columns: 32px minmax(0, 1fr) 18px; align-items: start; gap: 7px 13px; min-width: 0; border: 1px solid #b782a54f; border-radius: 15px; padding: 23px 20px; text-align: left; background: linear-gradient(125deg, #60345338, #2b1e36); transition: transform .25s, border-color .25s, background .25s; }
.extra-ability:hover { transform: translateY(-3px); border-color: #d9a4c2a6; background-color: #57324940; }
.extra-ability > span { grid-row: 1 / 3; color: #e4b2cb; font: 31px/1.1 var(--serif); }
.extra-ability > strong { color: #f5d5e7; font: 23px/1.25 var(--serif); }
.extra-ability > small { grid-column: 2; color: #c3a5bb; font-size: 11px; line-height: 1.7; }
.extra-ability > b { grid-column: 3; grid-row: 1; color: #e0b1cb; font-size: 18px; line-height: 1.5; font-weight: 400; }
.catalog-note { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 34px auto 12px; max-width: 700px; text-align: left; color: #b99ab2; }
.catalog-note > span { font-size: 31px; color: #d0ac85; }
.catalog-note p { font-size: 12px; line-height: 1.7; }

/* Secondary cards echo the reference's pink and gold premium panel. */
.discovery-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; margin: 47px 0 0; }
.guide-card { display: flex; align-items: center; gap: 27px; padding: 26px 30px; border: 1px solid var(--border); border-radius: 20px; overflow: hidden; background: radial-gradient(ellipse at top left, #75396533, transparent 60%), linear-gradient(100deg, #251a2e, #27192e); }
.guide-portrait { width: 143px; min-width: 143px; height: 198px; overflow: hidden; border: 1px solid #bd8c9c73; border-radius: 90px 90px 20px 20px; box-shadow: 0 0 28px #af7c9b24; }
.guide-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 26%; }
.guide-card h2 { font-size: 28px; }
.guide-card p, .premium-card p { color: #d2b7cd; font-size: 12px; line-height: 1.85; margin: 12px 0 20px; }
.guide-card .eyebrow { font-size: 8px; }
.guide-card .button { min-height: 40px; font-size: 11px; }
.premium-card { position: relative; isolation: isolate; border: 1px solid #c399878c; border-radius: 20px; padding: 26px 30px; background: radial-gradient(ellipse at top right, #c5927a25, transparent 65%), linear-gradient(120deg, #392238, #271a2e); box-shadow: inset 0 0 0 5px #c18cac08, inset 0 1px 0 #f6d3b330; }
.premium-card h2 { font-size: 30px; margin: 14px 0 10px; }
.premium-card .eyebrow { font-size: 8px; }
.premium-star { position: absolute; z-index: -1; color: #e9a9cf24; font-size: 140px; line-height: 1; right: 12px; top: 21px; text-shadow: 0 0 50px #cc80b1; }
.premium-card .button { width: 100%; min-height: 43px; font-size: 12px; }
.premium-card .small-copy { display: block; text-align: center; font-size: 10px; margin-top: 9px; }
.closing-note { display: flex; align-items: center; justify-content: center; gap: 20px; text-align: center; padding: 28px 0 12px; }
.closing-note p { color: #b99bb5; font: italic 17px/1.65 var(--serif); }
.closing-note > span { color: #d5ac93; font-size: 22px; }

/* Conversation is a guide, with room for a visual ability suggestion. */
.chat-view { max-width: 970px; margin: 0 auto 40px; min-height: min(750px, calc(100dvh - 160px)); height: calc(100dvh - 175px); display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 24px; background: radial-gradient(ellipse at 50% 10%, #5a2c472b, transparent 65%), #19131fcf; overflow: hidden; box-shadow: 0 10px 50px #06030930; }
.chat-header { display: flex; align-items: center; gap: 13px; padding: 20px 27px; border-bottom: 1px solid var(--border); background: #27192c99; flex-shrink: 0; }
.chat-header > img { width: 43px; height: 43px; object-fit: cover; object-position: center 25%; border: 1px solid #c296ab; border-radius: 50%; }
.chat-header h1 { margin: 0; font-size: 23px; letter-spacing: -.015em; }
.chat-header h1 span { color: #e3bcb2; margin-left: 5px; font-size: 19px; }
.chat-header p { margin: 3px 0 0; color: #ba9ab5; font-size: 10px; }
.chat-header > .button { margin-left: auto; }
.chat-scroll { min-height: 0; flex: 1; padding: 28px 36px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #78546d transparent; }
.welcome { max-width: 660px; margin: 3px auto 20px; text-align: center; }
.welcome-moon { width: 68px; height: 68px; margin: 0 auto 15px; font: 55px/68px var(--serif); color: #e9b6cc; text-shadow: 0 0 30px #d17fbb70; }
.welcome h2 { margin: 17px 0; font-size: 43px; line-height: 1.15; }
.welcome-copy { color: #ceb0c8; font-size: 13px; line-height: 1.85; margin: 0 0 25px; }
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; text-align: left; }
.quick-grid button { display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px solid #bd82a64d; border-radius: 13px; background: linear-gradient(115deg, #51314759, #2b1d3442); text-align: left; transition: background .2s, border-color .2s; }
.quick-grid button:hover { border-color: #d6a1bd9c; background: #55334c70; }
.quick-symbol { font: 31px/1 var(--serif); color: #efb5cf; }
.quick-grid strong { display: block; font-size: 12px; font-weight: 500; color: #efccdf; }
.quick-grid small { display: block; color: #bba0b6; font-size: 10px; line-height: 1.5; margin-top: 3px; }
.quick-grid button > span:last-child { color: #d6a6c0; margin-left: auto; }
.composer-wrap { flex-shrink: 0; padding: 15px 28px 18px; border-top: 1px solid #a36e9621; background: #1e1525; }
.selected-mode { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.selected-mode button { border: 0; background: none; padding: 0; color: #e4afca; font-size: 11px; }
.selected-mode > span { font-size: 10px; color: #b294ad; margin-left: auto; }
.selected-mode #clear-mode { font-size: 20px; }
.composer { border: 1px solid #b37c9e88; background: #2e1f35; border-radius: 15px; display: flex; gap: 15px; align-items: flex-end; padding: 13px 15px; box-shadow: inset 0 1px 0 #f4c2de0b, 0 6px 20px #0002; }
.composer:focus-within { border-color: #f5bad8; box-shadow: 0 0 0 3px #eea5cf0f; }
.composer textarea { background: none; border: 0; resize: none; outline: none; color: var(--text); width: 100%; line-height: 1.6; font-size: 14px; max-height: 150px; min-height: 46px; margin: 0; padding: 0; box-shadow: none; }
.composer textarea:focus-visible { outline: none; }
.composer textarea::placeholder { color: #b296af; }
.send-button { background: linear-gradient(120deg, #f0add0, #ffd7e1); color: #4a2340; border: 1px solid #ffe0ea; border-radius: 11px; width: 43px; height: 43px; display: grid; place-items: center; flex-shrink: 0; box-shadow: 0 3px 16px #d075ad22; }
.composer-foot { display: flex; justify-content: space-between; gap: 15px; font-size: 9px; line-height: 1.5; color: #af8fa8; margin-top: 10px; }
.composer-foot a { color: #c9a8c1; text-decoration: underline; text-underline-offset: 2px; }
.messages { display: grid; gap: 24px; padding-bottom: 10px; }
.message { display: flex; gap: 12px; max-width: 100%; align-items: flex-start; animation: arrive .4s var(--ease); }
.message.user { justify-content: flex-end; }
.message-avatar { width: 34px; height: 34px; object-fit: cover; object-position: center 25%; border-radius: 50%; border: 1px solid #d7a2bd; flex-shrink: 0; }
.message-inner { min-width: 0; max-width: 88%; }
.message-label { font-size: 9px; color: #c6a0bc; letter-spacing: .08em; margin-bottom: 8px; }
.message-body { background: linear-gradient(120deg, #38263e, #2b2035); border: 1px solid #b286a243; border-radius: 0 16px 16px 16px; padding: 18px 21px; font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; }
.message.user .message-body { background: linear-gradient(120deg, #69405e, #4a2b47); color: #ffe2ef; border-radius: 16px 0 16px 16px; border-color: #cb99b565; }
.message-body p { margin: 0 0 12px; }
.message-body p:last-child { margin-bottom: 0; }
.message-meta { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 15px; align-items: center; color: #bb96af; font-size: 10px; }
.message-meta button { background: none; border: 0; color: #deb4cc; padding: 0; font-size: 11px; }
.guide-suggestion { display: flex; align-items: center; gap: 16px; padding: 12px; border: 1px solid #d496b883; border-radius: 16px; margin-top: 16px; background: linear-gradient(120deg, #63374c70, #38233e); width: 100%; text-align: left; transition: border-color .2s, transform .2s; }
.guide-suggestion:hover { border-color: #f1bfd9; transform: translateY(-2px); }
.guide-suggestion img { width: 82px; height: 72px; object-fit: cover; border-radius: 9px; }
.guide-suggestion h3, .guide-suggestion strong { display: block; font: 22px/1.25 var(--serif); color: #ffe1ed; margin: 0 0 5px; }
.guide-suggestion p, .guide-suggestion small { margin: 0; color: #d2aec5; font: 11px/1.6 var(--sans); }
.guide-suggestions { display: grid; gap: 10px; margin-top: 14px; }
.guide-suggestions .guide-suggestion { margin: 0; }
.guide-suggestion > span { min-width: 0; flex: 1; }
.guide-suggestion small { display: block; }
.guide-suggestion b { display: inline-block; font: 10px/1.5 var(--sans); color: #f7c3dc; border-bottom: 1px solid #e6abc940; margin-top: 10px; padding-bottom: 2px; }
.thinking { color: #d8aecb; font-size: 13px; animation: star-breathe 1.6s ease-in-out infinite; }

/* Dedicated ability experiences: image heading, steps, focused form, result. */
.experience-view { max-width: 1130px; margin: 0 auto 40px; }
.experience-shell, .result-shell { border: 1px solid #c694b04f; border-radius: 24px; overflow: hidden; background: linear-gradient(135deg, #2a1c33f0, #1d1627f5); box-shadow: 0 15px 70px #0002; }
.experience-header { display: grid; grid-template-columns: minmax(230px, .8fr) 1.2fr; min-height: 270px; border-bottom: 1px solid var(--border); }
.experience-art { min-width: 0; position: relative; overflow: hidden; background: #3b243d url('./assets/luna-hero.webp') center 35% / cover; }
.experience-art img { display: block; width: 100%; height: 100%; max-height: 365px; object-fit: cover; }
.experience-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 60%, #2a1c33b0); pointer-events: none; }
.experience-heading { padding: 36px 38px; align-self: center; }
.experience-heading h1 { font-size: 42px; margin: 14px 0; }
.experience-heading p { color: #d0b1c9; font-size: 13px; line-height: 1.8; margin: 0; }
.experience-body { padding: 30px 40px 38px; }
.stepper { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 28px; }
.step-chip { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; color: #a486a0; border: 1px solid #8c66813b; padding: 6px 12px; border-radius: 999px; background: #211728; }
.step-chip.active, .step-chip[aria-current='step'] { color: #ffe0ed; background: #62364c5c; border-color: #c990b38a; }
.step-chip.completed { color: #d9b88d; }
.wizard-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field-group, .field { min-width: 0; margin-bottom: 21px; }
.field-group label, .field label { display: block; color: #efd4e3; font-size: 13px; margin-bottom: 8px; }
.field-group .field-hint, .field-hint { color: #b599ae; font-size: 11px; line-height: 1.65; margin-top: 7px; }
.field-group.full, .field.full, .field-wide { grid-column: 1 / -1; }
.option-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.option-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; text-align: left; min-width: 0; padding: 20px; border: 1px solid #b180a154; border-radius: 13px; background: linear-gradient(120deg, #52324d44, #2d2038); transition: border-color .2s, background .2s, transform .2s; }
.option-tile:hover { border-color: #d49bbdaf; transform: translateY(-2px); }
.option-tile.active, .option-tile.selected, .option-tile[aria-pressed='true'], .option-tile:has(input:checked) { border-color: #edb4d3; background: linear-gradient(120deg, #8c4a6861, #4d2a49); box-shadow: 0 0 0 2px #eaa2d115; }
.option-tile strong { color: #f8d7e8; font-size: 13px; font-weight: 500; }
.option-tile small, .option-tile p { color: #c2a1ba; font-size: 11px; line-height: 1.7; margin: 0; }
.option-tile input { width: auto; }
.wizard-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--border); }
.wizard-actions .primary { margin-left: auto; }
.result-hero, .result-banner { text-align: center; padding: 34px; background: radial-gradient(ellipse at center top, #83476238, transparent 85%); border-bottom: 1px solid var(--border); }
.result-hero h1, .result-banner h1 { margin-top: 12px; font-size: 42px; }
.result-hero p, .result-banner p { color: #cbaec3; }
.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 28px; }
.result-section { min-width: 0; padding: 24px; background: linear-gradient(125deg, #3b28404d, #2b1d353d); border: 1px solid #b887a642; border-radius: 15px; }
.result-section h2 { color: #f6cee2; font-size: 26px; margin-top: 0; }
.result-section p { color: #dec8db; font-size: 14px; line-height: 1.85; }
.result-section li { color: #dec8db; font-size: 14px; line-height: 1.85; margin-bottom: 10px; }
.result-section.full, .result-section.full-width { grid-column: 1 / -1; }
.result-disclaimer { font-size: 11px !important; color: #b599ad !important; border-top: 1px solid var(--border); padding-top: 17px; margin-top: 22px !important; }
.document-actions { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 20px; }
.document-actions button { border: 0; background: none; color: #f3bad7; font-size: 12px; padding: 6px 0; }
.tarot-spread { display: flex; justify-content: center; align-items: stretch; flex-wrap: wrap; gap: 20px; padding: 26px 0; perspective: 1200px; }
.tarot-card { width: 158px; min-height: 255px; position: relative; perspective: 1000px; border: 0; background: transparent; padding: 0; text-align: center; }
.card-inner { position: relative; width: 100%; min-height: 255px; height: 100%; transform-style: preserve-3d; transition: transform .95s var(--ease); }
.tarot-card.is-revealed .card-inner, .is-revealed > .card-inner { transform: rotateY(180deg); }
.card-front, .card-back { position: absolute; inset: 0; border-radius: 13px; border: 1px solid #e5b396ba; backface-visibility: hidden; overflow: hidden; }
.card-back { display: grid; place-items: center; color: #e9c397; font: 68px/1 var(--serif); background: radial-gradient(ellipse at center, #713a6970, #20142c 75%); box-shadow: inset 0 0 0 6px #1a1126, inset 0 0 0 7px #caa87e66, 0 5px 30px #9f588527; }
.card-back::before { content: ''; position: absolute; inset: 18px; border: 1px solid #d9a68461; border-radius: 50%; }
.card-front { transform: rotateY(180deg); display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 16px; color: #fbe2dd; background: radial-gradient(ellipse at top, #9f6a7855, transparent 75%), #39253e; box-shadow: inset 0 0 0 5px #23162d, inset 0 0 0 6px #cca8826b; }
.card-front img { width: 100%; height: 125px; object-fit: cover; border-radius: 5px; }
.card-front strong { font: 22px/1.25 var(--serif); margin: 12px 0 6px; }
.card-front small { font-size: 10px; color: #d4b2c4; }
.daily-reveal { min-height: 320px; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 22px; background: radial-gradient(ellipse at center, #9a597239, transparent 65%); }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 7px; }
.calendar-day { min-height: 75px; text-align: center; border: 1px solid #a276993d; border-radius: 10px; padding: 9px 6px; color: #e9cce1; background: #35223b7a; }
.calendar-day.active, .calendar-day[aria-selected='true'] { border-color: #e4aec9; background: #6d3d5c; }
.energy-chart { display: grid; gap: 14px; padding: 20px; }
.zodiac-wheel { width: min(100%, 350px); aspect-ratio: 1; border-radius: 50%; margin: 22px auto; border: 1px solid #d4ac8366; box-shadow: inset 0 0 0 15px #271a325c, inset 0 0 0 16px #d4ac8340, 0 0 40px #a272b629; background: radial-gradient(circle, #8152742b, #21182e 68%); }
.loading-orbit { width: 74px; height: 74px; position: relative; margin: 30px auto; border: 1px solid #ac77985c; border-top-color: #f7c8df; border-radius: 50%; animation: orbit 3s linear infinite; }
.loading-orbit::after { content: '✦'; position: absolute; color: #e1b887; font-size: 26px; left: 23px; top: 11px; animation: orbit 3s linear reverse infinite; }
.loading-orbit.small-orbit { display: inline-block; width: 20px; height: 20px; margin: 0 7px -5px 0; }
.loading-orbit.small-orbit::after { display: none; }
.skeleton { border-radius: 13px; min-height: 18px; background: linear-gradient(100deg, #3f2a4580 15%, #76536c80 50%, #3f2a4580 85%); background-size: 240% 100%; animation: skeleton-shine 1.9s ease-in-out infinite; }

/* Profile, saved answers, and forms share the same accessible control styles. */
.content-view { padding: 15px 0 35px; }
.section-intro { margin: 10px 0 35px; }
.section-intro.centered { text-align: center; margin: 15px 0 42px; }
.section-intro h1 { margin: 17px 0; font-size: 48px; }
.section-intro p { color: #c8aec2; font-size: 14px; line-height: 1.8; }
.history-view { max-width: 980px; margin: auto; }
.filter-row { display: flex; gap: 13px; margin-bottom: 24px; align-items: center; }
.filter-row input { flex: 1; min-width: 0; margin: 0; min-height: 45px; }
.history-card { display: flex; align-items: center; gap: 25px; border: 1px solid var(--border); border-radius: 16px; background: linear-gradient(120deg, #33213a99, #251a2e); padding: 24px; margin-bottom: 14px; }
.history-card > img { width: 135px; height: 145px; object-fit: cover; flex-shrink: 0; border: 1px solid #b982a45c; border-radius: 12px; }
.history-card > div { min-width: 0; flex: 1; }
.history-chat-mark { display: grid; place-items: center; width: 135px; height: 145px; flex-shrink: 0; border: 1px solid #b982a443; border-radius: 12px; font: 55px/1 var(--serif); color: #e5b1cc; background: radial-gradient(ellipse at center, #7d47734d, transparent 76%), #2b1c34; }
.history-card h3 { font-size: 24px; margin: 9px 0; }
.history-card p { font-size: 13px; color: #c4a8bd; margin: 10px 0; }
.history-date { font-size: 10px; color: #d0a6c0; }
.history-card > button { background: none; border: 0; color: var(--rose); padding: 5px 0; font-size: 12px; }
.empty-state { text-align: center; padding: 70px 20px; color: #c4a4be; border: 1px dashed #b583a43d; border-radius: 20px; background: #2f1f371a; }
.empty-state > span { font-size: 44px; color: #d5a5c0; }
.empty-state p { font-size: 14px; line-height: 1.8; }
.settings-view { max-width: 1120px; margin: auto; }
.settings-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(240px, 1fr); gap: 25px; }
.settings-card { border: 1px solid var(--border); border-radius: 20px; padding: 30px; background: linear-gradient(130deg, #36233a99, #241a2e); margin-bottom: 20px; }
.settings-card-heading { display: flex; gap: 17px; align-items: center; margin-bottom: 26px; }
.settings-card-heading > span { font-size: 45px; line-height: 1; color: #ecc0d2; }
.settings-card-heading h2 { font-size: 27px; margin: 0 0 6px; }
.settings-card-heading p { color: #bca1b9; font-size: 11px; margin: 0; }
.settings-card label, form label { display: block; font-size: 13px; color: #e5c8dd; }
.settings-card > label { margin-bottom: 21px; }
.settings-card label .muted { font-size: 10px; margin-left: 4px; }
input, select, textarea { background: #1c1427c9; border: 1px solid #a376945c; color: var(--text); border-radius: 10px; padding: 12px 14px; width: 100%; margin-top: 7px; font-size: 14px; box-shadow: inset 0 1px 7px #0d061c20; transition: border-color .2s, box-shadow .2s; }
input:hover, select:hover, textarea:hover { border-color: #c797b477; }
input:focus, select:focus, textarea:focus { border-color: #e5b3cf; }
input::placeholder, textarea::placeholder { color: #a88da3; }
textarea { min-height: 118px; resize: vertical; line-height: 1.7; }
input[type='checkbox'], input[type='radio'] { width: auto; accent-color: var(--rose); }
input[type='range'] { padding: 0; accent-color: var(--rose); }
fieldset { border: 0; padding: 0; margin: 24px 0; min-width: 0; }
legend { font-size: 13px; margin-bottom: 12px; color: #e2c5d9; }
.style-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.style-options label { position: relative; }
.style-options input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.style-options span { display: block; border: 1px solid #98708e66; padding: 14px 12px; border-radius: 11px; font-size: 10px; color: #c5a3bc; transition: background .2s, border-color .2s; }
.style-options b { display: block; font-size: 13px; color: #efd0e3; font-weight: 500; margin-bottom: 6px; }
.style-options input:checked + span { border-color: #e4a7cf; background: linear-gradient(120deg, #80425e70, #472740); }
.style-options input:focus-visible + span { outline: 2px solid var(--rose); outline-offset: 3px; }
.form-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 19px 16px; margin-bottom: 22px; }
.settings-card > .primary { margin-top: 12px; }
.account-card h2 { font-size: 29px; }
.account-card > p { color: #d5b6cc; font-size: 12px; }
.account-card > .button { width: 100%; margin-top: 9px; }
.account-card > .text-button { width: 100%; margin-top: 10px; font-size: 11px; }
.account-actions { margin-top: 25px; padding-top: 16px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 2px; align-items: stretch; }
.account-actions .text-button { justify-content: space-between; font-size: 12px; }
.profile-note { padding: 10px 24px; text-align: center; }
.profile-note > span { color: #c8a078; font-size: 32px; }
.profile-note p { color: #bb99b3; font: italic 19px/1.65 var(--serif); }
.profile-note a { color: #d1a8c1; font-size: 11px; }
.loading-empty { color: #c1a1b9; padding: 36px; text-align: center; }

/* Dialogs use the same visual language as dedicated screens. */
dialog { position: fixed; border: 1px solid #cf95b697; border-radius: 23px; background: radial-gradient(ellipse at top right, #713d613b, transparent 65%), #281b31; color: var(--text); width: min(600px, calc(100% - 32px)); padding: 38px; max-height: 90dvh; box-shadow: inset 0 1px 0 #f6c5df21, 0 30px 100px #0009; scrollbar-width: thin; }
dialog::backdrop { background: #100917ba; backdrop-filter: blur(8px); }
dialog[open] { animation: modal-arrive .25s var(--ease); }
.modal-close { position: absolute; z-index: 3; top: 9px; right: 13px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #4c304555; color: #e5bed7; font-size: 26px; line-height: 1; }
.modal-symbol { font-size: 40px; color: var(--rose); }
dialog h2 { font-size: 34px; margin: 10px 0 18px; }
dialog p { font-size: 14px; color: #d1b8cb; line-height: 1.8; }
dialog .button { margin-top: 17px; }
dialog .button.primary { width: 100%; }
dialog label { margin-top: 16px; }
.check-label { display: flex; align-items: flex-start; gap: 10px; font-size: 12px; color: #dec2d5; margin-top: 16px; }
label.check-label { display: flex; }
.check-label input { appearance: auto; width: 17px; height: 17px; margin: 3px 0 0; flex-shrink: 0; accent-color: var(--rose); }
.check-label a { color: #f9bfdc; text-decoration: underline; text-underline-offset: 2px; }
.modal-price { font: 40px/1.3 var(--serif); margin: 25px 0 7px; color: #ffe0ed; }
.modal-price small { font: 13px var(--sans); color: #c5a5be; }
.modal-list { padding-left: 20px; color: #dbc0d4; font-size: 14px; line-height: 2; }
.toast { position: fixed; z-index: 30; bottom: 26px; left: 50%; transform: translateX(-50%); max-width: min(580px, calc(100% - 30px)); width: max-content; background: linear-gradient(120deg, #f4b6d4, #ffdde6); color: #351d30; padding: 13px 23px; border: 1px solid #ffe2ed; border-radius: 14px; font-size: 13px; box-shadow: 0 8px 40px #0005; }
.saved-text { font-size: 14px; color: #e0c8d9; line-height: 1.85; }
.result-cards { display: flex; gap: 11px; margin: 15px 0 22px; overflow-x: auto; }
.tarot-text-card { flex: 1; min-width: 112px; max-width: 180px; background: radial-gradient(ellipse at top, #70415c60, transparent 75%), #38233f; border: 1px solid #d1a38081; border-radius: 10px; min-height: 150px; padding: 16px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: inset 0 0 0 4px #24162c88; }
.tarot-text-card > span { color: #e1b789; font-size: 31px; }
.tarot-text-card b { font: 20px/1.3 var(--serif); color: #ffe1e8; margin: 10px 0; }
.tarot-text-card small { font-size: 10px; color: #c8a4bf; }

/* Footer is always a simple route to ownership, terms, and support. */
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 35px; margin-top: 28px; padding: 28px 0 34px; border-top: 1px solid var(--border); }
.footer-brand { display: flex; align-items: center; gap: 12px; font: 23px/1.25 var(--serif); }
.footer-brand > span { color: #e3b897; font-size: 36px; }
.footer-brand small { display: block; margin-top: 6px; color: #ad8da5; font: 10px/1.5 var(--sans); }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; font-size: 10px; color: #c0a0b9; }
.footer-links a:hover { color: #f6cce0; }
.footer-caption { flex-shrink: 0; font-size: 9px; text-align: right; color: #a98aa0; line-height: 1.8; }

@keyframes view-enter { from { transform: translateY(8px); } to { transform: translateY(0); } }
@keyframes arrive { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes modal-arrive { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes star-breathe { 0%, 100% { opacity: .7; } 50% { opacity: 1; text-shadow: 0 0 28px #f6b8d5a0; } }
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes skeleton-shine { to { background-position: -240% 0; } }

/* Tablet: preserve pictures and breathing room before shrinking the type. */
@media (max-width: 1220px) {
  .app-shell { padding: 0 28px; }
  .site-header { gap: 17px; }
  .brand { font-size: 32px; gap: 8px; }
  .brand-mark { font-size: 48px; }
  .brand-caption { font-size: 7px; }
  .nav-item { font-size: 11px; padding: 9px 10px; gap: 5px; }
  .nav-item svg { width: 15px; height: 15px; }
  .trial-chip { display: none; }
  .hero { min-height: 560px; }
  .hero-copy { padding: 44px 0 38px 40px; }
  .hero h1 { font-size: 66px; }
  .hero-description { font-size: 14px; }
  .hero-kicker { font-size: 9px; letter-spacing: .14em; }
  .hero-footnote { font-size: 9px; }
  .hero-orbit { width: 430px; height: 430px; }
  .orbit-two { width: 474px; height: 474px; }
  .hero-whisper { font-size: 17px; right: 15px; }
  .day-dashboard { grid-template-columns: 1.35fr 1fr; gap: 15px; }
  .daily-preview { padding: 19px 17px; gap: 12px; }
  .daily-preview-symbol { font-size: 43px; width: 43px; }
  .daily-preview h2 { font-size: 24px; }
  .daily-preview p { max-width: 190px; }
  .daily-preview .button { padding: 8px 12px; gap: 7px; font-size: 10px; }
  .quota-panel { padding: 18px; }
  .quota-row { gap: 15px; }
  .ability-carousel { grid-auto-columns: calc((100% - 54px) / 3.5); gap: 18px; }
  .abilities-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ability-card h2, .ability-card h3, .feature-card h2, .feature-card h3 { font-size: 23px; }
  .discovery-grid { gap: 20px; grid-template-columns: 1.3fr 1fr; }
  .guide-card { padding: 24px; gap: 20px; }
  .guide-portrait { width: 115px; min-width: 115px; height: 176px; }
  .guide-card h2 { font-size: 26px; }
  .premium-card { padding: 25px; }
}

@media (max-width: 960px) {
  .app-shell { padding: 0 24px; }
  .site-header { min-height: 86px; flex-wrap: wrap; gap: 0 15px; padding: 16px 0 12px; }
  .brand { font-size: 31px; }
  .brand-mark { font-size: 46px; }
  .brand-caption { font-size: 7px; }
  .topbar-actions { margin-left: auto; }
  .main-nav { order: 3; width: 100%; justify-content: center; padding-top: 14px; gap: 12px; }
  .nav-item { font-size: 12px; padding: 8px 17px; }
  .page-location { padding-top: 18px; }
  .hero { min-height: 520px; }
  .hero-copy { padding: 37px 0 32px 29px; width: 58%; }
  .hero h1 { font-size: 57px; }
  .hero-kicker { font-size: 8px; letter-spacing: .1em; }
  .hero-actions .primary { font-size: 12px; padding: 12px 19px; }
  .hero-footnote { max-width: 280px; line-height: 1.7; margin-top: 21px; }
  .hero-visual { left: 43%; }
  .hero-portrait { object-position: 46% 45%; }
  .hero-whisper { font-size: 16px; bottom: 22px; right: 18px; }
  .hero-orbit { width: 340px; height: 340px; top: 73px; left: 3%; }
  .orbit-two { width: 390px; height: 390px; top: 50px; left: -3%; }
  .hero-description { font-size: 13px; }
  .day-dashboard { grid-template-columns: 1fr; gap: 14px; margin-bottom: 38px; }
  .daily-preview { padding: 22px; }
  .daily-preview p { max-width: none; }
  .quota-panel { padding: 18px 23px; display: grid; grid-template-columns: 1fr 1.3fr; gap: 8px 24px; }
  .quota-heading { align-self: center; }
  .quota-row { margin-top: 0; gap: 25px; }
  .quota-note { margin: 0; grid-column: 1 / -1; }
  .quota-moon { display: none; }
  .ability-carousel { grid-auto-columns: calc((100% - 40px) / 2.6); gap: 18px; }
  .abilities-grid { gap: 18px 16px; }
  .ability-content, .ability-copy, .card-content { padding: 0 16px 17px; }
  .ability-card h2, .ability-card h3, .feature-card h2, .feature-card h3 { font-size: 21px; }
  .ability-card p, .feature-card p { font-size: 11px; }
  .card-link, .ability-link, .ability-card .tag, .feature-card .tag { font-size: 10px; padding: 8px 10px; }
  .discovery-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .guide-card { padding: 25px; position: relative; }
  .guide-portrait { display: none; }
  .guide-card h2, .premium-card h2 { font-size: 28px; }
  .section-heading h2 { font-size: 34px; }
  .section-heading .eyebrow { font-size: 8px; }
  .experience-header { grid-template-columns: .85fr 1.15fr; min-height: 230px; }
  .experience-heading { padding: 28px; }
  .experience-heading h1 { font-size: 35px; }
  .experience-body { padding: 28px; }
  .option-grid { grid-template-columns: 1fr 1fr; }
  .settings-layout { grid-template-columns: minmax(0, 1.5fr) minmax(230px, 1fr); gap: 18px; }
  .settings-card { padding: 24px; }
  .style-options { gap: 6px; }
  .style-options span { padding: 12px 8px; font-size: 9px; }
  .form-columns { grid-template-columns: 1fr; }
  .site-footer { flex-wrap: wrap; gap: 20px; }
  .footer-links { order: 3; width: 100%; }
}

/* Phones: direct access, one clear task per screen, pictures stay generous. */
@media (max-width: 650px) {
  body { font-size: 14px; padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
  .app-shell { padding: 0 17px; }
  .main { min-height: calc(100dvh - 240px); }
  .site-header { min-height: 79px; padding: 14px 0 13px; flex-wrap: nowrap; gap: 12px; }
  .brand { font-size: 31px; gap: 6px; }
  .brand-mark { font-size: 44px; }
  .brand-caption { font-size: 6px; letter-spacing: .12em; margin-top: 6px; }
  .topbar-actions { gap: 9px; }
  .topbar-actions .button { font-size: 10px; min-height: 36px; padding: 7px 12px; gap: 9px; }
  .topbar-actions .button span { font-size: 17px; }
  .avatar-button { width: 36px; height: 36px; font-size: 12px; }
  .main-nav { position: fixed; z-index: 20; left: 0; bottom: 0; width: 100%; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; height: calc(67px + env(safe-area-inset-bottom, 0px)); padding: 4px 6px calc(4px + env(safe-area-inset-bottom, 0px)); background: #201629f2; border-top: 1px solid #ca96b55c; backdrop-filter: blur(18px); box-shadow: 0 -5px 30px #0c071947; }
  .nav-item, .mobile-profile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 7px 1px; width: 100%; border: 0; border-radius: 10px; font-size: 8px; line-height: 1.3; color: #c0a6b9; white-space: nowrap; }
  .nav-item svg { width: 21px; height: 21px; stroke-width: 1.3; }
  .nav-item.active { background: radial-gradient(ellipse at top, #b9679e27, transparent 80%); color: #fbc3de; }
  .nav-item.active svg { filter: drop-shadow(0 0 5px #f8b3d450); }
  .page-location { gap: 12px; padding: 17px 1px 14px; }
  .page-location .eyebrow { font-size: 8px; letter-spacing: .12em; }
  .date-label { font-size: 7px; letter-spacing: .07em; text-align: right; }
  .notice { font-size: 11px; padding: 11px 13px; border-radius: 10px; }
  .hero { min-height: 590px; border-radius: 21px; display: flex; flex-direction: column; justify-content: flex-end; background: #221328; }
  .hero-copy { width: 100%; padding: 280px 24px 28px; text-align: left; }
  .hero-kicker { color: #eac6ad; font-size: 7px; letter-spacing: .12em; }
  .hero-kicker .sparkle { font-size: 17px; }
  .hero h1 { font-size: clamp(42px, 11vw, 53px); line-height: 1.055; margin: 15px 0 14px; }
  .hero h1 br:first-child { display: none; }
  .hero h1 br:first-child::after { content: ' '; }
  .hero-description { font-size: 12px; line-height: 1.7; color: #ddbbd0; margin-bottom: 19px; max-width: 240px; }
  .hero-description br:first-child { display: none; }
  .hero-actions { gap: 14px; }
  .hero-actions .primary { min-height: 45px; padding: 10px 19px; font-size: 11px; width: 100%; max-width: 290px; gap: 14px; }
  .hero-chat-link { font-size: 10px; gap: 9px; }
  .tiny-avatar { width: 28px; height: 28px; }
  .hero-footnote { max-width: 280px; font-size: 8px; margin-top: 17px; gap: 7px; }
  .hero-visual { inset: 0 0 auto; width: 100%; height: 400px; }
  .hero-visual::before { background: linear-gradient(0deg, #221328 0%, #221328e6 8%, #22132870 29%, transparent 49%), linear-gradient(90deg, #20112850, transparent 60%); }
  .hero-portrait { object-position: center 34%; }
  .hero-orbit { width: 290px; height: 290px; top: 20px; left: calc(50% - 145px); }
  .orbit-two { width: 325px; height: 325px; top: 2px; left: calc(50% - 163px); }
  .hero-whisper { font-size: 14px; right: 15px; top: 193px; bottom: auto; text-shadow: 0 1px 15px #20071c; }
  .hero-whisper span { font-size: 22px; margin-bottom: 4px; }
  .star-one { top: 9%; right: 13%; font-size: 25px; }
  .star-two { top: 44%; right: 6%; font-size: 19px; }
  .star-three { top: 18%; left: 10%; font-size: 18px; }
  .hero-aura { display: none; }
  .day-dashboard { margin: 17px 0 34px; gap: 13px; }
  .daily-preview { display: grid; grid-template-columns: 43px minmax(0, 1fr); gap: 12px; padding: 20px; border-radius: 16px; }
  .daily-preview h2 { font-size: 26px; margin: 5px 0 4px; }
  .daily-preview .eyebrow { font-size: 7px; }
  .daily-preview-symbol { font-size: 41px; align-self: center; }
  .daily-preview p { font-size: 11px; line-height: 1.7; margin-top: 4px; }
  .daily-preview .button { grid-column: 1 / -1; width: 100%; margin: 3px 0 0; min-height: 38px; font-size: 11px; justify-content: space-between; padding: 9px 17px; }
  .daily-preview:has(.mini-card-back) { grid-template-columns: 65px minmax(0, 1fr); gap: 19px; }
  .daily-preview:has(.mini-card-back) .button { margin-top: 13px; width: 100%; }
  .mini-card-back { width: 65px; height: 106px; font-size: 35px; }
  .daily-preview h3 { font-size: 24px; }
  .quota-panel { display: block; padding: 18px 20px; border-radius: 16px; }
  .quota-heading .eyebrow { font-size: 7px; letter-spacing: .13em; }
  .quota-moon { display: block; font-size: 20px; }
  .quota-row { margin-top: 14px; gap: 22px; }
  .quota-item { font-size: 10px; }
  .quota-note { font-size: 8px; margin: 11px 0 0; }
  .section-heading { gap: 10px; margin-bottom: 20px; align-items: flex-end; }
  .section-heading .eyebrow { font-size: 7px; letter-spacing: .1em; }
  .section-heading h2 { font-size: 29px; margin-top: 11px; max-width: 230px; }
  .section-heading h2 em { white-space: nowrap; }
  .carousel-controls { gap: 6px; margin-bottom: 0; }
  .circle-button { width: 34px; height: 34px; font-size: 18px; }
  .ability-carousel { grid-auto-columns: 80%; gap: 15px; margin-right: -17px; padding-right: 17px; scroll-padding-inline: 1px; }
  .ability-card, .feature-card { border-radius: 17px; }
  .ability-carousel .ability-image, .ability-carousel .ability-art, .ability-carousel .card-art, .ability-carousel .ability-card > img, .ability-carousel .feature-card > img { aspect-ratio: 1.45; }
  .ability-content, .ability-copy, .card-content { padding: 0 20px 21px; }
  .ability-card h2, .ability-card h3, .feature-card h2, .feature-card h3 { font-size: 25px; margin-top: 7px; }
  .ability-card p, .feature-card p { font-size: 12px; margin-bottom: 19px; }
  .card-link, .ability-link, .ability-card .tag, .feature-card .tag { font-size: 11px; padding: 9px 13px; }
  .carousel-bottom { margin-top: 17px; gap: 8px; }
  .carousel-bottom .text-button { font-size: 10px; gap: 6px; margin-left: auto; }
  .carousel-dots { gap: 0; flex-wrap: wrap; }
  .carousel-dots button, .carousel-dot { width: 24px; height: 24px; min-width: 24px; }
  .discovery-grid { grid-template-columns: 1fr; gap: 17px; margin-top: 35px; }
  .guide-card { padding: 25px; gap: 19px; }
  .guide-card h2, .premium-card h2 { font-size: 29px; }
  .guide-card .eyebrow, .premium-card .eyebrow { font-size: 7px; }
  .guide-card p, .premium-card p { font-size: 12px; }
  .guide-card .button { min-height: 39px; }
  .premium-card { padding: 26px; }
  .premium-card .button { font-size: 12px; }
  .premium-star { right: 15px; }
  .closing-note { padding: 23px 0 0; gap: 12px; }
  .closing-note p { font-size: 15px; line-height: 1.75; }
  .closing-note > span { font-size: 17px; }
  .content-view { padding: 4px 0 20px; }
  .section-intro, .section-intro.centered { margin: 7px 0 25px; text-align: left; }
  .section-intro .eyebrow { font-size: 8px; letter-spacing: .11em; }
  .section-intro h1 { font-size: 37px; margin: 16px 0; }
  .section-intro p { font-size: 12px; line-height: 1.8; }
  .desktop-only { display: none; }
  .abilities-grid { grid-template-columns: 1fr 1fr; gap: 13px 11px; }
  .abilities-grid .ability-card { border-radius: 13px; }
  .abilities-grid .ability-card::after { inset: 4px; border-radius: 9px; }
  .abilities-grid .ability-content, .abilities-grid .ability-copy, .abilities-grid .card-content { padding: 0 12px 14px; }
  .abilities-grid .ability-image, .abilities-grid .ability-art, .abilities-grid .card-art, .abilities-grid .ability-card > img { aspect-ratio: 1.2; }
  .abilities-grid h2, .abilities-grid h3 { font-size: 20px; margin: 6px 0 8px; }
  .abilities-grid .card-eyebrow { font-size: 8px; letter-spacing: .015em; }
  .abilities-grid p { font-size: 12px; line-height: 1.7; margin-bottom: 15px; }
  .abilities-grid .card-link, .abilities-grid .ability-link, .abilities-grid .tag { font-size: 10px; min-height: 36px; padding: 8px; gap: 5px; }
  .abilities-grid .card-link span:last-child { font-size: 15px; }
  .extras-section { margin-top: 31px; }
  .extras-section > h2 { font-size: 28px; }
  .extras-grid { grid-template-columns: 1fr; gap: 13px; }
  .extra-ability { padding: 20px 17px; gap: 7px 12px; }
  .extra-ability > strong { font-size: 24px; }
  .extra-ability > small { font-size: 11px; }
  .catalog-note { gap: 13px; margin-top: 22px; }
  .catalog-note p { font-size: 10px; line-height: 1.8; }
  .catalog-note > span { font-size: 28px; }
  .chat-view { border-radius: 17px; min-height: 350px; height: calc(100dvh - 190px); margin-bottom: 20px; }
  .chat-header { gap: 10px; padding: 16px 15px; }
  .chat-header > img { width: 37px; height: 37px; }
  .chat-header h1 { font-size: 20px; }
  .chat-header h1 span { font-size: 15px; }
  .chat-header p { font-size: 8px; }
  .chat-header > .button { display: none; }
  .chat-scroll { padding: 20px 15px; }
  .welcome { margin: 0 auto 12px; }
  .welcome-moon { font-size: 43px; width: 52px; height: 52px; line-height: 52px; margin-bottom: 9px; }
  .welcome .eyebrow { font-size: 8px; }
  .welcome h2 { font-size: 33px; margin: 14px 0; }
  .welcome-copy { font-size: 11px; line-height: 1.85; margin-bottom: 21px; }
  .quick-grid { grid-template-columns: 1fr; gap: 9px; }
  .quick-grid button { padding: 12px 13px; gap: 12px; }
  .quick-grid strong { font-size: 11px; }
  .quick-grid small { font-size: 9px; }
  .quick-symbol { font-size: 25px; }
  .composer-wrap { padding: 12px; }
  .selected-mode { gap: 9px; margin-bottom: 9px; }
  .selected-mode button { font-size: 9px; }
  .selected-mode > span { font-size: 8px; max-width: 130px; text-align: right; line-height: 1.4; }
  .composer { padding: 12px; border-radius: 12px; gap: 8px; }
  .composer textarea { font-size: 16px; min-height: 43px; }
  .composer textarea::placeholder { font-size: 13px; }
  .send-button { width: 37px; height: 37px; border-radius: 9px; }
  .composer-foot { font-size: 7px; gap: 8px; margin-top: 8px; }
  .messages { gap: 20px; }
  .message { gap: 8px; }
  .message-avatar { width: 27px; height: 27px; }
  .message-inner { max-width: calc(100% - 35px); }
  .message.user .message-inner { max-width: 92%; }
  .message-label { font-size: 8px; }
  .message-body { padding: 14px; font-size: 13px; line-height: 1.75; }
  .message-meta { font-size: 9px; gap: 12px; }
  .guide-suggestion { gap: 11px; padding: 10px; }
  .guide-suggestion img { width: 63px; height: 67px; }
  .guide-suggestion h3, .guide-suggestion strong { font-size: 20px; }
  .guide-suggestion p, .guide-suggestion small { font-size: 10px; }
  .experience-view { margin-bottom: 22px; }
  .experience-shell, .result-shell { border-radius: 18px; }
  .experience-header { grid-template-columns: 1fr; min-height: 0; }
  .experience-art { height: 200px; }
  .experience-art img { object-position: center; }
  .experience-art::after { background: linear-gradient(0deg, #2a1c33, transparent 42%); }
  .experience-heading { padding: 8px 23px 27px; margin-top: -12px; position: relative; z-index: 1; }
  .experience-heading .eyebrow { font-size: 8px; }
  .experience-heading h1 { font-size: 35px; margin: 13px 0; }
  .experience-heading p { font-size: 12px; }
  .experience-body { padding: 22px 19px 25px; }
  .stepper { gap: 7px; margin-bottom: 24px; }
  .step-chip { font-size: 9px; padding: 6px 10px; gap: 5px; }
  .wizard-fields { grid-template-columns: 1fr; gap: 0; }
  .field-group label, .field label { font-size: 12px; }
  .field-hint { font-size: 10px; }
  .option-grid { gap: 9px; }
  .option-tile { padding: 15px 12px; border-radius: 11px; }
  .option-tile strong { font-size: 11px; }
  .option-tile small, .option-tile p { font-size: 10px; }
  .wizard-actions { gap: 12px; margin-top: 22px; padding-top: 20px; }
  .wizard-actions .button { font-size: 11px; padding: 10px 15px; min-height: 42px; }
  .result-hero, .result-banner { padding: 26px 22px; }
  .result-hero h1, .result-banner h1 { font-size: 34px; }
  .result-hero p, .result-banner p { font-size: 12px; }
  .result-grid { grid-template-columns: 1fr; padding: 18px; gap: 14px; }
  .result-section { padding: 20px; }
  .result-section h2 { font-size: 25px; }
  .result-section p, .result-section li { font-size: 13px; }
  .tarot-spread { gap: 11px; padding: 19px 0; }
  .tarot-card { width: 125px; min-height: 205px; }
  .card-inner { min-height: 205px; }
  .card-front { padding: 12px; }
  .card-front img { height: 92px; }
  .card-front strong { font-size: 19px; }
  .card-front small { font-size: 9px; }
  .calendar-grid { gap: 4px; }
  .calendar-day { min-height: 58px; font-size: 11px; padding: 6px 3px; border-radius: 8px; }
  .settings-layout { grid-template-columns: 1fr; gap: 0; }
  .settings-card { padding: 23px 19px; border-radius: 17px; margin-bottom: 17px; }
  .settings-card-heading { gap: 13px; margin-bottom: 24px; }
  .settings-card-heading h2 { font-size: 26px; }
  .settings-card-heading > span { font-size: 39px; }
  .settings-card-heading p { font-size: 10px; }
  .settings-card label, form label { font-size: 12px; }
  input, select, textarea { font-size: 16px; padding: 11px 12px; }
  input::placeholder, textarea::placeholder { font-size: 13px; }
  .style-options { gap: 6px; }
  .style-options span { padding: 13px 9px; font-size: 9px; }
  .style-options b { font-size: 12px; }
  .form-columns { gap: 18px; }
  .settings-card > .primary { width: 100%; }
  .profile-note { padding: 4px 25px 15px; }
  .profile-note p { font-size: 17px; }
  .filter-row { gap: 9px; margin-bottom: 19px; }
  .filter-row .button { padding: 10px 13px; font-size: 10px; min-height: 43px; gap: 6px; }
  .filter-row input { min-height: 43px; padding: 10px; }
  .filter-row input::placeholder { font-size: 11px; }
  .history-card { padding: 17px; border-radius: 14px; align-items: flex-start; gap: 15px; }
  .history-card > img, .history-chat-mark { width: 72px; height: 92px; border-radius: 9px; }
  .history-chat-mark { font-size: 36px; }
  .history-card h3 { font-size: 24px; }
  .history-card p { font-size: 12px; }
  .history-date { font-size: 9px; }
  .empty-state { padding: 48px 20px; }
  .empty-state p { font-size: 12px; }
  .empty-state .button { font-size: 11px; }
  dialog { padding: 31px 23px; border-radius: 19px; max-height: 88dvh; }
  dialog h2 { font-size: 30px; }
  dialog p { font-size: 13px; }
  .check-label { font-size: 11px; }
  .modal-price { font-size: 35px; }
  .modal-price small { font-size: 11px; }
  .toast { bottom: calc(82px + env(safe-area-inset-bottom, 0px)); font-size: 12px; padding: 12px 18px; }
  .site-footer { margin-top: 22px; padding: 24px 0 20px; gap: 18px; }
  .footer-brand { font-size: 22px; }
  .footer-brand > span { font-size: 32px; }
  .footer-brand small { font-size: 8px; }
  .footer-links { gap: 9px 17px; font-size: 9px; line-height: 1.8; }
  .footer-caption { font-size: 8px; }
  .result-cards { gap: 8px; }
  .tarot-text-card { min-width: 100px; padding: 13px; }
  .tarot-text-card b { font-size: 18px; }
}

@media (max-width: 370px) {
  .app-shell { padding: 0 13px; }
  .brand { font-size: 28px; }
  .brand-caption { font-size: 5.5px; }
  .hero-copy { padding-left: 20px; padding-right: 20px; }
  .hero h1 { font-size: 41px; }
  .hero-actions .primary { padding: 10px 14px; font-size: 10px; }
  .hero-kicker { font-size: 6.5px; }
  .section-heading h2 { font-size: 26px; }
  .circle-button { width: 30px; height: 30px; }
  .abilities-grid h2, .abilities-grid h3 { font-size: 18px; }
  .abilities-grid .ability-content, .abilities-grid .ability-copy { padding: 0 10px 12px; }
  .abilities-grid p { font-size: 11px; }
  .abilities-grid .card-link { font-size: 9px; }
  .ability-carousel { margin-right: -13px; padding-right: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  html, .ability-carousel { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .ability-card:hover, .feature-card:hover, .button:hover, .option-tile:hover { transform: none; }
}
