:root {
  --paper: #f3e7c8;
  --paper-light: #fff8e8;
  --ink: #171514;
  --ink-soft: #46413b;
  --mustard: #e1ae3f;
  --coral: #d96f61;
  --mint: #8fbfa3;
  --blue: #6f96ad;
  --panel: #fff3d5;
  --danger: #b92e24;
  --success: #2e714f;
  --shadow: 6px 6px 0 var(--ink);
  --radius: 8px;
  --max: 1180px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 14px 14px, rgba(23, 21, 20, 0.08) 1px, transparent 1.5px),
    linear-gradient(90deg, rgba(23, 21, 20, 0.025) 1px, transparent 1px),
    var(--paper);
  background-size: 24px 24px, 56px 56px, auto;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.38;
  background-image:
    linear-gradient(rgba(23, 21, 20, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 21, 20, 0.035) 1px, transparent 1px);
  background-size: 100% 9px, 9px 100%;
  mix-blend-mode: multiply;
}

img,
svg {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

:focus-visible {
  outline: 4px solid var(--blue);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 1000;
  padding: 0.7rem 1rem;
  color: var(--paper-light);
  background: var(--ink);
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 3px solid var(--ink);
  background: rgba(243, 231, 200, 0.94);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 1.5rem, var(--max));
  min-height: 76px;
  margin: 0 auto;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background: var(--mustard);
  box-shadow: 3px 3px 0 var(--ink);
  font-weight: 900;
}

.brand-text strong,
.logo-word {
  display: block;
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  font-size: 1rem;
  line-height: 1.1;
}

.brand-text span {
  display: block;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper-light);
  box-shadow: 3px 3px 0 var(--ink);
}

.nav-toggle svg {
  display: block;
  margin: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.site-nav a {
  min-height: 44px;
  padding: 0.7rem 0.8rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  color: var(--ink-soft);
  font-size: 0.94rem;
  font-weight: 800;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  border-color: var(--ink);
  color: var(--ink);
  background: var(--paper-light);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.78rem 1rem;
  gap: 0.55rem;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--paper-light);
  box-shadow: 4px 4px 0 var(--ink);
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  transition: transform 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}

.button:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--ink);
}

.button:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}

.button.primary {
  background: var(--coral);
}

.button.mustard {
  background: var(--mustard);
}

.button.ghost {
  background: var(--paper-light);
  box-shadow: none;
}

.button.subtle {
  border-width: 2px;
  background: transparent;
  box-shadow: none;
}

.button[disabled],
.button[aria-disabled="true"] {
  color: rgba(23, 21, 20, 0.55);
  background: #dfd1ad;
  box-shadow: none;
  transform: none;
}

.icon {
  flex: 0 0 auto;
}

main {
  overflow: hidden;
}

.section {
  position: relative;
  padding: 5rem 0;
  scroll-margin-top: 92px;
}

.wrap {
  width: min(100% - 1.5rem, var(--max));
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 76px);
  padding: 3rem 0 4rem;
  display: flex;
  align-items: center;
  scroll-margin-top: 92px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 470px);
  gap: 2.1rem;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 690px;
  min-width: 0;
}

.sticker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1rem;
  padding: 0.42rem 0.62rem;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background: var(--mustard);
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 0.84rem;
  font-weight: 900;
  transform: rotate(-2deg);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  line-height: 0.98;
  text-wrap: balance;
}

h1 {
  max-width: 740px;
  font-size: 4.6rem;
}

h2 {
  font-size: 3rem;
}

h3 {
  font-size: 1.65rem;
}

.hero-subtitle {
  margin: 1.2rem 0 0.55rem;
  font-size: 1.35rem;
  font-weight: 800;
}

.hero-note,
.section-intro,
.muted {
  color: var(--ink-soft);
}

.hero-note {
  max-width: 650px;
  margin: 0 0 1.35rem;
  font-size: 1.04rem;
}

.trust-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0;
  margin: 0 0 1.8rem;
  list-style: none;
}

.trust-tags li {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.4rem 0.66rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper-light);
  font-size: 0.9rem;
  font-weight: 800;
}

.hero-comparison {
  width: min(100%, 640px);
  margin: 0 0 1.35rem;
  padding: 0.72rem;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper-light);
  box-shadow: 7px 7px 0 var(--ink);
  transform: rotate(-0.8deg);
  --compare: 56%;
}

.hero-comparison-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.62rem;
}

.hero-comparison-title {
  font-weight: 900;
}

.hero-comparison-hint {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0.25rem 0.5rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--mustard);
  box-shadow: 2px 2px 0 var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.hero-comparison-stage {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background: #e9deca;
  isolation: isolate;
}

.compare-art {
  position: absolute;
  inset: 0;
}

.compare-art svg {
  display: block;
  width: 100%;
  height: 100%;
}

.compare-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
}

.compare-before {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(23, 21, 20, 0.08), transparent 38%),
    #ded8c9;
}

.compare-after {
  z-index: 2;
  background:
    repeating-radial-gradient(circle at 68% 42%, rgba(23, 21, 20, 0.12) 0 2px, transparent 2px 9px),
    #f5d890;
  clip-path: inset(0 0 0 var(--compare));
}

.compare-label {
  position: absolute;
  top: 0.65rem;
  z-index: 4;
  padding: 0.24rem 0.48rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper-light);
  box-shadow: 2px 2px 0 var(--ink);
  font-size: 0.76rem;
  font-weight: 900;
}

.compare-label.before {
  left: 0.65rem;
}

.compare-label.after {
  right: 0.65rem;
  background: var(--mustard);
}

.hero-compare-range {
  position: absolute;
  inset: 0;
  z-index: 6;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  cursor: ew-resize;
  opacity: 0.01;
}

.hero-comparison-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--compare);
  z-index: 5;
  width: 4px;
  background: var(--ink);
  box-shadow: 0 0 0 2px rgba(255, 248, 232, 0.72);
  transform: translateX(-50%);
  pointer-events: none;
}

.hero-comparison-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border: 3px solid var(--ink);
  border-radius: 50%;
  color: var(--ink);
  background: var(--paper-light);
  box-shadow: 4px 4px 0 var(--ink);
  font-size: 1.38rem;
  font-weight: 900;
  transform: translate(-50%, -50%);
}

.hero-compare-range:focus-visible + .hero-comparison-divider .hero-comparison-handle {
  outline: 3px solid var(--coral);
  outline-offset: 4px;
}

.comparison-caption {
  margin: 0.65rem 0 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 800;
}

.manga-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 560px;
  gap: 0.7rem;
  margin-top: 1.2rem;
}

.mini-panel {
  min-height: 104px;
  padding: 0.8rem;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper-light);
  box-shadow: 4px 4px 0 var(--ink);
  overflow: hidden;
  position: relative;
}

.mini-panel:nth-child(2) {
  background: #f7dca2;
  transform: rotate(1deg);
}

.mini-panel:nth-child(3) {
  background: #dfe9de;
  transform: rotate(-1deg);
}

