/* Dados & Dólar: estilos só da página do Grimório (21/nov/2026).
   Ritmo de fundos: topo escuro, aula claro, sumário escuro, prompts claro,
   sem call escuro, guilda claro, quiz escuro, comparação claro, taverna e fecho escuros. */

.pg-grimorio { --canto-ouro: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Cpath d='M2 26V2h24' fill='none' stroke='%23DCAE34' stroke-width='1.6'/%3E%3Cpath d='M2 7l5-5' stroke='%23DCAE34' stroke-width='1.2'/%3E%3C/svg%3E");
  --grade-escura: linear-gradient(rgba(233, 234, 235, .04) 1px, transparent 1px) 0 0 / 28px 28px, linear-gradient(90deg, rgba(233, 234, 235, .04) 1px, transparent 1px) 0 0 / 28px 28px; }

/* ---------- 2. Cada aula entrega uma coisa pronta ---------- */
.aula-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4.5vw, 68px); align-items: center; }
.aula-cab h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); }
.aula-cab > p { margin-top: 16px; color: var(--off-74); font-size: 1.125rem; max-width: 46ch; }
.aula-regras { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.aula-regras li { position: relative; padding-left: 26px; color: var(--off-74); font-size: 1rem; }
.aula-regras li::before { content: ""; position: absolute; left: 3px; top: .5em; width: 9px; height: 9px; transform: rotate(45deg); background: #967BC5; box-shadow: 0 0 10px rgba(150, 123, 197, .7); }
.aula-regras b { color: var(--off); }

.aula-player { position: relative; margin: 0; border-radius: 18px; overflow: hidden; background: #1F2329; border: 1px solid rgba(138, 105, 20, .4); box-shadow: 0 44px 80px -40px rgba(31, 35, 41, .7), 0 0 0 6px rgba(255, 255, 255, .4); }
.aula-player::before { content: ""; position: absolute; inset: 8px; z-index: 3; pointer-events: none; opacity: .7; background: var(--canto-ouro) top left / 20px no-repeat; }
.ap-topo { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid rgba(233, 234, 235, .08); background: #262B32; }
.ap-num { flex: none; padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(150, 123, 197, .6); background: rgba(150, 123, 197, .16); font: 700 .75rem var(--rpg); letter-spacing: .08em; color: #D9C8F7; }
.ap-titulo { min-width: 0; font-weight: 700; color: #E9EAEB; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-tela { position: relative; aspect-ratio: 16 / 8.2; display: grid; place-content: center; text-align: center; padding: 24px; overflow: hidden;
  background: radial-gradient(60% 70% at 50% 45%, rgba(150, 123, 197, .22), transparent 72%), var(--grade-escura), #191C21; }
.ap-runa { position: absolute; left: 50%; top: 45%; width: min(330px, 70%); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; border: 1px dashed rgba(150, 123, 197, .35); box-shadow: inset 0 0 0 18px rgba(150, 123, 197, .04); animation: ap-gira 30s linear infinite; }
.ap-runa::after { content: ""; position: absolute; inset: 14%; border-radius: 50%; border: 1px solid rgba(220, 174, 52, .22); }
@keyframes ap-gira { to { rotate: 360deg; } }
.ap-bloco { position: relative; font: 800 clamp(1.75rem, 3.4vw, 2.75rem)/1 var(--display); letter-spacing: -.03em; color: #E9EAEB; }
.ap-linha { position: relative; margin-top: 10px; color: rgba(233, 234, 235, .7); font-size: 1.0625rem; }
.ap-drop { position: absolute; left: 50%; bottom: 18px; translate: -50% 0; display: flex; align-items: center; gap: 12px; padding: 10px 18px 10px 10px; border-radius: 14px; text-align: left;
  background: rgba(23, 25, 29, .96); border: 1px solid #967BC5; box-shadow: 0 0 34px -4px rgba(150, 123, 197, .75); opacity: 0; visibility: hidden; white-space: nowrap; }
.ap-drop small { display: block; font: 700 .6875rem var(--rpg); letter-spacing: .14em; color: #A994D2; }
.ap-drop b { display: block; font: 800 1.0625rem var(--display); color: #FFFFFF; }
.ap-drop-ic, .slot-ic { position: relative; flex: none; width: 40px; height: 40px; border-radius: 10px; background: radial-gradient(circle at 50% 40%, rgba(217, 200, 247, .5), rgba(94, 69, 150, .9)); box-shadow: inset 0 0 0 1px rgba(217, 200, 247, .6); }
.ap-drop-ic::after, .slot-ic::after { content: ""; position: absolute; inset: 30%; transform: rotate(45deg); background: #F4EEFF; box-shadow: 0 0 10px #D9C8F7; }
.ap-segmentos { list-style: none; margin: 0; padding: 14px 18px 16px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; background: #262B32; }
.ap-segmentos li { display: grid; gap: 6px; }
.ap-segmentos i { position: relative; height: 5px; border-radius: 999px; background: rgba(233, 234, 235, .12); overflow: hidden; }
.ap-segmentos i::after { content: ""; position: absolute; inset: 0; background: #967BC5; transform: scaleX(var(--f, 0)); transform-origin: left; box-shadow: 0 0 10px #967BC5; }
.ap-segmentos span { font-size: .6875rem; font-weight: 700; color: rgba(233, 234, 235, .45); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .3s; }
.ap-segmentos li.atual span { color: #D9C8F7; }

.aula-inv { margin-top: 18px; }
.aula-inv-rot { font: 700 .75rem var(--rpg); letter-spacing: .14em; color: #5E4596; margin-bottom: 10px; }
.aula-slots { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.aula-slots li { display: grid; justify-items: center; gap: 8px; padding: 14px 10px; border-radius: 14px; border: 1px dashed rgba(31, 35, 41, .22); background: rgba(255, 255, 255, .35); text-align: center; transition: border-color .4s, background .4s, box-shadow .4s; }
.aula-slots .slot-ic { opacity: .25; filter: grayscale(1); transition: opacity .4s, filter .4s; }
.slot-nome { font-size: .8125rem; font-weight: 700; color: rgba(31, 35, 41, .45); line-height: 1.25; transition: color .4s; }
.aula-slots li.obtido { border: 1px solid #967BC5; background: rgba(150, 123, 197, .12); box-shadow: 0 14px 28px -18px rgba(94, 69, 150, .8); }
.aula-slots li.obtido .slot-ic { opacity: 1; filter: none; }
.aula-slots li.obtido .slot-nome { color: #1F2329; }

/* ---------- 3. Sumário, à luz de vela ---------- */
.sum-sec { position: relative; overflow: hidden; background: radial-gradient(55% 45% at 50% 55%, rgba(220, 174, 52, .14), transparent 72%), radial-gradient(40% 40% at 50% 0%, rgba(150, 123, 197, .12), transparent 70%), #16181C; }
.sum-sec .sum-caps button { background: rgba(46, 52, 60, .85); border-color: rgba(150, 123, 197, .35); color: #E9EAEB; }
.sum-sec .sum-caps button span { color: #A994D2; }
.sum-sec .sum-caps button[aria-selected="true"] { background: #5E4596; border-color: #967BC5; color: #FFFFFF; box-shadow: 0 0 24px -6px rgba(150, 123, 197, .7); }
.sum-sec .sum-caps button[aria-selected="true"] span { color: #D9C8F7; }
.sum-sec .sum-livro.tem-img { filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .7)) drop-shadow(0 0 60px rgba(220, 174, 52, .12)); }
.sum-mods button { position: relative; overflow: hidden; }
.m-tempo { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: #5E4596; transform: scaleX(var(--tempo, 0)); transform-origin: left; pointer-events: none; }

/* ---------- 4. Prompts do portal, no visual do portal novo ---------- */
.prompts-sec .feit-lista button { background: #FBF9F3; border-color: rgba(31, 35, 41, .12); color: #1F2329; }
.prompts-sec .feit-lista button small { color: rgba(31, 35, 41, .6); }
.prompts-sec .feit-lista button .f-ic { background: rgba(150, 123, 197, .16); color: #5E4596; }
.prompts-sec .feit-lista button[aria-pressed="true"] { border-color: #967BC5; background: rgba(150, 123, 197, .12); box-shadow: 0 14px 28px -18px rgba(94, 69, 150, .7); }
.prompts-sec .feit-lista button::after { background: #5E4596; }
.prompts-sec .feit-tela { background: #EAE7DD; border: 1px solid rgba(138, 105, 20, .35); box-shadow: 0 40px 70px -36px rgba(31, 35, 41, .55), 0 0 0 6px rgba(255, 255, 255, .35); }
.prompts-sec .feit-corpo { background: #EAE7DD; }
.prompts-sec .feit-campo span { color: rgba(31, 35, 41, .62); }
.prompts-sec .feit-campo p { background: #FBF9F3; border-color: rgba(31, 35, 41, .16); color: #1F2329; }
.prompts-sec .feit-pronto { background: rgba(176, 232, 52, .22); color: #3E5A08; }
.prompts-sec .feit-prox { color: #5E4596; border-color: rgba(94, 69, 150, .5); }
.prompts-sec .feit-prox:hover { background: rgba(150, 123, 197, .14); }

/* ---------- 5. Sem call: no escuro, as linhas se acendem ---------- */
.escuro-sec { position: relative; overflow: hidden; isolation: isolate; background: #0E1013; }
.escuro-sec::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 30%), rgba(150, 123, 197, .13), transparent 62%); transition: background .2s; }
.escuro-sec .autover-cab span:first-child { color: rgba(220, 174, 52, .75); }
.escuro-sec .autover-cab span:last-child { color: #A994D2; }
.escuro-sec .autover-linha, .escuro-sec .autover-cab { grid-template-columns: 1fr 72px 1fr; }
.escuro-sec .autover-1a1 { background: rgba(220, 174, 52, .05); border-color: rgba(220, 174, 52, .2); color: rgba(233, 234, 235, .55); }
.escuro-sec .autover-curso { background: rgba(46, 52, 60, .35); border-color: rgba(233, 234, 235, .07); color: rgba(233, 234, 235, .3); transition: background .8s var(--ease), border-color .8s var(--ease), color .8s var(--ease), box-shadow .8s var(--ease); }
.escuro-sec .autover-curso b { color: rgba(233, 234, 235, .4); transition: color .8s var(--ease); }
.escuro-sec .acesa .autover-curso { background: rgba(150, 123, 197, .16); border-color: #967BC5; color: #E9EAEB; box-shadow: 0 0 44px -12px rgba(150, 123, 197, .8); }
.escuro-sec .acesa .autover-curso b { color: #D9C8F7; }
.autover-chama { position: relative; display: grid; place-items: center; height: 100%; min-height: 44px; }
.autover-chama::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: linear-gradient(90deg, rgba(220, 174, 52, .35), rgba(150, 123, 197, .35)); opacity: .4; transition: opacity .8s; }
.autover-chama i { position: relative; width: 16px; height: 24px; border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%; background: radial-gradient(circle at 50% 70%, #FFFFFF 0%, #D9C8F7 32%, #967BC5 70%); opacity: .12; transform: scale(.55); transform-origin: 50% 100%; transition: opacity .6s var(--ease), transform .6s var(--ease), box-shadow .6s var(--ease); }
.autover-chama i::after { content: ""; position: absolute; left: 50%; top: 100%; width: 10px; height: 12px; translate: -50% 2px; border-radius: 3px; background: rgba(233, 234, 235, .22); }
.acesa .autover-chama::before { opacity: 1; }
.acesa .autover-chama i { opacity: 1; transform: scale(1); box-shadow: 0 0 18px 6px rgba(150, 123, 197, .7), 0 0 40px 12px rgba(150, 123, 197, .25); animation: chama 1.8s ease-in-out infinite; }
@keyframes chama { 0%, 100% { transform: scale(1) rotate(-2deg); } 35% { transform: scale(1.06, .94) rotate(3deg); } 70% { transform: scale(.95, 1.08) rotate(-1deg); } }

/* ---------- 6. A guilda, numa parede de pergaminho ---------- */
.guilda-sec .guilda-arte { position: relative; }
.guilda-sec .guilda-arte.tem-img { filter: drop-shadow(0 30px 36px rgba(31, 35, 41, .35)); transform-origin: 50% 2%; animation: balanca 7s ease-in-out infinite; }
@keyframes balanca { 0%, 100% { rotate: -1.2deg; } 50% { rotate: 1.2deg; } }
.guilda-sec .guilda-canais li { background: #FBF9F3; border-color: rgba(31, 35, 41, .1); }
.guilda-sec .guilda-canais path { stroke: #5E4596; }
.guilda-sec .guilda-canais svg { background: rgba(150, 123, 197, .16); }
/* a lanterna do mural pisca e ilumina a parede */
.guilda-sec .guilda-arte.tem-img::after { content: ""; position: absolute; left: 62%; top: 22%; width: 52%; aspect-ratio: 1; border-radius: 50%; pointer-events: none; background: radial-gradient(closest-side, rgba(255, 196, 92, .45), rgba(255, 170, 60, .12) 55%, transparent 72%); mix-blend-mode: screen; animation: lanterna 2.6s ease-in-out infinite; }
@keyframes lanterna { 0%, 100% { opacity: .75; scale: 1; } 30% { opacity: 1; scale: 1.06; } 55% { opacity: .65; scale: .97; } 80% { opacity: .95; scale: 1.03; } }
.guilda-sec { background: radial-gradient(35% 45% at 28% 45%, rgba(255, 190, 90, .16), transparent 70%), radial-gradient(40% 50% at 80% 70%, rgba(150, 123, 197, .12), transparent 70%), #EAE7DD !important; }
.guilda-aviso { position: absolute; right: -2%; bottom: 8%; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: 14px; background: #1F2329; border: 1px solid #967BC5; box-shadow: 0 18px 36px -16px rgba(31, 35, 41, .8), 0 0 24px -6px rgba(150, 123, 197, .6); rotate: 1deg; }
.guilda-aviso small { display: block; font: 700 .625rem var(--rpg); letter-spacing: .14em; color: #A994D2; }
.guilda-aviso b { display: block; font: 800 .9375rem var(--display); color: #FFFFFF; white-space: nowrap; }
.ga-ic { position: relative; flex: none; width: 32px; height: 32px; border-radius: 9px; background: radial-gradient(circle at 50% 40%, rgba(217, 200, 247, .5), rgba(94, 69, 150, .9)); }
.ga-ic::after { content: ""; position: absolute; inset: 31%; transform: rotate(45deg); background: #F4EEFF; }
.guilda-arte:not(.tem-img) .guilda-aviso { display: none; }

/* ---------- 10. Fecho: faíscas lavanda subindo ---------- */
.pg-grimorio .p-fecho { position: relative; overflow: hidden; isolation: isolate; }
.fecho-fx { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.fecho-fx i { position: absolute; bottom: 0; width: 5px; height: 5px; border-radius: 50%; background: #E4D8FA; box-shadow: 0 0 10px 3px rgba(150, 123, 197, .85); opacity: 0; }

/* ---------- Celular ---------- */
@media (max-width: 960px) {
  .aula-in { grid-template-columns: 1fr; }
  .escuro-sec .autover-linha { grid-template-columns: 1fr; }
  .autover-chama { min-height: 40px; }
  .autover-chama::before { left: 50%; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .guilda-aviso { right: 0; bottom: 4%; }
}
@media (max-width: 560px) {
  .ap-segmentos span { display: none; }
  .ap-tela { aspect-ratio: auto; min-height: 220px; }
  .ap-drop { bottom: 12px; padding-right: 14px; }
  .ap-titulo { white-space: normal; font-size: .875rem; }
  .aula-slots { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .ap-runa, .guilda-sec .guilda-arte.tem-img, .guilda-sec .guilda-arte.tem-img::after, .acesa .autover-chama i { animation: none; }
  .fecho-fx { display: none; }
}

/* ---------- 8. Grimório ou Forja: a tabela escrita no livro aberto ---------- */
@media (min-width: 761px) {
  .compara-papel.tem-img { aspect-ratio: 1576 / 981; padding: 6.5% 8.2% 15%; }
  .compara-papel.tem-img .compara { grid-template-columns: 50% 25% 25%; height: 100%; align-content: start; }
  .compara-papel.tem-img .compara > div { padding: 11px 12px; border-bottom-color: rgba(90, 60, 20, .2); background: transparent; box-shadow: none; font-size: .9375rem; }
  .compara-papel.tem-img .compara .c-item, .compara-papel.tem-img .compara > .c-cab:first-child { padding-right: 13%; }
  .compara-papel.tem-img .compara .c-g { color: #3E2C70; }
  .compara-papel.tem-img .compara .c-f { color: #5C4308; }
  .compara-papel.tem-img .compara .c-g, .compara-papel.tem-img .compara .c-f, .compara-papel.tem-img .compara .c-g.destaque { background: transparent !important; box-shadow: none !important; }
  .compara-papel.tem-img .compara > div { font-size: .9375rem; padding-top: 10px; padding-bottom: 10px; }
}
@media (max-width: 760px) { .compara-papel.tem-img { background: none; padding: 0; filter: none; } .compara-papel.tem-img .compara { background: #FBF9F3; border: 1px solid rgba(138, 105, 20, .35); border-radius: 20px; } }

/* Faíscas lavanda saindo do livro da comparação, como o livro da home */
.compara-papel .compara { position: relative; z-index: 1; }
.compara-faiscas { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: visible; }
.compara-faiscas i { position: absolute; left: 50%; top: 91%; width: 5px; height: 5px; border-radius: 50%; background: #B597F2; box-shadow: 0 0 9px 2px rgba(110, 78, 190, .75); opacity: 0; }
/* o cristal da lombada brilha, vai e volta, como o livro da home */
.compara-papel.tem-img::after { content: ""; position: absolute; z-index: 0; left: 50%; top: 91%; width: 9%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: radial-gradient(closest-side, rgba(190, 160, 245, .85), rgba(150, 123, 197, 0)); mix-blend-mode: screen; pointer-events: none; animation: cristal 2.8s ease-in-out infinite; }
@keyframes cristal { 50% { scale: 1.35; opacity: .55; } }
@media (max-width: 760px), (prefers-reduced-motion: reduce) { .compara-faiscas, .compara-papel.tem-img::after { display: none; } }

/* Prompts do portal: blocos e tela centralizados; "Próximo prompt" embaixo da lista */
.prompts-sec .feiticos { max-width: 1040px; margin: 0 auto; grid-template-columns: minmax(0, 360px) minmax(0, 600px); justify-content: center; align-items: center; }
.feit-esq { display: grid; gap: 14px; }
.feit-esq .feit-acoes { margin-top: 0; justify-content: flex-start; }
.feit-esq .feit-prox { width: 100%; }
@media (max-width: 960px) { .prompts-sec .feiticos { grid-template-columns: minmax(0, 1fr); } }
