/* User-app 1.5 parity. Deliberately short, one-shot transitions. */
@font-face {font-family:"Listenza Devanagari";src:url('./assets/noto-sans-devanagari.ttf') format('truetype');font-weight:100 900;font-display:swap;unicode-range:U+0900-097F,U+A8E0-A8FF,U+1CD0-1CFF;}
html,body {font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,"Listenza Devanagari",Arial,sans-serif;}
.novel-body {font-family:Georgia,"Times New Roman","Listenza Devanagari",serif;}
#app .topbar.app-exact-header.balanced-header {display:grid!important;grid-template-columns:minmax(0,1fr) 124px minmax(0,1fr)!important;gap:6px!important;align-items:center!important;padding:12px 16px!important;}
#app .topbar.balanced-header .wordmark {position:static!important;transform:none!important;justify-self:center!important;font-size:28px!important;letter-spacing:1px!important;white-space:nowrap;}
#app .topbar.balanced-header .top-left {justify-content:flex-start!important;min-width:0!important;}
#app .topbar.balanced-header .top-right {justify-content:flex-end!important;min-width:0!important;gap:6px!important;}
.treasure-header-btn {position:relative;display:grid;place-items:center;width:40px;height:40px;min-width:40px;border:1px solid #75603a;background:#18140d;border-radius:13px;color:#edc671;padding:3px;}
.treasure-header-btn .treasure-art {width:33px;height:31px;margin:0;filter:none;}
.treasure-header-btn i {position:absolute;top:0;right:0;width:7px;height:7px;border-radius:50%;background:#eec86f;box-shadow:0 0 0 2px #080808;}
.treasure-backdrop {position:fixed;inset:0;z-index:2600;background:#000a;display:flex;align-items:center;justify-content:center;padding:max(14px,env(safe-area-inset-top)) 14px max(14px,env(safe-area-inset-bottom));backdrop-filter:blur(7px);overscroll-behavior:contain;}
.treasure-modal {width:min(100%,520px);max-height:calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom));overflow:auto;overscroll-behavior:contain;padding:22px 24px 28px;border:1px solid #9a7a43;border-radius:28px;background:radial-gradient(ellipse at 50% 10%,#44321a66,transparent 55%),linear-gradient(160deg,#241e14,#11100b 65%);color:#fff;box-shadow:0 24px 90px #0009;scrollbar-width:thin;outline:none;}
.treasure-modal header {display:flex;align-items:center;justify-content:space-between;gap:15px;letter-spacing:4px;font-size:12px;font-weight:800;color:#fff;}
.treasure-modal header .icon-btn {color:#fff;min-width:36px;}
.treasure-art {display:block;width:180px;height:150px;margin:22px auto 12px;filter:drop-shadow(0 6px 25px #dba94024);overflow:visible;}
.treasure-lid {transform-origin:35px 75px;transition:transform 300ms ease;}
.treasure-art.opened .treasure-lid {transform:rotate(-20deg) translateY(-22px);}
.treasure-modal h2 {font-size:28px;line-height:1.18;text-align:center;letter-spacing:-.4px;color:#fff;margin:18px 0 12px;}
.treasure-modal>p {text-align:center;line-height:1.6;font-size:15px;color:#fff;margin:10px 0 20px;}
.treasure-modal .treasure-error {color:#ffcfbd;font-size:14px;}
.treasure-open {width:100%;min-height:54px;border:0;border-radius:17px;background:linear-gradient(100deg,#f2cc75,#e7b65a);color:#171108;font-size:20px;font-weight:800;margin:14px 0 10px;cursor:pointer;}
.treasure-open:disabled {opacity:.65;cursor:wait;}
.treasure-amount {display:flex;align-items:center;justify-content:center;gap:12px;color:#fff;font-size:44px;font-weight:850;}
.treasure-amount img {width:35px;height:35px;}
.treasure-modal .treasure-streak {font-weight:700;color:#fff;font-size:16px;margin:25px 0;}
.treasure-calendar {border-top:1px solid #b08c4438;padding-top:20px;}
.treasure-calendar-title {display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:18px;}
.treasure-calendar-title h3 {margin:0;font-size:19px;color:#fff;}
.treasure-calendar-title>span {font-size:12px;color:#fff;}
.treasure-month {display:flex;align-items:center;justify-content:space-between;margin:8px 0 22px;}
.treasure-month button {border:0;background:transparent;color:#ebc275;font-size:32px;width:35px;cursor:pointer;}
.treasure-month button:disabled {opacity:.25;cursor:default;}
.treasure-month strong {font-size:17px;color:#fff;}
.treasure-week,.treasure-days {display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;text-align:center;}
.treasure-week {font-size:12px;color:#fff;margin-bottom:12px;}
.treasure-day {display:flex;min-height:56px;flex-direction:column;justify-content:space-between;padding:8px 1px;border-radius:12px;border:1px solid #ffffff08;background:#ffffff02;font-size:13px;color:#fff;}
.treasure-day span {font-size:12px;}
.treasure-day.claimed {background:#22573d33;border-color:#67bb8333;}
.treasure-day.missed span {color:#e3a28e;}
.treasure-day.today {border:1px solid #e4bd6a;background:#8e6b2523;}
.treasure-day.future {background:transparent;border-color:transparent;}
.read-language {display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;margin:16px 0;border:1px solid #b18a443b;background:var(--card,#161616);border-radius:16px;color:var(--text,#fff);font-size:14px;font-weight:700;}
.read-language>div {display:flex;gap:5px;}
.read-language button {border:1px solid #92724270;background:transparent;color:var(--text,#fff);padding:9px 12px;min-height:38px;border-radius:11px;cursor:pointer;}
.read-language button.active {background:#e7ba62;color:#171108;border-color:#e7ba62;font-weight:800;}
.parity-description {margin:20px 0 30px;}
.parity-description>p {font-size:16px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--text,#eae7e0);display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden;margin:0 0 10px;}
.parity-description.expanded>p {display:block;-webkit-line-clamp:unset;max-height:none;overflow:visible;}
.description-actions {display:flex;justify-content:space-between;gap:16px;align-items:center;}
.description-actions button,.translation-status button {border:0;border-radius:8px;background:transparent;color:#eac26d;padding:8px 0;font-size:14px;font-weight:750;cursor:pointer;}
.translation-status {padding:14px 16px;border:1px solid #d0a85d36;border-radius:12px;margin:12px 0;color:var(--text,#fff);font-size:14px;line-height:1.5;}
.translation-status.error {border-color:#b4795959;}
.translation-status>div {display:flex;gap:24px;}
.translation-credit {display:block;color:var(--muted,#bbb6a9);font-size:11px;margin-top:12px;}
.speed-modal {max-width:380px;background:var(--surface,#151515);}
.speed-choices {display:grid;gap:7px;margin-top:18px;}
.speed-choices button {display:flex;align-items:center;gap:14px;padding:13px 16px;border:1px solid #b18a4433;border-radius:12px;background:transparent;color:var(--text,#fff);font-size:17px;text-align:left;cursor:pointer;}
.speed-choices button.active {background:#e7ba6220;border-color:#c59c50;color:#efc877;}
.speed-choices small {font-size:12px;opacity:.7;}.speed-choices b {margin-left:auto;}
.story-share-modal {width:min(100%,390px);text-align:center;}
.story-share-modal .modal-head {text-align:left;}.story-share-modal h3 {margin:0;}
.story-share-cover {display:block;width:150px;height:150px;object-fit:cover;border-radius:18px;margin:20px auto 15px;}
.story-share-modal>p {font-size:14px;line-height:1.5;overflow-wrap:anywhere;}
.story-share-modal .primary-btn,.story-share-modal .secondary-btn {width:100%;margin-top:10px;justify-content:center;}
.story-share-modal .share-link-label {display:block;text-align:left;font-size:11px;color:var(--muted);margin:18px 0 10px;}
.share-link-label input {display:block;width:100%;margin-top:6px;border:1px solid #b28c4440;background:var(--surface);color:var(--text);border-radius:9px;padding:10px;font-size:12px;box-sizing:border-box;}
#app .player-title {white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;display:block!important;max-width:100%;-webkit-line-clamp:1!important;font-size:clamp(20px,4.5vw,30px)!important;}
.app-episode .ep-sub {display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;}
#app .app-episode .ep-lock {display:inline-flex!important;position:static!important;align-items:center;gap:4px;font-size:10px!important;margin:0!important;padding:5px 7px!important;white-space:nowrap;}
.app-episode .ep-lock .svg {width:12px;height:12px;}
#app .app-player-options {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;}
.premium-inbox {padding:0!important;border:1px solid #7c6036!important;background:linear-gradient(160deg,#211b12,#0c0c0c 65%)!important;border-radius:25px!important;width:min(100%,600px)!important;max-height:calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom))!important;overflow:hidden!important;}
.notification-backdrop,.premium-inbox {animation:none!important;}
.notification-backdrop {padding-top:max(16px,env(safe-area-inset-top))!important;padding-bottom:max(16px,env(safe-area-inset-bottom))!important;}
.premium-inbox .notification-modal-head {position:sticky;top:0;z-index:2;padding:23px 20px 16px;background:#1b170f;border-bottom:1px solid #92724230;align-items:center;}
.inbox-kicker {color:#d4b276;font-size:10px;font-weight:750;letter-spacing:2.5px;}
.premium-inbox h3 {font-size:23px;color:#fff;margin:7px 0 0;}
.premium-inbox h3 small {font-size:12px;padding:4px 7px;margin-left:6px;background:#e5b96622;color:#e7bf70;border-radius:9px;}
.premium-inbox .icon-btn {color:#fff;}
.premium-inbox .notification-list {padding:8px 16px 20px;overflow:auto;max-height:calc(100dvh - 160px);overscroll-behavior:contain;}
.inbox-group {font-size:11px;font-weight:750;text-transform:uppercase;letter-spacing:1.5px;color:#c3b7a2;margin:17px 4px 10px;}
.inbox-card {display:flex;align-items:flex-start;background:#ffffff05;border:1px solid #b28b4430;border-radius:16px;margin-bottom:10px;padding:12px;gap:8px;}
.inbox-open {border:0;padding:0;background:transparent;color:#fff;display:flex;align-items:flex-start;text-align:left;gap:12px;flex:1;min-width:0;cursor:pointer;}
.inbox-cover {display:grid;place-items:center;flex:0 0 48px;height:48px;background:#b28c4420;border:1px solid #b28c4438;border-radius:13px;color:#e7bd6c;overflow:hidden;}
.inbox-cover img {width:100%;height:100%;object-fit:cover;}
.inbox-copy {min-width:0;overflow-wrap:anywhere;}
.inbox-copy strong {font-size:15px;line-height:1.4;display:block;}
.inbox-copy p {color:#cbc6bd;font-size:13px;line-height:1.55;margin:7px 0;}
.inbox-copy time {font-size:10px;color:#d3b87f;}
.inbox-dismiss {display:grid;place-items:center;background:transparent;border:0;border-radius:8px;padding:4px;color:#b6aa95;min-width:28px;min-height:28px;cursor:pointer;}
.inbox-dismiss .svg {width:17px;height:17px;}
.inbox-dismiss:disabled {opacity:.35;}
#app .premium-inbox .notification-empty {color:#fff;padding:45px 12px;}
.custom-discovery .section-title {margin:0;font-size:inherit;}
.apk-launch-logo {border-radius:22%!important;}
#luxury-bg,#luxury-bg:before,#luxury-bg:after {animation:none!important;}
.player-cover,.player-cover:before,.player-cover:after,.main-play {animation:none!important;}
/* Navigation has one short Web Animation; remove older layered CSS reveals. */
#app .content,#app .content>.mobile-page,#app .content>.player-page,#app .content>.settings-page,#app .content>.wallet-page,#app .content>.view-all-page,#app .content>.novel-reader,
#app .content .hero-strip,#app .content .section,#app .content .description,#app .content .novel-about,#app .content .view-all-grid>*,#app .content .app-chapter-list>.novel-chapter,
#app .content .android-search-list,#app .content .library-saved-list,#app .content .app-hero-card.active img {animation:none!important;}
@media(max-width:600px){
 #app .topbar.app-exact-header.balanced-header {grid-template-columns:minmax(0,1fr) 94px minmax(0,1fr)!important;padding:10px 8px!important;gap:2px!important;}
 #app .topbar.balanced-header .wordmark {font-size:21px!important;letter-spacing:.3px!important;}
 #app .topbar.balanced-header .top-left,#app .topbar.balanced-header .top-right {gap:3px!important;}
 #app .topbar.balanced-header .header-install-btn,#app .topbar.balanced-header .lang-pill,#app .topbar.balanced-header .header-settings,#app .topbar.balanced-header .header-notification-btn,#app .topbar.balanced-header .treasure-header-btn {width:29px!important;min-width:29px!important;height:35px!important;flex:0 0 29px!important;padding:2px!important;border-radius:10px!important;}
 #app .topbar.balanced-header .header-install-btn span,#app .topbar.balanced-header .lang-pill>.svg {display:none!important;}
 #app .topbar.balanced-header .coin-pill {height:35px!important;padding:0 5px!important;gap:3px!important;font-size:11px!important;max-width:74px!important;}
 #app .topbar.balanced-header .coin-pill img {width:15px!important;height:15px!important;}
 #app .topbar.balanced-header .treasure-art {width:26px!important;height:28px!important;}
 #app .topbar.balanced-header .header-action-icon .svg,#app .topbar.balanced-header .header-install-btn .svg {width:19px!important;height:19px!important;}
 #app .topbar.balanced-header .lang-pill {font-size:10px!important;}
 .read-language {margin:14px 0;}
 .route-novel-reader .read-language {margin:12px 16px;}
 .treasure-modal {padding:18px 18px 24px;border-radius:25px;}
 .treasure-modal h2 {font-size:26px;}
}
@media(max-width:350px){
 #app .topbar.app-exact-header.balanced-header {grid-template-columns:minmax(0,1fr) 85px minmax(0,1fr)!important;padding:10px 5px!important;}
 #app .topbar.balanced-header .wordmark {font-size:19px!important;}
 #app .topbar.balanced-header .header-install-btn,#app .topbar.balanced-header .lang-pill,#app .topbar.balanced-header .header-settings,#app .topbar.balanced-header .header-notification-btn,#app .topbar.balanced-header .treasure-header-btn {width:25px!important;min-width:25px!important;flex-basis:25px!important;}
 .treasure-calendar-title h3 {font-size:16px;}.treasure-day {min-height:50px;font-size:12px;}.treasure-days {gap:3px;}
 .read-language {font-size:12px;padding:12px;}.read-language button {padding:8px 10px;}
}
@media(prefers-reduced-motion:reduce){.treasure-lid {transition:none;}.treasure-modal {animation:none;}#app * {scroll-behavior:auto!important;}}
/* Reserve actual text width even when a desktop scrollbar narrows the viewport. */
@media(max-width:600px){
 #app .topbar.app-exact-header.balanced-header {grid-template-columns:minmax(0,1fr) 105px minmax(0,1fr)!important;}
 #app .topbar.balanced-header .top-left,#app .topbar.balanced-header .top-right {gap:2px!important;}
 #app .topbar.balanced-header .header-install-btn,#app .topbar.balanced-header .lang-pill,#app .topbar.balanced-header .header-settings,#app .topbar.balanced-header .header-notification-btn,#app .topbar.balanced-header .treasure-header-btn {width:26px!important;min-width:26px!important;flex-basis:26px!important;}
}
@media(max-width:350px){
 #app .topbar.app-exact-header.balanced-header {grid-template-columns:minmax(0,1fr) 94px minmax(0,1fr)!important;}
 #app .topbar.balanced-header .header-install-btn,#app .topbar.balanced-header .lang-pill,#app .topbar.balanced-header .header-settings,#app .topbar.balanced-header .header-notification-btn,#app .topbar.balanced-header .treasure-header-btn {width:23px!important;min-width:23px!important;flex-basis:23px!important;}
}
