:root {
  --ink: #f4f0df;
  --muted: #b9c0ad;
  --deep: #121711;
  --panel: #1a211b;
  --panel-2: #22291f;
  --line: rgba(244, 240, 223, 0.18);
  --green: #b7f36b;
  --cyan: #65d9d2;
  --sun: #ffd15c;
  --coral: #ff6d5f;
  --pink: #f3a5cb;
  --shadow: rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(183, 243, 107, 0.12), transparent 24rem),
    linear-gradient(135deg, #121711 0%, #192017 42%, #282516 100%);
  font-family: "Microsoft YaHei UI", "Yu Gothic UI", "Noto Sans CJK SC", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background-image:
    linear-gradient(rgba(244, 240, 223, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 240, 223, 0.04) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 92%);
}

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

.scanline {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 20;
  opacity: 0.14;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 5px,
    rgba(255, 255, 255, 0.05) 6px
  );
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(18, 23, 17, 0.78);
  backdrop-filter: blur(18px);
}

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

.brand {
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px 12px 4px 12px;
  color: var(--deep);
  background: var(--green);
  font-family: "Cascadia Code", "Consolas", monospace;
  box-shadow: 5px 5px 0 var(--shadow);
}

.nav {
  gap: clamp(10px, 2vw, 24px);
  color: var(--muted);
  font-size: 14px;
}

.nav a:hover {
  color: var(--green);
}

.section {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(54px, 9vw, 104px) 0;
}

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  align-items: center;
  gap: clamp(36px, 7vw, 84px);
  padding-top: clamp(34px, 6vw, 70px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-family: "Cascadia Code", "Consolas", monospace;
  font-size: 13px;
  text-transform: uppercase;
}

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

h1,
h2 {
  line-height: 1.02;
  letter-spacing: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(56px, 10vw, 124px);
}

h1 span {
  display: block;
}

h1 span:first-child {
  white-space: nowrap;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(36px, 7vw, 74px);
}

h3 {
  line-height: 1.15;
  font-size: 26px;
}

.hero-lead {
  max-width: 620px;
  color: #e5e2d2;
  font-size: clamp(18px, 2.4vw, 24px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
}

.button.primary {
  color: var(--deep);
  background: var(--sun);
  box-shadow: 6px 6px 0 var(--shadow);
}

.button.ghost {
  color: var(--green);
  background: rgba(244, 240, 223, 0.05);
}

.base-visual {
  position: relative;
  min-height: 560px;
  opacity: 0.88;
}

.orbit {
  position: absolute;
  border: 1px dashed rgba(183, 243, 107, 0.38);
  border-radius: 50%;
  transform: rotate(-12deg);
}

.orbit-one {
  inset: 22px 18px 80px 8px;
}

.orbit-two {
  inset: 82px 78px 136px 64px;
  border-color: rgba(101, 217, 210, 0.32);
}

.base-shell {
  position: absolute;
  inset: 50px 0 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 26px 26px 10px 26px;
  background: linear-gradient(145deg, rgba(34, 41, 31, 0.98), rgba(22, 29, 22, 0.94));
  box-shadow: 22px 24px 0 rgba(0, 0, 0, 0.22);
}

.base-top {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.base-top span {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--coral);
}

.base-top span:nth-child(2) {
  background: var(--sun);
}

.base-top span:nth-child(3) {
  background: var(--green);
}

.base-grid {
  display: grid;
  min-height: 380px;
  grid-template-columns: 1fr 0.8fr;
  grid-template-rows: 1fr 0.8fr 0.8fr;
  gap: 14px;
}

.module {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 112px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px 14px 4px 14px;
  overflow: hidden;
  background: rgba(244, 240, 223, 0.06);
}

.module::after {
  position: absolute;
  right: -18px;
  bottom: -24px;
  width: 96px;
  height: 96px;
  content: "";
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.22;
}

.module small {
  color: var(--muted);
  font-family: "Cascadia Code", "Consolas", monospace;
}

.module strong {
  position: relative;
  z-index: 1;
  font-size: clamp(22px, 2.6vw, 34px);
  line-height: 1.05;
}

.module-map {
  grid-row: span 2;
  color: var(--green);
}

.module-notice {
  color: var(--sun);
}

.module-lab {
  color: var(--cyan);
}

.module-archive {
  grid-column: span 2;
  color: var(--pink);
}

.crew-dock {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 22px;
  display: flex;
  gap: 12px;
}

.mini {
  width: 34px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50% 50% 12px 12px;
  background: var(--green);
}

.mini.ding {
  background: var(--sun);
}

.mini.hundred {
  background: var(--coral);
}

.mini.alan {
  background: var(--cyan);
}

.ticker {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: rgba(255, 209, 92, 0.12);
}

.ticker div {
  display: flex;
  width: max-content;
  gap: 28px;
  padding: 12px 0;
  animation: drift 28s linear infinite;
}

.ticker span {
  white-space: nowrap;
  color: var(--sun);
  font-family: "Cascadia Code", "Consolas", monospace;
}

@keyframes drift {
  to {
    transform: translateX(-50%);
  }
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.notice-board,
.lab-panel {
  border: 1px solid var(--line);
  border-radius: 22px 22px 8px 22px;
  background: linear-gradient(135deg, rgba(244, 240, 223, 0.1), rgba(183, 243, 107, 0.08));
  box-shadow: 14px 16px 0 rgba(0, 0, 0, 0.18);
}

.notice-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 26px;
  padding: clamp(22px, 4vw, 42px);
}

.tag,
.stamp,
.soft-label,
.work-card span {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 16px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--deep);
  background: var(--green);
  font-family: "Cascadia Code", "Consolas", monospace;
  font-size: 12px;
  font-weight: 800;
}

.notice-main h3 {
  margin-bottom: 14px;
  font-size: clamp(36px, 7vw, 80px);
}

.notice-main p,
.lab-panel p {
  max-width: 740px;
  color: #e0decb;
  font-size: 19px;
}

.notice-meta {
  display: grid;
  gap: 14px;
  margin: 0;
}

.notice-meta div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px 12px 4px 12px;
  background: rgba(18, 23, 17, 0.34);
}

.notice-meta dt {
  color: var(--muted);
  font-size: 13px;
}

.notice-meta dd {
  margin: 2px 0 0;
  font-size: 20px;
  font-weight: 800;
}

.featured-result {
  display: grid;
  gap: 14px;
  align-content: stretch;
}

.initiator-box,
.result-card {
  border: 1px solid rgba(22, 23, 17, 0.14);
  border-radius: 16px 16px 5px 16px;
  background: rgba(255, 252, 238, 0.82);
  box-shadow: 7px 7px 0 rgba(22, 23, 17, 0.08);
}

.initiator-box {
  padding: 16px;
}

.initiator-box span,
.result-card span {
  display: inline-flex;
  margin-bottom: 8px;
  color: #5b5b4e;
  font-size: 13px;
  font-weight: 900;
}

.initiator-box strong {
  color: #161711;
  font-size: 24px;
}

.session-crew-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.session-crew-list strong {
  display: inline-flex;
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(22, 23, 17, 0.08);
  font-size: 20px;
}

.result-card {
  position: relative;
  min-height: 220px;
  display: grid;
  align-content: space-between;
  padding: 18px;
  color: #161711;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.result-card::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(to top, rgba(255, 252, 238, 0.98), rgba(255, 252, 238, 0.42)),
    url("./assets/neo-lab-romance.png") center / cover no-repeat;
}