.mini-panel span {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 120px;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.mini-panel::before {
  position: absolute;
  right: -20px;
  bottom: -24px;
  width: 88px;
  height: 88px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: repeating-radial-gradient(circle, rgba(23, 21, 20, 0.16) 0 2px, transparent 2px 7px), var(--coral);
  content: "";
}

.mini-panel::after {
  position: absolute;
  inset: 10px;
  border: 2px dashed rgba(23, 21, 20, 0.45);
  border-radius: 50%;
  content: "";
  transform: rotate(-18deg);
}

.generator-card,
.result-card,
.example-card,
.step-card,
.faq-box {
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.generator-card {
  position: relative;
  min-width: 0;
  padding: 1rem;
}

.generator-card::before,
.generator-card::after {
  position: absolute;
  top: -18px;
  width: 34px;
  height: 34px;
  border: 3px solid var(--ink);
  background: var(--panel);
  content: "";
  transform: rotate(45deg);
}

.generator-card::before {
  left: 26px;
  border-right: 0;
  border-bottom: 0;
}

.generator-card::after {
  right: 28px;
  border-left: 0;
  border-bottom: 0;
}

.card-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.card-kicker {
  display: block;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 800;
}

.cat-badge {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 3px 3px 0 var(--ink);
  font-weight: 900;
}

.dropzone {
  display: grid;
  min-height: 236px;
  place-items: center;
  padding: 1rem;
  border: 3px dashed var(--ink);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, transparent 0 45%, rgba(23, 21, 20, 0.08) 45% 48%, transparent 48%),
    var(--paper-light);
  text-align: center;
  transition: transform 140ms ease, background-color 140ms ease, box-shadow 140ms ease;
}

.dropzone:hover,
.dropzone.is-dragover {
  background-color: #ffe8af;
  box-shadow: inset 0 0 0 5px rgba(217, 111, 97, 0.3);
  transform: translateY(-2px);
}

.dropzone strong {
  display: block;
  margin-top: 0.6rem;
  font-size: 1.15rem;
}

.dropzone span {
  display: block;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.cat-figure {
  width: 138px;
  height: 108px;
}

.upload-meta {
  margin: 0.75rem 0 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.file-panel {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 0.9rem;
  align-items: center;
  margin-top: 0.9rem;
  padding: 0.75rem;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper-light);
}

.file-panel[hidden],
.result-section[hidden],
.service-message[hidden],
.demo-note[hidden],
.progress-box[hidden],
.upload-shell[hidden] {
  display: none;
}

.preview-thumb {
  width: 104px;
  aspect-ratio: 1;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background: #ddd;
  object-fit: cover;
}

.file-name {
  display: block;
  max-width: 100%;
  overflow: hidden;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-details {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.25rem 0 0.65rem;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.file-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.link-button {
  min-height: 36px;
  padding: 0.35rem 0.55rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  color: var(--ink);
  background: transparent;
  font-size: 0.86rem;
  font-weight: 900;
}

.link-button:hover {
  background: var(--mustard);
}

.options-panel {
  display: grid;
  gap: 1rem;
  margin-top: 1.1rem;
}

.control-group {
  padding: 0.85rem;
  border: 2px solid rgba(23, 21, 20, 0.45);
  border-radius: var(--radius);
  background: rgba(255, 248, 232, 0.72);
}

.control-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  margin-bottom: 0.6rem;
  font-weight: 900;
}

.control-label span {
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 800;
}

.control-helper {
  margin: -0.25rem 0 0.65rem;
  color: var(--ink-soft);
  font-size: 0.84rem;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--coral);
}

.range-labels {
  display: flex;
  justify-content: space-between;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 800;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  min-height: 40px;
  padding: 0.46rem 0.7rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper-light);
  font-size: 0.88rem;
  font-weight: 900;
  transition: transform 120ms ease, background-color 120ms ease;
}

.chip:hover {
  transform: translateY(-1px);
}

.chip.is-selected {
  background: var(--mustard);
  box-shadow: 3px 3px 0 var(--ink);
}

.chip small {
  display: block;
  color: var(--ink-soft);
  font-size: 0.7rem;
  line-height: 1.1;
}

.turnstile-wrap {
  margin-top: 1rem;
  padding: 0.8rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: #f8eccb;
}

.turnstile-hint,
.permission {
  margin: 0.6rem 0 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.actions {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
}

.service-message {
  padding: 0.8rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: #ffe4df;
  color: var(--danger);
  font-weight: 800;
}

.service-message.success {
  color: var(--success);
  background: #dff1e6;
}

.progress-box {
  margin-top: 1rem;
  padding: 0.9rem;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper-light);
}

.paw-loader {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-bottom: 0.55rem;
}

.paw {
  position: relative;
  width: 18px;
  height: 18px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--coral);
  animation: paw-step 900ms infinite ease-in-out;
}

.paw::before,
.paw::after {
  position: absolute;
  top: -10px;
  width: 8px;
  height: 8px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--coral);
  content: "";
}

.paw::before {
  left: -4px;
}

.paw::after {
  right: -4px;
}

.paw:nth-child(2) {
  animation-delay: 120ms;
}

.paw:nth-child(3) {
  animation-delay: 240ms;
}

.paw:nth-child(4) {
  animation-delay: 360ms;
}

@keyframes paw-step {
  0%, 100% {
    transform: translateY(0) rotate(-5deg);
  }
  50% {
    transform: translateY(-8px) rotate(5deg);
  }
}

.progress-text {
  margin: 0;
  text-align: center;
  font-weight: 900;
}

.section-heading {
  display: grid;
  max-width: 720px;
  gap: 0.75rem;
  margin-bottom: 1.6rem;
}

.section-heading.center {
  margin-inline: auto;
  text-align: center;
}

.result-section {
  padding-top: 4rem;
  background: rgba(255, 248, 232, 0.5);
}

.result-card {
  padding: 1rem;
}

.result-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.demo-note {
  display: inline-flex;
  align-items: center;
  margin-top: 0.5rem;
  padding: 0.35rem 0.55rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--mustard);
  font-size: 0.84rem;
  font-weight: 900;
}

.result-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 1rem;
  align-items: start;
}

.comparison {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background: #dfd1ad;
  touch-action: none;
}

.comparison img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--paper-light);
}

.comparison-before {
  z-index: 2;
  overflow: hidden;
  clip-path: inset(0 50% 0 0);
}

.comparison-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 3;
  width: 4px;
  background: var(--ink);
  transform: translateX(-2px);
}

.comparison-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 4;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--mustard);
  box-shadow: 3px 3px 0 var(--ink);
  transform: translate(-50%, -50%);
  font-weight: 900;
}

.comparison-label {
  position: absolute;
  z-index: 5;
  top: 0.65rem;
  padding: 0.25rem 0.5rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper-light);
  font-size: 0.78rem;
  font-weight: 900;
}

.comparison-label.before {
  left: 0.65rem;
}

.comparison-label.after {
  right: 0.65rem;
}

.compare-range {
  position: absolute;
  inset: auto 0 0;
  z-index: 6;
  width: 100%;
  opacity: 0.01;
}

.result-side {
  display: grid;
  gap: 0.8rem;
}

.result-preview {
  width: 100%;
  aspect-ratio: 1;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper-light);
  object-fit: contain;
}

.toggle-row,
.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.view-toggle {
  flex: 1 1 120px;
  min-height: 40px;
  padding: 0.45rem 0.65rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper-light);
  font-weight: 900;
}

.view-toggle.is-active {
  background: var(--mustard);
  box-shadow: 2px 2px 0 var(--ink);
}

.examples-grid,
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.example-card,
.step-card {
  padding: 1rem;
  background: var(--paper-light);
}

.example-visual {
  position: relative;
  display: block;
  margin-bottom: 0.9rem;
}

.example-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background: var(--panel);
  object-fit: cover;
}

.example-label {
  position: absolute;
  top: 0.55rem;
  z-index: 2;
  padding: 0.22rem 0.5rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper-light);
  box-shadow: 2px 2px 0 var(--ink);
  font-size: 0.76rem;
  font-weight: 900;
}

.example-label.before {
  left: 0.55rem;
}

.example-label.after {
  left: calc(50% + 0.55rem);
}

.example-frame {
  position: relative;
  display: grid;
  min-height: 170px;
  place-items: center;
  overflow: hidden;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background: var(--panel);
}

.example-frame.before {
  background: #e4decf;
}

