/* Moon garden: an illustrated library with engraved botanical margins. */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
button,input { font: inherit; } button { cursor: pointer; } button:disabled { cursor: default; }
button,a,summary { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; -webkit-user-drag: none; }
.literary-site { position: relative; isolation: isolate; font-family: var(--font-ui); color: var(--paper); line-height: 1.7; min-height: 100vh; background: var(--ink); background-image: radial-gradient(ellipse at 74% 7%,var(--ambient),transparent 32%),linear-gradient(90deg,var(--panel-wash),transparent 20%,transparent 80%,var(--panel-wash)); }
.literary-site::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: url('../assets/celestial-pattern.svg') repeat; background-size: 180px; opacity: var(--texture-opacity); }
.page-etching { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.page-etching::before,.page-etching::after { content: ''; position: absolute; width: 330px; height: 1500px; background: url('../assets/garden-etching.svg') 0 0 / 330px auto repeat-y; opacity: var(--botanical-opacity); }
.page-etching::before { left: -85px; top: 62px; }.page-etching::after { right: -85px; top: 135px; transform: scaleX(-1); }
.literary-site :is(h1,h2,h3,h4) { font-family: var(--font-display); font-weight: 500; }
.literary-site svg { flex-shrink: 0; stroke-width: 1.5; }
.literary-site * { border-color: var(--line); }
.literary-site ::selection { color: var(--on-button); background: var(--button); }
.literary-site :is(a,button,summary):focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.literary-site ::-webkit-scrollbar { width: 6px; height: 4px; }.literary-site ::-webkit-scrollbar-track { background: var(--ink); }.literary-site ::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 5px; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 200; padding: 12px 18px; background: var(--surface); color: var(--paper); border: 1px solid var(--focus); transform: translateY(-160%); }.skip-link:focus { transform: none; }
:is(#stories-grid,#story-modal,.no-copy,[data-protected-content]),:is(#stories-grid,#story-modal,.no-copy,[data-protected-content]) * { -webkit-user-select: none !important; user-select: none !important; -webkit-touch-callout: none !important; }
.allow-copy,.literary-site :is(input,textarea,[contenteditable=""],[contenteditable="true"]),:is(#stories-grid,#story-modal,.no-copy,[data-protected-content]) :is(input,textarea,[contenteditable=""],[contenteditable="true"]) { -webkit-user-select: text !important; user-select: text !important; -webkit-touch-callout: default !important; }
html.content-protection-blocked body { display: none !important; }
@media print { .literary-site { display: none !important; }html::after { content: 'Nội dung thuộc Moè Đen Thích Ngủ — https://moedenthichngu.online'; } }
.site-shell { width: min(1220px,calc(100% - 112px)); margin: auto; }
.site-nav { position: relative; display: flex; align-items: center; gap: 32px; min-height: 102px; border-bottom: 1px solid var(--line); }
.site-nav::after { content: '◆'; position: absolute; bottom: -7px; left: 50%; color: var(--gold); font-size: 8px; background: var(--ink); padding: 0 12px; }
.nav-brand { display: inline-flex; align-items: center; gap: 15px; color: var(--paper); font: 500 25px/1.2 var(--font-display); }.nav-brand small { display: block; color: var(--muted); margin-top: 7px; font: 9px/1.4 var(--font-ui); letter-spacing: .28em; }
.brand-sigil { display: grid; place-items: center; width: 45px; height: 51px; border: 1px solid var(--art-line); border-radius: 24px 24px 3px 3px; color: var(--gold); font: 35px/1 var(--font-display); box-shadow: inset 0 0 0 4px var(--ink); background: var(--art-fill); }
.nav-links { display: flex; align-items: center; gap: 34px; margin-left: auto; color: var(--paper); font-size: 12px; }.nav-links a:hover,.nav-links button:hover { color: var(--gold); }
.theme-switch { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--gold); background: var(--surface); }.theme-switch:hover { border-color: var(--gold); }.theme-switch svg { width: 17px; height: 17px; }
.literary-site #bio-header { display: grid; grid-template-columns: 1.07fr 1fr; gap: 44px; align-items: center; padding: 40px 0 42px; }
.hero-copy { padding: 14px 0 20px 12px; min-width: 0; }
.eyebrow { color: var(--gold); font: 500 10px/1.7 var(--font-ui); letter-spacing: .2em; text-transform: uppercase; }
.hero-copy > .eyebrow { display: flex; align-items: center; gap: 14px; }.hero-copy > .eyebrow::before { content: ''; width: 26px; height: 1px; background: var(--gold); }
.hero-copy h1 { position: relative; font-size: clamp(43px,4.8vw,65px); line-height: 1.18; letter-spacing: -.045em; margin: 24px 0 28px; font-weight: 400; }
.hero-copy h1 em { font-weight: 400; color: var(--rose); }.heading-star { display: inline-block; font: 35px/1 Georgia,serif; color: var(--gold); margin-left: 20px; vertical-align: middle; }
.hero-byline { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }.fine-rule { width: 23px; height: 23px; border: 1px solid var(--art-line); transform: rotate(45deg); }.fine-rule::after { content: '✦'; display: block; text-align: center; font: 14px/21px Georgia,serif; color: var(--gold); }
.literary-site #owner-name { color: var(--paper); font-size: 12px; font-weight: 500; }.literary-site #owner-name > span:last-child { display: none; }
.literary-site #owner-bio { color: var(--muted); font-size: 13px; line-height: 1.95; max-width: 440px; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 25px; margin-top: 25px; }
.button-primary,.story-read-button,.catalog-empty button,#refund-zalo-box button { display: inline-flex; align-items: center; justify-content: center; gap: 13px; padding: 15px 21px; min-height: 48px; color: var(--on-button); background: var(--button); border: 1px solid var(--button); border-radius: 2px; font: 500 12px var(--font-ui); transition: background .2s,transform .2s; }
.button-primary { outline: 1px solid var(--art-line); outline-offset: 4px; margin: 4px; }
.button-primary:hover,.story-read-button:hover,.catalog-empty button:hover,#refund-zalo-box button:hover { background: var(--button-hover); transform: translateY(-2px); }.hero-actions svg { width: 16px; height: 16px; }.button-text { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; color: var(--rose); font-size: 12px; border-bottom: 1px solid var(--line); }
.literary-site #status-badge { display: flex; align-items: center; gap: 8px; margin-top: 25px; color: var(--muted); font-size: 10px; }.sleep-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px var(--art-fill); }
.hero-sanctuary { position: relative; width: 100%; max-width: 535px; margin: auto; isolation: isolate; }
.hero-sanctuary::before { content: ''; position: absolute; inset: 14% 10% 8%; z-index: -1; border-radius: 50%; background: var(--ambient); filter: blur(40px); }
.garden-illustration { width: 100%; height: auto; }
.sanctuary-cat { position: absolute; width: 35%; height: auto; right: 7.5%; bottom: 9.2%; }
.sanctuary-caption { display: flex; align-items: center; justify-content: center; gap: 15px; color: var(--gold); font: 8px/1.7 var(--font-ui); letter-spacing: .22em; margin-top: 4px; }.sanctuary-caption > span { font-size: 10px; }
.social-ribbon { position: relative; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; padding: 21px 28px; border: 1px solid var(--line); background: var(--panel-wash); }
.social-ribbon::before,.social-ribbon::after { content: '✦'; position: absolute; top: 50%; transform: translateY(-50%); color: var(--gold); font: 13px Georgia,serif; }.social-ribbon::before { left: -6px; }.social-ribbon::after { right: -6px; }
.ribbon-label { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 11px; }.ribbon-label > span { color: var(--gold); font-size: 22px; }.social-ribbon > div { display: flex; gap: 30px; flex-wrap: wrap; }.social-ribbon a,.social-ribbon button { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; color: var(--paper); }.social-ribbon svg { width: 14px; height: 14px; color: var(--gold); }
#story-catalog { padding-top: 58px; scroll-margin-top: 28px; }.catalog-heading { display: flex; justify-content: space-between; align-items: center; gap: 28px; margin-bottom: 28px; }
.section-index { display: inline-block; margin-right: 13px; padding-right: 15px; border-right: 1px solid var(--line-strong); font: italic 14px var(--font-display); }
.section-heading { font: 400 40px/1.4 var(--font-display); margin: 9px 0; letter-spacing: -.02em; }.section-heading em { color: var(--rose); font-weight: 400; }.catalog-result-count { color: var(--muted); font-size: 11px; }
#category-tabs-container { display: flex; align-items: center; gap: 5px; border: 1px solid var(--line); padding: 5px; background: var(--surface-deep); border-radius: 3px; }
.category-button { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 12px 19px; color: var(--muted); font: 500 12px var(--font-ui); border: 1px solid transparent; }
.category-button svg { width: 15px; height: 15px; }.category-button[aria-pressed="true"] { color: var(--paper); border-color: var(--line-strong); background: var(--surface-raised); }
.catalog-tools { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 0 24px; border-bottom: 1px solid var(--line); margin-bottom: 26px !important; }.catalog-tools > .relative { flex: 1; max-width: 540px; }
#story-search-input { border: 1px solid var(--line); border-radius: 3px; background: var(--surface); color: var(--paper); min-height: 48px; font-size: 12px; box-shadow: none; }#story-search-input:focus { border-color: var(--focus); outline: 1px solid var(--focus); }#story-search-input::placeholder { color: var(--muted); opacity: .85; }#story-search-input::-webkit-search-cancel-button { -webkit-appearance: none; }#story-search-clear { color: var(--rose); }.catalog-tools > .relative > svg { color: var(--muted); }
.catalog-filters { display: flex; gap: 8px; padding: 0; overflow: visible; flex-wrap: wrap; }.catalog-filters > span { display: none; }.filter-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 39px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 3px; color: var(--muted); background: var(--surface); font: 400 11px var(--font-ui); white-space: nowrap; }.filter-button svg { width: 13px; height: 13px; }.filter-button[aria-pressed="true"] { color: var(--rose); border-color: var(--line-strong); background: var(--surface-raised); }
.story-collection-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }
.story-card { position: relative; display: grid; grid-template-columns: 144px minmax(0,1fr); gap: 23px; padding: 24px; border: 1px solid var(--line); background: var(--surface); min-width: 0; align-items: start; box-shadow: 0 7px 20px var(--card-shadow); transition: border-color .2s; }
.story-card::after { content: ''; position: absolute; width: 16px; height: 16px; right: 6px; bottom: 6px; border-right: 1px solid var(--art-line); border-bottom: 1px solid var(--art-line); pointer-events: none; }
.story-card:hover { border-color: var(--line-strong); }
.story-card:nth-child(-n+2) { background: linear-gradient(130deg,var(--panel-wash),transparent 65%),var(--surface); }
.story-cover-wrap { position: relative; width: 144px; padding: 15px 11px 22px; border: 1px solid var(--line-strong); border-radius: 80px 80px 2px 2px; background: var(--surface-deep) url('../assets/celestial-pattern.svg') center / 120px; margin-top: 3px; transition: border-color .2s,transform .2s; }
.story-cover-wrap:hover { border-color: var(--gold); transform: translateY(-3px); }.story-cover-wrap::before { content: ''; position: absolute; inset: 5px; border: 1px solid var(--line); border-radius: inherit; pointer-events: none; }
.cover-ratio-2-3 { position: relative; width: 100%; height: auto; aspect-ratio: 2/3; object-fit: contain; border-radius: 2px; box-shadow: 5px 9px 19px var(--cover-shadow); }
.book-frame-mark { position: absolute; left: calc(50% - 12px); bottom: -11px; width: 24px; background: var(--surface); font: 20px Georgia,serif; color: var(--gold); text-align: center; }
.story-card-content { display: flex; flex-direction: column; align-self: stretch; min-width: 0; }
.story-card-badges { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.story-state { display: inline-flex; align-items: center; gap: 5px; color: var(--rose); font: 500 9px/1.7 var(--font-ui); }.story-state::before { content: ''; width: 4px; height: 4px; border: 1px solid var(--rose); border-radius: 50%; }.story-state--full::before { background: var(--rose); }.story-state--coming { color: var(--muted); }
.crown-badge,.new-badge { display: inline-flex; align-items: center; gap: 4px; color: var(--gold); font: 400 9px var(--font-ui); }.crown-badge svg { width: 11px; height: 11px; }
.story-card h3 { font: 500 20px/1.5 var(--font-display); margin-bottom: 9px; overflow-wrap: anywhere; }.story-card h3 button { display: block; text-align: left; font: inherit; color: var(--paper); }.story-card h3 button:hover { color: var(--rose); }
.story-author { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 10px; color: var(--muted); margin-bottom: 13px; }
.story-tags-container { position: relative; display: flex; flex-wrap: wrap; gap: 5px; max-height: 49px; overflow: hidden; margin-bottom: 13px; align-content: start; }
.dammy-tag { display: inline-flex; align-items: center; max-width: 100%; padding: 2px 6px; color: var(--muted); background: var(--surface-deep); border: 1px solid var(--line); border-radius: 2px; font: 400 9px/1.6 var(--font-ui); overflow-wrap: anywhere; }.dammy-tag:hover { color: var(--rose); border-color: var(--rose); }
.story-excerpt { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; color: var(--muted); font: 400 12px/1.9 var(--font-ui); margin-bottom: 18px; }
.card-more-tags { color: var(--rose); padding: 2px 3px; font: 400 9px var(--font-ui); }
.card-read-button { padding: 7px 9px; background: var(--surface-raised); border: 1px solid var(--line); border-radius: 2px; }
.story-card-footer { margin-top: auto; width: 100%; }.story-refund-bar { display: flex; align-items: start; gap: 5px; color: var(--rose); font: 400 9px/1.7 var(--font-ui); margin-bottom: 11px; }.story-refund-bar svg { width: 12px; height: 12px; margin-top: 2px; }
.story-card-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); width: 100%; }.btn-synopsis,.card-read-button { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; font: 500 11px var(--font-ui); }.btn-synopsis { color: var(--rose); }.card-read-button { color: var(--paper); }.btn-synopsis svg,.card-read-button svg { width: 13px; height: 13px; }.btn-synopsis:hover,.card-read-button:hover { color: var(--rose-strong); }
#stories-pagination { padding: 28px 0 0; }.pagination-frame { display: flex; align-items: center; gap: 6px; }.pagination-btn { display: grid; place-items: center; width: 39px; height: 39px; border: 1px solid transparent; border-radius: 2px; color: var(--muted); font: 500 13px var(--font-ui); }.pagination-btn.active { background: var(--surface-raised); color: var(--rose); border-color: var(--line-strong); }.pagination-btn:disabled { opacity: .3; pointer-events: none; }.pagination-btn svg { width: 15px; height: 15px; }
.catalog-empty { grid-column: 1/-1; padding: 50px 24px; text-align: center; color: var(--muted); border: 1px solid var(--line); background: var(--surface); }.catalog-empty p { margin: 14px 0 20px; }.catalog-empty p:first-of-type { font: 500 21px var(--font-display); color: var(--paper); }
.reader-privileges { position: relative; margin: 68px 0 58px; padding: 42px; border: 1px solid var(--line-strong); background: linear-gradient(120deg,var(--panel-wash),transparent),var(--surface); scroll-margin-top: 30px; }.reader-privileges::before { content: ''; position: absolute; inset: 8px; border: 1px solid var(--line); pointer-events: none; }
.privilege-ornament { position: absolute; top: -20px; left: 28px; padding: 0 10px; color: var(--gold); background: var(--ink); font: 32px Georgia,serif; }.privilege-eyebrow { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }.privilege-eyebrow svg { display: none; }
#refund-title { color: var(--paper); font: 500 29px/1.5 var(--font-display); max-width: 600px; }#refund-summary { color: var(--muted); font-size: 12px; line-height: 1.9; }#refund-steps { padding: 22px 0 17px; gap: 20px; }#refund-steps > div { background: none; border: 0; padding: 0; }#refund-steps > div > div:first-child { display: block; background: none; color: var(--gold); margin-bottom: 8px; font: italic 24px var(--font-display); }#refund-steps h4 { color: var(--paper); font: 500 15px var(--font-display); margin-bottom: 7px; }#refund-steps p { font: 400 11px/1.8 var(--font-ui); color: var(--muted); }#refund-note { color: var(--muted); font: 400 10px/1.9 var(--font-ui); }#refund-note svg { color: var(--rose); }
#refund-zalo-box { border: 1px solid var(--line-strong); border-radius: 110px 110px 3px 3px; background: var(--surface-deep) url('../assets/celestial-pattern.svg') center / 140px; padding: 34px 20px 22px; }#refund-zalo-box > div:first-child { border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--gold); }#zalo-phone-display { font: 500 22px var(--font-display); color: var(--paper); }#refund-zalo-box button { width: 100%; font-size: 11px; }#refund-zalo-box a { color: var(--rose); font-size: 11px; }
.site-footer { position: relative; padding: 0 0 38px; color: var(--muted); }.footer-ornament { color: var(--gold); font: 25px Georgia,serif; letter-spacing: .14em; padding-bottom: 12px; }.site-footer #footer-brand-title { color: var(--paper); font: 500 21px var(--font-display); }.site-footer svg { color: var(--rose); }.site-footer p { font-size: 11px; line-height: 1.9; }.site-footer button { color: var(--muted); font-size: 11px; }.site-footer button:hover { color: var(--rose); }
.local-preview-bar { background: var(--surface); color: var(--muted); border-color: var(--line); font-size: 10px; }.local-preview-bar svg,.local-preview-bar a,.local-preview-bar button { color: var(--rose); }
.bulletin-tab { color: var(--muted); border-bottom: 1px solid var(--line); }.bulletin-tab.is-active { color: var(--rose); border-bottom-color: var(--rose); }
#app-toast { width: max-content; max-width: calc(100vw - 32px); border: 1px solid var(--line-strong); border-radius: 4px; background: var(--surface-raised); color: var(--paper); font: 400 12px var(--font-ui); box-shadow: 0 8px 30px var(--card-shadow); overflow-wrap: anywhere; }#app-toast svg { color: var(--rose); }
.modal-share-btn { display: inline-flex; align-items: center; gap: 7px; color: var(--rose); border: 1px solid var(--line); border-radius: 3px; padding: 11px 13px; font: 500 11px var(--font-ui); }.modal-share-btn:hover { background: var(--surface-raised); }
@media (max-width:1100px) {
  .site-shell { width: calc(100% - 64px); }.literary-site #bio-header { gap: 22px; padding: 40px 0; }.hero-copy { padding-left: 0; }.hero-copy h1 { font-size: 49px; }.heading-star { font-size: 25px; margin-left: 12px; }.hero-actions { gap: 15px; }.hero-actions .button-primary { font-size: 11px; padding: 14px 16px; }
  .story-card { grid-template-columns: 112px minmax(0,1fr); gap: 18px; padding: 20px; }.story-cover-wrap { width: 112px; padding: 13px 8px 20px; }.story-card h3 { font-size: 18px; }.story-card-actions { flex-wrap: wrap; gap: 8px; }.catalog-tools { flex-wrap: wrap; }.catalog-tools > .relative { max-width: none; min-width: 40%; }.reader-privileges { padding: 32px; }
}
@media (max-width:850px) {
  .site-shell { width: calc(100% - 48px); }.hero-copy h1 { font-size: 42px; }.hero-copy > .eyebrow { font-size: 8px; gap: 9px; }.hero-copy > .eyebrow::before { width: 16px; }.literary-site #owner-bio { font-size: 12px; }.hero-actions { gap: 12px; }.button-text { font-size: 11px; }.heading-star { display: none; }
  .story-collection-grid { grid-template-columns: 1fr; }.story-card { grid-template-columns: 150px minmax(0,1fr); gap: 26px; padding: 25px; }.story-cover-wrap { width: 150px; }.story-card h3 { font-size: 22px; }.story-author { font-size: 11px; }.story-card-actions { flex-wrap: nowrap; }.catalog-heading { gap: 16px; }.section-heading { font-size: 34px; }.category-button { padding: 12px; font-size: 11px; }.social-ribbon { padding: 18px; }.social-ribbon > div { gap: 20px; }.ribbon-label { font-size: 10px; }
}
@media (max-width:639px) {
  .site-shell { width: calc(100% - 36px); }.site-nav { min-height: 84px; gap: 17px; }.site-nav::after { left: 48%; }.nav-brand { font-size: 20px; gap: 10px; }.nav-brand small { font-size: 7px; }.brand-sigil { width: 35px; height: 42px; font-size: 29px; }.nav-links { font-size: 11px; gap: 15px; }.nav-links button { display: none; }.theme-switch { width: 34px; height: 34px; }
  .literary-site #bio-header { grid-template-columns: 1fr; gap: 22px; padding: 36px 0 30px; }.hero-copy { text-align: center; padding: 0; }.eyebrow { font-size: 9px; }.hero-copy > .eyebrow { justify-content: center; font-size: 9px; }.hero-copy > .eyebrow::after { content: ''; width: 16px; height: 1px; background: var(--gold); }
  .hero-copy h1 { font-size: clamp(39px,10.6vw,59px); line-height: 1.2; margin: 21px 0 24px; }.hero-byline,.hero-actions,#status-badge { justify-content: center; }.hero-byline { margin-bottom: 15px; }.fine-rule { width: 18px; height: 18px; }.fine-rule::after { line-height: 16px; font-size: 11px; }.literary-site #owner-bio { font-size: 12px; max-width: 360px; margin: auto; }.hero-actions { margin-top: 22px; gap: 16px; }.hero-actions .button-primary { font-size: 11px; padding: 14px; }.hero-sanctuary { width: min(380px,100%); }.sanctuary-caption { font-size: 7px; }.literary-site #status-badge { margin-top: 20px; }.page-etching::before { left: -175px; }.page-etching::after { right: -190px; top: 500px; }
  .social-ribbon { padding: 19px 9px; gap: 12px; justify-content: center; }.ribbon-label { display: none; }.social-ribbon > div { gap: 18px; }.social-ribbon a,.social-ribbon button { font-size: 10px; }
  #story-catalog { padding-top: 38px; }.catalog-heading { display: block; margin-bottom: 20px; }.section-heading { font-size: 32px; }.catalog-result-count { font-size: 11px; }#category-tabs-container { display: flex; margin-top: 21px; gap: 5px; }.category-button { flex: 1; font-size: 12px; padding: 12px 8px; }.catalog-tools { display: block; padding-bottom: 19px; margin-bottom: 20px !important; }#story-search-input { font-size: 16px; min-height: 48px; }.catalog-filters { margin-top: 14px; gap: 6px; }.filter-button { padding: 7px 8px; font-size: 10px; gap: 5px; min-height: 37px; }.filter-button svg { width: 12px; height: 12px; }
  .story-collection-grid { gap: 22px; }
  .story-card { grid-template-columns: minmax(0,1fr); gap: 28px; padding: 25px 20px 20px; }
  .story-cover-wrap { width: min(224px,78%); justify-self: center; padding: 18px 12px 24px; border-radius: 112px 112px 2px 2px; margin-top: 0; }
  .story-card h3 { font-size: 21px; line-height: 1.5; }
  .story-card-badges { gap: 10px; margin-bottom: 12px; }
  .story-state,.crown-badge,.new-badge { font-size: 10px; }.crown-badge svg { width: 12px; height: 12px; }
  .story-author { font-size: 11px; gap: 6px; margin-bottom: 14px; }
  .story-tags-container { margin-bottom: 14px; max-height: none; }.dammy-tag { font-size: 10px; padding: 4px 7px; }.card-more-tags { font-size: 10px; padding: 4px; }
  .story-excerpt { font-size: 13px; -webkit-line-clamp: 3; margin-bottom: 16px; }
  .story-refund-bar { font-size: 10px; }
  .story-card-actions { flex-wrap: wrap; gap: 8px; padding-top: 12px; }.btn-synopsis,.card-read-button { font-size: 12px; min-height: 44px; }.card-read-button { padding: 10px 13px; }.btn-synopsis svg,.card-read-button svg { width: 14px; height: 14px; }
  .reader-privileges { padding: 29px 21px; margin: 48px 0 38px; }#refund-title { font-size: 25px; }#refund-steps { grid-template-columns: 1fr; gap: 20px; }#refund-steps > div { display: flex; gap: 15px; }#refund-steps > div > div:first-child { min-width: 27px; margin: 0; }#refund-steps h4 { font-size: 16px; }#refund-steps p { font-size: 12px; }#refund-summary { font-size: 12px; }#refund-zalo-box { width: 100%; max-width: 310px; margin: auto; padding: 26px 21px 20px; }.site-footer { padding-bottom: 27px; }
}
@media (max-width:360px) { .site-shell { width: calc(100% - 28px); }.filter-button { padding: 7px; font-size: 9px; }.story-card { padding: 23px 17px 18px; }.story-card h3 { font-size: 20px; }.hero-actions { gap: 12px; }.hero-actions .button-primary { font-size: 10px; padding: 12px; } }