.result-card::after {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  content: "▶";
  border-radius: 50%;
  color: #f4f0df;
  background: #161711;
  font-size: 16px;
  font-weight: 900;
}

.result-card:hover {
  box-shadow: 10px 10px 0 rgba(22, 23, 17, 0.12);
  transform: translateY(-3px);
}

.result-card span,
.result-card strong,
.result-card em {
  position: relative;
  z-index: 1;
}

.result-card strong {
  max-width: 300px;
  font-size: 25px;
  line-height: 1.15;
}

.result-card em {
  width: fit-content;
  border-bottom: 2px solid currentColor;
  font-style: normal;
  font-weight: 900;
}

.detail-link {
  display: inline-flex;
  width: fit-content;
  min-height: 42px;
  align-items: center;
  margin-top: 22px;
  padding: 8px 14px;
  border: 1px solid rgba(22, 23, 17, 0.16);
  border-radius: 10px 10px 4px 10px;
  color: #161711;
  background: var(--sun);
  box-shadow: 6px 6px 0 rgba(22, 23, 17, 0.1);
  font-weight: 900;
  text-decoration: underline;
  text-decoration-color: #161711;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.detail-link:hover {
  background: var(--green);
  box-shadow: 8px 8px 0 rgba(22, 23, 17, 0.12);
  transform: translateY(-2px);
}

.archive-grid,
.members-grid,
.works-grid {
  display: grid;
  gap: 18px;
}

.archive-grid {
  grid-template-columns: 1.3fr 0.7fr;
}

.featured-archive-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.session-card,
.member-card,
.work-card {
  border: 1px solid var(--line);
  background: rgba(244, 240, 223, 0.075);
  box-shadow: 8px 10px 0 rgba(0, 0, 0, 0.16);
}

.session-card {
  min-height: 290px;
  padding: 26px;
  border-radius: 18px 18px 6px 18px;
}

.archive-tile {
  min-height: 280px;
}

.session-card.placeholder {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: repeating-linear-gradient(
    -45deg,
    rgba(255, 209, 92, 0.08),
    rgba(255, 209, 92, 0.08) 10px,
    rgba(244, 240, 223, 0.04) 10px,
    rgba(244, 240, 223, 0.04) 22px
  );
}