.example-frame.after {
  background: repeating-radial-gradient(circle, rgba(23, 21, 20, 0.16) 0 2px, transparent 2px 8px), #f6dca1;
}

.frame-tag {
  position: absolute;
  left: 0.35rem;
  top: 0.35rem;
  padding: 0.15rem 0.35rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper-light);
  font-size: 0.72rem;
  font-weight: 900;
}

.face {
  position: relative;
  width: 70px;
  height: 88px;
  border: 3px solid var(--ink);
  border-radius: 50% 50% 46% 46%;
  background: #f4c7a0;
}

.face.cat {
  background: #f1c46e;
  border-radius: 48% 48% 44% 44%;
}

.face.cat::before,
.face.cat::after {
  position: absolute;
  top: -20px;
  width: 28px;
  height: 28px;
  border: 3px solid var(--ink);
  background: #f1c46e;
  content: "";
  transform: rotate(45deg);
}

.face.cat::before {
  left: 4px;
}

.face.cat::after {
  right: 4px;
}

.eye {
  position: absolute;
  top: 34px;
  width: 8px;
  height: 15px;
  border-radius: 50%;
  background: var(--ink);
}

.eye.left {
  left: 20px;
}

.eye.right {
  right: 20px;
}

.mouth {
  position: absolute;
  left: 50%;
  bottom: 24px;
  width: 24px;
  height: 10px;
  border-bottom: 3px solid var(--ink);
  transform: translateX(-50%) rotate(-3deg);
}

.pet-body {
  position: relative;
  width: 90px;
  height: 70px;
  border: 3px solid var(--ink);
  border-radius: 44% 44% 36% 36%;
  background: #d2b07d;
}

.pet-body::before,
.pet-body::after {
  position: absolute;
  top: -20px;
  width: 28px;
  height: 28px;
  border: 3px solid var(--ink);
  background: inherit;
  content: "";
  transform: rotate(45deg);
}

.pet-body::before {
  left: 12px;
}

.pet-body::after {
  right: 12px;
}

.meme-burst {
  display: grid;
  width: 98px;
  height: 98px;
  place-items: center;
  border: 3px solid var(--ink);
  background: var(--coral);
  clip-path: polygon(50% 0, 60% 24%, 85% 14%, 76% 39%, 100% 50%, 76% 61%, 85% 86%, 60% 76%, 50% 100%, 40% 76%, 15% 86%, 24% 61%, 0 50%, 24% 39%, 15% 14%, 40% 24%);
  font-size: 2rem;
  font-weight: 900;
}

.step-number {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  margin-bottom: 0.9rem;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--mustard);
  box-shadow: 3px 3px 0 var(--ink);
  font-weight: 900;
}

.about-section {
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  background:
    linear-gradient(90deg, rgba(232, 109, 92, 0.08), transparent 34%, rgba(129, 177, 163, 0.14)),
    var(--paper-light);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(280px, 0.84fr);
  gap: 1.1rem;
  align-items: start;
}

.about-copy {
  display: grid;
  gap: 1rem;
}

.about-copy p {
  max-width: 820px;
  margin: 0;
  font-size: 1.03rem;
}

.about-panel {
  padding: 1rem;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 6px 6px 0 var(--ink);
}

.about-panel h3 {
  margin: 0 0 0.75rem;
}

.about-list {
  display: grid;
  gap: 0.65rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.about-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.6rem;
  align-items: start;
  padding: 0.7rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: #f8ebcc;
}

.about-mark {
  display: grid;
  width: 1.45rem;
  height: 1.45rem;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--sage);
  font-size: 0.78rem;
  font-weight: 900;
}

.video-section {
  background:
    linear-gradient(180deg, rgba(255, 248, 232, 0.7), rgba(129, 177, 163, 0.13)),
    var(--paper);
}

.video-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.92fr) minmax(0, 1.08fr);
  gap: 1.1rem;
  align-items: center;
}

.video-copy {
  display: grid;
  gap: 1rem;
}

.video-copy p {
  margin: 0;
  font-size: 1.03rem;
}

.video-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.video-meta li,
.video-link {
  padding: 0.3rem 0.5rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper-light);
  font-size: 0.82rem;
  font-weight: 900;
}

.video-link {
  color: var(--ink);
  text-decoration: none;
}

.video-link:hover,
.video-link:focus-visible {
  background: var(--mustard);
}

.video-frame {
  position: relative;
  overflow: hidden;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper-light);
  box-shadow: 8px 8px 0 var(--ink);
  aspect-ratio: 16 / 9;
}

.video-poster {
  position: absolute;
  inset: 0;
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  padding: 0;
  overflow: hidden;
  border: 0;
  color: var(--paper-light);
  background:
    repeating-radial-gradient(circle, rgba(23, 21, 20, 0.15) 0 2px, transparent 2px 10px),
    #dfe9de;
  cursor: pointer;
}

.video-poster img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-poster::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(23, 21, 20, 0.58), rgba(23, 21, 20, 0.12));
  content: "";
}

.video-play-badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.68rem 0.9rem;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--mustard);
  box-shadow: 4px 4px 0 var(--ink);
  font-weight: 900;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.video-play-icon {
  width: 0;
  height: 0;
  border-top: 0.42rem solid transparent;
  border-bottom: 0.42rem solid transparent;
  border-left: 0.72rem solid currentColor;
}

.video-poster:hover .video-play-badge,
.video-poster:focus-visible .video-play-badge {
  box-shadow: 6px 6px 0 var(--ink);
  transform: translate(-2px, -2px);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.inner-hero {
  position: relative;
  padding: 3rem 0 4.2rem;
  display: flex;
  align-items: center;
  border-bottom: 3px solid var(--ink);
  background:
    radial-gradient(circle at 18px 18px, rgba(23, 21, 20, 0.09) 1px, transparent 1.8px),
    linear-gradient(135deg, rgba(217, 111, 97, 0.13), transparent 42%, rgba(143, 191, 163, 0.18)),
    var(--paper);
  background-size: 24px 24px, auto, auto;
  scroll-margin-top: 92px;
}

.inner-hero::after {
  position: absolute;
  right: max(1rem, calc((100vw - var(--max)) / 2));
  bottom: 1.2rem;
  width: min(30vw, 300px);
  height: 54px;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(90deg, rgba(23, 21, 20, 0.2) 0 2px, transparent 2px 12px),
    var(--mustard);
  box-shadow: 5px 5px 0 var(--ink);
  content: "";
  transform: rotate(-2deg);
}

.inner-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: 1.2rem;
  align-items: center;
}

.inner-hero-copy {
  max-width: 740px;
}

.inner-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.2rem 0 1rem;
}

.inner-jump-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  max-width: 620px;
  margin-top: 1.1rem;
}

.inner-jump-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.36rem 0.58rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper-light);
  box-shadow: 2px 2px 0 var(--ink);
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: none;
}

.inner-jump-nav a:hover,
.inner-jump-nav a:focus-visible {
  background: var(--mustard);
}

.inner-disclaimer {
  max-width: 650px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 700;
}

.scruffy-hero-card {
  position: relative;
  min-width: 0;
  padding: 0.8rem;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper-light);
  box-shadow: 8px 8px 0 var(--ink);
  transform: rotate(0.8deg);
}

.scruffy-hero-card::before {
  position: absolute;
  top: -18px;
  right: 1rem;
  width: 86px;
  height: 34px;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(90deg, rgba(23, 21, 20, 0.16) 0 2px, transparent 2px 10px),
    var(--coral);
  content: "";
  transform: rotate(5deg);
}

