:root,
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f8f5ff;
  --muted: #e3e9fa;
  --strong-text: #f8f5ff;
  --strong-muted: #eef3ff;
  --panel: rgba(17, 21, 38, 0.74);
  --panel-solid: #161b2f;
  --line: rgba(255, 255, 255, 0.16);
  --chip: rgba(255, 255, 255, 0.08);
  --chip-hover: rgba(255, 255, 255, 0.12);
  --header-bg: rgba(10, 13, 25, 0.72);
  --body-bg:
    radial-gradient(circle at 22% 26%, rgba(255, 218, 117, 0.32), transparent 28rem),
    radial-gradient(circle at 7% 14%, rgba(255, 111, 177, 0.22), transparent 30rem),
    radial-gradient(circle at 88% 12%, rgba(78, 230, 200, 0.16), transparent 27rem),
    linear-gradient(135deg, #171225 0%, #302233 42%, #20313a 100%);
  --experience-bg: linear-gradient(180deg, rgba(8, 12, 25, 0.55), rgba(17, 23, 42, 0.8));
  --stash-bg:
    linear-gradient(90deg, rgba(255, 111, 177, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(13, 16, 31, 0.9), rgba(25, 18, 40, 0.82));
  --contact-bg: linear-gradient(135deg, rgba(8, 11, 22, 0.9), rgba(27, 28, 48, 0.95));
  --art-overlay: linear-gradient(rgba(8, 9, 19, 0.1), rgba(8, 9, 19, 0.34));
  --pink: #ff6fb1;
  --mint: #4ee6c8;
  --gold: #ffd166;
  --red: #ff5a63;
  --blue: #5da9ff;
  --green: #9ee37d;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
}

:root[data-theme="light"] {
  color-scheme: light;
  --ink: #21182d;
  --muted: #26324a;
  --strong-text: #050815;
  --strong-muted: #07101f;
  --panel: rgba(255, 255, 255, 0.76);
  --panel-solid: #ffffff;
  --line: rgba(53, 40, 78, 0.16);
  --chip: rgba(255, 255, 255, 0.72);
  --chip-hover: rgba(255, 111, 177, 0.14);
  --header-bg: rgba(255, 250, 255, 0.78);
  --body-bg:
    radial-gradient(circle at 22% 24%, rgba(255, 218, 117, 0.48), transparent 30rem),
    radial-gradient(circle at top left, rgba(255, 111, 177, 0.2), transparent 32rem),
    radial-gradient(circle at 86% 14%, rgba(78, 230, 200, 0.18), transparent 28rem),
    linear-gradient(135deg, #fff7ef 0%, #fff9dc 36%, #eefbff 100%);
  --experience-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.52), rgba(235, 246, 255, 0.86));
  --stash-bg:
    linear-gradient(90deg, rgba(255, 111, 177, 0.15), transparent 30%),
    linear-gradient(180deg, rgba(255, 250, 255, 0.9), rgba(240, 255, 250, 0.84));
  --contact-bg: linear-gradient(135deg, rgba(255, 252, 244, 0.95), rgba(241, 247, 255, 0.96));
  --art-overlay: linear-gradient(rgba(255, 255, 255, 0.08), rgba(255, 247, 252, 0.22));
  --shadow: 0 22px 60px rgba(82, 62, 118, 0.16);
}

* {
  box-sizing: border-box;
}

.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;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--body-bg);
  color: var(--ink);
  transition: background 220ms ease, color 220ms ease;
}

.site-footer {
  display: flex;
  justify-content: center;
  padding: 1.1rem 1rem 1.35rem;
  border-top: 1px solid var(--line);
  background: var(--header-bg);
  color: var(--muted);
}

.record-info {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2rem;
  font-size: 0.78rem;
  line-height: 1.4;
}

.record-info img {
  width: 1.45rem;
  height: 1.45rem;
  object-fit: contain;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
  padding: 0.8rem clamp(1rem, 4vw, 4.5rem);
  border-bottom: 1px solid var(--line);
  background: var(--header-bg);
  backdrop-filter: blur(18px);
}

.brand,
.header-actions,
.nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.7rem;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.4rem;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--pink), var(--mint));
  color: #10111e;
  font-size: 0.92rem;
  box-shadow: 0 0 28px rgba(255, 111, 177, 0.38);
}

.nav {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem;
}

.nav a {
  min-height: 2.25rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav a:hover {
  background: var(--chip-hover);
  color: var(--ink);
}

.header-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.7rem;
}

.theme-switcher {
  display: grid;
  grid-template-columns: repeat(2, minmax(2.25rem, 1fr));
  gap: 0.2rem;
  padding: 0.2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--chip);
}

.theme-option {
  min-width: 2.25rem;
  min-height: 2rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
}

.theme-option[aria-pressed="true"] {
  background: linear-gradient(135deg, var(--pink), var(--mint));
  color: #10111e;
}

.section-band {
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 4vw, 4.5rem);
}

.section-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(19rem, 1.1fr);
  align-items: center;
  min-height: calc(100vh - 4.5rem);
  gap: clamp(2rem, 6vw, 5rem);
}

.hero::after {
  content: "";
  position: absolute;
  right: -4rem;
  bottom: -9rem;
  width: 28rem;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.14);
  transform: rotate(22deg);
  pointer-events: none;
}

.hero-art {
  width: min(100%, 38rem);
  aspect-ratio: 4 / 5;
  justify-self: center;
  border-radius: 8px;
  background:
    var(--art-overlay),
    url("assets/hero-anime-game.png") center / cover;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow), 0 0 0 0.55rem rgba(255, 255, 255, 0.04);
}

.hero-content {
  position: absolute;
  left: 46.4%;
  top: 12.7%;
  z-index: 1;
  width: 37.9%;
  min-height: 22.4%;
  transform: none;
}

.hero-meme-wrap {
  position: absolute;
  left: 46.1%;
  top: 38.6%;
  z-index: 1;
  width: 39.5%;
  height: 47.9%;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: transparent;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.16));
}

.hero-meme-wrap::before {
  content: "";
  position: absolute;
  inset: -2.4rem;
  border-radius: 28px;
  background:
    radial-gradient(circle at 44% 42%, rgba(255, 246, 226, 0.32), rgba(255, 226, 162, 0.14) 32%, transparent 68%),
    linear-gradient(135deg, rgba(255, 111, 177, 0.1), rgba(78, 230, 200, 0.08));
  filter: blur(28px);
  opacity: 0.72;
}

:root[data-theme="dark"] .hero-meme-wrap::before {
  background:
    radial-gradient(circle at 44% 42%, rgba(255, 236, 200, 0.16), rgba(255, 188, 94, 0.08) 34%, transparent 70%),
    linear-gradient(135deg, rgba(255, 111, 177, 0.12), rgba(78, 230, 200, 0.06));
  opacity: 0.62;
}

.hero-meme {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
  opacity: 0.92;
  mix-blend-mode: normal;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.35) 5%, #000 14%, #000 86%, rgba(0, 0, 0, 0.35) 95%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.3) 6%, #000 16%, #000 84%, rgba(0, 0, 0, 0.3) 94%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.35) 5%, #000 14%, #000 86%, rgba(0, 0, 0, 0.35) 95%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.3) 6%, #000 16%, #000 84%, rgba(0, 0, 0, 0.3) 94%, transparent 100%);
  mask-composite: intersect;
}