.session-card ul {
  margin: 20px 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.session-card a {
  color: var(--sun);
  font-weight: 800;
}

.soft-label {
  color: var(--deep);
  background: var(--sun);
}

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

.member-card {
  position: relative;
  min-height: 360px;
  padding: 18px;
  border-radius: 18px 18px 6px 18px;
  overflow: hidden;
}

.member-card::before {
  position: absolute;
  inset: auto 14px 14px auto;
  color: rgba(244, 240, 223, 0.18);
  content: "CREW";
  font-family: "Cascadia Code", "Consolas", monospace;
  font-size: 42px;
  font-weight: 800;
}

.avatar {
  position: relative;
  width: 132px;
  height: 162px;
  margin: 8px auto 24px;
}

.avatar span {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.avatar .hair {
  top: 6px;
  width: 94px;
  height: 86px;
  border-radius: 46px 46px 20px 20px;
  background: #2c272a;
}

.avatar .face {
  top: 42px;
  width: 72px;
  height: 74px;
  border: 2px solid rgba(18, 23, 17, 0.52);
  border-radius: 44% 44% 48% 48%;
  background: #f1c8a8;
}

.avatar .face::before,
.avatar .face::after {
  position: absolute;
  top: 31px;
  width: 7px;
  height: 7px;
  content: "";
  border-radius: 50%;
  background: #161711;
}

.avatar .face::before {
  left: 20px;
}

.avatar .face::after {
  right: 20px;
}

.avatar .coat {
  bottom: 0;
  width: 110px;
  height: 62px;
  border-radius: 30px 30px 10px 10px;
  background: var(--green);
}

.ding-card .avatar .coat {
  background: var(--sun);
}

.hundred-card .avatar .coat {
  background: var(--coral);
}

.alan-card .avatar .coat {
  background: var(--cyan);
}

.ding-card .avatar .hair {
  background: #4b3826;
}

.hundred-card .avatar .hair {
  background: #181b1c;
}

.alan-card .avatar .hair {
  background: #2f333a;
}

.member-card h3 {
  margin-bottom: 4px;
}

.member-card p {
  color: #ebe6cf;
  font-weight: 800;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.chips span {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
}

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

.work-card {
  min-height: 250px;
  padding: 24px;
  border-radius: 18px 18px 6px 18px;
}

.work-card.featured {
  color: var(--deep);
  background: var(--sun);
}

.work-card.featured p,
.work-card.featured span {
  color: var(--deep);
}

.work-card span {
  color: var(--deep);
  background: var(--cyan);
}

.work-card p {
  color: var(--muted);
}

.work-card.featured p {
  opacity: 0.78;
}

.lab-panel {
  position: relative;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 34px;
  padding: clamp(26px, 5vw, 54px);
  overflow: hidden;
}

.lab-panel::after {
  position: absolute;
  right: -60px;
  bottom: -90px;
  width: 300px;
  height: 300px;
  content: "";
  border: 1px solid rgba(255, 209, 92, 0.46);
  border-radius: 50%;
}

.lab-console {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 6px;
}

.lab-console span {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px 10px 4px 10px;
  color: var(--green);
  background: rgba(18, 23, 17, 0.42);
  font-family: "Cascadia Code", "Consolas", monospace;
  font-size: 13px;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 28px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: "Cascadia Code", "Consolas", monospace;
  font-size: 13px;
}

.footer-legal {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  margin-left: auto;
  color: inherit;
}

.footer-legal a,
.footer-legal span {
  color: inherit;
  opacity: 0.82;
}

.footer-legal a {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.footer-legal a:hover {
  color: var(--green);
  opacity: 1;
}

.tool-footer {
  width: min(1180px, calc(100vw - 40px));
  margin: 0 auto;
  padding-inline: 0;
  border-top-color: rgba(19, 20, 16, 0.14);
}

@media (max-width: 900px) {
  .site-header,
  .section-heading,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-legal {
    margin-left: 0;
  }

  .hero,
  .notice-board,
  .archive-grid,
  .featured-archive-grid,
  .lab-panel {
    grid-template-columns: 1fr;
  }

  .base-visual {
    min-height: 470px;
  }

  .members-grid,
  .works-grid,
  .lab-console {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .nav {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
    font-size: 12px;
  }

  .hero {
    min-height: auto;
  }

  .base-visual {
    min-height: 420px;
  }

  .base-grid,
  .members-grid,
  .works-grid,
  .featured-archive-grid,
  .lab-console {
    grid-template-columns: 1fr;
  }

  .module,
  .module-map,
  .module-archive {
    grid-column: auto;
    grid-row: auto;
  }

  .base-shell {
    inset: 32px 0 0;
  }

  .hero-actions {
    flex-direction: column;
  }
}

.player-page {
  min-height: 100vh;
  background:
    linear-gradient(rgba(238, 231, 204, 0.55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(238, 231, 204, 0.55) 1px, transparent 1px),
    var(--paper);
  background-size: 44px 44px;
  color: var(--ink);
}

.player-shell {
  width: min(1160px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.player-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  color: #4f5247;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 900;
}

.player-back {
  display: inline-flex;
  align-items: center;
  color: #141510;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 5px;
}

.player-panel {
  padding: clamp(18px, 3vw, 34px);
  border: 1px solid rgba(19, 20, 16, 0.14);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 249, 232, 0.98), rgba(244, 240, 223, 0.94)),
    url("./assets/neo-lab-romance.png") right center / cover no-repeat;
  box-shadow: 12px 12px 0 rgba(19, 20, 16, 0.12);
}

.player-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.player-heading .mono-label {
  margin: 0;
  font-size: 12px;
  color: #4f5247;
}

.player-panel h1 {
  width: min(900px, 100%);
  margin: 0;
  font-size: clamp(26px, 4vw, 48px);
  line-height: 1.16;
  letter-spacing: 0;
  color: #141510;
}

.player-stage {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: calc(100vh - 230px);
  min-height: 320px;
  overflow: hidden;
  border-radius: 18px;
  background: #10150f;
  box-shadow: 8px 8px 0 rgba(19, 20, 16, 0.18);
}

.player-panel video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #10150f;
}

.player-note {
  margin: 18px 0 0;
  color: #4f5247;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.7;
}

.player-note a {
  display: inline-flex;
  margin-left: 6px;
  padding: 3px 9px;
  border: 1px solid rgba(22, 23, 17, 0.18);
  border-radius: 999px;
  color: #161711;
  background: var(--green);
  text-decoration: none;
  box-shadow: 3px 3px 0 rgba(22, 23, 17, 0.12);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.player-note a:hover {
  box-shadow: 5px 5px 0 rgba(22, 23, 17, 0.14);
  transform: translateY(-1px);
}

.reader-page {
  min-height: 100vh;
  background:
    linear-gradient(rgba(238, 231, 204, 0.55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(238, 231, 204, 0.55) 1px, transparent 1px),
    var(--paper);
  background-size: 44px 44px;
  color: #141510;
}

.reader-shell {
  width: min(1180px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.reader-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  color: #4f5247;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 900;
}

.reader-back {
  color: #141510;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 5px;
}

.reader-panel {
  padding: clamp(18px, 3vw, 34px);
  border: 1px solid rgba(19, 20, 16, 0.14);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 252, 238, 0.98), rgba(244, 240, 223, 0.96)),
    repeating-linear-gradient(0deg, rgba(22, 23, 17, 0.045) 0 1px, transparent 1px 28px);
  box-shadow: 12px 12px 0 rgba(19, 20, 16, 0.12);
}

.reader-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.reader-heading .mono-label {
  margin: 0;
  color: #4f5247;
  font-size: 12px;
}

.reader-panel h1 {
  width: min(900px, 100%);
  margin: 0;
  color: #141510;
  font-size: clamp(26px, 4vw, 48px);
  line-height: 1.16;
}

.reader-stage {
  width: 100%;
  height: min(76vh, 880px);
  min-height: 520px;
  overflow: hidden;
  border: 1px solid rgba(19, 20, 16, 0.14);
  border-radius: 18px;
  background: #fffdf4;
  box-shadow: 8px 8px 0 rgba(19, 20, 16, 0.12);
}

.reader-stage iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fffdf4;
}

.reader-note {
  margin: 18px 0 0;
  color: #4f5247;
  font-size: 15px;
  font-weight: 800;
}

.reader-note a {
  color: #141510;
  font-weight: 900;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

@media (max-width: 760px) {
  .player-shell {
    width: min(100vw - 24px, 1160px);
    padding-top: 14px;
  }

  .player-nav {
    margin-bottom: 12px;
  }

  .player-panel {
    padding: 14px;
    border-radius: 18px;
    box-shadow: 7px 7px 0 rgba(19, 20, 16, 0.12);
  }

  .player-panel h1 {
    font-size: 24px;
  }

  .player-stage {
    min-height: 0;
    max-height: none;
    border-radius: 14px;
  }

  .reader-shell {
    width: min(100vw - 24px, 1180px);
    padding-top: 14px;
  }

  .reader-panel {
    padding: 14px;
    border-radius: 18px;
    box-shadow: 7px 7px 0 rgba(19, 20, 16, 0.12);
  }

  .reader-panel h1 {
    font-size: 24px;
  }

  .reader-stage {
    height: 72vh;
    min-height: 420px;
    border-radius: 14px;
  }
}

/* v0.2: dark / light split rhythm and simpler hierarchy */
.dark-band,
.light-band {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-inline: clamp(18px, 4vw, 56px);
}

.dark-band {
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(183, 243, 107, 0.12), transparent 24rem),
    linear-gradient(135deg, #111610 0%, #1a2118 55%, #242217 100%);
}

.light-band {
  color: #161711;
  background:
    linear-gradient(90deg, rgba(22, 23, 17, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(22, 23, 17, 0.045) 1px, transparent 1px),
    #f4f0df;
  background-size: 38px 38px;
}

.members-section.light-band {
  background:
    radial-gradient(circle at 12% 22%, rgba(255, 209, 92, 0.28), transparent 18rem),
    linear-gradient(90deg, rgba(22, 23, 17, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(22, 23, 17, 0.04) 1px, transparent 1px),
    #fbf7e4;
  background-size: auto, 34px 34px, 34px 34px, auto;
}

.section:not(.hero).dark-band > *,
.section:not(.hero).light-band > * {
  width: min(1160px, 100%);
  margin-inline: auto;
}

.hero.dark-band {
  position: relative;
  grid-template-columns: minmax(0, 700px);
  padding-inline: clamp(18px, 4vw, 56px);
  overflow: hidden;
  isolation: isolate;
}

.hero.dark-band::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    linear-gradient(90deg, rgba(17, 22, 16, 0.96) 0%, rgba(17, 22, 16, 0.76) 38%, rgba(17, 22, 16, 0.18) 100%),
    url("./assets/base-hero.png") right center / cover no-repeat;
}

.hero.dark-band::after {
  display: none;
}

.hero-stickers {
  position: absolute;
  right: clamp(18px, 4vw, 56px);
  top: 104px;
  display: grid;
  gap: 12px;
  justify-items: end;
}

.hero-stickers span {
  display: inline-grid;
  min-height: 40px;
  place-items: center;
  padding: 8px 14px;
  border: 1px solid rgba(244, 240, 223, 0.38);
  color: var(--deep);
  background: var(--sun);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.18);
  transform: rotate(6deg);
  font-family: "Cascadia Code", "Consolas", monospace;
  font-size: 12px;
  font-weight: 900;
}

.hero-stickers span:nth-child(2) {
  background: var(--green);
  transform: rotate(-4deg);
}

.hero-copy {
  max-width: 650px;
}

.hero-lead {
  max-width: 560px;
}

.section-heading {
  align-items: flex-end;
  margin-bottom: 22px;
}

.section-heading h2 {
  margin-bottom: 0;
}

.section-heading p {
  max-width: 380px;
  margin: 0;
  color: currentColor;
  font-size: 18px;
  font-weight: 700;
  opacity: 0.72;
}

.light-band .eyebrow {
  color: #485327;
}

.light-band .notice-board,
.light-band .lab-panel,
.light-band .crew-pill {
  border-color: rgba(22, 23, 17, 0.16);
  color: #161711;
  background: rgba(255, 252, 238, 0.86);
  box-shadow: 12px 12px 0 rgba(22, 23, 17, 0.1);
}

.light-band .notice-main p,
.light-band .lab-panel p,
.light-band .work-card p,
.light-band .session-card ul,
.light-band .notice-meta dt {
  color: #424235;
}

.light-band .notice-meta div,
.light-band .initiator-box,
.light-band .lab-console span {
  border-color: rgba(22, 23, 17, 0.14);
  background: rgba(22, 23, 17, 0.045);
}

.light-band .tag,
.light-band .stamp,
.light-band .soft-label {
  color: #f4f0df;
  background: #161711;
}

.notice-main h3 {
  font-size: clamp(42px, 7vw, 92px);
}

.notice-main p,
.lab-panel p {
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.55;
}

.notice-meta {
  align-content: center;
}

.sticker-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.sticker-row span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid rgba(22, 23, 17, 0.14);
  border-radius: 999px;
  color: #161711;
  background: #fff8c7;
  box-shadow: 4px 4px 0 rgba(22, 23, 17, 0.08);
  font-size: 14px;
  font-weight: 900;
}

.sticker-row span:nth-child(2) {
  background: #dff7ef;
  transform: rotate(-2deg);
}

.sticker-row span:nth-child(3) {
  background: #ffd7d2;
  transform: rotate(2deg);
}

.compact-section {
  padding-block: clamp(42px, 7vw, 82px);
}

.crew-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.crew-pill {
  position: relative;
  min-height: 136px;
  padding: 18px;
  border: 1px solid rgba(22, 23, 17, 0.16);
  border-radius: 18px 18px 6px 18px;
  overflow: hidden;
}

.crew-pill::after {
  position: absolute;
  right: 12px;
  bottom: -14px;
  color: rgba(22, 23, 17, 0.08);
  content: "CREW";
  font-family: "Cascadia Code", "Consolas", monospace;
  font-size: 44px;
  font-weight: 800;
}

.crew-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  margin-bottom: 12px;
  border: 1px solid rgba(22, 23, 17, 0.18);
  border-radius: 50%;
  color: #161711;
  background: var(--sun);
  font-size: 20px;
  font-weight: 900;
}

.crew-pill h3 {
  margin-bottom: 2px;
  font-size: 24px;
}

.crew-pill p {
  margin: 0;
  color: #424235;
  font-size: 15px;
  font-weight: 800;
}

.susu-card .crew-mark {
  background: var(--pink);
}

.ding-card .crew-mark {
  background: var(--sun);
}

.hundred-card .crew-mark {
  background: var(--coral);
}

.alan-card .crew-mark {
  background: var(--cyan);
}

.crew-note {
  width: min(1160px, 100%);
  margin: 14px auto 0;
  color: #5b5b4e;
  font-size: 14px;
  font-weight: 800;
}

.crew-orbit {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
  padding: 34px 0 22px;
}

.crew-orbit::before {
  display: none;
}

.crew-path {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  width: 100%;
  height: 150px;
  overflow: visible;
}

.crew-path path {
  fill: none;
  stroke: rgba(22, 23, 17, 0.24);
  stroke-dasharray: 7 9;
  stroke-linecap: round;
  stroke-width: 3;
}

.crew-token {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 96px;
  padding: 0;
  color: #161711;
}

.crew-token::after {
  position: absolute;
  left: 27px;
  top: 33px;
  width: 16px;
  height: 16px;
  content: "";
  border: 3px solid #fbf7e4;
  border-radius: 50%;
  background: #161711;
}

.crew-token:nth-child(2) {
  transform: translateY(18px);
}

.crew-token:nth-child(3) {
  transform: translateY(-8px);
}

.crew-token:nth-child(4) {
  transform: translateY(14px);
}

.crew-token .crew-mark {
  position: relative;
  z-index: 1;
  margin: 0;
  width: 64px;
  height: 64px;
  border: 2px solid rgba(22, 23, 17, 0.18);
  box-shadow: 7px 7px 0 rgba(22, 23, 17, 0.09);
  font-size: 26px;
}

.crew-token .crew-mark::before {
  position: absolute;
  left: 17px;
  top: 18px;
  width: 6px;
  height: 6px;
  content: "";
  border-radius: 50%;
  background: #161711;
  box-shadow: 18px 0 0 #161711;
}

.crew-token .crew-mark::after {
  position: absolute;
  left: 22px;
  top: 35px;
  width: 18px;
  height: 8px;
  content: "";
  border-bottom: 3px solid #161711;
  border-radius: 50%;
}

.crew-token h3 {
  margin: 0;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1;
}

.crew-token p {
  margin: 6px 0 0;
  color: #424235;
  font-size: 14px;
  font-weight: 900;
}

.archive-grid {
  align-items: stretch;
}

.session-card,
.work-card {
  min-height: 230px;
}

.work-card {
  position: relative;
  overflow: hidden;
}

.work-card i {
  position: absolute;
  right: 18px;
  bottom: -8px;
  color: rgba(244, 240, 223, 0.09);
  font-style: normal;
  font-size: 96px;
  font-weight: 900;
  line-height: 1;
}

.work-card.featured i {
  color: rgba(18, 23, 17, 0.12);
}

.session-card h3,
.work-card h3 {
  max-width: 420px;
}

.works-section .section-heading p {
  color: #e3dec8;
}

.lab-section.dark-band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.lab-section.dark-band::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    linear-gradient(90deg, rgba(17, 22, 16, 0.98) 0%, rgba(17, 22, 16, 0.86) 48%, rgba(17, 22, 16, 0.34) 100%),
    url("./assets/neo-lab-romance.png") right center / cover no-repeat;
}

.lab-section.dark-band::after {
  position: absolute;
  left: clamp(18px, 4vw, 56px);
  bottom: 34px;
  z-index: -1;
  width: 118px;
  height: 118px;
  content: "";
  border: 1px dashed rgba(244, 240, 223, 0.24);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 209, 92, 0.8) 0 8px, transparent 9px),
    repeating-conic-gradient(from 0deg, rgba(244, 240, 223, 0.1) 0 8deg, transparent 8deg 18deg);
}

