/* =====================================================================
   Templo de Éris (discordia.js): bosque tranquilo ao amanhecer, passarinhos
   e o leitor do Principia Discordia numa janela do Windows Vista.
   Tudo devagar. As imagens do cenário só carregam com .dsc-pronta
   (sileloPerto). Fora da tela, perf.css pausa as animações (.perf-fora).
   ===================================================================== */
.discordia {
  --cena-h: clamp(380px, 40vw, 470px);
  --dsc-verde: #2f7a4f;
  --dsc-texto: #24463a;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 0 0 34px;
  color: var(--dsc-texto);
  font-family: 'Segoe UI', Tahoma, 'Open Sans', sans-serif;
  background:
    radial-gradient(ellipse 60% 40% at 15% 70%, rgba(255, 236, 205, .55), transparent 70%),
    radial-gradient(ellipse 50% 35% at 90% 85%, rgba(255, 214, 232, .5), transparent 70%),
    linear-gradient(#b9df94 0, #cfeaae calc(var(--cena-h) + 40px), #e4f3cf 60%, #f1f8e4 100%);
}

/* ---------- cenário (construído pelo discordia.js) ---------- */
.dsc-cena {
  position: absolute; z-index: -2; left: 0; right: 0; top: 0; height: var(--cena-h);
  overflow: hidden; pointer-events: none;
  background:
    radial-gradient(circle at 50% 74%, rgba(255, 250, 222, .95) 0, rgba(255, 232, 178, .65) 10%, rgba(255, 214, 160, .25) 24%, transparent 42%),
    linear-gradient(#8fcbef 0%, #bfe2f5 30%, #e8f1ec 55%, #fde3c2 72%, #fbd2a8 84%, #f6c79a 100%);
}
.dsc-cena > * { position: absolute; }
.dsc-sol { left: 50%; top: 74%; width: 300px; height: 300px; margin: -150px 0 0 -150px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 240, .95) 0, rgba(255, 244, 200, .6) 18%, rgba(255, 230, 170, 0) 60%);
  animation: dsc-respira 9s ease-in-out infinite alternate; }
