/* Spells: a candlelit altar and a book of shadows. Everything is scoped to this page. */
body[data-page="spells"] {
  --plum: #140c17;
  --plum-2: #1d1121;
  --cloth: #2a1631;
  --amber: #f2b561;
  --amber-soft: rgba(242, 181, 97, 0.35);
  --candle: #f1e4c9;
  --parch: #ecdfc1;
  --ink: #2b1b12;
  --ink-soft: #5e4330;
  --oxblood: #8a2433;
  --warn: #a3341f;
  --hand: 'Alegreya', Georgia, serif;
  background: var(--plum);
}

/* The room: dim plum, a warm pool of light where the altar stands, very few stars. */
body[data-page="spells"] .sky {
  background:
    radial-gradient(60% 45% at 50% 34%, rgba(242, 160, 70, 0.1), transparent 70%),
    linear-gradient(180deg, #1a0f1e 0%, #140c17 55%, #0e0810 100%);
}
body[data-page="spells"] .sky::after { display: none; }
body[data-page="spells"] .sky::before { opacity: 0.18; }
body[data-page="spells"] .home-link .g { color: var(--amber); text-shadow: 0 0 8px rgba(242, 181, 97, 0.7); }

/* ---------- heading ---------- */
body[data-page="spells"] .page-head { margin: 0 auto; text-align: center; padding-bottom: 12px; }
body[data-page="spells"] .page-head h1 {
  color: var(--candle);
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.6), 0 0 30px rgba(242, 170, 80, 0.35);
}
body[data-page="spells"] .page-head .runes { color: var(--amber); text-shadow: 0 0 8px rgba(242, 181, 97, 0.55); }
body[data-page="spells"] .page-head .lede { margin: 1rem auto 0; color: #d9cabb; font-family: var(--hand); font-style: italic; font-size: 1.22rem; }

/* ---------- the altar ---------- */
body[data-page="spells"] .altar { max-width: 780px; margin: 22px auto 0; position: relative; }
body[data-page="spells"] .candles {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(26px, 8vw, 70px);
  height: 132px;
  position: relative;
  z-index: 1;
  margin-bottom: -6px;
}
/* One warm glow behind the candles: the light source for the whole altar. */
body[data-page="spells"] .candles::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 40%;
  width: min(520px, 90%);
  height: 170px;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255, 186, 90, 0.22), transparent);
  pointer-events: none;
}
body[data-page="spells"] .candle { position: relative; display: flex; flex-direction: column; align-items: center; }
body[data-page="spells"] .candle .wax {
  position: relative;
  width: 24px;
  height: 64px;
  border-radius: 3px 3px 2px 2px;
  background: linear-gradient(90deg, #b9a58a 0%, #efe2c8 35%, #fbf3e2 50%, #d9c7a8 80%, #a8927a 100%);
  box-shadow: 0 0 18px rgba(255, 190, 110, 0.18);
}
body[data-page="spells"] .candle .wax::before { /* a drip of wax */
  content: '';
  position: absolute;
  top: 0;
  left: 4px;
  width: 6px;
  height: 18px;
  border-radius: 0 0 4px 4px;
  background: #f6ecd8;
}
body[data-page="spells"] .candle .wax::after { /* the wick */
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  width: 2px;
  height: 7px;
  margin-left: -1px;
  background: #2a1c14;
  border-radius: 1px;
}
body[data-page="spells"] .candle.c2 .wax { height: 92px; width: 28px; }
body[data-page="spells"] .candle.c3 .wax { height: 50px; }
body[data-page="spells"] .candle.c3 .wax::before { left: auto; right: 5px; height: 12px; }
body[data-page="spells"] .flame {
  width: 12px;
  height: 26px;
  margin-bottom: 4px;
  border-radius: 50% 50% 45% 45% / 65% 65% 35% 35%;
  background: radial-gradient(ellipse 50% 60% at 50% 72%, #fffbe6 0%, #ffe08a 30%, #ffae3d 62%, rgba(240, 110, 30, 0) 100%);
  box-shadow: 0 0 14px 4px rgba(255, 170, 60, 0.35), 0 0 40px 10px rgba(255, 150, 50, 0.12);
  transform-origin: 50% 90%;
  animation: flicker 3.1s ease-in-out infinite;
}
body[data-page="spells"] .candle.c2 .flame { animation-duration: 2.6s; animation-delay: -1.1s; }
body[data-page="spells"] .candle.c3 .flame { animation-duration: 3.7s; animation-delay: -0.4s; }
@keyframes flicker {
  0%, 100% { transform: scale(1, 1) rotate(0deg); opacity: 1; }
  20% { transform: scale(0.94, 1.08) rotate(-2deg); }
  45% { transform: scale(1.04, 0.95) rotate(1.5deg); opacity: 0.92; }
  70% { transform: scale(0.97, 1.05) rotate(-1deg); }
}

/* The altar cloth: woven aubergine, a stitched border, a fringe along its lower edge. */
body[data-page="spells"] .slab {
  position: relative;
  border-radius: 6px;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.08) 0 1px, transparent 1px 3px),
    var(--cloth);
  border: 1px solid rgba(242, 181, 97, 0.28);
  box-shadow: 0 -30px 60px -30px rgba(255, 170, 80, 0.25), 0 30px 60px rgba(0, 0, 0, 0.5);
  margin-bottom: 18px;
}
body[data-page="spells"] .slab::before {
  content: '';
  position: absolute;
  inset: 9px;
  border: 1px dashed rgba(242, 181, 97, 0.4);
  border-radius: 3px;
  pointer-events: none;
}
body[data-page="spells"] .slab::after {
  content: '';
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: -14px;
  height: 14px;
  background: repeating-linear-gradient(90deg, rgba(242, 181, 97, 0.55) 0 2px, transparent 2px 7px);
  -webkit-mask: linear-gradient(180deg, #000 30%, transparent);
  mask: linear-gradient(180deg, #000 30%, transparent);
}

/* The ask box, set onto the cloth. */
body[data-page="spells"] .ask-box {
  background: none;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  margin: 0;
  padding: 34px clamp(20px, 5vw, 48px) 30px;
}
body[data-page="spells"] .ask-box .field { gap: 10px; }
body[data-page="spells"] .ask-box .field label {
  text-align: center;
  font-family: var(--hand);
  font-size: 1.3rem;
  color: var(--amber);
}
body[data-page="spells"] .ask-box .textarea {
  --line: 1.7em;
  font-family: var(--hand);
  font-style: italic;
  font-size: 1.22rem;
  line-height: var(--line);
  text-align: center;
  color: #f7ead0;
  caret-color: var(--amber);
  border: 0;
  border-radius: 2px;
  padding: 0 0.6rem;
  min-height: calc(var(--line) * 3);
  background: repeating-linear-gradient(180deg, transparent 0 calc(var(--line) - 1px), rgba(242, 181, 97, 0.28) calc(var(--line) - 1px) var(--line));
  background-attachment: local;
  resize: none;
}
body[data-page="spells"] .ask-box .textarea::placeholder { color: rgba(236, 216, 186, 0.5); }
body[data-page="spells"] .ask-box .textarea:focus {
  outline: 2px solid var(--neon);
  outline-offset: 6px;
  box-shadow: 0 0 26px rgba(47, 201, 237, 0.2);
}

/* Example prompts as slips of paper laid by the candles. */
body[data-page="spells"] .ask-box .examples { justify-content: center; gap: 8px 10px; margin: 14px 0 0; }
body[data-page="spells"] .ask-box .chip {
  font-family: var(--hand);
  font-size: 1rem;
  padding: 0.3rem 0.8rem;
  color: var(--ink);
  background: #e7d6b3;
  border: 0;
  border-radius: 1px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
  transform: rotate(-1deg);
}
body[data-page="spells"] .ask-box .chip:nth-child(even) { transform: rotate(1.2deg); }
body[data-page="spells"] .ask-box .chip:hover { background: #f4e7c9; color: var(--ink); }
body[data-page="spells"] .ask-box .chip:focus-visible { outline: 2px solid var(--neon); outline-offset: 3px; }

body[data-page="spells"] .ask-box .row { flex-direction: column; justify-content: center; gap: 8px; margin-top: 22px; }
body[data-page="spells"] .ask-box .btn {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.1rem;
  padding: 0.75rem 1.9rem;
  box-shadow: 0 0 0 1px rgba(47, 201, 237, 0.6), 0 0 26px rgba(47, 201, 237, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
body[data-page="spells"] .ask-box .btn:focus-visible { outline: 2px solid var(--candle); outline-offset: 4px; }
/* The line under the button (what an answer costs). */
body[data-page="spells"] .ask-box .row > :not(.btn) { min-height: 1.35em; text-align: center; font-size: 0.86rem; color: #c9b8a6; }

body[data-page="spells"] .ask-box .disclaimer {
  max-width: 58ch;
  margin: 14px auto 0;
  text-align: center;
  font-size: 0.9rem;
  color: #d4c3b2;
  border: 0;
  border-top: 1px solid rgba(242, 181, 97, 0.22);
  border-radius: 0;
  padding: 12px 0 0;
}

/* ---------- the answer: waiting, then a parchment scroll ---------- */
body[data-page="spells"] .answer:empty { margin: 0; }
body[data-page="spells"] .answer .thinking { justify-content: center; color: #e6d3b8; font-family: var(--hand); }
body[data-page="spells"] .answer .error { text-align: center; }
body[data-page="spells"] .answer.is-scroll {
  position: relative;
  margin: 30px -6px 14px;
  padding: 30px clamp(18px, 4vw, 38px) 26px;
  color: var(--ink);
  font-family: var(--hand);
  font-size: 1.12rem;
  line-height: 1.55;
  background:
    radial-gradient(120% 90% at 50% 50%, transparent 60%, rgba(120, 78, 36, 0.28)),
    var(--parch);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  animation: unroll 1.1s cubic-bezier(0.3, 0.8, 0.3, 1) both;
}
/* Wooden rollers at the top and bottom of the scroll. */
body[data-page="spells"] .answer.is-scroll::before,
body[data-page="spells"] .answer.is-scroll::after {
  content: '';
  position: absolute;
  left: -12px;
  right: -12px;
  height: 16px;
  border-radius: 8px;
  background: linear-gradient(180deg, #a26b3c, #6b3f20 55%, #3f2412);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.45);
}
body[data-page="spells"] .answer.is-scroll::before { top: -8px; }
body[data-page="spells"] .answer.is-scroll::after { bottom: -8px; }
body[data-page="spells"] .answer.is-scroll > * { animation: ink 0.9s ease-out 0.55s both; }
@keyframes unroll {
  from { clip-path: inset(-10px -14px calc(100% - 10px) -14px); }
  to { clip-path: inset(-10px -14px -10px -14px); }
}
@keyframes ink { from { opacity: 0; filter: blur(1.5px); } }
body[data-page="spells"] .answer.is-scroll .asked { color: var(--ink-soft); text-align: center; border-bottom: 1px solid rgba(43, 27, 18, 0.25); padding-bottom: 0.6em; }
body[data-page="spells"] .answer.is-scroll li::marker { color: var(--oxblood); }
body[data-page="spells"] .answer.is-scroll a { color: #1d4f73; }
body[data-page="spells"] .answer.is-scroll .safety {
  border-left: 3px solid var(--warn);
  background: rgba(163, 52, 31, 0.09);
  color: #3a140c;
}

/* ---------- the library: a spread of tall cards ---------- */
body[data-page="spells"] .library { margin-top: 64px; }
body[data-page="spells"] .lib-title {
  margin: 0;
  text-align: center;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.6rem, 3.4vw, 2.1rem);
  color: var(--candle);
}
body[data-page="spells"] .lib-sub { margin: 0.4rem 0 30px; text-align: center; font-family: var(--hand); font-style: italic; color: #cbb9a7; font-size: 1.08rem; }
body[data-page="spells"] .deck {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 30px 20px;
}
@media (max-width: 1040px) { body[data-page="spells"] .deck { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 760px) { body[data-page="spells"] .deck { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
body[data-page="spells"] .deck li { display: flex; }
body[data-page="spells"] .tcard {
  --edge: color-mix(in srgb, var(--hue) 75%, transparent);
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 8.2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 14px 14px;
  font: inherit;
  text-align: center;
  color: var(--candle);
  cursor: pointer;
  border: 2px solid var(--edge);
  border-radius: 10px;
  background:
    radial-gradient(80% 45% at 50% 34%, color-mix(in srgb, var(--hue) 14%, transparent), transparent 70%),
    #1b0f1f;
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.45);
  transform: rotate(calc(var(--tilt, 0) * 0.7deg));
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
body[data-page="spells"] .tcard::before { /* the inner frame of a tarot card */
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid color-mix(in srgb, var(--hue) 35%, transparent);
  border-radius: 6px;
  pointer-events: none;
}
body[data-page="spells"] .tcard:hover,
body[data-page="spells"] .tcard:focus-visible {
  transform: translateY(-8px) rotate(0deg);
  box-shadow: 0 22px 36px rgba(0, 0, 0, 0.55), 0 0 26px color-mix(in srgb, var(--hue) 35%, transparent);
}
body[data-page="spells"] .tcard:focus-visible { outline: 3px solid var(--neon); outline-offset: 5px; }
body[data-page="spells"] .tcard .num { font-family: var(--display); font-size: 0.95rem; color: var(--hue); }
body[data-page="spells"] .sigil { width: 72%; max-width: 132px; flex: none; margin: 4px 0 6px; overflow: visible; }
body[data-page="spells"] .sigil * { fill: none; stroke: var(--hue); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
body[data-page="spells"] .sigil .ring { stroke-width: 1.4; }
body[data-page="spells"] .sigil .ring.thin { stroke-width: 0.8; opacity: 0.6; }
body[data-page="spells"] .sigil line { stroke-width: 1.2; opacity: 0.8; }
body[data-page="spells"] .sigil .dot { fill: var(--hue); stroke: none; }
body[data-page="spells"] .tcard .sigil .glyph { filter: drop-shadow(0 0 4px color-mix(in srgb, var(--hue) 60%, transparent)); }
body[data-page="spells"] .tcard .purpose { font-family: var(--hand); font-style: italic; font-size: 1rem; color: var(--hue); line-height: 1.2; }
body[data-page="spells"] .tcard .title { font-family: var(--display); font-size: 1.04rem; line-height: 1.22; }
body[data-page="spells"] .tcard .trad { margin-top: auto; font-size: 0.84rem; color: #bfae9d; }

/* ---------- the book of shadows page ---------- */
body[data-page="spells"] .sheet.grimoire {
  width: min(880px, 100vw - 24px);
  border: 1px solid #6b4a2b;
  border-radius: 3px;
  color: var(--ink);
  background:
    radial-gradient(130% 100% at 50% 40%, transparent 55%, rgba(110, 70, 30, 0.32)),
    var(--parch);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 0 6px #2a1631, 0 0 0 7px rgba(242, 181, 97, 0.35);
}
body[data-page="spells"] .sheet.grimoire::backdrop { background: rgba(12, 5, 14, 0.78); }
body[data-page="spells"] .grimoire .sheet-body {
  padding: 0 clamp(18px, 5vw, 48px) 40px;
  font-family: var(--hand);
  font-size: 1.14rem;
  line-height: 1.55;
}
/* A ribbon bookmark to close the book. */
body[data-page="spells"] .grimoire .close {
  position: sticky;
  top: 0;
  z-index: 2;
  float: right;
  margin: 0 0 -60px 12px;
  appearance: none;
  border: 0;
  border-radius: 0 0 4px 4px;
  padding: 0.9rem 0.9rem 0.55rem;
  font: italic 1rem var(--hand);
  color: #fbeee0;
  background: var(--oxblood);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}
body[data-page="spells"] .grimoire .close:hover { background: #a22c3d; }
body[data-page="spells"] .grimoire .close:focus-visible { outline: 3px solid #0d6f8a; outline-offset: 2px; }
body[data-page="spells"] .leaf-head {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 20px;
  align-items: center;
  padding: 44px 0 16px;
  border-bottom: 3px double rgba(43, 27, 18, 0.55);
}
body[data-page="spells"] .sigil.big { width: 96px; max-width: none; margin: 0; }
body[data-page="spells"] .sigil.big * { stroke: color-mix(in srgb, var(--hue) 40%, #2b1b12); }
body[data-page="spells"] .sigil.big .dot { fill: color-mix(in srgb, var(--hue) 40%, #2b1b12); }
body[data-page="spells"] .leaf-kind { margin: 0; font-style: italic; color: var(--ink-soft); }
body[data-page="spells"] .grimoire h2 { margin: 0.1rem 0 0; font-family: var(--display); font-size: clamp(1.6rem, 4.2vw, 2.3rem); line-height: 1.1; color: var(--ink); }
body[data-page="spells"] .leaf-intro { margin: 18px 0 0; }
body[data-page="spells"] .leaf-intro::first-letter {
  float: left;
  font-family: var(--display);
  font-size: 3.3em;
  line-height: 0.85;
  padding: 0.06em 0.1em 0 0;
  color: var(--oxblood);
}
body[data-page="spells"] .leaf-cols { display: grid; grid-template-columns: 1fr 1.55fr; gap: 12px 40px; margin-top: 10px; clear: both; }
body[data-page="spells"] .grimoire h3 {
  margin: 1.1rem 0 0.6rem;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.2rem;
  letter-spacing: 0;
  color: var(--oxblood);
  border-bottom: 1px solid rgba(43, 27, 18, 0.3);
  padding-bottom: 0.2rem;
}
body[data-page="spells"] .need ul { list-style: none; margin: 0; padding: 0; }
body[data-page="spells"] .need li { position: relative; padding-left: 1.7em; margin: 0 0 0.5em; }
body[data-page="spells"] .need li::before { /* a little drawn sprig */
  content: '';
  position: absolute;
  left: 0;
  top: 0.25em;
  width: 1.1em;
  height: 1.1em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M3 17C4 9 9 4 17 3c-1 8-6 12-14 14zM3 17l7-7M8 12.5l-1-3M10.5 10l2.5.5' fill='none' stroke='%238a2433' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}
body[data-page="spells"] .need li:nth-child(even)::before { transform: scaleX(-1) rotate(8deg); }
body[data-page="spells"] .do ol { list-style: none; margin: 0; padding: 0; counter-reset: step; }
body[data-page="spells"] .do li { position: relative; counter-increment: step; padding-left: 2.6em; margin: 0 0 0.75em; min-height: 1.9em; }
body[data-page="spells"] .do li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.1em;
  width: 1.85em;
  height: 1.85em;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 0.95rem;
  color: var(--ink);
  border: 1.6px solid var(--ink);
  border-radius: 52% 46% 55% 44% / 47% 55% 45% 53%;
  box-shadow: 1px -1px 0 -0.4px rgba(43, 27, 18, 0.55);
  transform: rotate(-6deg);
}
body[data-page="spells"] .do li:nth-child(3n+2)::before { border-radius: 45% 55% 48% 52% / 55% 45% 55% 45%; transform: rotate(9deg); }
body[data-page="spells"] .do li:nth-child(3n)::before { border-radius: 55% 45% 50% 50% / 45% 52% 48% 55%; transform: rotate(-14deg); }
body[data-page="spells"] .call { margin: 18px 0 0; font-style: italic; }
body[data-page="spells"] .grimoire a { color: #1d4f73; text-decoration-thickness: 1px; text-underline-offset: 3px; }
body[data-page="spells"] .grimoire a:hover { color: var(--oxblood); }
body[data-page="spells"] .grimoire a:focus-visible { outline: 2px solid #0d6f8a; outline-offset: 2px; border-radius: 2px; }
body[data-page="spells"] .warn {
  margin: 22px 0 0;
  padding: 12px 16px 14px;
  border: 2px solid var(--warn);
  border-radius: 4px;
  background: rgba(163, 52, 31, 0.1);
  color: #3a140c;
}
body[data-page="spells"] .warn p { margin: 0; }
body[data-page="spells"] .warn .warn-head { display: flex; align-items: center; gap: 0.5em; margin-bottom: 0.3em; font-family: var(--display); font-size: 1.1rem; color: var(--warn); }
body[data-page="spells"] .warn-mark {
  display: inline-grid;
  place-items: center;
  width: 1.4em;
  height: 1.4em;
  border-radius: 50%;
  background: var(--warn);
  color: #fbeee0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 0.9em;
}

/* ---------- small screens ---------- */
@media (max-width: 700px) {
  body[data-page="spells"] .leaf-cols { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  body[data-page="spells"] .deck { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 14px; }
  body[data-page="spells"] .tcard { padding: 12px 10px 12px; }
  body[data-page="spells"] .tcard .title { font-size: 0.95rem; }
  body[data-page="spells"] .tcard .purpose { font-size: 0.92rem; }
  body[data-page="spells"] .candles { height: 116px; }
  body[data-page="spells"] .leaf-head { grid-template-columns: 64px 1fr; gap: 14px; }
  body[data-page="spells"] .sigil.big { width: 64px; }
  body[data-page="spells"] .answer.is-scroll { margin-left: 0; margin-right: 0; }
}

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  body[data-page="spells"] .flame,
  body[data-page="spells"] .answer.is-scroll,
  body[data-page="spells"] .answer.is-scroll > * { animation: none; }
  body[data-page="spells"] .tcard { transition: none; }
  body[data-page="spells"] .tcard:hover,
  body[data-page="spells"] .tcard:focus-visible { transform: rotate(0deg); }
}

/* Save button on the parchment scroll: solid oxblood so it stands out from the paper. */
body[data-page="spells"] .answer .save-row { justify-content: center; margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(43, 27, 18, 0.2); }
body[data-page="spells"] .answer .save-btn,
body[data-page="spells"] .ask-box .answer .save-btn {
  color: #fbf1dc;
  background: linear-gradient(180deg, #8a2a25, var(--oxblood, #6e1f1b));
  border: 1px solid #4d1411;
  box-shadow: 0 2px 0 #3a0f0d, 0 6px 14px rgba(60, 20, 10, 0.3);
  font-weight: 600;
}
body[data-page="spells"] .answer .save-btn:hover { background: linear-gradient(180deg, #9c322c, #7a2420); }
body[data-page="spells"] .answer .save-btn:disabled { opacity: 1; background: #5c4a3a; border-color: #3d3027; box-shadow: none; cursor: default; }
body[data-page="spells"] .answer .save-msg { color: var(--ink-soft, #5a4636); }
body[data-page="spells"] .answer .save-msg a { color: #1d4f73; }