.lab-video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.lab-work-card {
  position: relative;
  display: grid;
  min-height: 310px;
  align-content: space-between;
  padding: 22px;
  border: 1px solid rgba(244, 240, 223, 0.18);
  border-radius: 18px 18px 6px 18px;
  color: var(--ink);
  background:
    linear-gradient(to top, rgba(18, 23, 17, 0.92), rgba(18, 23, 17, 0.36)),
    url("./assets/neo-lab-romance.png") center / cover no-repeat;
  box-shadow: 9px 10px 0 rgba(0, 0, 0, 0.16);
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.lab-work-card::after {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  content: "▶";
  border-radius: 50%;
  color: #161711;
  background: var(--sun);
  font-size: 15px;
  font-weight: 900;
}

.lab-work-card:hover {
  box-shadow: 13px 14px 0 rgba(0, 0, 0, 0.2);
  transform: translateY(-5px);
}

.lab-work-card.placeholder {
  background:
    linear-gradient(135deg, rgba(244, 240, 223, 0.1), rgba(101, 217, 210, 0.06)),
    repeating-linear-gradient(-45deg, rgba(244, 240, 223, 0.07) 0 1px, transparent 1px 18px);
}

.lab-work-card.placeholder::after {
  content: "…";
  color: var(--ink);
  background: rgba(244, 240, 223, 0.12);
}

.lab-work-card span,
.lab-work-card strong,
.lab-work-card em {
  position: relative;
  z-index: 1;
}

.lab-work-card span {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  color: #161711;
  background: var(--green);
  font-family: "Cascadia Code", "Consolas", monospace;
  font-size: 12px;
  font-weight: 900;
}

.lab-work-card strong {
  max-width: 300px;
  font-size: clamp(24px, 2.5vw, 34px);
  line-height: 1.12;
}

.lab-work-card em {
  width: fit-content;
  border-bottom: 2px solid currentColor;
  font-style: normal;
  font-weight: 900;
}

@media (max-width: 900px) {
  .hero.dark-band {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: flex-start;
  }

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

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

  .crew-orbit::before {
    display: none;
  }

  .crew-path {
    display: none;
  }

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

@media (max-width: 620px) {
  .hero-stickers {
    position: static;
    justify-items: start;
    margin-top: 28px;
  }

  .crew-strip {
    grid-template-columns: 1fr;
  }

  .crew-orbit {
    grid-template-columns: 1fr;
  }

  .crew-token,
  .crew-token:nth-child(2),
  .crew-token:nth-child(3),
  .crew-token:nth-child(4) {
    transform: none;
  }

  .featured-archive-grid {
    grid-template-columns: 1fr;
  }

  .section-heading p {
    font-size: 16px;
  }
}

/* Session detail page */
.session-hero,
.session-section {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(56px, 9vw, 112px) clamp(18px, 4vw, 56px);
}

.session-hero {
  position: relative;
  min-height: 68vh;
  display: grid;
  align-content: center;
  overflow: hidden;
  isolation: isolate;
}

.session-hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    linear-gradient(90deg, rgba(17, 22, 16, 0.98) 0%, rgba(17, 22, 16, 0.76) 46%, rgba(17, 22, 16, 0.2) 100%),
    url("./assets/base-hero.png") right center / cover no-repeat;
}

.session-hero-inner,
.session-section > * {
  width: min(1160px, 100%);
  margin-inline: auto;
}

.session-hero-inner {
  display: grid;
  justify-items: start;
}

.session-kicker {
  width: fit-content;
  margin-bottom: 16px;
  padding: 6px 10px;
  border: 1px solid rgba(244, 240, 223, 0.25);
  border-radius: 999px;
  color: var(--green);
  font-family: "Cascadia Code", "Consolas", monospace;
  font-size: 13px;
  font-weight: 900;
}

.session-hero h1 {
  max-width: 880px;
  margin-bottom: 22px;
  font-size: clamp(64px, 12vw, 150px);
  text-align: left;
}

.session-hero p {
  max-width: 640px;
  margin-inline: 0;
  color: #e5e2d2;
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.5;
  text-align: left;
}

.session-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.session-tags span {
  padding: 7px 12px;
  border: 1px solid rgba(244, 240, 223, 0.2);
  border-radius: 999px;
  color: var(--deep);
  background: var(--sun);
  font-size: 14px;
  font-weight: 900;
}

.session-tags span:nth-child(2) {
  background: var(--green);
}

.session-tags span:nth-child(3) {
  background: var(--cyan);
}

.session-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(24px, 5vw, 60px);
  align-items: end;
}