.kicker {
  margin: 0 0 0.75rem;
  color: var(--mint);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 11ch;
  margin-bottom: 1rem;
  font-size: clamp(3rem, 8vw, 6.6rem);
  line-height: 0.95;
}

h2 {
  margin-bottom: 0.7rem;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
}

h3 {
  margin-bottom: 0.45rem;
  font-size: 1.1rem;
}

.hero-copy,
.section-heading p,
.timeline-item p,
.stash-card p {
  color: var(--muted);
  line-height: 1.75;
}

.hero-copy,
.section-heading p,
.review-lead,
.review-card p:not(.kicker),
.contact-panel span {
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.42);
}

:root[data-theme="dark"] .hero-copy,
:root[data-theme="dark"] .section-heading p,
:root[data-theme="dark"] .review-lead,
:root[data-theme="dark"] .review-card p:not(.kicker),
:root[data-theme="dark"] .contact-panel span {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.hero-copy {
  max-width: 56rem;
  font-size: 1.08rem;
}

.hero-copy span {
  display: block;
}

.signature-line {
  margin-top: 0.35rem;
}

.intro-line {
  white-space: nowrap;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.tag-row span {
  padding: 0.58rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--chip);
  color: var(--ink);
  font-size: 0.9rem;
}

.experience {
  background: var(--experience-bg);
}

.section-heading {
  max-width: 46rem;
  margin-bottom: 2rem;
}

.timeline {
  display: grid;
  gap: 1rem;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1.2rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.18);
}

.timeline-item-featured {
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)),
    url("assets/experience-first-bg.jpg") center / cover;
}

:root[data-theme="dark"] .timeline-item-featured {
  background:
    linear-gradient(rgba(17, 21, 38, 0.5), rgba(17, 21, 38, 0.5)),
    url("assets/experience-first-bg.jpg") center / cover;
}

.timeline-item-second {
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)),
    url("assets/experience-second-bg.jpg") center / cover;
}

:root[data-theme="dark"] .timeline-item-second {
  background:
    linear-gradient(rgba(17, 21, 38, 0.5), rgba(17, 21, 38, 0.5)),
    url("assets/experience-second-bg.jpg") center / cover;
}

.timeline-item-third {
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)),
    url("assets/experience-third-bg.jpg") center / cover;
}

:root[data-theme="dark"] .timeline-item-third {
  background:
    linear-gradient(rgba(17, 21, 38, 0.5), rgba(17, 21, 38, 0.5)),
    url("assets/experience-third-bg.jpg") center / cover;
}

.timeline-item h3 {
  align-self: center;
  justify-self: center;
  margin: 0;
  color: var(--strong-text);
  font-weight: 950;
  line-height: 1.45;
  text-align: center;
}

.timeline-item p {
  margin: 0;
  color: var(--strong-muted);
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.55);
}

.stash {
  background: var(--stash-bg);
}

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

.stash-card {
  display: block;
  min-height: 16rem;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-solid);
  box-shadow: var(--shadow);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.stash-card:hover {
  transform: translateY(-4px);
  border-color: rgba(78, 230, 200, 0.58);
  box-shadow: var(--shadow), 0 0 0 0.18rem rgba(78, 230, 200, 0.16);
}

.stash-card h3 {
  color: var(--strong-text);
}

.stash-card p {
  color: var(--strong-muted);
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.55);
}

.stash-card-anime {
  background:
    linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)),
    url("assets/stash-anime-bg.jpg") center / cover;
}

:root[data-theme="dark"] .stash-card-anime {
  background:
    linear-gradient(rgba(22, 27, 47, 0.5), rgba(22, 27, 47, 0.5)),
    url("assets/stash-anime-bg.jpg") center / cover;
}

.stash-card-game {
  background:
    linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)),
    url("assets/stash-game-bg.jpg") center / cover;
}

:root[data-theme="dark"] .stash-card-game {
  background:
    linear-gradient(rgba(22, 27, 47, 0.5), rgba(22, 27, 47, 0.5)),
    url("assets/stash-game-bg.jpg") center / cover;
}

.stash-card-medical {
  background:
    linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)),
    url("assets/stash-medical-bg.png") center / cover;
}

:root[data-theme="dark"] .stash-card-medical {
  background:
    linear-gradient(rgba(22, 27, 47, 0.5), rgba(22, 27, 47, 0.5)),
    url("assets/stash-medical-bg.png") center / cover;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 3.25rem;
  aspect-ratio: 1;
  margin-bottom: 2rem;
  border-radius: 8px;
  color: #10111e;
  font-weight: 950;
}

.crest .card-icon {
  background: var(--gold);
}

.lab .card-icon {
  background: var(--mint);
}

.palico .card-icon {
  background: var(--green);
}

.contact {
  background: var(--contact-bg);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.75fr);
  gap: 2rem;
  align-items: start;
}

.contact-panel {
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--chip);
}

.contact-panel span {
  display: block;
  padding: 0.9rem 1rem;
  border-radius: 8px;
  background: var(--chip);
  color: var(--ink);
}

.review-page {
  min-height: calc(100vh - 4.5rem);
}

.review-hero {
  position: relative;
  z-index: 2;
  min-height: 42vh;
  display: flex;
  align-items: center;
}

.review-hero h1 {
  max-width: 12ch;
}

.review-lead {
  max-width: 44rem;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.8;
}

.bookshelf-page {
  --book-accent: var(--mint);
}

.bookshelf-act {
  --book-accent: var(--red);
}

.action-library-page {
  min-height: calc(100vh - 5rem);
  padding: clamp(2rem, 5vw, 4.5rem) 1.25rem;
  background:
    radial-gradient(circle at 14% 8%, rgba(255, 90, 99, 0.17), transparent 23rem),
    radial-gradient(circle at 88% 90%, rgba(255, 202, 112, 0.12), transparent 26rem),
    linear-gradient(135deg, #17131c, #28202a 48%, #161d26);
}

.action-library {
  padding: clamp(1rem, 3vw, 2rem);
  border: 1px solid rgba(239, 197, 131, 0.3);
  background: linear-gradient(135deg, rgba(20, 16, 21, 0.8), rgba(33, 27, 31, 0.88));
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
}

.action-library-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 0.5rem 1.3rem;
}

.action-library-heading h1 {
  margin: 0.15rem 0 0;
  color: #ffefd0;
  font-size: clamp(2rem, 5vw, 3.6rem);
  text-shadow: 0 3px 0 #422219;
}

