:root {
  color-scheme: dark;
  --panel: rgb(16 12 24 / 60%);
  --text: #f4edf5;
  --muted: #d1bfcf;
  --accent: #ff8fbf;
}
* { box-sizing: border-box; }
body {
  isolation: isolate;
  margin: 0;
  min-height: 100vh;
  background-color: #181a1b;
  background-image: linear-gradient(135deg, #2a1822 0%, #1a1419 55%, #141518 100%);
  background-attachment: fixed;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.75;
  font-family: "Comic Sans MS", "Segoe UI", "Quicksand", ui-rounded, "Hiragino Maru Gothic ProN", system-ui, sans-serif;
}
main { position: relative; z-index: 1; width: min(calc(100% - 2rem), 45rem); margin-inline: auto; padding-block: clamp(2.5rem, 8vw, 4rem); }
#waifu {
  position: fixed;
  right: 2vw;
  bottom: 0;
  height: 92vh;
  max-width: 46vw;
  object-fit: contain;
  object-position: bottom right;
  opacity: 0.22;
  z-index: 0;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to top, transparent 0%, #000 22%);
  mask-image: linear-gradient(to top, transparent 0%, #000 22%);
}
@media (max-width: 640px) {
  #waifu { height: 70vh; max-width: 90vw; right: 0; opacity: 0.12; }
}
h1 { font-size: clamp(1.75rem, 7vw, 2.6rem); color: var(--accent); line-height: 1.25; margin: 0; }
h2 { font-size: 1.25rem; color: var(--accent); margin: 0 0 10px; }
.lead { margin-block: 0.75rem 0; }
section { margin-top: 2rem; padding-top: 1.25rem; }
ol, ul { padding-left: 1.3em; margin-block: 0.5rem 0; }
li { margin: 8px 0; }
a { color: var(--accent); text-underline-offset: 0.2em; }
code {
  font-family: ui-monospace, "JetBrains Mono", Consolas, monospace;
  background: rgb(255 143 191 / 10%); padding: 1px 6px; border-radius: 6px; font-size: .92em;
}
/* Glowing pill buttons, same as the main site's nav */
.bookmarklet, button {
  font-family: ui-monospace, "JetBrains Mono", Consolas, monospace;
  text-decoration: none;
  cursor: pointer;
  padding: 0.4rem 1.1rem;
  border: 1px solid rgb(255 143 191 / 55%);
  border-radius: 999px;
  background: rgb(255 143 191 / 7%);
  color: var(--accent);
  box-shadow: 0 0 14px rgb(255 143 191 / 18%), inset 0 0 8px rgb(255 143 191 / 8%);
  transition: box-shadow 0.2s, background 0.2s;
}
.bookmarklet:hover, button:hover {
  background: rgb(255 143 191 / 14%);
  box-shadow: 0 0 20px rgb(255 143 191 / 35%), inset 0 0 10px rgb(255 143 191 / 12%);
}
.bookmarklet { display: inline-block; margin: 8px 0; cursor: grab; font-weight: 700; }
.note { font-size: .85em; color: var(--muted); }
textarea {
  width: 100%; margin-top: 12px; border-radius: 12px;
  border: 1px solid rgb(255 143 191 / 55%);
  background: transparent; color: var(--text); padding: 10px;
  font: 11px/1.5 ui-monospace, "JetBrains Mono", Consolas, monospace;
}
footer { margin-top: 48px; font-size: 0.875rem; color: var(--muted); }