.large-copy {
  max-width: 720px;
  margin: 0;
  color: #3b3b31;
  font-size: clamp(21px, 2.5vw, 30px);
  line-height: 1.55;
  font-weight: 800;
}

.memo-card,
.activity-window,
.topic-grid article,
.artifact-list article {
  border: 1px solid rgba(22, 23, 17, 0.15);
  border-radius: 18px 18px 6px 18px;
  background: rgba(255, 252, 238, 0.86);
  box-shadow: 10px 10px 0 rgba(22, 23, 17, 0.08);
}

.memo-card {
  padding: 20px;
}

.memo-card span {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #f4f0df;
  background: #161711;
  font-family: "Cascadia Code", "Consolas", monospace;
  font-size: 12px;
  font-weight: 900;
}

.memo-card p {
  margin: 0;
  color: #424235;
  font-weight: 800;
}

.activity-window {
  position: relative;
  padding: 16px;
  overflow: hidden;
}

.activity-window::after {
  position: absolute;
  right: -34px;
  bottom: -34px;
  width: 118px;
  height: 118px;
  content: "";
  border: 1px dashed rgba(22, 23, 17, 0.18);
  border-radius: 50%;
}

.window-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.window-top span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--coral);
}

.window-top span:nth-child(2) {
  background: var(--sun);
}

.window-top span:nth-child(3) {
  background: var(--green);
}

.window-top strong {
  margin-left: auto;
  font-family: "Cascadia Code", "Consolas", monospace;
  font-size: 12px;
}

.photo-stack {
  position: relative;
  min-height: 230px;
}

.photo-frame {
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: min(78%, 300px);
  min-height: 178px;
  padding: 16px;
  border: 1px solid rgba(22, 23, 17, 0.18);
  border-radius: 14px 14px 5px 14px;
  color: #161711;
  background:
    linear-gradient(135deg, rgba(255, 209, 92, 0.88), rgba(101, 217, 210, 0.58)),
    linear-gradient(45deg, rgba(22, 23, 17, 0.08) 25%, transparent 25% 50%, rgba(22, 23, 17, 0.08) 50% 75%, transparent 75%);
  background-size: auto, 28px 28px;
  box-shadow: 8px 8px 0 rgba(22, 23, 17, 0.12);
  cursor: pointer;
  text-align: left;
  transition: transform 180ms ease, opacity 180ms ease, box-shadow 180ms ease;
}

.photo-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.86;
}

.photo-frame:has(.photo-image)::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(to top, rgba(22, 23, 17, 0.62), rgba(22, 23, 17, 0.08));
}

.photo-frame:nth-child(1) {
  left: 0;
  top: 4px;
  z-index: 2;
  transform: rotate(-3deg);
}

.photo-frame:nth-child(2) {
  right: 0;
  top: 38px;
  z-index: 1;
  background:
    linear-gradient(135deg, rgba(243, 165, 203, 0.82), rgba(183, 243, 107, 0.58)),
    linear-gradient(45deg, rgba(22, 23, 17, 0.08) 25%, transparent 25% 50%, rgba(22, 23, 17, 0.08) 50% 75%, transparent 75%);
  background-size: auto, 28px 28px;
  transform: rotate(4deg);
}

.photo-frame.active {
  z-index: 3;
  box-shadow: 12px 12px 0 rgba(22, 23, 17, 0.14);
  transform: rotate(0deg) translateY(-6px);
}

.photo-frame:hover {
  transform: rotate(0deg) translateY(-8px);
}

.photo-frame span {
  position: relative;
  z-index: 1;
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  color: #f4f0df;
  background: #161711;
  font-family: "Cascadia Code", "Consolas", monospace;
  font-size: 12px;
  font-weight: 900;
}

.photo-frame strong {
  position: relative;
  z-index: 1;
  color: #f4f0df;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.32);
  font-size: 24px;
  line-height: 1.1;
}