.action-library-heading > p { margin: 0; color: #c7b6ac; }

.action-cabinet {
  display: grid;
  gap: 1.8rem;
  padding: clamp(1.1rem, 3vw, 2rem);
  border: 1px solid rgba(131, 75, 40, 0.84);
  background:
    repeating-linear-gradient(90deg, rgba(255, 224, 173, 0.03) 0 2px, transparent 2px 5rem),
    linear-gradient(100deg, #3e2319, #5a3322 50%, #3a2119);
  box-shadow: inset 0 0 0 0.5rem rgba(31, 14, 11, 0.55), inset 0 0 4rem rgba(0, 0, 0, 0.25);
}

.action-shelf {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.55rem, 1.6vw, 1.35rem);
  align-items: end;
  padding: 0.8rem 1rem 1.2rem;
}

.action-shelf::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: auto 0 0;
  height: 1.1rem;
  border: 1px solid #8f5631;
  border-radius: 2px;
  background: linear-gradient(180deg, #bc7a45, #65381e 48%, #2e170f);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.42), inset 0 1px rgba(255, 219, 157, 0.35);
}

.action-book {
  position: relative;
  z-index: 1;
  min-width: 0;
  perspective: 48rem;
  cursor: pointer;
}

.action-book-cover {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: end;
  min-height: clamp(13rem, 23vw, 19rem);
  padding: 1rem;
  overflow: hidden;
  border: 1px solid rgba(255, 226, 184, 0.52);
  color: #fff6e7;
  background:
    linear-gradient(180deg, transparent 36%, rgba(6, 7, 12, 0.9) 100%),
    linear-gradient(135deg, #632c2b, #231727 58%, #4d2525);
  box-shadow: 0.4rem 0.45rem 0 rgba(17, 7, 8, 0.44), 0 1rem 1.4rem rgba(0, 0, 0, 0.27);
  transition: transform 190ms ease, filter 190ms ease;
}

.action-book-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.58;
  background: url("assets/game-category-act-bg.jpg") center / cover;
  mix-blend-mode: screen;
}

.action-book:nth-child(even) .action-book-cover::before { filter: hue-rotate(45deg) saturate(0.68); }
.action-book-03 .action-book-cover::before, .action-book-07 .action-book-cover::before { filter: hue-rotate(160deg) saturate(0.72); }
.action-book-04 .action-book-cover::before, .action-book-08 .action-book-cover::before { filter: hue-rotate(280deg) saturate(0.75); }

.action-book-cover > * { position: relative; z-index: 1; }
.action-book-cover span { align-self: start; padding: 0.22rem 0.45rem; background: #e74d55; color: #210d12; font-size: 0.7rem; font-weight: 950; }
.action-book-cover h2 { margin: auto 0 0.2rem; font-size: clamp(1rem, 1.8vw, 1.35rem); line-height: 1.25; }
.action-book-cover p { margin: 0; color: #ebd6c0; font-size: 0.76rem; }

.action-book-spine {
  display: none;
  color: #f8e4c1;
}

.action-book:hover .action-book-cover { transform: translateY(-0.65rem) rotateX(2deg); filter: brightness(1.12); }

:root[data-theme="light"] .action-library-page { background: linear-gradient(135deg, #e6d3c5, #fff3dc 56%, #d4e5e5); }
:root[data-theme="light"] .action-library { background: rgba(255, 249, 238, 0.86); }
:root[data-theme="light"] .action-library-heading h1 { color: #4b2620; text-shadow: none; }
:root[data-theme="light"] .action-library-heading > p { color: #6c514a; }

@media (max-width: 760px) {
  .action-library-heading { align-items: start; flex-direction: column; }
  .action-shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 440px) {
  .action-library-page { padding-inline: 0.6rem; }
  .action-library, .action-cabinet { padding: 0.7rem; }
  .action-shelf { padding-inline: 0.45rem; gap: 0.45rem; }
  .action-book-cover { min-height: 11rem; padding: 0.65rem; }
}

.bookshelf-slg {
  --book-accent: var(--gold);
}

.save-page {
  min-height: calc(100vh - 5rem);
  padding: clamp(2rem, 5vw, 4.5rem) 1.25rem;
  background:
    radial-gradient(ellipse at 20% 5%, rgba(228, 246, 239, 0.7), transparent 22rem),
    linear-gradient(135deg, rgba(56, 90, 98, 0.84), rgba(18, 45, 63, 0.96)),
    #173948;
}

.adventure-save-page {
  background:
    radial-gradient(ellipse at 20% 5%, rgba(228, 246, 239, 0.7), transparent 22rem),
    linear-gradient(135deg, rgba(56, 90, 98, 0.84), rgba(18, 45, 63, 0.96)),
    #173948;
}

.strategy-save-page {
  min-height: calc(100vh - 5rem);
  padding: clamp(1.5rem, 4vw, 3.5rem) 1rem;
  background: #020304;
}

.strategy-save-list {
  display: grid;
  gap: 0.22rem;
  width: min(100%, 104rem);
}

.strategy-save-heading {
  padding: 0.8rem 1rem;
  color: #f7f7f7;
  border-bottom: 1px solid #353535;
}

.strategy-save-heading h1 { margin: 0.12rem 0 0; color: #fff; font-size: clamp(2rem, 4vw, 3.2rem); }

.strategy-save-row {
  display: grid;
  grid-template-columns: 7rem 13rem minmax(0, 1fr) 4.8rem 3rem;
  gap: 0.7rem;
  align-items: center;
  min-height: 7.25rem;
  padding: 0.32rem 0.55rem;
  border-bottom: 1px solid #202020;
  color: #f7f7f7;
  background: #050505;
  transition: background 150ms ease;
}

.strategy-save-row:hover { background: #111820; }

.strategy-slot-number { font-size: 1.25rem; white-space: nowrap; }

.strategy-thumbnail {
  display: grid;
  place-items: center;
  min-height: 6.25rem;
  color: #eef5fa;
  border: 1px solid #4b6575;
  background: linear-gradient(135deg, #6c7d41, #183d32 48%, #152638);
  font-weight: 950;
  letter-spacing: 0.12em;
}

.strategy-save-row-02 .strategy-thumbnail,
.strategy-save-row-05 .strategy-thumbnail { background: linear-gradient(135deg, #473b77, #a36f8a 48%, #1b334d); }
.strategy-save-row-03 .strategy-thumbnail,
.strategy-save-row-06 .strategy-thumbnail { background: linear-gradient(135deg, #c2e6ef, #4b94ac 45%, #203754); }
.strategy-save-row-04 .strategy-thumbnail { background: linear-gradient(135deg, #685b37, #24445b 52%, #261e3a); }

.strategy-main-info h2 { margin: 0 0 0.55rem; color: #fff; font-size: 1.38rem; }
.strategy-main-info time { color: #f0f0f0; font-size: 1.05rem; font-weight: 700; }

.strategy-score {
  display: grid;
  justify-items: center;
  gap: 0.28rem;
  color: #fff;
}

.strategy-score span {
  padding: 0.22rem 0.42rem;
  color: #e8f7ff;
  background: #2b6d8d;
  font-size: 0.72rem;
}

.strategy-score strong { font-size: 0.82rem; white-space: nowrap; }

.strategy-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 1.2rem;
  margin: 0;
}

.strategy-stats div { display: flex; justify-content: space-between; gap: 0.5rem; }
.strategy-stats dt { color: #d9d9d9; }
.strategy-stats dd { margin: 0; color: #fff; font-weight: 800; white-space: nowrap; }

.strategy-delete {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  border: 2px solid #ffd65c;
  border-radius: 50%;
  color: #fff;
  background: #b30000;
  box-shadow: inset 0 0 0 3px #750000, 0 0 0 1px #4d1e00;
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1;
}

.quest-page {
  min-height: calc(100vh - 5rem);
  padding: clamp(2rem, 5vw, 4rem) 1.25rem;
  background:
    linear-gradient(rgba(15, 19, 29, 0.84), rgba(15, 19, 29, 0.94)),
    repeating-linear-gradient(125deg, transparent 0 3.2rem, rgba(227, 194, 133, 0.045) 3.2rem 3.3rem),
    #17131a;
}

.quest-board {
  padding: clamp(1rem, 3vw, 2rem);
  border: 1px solid rgba(215, 178, 102, 0.52);
  background:
    linear-gradient(135deg, rgba(61, 49, 44, 0.72), rgba(25, 30, 41, 0.86)),
    #211c22;
  box-shadow: 0 24px 66px rgba(0, 0, 0, 0.38), inset 0 0 3rem rgba(241, 206, 143, 0.04);
}

.quest-board-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.quest-board-heading h1 {
  margin: 0.12rem 0 0;
  color: #fff0ca;
  font-size: clamp(2rem, 5vw, 3.5rem);
  text-shadow: 0 3px 0 #382820;
}

.quest-board-status {
  margin: 0;
  color: #d7c6a0;
  font-size: 0.9rem;
}

.quest-board-status strong { color: #f4c867; font-size: 1.3rem; }

.quest-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1.35rem 0;
  padding: 0.65rem 0;
  border-block: 1px solid rgba(215, 178, 102, 0.28);
}

.quest-filter span {
  padding: 0.3rem 0.72rem;
  border: 1px solid rgba(215, 178, 102, 0.5);
  color: #e6d7b6;
  font-size: 0.8rem;
}

.quest-filter span:first-child { color: #1b1720; background: #e5bb63; }

.quest-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.15rem;
}

.quest-card {
  position: relative;
  display: grid;
  grid-template-columns: 8.4rem minmax(0, 1fr);
  gap: 0.95rem;
  min-height: 12.4rem;
  padding: 0.75rem;
  border: 1px solid rgba(222, 187, 113, 0.5);
  background: linear-gradient(135deg, rgba(74, 57, 49, 0.76), rgba(29, 35, 47, 0.92));
  box-shadow: inset 0 0 1.5rem rgba(248, 210, 147, 0.05);
  transition: transform 170ms ease, border-color 170ms ease;
}

.quest-card:hover { transform: translateY(-0.2rem); border-color: #f0cf81; }

.quest-cover {
  display: grid;
  place-items: center;
  min-height: 10.7rem;
  border: 1px solid rgba(242, 210, 151, 0.74);
  color: #fff0c7;
  background:
    linear-gradient(135deg, rgba(11, 11, 15, 0.18), rgba(11, 11, 15, 0.62)),
    url("assets/game-category-rpg-bg.jpg") center / cover;
  font-size: 1rem;
  font-weight: 950;
  letter-spacing: 0.13em;
  text-shadow: 0 2px 6px #000;
}

.quest-card-02 .quest-cover, .quest-card-05 .quest-cover { filter: hue-rotate(38deg) saturate(0.78); }
.quest-card-03 .quest-cover, .quest-card-06 .quest-cover { filter: hue-rotate(205deg) saturate(0.84); }
.quest-card-04 .quest-cover { filter: hue-rotate(288deg) saturate(0.76); }

.quest-id { margin: 0; color: #e8bd68; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; }
.quest-content h2 { margin: 0.4rem 0; color: #fff3d5; font-size: 1.25rem; }
.quest-content > p:not(.quest-id) { margin: 0; color: #d5c4aa; font-size: 0.85rem; line-height: 1.55; }

.quest-content dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem;
  margin: 0.85rem 0 0;
}

.quest-content dl div { border-left: 2px solid rgba(233, 188, 98, 0.72); padding-left: 0.38rem; }
.quest-content dt { color: #a99a87; font-size: 0.68rem; }
.quest-content dd { margin: 0.13rem 0 0; color: #f4e5c9; font-size: 0.72rem; }

.quest-seal {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  display: grid;
  width: 2.1rem;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid #ddba65;
  border-radius: 50%;
  color: #edd493;
  font-size: 0.64rem;
  transform: rotate(12deg);
}

:root[data-theme="light"] .quest-page { background: linear-gradient(135deg, #dcd1c0, #f3ead9 55%, #cfdfe2); }
:root[data-theme="light"] .quest-board { background: linear-gradient(135deg, rgba(255, 247, 229, 0.9), rgba(225, 235, 237, 0.92)); }
:root[data-theme="light"] .quest-board-heading h1 { color: #523b27; text-shadow: none; }
:root[data-theme="light"] .quest-board-status, :root[data-theme="light"] .quest-filter span, :root[data-theme="light"] .quest-content > p:not(.quest-id) { color: #65513d; }
:root[data-theme="light"] .quest-card { background: linear-gradient(135deg, rgba(250, 238, 213, 0.94), rgba(220, 232, 234, 0.96)); }
:root[data-theme="light"] .quest-content h2 { color: #422e24; }
:root[data-theme="light"] .quest-content dt { color: #776854; }
:root[data-theme="light"] .quest-content dd { color: #483527; }

@media (max-width: 820px) {
  .quest-list { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .quest-page { padding-inline: 0.65rem; }
  .quest-board { padding: 0.75rem; }
  .quest-board-heading { align-items: start; flex-direction: column; }
  .quest-card { grid-template-columns: 6rem minmax(0, 1fr); gap: 0.6rem; }
  .quest-cover { min-height: 9.5rem; }
  .quest-content dl { grid-template-columns: 1fr; }
  .quest-seal { display: none; }
}

.save-screen {
  position: relative;
  overflow: hidden;
  padding: clamp(1rem, 3vw, 2rem);
  border: 1px solid rgba(238, 212, 151, 0.8);
  background:
    linear-gradient(90deg, rgba(13, 45, 58, 0.74), rgba(18, 56, 73, 0.5)),
    radial-gradient(ellipse at 50% 70%, rgba(213, 239, 222, 0.22), transparent 30rem);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.38), inset 0 0 4rem rgba(255, 255, 255, 0.08);
}

.save-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.32;
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(255, 255, 255, 0.035) 3px 4px);
}

.save-screen-heading,
.save-grid { position: relative; z-index: 1; }

.save-screen-heading { margin-bottom: 1.5rem; }

.save-screen-heading h1 {
  margin: 0.15rem 0 0;
  color: #fff6dc;
  font-size: clamp(2rem, 5vw, 3.5rem);
  text-shadow: 0 2px 0 #304343, 0 6px 18px rgba(0, 0, 0, 0.45);
}

.save-screen-heading > p {
  margin: 0.55rem 0 0;
  color: #d5e6e5;
}

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

.save-slot {
  position: relative;
  display: grid;
  grid-template-columns: 8.75rem minmax(0, 1fr);
  gap: 0.9rem;
  min-height: 7.7rem;
  padding: 0.5rem;
  border: 1px solid rgba(239, 217, 166, 0.86);
  background: linear-gradient(105deg, rgba(30, 76, 91, 0.88), rgba(19, 47, 68, 0.7));
  box-shadow: inset 0 0 2rem rgba(231, 250, 232, 0.1), 0 6px 12px rgba(0, 0, 0, 0.22);
  transition: transform 160ms ease, filter 160ms ease;
}

.save-slot::before,
.save-slot::after {
  position: absolute;
  color: #f2d890;
  font-size: 2.4rem;
  line-height: 1;
  text-shadow: 1px 1px 0 #5b4828;
}

.save-slot::before { content: "❧"; left: -0.2rem; top: -0.2rem; }
.save-slot::after { content: "❧"; right: -0.18rem; bottom: -0.25rem; transform: rotate(180deg); }

.save-slot:hover { transform: translateY(-0.2rem); filter: brightness(1.13); }

.save-thumbnail {
  display: grid;
  place-items: center;
  min-height: 6.6rem;
  border: 1px solid rgba(251, 228, 164, 0.88);
  color: #f9e5a9;
  background:
    linear-gradient(135deg, rgba(25, 25, 34, 0.2), rgba(10, 17, 26, 0.54)),
    radial-gradient(circle at 70% 25%, #a0c6bc 0 7%, transparent 8%),
    linear-gradient(150deg, #5d8d8d, #183a4c 52%, #254755);
  font-weight: 950;
  letter-spacing: 0.1em;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.75);
}

.save-slot-02 .save-thumbnail,
.save-slot-06 .save-thumbnail { background: linear-gradient(135deg, rgba(35, 21, 55, 0.24), rgba(10, 17, 26, 0.54)), linear-gradient(150deg, #97689f, #2a3154 54%, #28505e); }
.save-slot-03 .save-thumbnail,
.save-slot-07 .save-thumbnail { background: linear-gradient(135deg, rgba(29, 46, 18, 0.18), rgba(10, 17, 26, 0.55)), linear-gradient(150deg, #c3bf7a, #587d58 53%, #163b4a); }
.save-slot-04 .save-thumbnail,
.save-slot-08 .save-thumbnail { background: linear-gradient(135deg, rgba(47, 30, 18, 0.24), rgba(10, 17, 26, 0.55)), linear-gradient(150deg, #b57b5a, #73485b 48%, #243c56); }

.save-details { padding-top: 0.16rem; min-width: 0; }

.save-score {
  position: absolute;
  top: 0.55rem;
  right: 0.7rem;
  display: grid;
  justify-items: end;
  gap: 0.18rem;
}

.save-score span {
  padding: 0.18rem 0.38rem;
  color: #f7fbf9;
  background: rgba(30, 105, 128, 0.85);
  font-size: 0.68rem;
}

.save-score strong { color: #fffdf3; font-size: 0.76rem; }

.save-details p {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0;
  color: #eef6f1;
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}

.save-details h2 {
  margin: 0.75rem 0 0.3rem;
  color: #fffdf3;
  font-size: 1.08rem;
}

.save-details small { color: #c2d8d9; font-size: 0.78rem; }

:root[data-theme="light"] .save-page { background: linear-gradient(135deg, #b7d5d1, #e4efeb 55%, #b7cfd5); }
:root[data-theme="light"] .save-screen { background: linear-gradient(90deg, rgba(213, 237, 230, 0.8), rgba(173, 208, 211, 0.7)); }
:root[data-theme="light"] .save-screen-heading h1 { color: #1e3f4c; text-shadow: none; }
:root[data-theme="light"] .save-screen-heading > p { color: #365c67; }
:root[data-theme="light"] .save-slot { background: linear-gradient(105deg, rgba(185, 216, 216, 0.92), rgba(143, 184, 194, 0.72)); }
:root[data-theme="light"] .save-details p, :root[data-theme="light"] .save-details h2 { color: #153d4a; }
:root[data-theme="light"] .save-details small { color: #315e68; }
:root[data-theme="light"] .save-score strong { color: #173b4b; }
:root[data-theme="light"] .strategy-save-page { background: #d9dde0; }
:root[data-theme="light"] .strategy-save-row { color: #14202b; background: #eff2f4; border-bottom-color: #c2c9cd; }
:root[data-theme="light"] .strategy-save-row:hover { background: #dde8ed; }
:root[data-theme="light"] .strategy-save-heading h1, :root[data-theme="light"] .strategy-main-info h2, :root[data-theme="light"] .strategy-main-info time, :root[data-theme="light"] .strategy-stats dd { color: #152a3a; }
:root[data-theme="light"] .strategy-score { color: #17354a; }
:root[data-theme="light"] .strategy-stats dt { color: #476172; }

@media (max-width: 760px) {
  .save-grid { grid-template-columns: 1fr; }
  .strategy-save-row { grid-template-columns: 5.5rem 8.5rem minmax(0, 1fr) 4.2rem 2.5rem; }
}

@media (max-width: 460px) {
  .save-page { padding-inline: 0.65rem; }
  .save-screen { padding: 0.7rem; }
  .save-slot { grid-template-columns: 6rem minmax(0, 1fr); gap: 0.55rem; }
  .save-thumbnail { min-height: 5.8rem; }
  .save-details p { font-size: 0.7rem; }
  .strategy-save-page { padding-inline: 0.35rem; }
  .strategy-save-row { grid-template-columns: 4.3rem 6rem minmax(0, 1fr) 3.6rem; gap: 0.4rem; }
  .strategy-thumbnail { min-height: 5.2rem; }
  .strategy-main-info h2 { font-size: 1rem; }
  .strategy-main-info time { font-size: 0.78rem; }
  .strategy-score strong { font-size: 0.7rem; }
  .strategy-delete { display: none; }
}

.bookshelf-adv {
  --book-accent: var(--mint);
}

.bookshelf-rpg {
  --book-accent: var(--pink);
}

.bookshelf-aaa {
  --book-accent: var(--blue);
}

.steam-store-page {
  min-height: calc(100vh - 5rem);
  padding: clamp(2rem, 5vw, 4.5rem) 1.25rem;
  background:
    radial-gradient(circle at 10% 0%, rgba(49, 118, 163, 0.28), transparent 30rem),
    radial-gradient(circle at 92% 86%, rgba(40, 78, 116, 0.24), transparent 26rem),
    #101a28;
}

.steam-store-shell {
  width: min(100%, 70rem);
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 2rem);
  border: 1px solid rgba(133, 168, 198, 0.2);
  background: rgba(10, 20, 32, 0.7);
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.35);
}

.steam-store-heading {
  display: flex;
  align-items: end;
  margin-bottom: 1.25rem;
}

.steam-store-heading h1 {
  margin: 0.15rem 0 0;
  color: #f3f7fb;
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.steam-store-heading > p {
  max-width: 27rem;
  margin: 0;
  color: #9bb4c9;
  line-height: 1.7;
}

.steam-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.55rem;
  align-items: stretch;
  padding: 0.65rem;
  background: #172b3d;
  border: 1px solid rgba(133, 168, 198, 0.18);
}

.steam-search {
  display: flex;
}

.steam-search input {
  width: 100%;
  height: 2.55rem;
  padding: 0 0.8rem;
  border: 1px solid #426179;
  border-radius: 0;
  outline: none;
  color: #d8e6f0;
  background: #0d1b2a;
  font: inherit;
}

.steam-search input:focus {
  border-color: #67b8eb;
  box-shadow: 0 0 0 2px rgba(103, 184, 235, 0.2);
}

.steam-search-button {
  height: 2.55rem;
  padding: 0 1rem;
  border: 0;
  border-radius: 0;
  color: #d9f1ff;
  background: #2879a5;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.steam-search-button:hover { background: #3998ca; }

.steam-sort {
  padding: 0 0.6rem;
  color: #7f9bb1;
  font-size: 0.86rem;
  white-space: nowrap;
}

.steam-sort strong { color: #b8d7eb; }

.steam-result-count {
  margin: 0.8rem 0 0.45rem;
  padding: 0.65rem 0.75rem;
  color: #d8e8b4;
  background: #122334;
  font-size: 0.88rem;
}

.steam-results { display: grid; gap: 0.35rem; }

.steam-game-row {
  display: grid;
  grid-template-columns: 11.5rem minmax(0, 1fr) 6rem;
  gap: 0.65rem;
  align-items: center;
  min-height: 6rem;
  padding: 0.3rem;
  border: 1px solid transparent;
  background: #162536;
  transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.steam-game-row:hover {
  border-color: #5d93b8;
  background: #1c3247;
  transform: translateX(0.2rem);
}

.steam-cover {
  display: grid;
  min-height: 5.25rem;
  place-items: center;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.05rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.steam-cover-skyrim {
  background:
    linear-gradient(90deg, rgba(4, 8, 12, 0.46), rgba(4, 8, 12, 0.08)),
    url("assets/game-skyrim.jpg") center / cover;
}
.steam-cover-monster-hunter {
  background:
    linear-gradient(90deg, rgba(4, 12, 10, 0.44), rgba(4, 12, 10, 0.08)),
    url("assets/game-monster-hunter-world.jpg") center / cover;
}
.steam-cover-monster-hunter-wilds {
  background:
    linear-gradient(90deg, rgba(12, 15, 10, 0.42), rgba(12, 15, 10, 0.08)),
    url("assets/game-monster-hunter-wilds.jpg") center / cover;
}
.steam-cover-forest { background: linear-gradient(125deg, #243a2a, #839b57 52%, #34251c); }
.steam-cover-space { background: radial-gradient(circle at 75% 25%, #8eb8f4 0 8%, transparent 9%), linear-gradient(135deg, #111b3d, #573764); }
.steam-cover-city { background: linear-gradient(135deg, #17242d, #5d2a2d 52%, #151a2c); }
.steam-cover-mountain { background: linear-gradient(150deg, #b5d5df 0 28%, #50738c 29% 49%, #1d3044 50%); }

.steam-game-info h2 {
  margin: 0;
  color: #d6e7f4;
  font-size: 1.05rem;
  font-weight: 700;
}

.steam-game-info p {
  margin: 0.28rem 0;
  color: #8ea9bc;
  font-size: 0.86rem;
  line-height: 1.45;
}

.steam-tags {
  color: #6e97b7;
  font-size: 0.75rem;
}

.steam-game-row time {
  color: #7fa5c3;
  font-size: 0.8rem;
  text-align: right;
}

.steam-price {
  display: grid;
  justify-items: end;
  gap: 0.2rem;
  color: #dce9f2;
  font-size: 0.85rem;
}

.steam-score {
  padding: 0.2rem 0.4rem;
  color: #d7f3ff;
  background: #2b6d8d;
  font-size: 0.72rem;
}

:root[data-theme="light"] .steam-store-page {
  background: linear-gradient(150deg, #dce8ef, #f1f5f7 55%, #d9edf4);
}

:root[data-theme="light"] .steam-store-shell {
  border-color: #b7cad5;
  background: rgba(243, 248, 250, 0.86);
}

:root[data-theme="light"] .steam-store-heading h1 { color: #13283a; }
:root[data-theme="light"] .steam-store-heading > p { color: #49677b; }
:root[data-theme="light"] .steam-toolbar { background: #c6dbe6; border-color: #a8c3d1; }
:root[data-theme="light"] .steam-search input { color: #173147; background: #f8fbfd; border-color: #89adbf; }
:root[data-theme="light"] .steam-result-count { color: #3f5525; background: #d7e8d1; }
:root[data-theme="light"] .steam-game-row { background: #e8f1f6; }
:root[data-theme="light"] .steam-game-row:hover { background: #dcecf5; }
:root[data-theme="light"] .steam-game-info h2 { color: #203d54; }
:root[data-theme="light"] .steam-game-info p { color: #46667c; }
:root[data-theme="light"] .steam-tags, :root[data-theme="light"] .steam-game-row time { color: #547e9c; }
:root[data-theme="light"] .steam-price { color: #23435a; }

@media (max-width: 760px) {
  .steam-store-heading { align-items: start; flex-direction: column; }
  .steam-toolbar { grid-template-columns: 1fr auto; }
  .steam-game-row { grid-template-columns: 7rem minmax(0, 1fr) 4.8rem; }
  .steam-cover { min-height: 4.8rem; font-size: 0.82rem; }
}

@media (max-width: 500px) {
  .steam-store-page { padding-inline: 0.7rem; }
  .steam-store-shell { padding: 0.75rem; }
  .steam-game-row { grid-template-columns: 5.7rem minmax(0, 1fr); }
  .steam-price { display: none; }
}

.bookshelf-hero {
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 252, 248, 0.9), rgba(248, 242, 235, 0.76)),
    linear-gradient(90deg, rgba(164, 124, 88, 0.18), transparent 16%, transparent 84%, rgba(164, 124, 88, 0.18));
  border-bottom: 1px solid var(--line);
}

:root[data-theme="dark"] .bookshelf-hero {
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(17, 21, 38, 0.96), rgba(24, 28, 44, 0.88)),
    linear-gradient(90deg, rgba(164, 124, 88, 0.22), transparent 16%, transparent 84%, rgba(164, 124, 88, 0.22));
}

.bookshelf-hero .review-lead {
  max-width: 56rem;
}

.bookshelf-stage {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.24), transparent 30%),
    radial-gradient(circle at bottom right, rgba(78, 230, 200, 0.09), transparent 34%),
    var(--stash-bg);
}

.bookshelf-stack {
  display: grid;
  gap: 1.6rem;
}

.shelf-row {
  position: relative;
  padding-bottom: 1.2rem;
}

.shelf-row::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.1rem;
  border-radius: 0 0 8px 8px;
  background: linear-gradient(180deg, rgba(125, 86, 49, 0.94), rgba(86, 57, 31, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 6px 18px rgba(0, 0, 0, 0.12);
}

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

.book-card {
  position: relative;
  min-height: 15.75rem;
  padding: 1rem 1rem 1rem 1.35rem;
  border: 1px solid var(--line);
  border-bottom-width: 6px;
  border-bottom-color: rgba(90, 60, 34, 0.52);
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(248, 243, 237, 0.97));
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.52);
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

:root[data-theme="dark"] .book-card {
  background: linear-gradient(180deg, rgba(29, 33, 49, 0.98), rgba(21, 25, 38, 0.98));
  border-bottom-color: rgba(164, 124, 88, 0.72);
}

.book-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0.85rem;
  background: var(--book-accent);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.35);
}

.book-chip {
  display: inline-flex;
  align-items: center;
  min-height: 1.7rem;
  padding: 0 0.55rem;
  border-radius: 999px;
  background: var(--book-accent);
  color: #10111e;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.02em;
}

.book-card h2 {
  display: block;
  margin: 1rem 0 0.55rem;
  font-size: 1.55rem;
  line-height: 1.08;
}

.book-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.95rem;
}

.book-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.52);
  border-color: var(--book-accent);
}

.anime-review-hero {
  background:
    linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)),
    url("assets/anime-review-hero.png") center / cover;
}

.games-review-hero {
  background:
    linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)),
    url("assets/games-review-hero.png") center / cover;
}

.medical-review-hero {
  background:
    linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)),
    url("assets/medical-review-hero.jpg") center / cover;
}

:root[data-theme="dark"] .anime-review-hero,
:root[data-theme="dark"] .games-review-hero,
:root[data-theme="dark"] .medical-review-hero {
  color: var(--ink);
}

:root[data-theme="dark"] .anime-review-hero {
  background:
    linear-gradient(rgba(17, 21, 38, 0.5), rgba(17, 21, 38, 0.5)),
    url("assets/anime-review-hero.png") center / cover;
}

:root[data-theme="dark"] .games-review-hero {
  background:
    linear-gradient(rgba(17, 21, 38, 0.5), rgba(17, 21, 38, 0.5)),
    url("assets/games-review-hero.png") center / cover;
}

:root[data-theme="dark"] .medical-review-hero {
  background:
    linear-gradient(rgba(17, 21, 38, 0.5), rgba(17, 21, 38, 0.5)),
    url("assets/medical-review-hero.jpg") center / cover;
}

.review-list-band {
  background: var(--stash-bg);
}

.medical-review-list {
  position: relative;
}

.medical-meme-rail {
  position: fixed;
  top: 6.2rem;
  bottom: 2rem;
  z-index: 1;
  display: grid;
  align-content: space-around;
  gap: 1.25rem;
  width: clamp(6.5rem, 13vw, 13.5rem);
  pointer-events: none;
}

.medical-meme-rail-left {
  left: clamp(0.6rem, 2.2vw, 2.6rem);
}

.medical-meme-rail-right {
  right: clamp(0.6rem, 2.2vw, 2.6rem);
}

.medical-meme {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 10.5rem);
  justify-self: center;
  border-radius: 16px;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.76), rgba(255, 245, 252, 0.28) 58%, transparent 78%);
  filter: drop-shadow(0 18px 30px rgba(82, 62, 118, 0.16));
}

.medical-meme::before {
  content: "";
  position: absolute;
  inset: -0.85rem;
  border-radius: 24px;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.72), rgba(255, 218, 236, 0.22) 54%, transparent 76%);
  filter: blur(13px);
}

.medical-meme img {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 100%;
  max-height: 8.75rem;
  border-radius: 10px;
  opacity: 0.9;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 12%, #000 88%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 12%, #000 88%, transparent 100%);
  mask-composite: intersect;
}

.medical-meme-rail-left .medical-meme:nth-child(1) {
  transform: translateX(0.4rem) rotate(-4deg);
}

.medical-meme-rail-left .medical-meme:nth-child(2) {
  transform: translateX(2.2rem) rotate(3deg);
}

.medical-meme-rail-left .medical-meme:nth-child(3) {
  transform: translateX(0.9rem) rotate(5deg);
}

.medical-meme-rail-left .medical-meme:nth-child(4) {
  transform: translateX(2.8rem) rotate(-3deg);
}

.medical-meme-rail-right .medical-meme:nth-child(1) {
  transform: translateX(-1.9rem) rotate(4deg);
}

.medical-meme-rail-right .medical-meme:nth-child(2) {
  transform: translateX(-0.4rem) rotate(-5deg);
}

.medical-meme-rail-right .medical-meme:nth-child(3) {
  transform: translateX(-2.6rem) rotate(2deg);
}

.medical-review-list .section-inner {
  position: relative;
  z-index: 1;
}

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

.game-category-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.game-category-card {
  display: block;
  min-height: 18rem;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.game-category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(78, 230, 200, 0.58);
  box-shadow: var(--shadow), 0 0 0 0.18rem rgba(78, 230, 200, 0.16);
}

.game-category-card .card-icon {
  margin: 0 auto;
}

.game-category-card h2 {
  display: none;
}

.game-category-card p {
  margin-top: 2.3rem;
  color: var(--muted);
  line-height: 1.75;
  text-align: center;
}

.game-category-card p strong {
  color: var(--strong-text);
  font-weight: 950;
}

.game-category-act .card-icon {
  background: var(--red);
}

.game-category-act {
  background:
    linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)),
    url("assets/game-category-act-bg.jpg") center / cover;
}

:root[data-theme="dark"] .game-category-act {
  background:
    linear-gradient(rgba(17, 21, 38, 0.5), rgba(17, 21, 38, 0.5)),
    url("assets/game-category-act-bg.jpg") center / cover;
}

.game-category-slg .card-icon {
  background: var(--gold);
}

.game-category-slg {
  background:
    linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)),
    url("assets/game-category-slg-bg.jpg") center / cover;
}

:root[data-theme="dark"] .game-category-slg {
  background:
    linear-gradient(rgba(17, 21, 38, 0.5), rgba(17, 21, 38, 0.5)),
    url("assets/game-category-slg-bg.jpg") center / cover;
}

.game-category-adv .card-icon {
  background: var(--mint);
}

.game-category-adv {
  background:
    linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)),
    url("assets/game-category-adv-bg.jpg") center / cover;
}

:root[data-theme="dark"] .game-category-adv {
  background:
    linear-gradient(rgba(17, 21, 38, 0.5), rgba(17, 21, 38, 0.5)),
    url("assets/game-category-adv-bg.jpg") center / cover;
}

.game-category-aaa .card-icon {
  background: var(--blue);
}

.game-category-aaa {
  background:
    linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)),
    url("assets/game-category-aaa-bg.jpg") center / cover;
}

:root[data-theme="dark"] .game-category-aaa {
  background:
    linear-gradient(rgba(17, 21, 38, 0.5), rgba(17, 21, 38, 0.5)),
    url("assets/game-category-aaa-bg.jpg") center / cover;
}

.game-category-rpg .card-icon {
  background: var(--pink);
}

.game-category-rpg {
  background:
    linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)),
    url("assets/game-category-rpg-bg.jpg") center / cover;
}

:root[data-theme="dark"] .game-category-rpg {
  background:
    linear-gradient(rgba(17, 21, 38, 0.5), rgba(17, 21, 38, 0.5)),
    url("assets/game-category-rpg-bg.jpg") center / cover;
}

.review-card {
  min-height: 14rem;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.medical-cell-card {
  background:
    linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)),
    url("assets/medical-cell-biology.jpg") right 1.25rem center / auto 78% no-repeat,
    var(--panel);
}

:root[data-theme="dark"] .medical-cell-card {
  background:
    linear-gradient(rgba(17, 21, 38, 0.5), rgba(17, 21, 38, 0.5)),
    url("assets/medical-cell-biology.jpg") right 1.25rem center / auto 78% no-repeat,
    var(--panel);
}

.medical-histology-card {
  background:
    linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)),
    url("assets/medical-histology-embryology.jpg") right 1.25rem center / auto 78% no-repeat,
    var(--panel);
}

:root[data-theme="dark"] .medical-histology-card {
  background:
    linear-gradient(rgba(17, 21, 38, 0.5), rgba(17, 21, 38, 0.5)),
    url("assets/medical-histology-embryology.jpg") right 1.25rem center / auto 78% no-repeat,
    var(--panel);
}

.medical-anatomy-card {
  background:
    linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)),
    url("assets/medical-systematic-anatomy.jpg") right 1.25rem center / auto 78% no-repeat,
    var(--panel);
}

:root[data-theme="dark"] .medical-anatomy-card {
  background:
    linear-gradient(rgba(17, 21, 38, 0.5), rgba(17, 21, 38, 0.5)),
    url("assets/medical-systematic-anatomy.jpg") right 1.25rem center / auto 78% no-repeat,
    var(--panel);
}

.medical-biochemistry-card {
  background:
    linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)),
    url("assets/medical-biochemistry-molecular-biology.jpg") right 1.25rem center / auto 78% no-repeat,
    var(--panel);
}

:root[data-theme="dark"] .medical-biochemistry-card {
  background:
    linear-gradient(rgba(17, 21, 38, 0.5), rgba(17, 21, 38, 0.5)),
    url("assets/medical-biochemistry-molecular-biology.jpg") right 1.25rem center / auto 78% no-repeat,
    var(--panel);
}

.medical-physiology-card {
  background:
    linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)),
    url("assets/medical-physiology.jpg") right 3.4rem center / auto 78% no-repeat,
    var(--panel);
}

:root[data-theme="dark"] .medical-physiology-card {
  background:
    linear-gradient(rgba(17, 21, 38, 0.5), rgba(17, 21, 38, 0.5)),
    url("assets/medical-physiology.jpg") right 3.4rem center / auto 78% no-repeat,
    var(--panel);
}

.medical-pathophysiology-card {
  background:
    linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)),
    url("assets/medical-pathophysiology.jpg") right 1.25rem center / auto 78% no-repeat,
    var(--panel);
}

:root[data-theme="dark"] .medical-pathophysiology-card {
  background:
    linear-gradient(rgba(17, 21, 38, 0.5), rgba(17, 21, 38, 0.5)),
    url("assets/medical-pathophysiology.jpg") right 1.25rem center / auto 78% no-repeat,
    var(--panel);
}

.medical-microbiology-card {
  background:
    linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)),
    url("assets/medical-microbiology.jpg") right 1.25rem center / auto 78% no-repeat,
    var(--panel);
}

:root[data-theme="dark"] .medical-microbiology-card {
  background:
    linear-gradient(rgba(17, 21, 38, 0.5), rgba(17, 21, 38, 0.5)),
    url("assets/medical-microbiology.jpg") right 1.25rem center / auto 78% no-repeat,
    var(--panel);
}

.medical-parasitology-card {
  background:
    linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)),
    url("assets/medical-parasitology.jpg") right 3.4rem center / auto 78% no-repeat,
    var(--panel);
}

:root[data-theme="dark"] .medical-parasitology-card {
  background:
    linear-gradient(rgba(17, 21, 38, 0.5), rgba(17, 21, 38, 0.5)),
    url("assets/medical-parasitology.jpg") right 3.4rem center / auto 78% no-repeat,
    var(--panel);
}

.medical-immunology-card {
  background:
    linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)),
    url("assets/medical-immunology.jpg") right 1.25rem center / auto 78% no-repeat,
    var(--panel);
}

:root[data-theme="dark"] .medical-immunology-card {
  background:
    linear-gradient(rgba(17, 21, 38, 0.5), rgba(17, 21, 38, 0.5)),
    url("assets/medical-immunology.jpg") right 1.25rem center / auto 78% no-repeat,
    var(--panel);
}

.medical-regional-anatomy-card {
  background:
    linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)),
    url("assets/medical-regional-anatomy.jpg") right 1.25rem center / auto 78% no-repeat,
    var(--panel);
}

:root[data-theme="dark"] .medical-regional-anatomy-card {
  background:
    linear-gradient(rgba(17, 21, 38, 0.5), rgba(17, 21, 38, 0.5)),
    url("assets/medical-regional-anatomy.jpg") right 1.25rem center / auto 78% no-repeat,
    var(--panel);
}

.medical-pathology-card {
  background:
    linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)),
    url("assets/medical-pathology.png") right 1.25rem center / auto 78% no-repeat,
    var(--panel);
}

:root[data-theme="dark"] .medical-pathology-card {
  background:
    linear-gradient(rgba(17, 21, 38, 0.5), rgba(17, 21, 38, 0.5)),
    url("assets/medical-pathology.png") right 1.25rem center / auto 78% no-repeat,
    var(--panel);
}

.medical-lab-animal-card {
  background:
    linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)),
    url("assets/medical-lab-animal-science.jpg") right 1.25rem center / auto 78% no-repeat,
    var(--panel);
}

:root[data-theme="dark"] .medical-lab-animal-card {
  background:
    linear-gradient(rgba(17, 21, 38, 0.5), rgba(17, 21, 38, 0.5)),
    url("assets/medical-lab-animal-science.jpg") right 1.25rem center / auto 78% no-repeat,
    var(--panel);
}

.review-card h2 {
  font-size: clamp(1.5rem, 3vw, 2.6rem);
}

.review-card p:not(.kicker) {
  color: var(--muted);
  line-height: 1.75;
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    position: relative;
    left: auto;
    top: auto;
    width: auto;
    min-height: 0;
    transform: none;
  }

  .hero-art {
    order: -1;
    width: min(100%, 28rem);
    aspect-ratio: 16 / 11;
  }

  .hero-meme-wrap {
    position: relative;
    left: auto;
    top: auto;
    width: min(100%, 24rem);
    height: auto;
    justify-self: start;
  }

  .intro-line {
    white-space: normal;
  }

  .stash-grid {
    grid-template-columns: 1fr;
  }

  .review-grid {
    grid-template-columns: 1fr;
  }

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

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

  .medical-meme-rail {
    display: none;
  }
}

@media (max-width: 560px) {
  .section-band {
    padding-inline: 1rem;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .nav a {
    padding-inline: 0.5rem;
    font-size: 0.86rem;
  }

  .game-category-grid {
    grid-template-columns: 1fr;
  }

  .book-grid {
    grid-template-columns: 1fr;
  }
}