.scruffy-card-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.scruffy-label,
.section-rubric {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0.25rem 0.5rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--mint);
  box-shadow: 2px 2px 0 var(--ink);
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.scruffy-cat-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(225, 174, 63, 0.22), transparent 45%, rgba(217, 111, 97, 0.16)),
    var(--paper-light);
  box-shadow: inset 0 0 0 5px rgba(23, 21, 20, 0.05);
}

.scruffy-cat-frame::before,
.scruffy-cat-frame::after {
  position: absolute;
  z-index: 1;
  height: 8px;
  border-radius: 999px;
  background: var(--ink);
  content: "";
  opacity: 0.82;
}

.scruffy-cat-frame::before {
  top: 18px;
  left: 18px;
  width: 68px;
  box-shadow: 22px 20px 0 var(--ink), 282px 38px 0 var(--ink);
  transform: rotate(-17deg);
}

.scruffy-cat-frame::after {
  right: 18px;
  bottom: 26px;
  width: 82px;
  box-shadow: -28px 22px 0 var(--ink);
  transform: rotate(9deg);
}

.scruffy-cat-art {
  display: block;
  width: 100%;
  height: 100%;
}

.official-character-frame {
  position: relative;
  display: grid;
  min-height: 340px;
  place-items: end center;
  overflow: hidden;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 18px 18px, rgba(23, 21, 20, 0.1) 1px, transparent 1.8px),
    linear-gradient(135deg, rgba(225, 174, 63, 0.22), transparent 46%, rgba(143, 191, 163, 0.22)),
    var(--paper-light);
  background-size: 22px 22px, auto, auto;
  box-shadow: inset 0 -10px 0 rgba(225, 174, 63, 0.32);
}

.official-character-frame::after {
  position: absolute;
  right: -18px;
  bottom: 18px;
  width: 150px;
  height: 44px;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(90deg, rgba(23, 21, 20, 0.12) 0 2px, transparent 2px 12px),
    var(--mustard);
  content: "";
  transform: rotate(-3deg);
}

.official-character-art {
  position: relative;
  z-index: 1;
  display: block;
  width: min(100%, 340px);
  max-height: 332px;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(7px 7px 0 rgba(23, 21, 20, 0.82));
}

.official-art-source {
  margin: -0.15rem 0 0.75rem;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 800;
}

.official-art-source a {
  font-weight: 900;
}

.scruffy-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0;
  margin: 0.75rem 0;
  list-style: none;
}

.scruffy-tags li {
  padding: 0.32rem 0.48rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--mustard);
  font-size: 0.78rem;
  font-weight: 900;
}

.quick-facts {
  position: relative;
  padding: 1rem;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper-light);
  box-shadow: 8px 8px 0 var(--ink);
}

.quick-facts::before {
  position: absolute;
  top: -18px;
  right: 1rem;
  width: 78px;
  height: 34px;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background: var(--coral);
  content: "";
  transform: rotate(4deg);
}

.quick-facts.embedded {
  padding: 0.75rem;
  box-shadow: 4px 4px 0 var(--ink);
  transform: rotate(-1.1deg);
}

.quick-facts.embedded::before {
  display: none;
}

.quick-facts.embedded .quick-facts-top {
  margin-bottom: 0.6rem;
}

.quick-facts.embedded h2 {
  font-size: 1.65rem;
}

.quick-facts.embedded .fact-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}

.quick-facts.embedded .fact-list div {
  grid-template-columns: 1fr;
  gap: 0.14rem;
  padding: 0.48rem;
}

.quick-facts.embedded .fact-list dt {
  font-size: 0.66rem;
}

.quick-facts.embedded .fact-list dd {
  font-size: 0.86rem;
  line-height: 1.18;
}

.quick-facts-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.quick-facts h2 {
  font-size: 2rem;
}

.facts-badge,
.video-tag {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0.25rem 0.5rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--mustard);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.fact-list {
  display: grid;
  gap: 0.55rem;
  margin: 0;
}

.fact-list div {
  display: grid;
  grid-template-columns: minmax(112px, 0.62fr) minmax(0, 1fr);
  gap: 0.6rem;
  align-items: center;
  padding: 0.62rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: #f8ebcc;
}

.fact-list dt {
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.fact-list dd {
  min-width: 0;
  margin: 0;
  font-weight: 900;
}

.guide-section {
  background:
    linear-gradient(180deg, rgba(255, 248, 232, 0.84), rgba(143, 191, 163, 0.12)),
    var(--paper-light);
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}

.guide-card {
  position: relative;
  min-height: 100%;
  padding: 1rem;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 5px 5px 0 var(--ink);
}

.scruffy-note-card:nth-child(2) {
  background: #f6dfaa;
  transform: rotate(0.7deg);
}

.scruffy-note-card:nth-child(3) {
  background: #dfe9de;
  transform: rotate(-0.7deg);
}

.scruffy-note-card::after {
  position: absolute;
  right: 0.85rem;
  top: 0.9rem;
  width: 46px;
  height: 34px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 20% 70%, var(--ink) 0 4px, transparent 4.5px),
    radial-gradient(circle at 48% 28%, var(--ink) 0 4px, transparent 4.5px),
    radial-gradient(circle at 76% 70%, var(--ink) 0 4px, transparent 4.5px);
  content: "";
  opacity: 0.18;
  transform: rotate(-10deg);
}

.guide-number {
  display: inline-grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  margin-bottom: 0.8rem;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 0.82rem;
  font-weight: 900;
}

.guide-card h3 {
  margin-bottom: 0.7rem;
}

.guide-card p {
  margin: 0;
  color: var(--ink-soft);
}

.source-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  margin-top: 1.2rem;
  padding: 1rem;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(-45deg, rgba(23, 21, 20, 0.05) 0 2px, transparent 2px 12px),
    var(--paper-light);
  box-shadow: 5px 5px 0 var(--ink);
}

.source-panel h3 {
  margin-bottom: 0.45rem;
}

.source-panel p {
  max-width: 720px;
  margin: 0;
  color: var(--ink-soft);
}

.source-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
}

.watch-panel {
  grid-template-columns: minmax(0, 1fr) minmax(260px, auto);
  padding: 1.25rem;
  border-width: 4px;
  background:
    repeating-linear-gradient(-45deg, rgba(23, 21, 20, 0.06) 0 2px, transparent 2px 12px),
    linear-gradient(135deg, #ffe27a 0%, #fff6cf 52%, #dcefe8 100%);
  box-shadow: 7px 7px 0 var(--ink);
}

.watch-kicker {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 0.45rem;
  padding: 0.22rem 0.48rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--mint);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.watch-panel h3 {
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  line-height: 0.95;
}

.watch-panel p {
  max-width: 820px;
  color: var(--ink);
  font-size: clamp(1rem, 2vw, 1.16rem);
  font-weight: 750;
}

.watch-panel .source-links {
  align-items: stretch;
}

.watch-button {
  min-height: 58px;
  padding-inline: 1.1rem;
  font-size: 1rem;
}

.source-panel-wide {
  grid-template-columns: 1fr;
  align-items: start;
}

.source-panel-wide p {
  max-width: 920px;
}

.source-panel-wide .source-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  width: 100%;
  justify-content: stretch;
}

.source-panel-wide .source-links .button {
  width: 100%;
}

.story-section {
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  background:
    repeating-linear-gradient(-45deg, rgba(23, 21, 20, 0.05) 0 2px, transparent 2px 12px),
    var(--paper);
}

.story-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.74fr) minmax(0, 1.26fr);
  gap: 1.2rem;
  align-items: start;
}

.story-panel-grid {
  display: grid;
  gap: 0.85rem;
}

.story-panel {
  position: relative;
  min-height: 150px;
  padding: 1rem 1rem 1rem 4.1rem;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper-light);
  box-shadow: 5px 5px 0 var(--ink);
  overflow: hidden;
}