.photo-frame em {
  position: relative;
  z-index: 1;
  width: fit-content;
  color: #f4f0df;
  border-bottom: 2px solid currentColor;
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

.photo-caption {
  position: relative;
  z-index: 4;
  min-height: 82px;
  margin-top: 6px;
  padding: 14px;
  border: 1px solid rgba(22, 23, 17, 0.12);
  border-radius: 12px 12px 4px 12px;
  background: rgba(244, 240, 223, 0.76);
}

.photo-caption span {
  display: inline-flex;
  margin-bottom: 6px;
  color: #5b5b4e;
  font-size: 13px;
  font-weight: 900;
}

.photo-caption p {
  margin: 0;
  color: #2e2f27;
  font-weight: 800;
}

.has-open-lightbox {
  overflow: hidden;
}

.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  grid-template-columns: minmax(44px, 0.12fr) minmax(0, 1fr) minmax(44px, 0.12fr);
  align-items: center;
  gap: clamp(8px, 2vw, 24px);
  padding: clamp(18px, 4vw, 54px);
  background: rgba(17, 22, 16, 0.88);
  backdrop-filter: blur(10px);
}

.photo-lightbox[hidden] {
  display: none;
}

.photo-lightbox figure {
  display: grid;
  gap: 14px;
  max-width: min(1120px, 100%);
  margin: 0 auto;
}

.photo-lightbox img {
  display: block;
  max-width: 100%;
  max-height: 76vh;
  margin: 0 auto;
  object-fit: contain;
  border: 1px solid rgba(244, 240, 223, 0.24);
  border-radius: 18px 18px 6px 18px;
  background: #10150f;
  box-shadow: 12px 12px 0 rgba(0, 0, 0, 0.26);
}

.photo-lightbox figcaption {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 14px 16px;
  border: 1px solid rgba(244, 240, 223, 0.18);
  border-radius: 14px 14px 5px 14px;
  color: #f4f0df;
  background: rgba(244, 240, 223, 0.08);
}

.photo-lightbox figcaption span {
  display: block;
  margin-bottom: 5px;
  color: var(--green);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 900;
}

.photo-lightbox figcaption strong {
  display: block;
  margin-bottom: 5px;
  font-size: clamp(20px, 3vw, 30px);
  line-height: 1.16;
}

.photo-lightbox figcaption p {
  margin: 0;
  color: #e5e2d2;
  font-weight: 800;
  line-height: 1.55;
}

.photo-lightbox-close,
.photo-lightbox-nav {
  display: grid;
  place-items: center;
  border: 1px solid rgba(244, 240, 223, 0.22);
  color: #f4f0df;
  background: rgba(244, 240, 223, 0.08);
  cursor: pointer;
  font-weight: 900;
}

.photo-lightbox-close {
  position: absolute;
  top: clamp(14px, 3vw, 28px);
  right: clamp(14px, 3vw, 28px);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 30px;
  line-height: 1;
}

.photo-lightbox-nav {
  width: clamp(42px, 6vw, 64px);
  height: clamp(58px, 8vw, 86px);
  border-radius: 999px;
  font-size: clamp(34px, 5vw, 58px);
}

.photo-lightbox-nav:hover,
.photo-lightbox-close:hover {
  color: #161711;
  background: var(--green);
}

@media (max-width: 760px) {
  .photo-lightbox {
    grid-template-columns: 1fr 1fr;
    align-items: end;
    padding: 56px 14px 18px;
  }

  .photo-lightbox figure {
    grid-column: 1 / -1;
  }

  .photo-lightbox img {
    max-height: 68vh;
    border-radius: 14px 14px 5px 14px;
  }

  .photo-lightbox-nav {
    width: 100%;
    height: 44px;
    font-size: 34px;
  }
}

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

.topic-grid article {
  min-height: 230px;
  padding: 24px;
  color: var(--ink);
  border-color: rgba(244, 240, 223, 0.15);
  background: rgba(244, 240, 223, 0.07);
  box-shadow: 8px 10px 0 rgba(0, 0, 0, 0.16);
}

.question-card {
  position: relative;
  display: grid;
  align-content: start;
  overflow: visible;
}

.question-card h3 {
  display: -webkit-box;
  min-height: 2.3em;
  margin: 0 0 18px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.topic-grid p {
  display: -webkit-box;
  margin-bottom: 0;
  color: var(--muted);
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.question-more {
  display: none;
  width: fit-content;
  margin-top: 8px;
  padding: 0 7px 3px;
  border: 1px solid rgba(244, 240, 223, 0.2);
  border-radius: 999px;
  color: var(--sun);
  background: rgba(244, 240, 223, 0.08);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  line-height: 1;
}

.question-card.has-overflow .question-more {
  display: inline-grid;
  place-items: center;
}

.question-card::after {
  position: absolute;
  left: 18px;
  right: 18px;
  top: calc(100% - 12px);
  z-index: 8;
  display: block;
  max-width: 460px;
  padding: 16px;
  content: attr(data-full);
  border: 1px solid rgba(244, 240, 223, 0.18);
  border-radius: 14px 14px 5px 14px;
  color: #161711;
  background: var(--sun);
  box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.22);
  font-weight: 900;
  line-height: 1.55;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease;
  white-space: pre-line;
}

.question-card.show-full::after {
  opacity: 1;
  transform: translateY(0);
}

.artifact-list {
  display: grid;
  gap: 12px;
}

.artifact-list article {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) minmax(220px, 0.6fr);
  gap: 18px;
  align-items: center;
  min-height: 108px;
  padding: 18px;
}

.artifact-list strong {
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  color: #161711;
  background: var(--green);
  font-family: "Cascadia Code", "Consolas", monospace;
  font-size: 12px;
}

.artifact-list h3,
.artifact-list p {
  margin: 0;
}

.artifact-list p {
  color: #424235;
  font-weight: 700;
}

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