@keyframes dsc-respira { from { transform: scale(.94); opacity: .85; } to { transform: scale(1.06); opacity: 1; } }
.dsc-nuvem { top: 12%; width: 220px; height: 60px; border-radius: 60px; opacity: .8;
  background: radial-gradient(ellipse 40% 60% at 30% 55%, #fff 0, rgba(255,255,255,.8) 50%, transparent 72%),
              radial-gradient(ellipse 36% 70% at 60% 45%, #fff 0, rgba(255,255,255,.85) 50%, transparent 72%),
              radial-gradient(ellipse 30% 50% at 82% 62%, #fff 0, rgba(255,255,255,.7) 50%, transparent 72%);
  animation: dsc-nuvem 140s linear infinite; }
.dsc-nuvem.n2 { top: 26%; width: 160px; height: 44px; opacity: .6; animation-duration: 190s; animation-delay: -95s; }
.dsc-nuvem.n3 { top: 6%; width: 120px; height: 34px; opacity: .5; animation-duration: 230s; animation-delay: -30s; }
@keyframes dsc-nuvem { from { left: -260px; } to { left: 100%; } }
/* colina com árvores ao longe e a grama com margaridas (Frutiger Aero Archive) */
.dsc-colina { left: -2%; right: -2%; bottom: 80px; height: 96px; background: none; opacity: .92; filter: saturate(.9) brightness(1.04); }
.dsc-pronta .dsc-colina { background: url("./assets/aero/foregrounds_85.webp") center bottom / auto 100% repeat-x; }
.dsc-campo { left: 0; right: 0; bottom: 0; height: 82px; background: linear-gradient(#9ed36f, #b9df94); }
.dsc-grama { left: 0; right: 0; bottom: -4px; height: 78px; transform-origin: 50% 100%; }
.dsc-pronta .dsc-grama { background: url("./assets/aero/foregrounds_5-900.webp") 0 100% / auto 100% repeat-x; }
.dsc-grama.g2 { bottom: 56px; height: 54px; opacity: .55; filter: blur(.6px) saturate(.9); background-position: 180px 100%; }
.dsc-campo::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 26px; background: linear-gradient(rgba(185, 223, 148, 0), #b9df94); }
/* folhas no alto dos cantos balançando */
.dsc-folhas { top: -6px; width: min(46%, 560px); aspect-ratio: 700 / 330; transform-origin: 0 0; animation: dsc-folha 11s ease-in-out infinite alternate; }
.dsc-pronta .dsc-folhas { background: url("./assets/aero/foregrounds_75.webp") 0 0 / 200% auto no-repeat; }
.dsc-folhas.esq { left: -2%; }
.dsc-folhas.dir { right: -2%; transform-origin: 100% 0; animation-duration: 13s; animation-delay: -4s; }
.dsc-pronta .dsc-folhas.dir { background-position: 100% 0; }
@keyframes dsc-folha { from { transform: rotate(-1.2deg); } to { transform: rotate(1.4deg); } }
/* árvores (recortes do Frutiger Aero Archive) balançando devagar; poleiros marcados pelo discordia.js */
.dsc-arvore { bottom: 30px; height: 88%; transform-origin: 50% 100%; animation: dsc-balanco 12s ease-in-out infinite alternate; }
.dsc-arvore.esq { left: max(-30px, calc(50% - 620px)); }
.dsc-arvore.dir { right: max(-40px, calc(50% - 640px)); height: 78%; animation-duration: 14s; animation-delay: -5s; }
.dsc-arvore > img { display: block; width: 100%; height: 100%; transform-origin: 50% 100%; animation: dsc-folhagem 7s ease-in-out infinite alternate; filter: drop-shadow(0 6px 8px rgba(40, 90, 40, .25)); }
.dsc-arvore.dir > img { animation-duration: 8.5s; animation-delay: -3s; }
.dsc-arvore .poleiro, .dsc-cena > .poleiro { position: absolute; width: 0; height: 0; }
@keyframes dsc-balanco { from { transform: rotate(-.6deg); } to { transform: rotate(.7deg); } }
@keyframes dsc-folhagem { from { transform: skewX(-1deg); } to { transform: skewX(1.1deg); } }
/* árvores menores ao longe (paralaxe) */
.dsc-fundo { left: 0; right: 0; bottom: 64px; height: 42%; transform: translateY(calc(var(--par, 0) * 18px)); pointer-events: none; }
.dsc-fundo img { position: absolute; bottom: 0; height: 72%; width: auto; filter: saturate(.8) brightness(1.06) contrast(.92); opacity: .92; }
.dsc-fundo .f1 { left: 25%; }
.dsc-fundo .f2 { right: 23%; height: 60%; }
.dsc-colina { transform: translateY(calc(var(--par, 0) * 9px)); }
.dsc-casca-olho { position: absolute; left: 46%; bottom: 6%; width: 20px; height: 18px; }
/* lago com ondinhas */
.dsc-lago { left: 50%; bottom: 24px; width: min(46%, 420px); height: auto; transform: translateX(-50%); overflow: visible; }
.dsc-lago .onda { transform-box: fill-box; transform-origin: 50% 50%; animation: dsc-onda 6s ease-out infinite; opacity: 0; }
.dsc-lago .onda:nth-of-type(2) { animation-delay: -2s; }
.dsc-lago .onda:nth-of-type(3) { animation-delay: -4s; }
@keyframes dsc-onda { 0% { transform: scale(.2); opacity: 0; } 15% { opacity: .75; } 100% { transform: scale(1.25); opacity: 0; } }
.dsc-lago .brilho { animation: dsc-cintila 5s ease-in-out infinite alternate; }
@keyframes dsc-cintila { from { opacity: .35; } to { opacity: .85; } }
/* borboletas do Frutiger Aero Archive passeando devagar */
.dsc-borboleta { width: 34px; height: 38px; top: 40%; left: 20%; opacity: 0; }
.dsc-pronta .dsc-borboleta { background: url("./assets/aero/insects_37.webp") center / contain no-repeat; animation: dsc-borb 38s ease-in-out infinite; }
.dsc-pronta .dsc-borboleta.b2 { background-image: url("./assets/aero/insects_23.webp"); width: 30px; animation-duration: 47s; animation-delay: -20s; }
@keyframes dsc-borb {
  0% { transform: translate(0, 0) rotate(-8deg) scaleX(1); opacity: 0; }
  6% { opacity: 1; }
  25% { transform: translate(18vw, -40px) rotate(6deg) scaleX(1); }
  50% { transform: translate(44vw, 10px) rotate(-5deg) scaleX(1); }
  52% { transform: translate(45vw, 6px) rotate(-5deg) scaleX(-1); }
  75% { transform: translate(24vw, -30px) rotate(4deg) scaleX(-1); }
  94% { opacity: 1; }
  100% { transform: translate(0, 0) rotate(-8deg) scaleX(-1); opacity: 0; }
}
/* pontinhos de luz subindo */
.dsc-luz { bottom: 20%; width: 5px; height: 5px; border-radius: 50%; background: #fffbe0; box-shadow: 0 0 8px 3px rgba(255, 248, 200, .8);
  opacity: 0; animation: dsc-luz var(--d, 14s) ease-in-out infinite; animation-delay: var(--atraso, 0s); }
@keyframes dsc-luz { 0% { transform: translate(0, 0); opacity: 0; } 20% { opacity: .9; } 70% { opacity: .6; } 100% { transform: translate(var(--dx, 20px), -170px); opacity: 0; } }

/* ---------- passarinhos ---------- */
.dsc-ave { position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 2; --esc: 1; }
.dsc-ave-img { position: absolute; bottom: 0; left: calc(var(--l, 60px) * var(--esc) / -2); width: calc(var(--l, 60px) * var(--esc)); max-width: none; height: auto; transform-origin: 50% 100%; }
.dsc-ave-tucano .dsc-ave-img { left: calc(var(--l, 60px) * var(--esc) * -.92); }
.dsc-ave.virada .dsc-ave-img { transform: scaleX(-1); }
.dsc-ave.canta .dsc-ave-img { animation: dsc-canta .5s ease-in-out infinite alternate; }
@keyframes dsc-canta { from { rotate: 0deg; } to { rotate: -7deg; } }
.dsc-ave.pula { animation: dsc-pula .5s ease-out; }
@keyframes dsc-pula { 0%, 100% { translate: 0 0; } 40% { translate: 0 -9px; } }
.dsc-ave.bica .dsc-ave-img { animation: dsc-bica .9s ease-in-out; }
@keyframes dsc-bica { 0%, 100% { rotate: 0deg; } 20%, 60% { rotate: -10deg; } 40%, 80% { rotate: 4deg; } }
.dsc-ave.voando .dsc-ave-img { animation: dsc-plana .6s ease-in-out infinite alternate; }
@keyframes dsc-plana { from { translate: 0 0; } to { translate: 0 -4px; } }
.dsc-pomba-ceu { position: absolute; left: 0; width: 64px; max-width: none; height: auto; opacity: .95; z-index: 1; pointer-events: none; }
.dsc-nota { position: absolute; z-index: 3; width: 14px; height: 18px; pointer-events: none; color: #2f6e57;
  animation: dsc-nota 1.8s ease-out forwards; }
.dsc-nota svg { display: block; width: 100%; height: 100%; }
@keyframes dsc-nota { 0% { transform: translate(0, 0) scale(.5) rotate(-10deg); opacity: 0; } 15% { opacity: .95; } 100% { transform: translate(var(--nx, 10px), -46px) scale(1) rotate(12deg); opacity: 0; } }

/* ---------- pétalas pela seção inteira ---------- */
.dsc-petalas { position: absolute; z-index: -1; inset: 0; overflow: hidden; pointer-events: none; }
.dsc-petalas i { position: absolute; top: -20px; left: var(--x, 50%); width: var(--s, 10px); height: calc(var(--s, 10px) * .7);
  border-radius: 80% 0 80% 0; background: linear-gradient(135deg, #fff5fa, #f9bcd6 60%, #ec94ba); opacity: .85;
  animation: dsc-cai var(--d, 22s) linear infinite; animation-delay: var(--atraso, 0s); }
.dsc-petalas i.folhinha { background: linear-gradient(135deg, #e9ffc9, #9fd66a 60%, #5fa843); }
@keyframes dsc-cai {
  0% { transform: translate(0, 0) rotate(0); }
  25% { transform: translate(calc(var(--deriva, 40px) * .6), calc(var(--queda, 1200px) * .25)) rotate(120deg); }
  50% { transform: translate(calc(var(--deriva, 40px) * -.3), calc(var(--queda, 1200px) * .5)) rotate(220deg); }
  75% { transform: translate(var(--deriva, 40px), calc(var(--queda, 1200px) * .75)) rotate(300deg); }
  100% { transform: translate(0, var(--queda, 1200px)) rotate(400deg); }
}

/* ---------- conteúdo ---------- */
.dsc-inner { position: relative; max-width: 1100px; margin: 0 auto; padding: 0 22px; min-width: 0; }
.dsc-topo { min-height: calc(var(--cena-h) - 6px); box-sizing: border-box; padding: 34px 0 120px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.dsc-chao { width: 78px; height: 78px; filter: drop-shadow(0 0 14px rgba(255, 246, 200, .95)) drop-shadow(0 3px 6px rgba(30, 80, 70, .3));
  animation: dsc-gira 90s linear infinite; }
@keyframes dsc-gira { to { transform: rotate(360deg); } }
.dsc-kicker { margin: 10px 0 0; font: 600 12px/1.3 'Segoe UI', Tahoma, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #3b6d5a;
  text-shadow: 0 0 8px #fff, 0 0 3px #fff; }
.dsc-title { margin: 2px 0 0; font: 400 clamp(46px, 7vw, 76px)/1.05 'Great Vibes', 'Dancing Script', cursive; color: #1f5f4a;
  text-shadow: 0 0 18px rgba(255, 255, 255, .95), 0 0 4px #fff, 0 2px 0 rgba(255, 255, 255, .8); }
.dsc-sub { max-width: 34em; margin: 6px 0 0; font-size: 15px; line-height: 1.5; color: #2c4f43; text-shadow: 0 0 10px #fff, 0 0 4px #fff, 0 0 2px #fff; }
.dsc-som-linha { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 10px; margin-top: 14px; }
.dsc-som { display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px 8px 12px; border-radius: 20px; cursor: pointer;
  font: 600 14px/1 'Segoe UI', Tahoma, sans-serif; color: #fff; text-shadow: 0 1px 1px rgba(0, 60, 30, .6);
  border: 1px solid #2e7a45;
  background: linear-gradient(#b8f09a 0%, #6fcb55 48%, #43a83a 52%, #6fd35a 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), inset 0 0 0 1px rgba(255, 255, 255, .3), 0 2px 8px rgba(40, 110, 60, .35); }
.dsc-som:hover, .dsc-som:focus-visible { background: linear-gradient(#d0ffb6 0%, #86dc6a 48%, #50bb45 52%, #82e46c 100%); }
.dsc-som:focus-visible { outline: 2px solid #f0b429; outline-offset: 2px; }
.dsc-som[aria-pressed="true"] { border-color: #1f6b8a; background: linear-gradient(#bfeaff 0%, #6cc4ef 48%, #3aa2d8 52%, #69c8f2 100%); }
.dsc-som img { width: 20px; height: 20px; }
.dsc-som-dica { font-size: 12.5px; color: #2c4f43; text-shadow: 0 0 6px #fff, 0 0 3px #fff; }
.dsc-som-dica:empty { display: none; }

.dsc-cartoes { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; margin: 0 0 22px; }
.dsc-cartao { position: relative; min-width: 0; padding: 16px 20px 16px; border-radius: 10px; border: 1px solid rgba(60, 130, 95, .55);
  background: linear-gradient(rgba(255, 255, 255, .88), rgba(243, 252, 238, .8) 40%, rgba(230, 246, 222, .78));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .85), 0 6px 18px rgba(50, 110, 70, .18); }
.dsc-cartao::before { content: ""; position: absolute; left: 1px; right: 1px; top: 1px; height: 22px; border-radius: 9px 9px 50% 50% / 9px 9px 10px 10px;
  background: linear-gradient(rgba(255, 255, 255, .9), rgba(255, 255, 255, 0)); pointer-events: none; }
.dsc-cartao h3 { position: relative; margin: 0 0 8px; font: 600 17px/1.2 'Segoe UI', Tahoma, sans-serif; color: var(--dsc-verde); }
.dsc-cartao p { margin: 0 0 8px; font-size: 14.5px; line-height: 1.6; }
.dsc-intro-pe { color: #3e6152; font-style: italic; }
.dsc-frase { margin: 4px 0 12px; padding: 12px 16px; border-left: 3px solid #e7c34a; border-radius: 0 8px 8px 0;
  font: italic 400 21px/1.4 Georgia, 'Bodoni Moda', serif; color: #2a4c3f; background: rgba(255, 250, 225, .75); }
.dsc-data { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px !important; }
.dsc-data img { flex: none; margin-top: 2px; }
.dsc-frase-nota { font-size: 12px !important; color: #5d7a6c; margin: 0 !important; }

/* ---------- leitor (janela Vista) ---------- */
.dsc-janela { --dsc-h: min(78vh, 960px); position: relative; min-width: 0; margin: 0 auto; padding: 0 7px 7px; border-radius: 9px; outline: none;
  border: 1px solid rgba(0, 0, 0, .6);
  background: linear-gradient(rgba(190, 225, 245, .72), rgba(110, 165, 195, .66) 38px, rgba(90, 145, 170, .6));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .5) inset, 0 12px 34px rgba(20, 70, 60, .35); }
.dsc-janela::before { content: ""; position: absolute; left: 1px; right: 1px; top: 1px; height: 18px; border-radius: 8px 8px 50% 50% / 8px 8px 12px 12px;
  background: linear-gradient(rgba(255, 255, 255, .5), rgba(255, 255, 255, 0)); pointer-events: none; }
.dsc-barra { position: relative; display: flex; align-items: center; gap: 8px; min-width: 0; height: 32px; padding: 0 0 0 4px; color: #fff;
  font: 400 14px/1 'Segoe UI', Tahoma, sans-serif; text-shadow: 0 0 10px #fff, 0 0 6px rgba(255, 255, 255, .9), 0 1px 2px rgba(0, 0, 0, .6); }
.dsc-barra img { flex: none; width: 20px; height: 20px; }
.dsc-barra-titulo { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #0e2b3a; text-shadow: 0 0 10px #fff, 0 0 5px #fff; }
.dsc-botao-max { flex: none; align-self: flex-start; position: relative; width: 30px; height: 20px; padding: 0; cursor: pointer; border: 1px solid rgba(0, 0, 0, .55); border-top: 0; border-radius: 0 0 5px 5px;
  background: linear-gradient(rgba(255, 255, 255, .55), rgba(255, 255, 255, .15) 45%, rgba(0, 0, 0, .1) 50%, rgba(255, 255, 255, .25)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4); }
.dsc-botao-max:hover, .dsc-botao-max:focus-visible { background: linear-gradient(#f4fdff, #aee6ff 45%, #42b4ea 50%, #9ee0ff); box-shadow: inset 0 0 0 1px #fffc, 0 0 9px #4ec3ff; }
.dsc-botao-max:focus-visible { outline: 2px solid #f0b429; outline-offset: 1px; }
.dsc-botao-max i { position: absolute; left: 9px; top: 4px; width: 10px; height: 7px; border: 2px solid #fff; border-top-width: 3px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .45); }
.dsc-maximizado .dsc-botao-max i { left: 11px; top: 3px; width: 7px; height: 6px; border-width: 2px; }
.dsc-maximizado .dsc-botao-max i::before { content: ""; position: absolute; left: -6px; top: 4px; width: 7px; height: 6px; border: 2px solid #fff; background: #6b9ab8; box-shadow: 0 0 0 1px rgba(0, 0, 0, .45); }
/* barra de comandos do Explorer */
.dsc-ferramentas { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-width: 0; padding: 6px 8px; border: 1px solid rgba(0, 0, 0, .35); border-bottom: 0; border-radius: 3px 3px 0 0;
  background: linear-gradient(#fdfeff 0%, #eef4fa 45%, #dde8f3 50%, #e7f0f8 100%); font: 400 13px/1 'Segoe UI', Tahoma, sans-serif; color: #1b2c3a; }
.dsc-grupo { display: inline-flex; align-items: center; gap: 4px; }
.dsc-fb { min-width: 30px; padding: 6px 9px; line-height: 1; }
.dsc-fb[aria-pressed="true"] { border-color: #3c7fb1; background: linear-gradient(#e5f4fc, #c4e5f6 50%, #98d1ef 51%, #68b3db); }
.dsc-fb:disabled { opacity: .45; cursor: default; }
.dsc-pag { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.dsc-num { width: 3.4em; padding: 4px 4px; font: 13px 'Segoe UI', Tahoma, sans-serif; text-align: center; border: 1px solid #8e9fae; border-top-color: #6d7f8d; border-radius: 2px; background: #fff; color: #000; -moz-appearance: textfield; }
.dsc-num::-webkit-inner-spin-button, .dsc-num::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.dsc-zoom { max-width: 9.5em; padding: 4px 2px; font: 13px 'Segoe UI', Tahoma, sans-serif; border: 1px solid #8e9fae; border-radius: 2px; background: #fff; color: #000; }
.dsc-baixar { display: inline-flex !important; align-items: center; gap: 6px; margin-left: auto; padding: 6px 12px; white-space: nowrap; }
.dsc-baixar small { color: #4d5d6b; font-size: 11px; }
.dsc-corpo { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; border: 1px solid rgba(0, 0, 0, .45); background: #cfd8d2; }
.dsc-corpo.com-lista { grid-template-columns: 138px minmax(0, 1fr); }
.dsc-lista { display: flex; flex-direction: column; gap: 10px; align-items: center; min-width: 0; max-height: var(--dsc-h); overflow-y: auto; overscroll-behavior: contain;
  padding: 10px 6px; box-sizing: border-box; background: linear-gradient(90deg, #eef3f7, #e2e9ef); border-right: 1px solid #a7b4bf; }
.dsc-lista[hidden] { display: none; }
.dsc-mini { all: unset; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; gap: 3px; width: 104px; padding: 4px; border: 1px solid transparent; border-radius: 3px; cursor: pointer;
  font: 11px/1 'Segoe UI', Tahoma, sans-serif; color: #33414d; }
.dsc-mini img { display: block; width: 90px; height: auto; aspect-ratio: 180 / 233; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .35); object-fit: contain; }
.dsc-mini:hover { border-color: #b8d6fb; background: linear-gradient(#fafbfd, #ebf3fd); }
.dsc-mini:focus-visible { outline: 2px solid #f0b429; }
.dsc-mini[aria-current="page"] { border-color: #84acdd; background: linear-gradient(#dcebfc, #c1dbfc); }
.dsc-vista { position: relative; min-width: 0; overflow: hidden; padding: 14px; box-sizing: border-box; touch-action: pan-y pinch-zoom;
  background: radial-gradient(ellipse at 50% 0, #e9efe9, #c7d3cb 80%); }
.dsc-folha { position: relative; margin: 0 auto; min-width: 0; }
.dsc-folha img { display: block; width: 100%; max-width: 100%; height: auto; background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
.dsc-carregando { position: absolute; left: 50%; top: 40px; transform: translateX(-50%); padding: 6px 12px; border-radius: 3px; border: 1px solid #9fb5c7;
  font: 12px 'Segoe UI', Tahoma, sans-serif; background: linear-gradient(#fff, #e8f0f7); color: #1b2c3a; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); pointer-events: none; }
.dsc-carregando[hidden] { display: none; }
/* zoom: largura (padrão no celular), página inteira (padrão no computador) e ampliações */
.dsc-vista.z-largura .dsc-folha { width: min(100%, 860px); }
.dsc-vista.z-pagina, .dsc-vista.z-mais { height: var(--dsc-h); }
.dsc-vista.z-pagina .dsc-folha { height: 100%; }
.dsc-vista.z-pagina .dsc-folha img { width: auto; height: 100%; margin: 0 auto; object-fit: contain; }
.dsc-vista.z-mais { overflow: auto; overscroll-behavior: contain; touch-action: auto; }
.dsc-vista.z-mais .dsc-folha { width: calc(min(100%, 860px) * var(--z, 1.5)); max-width: none; }
.dsc-vista.z-mais .dsc-folha img { max-width: none; }
.dsc-status { margin: 0; padding: 5px 8px; border: 1px solid rgba(0, 0, 0, .4); border-top: 0; background: linear-gradient(#f3f6f9, #dfe7ee); font: 12px/1.3 'Segoe UI', Tahoma, sans-serif; color: #33414d; }
.dsc-creditos { max-width: 60em; margin: 16px auto 0; font-size: 12px; line-height: 1.55; text-align: center; color: #4a6a5c; }

/* leitor maximizado: vai para um <dialog> no body (a seção pode estar com content-visibility) */
.dsc-dialogo { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; overflow: hidden; }
.dsc-dialogo::backdrop { background: rgba(30, 60, 50, .55); }
.dsc-dialogo .dsc-janela { --dsc-h: auto; display: flex; flex-direction: column; box-sizing: border-box; width: 100%; height: 100%; border-radius: 0; }
.dsc-dialogo .dsc-corpo { flex: 1 1 auto; min-height: 0; }
.dsc-dialogo .dsc-lista { max-height: none; }
.dsc-dialogo .dsc-vista { height: 100%; overflow: auto; }
.dsc-dialogo .dsc-vista.z-largura .dsc-folha { width: min(100%, 980px); }

/* ---------- celular ---------- */
@media (max-width: 760px) {
  .discordia { --cena-h: 450px; }
  .dsc-inner { padding: 0 10px; }
  .dsc-topo { padding: 26px 4px 150px; }
  .dsc-chao { width: 62px; height: 62px; }
  .dsc-sub { font-size: 14px; max-width: 22em; padding: 4px 10px; border-radius: 10px; background: rgba(255, 255, 255, .62); }
  .dsc-kicker { padding: 2px 8px; border-radius: 8px; background: rgba(255, 255, 255, .5); }
  .dsc-arvore.esq { left: -60px; height: 62%; }
  .dsc-arvore.dir { right: -80px; height: 56%; }
  .dsc-fundo .f1 { left: 12%; } .dsc-fundo .f2 { right: 8%; }
  .dsc-lago { width: 62%; }
  .dsc-colina { height: 70px; bottom: 70px; }
  .dsc-grama { height: 60px; }
  .dsc-grama.g2 { height: 44px; bottom: 46px; }
  .dsc-folhas { width: 62%; }
  .dsc-ave { --esc: .75; }
  .dsc-cartoes { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 0; }
  .dsc-cartao { padding: 14px 14px 12px; }
  .dsc-frase { font-size: 18px; }
  .dsc-janela { padding: 0 3px 3px; }
  .dsc-ferramentas { gap: 6px; padding: 6px; justify-content: space-between; }
  .dsc-pag-rot { display: none; }
  .dsc-baixar { margin-left: 0; flex: 1 1 100%; justify-content: center; }
  .dsc-corpo.com-lista { grid-template-columns: minmax(0, 1fr); }
  .dsc-lista { flex-direction: row; max-height: none; overflow-x: auto; overflow-y: hidden; padding: 8px; border-right: 0; border-bottom: 1px solid #a7b4bf; }
  .dsc-mini { flex: none; width: 76px; }
  .dsc-mini img { width: 64px; }
  .dsc-vista { padding: 8px; }
  .dsc-janela { --dsc-h: min(72vh, 700px); }
}
@media (max-width: 380px) {
  .dsc-zoom { max-width: 7.5em; }
}

/* celular/aparelho fraco (perf.js): menos enfeite */
.perf-leve .dsc-grama.g2, .perf-leve .dsc-borboleta.b2 { display: none; }
.perf-leve .dsc-nuvem { animation: none; left: 8%; }
.perf-leve .dsc-nuvem.n2 { left: 62%; }
.perf-leve .dsc-arvore > img { animation: none; }

@media (prefers-reduced-motion: reduce) {
  .discordia *, .discordia *::before, .discordia *::after { animation: none !important; }
  .dsc-nuvem { left: 10%; } .dsc-nuvem.n2 { left: 60%; } .dsc-nuvem.n3 { left: 38%; }
  .dsc-borboleta, .dsc-luz, .dsc-petalas, .dsc-nota { display: none; }
}

/* ---------- Illuminati: aparecem aos poucos conforme a leitura (data-illuminati 0 a 4, discordia.js) ---------- */
.dsc-casca-olho, .dsc-nuvem-piramide, .dsc-olho-ceu, .dsc-piramide-gif { opacity: 0; transition: opacity 4s ease; }
.dsc-nuvem-piramide { position: absolute; left: 38%; top: -8px; width: 34px; height: 30px; }
.dsc-olho-ceu { left: 50%; top: 74%; width: 120px; height: 110px; margin: -76px 0 0 -60px; pointer-events: none; }
.dsc-olho-ceu .raios { transform-box: fill-box; transform-origin: 50% 50%; animation: dsc-gira 60s linear infinite; }
.dsc-olho-ceu .pupila { transition: transform .5s ease-out; }
.dsc-piramide-gif { right: calc(max(-40px, calc(50% - 640px)) + 40px); bottom: 30px; width: 32px; height: 32px; image-rendering: pixelated; z-index: 1; }
.discordia[data-illuminati="1"] .dsc-casca-olho, .discordia[data-illuminati="2"] .dsc-casca-olho,
.discordia[data-illuminati="3"] .dsc-casca-olho, .discordia[data-illuminati="4"] .dsc-casca-olho { opacity: .75; }
.discordia[data-illuminati="2"] .dsc-nuvem-piramide, .discordia[data-illuminati="3"] .dsc-nuvem-piramide, .discordia[data-illuminati="4"] .dsc-nuvem-piramide { opacity: .8; }
.discordia[data-illuminati="2"] .dsc-olho-ceu { opacity: .35; }
.discordia[data-illuminati="3"] .dsc-olho-ceu, .discordia[data-illuminati="4"] .dsc-olho-ceu { opacity: .55; }
.discordia.dsc-vigiado .dsc-olho-ceu { opacity: .9; transition-duration: 1.5s; }
.discordia[data-illuminati="3"] .dsc-piramide-gif, .discordia[data-illuminati="4"] .dsc-piramide-gif { opacity: 1; animation: dsc-espia 14s ease-in-out infinite; }
@keyframes dsc-espia { 0%, 55%, 100% { transform: translateY(0); } 65%, 85% { transform: translateY(-10px); } }
.dsc-fnord { position: absolute; z-index: 5; pointer-events: none; font: 700 11px/1 'Courier New', monospace; letter-spacing: .3em; color: #2c4f43; opacity: .32; }
.dsc-janela.dsc-vigiado .dsc-barra > img { image-rendering: pixelated; width: 30px; }
.dsc-espia { float: right; width: 22px; height: 22px; margin: -3px 0 -3px 6px; border-radius: 50%; }
.dsc-carregando img { vertical-align: middle; margin-right: 4px; }
/* aviso ao terminar o livro: balão do Windows Vista */
.dsc-aviso { position: fixed; z-index: 2147483000; right: 16px; bottom: 16px; display: flex; gap: 12px; align-items: flex-start; width: min(340px, calc(100vw - 32px)); box-sizing: border-box;
  padding: 12px 34px 12px 12px; border: 1px solid #6d8fb0; border-radius: 6px; background: linear-gradient(#ffffff, #eaf2fb); color: #1b2c3a;
  font: 13px/1.45 'Segoe UI', Tahoma, sans-serif; box-shadow: 0 6px 22px rgba(0, 40, 80, .35); animation: dsc-aviso .5s ease-out; }
.dsc-aviso img { flex: none; background: #000; border-radius: 4px; }
.dsc-aviso b { display: block; margin-bottom: 2px; font-size: 14px; color: #1e5a8a; }
.dsc-aviso p { margin: 0; }
.dsc-aviso button { position: absolute; right: 6px; top: 6px; width: 22px; height: 20px; padding: 0; border: 1px solid #8a9aab; border-radius: 3px; cursor: pointer;
  background: linear-gradient(#fff, #dde6ee); font: 15px/1 'Segoe UI', Tahoma, sans-serif; color: #333; }
.dsc-aviso button:hover { background: linear-gradient(#e8a393, #d1533a 45%, #b6260d 50%, #d65f3e); color: #fff; }
.dsc-aviso.saindo { opacity: 0; transform: translateY(12px); transition: .4s; }
@keyframes dsc-aviso { from { opacity: 0; transform: translateY(16px); } }
@media (max-width: 760px) { .dsc-piramide-gif { right: 30px; } .dsc-olho-ceu { left: auto; right: 6px; top: 150px; width: 64px; height: 58px; margin: 0; } }
@media (prefers-reduced-motion: reduce) { .dsc-casca-olho, .dsc-nuvem-piramide, .dsc-olho-ceu, .dsc-piramide-gif { transition: none; } .dsc-aviso { animation: none; } }

/* ---------- Meditar (discordia-meditar.js): boneco em lótus no bosque, guia de respiração e quem medita junto ---------- */
.dsc-meditar svg { color: #2f6e57; flex: none; }
.dsc-meditar[aria-pressed="true"] svg { color: #0f4a66; }
.dsc-med-painel { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 12px; margin: 10px auto 0; padding: 6px 14px; width: fit-content; max-width: 100%; box-sizing: border-box;
  border-radius: 18px; background: rgba(255, 255, 255, .6); border: 1px solid rgba(47, 122, 79, .35); font-size: 13px; color: #24463a; }
.dsc-med-painel[hidden], .dsc-med-conta[hidden], .dsc-med-coro[hidden] { display: none; }
.dsc-med-anel { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #3aa2d8; background: radial-gradient(circle at 35% 30%, #fff, #bfeaff 60%, #8fd3ec); transform: scale(.7); box-shadow: 0 0 10px 2px rgba(120, 210, 245, .6);
  transition: transform var(--dur, 4s) ease-in-out; }
.dsc-med-painel.inspira .dsc-med-anel { transform: scale(1.35); }
.dsc-med-texto { font-style: italic; min-width: 5.5em; text-align: center; }
.dsc-med-tempo { color: #3d6354; }
.dsc-med-conta, .dsc-med-coro { margin: 8px auto 0; max-width: 34em; font-size: 12.5px; color: #2c4f43; text-shadow: 0 0 6px #fff, 0 0 3px #fff; }
.dsc-med-conta a { color: #0f5c86; font-weight: 600; }

.dsc-med { inset: 0; pointer-events: none; z-index: 3; }
.dsc-med-fig { position: absolute; width: var(--w); margin-left: calc(var(--w) / -2); opacity: 0; transition: opacity 1s ease; }
.dsc-med-fig.presente { opacity: 1; }
.dsc-med-fig.eu { left: 68%; bottom: 26px; }
.dsc-med-fig.outro { opacity: 0; }
.dsc-med-fig.outro.presente { opacity: .92; }
.dsc-med-fig .corpo { position: relative; transform-origin: 50% 88%; animation: dsc-med-respira 10s ease-in-out infinite; animation-delay: var(--atraso, 0s); }
.dsc-med-fig .pessoa { display: block; position: relative; z-index: 1; }
.dsc-med-fig .aura { position: absolute; left: 50%; top: 52%; width: 150%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 252, 214, .75) 0, rgba(255, 236, 170, .4) 38%, rgba(255, 236, 170, 0) 68%); animation: dsc-med-aura 10s ease-in-out infinite; }
.dsc-med-fig .halo { position: absolute; left: 50%; top: 4%; width: 46%; height: 12%; margin-left: -23%; border-radius: 50%; border: 2px solid rgba(255, 238, 160, .85); box-shadow: 0 0 10px 2px rgba(255, 240, 170, .7); z-index: 2; }
.dsc-med-fig.outro .halo { display: none; }
.dsc-med-fig .cao { position: absolute; left: 50%; top: -16%; width: 22%; margin-left: -11%; z-index: 2; filter: drop-shadow(0 0 5px rgba(255, 244, 190, .9)); animation: dsc-med-flutua 6s ease-in-out infinite alternate; }
.dsc-med-fig .cao svg { display: block; width: 100%; height: auto; }
.dsc-med-fig.outro .aura { width: 130%; opacity: .7; }
@keyframes dsc-med-respira { 0%, 100% { transform: translateY(0) scale(1); } 40% { transform: translateY(-3px) scale(1.035, 1.045); } }
@keyframes dsc-med-aura { 0%, 100% { opacity: .65; transform: translate(-50%, -50%) scale(.94); } 40% { opacity: 1; transform: translate(-50%, -50%) scale(1.06); } }
@keyframes dsc-med-flutua { from { transform: translateY(0); } to { transform: translateY(-5px); } }
.dsc-med-calma { position: absolute; bottom: 55%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: #fffbe0; box-shadow: 0 0 8px 3px rgba(255, 248, 200, .85); opacity: 0; z-index: 3; animation: dsc-med-sobe 4.6s ease-out forwards; }
.dsc-med-calma.folha { width: 9px; height: 5px; border-radius: 9px 0; background: #a9dc7e; box-shadow: 0 0 5px rgba(255, 255, 255, .7); }
@keyframes dsc-med-sobe { 0% { transform: translate(0, 0); opacity: 0; } 15% { opacity: .95; } 100% { transform: translate(var(--dx, 20px), -150px) rotate(40deg); opacity: 0; } }
@media (max-width: 760px) { .dsc-med-fig.eu { left: 72%; bottom: 14px; } }
@media (prefers-reduced-motion: reduce) {
  .dsc-med-anel { transition: none; transform: scale(1); }
  .dsc-med-fig .corpo, .dsc-med-fig .aura, .dsc-med-fig .cao { animation: none !important; }
  .dsc-med-fig { transition: none; }
  .dsc-med-calma { display: none; }
}
.perf-leve .dsc-med-fig .aura { animation: none; }
.dsc-med-fig .pessoa { filter: drop-shadow(0 0 1px rgba(20, 70, 80, .9)) drop-shadow(0 2px 3px rgba(20, 70, 80, .35)); }
.dsc-med-conta, .dsc-med-coro { width: fit-content; padding: 3px 12px; border-radius: 12px; background: rgba(255, 255, 255, .6); text-shadow: none; }
