:root {
  color-scheme: dark;
  --bg: #121019;
  --surface: #211b29;
  --surface-raised: #2c2435;
  --line: #4a4052;
  --text: #faf5f4;
  --muted: #c4bac7;
  --quiet: #a59aaa;
  --lavender: #d5bdff;
  --lavender-deep: #a97bea;
  --rose: #f2b9c9;
  --gold: #f5d49b;
  --danger: #ffb9c0;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  font: 15px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 300px; background: var(--bg); color: var(--text); }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; color: inherit; }
button:disabled { opacity: .48; cursor: not-allowed; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--lavender); outline-offset: 3px;
}
a { color: var(--lavender); }
h1, h2, h3, p { margin: 0; }
h1, h2 { text-wrap: balance; }
h1 { font: 500 clamp(36px, 8vw, 53px)/1.09 Georgia, "Times New Roman", serif; letter-spacing: -.03em; }
h2 { font: 500 26px/1.18 Georgia, "Times New Roman", serif; letter-spacing: -.018em; }
h3 { font-size: 17px; line-height: 1.25; }
p { color: var(--muted); }
small { color: var(--quiet); font-size: 12px; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.stack { display: grid; gap: 13px; }
.section { margin-top: 37px; }
.note { max-width: 450px; margin: 35px auto 0; color: var(--quiet); text-align: center; font-size: 12px; }
.eyebrow { color: var(--lavender); text-transform: uppercase; letter-spacing: .19em; font-size: 10px; font-weight: 750; }
.app-shell {
  width: min(100%, 800px);
  min-height: 100vh;
  margin: 0 auto;
  background:
    radial-gradient(circle at 110% -60px, #55385542, transparent 390px),
    radial-gradient(circle at -30% 470px, #49305b2c, transparent 460px);
}
.topbar {
  z-index: 30;
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
  padding: 0 26px;
  background: #17131cdb;
  backdrop-filter: blur(18px);
  border-bottom: 1px solid #ffffff12;
}
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--text); font-weight: 700; font-size: 26px; letter-spacing: -.075em; }
.brand-symbol { display: inline-grid; place-items: center; width: 27px; height: 27px; color: var(--rose); font-size: 25px; font-weight: 400; letter-spacing: 0; }
.brand-period { color: var(--rose); }
.balance {
  border: 1px solid #715a79;
  background: #3a2b44;
  color: #f2d7ff;
  border-radius: 999px;
  min-height: 35px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 650;
}
.preview { margin: 18px 26px 0; padding: 14px 16px; border-radius: 14px; background: #3c3043; color: var(--text); font-size: 13px; }
.preview a { display: block; margin-top: 4px; font-weight: 700; }
main { min-height: 70vh; padding: 32px 26px calc(120px + var(--safe-bottom)); }
.page-intro { max-width: 530px; margin: 0 0 26px; }
.page-intro h1 { margin-top: 11px; }
.page-intro p { max-width: 430px; margin-top: 12px; font-size: 14px; line-height: 1.6; }
.section-heading { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; margin-bottom: 17px; }
.section-heading h2 { font-size: 27px; }
.section-heading > span { flex-shrink: 0; color: var(--quiet); font-size: 12px; }
.section-heading .text-button { flex-shrink: 0; }
.primary, .secondary { min-height: 46px; border-radius: 13px; padding: 11px 16px; font-weight: 700; text-align: center; }
.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #e8d0ff;
  background: linear-gradient(120deg, #e6cffb, #c6a4f6);
  color: #2a1934;
  box-shadow: 0 7px 30px #ad71df2b;
  text-decoration: none;
}
.primary:hover:not(:disabled) { background: #eddcff; }
.secondary { border: 1px solid var(--line); background: var(--surface); color: var(--text); }
.secondary:hover:not(:disabled) { border-color: #9d7fbd; background: var(--surface-raised); }
.wide { width: 100%; }
.text-button { border: 0; padding: 8px 2px; background: none; color: var(--lavender); font-size: 13px; font-weight: 650; text-decoration: none; }
.danger { color: var(--danger) !important; }
.bottom-nav {
  z-index: 40;
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, 800px);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 7px 7px calc(8px + var(--safe-bottom));
  background: #1a1620f2;
  border-top: 1px solid #ffffff18;
  backdrop-filter: blur(20px);
}
.bottom-nav button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  min-width: 0;
  min-height: 48px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: #b0a4b3;
  font-size: 10px;
  font-weight: 600;
}
.bottom-nav button span:first-child { font-size: 23px; line-height: 1.1; font-weight: 400; }
.bottom-nav button.active { color: #e8d7ff; background: #68458042; }
.bottom-nav button:hover { color: var(--text); }
body.gated .bottom-nav { display: none; }
body.gated main { padding-bottom: 30px; }
.loading { display: grid; justify-items: center; gap: 15px; padding: 95px 15px; }
.loading-symbol { color: var(--lavender); font-size: 52px; animation: turn 4s linear infinite; }
@keyframes turn { to { transform: rotate(360deg); } }
.empty { max-width: 400px; margin: 35px auto; padding: 42px 20px; text-align: center; }
.empty-symbol { color: var(--lavender); display: block; font-size: 44px; margin-bottom: 13px; }
.empty h2 { margin-bottom: 10px; }
.empty p { margin-bottom: 21px; font-size: 14px; }
.continue-card {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 15px;
  min-height: 72px;
  margin-bottom: 22px;
  padding: 12px 15px;
  text-align: left;
  border: 1px solid #745a84;
  border-radius: 16px;
  background: linear-gradient(100deg, #362740, #2a2035);
}
.continue-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #b590e14a; color: #f4dbff; font-size: 22px; }
.continue-card > span:nth-child(2) { flex: 1; min-width: 0; }
.continue-card small, .continue-card strong { display: block; }
.continue-card small { color: #d5c2df; font-size: 11px; }
.continue-card strong { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.continue-arrow { color: var(--lavender); font-size: 20px; }
.filter-row { display: flex; gap: 8px; overflow: auto; scrollbar-width: none; padding: 3px 0 16px; }
.filter-row::-webkit-scrollbar, .character-strip::-webkit-scrollbar { display: none; }
.chip { min-height: 40px; flex: 0 0 auto; padding: 6px 14px; border: 1px solid var(--line); border-radius: 100px; background: #211c28; color: var(--muted); font-size: 12px; font-weight: 650; }
.chip.active { border-color: #e4ccff; background: #d7bff4; color: #25172f; }
.featured-story { position: relative; isolation: isolate; min-height: 485px; overflow: hidden; border: 1px solid #806a77; border-radius: 23px; background: #4f3d57; }
.featured-story > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 27%; }
.featured-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #18111d23 10%, #18111d8a 48%, #130e19f5 100%); }
.featured-content { display: flex; flex-direction: column; justify-content: end; min-height: 485px; padding: 26px; }
.story-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 13px; }
.story-meta span { width: max-content; padding: 4px 9px; border: 1px solid #f5e0ef66; border-radius: 100px; background: #1e1722a6; color: #fff1f9; font-size: 10px; font-weight: 750; letter-spacing: .035em; }
.featured-story h2 { max-width: 460px; font: 500 clamp(37px, 8vw, 54px)/1.05 Georgia, serif; letter-spacing: -.035em; text-shadow: 0 2px 18px #0009; }
.featured-story p { max-width: 440px; margin-top: 10px; color: #f1e9ef; font-size: 14px; line-height: 1.55; text-shadow: 0 1px 8px #0009; }
.featured-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 22px; }
.character-byline { color: #f4e7ef; font-size: 13px; }
.featured-footer .primary { min-width: 190px; }
.story-list { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.story-card { display: flex; gap: 13px; min-width: 0; padding: 9px; border: 1px solid var(--line); border-radius: 17px; background: #241d2b; text-align: left; }
.story-card:hover { border-color: #a17db6; background: #2e2437; }
.story-card-image { flex: 0 0 104px; height: 135px; overflow: hidden; border-radius: 10px; }
.story-card-image img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.story-card-copy { display: flex; flex: 1; min-width: 0; flex-direction: column; padding: 7px 6px 5px 0; }
.story-card-genre { color: var(--lavender); font-size: 10px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.story-card strong { margin-top: 4px; font: 500 19px/1.16 Georgia, serif; }
.story-card-summary { display: -webkit-box; overflow: hidden; margin-top: 7px; color: var(--muted); font-size: 11px; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.story-card-footer { display: flex; justify-content: space-between; margin-top: auto; color: #eedbeb; font-size: 12px; font-weight: 650; }
.story-card-footer > span { color: var(--lavender); }
.character-strip { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.character-tile { flex: 0 0 126px; padding: 0 0 8px; text-align: left; background: none; }
.character-tile img { width: 126px; height: 150px; border-radius: 12px; object-fit: cover; object-position: 50% 23%; }
.character-tile strong { display: block; margin-top: 7px; font-size: 14px; }
.character-tile small { display: -webkit-box; overflow: hidden; line-height: 1.25; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.create-row { display: flex; align-items: center; gap: 13px; width: 100%; min-height: 67px; margin-top: 17px; padding: 10px 14px; border: 1px dashed #83708c; border-radius: 15px; background: #27202f; text-align: left; }
.create-row > span:first-child { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 11px; background: #9470b747; color: var(--lavender); font-size: 24px; }
.create-row > span:nth-child(2) { flex: 1; }
.create-row strong, .create-row small { display: block; }
.create-row strong { font-size: 14px; }
.create-row > span:last-child { color: var(--lavender); }
.age-gate { max-width: 500px; margin: 38px auto 0; }
.age-mark { display: grid; place-items: center; width: 68px; height: 68px; margin-bottom: 30px; border: 1px solid #b898ca; border-radius: 19px; background: #3b2a47; color: #ecd8fb; font: 500 23px Georgia, serif; }
.age-gate h1 { margin-top: 12px; }
.age-gate h1 em { color: var(--lavender); font-weight: 400; }
.age-gate > p { max-width: 410px; margin: 18px 0 25px; line-height: 1.65; }
.age-gate > small { display: block; margin-top: 18px; }
.check { display: flex; align-items: flex-start; gap: 11px; color: #eaddec; font-size: 13px; line-height: 1.45; }
.check input { flex: 0 0 20px; width: 20px; height: 20px; min-height: 0; margin: 0; padding: 0; accent-color: #c49de8; }
.chat-top { position: sticky; top: 70px; z-index: 15; display: flex; align-items: center; gap: 11px; min-height: 71px; margin: -32px -26px 0; padding: 10px 26px; border-bottom: 1px solid #ffffff15; background: #19141fe8; backdrop-filter: blur(18px); }
.chat-back, .chat-menu { flex: 0 0 36px; width: 36px; height: 36px; border: 1px solid #65546f; border-radius: 10px; background: #2d2436; color: var(--text); font-size: 19px; }
.chat-menu { margin-left: auto; font-size: 26px; line-height: .5; }
.chat-avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.chat-top-copy { min-width: 0; }
.chat-top-copy small { display: block; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--lavender); font-size: 10px; }
.chat-top h1 { font: 650 18px/1.1 system-ui, sans-serif; letter-spacing: -.02em; }
.chapter-label { display: flex; align-items: center; gap: 12px; margin: 26px 0 22px; color: var(--quiet); font-size: 11px; text-transform: uppercase; letter-spacing: .19em; }
.chapter-label:after { content: ""; flex: 1; height: 1px; background: #7363736b; }
.chapter-label span { color: var(--rose); font-size: 14px; }
.messages { display: grid; gap: 14px; }
.bubble { max-width: min(88%, 540px); padding: 15px 17px; border: 1px solid #55445d; border-radius: 5px 17px 17px; background: #28202e; color: #f4ecf2; font-size: 14px; line-height: 1.68; white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble.user { justify-self: end; border-color: #7e6191; border-radius: 17px 5px 17px 17px; background: #493254; }
.speaker { display: block; margin-bottom: 6px; color: #e5b6d1; font-size: 10px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.stage { color: #d8c5d6; font-style: italic; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; margin: 23px 0; }
.choices button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; border: 1px solid #795f8d; border-radius: 10px; padding: 7px 11px; background: #3c2a49; color: #f0ddff; font-size: 12px; font-weight: 650; }
.choices button:hover { background: #583d68; }
.choices button span { color: #dac2f5; }
.bond-link { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 67px; padding: 12px; border: 1px solid #9d6d86; border-radius: 15px; background: linear-gradient(100deg, #4b3044, #302236); text-align: left; }
.bond-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: #d493b454; color: #ffddeb; font-size: 22px; }
.bond-link > span:nth-child(2) { flex: 1; }
.bond-link strong, .bond-link small { display: block; }
.bond-link strong { font-size: 14px; }
.bond-link small { color: #e5ccd9; }
.quick-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 13px 0 16px; }
.quick-actions button { min-height: 44px; padding: 6px 11px; border: 1px solid var(--line); border-radius: 9px; background: #27202e; color: var(--muted); font-size: 12px; }
.quick-actions button span { color: var(--lavender); font-size: 17px; }
.composer { position: sticky; bottom: calc(69px + var(--safe-bottom)); z-index: 10; display: flex; align-items: stretch; gap: 8px; margin: 15px -8px 0; padding: 9px 8px; border: 1px solid #796483; border-radius: 16px; background: #221b2be8; backdrop-filter: blur(17px); }
.composer textarea { flex: 1; resize: vertical; min-height: 45px; max-height: 160px; padding: 10px 12px; border: 0; background: transparent; }
.composer textarea:focus { outline: none; }
.composer button { flex: 0 0 45px; width: 45px; padding: 0; font-size: 23px; }
.chat-footnote { display: block; margin: 13px 0; text-align: center; }
.relationship { padding: 18px; border: 1px solid #85638c; border-radius: 17px; background: linear-gradient(110deg, #432c4d, #292033); }
.relationship-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.relationship-top span { font: 500 22px Georgia, serif; }
.relationship-top strong { color: #f3d9e9; font-size: 12px; }
.progress-track { display: block; width: 100%; height: 8px; margin: 16px 0 9px; overflow: hidden; appearance: none; border: 0; border-radius: 20px; background: #160f1c; }
.progress-track::-webkit-progress-bar { border-radius: 20px; background: #160f1c; }
.progress-track::-webkit-progress-value { border-radius: 20px; background: linear-gradient(90deg, #f0aebf, #caa5fa); }
.progress-track::-moz-progress-bar { border-radius: 20px; background: #e7b2d5; }
.relationship small { color: #d9c6dc; }
.gift-balance { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 15px 2px 0; font-size: 13px; color: var(--muted); }
.gift-balance strong { color: var(--text); }
.gift-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.gift-card { display: flex; flex-direction: column; min-height: 214px; padding: 15px; border: 1px solid #655163; border-radius: 17px; background: radial-gradient(circle at 85% 0%, #70455555, transparent 130px), #261d2b; }
.gift-illustration { display: grid; place-items: center; width: 62px; height: 62px; margin-bottom: 13px; border: 1px solid #b5849670; border-radius: 18px; background: #5e3b56; font-size: 31px; }
.gift-copy h3 { font-size: 16px; }
.gift-copy p { margin-top: 3px; font-size: 12px; line-height: 1.45; }
.gift-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 14px; }
.gift-actions button { flex: 1; min-width: 70px; min-height: 42px; padding: 5px 8px; font-size: 12px; }
.stars-button { color: #ffe5aa; }
.history-row { display: flex; align-items: center; gap: 12px; min-height: 64px; border-bottom: 1px solid #4b3d4c; }
.history-icon { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; border-radius: 11px; background: #523448; font-size: 20px; }
.history-row > span:nth-child(2) { flex: 1; min-width: 0; }
.history-row strong, .history-row small { display: block; }
.history-row strong { font-size: 13px; font-weight: 650; }
.history-arrow { color: var(--rose); }
.bookmark { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 63px; margin-bottom: 7px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); text-align: left; }
.bookmark > span:nth-child(2) { flex: 1; min-width: 0; }
.bookmark strong, .bookmark small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bookmark strong { font-size: 13px; }
.bookmark-icon { color: var(--lavender); font-size: 22px; }
.bookmark > span:last-child { color: var(--lavender); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.gallery img, .gallery video { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 10px; background: var(--surface); }
.gallery video { object-fit: contain; }
.audio-list { display: grid; gap: 12px; }
.audio-item { padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.audio-item small { display: block; margin-bottom: 7px; }
audio { width: 100%; height: 40px; }
.premium-hero { max-width: 510px; margin: 7px auto 35px; text-align: center; }
.premium-star { color: var(--gold); font-size: 42px; }
.premium-hero h1 { margin: 11px 0; }
.premium-hero p { font-size: 14px; }
.active-plan { margin-bottom: 23px; padding: 13px 16px; border: 1px solid #8c6a9b; border-radius: 12px; background: #443050; font-size: 13px; }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin: 23px 0 28px; }
.plan { position: relative; display: grid; gap: 5px; min-height: 115px; padding: 18px 12px 12px; border: 1px solid #75647a; border-radius: 14px; background: #292232; text-align: left; }
.plan.selected { border: 2px solid #ddbdfa; padding: 17px 11px 11px; background: #493457; box-shadow: 0 0 22px #b985f443; }
.plan .popular { position: absolute; top: -12px; left: 8px; padding: 2px 8px; border-radius: 8px; background: #d6b7f2; color: #2b1933; font-size: 9px; font-weight: 750; white-space: nowrap; }
.plan .duration { color: #f4e5f9; font-size: 13px; font-weight: 650; }
.plan .gems { color: #d4c0ea; font-size: 12px; }
.plan > strong { align-self: end; font-size: 24px; }
.plan > strong span { color: var(--gold); }
.benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 24px; }
.benefits > div { display: flex; gap: 11px; padding: 13px; border: 1px solid #4c3f54; border-radius: 13px; background: #231c2c; }
.benefits > div > span { color: var(--lavender); font-size: 23px; }
.benefits p { color: var(--text); }
.benefits strong, .benefits small { display: block; }
.benefits strong { font-size: 13px; line-height: 1.3; }
.benefits small { margin-top: 4px; font-size: 11px; line-height: 1.3; }
.purchase-box { display: grid; gap: 13px; padding: 19px; border: 1px solid #735c7e; border-radius: 17px; background: #2b2034; }
.purchase-total { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 5px; }
.purchase-total span > strong, .purchase-total small { display: block; }
.purchase-total span > strong { font-size: 16px; }
.purchase-total > strong { white-space: nowrap; font-size: 25px; }
.receipt { display: flex; justify-content: space-between; gap: 13px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.receipt small { display: block; overflow-wrap: anywhere; }
.profile-premium { display: flex; align-items: center; gap: 13px; width: 100%; padding: 16px; border: 1px solid #826c8f; border-radius: 16px; background: linear-gradient(110deg, #493152, #2c2138); text-align: left; }
.profile-premium-icon { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 12px; background: #a371ba70; color: var(--gold); font-size: 25px; }
.profile-premium > span:nth-child(2) { flex: 1; }
.profile-premium strong, .profile-premium small { display: block; }
.profile-premium strong { font-size: 15px; }
.profile-premium small { color: #e3d1e9; }
.profile-premium-arrow { color: var(--lavender); }
.usage-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.usage-grid > div { min-width: 0; padding: 13px 7px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); text-align: center; }
.usage-grid strong, .usage-grid small { display: block; }
.usage-grid strong { font-size: 23px; }
.usage-note { margin: 9px 0 0; font-size: 11px; }
.field { display: grid; gap: 7px; color: #eadfea; font-size: 13px; font-weight: 650; }
.field small { font-weight: 400; }
input, textarea, select { width: 100%; min-height: 45px; padding: 11px 12px; border: 1px solid #6b5a73; border-radius: 10px; background: #1b1621; color: var(--text); font-size: 14px; }
textarea { min-height: 87px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #a99cac; }
.menu-list { overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.menu-list button { display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 49px; padding: 11px 15px; border: 0; border-bottom: 1px solid #4a3d50; background: none; text-align: left; font-size: 13px; }
.menu-list button:last-child { border-bottom: 0; }
.menu-list button span { color: var(--lavender); }
.ticket { margin-top: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.ticket p { margin: 6px 0; font-size: 13px; }
.ticket strong { font-size: 13px; }
dialog { position: fixed; width: min(92vw, 510px); max-height: 88vh; overflow-y: auto; padding: 24px; border: 1px solid #826b8e; border-radius: 21px; background: #211a29; color: var(--text); box-shadow: 0 30px 90px #000b; }
dialog::backdrop { background: #09070ccc; backdrop-filter: blur(5px); }
dialog h2 { margin: 4px 26px 13px 0; font-size: 30px; }
dialog p { margin: 0 0 15px; font-size: 14px; line-height: 1.58; }
dialog .primary { width: 100%; margin-top: 10px; }
dialog .dialog-close { position: absolute; top: 10px; right: 11px; width: 35px; height: 35px; border-radius: 50%; background: #4a3a53; color: #f2e5f4; font-size: 24px; }
.modal-icon { color: var(--lavender); font-size: 46px; }
.story-dialog-visual { height: 225px; margin: -24px -24px 20px; overflow: hidden; border-radius: 20px 20px 0 0; }
.story-dialog-visual img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 21%; }
.dialog-hook { color: #f6e6f6; font-weight: 650; }
dialog blockquote { margin: 16px 0; padding: 12px 15px; border-left: 2px solid #bc91ce; background: #2e2337; color: #e6d7e8; font-size: 13px; line-height: 1.65; white-space: pre-wrap; }
.dialog-note { display: block; margin-top: 12px; text-align: center; }
.gift-dialog-icon { display: grid; place-items: center; width: 82px; height: 82px; margin-bottom: 20px; border: 1px solid #9f7a98; border-radius: 25px; background: #5d3b56; font-size: 44px; }
.gift-price { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--line); color: var(--muted); }
.gift-price strong { color: var(--text); font-size: 21px; }
.gift-terms { margin: 0 !important; padding: 11px 12px; border: 1px solid #6b566f; border-radius: 9px; background: #2e2334; font-size: 12px !important; }
.terms-details { color: var(--lavender); font-size: 12px; }
.terms-details summary { cursor: pointer; min-height: 30px; }
.terms-details .legal { max-height: 190px; overflow: auto; padding: 10px; border: 1px solid var(--line); border-radius: 8px; }
.insufficient { color: var(--rose); }
.modal-menu { display: grid; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; }
.modal-menu button { display: flex; justify-content: space-between; gap: 10px; min-height: 49px; padding: 12px; border: 0; border-bottom: 1px solid var(--line); background: var(--surface-raised); text-align: left; font-size: 13px; }
.modal-menu button:last-child { border-bottom: 0; }
.legal { color: var(--muted); white-space: pre-wrap; font-size: 13px; line-height: 1.65; }
#toast { z-index: 100; position: fixed; bottom: calc(85px + var(--safe-bottom)); left: 50%; transform: translateX(-50%); width: max-content; max-width: min(90vw, 480px); padding: 12px 16px; border: 1px solid #cdb3e0; border-radius: 11px; background: #e9d8f6; box-shadow: 0 8px 30px #0009; color: #2d1c36; font-size: 13px; font-weight: 650; }
.busy-banner { margin: 0 0 15px; padding: 11px 13px; border: 1px solid #876d94; border-radius: 10px; background: #4b3458; color: #f8e6ff; font-size: 13px; }
@media (max-width: 650px) {
  .topbar { height: 62px; padding: 0 18px; }
  .brand { font-size: 24px; }
  main { padding: 27px 18px calc(112px + var(--safe-bottom)); }
  .page-intro { margin-bottom: 23px; }
  .featured-story, .featured-content { min-height: 442px; }
  .featured-content { padding: 22px; }
  .story-list { grid-template-columns: 1fr; }
  .story-card-image { flex-basis: 105px; height: 128px; }
  .chat-top { top: 62px; margin: -27px -18px 0; padding: 9px 18px; }
  .plans { grid-template-columns: repeat(2, 1fr); row-gap: 18px; }
  .benefits { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 390px) {
  .featured-footer { align-items: stretch; flex-direction: column; }
  .featured-footer .primary { width: 100%; }
  .featured-story, .featured-content { min-height: 490px; }
  .gift-grid { gap: 8px; }
  .gift-card { padding: 12px; }
  .gift-illustration { width: 55px; height: 55px; }
  .bottom-nav button { font-size: 9px; }
  .bottom-nav button span:first-child { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .loading-symbol { animation: none; }
}