.shelf-card {
  min-height: 360px;
  border: 1px solid rgba(22, 23, 17, 0.15);
  border-radius: 20px 20px 7px 20px;
  background: rgba(255, 252, 238, 0.86);
  box-shadow: 10px 10px 0 rgba(22, 23, 17, 0.08);
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.shelf-card.active {
  background:
    linear-gradient(135deg, rgba(255, 209, 92, 0.22), rgba(255, 252, 238, 0.95));
  box-shadow: 14px 14px 0 rgba(22, 23, 17, 0.12);
  transform: translateY(-4px);
}

.shelf-card button {
  display: grid;
  width: 100%;
  min-height: 188px;
  padding: 22px;
  border: 0;
  color: #161711;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.shelf-card button span {
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  color: #f4f0df;
  background: #161711;
  font-family: "Cascadia Code", "Consolas", monospace;
  font-size: 12px;
  font-weight: 900;
}

.shelf-card button strong {
  align-self: end;
  max-width: 360px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
}

.shelf-card button em {
  color: #5b5b4e;
  font-style: normal;
  font-weight: 900;
}

.shelf-detail {
  display: grid;
  grid-template-rows: 0fr;
  padding: 0 22px;
  transition: grid-template-rows 220ms ease, padding 220ms ease;
}

.shelf-detail > * {
  overflow: hidden;
}

.shelf-card.active .shelf-detail {
  grid-template-rows: 1fr;
  padding: 0 22px 22px;
}

.shelf-detail p {
  margin: 0 0 16px;
  color: #424235;
  font-weight: 800;
}

.shelf-detail a {
  width: fit-content;
  color: #161711;
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.media-shelf {
  align-items: stretch;
}

.media-card {
  position: relative;
  display: grid;
  min-height: 430px;
  align-content: space-between;
  padding: 24px;
  border: 1px solid rgba(22, 23, 17, 0.15);
  border-radius: 22px 22px 8px 22px;
  color: #161711;
  background:
    linear-gradient(135deg, rgba(255, 209, 92, 0.78), rgba(255, 252, 238, 0.88)),
    url("./assets/neo-lab-romance.png") center / cover no-repeat;
  box-shadow: 12px 12px 0 rgba(22, 23, 17, 0.1);
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.media-card::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(to top, rgba(255, 252, 238, 0.98) 0%, rgba(255, 252, 238, 0.62) 48%, rgba(255, 252, 238, 0.18) 100%);
}

.media-card::after {
  position: absolute;
  right: 18px;
  bottom: 14px;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(22, 23, 17, 0.18);
  border-radius: 50%;
  color: #f4f0df;
  background: #161711;
  font-size: 22px;
  font-weight: 900;
}

.media-video::after {
  content: "▶";
}

.media-note::after {
  content: "读";
}

.media-pack::after {
  content: "↓";
}

.media-note,
.media-pack {
  background:
    linear-gradient(135deg, rgba(244, 240, 223, 0.86), rgba(255, 252, 238, 0.94)),
    repeating-linear-gradient(0deg, rgba(22, 23, 17, 0.06) 0 1px, transparent 1px 24px);
}

.media-pack {
  background:
    linear-gradient(135deg, rgba(183, 243, 107, 0.25), rgba(255, 252, 238, 0.92)),
    repeating-linear-gradient(90deg, rgba(22, 23, 17, 0.05) 0 1px, transparent 1px 26px);
}

.media-card:hover {
  box-shadow: 16px 16px 0 rgba(22, 23, 17, 0.14);
  transform: translateY(-5px);
}

.media-card span,
.media-card strong,
.media-card em {
  position: relative;
  z-index: 1;
}

.media-card span {
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  color: #f4f0df;
  background: #161711;
  font-family: "Cascadia Code", "Consolas", monospace;
  font-size: 12px;
  font-weight: 900;
}

.media-card strong {
  max-width: 420px;
  align-self: end;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
}

.media-card em {
  width: fit-content;
  padding-bottom: 4px;
  border-bottom: 3px solid currentColor;
  color: #161711;
  font-style: normal;
  font-size: 20px;
  font-weight: 900;
}

.media-card[aria-disabled="true"] {
  cursor: default;
}

.media-card[aria-disabled="true"] em {
  opacity: 0.58;
}

.neo-link {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.neo-link::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    linear-gradient(90deg, rgba(17, 22, 16, 0.96) 0%, rgba(17, 22, 16, 0.8) 42%, rgba(17, 22, 16, 0.2) 100%),
    url("./assets/neo-lab-romance.png") right center / cover no-repeat;
  filter: saturate(1.05);
}

.neo-link p {
  max-width: 640px;
  color: #e5e2d2;
  font-size: clamp(18px, 2vw, 24px);
}

.neo-link .button {
  margin-top: 18px;
}

@media (max-width: 900px) {
  .session-layout,
  .topic-grid,
  .shelf-grid,
  .lab-video-grid,
  .artifact-list article {
    grid-template-columns: 1fr;
  }
}

/* Listing pages */
.page-hero,
.page-section {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(56px, 9vw, 112px) clamp(18px, 4vw, 56px);
}

.page-hero {
  position: relative;
  min-height: 58vh;
  display: grid;
  align-content: center;
  overflow: hidden;
  isolation: isolate;
}

.page-hero > *,
.page-section > * {
  width: min(1160px, 100%);
  margin-inline: auto;
}

.page-hero h1 {
  max-width: 900px;
  margin-bottom: 20px;
  font-size: clamp(62px, 12vw, 148px);
}

.page-hero p:not(.eyebrow) {
  max-width: 680px;
  color: #e5e2d2;
  font-size: clamp(19px, 2.4vw, 27px);
  line-height: 1.5;
}

.archive-hero::before,
.neo-page-hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    linear-gradient(90deg, rgba(17, 22, 16, 0.98) 0%, rgba(17, 22, 16, 0.78) 45%, rgba(17, 22, 16, 0.22) 100%),
    url("./assets/base-hero.png") right center / cover no-repeat;
}

.neo-page-hero::before {
  background:
    linear-gradient(90deg, rgba(17, 22, 16, 0.98) 0%, rgba(17, 22, 16, 0.78) 45%, rgba(17, 22, 16, 0.22) 100%),
    url("./assets/neo-lab-romance.png") right center / cover no-repeat;
}

.members-page-hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    linear-gradient(90deg, rgba(17, 22, 16, 0.98) 0%, rgba(17, 22, 16, 0.78) 45%, rgba(17, 22, 16, 0.22) 100%),
    url("./assets/base-hero.png") right center / cover no-repeat;
}

.members-hero {
  position: relative;
  min-height: 72vh;
  display: grid;
  align-items: end;
  width: 100%;
  padding: clamp(70px, 9vw, 120px) clamp(18px, 4vw, 56px);
  color: #161711;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(244, 240, 223, 0.96) 0%, rgba(244, 240, 223, 0.72) 40%, rgba(244, 240, 223, 0.14) 100%),
    url("./assets/members-crew-hero.png") center / cover no-repeat;
}

.members-hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 26%;
  z-index: -1;
  content: "";
  background: linear-gradient(to top, #f4f0df, transparent);
}

.members-hero-copy {
  width: min(960px, 100%);
}

.members-hero h1 {
  margin-bottom: 18px;
  max-width: 860px;
  color: #161711;
  font-size: clamp(48px, 9vw, 108px);
}

.crew-title {
  position: relative;
  width: fit-content;
}

.title-mascot {
  position: absolute;
  left: 2%;
  top: -34px;
  width: 52px;
  height: 28px;
  animation: mascotPatrol 7s ease-in-out infinite;
}

.title-mascot::before {
  position: absolute;
  inset: 0;
  content: "";
  clip-path: polygon(0 46%, 100% 0, 70% 56%, 100% 100%);
  background: #161711;
}

.title-mascot::after {
  position: absolute;
  left: 9px;
  top: 13px;
  width: 28px;
  height: 2px;
  content: "";
  background: #f4f0df;
  transform: rotate(-18deg);
}

.members-hero p {
  max-width: 720px;
  margin: 0;
  color: #25261f;
  font-size: clamp(22px, 3vw, 36px);
  line-height: 1.35;
  font-weight: 900;
}

.members-hero-badges {
  position: absolute;
  right: clamp(18px, 4vw, 56px);
  top: 96px;
  display: grid;
  gap: 12px;
  justify-items: end;
}

.members-hero-badges span {
  padding: 8px 13px;
  border: 1px solid rgba(22, 23, 17, 0.16);
  color: #161711;
  background: var(--sun);
  box-shadow: 6px 6px 0 rgba(22, 23, 17, 0.1);
  transform: rotate(5deg);
  font-family: "Cascadia Code", "Consolas", monospace;
  font-size: 12px;
  font-weight: 900;
}

.members-hero-badges span:nth-child(2) {
  background: var(--green);
  transform: rotate(-4deg);
}