.story-panel:nth-child(2) {
  background: #f5dfa9;
  transform: rotate(-0.8deg);
}

.story-panel:nth-child(3) {
  background: #dfe9de;
  transform: rotate(0.6deg);
}

.story-panel::after {
  position: absolute;
  right: -28px;
  bottom: -32px;
  width: 118px;
  height: 118px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle, rgba(23, 21, 20, 0.16) 0 2px, transparent 2px 8px),
    var(--coral);
  content: "";
  opacity: 0.72;
}

.story-panel-number {
  position: absolute;
  left: 1rem;
  top: 1rem;
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--mustard);
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 0.8rem;
  font-weight: 900;
}

.story-panel h3 {
  margin-bottom: 0.55rem;
}

.story-panel p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--ink-soft);
}

.character-profile-section {
  overflow: hidden;
  scroll-margin-top: 118px;
  background:
    radial-gradient(circle at 14% 18%, rgba(143, 191, 163, 0.22), transparent 28%),
    radial-gradient(circle at 88% 72%, rgba(217, 111, 97, 0.13), transparent 34%),
    linear-gradient(180deg, #fff 0%, rgba(255, 248, 232, 0.88) 100%),
    var(--paper-light);
}

.character-tabs {
  position: relative;
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: clamp(1.4rem, 3vw, 2.6rem);
  align-items: center;
}

.character-tabs::before {
  position: absolute;
  right: 2.2rem;
  top: -1.2rem;
  width: 118px;
  height: 38px;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(90deg, rgba(23, 21, 20, 0.13) 0 2px, transparent 2px 10px),
    var(--coral);
  content: "";
  transform: rotate(4deg);
}

.character-icon-strip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.62rem;
  align-self: center;
  padding: 0.72rem 0.55rem;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 248, 232, 0.96), rgba(243, 231, 200, 0.86)),
    var(--paper-light);
  box-shadow: 5px 5px 0 var(--ink);
  margin: 0;
}

.character-icon {
  position: relative;
  display: block;
  width: 68px;
  aspect-ratio: 1;
  overflow: visible;
  padding: 0;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--paper-light);
  cursor: pointer;
  transition: transform 160ms ease, opacity 160ms ease;
}

.character-icon::before {
  position: absolute;
  z-index: -1;
  inset: -8px -18px -8px -8px;
  border: 3px solid var(--ink);
  border-radius: 999px 16px 16px 999px;
  background:
    radial-gradient(circle at 12px 12px, rgba(23, 21, 20, 0.12) 1px, transparent 1.7px),
    var(--mint);
  background-size: 16px 16px;
  content: "";
  opacity: 0;
  pointer-events: none;
  transform: translateX(-8px) rotate(-2deg) scale(0.92);
  transition: opacity 160ms ease, transform 160ms ease;
}

.character-icon::after {
  position: absolute;
  z-index: -2;
  right: -24px;
  top: 50%;
  width: 16px;
  height: 16px;
  border-top: 3px solid var(--ink);
  border-right: 3px solid var(--ink);
  background: var(--mint);
  content: "";
  opacity: 0;
  pointer-events: none;
  transform: translate(-10px, -50%) rotate(45deg);
  transition: opacity 160ms ease, transform 160ms ease;
}

.character-icon[aria-selected="true"]::before,
.character-icon[aria-selected="true"]::after {
  opacity: 1;
}

.character-icon[aria-selected="true"] {
  box-shadow: 4px 4px 0 var(--ink);
  transform: translateX(8px) rotate(-2deg);
}

.character-icon[aria-selected="true"]::before {
  transform: translateX(0) rotate(-2deg) scale(1);
}

.character-icon[aria-selected="true"]::after {
  transform: translate(0, -50%) rotate(45deg);
}

.character-icon:hover,
.character-icon:focus-visible {
  opacity: 0.82;
  transform: translateX(5px) rotate(1deg);
}

.character-icon img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 50%;
  object-fit: cover;
}

.character-tab-panels {
  position: relative;
  min-height: 690px;
  padding: clamp(1.1rem, 2vw, 1.6rem);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(225, 174, 63, 0.13), transparent 34%),
    radial-gradient(circle at 22px 22px, rgba(23, 21, 20, 0.08) 1px, transparent 1.8px),
    rgba(255, 248, 232, 0.74);
  background-size: auto, 24px 24px, auto;
  box-shadow: 8px 8px 0 var(--ink);
}

.character-tab-panels::before {
  position: absolute;
  left: clamp(1rem, 3vw, 2rem);
  top: 1.1rem;
  width: 72px;
  height: 22px;
  border-top: 7px solid var(--ink);
  border-bottom: 7px solid var(--ink);
  content: "";
  opacity: 0.13;
  transform: rotate(-14deg);
}

.character-tab-panels::after {
  position: absolute;
  right: 1.2rem;
  bottom: 1.4rem;
  width: 92px;
  height: 22px;
  border-top: 7px solid var(--ink);
  border-bottom: 7px solid var(--ink);
  content: "";
  opacity: 0.11;
  transform: rotate(11deg);
}

.character-feature-panel[hidden] {
  display: none;
}

.character-feature-panel:not([hidden]) {
  animation: character-panel-in 180ms ease-out both;
}

.character-feature-profile {
  display: grid;
  grid-template-columns: minmax(260px, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(1.4rem, 4vw, 4rem);
  align-items: stretch;
  min-height: 650px;
}

.character-feature-art {
  position: relative;
  display: grid;
  min-height: 100%;
  place-items: end center;
  border-right: 2px solid rgba(23, 21, 20, 0.16);
}

.character-feature-art::after {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(92%, 420px);
  height: 42px;
  border-radius: 50%;
  background: rgba(23, 21, 20, 0.11);
  content: "";
  filter: blur(8px);
  transform: translateX(-50%);
}

.character-feature-art img {
  position: relative;
  z-index: 1;
  display: block;
  width: min(108%, 440px);
  aspect-ratio: 1000 / 1150;
  max-height: 620px;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(12px 14px 0 rgba(23, 21, 20, 0.13));
  transform: scale(1.08);
  transform-origin: bottom center;
}

.character-feature-copy {
  position: relative;
  z-index: 1;
  align-self: center;
  min-width: 0;
  padding: clamp(1rem, 2vw, 2rem) clamp(0.2rem, 1vw, 1rem);
}

.character-feature-title {
  display: grid;
  gap: 0.1rem;
  margin: 1.1rem 0 0.9rem;
}

.character-name-ja {
  margin: 0;
  color: var(--mustard);
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  font-size: clamp(4rem, 8vw, 7.4rem);
  font-weight: 900;
  line-height: 0.8;
}

.character-feature-title h2 {
  color: var(--mustard);
  font-size: clamp(3rem, 6vw, 5.4rem);
  line-height: 0.85;
}

.character-feature-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1rem 0 1.8rem;
}

.character-feature-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.28rem 0.65rem;
  gap: 0.55rem;
  background: rgba(243, 231, 200, 0.72);
  font-size: 1rem;
  font-weight: 900;
}

.character-feature-meta strong {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.16rem 0.45rem;
  color: var(--paper-light);
  background: var(--ink);
}

.character-profile-text {
  display: grid;
  gap: 1rem;
  padding-top: 1.4rem;
  border-top: 2px solid var(--ink);
  font-size: 1.22rem;
  font-weight: 800;
  line-height: 1.65;
}

.character-profile-text p {
  margin: 0;
}

.character-profile-note {
  padding: 0.7rem 0.85rem;
  background: rgba(217, 111, 97, 0.08);
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 800;
}

@keyframes character-panel-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.video-library {
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  background:
    linear-gradient(90deg, rgba(225, 174, 63, 0.14), transparent 38%, rgba(217, 111, 97, 0.11)),
    var(--paper);
}

