/* Uma identidade compartilhada para os caminhos do FunFiction. */
:root { --magic-salmon:#c86d7c; --magic-violet:#535eab; --magic-ink:#344477; --magic-gradient:linear-gradient(115deg,#505da8 0%,#815fa9 43%,#a65a77 78%,#91547e 100%); }
body { background-color:#f9f6fd; }
body :is(.app-main,.journey-main,.writing-main) { background-image:radial-gradient(ellipse at 5% 16%,#e5defa 0,transparent 31%),radial-gradient(ellipse at 95% 65%,#ffe7e1 0,transparent 32%),linear-gradient(145deg,#f8f6ff,#fff8f5) !important; }
body :is(.profile-main,.rpg-main,.community-page-main,.access-main) { background-image:radial-gradient(ellipse at 5% 16%,#e8e1fa 0,transparent 34%),radial-gradient(ellipse at 95% 72%,#ffe7e2 0,transparent 35%),linear-gradient(145deg,#f9f7ff,#fff9f7); }
body .universe-main { background-color:#faf7ff; }
.site-stardust { position:fixed; inset:80px 0 0; z-index:3; pointer-events:none; overflow:hidden; color:#ad83b8; }
.site-stardust span { position:absolute; display:block; opacity:.20; animation:fun-stardust 6s ease-in-out infinite alternate; }
.site-stardust span:nth-child(1) { top:9%; left:3%; font-size:24px; }.site-stardust span:nth-child(2) { top:27%; right:4%; font-size:14px; color:#df988c; animation-delay:-2s; }.site-stardust span:nth-child(3) { top:68%; left:5%; font-size:19px; color:#dc9db0; animation-delay:-4s; }.site-stardust span:nth-child(4) { top:83%; right:7%; font-size:23px; animation-delay:-1s; }.site-stardust span:nth-child(5) { top:47%; left:1%; font-size:12px; color:#e3a293; animation-delay:-3s; }.site-stardust span:nth-child(6) { top:54%; right:2%; font-size:45px; animation-delay:-5s; }
@keyframes fun-stardust { from { opacity:.10; transform:translateY(0) rotate(-8deg) scale(.9); } to { opacity:.27; transform:translateY(-12px) rotate(8deg) scale(1.08); } }
/* Botões de ação: os filtros, cartões, ações destrutivas e fechar mantêm sua função visual. */
body button:not(.book-page-control,.wandering-mascot,.site-menu-button,.icon-button,.filter-button,.chapter-card,.character-add,.dialog-close,.book-guide-close,.site-drawer-close,.room-refresh,.reader-close,.inline-link,.account-logout,.gallery-album,.gallery-photo-open,.gallery-delete-album,.gallery-remove-photo,[data-close],[data-delete],[data-remove-story],[data-category-filter],[data-mode],#remove-cover,.page-controls button),
body :is(a.app-button,a.rpg-magic-button,a.hero-cta,a.all-stories,a.coral-button,a.community-access,a.magic-cta,a.journey-primary,a.hero-start,a.u-primary,a.profile-button,a.room-add,a.red-primary,a.account-submit) {
  border-color:transparent !important; background-image:var(--magic-gradient) !important; background-color:#765fa6 !important; background-size:240% 240% !important; color:#fff !important; box-shadow:0 7px 18px #795e9b35; text-decoration:none; animation:fun-button-glow 9s ease-in-out infinite; transition:transform .2s ease,box-shadow .2s ease,filter .2s ease;
}
body button:not(.book-page-control,.wandering-mascot,.site-menu-button,.icon-button,.filter-button,.chapter-card,.character-add,.dialog-close,.book-guide-close,.site-drawer-close,.room-refresh,.reader-close,.inline-link,.account-logout,.gallery-album,.gallery-photo-open,.gallery-delete-album,.gallery-remove-photo,[data-close],[data-delete],[data-remove-story],[data-category-filter],[data-mode],#remove-cover,.page-controls button):hover:not(:disabled),
body :is(a.app-button,a.rpg-magic-button,a.hero-cta,a.all-stories,a.coral-button,a.community-access,a.magic-cta,a.journey-primary,a.hero-start,a.u-primary,a.profile-button,a.room-add,a.red-primary,a.account-submit):hover { transform:translateY(-2px); box-shadow:0 10px 23px #795e9b55; filter:brightness(1.06); }
body button:disabled { opacity:.55; cursor:not-allowed; animation:none !important; }
@keyframes fun-button-glow { 0%,100% { background-position:0% 50%; } 50% { background-position:100% 50%; } }
/* Filtros e abas mantêm uma diferença clara entre selecionado e não selecionado. */
body .category-chips button[data-category-filter], body .account-modes button[data-mode] { border:1px solid #dfd5ed; background:linear-gradient(120deg,#f4f0fb,#fff1ef); color:#65527f; box-shadow:none; }
body .category-chips button[data-category-filter][aria-pressed="true"], body .account-modes button[data-mode][aria-pressed="true"], body .account-modes button[data-mode][aria-current="page"], body .account-modes button[data-mode][aria-selected="true"] { border-color:transparent; background:var(--magic-gradient); color:#fff; }
/* Ação de criar: um selo de luz com contorno e brilho. */
body .site-header .site-brand-stack .site-write { position:absolute; display:grid; place-items:center; width:48px; height:48px; margin-left:-24px; border:3px solid #fff; border-radius:16px; background:var(--magic-gradient); background-size:220% 220%; color:#fff; box-shadow:0 7px 18px #785e9f55,0 0 0 1px #d6bbdc; text-decoration:none; font:700 31px/1 'Nunito Sans',sans-serif; animation:fun-button-glow 8s ease-in-out infinite; transition:transform .2s ease,box-shadow .2s ease; }
body .site-header .site-write span { transform:none; line-height:1; }
body .site-header .site-write::after { content:'✦'; position:absolute; top:-6px; right:-5px; color:#f2a398; font-size:12px; line-height:1; text-shadow:0 1px 3px #fff; }
body .site-header .site-write:hover { transform:translateY(-3px) rotate(-5deg); box-shadow:0 10px 25px #785e9f70,0 0 0 1px #d6bbdc; }
body .site-header .site-write:focus-visible,body :is(button,a):focus-visible { outline:3px solid #df8e8d; outline-offset:3px; }
@media(max-width:760px) { .site-stardust span { opacity:.12; }.site-header .site-primary-nav a { padding-inline:7px; } body .site-header .site-brand-stack .site-write { width:43px; height:43px; margin-left:-21.5px; border-radius:14px; font-size:28px; } }
@media(prefers-reduced-motion:reduce) { .site-stardust span,body .site-header .site-brand-stack .site-write,body button,body :is(a.app-button,a.rpg-magic-button,a.hero-cta,a.all-stories,a.coral-button,a.community-access,a.magic-cta,a.journey-primary,a.hero-start,a.u-primary,a.profile-button,a.room-add,a.red-primary,a.account-submit) { animation:none !important; transition:none !important; } }