.members-hero-badges span:nth-child(3) {
  background: var(--cyan);
  transform: rotate(3deg);
}

@keyframes mascotPatrol {
  0%,
  100% {
    transform: translate(0, 0) rotate(-8deg);
  }

  18% {
    transform: translate(120px, -10px) rotate(8deg);
  }

  38% {
    transform: translate(260px, 0) rotate(-4deg);
  }

  62% {
    transform: translate(430px, -12px) rotate(9deg);
  }

  82% {
    transform: translate(570px, 0) rotate(-6deg);
  }
}

@media (max-width: 620px) {
  .title-mascot {
    top: -28px;
    width: 40px;
    height: 22px;
  }

  @keyframes mascotPatrol {
    0%,
    100% {
      transform: translate(0, 0) rotate(-8deg);
    }

    50% {
      transform: translate(180px, -8px) rotate(8deg);
    }
  }
}
  50% {
    background-position: 100% center;
    filter: drop-shadow(0 0 16px rgba(101, 217, 210, 0.34));
  }
}

.inline-link {
  display: inline-block;
  margin-left: 10px;
  color: #0b6f68;
  font-weight: 950;
  border-bottom: 3px solid currentColor;
  line-height: 1.05;
  text-decoration: none;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.inline-link:hover {
  color: #161711;
  border-bottom-color: var(--sun);
}

.dark-band .inline-link {
  color: var(--green);
  border-bottom-color: currentColor;
}

.dark-band .inline-link:hover {
  color: var(--ink);
  border-bottom-color: var(--sun);
}

.light-band .inline-link {
  color: #0b6f68;
}

.light-band .inline-link:hover {
  color: #161711;
}

.catalog-grid,
.video-library-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.catalog-card,
.video-library-card {
  position: relative;
  display: grid;
  min-height: 310px;
  align-content: space-between;
  padding: 24px;
  border: 1px solid rgba(22, 23, 17, 0.15);
  border-radius: 20px 20px 7px 20px;
  color: #161711;
  background: rgba(255, 252, 238, 0.86);
  box-shadow: 10px 10px 0 rgba(22, 23, 17, 0.08);
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.catalog-card.active,
.video-library-card.active {
  background:
    linear-gradient(to top, rgba(255, 252, 238, 0.98), rgba(255, 252, 238, 0.48)),
    url("./assets/neo-lab-romance.png") center / cover no-repeat;
}

.catalog-card.placeholder,
.video-library-card.placeholder {
  background:
    linear-gradient(135deg, rgba(255, 252, 238, 0.9), rgba(183, 243, 107, 0.12)),
    repeating-linear-gradient(-45deg, rgba(22, 23, 17, 0.045) 0 1px, transparent 1px 18px);
}

.catalog-card:hover,
.video-library-card:hover {
  box-shadow: 14px 14px 0 rgba(22, 23, 17, 0.12);
  transform: translateY(-4px);
}

.catalog-card span,
.video-library-card span {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  color: #f4f0df;
  background: #161711;
  font-family: "Cascadia Code", "Consolas", monospace;
  font-size: 12px;
  font-weight: 900;
}

.catalog-card h3,
.video-library-card strong {
  max-width: 360px;
  margin: 0;
  font-size: clamp(27px, 3.4vw, 42px);
  line-height: 1.1;
}

.catalog-card p {
  margin: 0;
  color: #424235;
  font-weight: 800;
}

.catalog-card em,
.video-library-card em {
  width: fit-content;
  border-bottom: 2px solid currentColor;
  font-style: normal;
  font-weight: 900;
}

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

.video-library-card {
  min-height: 380px;
}

.video-library-card::after {
  position: absolute;
  right: 18px;
  bottom: 16px;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  content: "▶";
  border-radius: 50%;
  color: #f4f0df;
  background: #161711;
  font-size: 18px;
  font-weight: 900;
}

.video-library-card.placeholder::after {
  content: "...";
  background: rgba(22, 23, 17, 0.18);
}

.member-map-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(18, minmax(58px, 1fr));
  grid-template-rows: repeat(4, minmax(92px, auto));
  gap: 7px;
  align-items: stretch;
  margin-inline: auto;
  overflow-x: auto;
  padding: 8px 0 20px;
}

.periodic-cell {
  position: relative;
  grid-column: var(--col);
  grid-row: var(--row);
  min-width: 58px;
  min-height: 92px;
  padding: 7px;
  border: 1px solid rgba(22, 23, 17, 0.16);
  border-radius: 9px 9px 3px 9px;
  color: #161711;
  background: rgba(255, 252, 238, 0.56);
  box-shadow: 4px 5px 0 rgba(22, 23, 17, 0.06);
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.periodic-cell:hover {
  transform: translateY(-3px);
  box-shadow: 6px 8px 0 rgba(22, 23, 17, 0.09);
}

.periodic-cell.is-member {
  min-height: 112px;
  background:
    radial-gradient(circle at 88% 16%, rgba(183, 243, 107, 0.26), transparent 3rem),
    rgba(255, 252, 238, 0.94);
}

.periodic-cell.is-member.featured {
  background:
    radial-gradient(circle at 88% 16%, rgba(255, 209, 92, 0.32), transparent 3rem),
    rgba(255, 252, 238, 0.96);
}

.periodic-cell.is-empty {
  color: rgba(22, 23, 17, 0.42);
  background:
    linear-gradient(135deg, rgba(22, 23, 17, 0.035) 25%, transparent 25% 50%, rgba(22, 23, 17, 0.035) 50% 75%, transparent 75%),
    rgba(255, 252, 238, 0.34);
  background-size: 10px 10px, auto;
  box-shadow: none;
}

.periodic-cell .atomic-number {
  display: block;
  margin-bottom: 8px;
  font-family: "Cascadia Code", "Consolas", monospace;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.member-element-copy {
  display: grid;
  grid-template-columns: min-content minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.periodic-cell strong {
  display: block;
  font-size: clamp(16px, 1.5vw, 24px);
  font-weight: 950;
  line-height: 1;
  word-break: keep-all;
}

.periodic-cell.is-member strong {
  max-height: 76px;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: 0;
}

.periodic-cell.is-empty strong {
  margin-bottom: 5px;
  font-family: "Cascadia Code", "Consolas", monospace;
  font-size: clamp(18px, 1.8vw, 28px);
}

.periodic-cell .element-name {
  display: block;
  color: #2f3028;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.25;
}

.periodic-cell.is-member .element-name {
  display: flex;
  min-height: calc(8em * 1.25);
  align-items: center;
  overflow: hidden;
}

.periodic-cell em {
  display: block;
  margin-top: 8px;
  color: #5b5b4e;
  font-style: normal;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.35;
}

@media (max-width: 900px) {
  .catalog-grid,
  .video-library-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .member-map-grid {
    grid-template-columns: repeat(6, minmax(88px, 1fr));
    grid-template-rows: none;
    gap: 12px;
  }

  .periodic-cell {
    grid-column: auto !important;
    grid-row: auto !important;
  }
}

@media (max-width: 620px) {
  .catalog-grid,
  .video-library-grid,
  .member-map-grid {
    grid-template-columns: repeat(3, minmax(92px, 1fr));
  }

  .members-hero {
    min-height: 68vh;
    align-items: center;
  }

  .members-hero-badges {
    position: static;
    justify-items: start;
    margin-top: 24px;
  }
}