.video-api-status {
  margin-top: 1.2rem;
  padding: 0.75rem 0.9rem;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background: var(--mustard);
  box-shadow: 4px 4px 0 var(--ink);
  font-weight: 900;
}

.video-api-status.error {
  background: #f0c1b8;
}

.video-api-status.success {
  background: #d9ead7;
}

.featured-video-slot:empty {
  display: none;
}

.featured-video-card {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr);
  gap: 1rem;
  align-items: stretch;
  margin-top: 1.2rem;
  padding: 1rem;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper-light);
  box-shadow: 8px 8px 0 var(--ink);
}

.featured-video-card.is-playing {
  grid-template-columns: 1fr;
}

.featured-video-card.is-playing .video-frame {
  width: 100%;
}

.featured-video-card.is-playing .featured-video-copy {
  justify-content: flex-start;
}

.video-card-frame {
  box-shadow: 5px 5px 0 var(--ink);
}

.featured-video-copy,
.video-card-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.7rem;
  min-width: 0;
}

.featured-video-copy {
  justify-content: center;
}

.featured-video-copy h3 {
  font-size: 2rem;
}

.featured-video-copy h3,
.video-card h3,
.featured-video-copy p,
.video-card-body p,
.video-meta-line {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.featured-video-copy p,
.video-card-body p,
.inner-cta p {
  margin: 0;
  color: var(--ink-soft);
}

.video-meta-line {
  font-size: 0.84rem;
  font-weight: 800;
}

.video-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.1rem;
}

@media (max-width: 1100px) {
  .featured-video-card {
    grid-template-columns: 1fr;
  }
}

.video-card {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 0.8rem;
  padding: 0.75rem;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper-light);
  box-shadow: 5px 5px 0 var(--ink);
}

.video-card h3 {
  font-size: 1.2rem;
  line-height: 1.05;
}

.video-card .video-link {
  margin-top: auto;
}

.video-card-skeleton {
  min-height: 280px;
  background:
    linear-gradient(90deg, transparent, rgba(255, 248, 232, 0.72), transparent),
    repeating-linear-gradient(-45deg, rgba(23, 21, 20, 0.08) 0 2px, transparent 2px 12px),
    var(--paper-light);
  background-size: 220px 100%, auto, auto;
  animation: videoSkeleton 1.5s linear infinite;
}

@keyframes videoSkeleton {
  from {
    background-position: -220px 0, 0 0, 0 0;
  }

  to {
    background-position: calc(100% + 220px) 0, 0 0, 0 0;
  }
}

.inner-cta-section {
  background: var(--paper-light);
}

.inner-faq-section {
  background:
    linear-gradient(180deg, rgba(255, 248, 232, 0.82), rgba(225, 174, 63, 0.13)),
    var(--paper);
}

.inner-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1.2rem;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(-45deg, rgba(23, 21, 20, 0.06) 0 2px, transparent 2px 12px),
    var(--mustard);
  box-shadow: 8px 8px 0 var(--ink);
}

.inner-cta h2 {
  margin-bottom: 0.55rem;
  font-size: 2.15rem;
}

.seo-block {
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  background: var(--paper-light);
}

.seo-content {
  display: grid;
  max-width: 850px;
  gap: 1rem;
  margin: 0 auto;
  font-size: 1.04rem;
}

.keyword-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  margin: 0.5rem 0 0;
  list-style: none;
}

.keyword-line li {
  padding: 0.3rem 0.5rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: #f5dfa9;
  font-size: 0.82rem;
  font-weight: 900;
}

.seiyu-hero {
  background:
    radial-gradient(circle at 18px 18px, rgba(23, 21, 20, 0.08) 1px, transparent 1.8px),
    linear-gradient(135deg, rgba(111, 150, 173, 0.18), transparent 44%, rgba(225, 174, 63, 0.25)),
    var(--paper);
  background-size: 24px 24px, auto, auto;
}

.seiyu-answer-card h2 {
  margin: 0.85rem 0 0.45rem;
  font-size: clamp(1.75rem, 5vw, 2.45rem);
}

.seiyu-answer-card > p {
  margin: 0 0 0.85rem;
  color: var(--ink-soft);
  font-weight: 800;
}

.voice-badge-art {
  position: relative;
  display: grid;
  min-height: 190px;
  place-items: center;
  overflow: hidden;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 18px 18px, rgba(23, 21, 20, 0.11) 1px, transparent 1.8px),
    linear-gradient(135deg, rgba(143, 191, 163, 0.26), rgba(255, 248, 232, 0.8) 46%, rgba(217, 111, 97, 0.22)),
    var(--paper-light);
  background-size: 22px 22px, auto, auto;
  box-shadow: inset 0 -10px 0 rgba(23, 21, 20, 0.07);
}

.voice-mark {
  position: relative;
  z-index: 2;
  display: grid;
  width: 116px;
  height: 116px;
  place-items: center;
  border: 4px solid var(--ink);
  border-radius: 50%;
  background: var(--mustard);
  box-shadow: 7px 7px 0 var(--ink);
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  font-size: 3.3rem;
  font-weight: 900;
  line-height: 1;
}

.voice-wave {
  position: absolute;
  display: block;
  border: 4px solid var(--ink);
  border-left: 0;
  border-radius: 0 999px 999px 0;
}

.voice-wave.one {
  right: 52px;
  width: 42px;
  height: 58px;
}

.voice-wave.two {
  right: 34px;
  width: 72px;
  height: 92px;
  opacity: 0.7;
}

.voice-wave.three {
  right: 16px;
  width: 104px;
  height: 128px;
  opacity: 0.42;
}

.seiyu-summary-grid .guide-card {
  min-height: 230px;
}

.seiyu-table-section {
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  background:
    repeating-linear-gradient(-45deg, rgba(23, 21, 20, 0.04) 0 2px, transparent 2px 12px),
    var(--paper);
}

.voice-table-wrap {
  overflow-x: auto;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper-light);
  box-shadow: 7px 7px 0 var(--ink);
}

.voice-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  text-align: left;
}

.voice-table th,
.voice-table td {
  padding: 0.95rem;
  border-bottom: 2px solid var(--ink);
  border-right: 2px solid var(--ink);
  vertical-align: top;
}

.voice-table th:last-child,
.voice-table td:last-child {
  border-right: 0;
}

.voice-table tr:last-child th,
.voice-table tr:last-child td {
  border-bottom: 0;
}

.voice-table thead th {
  background: var(--mustard);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.voice-table tbody th {
  width: 27%;
  background: #f8ebcc;
  font-weight: 900;
}

.voice-table tbody tr:nth-child(even) td,
.voice-table tbody tr:nth-child(even) th {
  background-color: #eef3e9;
}

.voice-table a {
  font-weight: 900;
}

.seiyu-profile-section {
  background:
    linear-gradient(180deg, rgba(255, 248, 232, 0.88), rgba(143, 191, 163, 0.13)),
    var(--paper-light);
}

.actor-profile-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}

.actor-profile-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  align-items: flex-start;
  padding: 1rem;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 5px 5px 0 var(--ink);
}

.actor-profile-card:nth-child(3n) {
  background: #dfe9de;
}

.actor-profile-card:nth-child(4n) {
  background: #f6dfaa;
}

.actor-profile-card h3 {
  margin: 0.8rem 0 0.55rem;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
}

.actor-profile-card p {
  margin: 0;
  color: var(--ink-soft);
  font-weight: 750;
}

.profile-role-list {
  display: grid;
  gap: 0.45rem;
  width: 100%;
  padding: 0;
  margin: 0.85rem 0 1rem;
  list-style: none;
}