/* Story detail: a chapter page, using the same frames and type as the catalog. */
#story-modal { z-index: 70; background: #08060dd9; backdrop-filter: blur(10px); }
.story-dialog { height: 100dvh; background: var(--ink); border-color: var(--line); }
#story-modal-content { min-height: 0; }
#story-modal .modal-scroll-area { min-height: 0; padding: 24px 20px; background: var(--ink); overscroll-behavior: contain; }
#story-modal header { background: var(--surface); border-color: var(--line); }
.literary-site #story-modal header button { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; color: var(--muted); border: 0; background: transparent; font-family: var(--font-display); font-size: 13px; }
#story-modal header svg { color: var(--rose); }
.story-hero { display: grid; gap: 28px; text-align: center; padding: 10px 0 28px; border-bottom: 1px solid var(--line); }
.story-hero-art { position: relative; display: grid; place-items: center; isolation: isolate; padding: 20px 0; }
.story-hero-art::before { content: ''; position: absolute; inset: 10% 0; z-index: -1; background: radial-gradient(ellipse, var(--ambient), transparent 68%); }
.story-hero .modal-cover-wrap { width: clamp(170px, 54vw, 236px); overflow: hidden; border: 1px solid var(--line); border-radius: 3px; box-shadow: 0 20px 34px -10px var(--hero-cover-shadow); }
.story-hero .modal-cover-wrap img { aspect-ratio: auto; height: auto; }
.story-hero-orbit { position: absolute; z-index: -1; width: min(100%, 310px); height: 100%; border: 1px solid var(--line); border-radius: 50% 50% 3px 3px; }
.story-hero-orbit::before { content: ''; position: absolute; inset: 8px; border: 1px solid var(--line); opacity: .45; border-radius: inherit; }
.story-hero-orbit span { position: absolute; color: var(--rose); font-size: 20px; }
.story-hero-orbit span:first-child { top: 18%; left: -8px; }.story-hero-orbit span:last-child { bottom: 14%; right: -8px; }
.story-hero-info { min-width: 0; align-self: center; }
.story-hero-eyebrow { color: var(--rose); font-size: 9px; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 16px; }
.story-hero-eyebrow span { margin: 0 6px; }
.story-hero h2 { color: var(--paper); font-size: clamp(22px, 4.6vw, 30px); line-height: 1.5; font-weight: 400; margin: 14px 0; overflow-wrap: anywhere; text-wrap: balance; }
.story-original-title { color: var(--muted); font: italic 13px/1.8 var(--font-display); margin-bottom: 12px; overflow-wrap: anywhere; }
.story-hero-author { color: var(--muted); font-size: 11px; }.story-hero-author span { color: var(--paper); margin-left: 5px; }
.story-hero-stats { display: flex; justify-content: center; margin-top: 24px; }
.story-hero-stats > div { flex: 1; min-width: 0; padding: 0 10px; border-right: 1px solid var(--line); }
.story-hero-stats > div:last-child { border: 0; }
.story-hero-stats dt { color: var(--muted); font-size: 10px; margin-bottom: 5px; }
.story-hero-stats dd { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 5px; color: var(--paper); font: 500 18px/1.6 var(--font-display); overflow-wrap: anywhere; }
.story-hero-stats svg { width: 13px; height: 13px; color: var(--rose); }
.story-genres { padding: 4px 0 14px; }
.story-genre-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; }
.story-genres .dammy-tag { font-size: 11px; padding: 5px 10px; }
.story-more-tags { margin-top: 10px; text-align: center; }
.story-more-tags summary { display: inline-flex; gap: 6px; align-items: center; color: var(--rose); font: italic 13px var(--font-display); padding: 8px; list-style: none; cursor: pointer; }
.story-more-tags summary::-webkit-details-marker { display: none; }
.story-more-tags summary svg { width: 14px; height: 14px; }
.story-more-tags .tags-hide, .story-more-tags[open] .tags-show { display: none; }
.story-more-tags[open] .tags-hide { display: inline; }.story-more-tags[open] summary svg { transform: rotate(180deg); }
.story-more-tags[open] .story-genre-list { margin-top: 8px; }
.story-detail-panel { position: relative; padding: 24px; border: 1px solid var(--line); border-radius: 2px; background: var(--surface); }
.story-detail-panel::before, .story-detail-panel::after { content: ''; position: absolute; width: 12px; height: 12px; pointer-events: none; border-color: var(--rose); opacity: .65; }
.story-detail-panel::before { top: -1px; left: -1px; border-top: 1px solid; border-left: 1px solid; }
.story-detail-panel::after { bottom: -1px; right: -1px; border-bottom: 1px solid; border-right: 1px solid; }
.detail-section-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.detail-index { font: italic 13px var(--font-display); color: var(--rose); }
.detail-flourish { margin-left: auto; color: var(--rose); font-size: 18px; }
.literary-site .modal-section-title { color: var(--paper); font: 500 20px/1.5 var(--font-display); }
.story-detail-panel p { color: var(--muted); font-size: 13px; line-height: 1.9; }
.modal-cp-box p { font-family: var(--font-display); font-size: 16px; color: var(--paper); }
.chapter-bonus { padding: 16px 0; }
.chapter-bonus .chapter-bonus-legend { margin: 0 0 10px; color: var(--muted); font: 400 11px/1.8 var(--font-ui); }
.chapter-bonus-tiers { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chapter-bonus-tiers li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface-raised); color: var(--paper); font: 400 13px/1.6 var(--font-ui); white-space: nowrap; }
.chapter-bonus-tiers li > span:nth-child(2) { color: var(--muted); }
.chapter-bonus-tiers strong { color: var(--rose); font-weight: 600; }
.chapter-bonus .chapter-bonus-example { margin: 12px 0 0; color: var(--rose); font: 400 12px/1.9 var(--font-ui); }
.modal-refund-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; align-items: center; padding-top: 16px; margin-top: 18px; border-top: 1px solid var(--line); }
.modal-refund-label { color: var(--muted); font-size: 11px; }
.chapter-bonus-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--rose); font: 500 15px var(--font-display); }
.chapter-bonus-link svg { width: 14px; height: 14px; }
.modal-synopsis-wrap { padding-top: 18px; }
.modal-synopsis-wrap .detail-section-heading { margin-bottom: 0; }
.synopsis-caption { color: var(--muted); font-size: 10px; letter-spacing: .12em; margin: 7px 0 24px; padding-left: 28px; text-transform: uppercase; }
.modal-synopsis-box {
  white-space: pre-line;
  color: var(--paper);
  font: 400 17px/1.85 var(--font-ui);
  text-align: left;
  padding: 0 8px;
  overflow-wrap: anywhere;
}
.chapter-end { color: var(--rose); letter-spacing: .35em; text-align: center; margin: 32px 0 12px; }
.modal-bottom-bar { display: flex; align-items: center; gap: 12px; padding: 12px 20px max(12px, env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); }
.modal-bottom-bar .modal-share-btn { min-height: 48px; }
.story-read-action { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: end; gap: 16px; }
.story-read-hint { display: none; color: var(--muted); font-size: 11px; }
.story-read-action .story-read-button { flex: 1; min-height: 48px; }
@media (min-width: 640px) {
  .story-dialog { height: min(90dvh, 980px); border: 1px solid var(--line); border-radius: 3px 22px 3px 22px; }
  #story-modal .modal-scroll-area { padding: 32px; }
  .story-hero { grid-template-columns: minmax(200px, .85fr) minmax(0, 1.15fr); text-align: left; gap: 32px; }
  .story-hero .modal-cover-wrap { width: min(82%, 250px); }
  .story-hero-stats dd { justify-content: start; }
  .story-genre-list { justify-content: start; }.story-more-tags { text-align: left; }
  .story-read-hint { display: inline; }.story-read-action .story-read-button { flex: 0 1 230px; }
  .modal-bottom-bar { padding: 16px 32px; }
}
@media (max-width: 639px) {





  .story-detail-panel { padding: 20px; }
  .literary-site .modal-section-title { font-size: 18px; }
  .modal-synopsis-box { font-size: 16px; }
  .modal-bottom-bar { gap: 10px; padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 380px) {
  .catalog-filters > span { display: none; }
  .orbit-two { inset: 55px 18px 60px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .literary-site *, .literary-site *::before, .literary-site *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
