/* Wise Words — a self-contained, cinematic overlay; existing page styles stay intact. */
.nav-wise {
  min-height: 43px;
  border: 1px solid #df9fc3;
  border-radius: 5px;
  padding: 11px 14px;
  background: #e7a7c711;
  color: #ffcee6;
  font: 700 13px/1 var(--display);
  white-space: nowrap;
  cursor: pointer;
  transition: color .2s, background .2s, box-shadow .2s, transform .2s;
}
.nav-wise span { margin-right: 6px; font-size: 17px; vertical-align: -1px; }
.nav-wise:hover { color: #17121f; background: var(--pink); box-shadow: 0 0 26px #e7a7c746; transform: translateY(-2px); }
.nav-wise:active { transform: translateY(0); }

/* Unlike removing the DOM, a dialog is reversible, keyboard-friendly and
   keeps the page intact, including its existing Twitch refresh behavior. */
body.wise-world-fallen { overflow: hidden; }
body.wise-world-fallen .site-frame {
  filter: grayscale(.9) brightness(.08) blur(9px);
  transform: scale(.97);
  transition: filter .55s ease, transform .65s ease;
}
.wise-dialog {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: #07040b;
  color: #fff4fa;
  isolation: isolate;
}
.wise-dialog[open] { animation: wise-enter .7s cubic-bezier(.16,1,.3,1) both; }
.wise-dialog::backdrop { background: #010104; }
.wise-ambient,
.wise-ambient::before,
.wise-ambient::after { position: absolute; inset: 0; pointer-events: none; }
.wise-ambient {
  z-index: -2;
  background: radial-gradient(ellipse 54% 55% at 50% 50%, #451f4266, transparent 78%),
              radial-gradient(ellipse 62% 32% at 50% 106%, #58204c70, transparent 90%),
              #07040b;
}
.wise-ambient::before {
  content: '';
  background: radial-gradient(ellipse 22% 34% at 52% 48%, #f89cd021, transparent 100%);
  filter: blur(42px);
  animation: wise-aura 7s ease-in-out infinite alternate;
}
.wise-ambient::after {
  content: '';
  opacity: .2;
  background-image: linear-gradient(115deg, transparent 40%, #db93c214 50%, transparent 59%);
}
.wise-silhouette {
  position: absolute;
  z-index: -1;
  width: min(86vw, 790px);
  max-width: none;
  height: auto;
  max-height: 115vh;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  opacity: .8;
  filter: drop-shadow(0 0 42px #b3458d73) drop-shadow(0 0 125px #a23c9270);
  pointer-events: none;
  animation: wise-bunny-breathe 8s ease-in-out infinite alternate;
}
.wise-spark {
  position: absolute;
  z-index: 0;
  color: #f5b1d4;
  opacity: .7;
  pointer-events: none;
  text-shadow: 0 0 24px #e78ccf;
  animation: wise-float 8s ease-in-out infinite alternate;
}
.wise-spark-one { font-size: 42px; top: 27%; left: 14%; }
.wise-spark-two { font-size: 19px; top: 38%; right: 16%; animation-delay: -3s; }
.wise-spark-three { font-size: 29px; bottom: 21%; right: 24%; animation-delay: -5s; }
.wise-shell {
  position: relative;
  width: min(100%, 1440px);
  height: 100%;
  height: 100dvh;
  min-height: 0;
  margin: auto;
  display: flex;
  flex-direction: column;
  padding: clamp(18px, 3vw, 44px) clamp(20px, 5vw, 72px);
  padding-top: max(20px, env(safe-area-inset-top));
  padding-bottom: max(20px, env(safe-area-inset-bottom));
}
.wise-toolbar, .wise-bottom { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.wise-wordmark { font: 700 clamp(17px, 1.5vw, 22px)/1.2 var(--display); letter-spacing: -.045em; }
.wise-wordmark span { color: #f6aed5; }
.wise-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 44px;
  border: 1px solid #dbb1cb73;
  border-radius: 4px;
  background: #140b1ba8;
  color: #f7daec;
  padding: 10px 14px;
  cursor: pointer;
  font: 700 11px var(--display);
  letter-spacing: .10em;
  transition: background .2s, border-color .2s;
}
.wise-close:hover { background: #39213d; border-color: #fac5e5; }
.wise-close span:last-child { font-size: 19px; line-height: 1; }
.wise-center {
  position: relative;
  z-index: 1;
  width: min(100%, 950px);
  min-height: 0;
  margin: auto;
  padding: 50px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  text-align: center;
  scrollbar-width: thin;
  scrollbar-color: #b57aa7 transparent;
}
.wise-overline {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 11px;
  font: 700 clamp(10px, 1.05vw, 12px)/1.5 var(--display);
  letter-spacing: .17em;
  color: #ffd2eb;
}
.wise-overline-star { color: #ef8dc4; font-size: 18px; }
.wise-overline-line { width: 30px; height: 1px; background: #e7a7c799; }
.wise-quotation {
  position: relative;
  width: 100%;
  margin: clamp(24px, 5vh, 50px) auto clamp(25px, 4vh, 40px);
  padding: 28px clamp(4px, 3vw, 40px) 10px;
}
.wise-quotation::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -10% -4%;
  background: radial-gradient(ellipse closest-side, #07040beb 15%, #0c0612b5 72%, transparent 100%);
  filter: blur(18px);
  pointer-events: none;
}
.wise-opening-quote {
  position: absolute;
  left: 50%;
  top: -36px;
  transform: translateX(-50%);
  font: 700 clamp(65px, 9vw, 124px)/1 Georgia,serif;
  color: #ffaad5;
  text-shadow: 0 0 38px #ef69b6a8;
}
.wise-blockquote { margin: 0; }
.wise-blockquote p {
  font: 500 clamp(29px, 4.4vw, 67px)/1.17 var(--display);
  letter-spacing: -.045em;
  text-wrap: balance;
  overflow-wrap: anywhere;
  color: #fff8fd;
  text-shadow: 0 2px 18px #000, 0 0 40px #df80be5e;
}
.wise-quotation.is-long .wise-blockquote p { font-size: clamp(25px, 3.6vw, 52px); line-height: 1.22; }
.wise-quotation.is-extra-long .wise-blockquote p { font-size: clamp(22px, 3vw, 40px); line-height: 1.28; }
.wise-attribution {
  margin-top: clamp(18px, 3vh, 35px);
  color: #f4bbd7;
  font: 700 13px/1.5 var(--display);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.wise-attribution[hidden] { display: none; }
.wise-quote-actions { display: flex; align-items: center; gap: 22px; justify-content: center; flex-wrap: wrap; }
.wise-next {
  min-height: 47px;
  padding: 12px 23px;
  border: 1px solid #f4aad2;
  border-radius: 4px;
  background: #e7a7c7;
  color: #29152a;
  font: 700 14px var(--display);
  cursor: pointer;
  box-shadow: 0 0 33px #dd6dbb4d;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.wise-next:hover:not(:disabled) { background: #ffd1e6; transform: translateY(-2px); box-shadow: 0 0 48px #dd6dbb8a; }
.wise-next:disabled { cursor: wait; opacity: .65; }
.wise-escape-hint { font-size: 12px; color: #d3a8c4; }
.wise-bottom { color: #d2a1c2; font: 700 10px/1.6 var(--display); letter-spacing: .12em; }
.wise-bottom a { color: #e8c4dc; letter-spacing: .01em; text-decoration: underline; text-decoration-color: #e7a7c766; text-underline-offset: 4px; }
.wise-bottom a:hover { color: #fff; }
.wise-bottom > span span { margin-left: 6px; }
.wise-dialog button:focus-visible, .wise-dialog a:focus-visible { outline: 3px solid #88e5d9; outline-offset: 4px; }

@keyframes wise-enter { from { opacity: 0; filter: brightness(3); transform: scale(1.06); } 55% { filter: brightness(.8); } to { opacity: 1; filter: brightness(1); transform: scale(1); } }
@keyframes wise-bunny-breathe { to { transform: translate(-50%, -51.5%) scale(1.055); opacity: .94; filter: drop-shadow(0 0 63px #c2589b95) drop-shadow(0 0 140px #a23c9280); } }
@keyframes wise-aura { to { transform: scale(1.35); opacity: .68; } }
@keyframes wise-float { to { transform: translateY(-24px) rotate(16deg); opacity: .35; } }

@media (max-width: 610px) {
  .nav-wise { padding: 11px 10px; font-size: 12px; }
  .wise-shell { padding-inline: 20px; }
  .wise-silhouette { width: min(130vw, 660px); opacity: .64; }
  .wise-wordmark { font-size: 17px; }
  .wise-close { gap: 9px; padding: 9px 11px; font-size: 10px; }
  .wise-close span:first-child { display: none; }
  .wise-overline { letter-spacing: .11em; font-size: 10px; gap: 7px; }
  .wise-overline-line { width: 14px; }
  .wise-blockquote p { font-size: clamp(29px, 7.8vw, 43px); }
  .wise-quotation.is-long .wise-blockquote p { font-size: clamp(25px, 6.5vw, 36px); }
  .wise-quotation.is-extra-long .wise-blockquote p { font-size: clamp(22px, 5.8vw, 31px); }
  .wise-quotation { margin-block: 32px 25px; padding: 30px 0 6px; }
  .wise-opening-quote { top: -24px; }
  .wise-bottom { align-items: flex-start; flex-direction: column; gap: 5px; font-size: 10px; }
  .wise-spark-one { left: 5%; }
  .wise-spark-two { right: 6%; }
  .wise-spark-three { right: 8%; }
}
@media (max-width: 440px) {
  .site-header { flex-wrap: wrap; gap: 13px; }
  .nav-actions { display: grid; width: 100%; grid-template-columns: 1fr 1fr; gap: 9px; }
  .nav-wise, .nav-watch { min-height: 43px; display: flex; align-items: center; justify-content: center; }
  .nav-watch span { margin-left: 6px; }
  .wise-escape-hint { display: none; }
  .wise-center { padding-block: 20px; overflow: hidden; }
  .wise-overline, .wise-quote-actions { flex-shrink: 0; }
  .wise-quotation {
    flex: 0 1 auto;
    min-height: 0;
    margin-block: 18px 15px;
    padding: 8px 0 6px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #a26a96 transparent;
  }
  .wise-opening-quote {
    display: block;
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    font-size: 59px;
    line-height: .62;
    margin-bottom: 12px;
  }
}
@media (max-height: 550px) {
  .wise-center { padding: 18px 0; justify-content: flex-start; }
  .wise-quotation { margin: 18px 0; padding: 20px 0 4px; }
  .wise-opening-quote { font-size: 62px; top: -27px; }
  .wise-bottom { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  body.wise-world-fallen .site-frame { transition: none; }
  .wise-dialog[open], .wise-silhouette, .wise-ambient::before, .wise-spark { animation: none; }
}