.profile-role-list li {
  padding: 0.5rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: rgba(255, 248, 232, 0.72);
  font-size: 0.88rem;
  font-weight: 900;
  line-height: 1.28;
}

.actor-profile-card .button {
  width: 100%;
  margin-top: auto;
}

.sticky-note-heading {
  position: sticky;
  top: 104px;
}

.seiyu-video-section {
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  background:
    radial-gradient(circle at 18px 18px, rgba(23, 21, 20, 0.08) 1px, transparent 1.8px),
    var(--paper);
  background-size: 24px 24px, auto;
}

.seiyu-change-section {
  background:
    linear-gradient(180deg, rgba(255, 248, 232, 0.86), rgba(111, 150, 173, 0.14)),
    var(--paper-light);
}

.seiyu-compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  max-width: 980px;
  margin: 1.2rem auto 0;
}

.seiyu-compare-card {
  min-height: 260px;
  padding: 1rem;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 6px 6px 0 var(--ink);
}

.seiyu-compare-card.accent {
  background: #dfe9de;
  transform: rotate(0.6deg);
}

.seiyu-compare-card h3 {
  margin: 0.75rem 0 0.65rem;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
}

.seiyu-compare-card p {
  margin: 0;
  color: var(--ink-soft);
  font-weight: 750;
}

.seiyu-note {
  max-width: 880px;
  margin: 1rem auto 0;
  padding: 0.85rem 1rem;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background: var(--mustard);
  box-shadow: 4px 4px 0 var(--ink);
  font-weight: 900;
}

.faq-list {
  display: grid;
  gap: 0.8rem;
  max-width: 900px;
  margin: 0 auto;
}

.faq-box {
  overflow: hidden;
  background: var(--paper-light);
  box-shadow: 4px 4px 0 var(--ink);
}

.faq-box summary {
  min-height: 54px;
  padding: 0.9rem 1rem;
  cursor: pointer;
  font-weight: 900;
}

.faq-box summary:hover {
  background: #f8e4ae;
}

.faq-box p {
  margin: 0;
  padding: 0 1rem 1rem;
  color: var(--ink-soft);
}

.site-footer {
  border-top: 3px solid var(--ink);
  background: var(--ink);
  color: var(--paper-light);
}

.footer-inner {
  display: grid;
  width: min(100% - 1.5rem, var(--max));
  gap: 1rem;
  margin: 0 auto;
  padding: 2rem 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a {
  color: var(--paper-light);
  font-weight: 900;
}

.footer-note {
  max-width: 880px;
  margin: 0;
  color: rgba(255, 248, 232, 0.78);
  font-size: 0.92rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1024px) {
  h1 {
    font-size: 3.65rem;
  }

  h2 {
    font-size: 2.45rem;
  }

  .hero-grid,
  .inner-hero-grid,
  .result-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    align-items: flex-start;
    padding-top: 2rem;
  }

  .inner-hero {
    padding-top: 2.6rem;
  }

  .inner-hero::after {
    width: 210px;
    opacity: 0.74;
  }

  .generator-card {
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
  }

  .video-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .actor-profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .header-inner {
    min-height: 68px;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 3px);
    left: 0.75rem;
    right: 0.75rem;
    display: none;
    padding: 0.75rem;
    border: 3px solid var(--ink);
    border-radius: var(--radius);
    background: var(--paper-light);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a,
  .site-nav .button {
    width: 100%;
    justify-content: flex-start;
  }

  h1 {
    font-size: 2.9rem;
  }

  h2 {
    font-size: 2.05rem;
  }

  .hero-subtitle {
    font-size: 1.12rem;
  }

  .hero-comparison {
    max-width: 620px;
    margin-right: auto;
    margin-left: auto;
    transform: none;
  }

  .manga-strip,
  .examples-grid,
  .about-grid,
  .video-grid,
  .guide-grid,
  .story-layout,
  .actor-profile-grid,
  .seiyu-compare-grid,
  .character-feature-profile,
  .featured-video-card,
  .source-panel,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .manga-strip {
    display: none;
  }

  .result-top {
    display: grid;
  }

  .scruffy-hero-card {
    transform: none;
  }

  .story-panel {
    min-height: 132px;
  }

  .sticky-note-heading {
    position: static;
  }

  .seiyu-compare-card,
  .seiyu-compare-card.accent {
    min-height: 0;
    transform: none;
  }

  .character-tabs {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .character-tabs::before {
    right: 1rem;
    top: -0.6rem;
    width: 82px;
    height: 28px;
  }

  .character-icon-strip {
    flex-direction: row;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 0.62rem;
    scroll-snap-type: x proximity;
  }

  .character-icon {
    flex: 0 0 68px;
    width: 68px;
    scroll-snap-align: start;
  }

  .character-icon::before {
    inset: -8px -8px -18px -8px;
    border-radius: 999px 999px 16px 16px;
    transform: translateY(-6px) rotate(-1deg) scale(0.92);
  }

  .character-icon::after {
    right: auto;
    left: 50%;
    top: auto;
    bottom: -24px;
    transform: translate(-50%, -10px) rotate(135deg);
  }

  .character-icon[aria-selected="true"] {
    transform: translateY(-4px) rotate(-2deg);
  }

  .character-icon[aria-selected="true"]::before {
    transform: translateY(0) rotate(-1deg) scale(1);
  }

  .character-icon[aria-selected="true"]::after {
    transform: translate(-50%, 0) rotate(135deg);
  }

  .character-icon:hover,
  .character-icon:focus-visible {
    transform: translateY(-3px) rotate(1deg);
  }

  .character-tab-panels {
    min-height: 0;
    padding: 1rem;
    box-shadow: 5px 5px 0 var(--ink);
  }

  .character-feature-profile {
    gap: 1.2rem;
    min-height: 0;
  }

  .character-feature-copy {
    order: -1;
    padding-bottom: 0;
  }

  .character-feature-art {
    min-height: 540px;
    border-right: 0;
  }

  .character-feature-art img {
    max-height: 560px;
  }

  .inner-cta {
    grid-template-columns: 1fr;
  }

  .source-links {
    justify-content: flex-start;
  }

  .inner-cta .button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .brand-text span {
    max-width: 160px;
  }

  .section {
    padding: 3.6rem 0;
  }

  .hero {
    min-height: auto;
    padding: 1.5rem 0 3rem;
  }

  .inner-hero {
    padding: 1.7rem 0 3.2rem;
  }

  .inner-hero::after {
    display: none;
  }

  h1 {
    font-size: 2.45rem;
  }

  .generator-card,
  .result-card,
  .example-card,
  .step-card,
  .quick-facts,
  .scruffy-hero-card,
  .story-panel,
  .voice-table-wrap,
  .seiyu-compare-card,
  .featured-video-card,
  .video-card,
  .inner-cta {
    box-shadow: 4px 4px 0 var(--ink);
  }

  .quick-facts h2,
  .featured-video-copy h3,
  .inner-cta h2 {
    font-size: 1.7rem;
  }

  .character-name-ja {
    font-size: 3.35rem;
  }

  .character-icon {
    flex-basis: 58px;
    width: 58px;
  }

  .character-tab-panels {
    padding: 0.72rem;
  }

  .character-feature-art {
    min-height: 410px;
  }

  .character-feature-art img {
    max-height: 430px;
  }

  .character-feature-title h2 {
    font-size: 2.85rem;
  }

  .character-profile-text {
    font-size: 1rem;
  }

  .fact-list div {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .inner-jump-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .inner-jump-nav a {
    justify-content: center;
  }

  .scruffy-tags {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .scruffy-tags li {
    text-align: center;
  }

  .official-character-frame {
    min-height: 320px;
  }

  .official-character-art {
    width: min(100%, 300px);
    max-height: 312px;
  }

  .story-panel {
    padding: 4.15rem 0.85rem 0.95rem;
  }

  .inner-hero-actions .button {
    width: 100%;
  }

  .video-card-grid {
    grid-template-columns: 1fr;
  }

  .file-panel {
    grid-template-columns: 1fr;
  }

  .preview-thumb {
    width: 100%;
    max-height: 220px;
    aspect-ratio: 4 / 3;
  }

  .dropzone {
    min-height: 210px;
  }

  .trust-tags {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust-tags li {
    justify-content: center;
    width: 100%;
    min-width: 0;
    font-size: 0.82rem;
    line-height: 1.2;
    text-align: center;
  }

  .hero-comparison {
    padding: 0.55rem;
    box-shadow: 4px 4px 0 var(--ink);
  }

  .hero-comparison-top {
    align-items: flex-start;
  }

  .hero-comparison-hint {
    white-space: normal;
  }

  .hero-comparison-handle {
    width: 48px;
    height: 48px;
    font-size: 1.18rem;
  }

  .chip-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.25rem;
  }

  .chip {
    flex: 0 0 auto;
  }

  .result-actions .button {
    width: 100%;
  }

  .voice-badge-art {
    min-height: 160px;
  }

  .voice-mark {
    width: 96px;
    height: 96px;
    font-size: 2.8rem;
  }

  .voice-table {
    min-width: 720px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* Yani Neko PFP directory */
.pfp-hero {
  position: relative;
  overflow: hidden;
  padding: 4.2rem 0 4.6rem;
  background:
    linear-gradient(102deg, rgba(225, 174, 63, 0.34) 0 12%, transparent 12% 100%),
    var(--paper-light);
  border-bottom: 3px solid var(--ink);
}

.pfp-hero::before,
.pfp-hero::after {
  position: absolute;
  z-index: 0;
  color: rgba(225, 174, 63, 0.32);
  font-family: Georgia, serif;
  font-weight: 900;
  line-height: 0.7;
  pointer-events: none;
  content: "★";
}

.pfp-hero::before {
  top: 2.2rem;
  right: 9%;
  font-size: 8rem;
  transform: rotate(13deg);
}

.pfp-hero::after {
  right: 2%;
  bottom: 1.3rem;
  font-size: 4rem;
  transform: rotate(-19deg);
}

.pfp-hero-grid,
.pfp-crediting-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.58fr);
  gap: clamp(1.4rem, 4vw, 4.5rem);
  align-items: center;
}

.pfp-hero-copy {
  max-width: 760px;
}

.pfp-hero-copy h1 {
  max-width: 650px;
  margin: 0.8rem 0 1rem;
}

.pfp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.6rem 0 1rem;
}

.pfp-feature-card {
  min-width: 0;
  padding: clamp(1.2rem, 3vw, 2.2rem);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background: #fff8e8;
  box-shadow: 9px 9px 0 var(--ink);
  transform: rotate(1deg);
}

.pfp-promise-mark {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 0.8rem;
  border: 3px solid var(--ink);
  border-radius: 50%;
  place-items: center;
  background: var(--coral);
  color: var(--ink);
  font-size: 1.65rem;
  font-weight: 900;
}

.pfp-promise-card h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.pfp-promise-card ul {
  display: grid;
  gap: 0.45rem;
  margin: 1rem 0;
  padding: 0;
  list-style: none;
  font-weight: 800;
}

.pfp-promise-card li::before {
  margin-right: 0.55rem;
  color: var(--coral);
  content: "✓";
}

.pfp-promise-card p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.55;
}

.pfp-feature-card .twitter-tweet {
  width: min(100%, 550px) !important;
  margin: 0.8rem auto 0 !important;
}

.pfp-guide {
  background: var(--paper-light);
}

.pfp-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.pfp-guide-card {
  position: relative;
  min-height: 220px;
  padding: 1.25rem;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 6px 6px 0 var(--ink);
}

.pfp-guide-card:nth-child(2) {
  background: #f2dca9;
}

.pfp-guide-card:nth-child(3) {
  background: #f6ebd1;
}

.pfp-guide-card h3 {
  margin: 0.8rem 0 0.55rem;
  font-size: 1.35rem;
}

.pfp-guide-card p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.55;
}

.pfp-gallery-section {
  background: var(--paper);
}

.pfp-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
  align-items: start;
}

.pfp-embed-card {
  min-width: 0;
  overflow: hidden;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper-light);
  box-shadow: 7px 7px 0 var(--ink);
}

.pfp-embed-credit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1rem;
  padding: 0.75rem 0.85rem;
  border-bottom: 3px solid var(--ink);
  background: #efd790;
  font-size: 0.9rem;
}

.pfp-embed-credit a {
  color: var(--ink);
  font-weight: 900;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.pfp-embed-card .twitter-tweet {
  width: min(100% - 1.5rem, 550px) !important;
  margin: 0.75rem auto !important;
}

.pfp-feature-source,
.pfp-gallery > .pfp-embed-card:first-child { display: none; }

main.pfp-directory { display: flex; flex-direction: column; }
main.pfp-directory .pfp-hero { order: 0; }
main.pfp-directory .pfp-gallery-section { order: 1; }
main.pfp-directory .pfp-anime-section { order: 2; }
main.pfp-directory .pfp-guide { order: 3; }
main.pfp-directory .pfp-crediting { order: 4; }

.pfp-anime-section {
  border-top: 3px solid var(--ink);
  background: #f3e5c4;
}

.pfp-anime-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.pfp-video-card {
  overflow: hidden;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper-light);
  box-shadow: 7px 7px 0 var(--ink);
}

.pfp-video-frame {
  aspect-ratio: 16 / 9;
  background: var(--ink);
}

.pfp-video-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.pfp-video-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  padding: 0.85rem;
  background: #efd790;
  font-size: 0.95rem;
  font-weight: 900;
}

.pfp-video-copy a,
.pfp-anime-note a {
  color: var(--ink);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.pfp-anime-note {
  margin: 1.1rem 0 0;
}

.pfp-crediting {
  border-top: 3px solid var(--ink);
  background: #eee0bd;
}

.pfp-crediting-layout {
  align-items: start;
}

.pfp-crediting h2 {
  margin: 0.35rem 0 0.8rem;
}

.pfp-crediting p {
  max-width: 610px;
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.65;
}

.pfp-credit-list {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: pfp-credit;
}

.pfp-credit-list li {
  position: relative;
  padding: 0.85rem 0.9rem 0.85rem 3.4rem;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: var(--paper-light);
  line-height: 1.5;
}

.pfp-credit-list li::before {
  position: absolute;
  top: 50%;
  left: 0.7rem;
  display: grid;
  width: 28px;
  height: 28px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  place-items: center;
  background: var(--mustard);
  content: counter(pfp-credit);
  counter-increment: pfp-credit;
  font-size: 0.78rem;
  font-weight: 900;
  transform: translateY(-50%);
}

@media (max-width: 860px) {
  .pfp-hero-grid,
  .pfp-crediting-layout,
  .pfp-gallery,
  .pfp-anime-grid,
  .pfp-guide-grid {
    grid-template-columns: 1fr;
  }

  .pfp-feature-card {
    max-width: 620px;
    transform: rotate(-0.75deg);
  }
}

@media (max-width: 480px) {
  .pfp-hero {
    padding: 2.8rem 0 3.3rem;
  }

  .pfp-hero-actions .button {
    width: 100%;
  }

  .pfp-embed-credit {
    align-items: flex-start;
    flex-direction: column;
  }

  .pfp-embed-card .twitter-tweet {
    width: calc(100% - 1rem) !important;
    margin: 0.5rem auto !important;
  }
}
