/* HexLab: paper-lab style. Plain CSS, no build step. */

:root {
  --paper: #f6f0e3;
  --paper-2: #efe6d3;
  --card: #fffaf0;
  --ink: #2b2420;
  --ink-soft: #5b5048;
  --line: rgba(43, 36, 32, 0.14);
  --mint: #3fe0b0;
  --mint-deep: #13896a;
  --mint-soft: #c9f5e6;
  --purple: #6b3fa0;
  --purple-2: #8a5cd0;
  --purple-soft: #e6dafa;
  --orange: #f6874f;
  --orange-deep: #d9622a;
  --orange-soft: #ffe0cc;
  --yellow: #ffd76a;
  --yellow-soft: #fff1bf;
  --pink-soft: #ffd9ea;
  --blue-soft: #d6e6ff;
  --night: #1d2340;
  --radius: 18px 6px 16px 8px / 8px 16px 6px 18px;
  --radius-2: 8px 18px 6px 16px / 16px 6px 18px 8px;
  --shadow: 4px 5px 0 rgba(43, 36, 32, 0.14);
  --font-display: "Patrick Hand", "Comic Sans MS", cursive;
  --font-hand: "Patrick Hand", "Comic Sans MS", cursive;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  background-color: var(--paper);
  /* faint graph paper + grain */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .17 0 0 0 0 .14 0 0 0 0 .12 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(rgba(43, 36, 32, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43, 36, 32, 0.035) 1px, transparent 1px);
  background-size: 160px 160px, 28px 28px, 28px 28px;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple); text-underline-offset: 3px; }
a:hover { color: var(--orange-deep); }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.05; margin: 0; letter-spacing: 0.01em; -webkit-text-stroke: 0.035em var(--ink); paint-order: stroke fill; }
code { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 0.88em; background: rgba(107, 63, 160, 0.09); padding: 0.08em 0.35em; border-radius: 6px; }

:focus-visible { outline: 3px dashed var(--purple); outline-offset: 3px; border-radius: 6px; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--card); padding: 8px 14px; border-radius: 8px; font-family: var(--font-hand); font-size: 1.1rem; text-decoration: none; }
.skip-link:focus { top: 12px; color: var(--card); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- header ---------- */
.site-header { position: relative; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; gap: 28px; padding-top: 18px; padding-bottom: 10px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 52px; height: 52px; object-fit: contain; filter: drop-shadow(0 0 6px rgba(63, 224, 176, 0.35)); }
.brand span { font-family: var(--font-display); font-size: 2.3rem; line-height: 1; -webkit-text-stroke: 0.05em var(--ink); }
.brand:hover { color: var(--ink); }
.nav { display: flex; gap: 6px; align-items: center; }
.nav a { font-family: var(--font-hand); font-size: 1.3rem; color: var(--ink); text-decoration: none; padding: 4px 12px; border-radius: var(--radius-2); }
.nav a:hover { background: var(--yellow-soft); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--mint-soft); box-shadow: inset 0 -3px 0 var(--mint); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.nav-toggle svg { width: 36px; height: 36px; }

@media (max-width: 720px) {
  .site-header .wrap { gap: 10px; flex-wrap: wrap; }
  .brand img { width: 44px; height: 44px; }
  .brand span { font-size: 2rem; }
  .nav-toggle { display: inline-flex; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 4px; padding: 8px 0 12px; }
  .nav.open { display: flex; }
  .nav a { font-size: 1.45rem; padding: 8px 14px; background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius); }
}

/* ---------- hand-drawn primitives ---------- */
.sketch {
  position: relative;
  background: var(--card);
  border: 2.5px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.tape::before {
  content: "";
  position: absolute;
  top: -13px; left: 50%;
  width: 96px; height: 26px;
  transform: translateX(-50%) rotate(-3deg);
  background: rgba(255, 215, 106, 0.72);
  border-left: 1px dashed rgba(43, 36, 32, 0.15);
  border-right: 1px dashed rgba(43, 36, 32, 0.15);
  clip-path: polygon(2% 0, 98% 6%, 100% 50%, 97% 100%, 3% 94%, 0 50%);
  z-index: 2;
}
.tape.tape-mint::before { background: rgba(63, 224, 176, 0.55); }
.tape.tape-pink::before { background: rgba(255, 160, 200, 0.6); }
.tape.tape-left::before { left: 18%; transform: translateX(-50%) rotate(-8deg); }
.pin::after {
  content: "";
  position: absolute;
  top: -9px; left: 50%;
  width: 18px; height: 18px;
  margin-left: -9px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0 2px, var(--pin, var(--orange)) 3px);
  border: 2px solid var(--ink);
  box-shadow: 1px 3px 0 rgba(43, 36, 32, 0.25);
  z-index: 3;
}
.pin-mint { --pin: var(--mint); }
.pin-purple { --pin: var(--purple-2); }
.pin-yellow { --pin: var(--yellow); }
.pin-pink { --pin: #ff6fa5; }
.pin-blue { --pin: #4c8dff; }

/* underline squiggle for headings */
.scribble {
  display: inline-block;
  padding-bottom: 10px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 16' preserveAspectRatio='none'%3E%3Cpath d='M3 10 C 40 3, 80 14, 120 8 S 200 4, 240 9 S 285 7, 297 5' fill='none' stroke='%23f6874f' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") left bottom / 100% 14px no-repeat;
}
.scribble-mint { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 16' preserveAspectRatio='none'%3E%3Cpath d='M3 10 C 40 3, 80 14, 120 8 S 200 4, 240 9 S 285 7, 297 5' fill='none' stroke='%233fe0b0' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E"); }
.scribble-purple { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 16' preserveAspectRatio='none'%3E%3Cpath d='M3 10 C 40 3, 80 14, 120 8 S 200 4, 240 9 S 285 7, 297 5' fill='none' stroke='%238a5cd0' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E"); }

.section-title { font-size: clamp(2.4rem, 5vw, 3.4rem); -webkit-text-stroke: 0.05em var(--ink); margin-bottom: 22px; }

.sparks { position: absolute; width: 46px; height: 46px; color: var(--ink); pointer-events: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px;
  padding: 8px 20px;
  font-family: var(--font-hand); font-size: 1.3rem; line-height: 1.1;
  color: var(--ink); text-decoration: none;
  background: var(--card);
  border: 2.5px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 3px 4px 0 var(--ink);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s;
}
.btn:hover { transform: translate(-1px, -2px); box-shadow: 4px 6px 0 var(--ink); color: var(--ink); }
.btn:active { transform: translate(2px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-orange { background: var(--orange); }
.btn-orange:hover { background: #ff9562; }
.btn-purple { background: var(--purple-2); color: #fff; }
.btn-purple:hover { background: #9a6ee0; color: #fff; }
.btn-paper { background: #eee8dc; }
.btn-small { min-height: 44px; font-size: 1.15rem; padding: 6px 16px; }
.btn[aria-disabled="true"] { opacity: 0.55; pointer-events: none; }

/* ---------- monitor frame (the lab's screen) ---------- */
.monitor {
  position: relative;
  padding: clamp(10px, 1.6vw, 20px);
  background:
    linear-gradient(180deg, #8d8a86, #6f6b67);
  border: 3px solid var(--ink);
  border-radius: 26px 20px 28px 18px / 20px 28px 18px 26px;
  box-shadow: 6px 8px 0 rgba(43, 36, 32, 0.22), inset 0 2px 0 rgba(255, 255, 255, 0.35), inset 0 -3px 0 rgba(0, 0, 0, 0.2);
}
.monitor::before, .monitor::after {
  content: ""; position: absolute; width: 10px; height: 10px; border-radius: 50%;
  background: #c9c5bf; border: 2px solid var(--ink); top: 50%; margin-top: -5px;
}
.monitor::before { left: 4px; }
.monitor::after { right: 4px; }
.monitor .screen {
  position: relative;
  border: 3px solid var(--ink);
  border-radius: 14px;
  overflow: hidden;
  background: #111;
  aspect-ratio: 16 / 9;
}
.monitor video { display: block; width: 100%; height: 100%; object-fit: contain; background: #111; }
.monitor-foot { display: flex; justify-content: center; gap: 10px; margin-top: 10px; }
.monitor-foot i { display: block; width: 26px; height: 7px; border-radius: 4px; background: #57534f; border: 1.5px solid var(--ink); }
.monitor-foot i.on { background: var(--mint); box-shadow: 0 0 8px var(--mint); }
@media (max-width: 520px) {
  .monitor { padding: 8px 8px 6px; border-radius: 18px; }
  .monitor::before, .monitor::after { display: none; }
  .monitor .screen { border-radius: 10px; border-width: 2.5px; }
  .monitor-foot { margin-top: 6px; }
  .monitor-foot i { width: 18px; height: 5px; }
}

/* ---------- pills, badges ---------- */
.pill { display: inline-block; font-family: var(--font-hand); font-size: 1.05rem; line-height: 1; padding: 6px 12px 5px; border-radius: 999px; border: 2px solid var(--ink); background: var(--purple-soft); }
.pill-orange { background: var(--orange-soft); }
.pill-mint { background: var(--mint-soft); }
.pill-yellow { background: var(--yellow-soft); }
.pill-blue { background: var(--blue-soft); }
.pill-pink { background: var(--pink-soft); }
.pill-purple { background: var(--purple-soft); }
.status { font-family: var(--font-hand); font-size: 1rem; padding: 4px 10px; border-radius: 999px; border: 1.5px dashed var(--ink-soft); color: var(--ink-soft); background: rgba(255, 255, 255, 0.6); white-space: nowrap; }
.status-live { border-style: solid; border-color: var(--mint-deep); color: #0b5c46; background: var(--mint-soft); }

.skill-badge { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-hand); font-size: 1.2rem; padding: 7px 16px 6px; border-radius: 999px; background: var(--mint-soft); border: 2.5px solid var(--mint-deep); color: #0b4d3b; box-shadow: 0 0 0 4px rgba(63, 224, 176, 0.18); }
.skill-badge b { letter-spacing: 0.06em; font-weight: 400; }
.skill-badge svg { width: 20px; height: 20px; }

/* ---------- home: hero ---------- */
.hero { position: relative; padding: 18px 0 30px; }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.08fr; gap: clamp(20px, 4vw, 56px); align-items: center; }
.hero-copy { position: relative; }
.eyebrow { font-family: var(--font-hand); font-size: 1.25rem; color: var(--purple); margin-bottom: 6px; }
.hero h1 { font-size: clamp(2.9rem, 6.4vw, 5.2rem); -webkit-text-stroke: 0.05em var(--ink); margin-bottom: 18px; }
.hero h1 .hl { position: relative; white-space: nowrap; }
.hero h1 .hl::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 14px; z-index: -1; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 16' preserveAspectRatio='none'%3E%3Cpath d='M3 10 C 40 3, 80 14, 120 8 S 200 4, 240 9 S 285 7, 297 5' fill='none' stroke='%23f6874f' stroke-width='6' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.hero-pitch { font-size: 1.2rem; color: var(--ink-soft); max-width: 30em; margin-bottom: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px 18px; }
.hero .sparks-a { top: -18px; left: -26px; transform: rotate(-20deg); }
.hero .sparks-b { top: -6px; right: 4%; color: var(--mint-deep); }

.hero-stage { position: relative; padding: 18px 0 0 0; }
.hero-stage .monitor { margin-left: clamp(40px, 9vw, 110px); transform: rotate(1deg); }
.hero-stage .hex-wave {
  position: absolute; z-index: 4;
  left: -6px; bottom: -26px;
  width: clamp(120px, 15vw, 190px);
  filter: drop-shadow(3px 5px 0 rgba(43, 36, 32, 0.18));
  animation: bob 4s ease-in-out infinite;
}
.hero-stage .note {
  position: absolute; z-index: 5; right: -6px; top: -8px;
  font-family: var(--font-hand); font-size: 1.05rem; line-height: 1.15;
  padding: 10px 12px; width: 150px;
  background: var(--yellow-soft); border: 2px solid var(--ink);
  transform: rotate(4deg); box-shadow: var(--shadow);
}
.moon { position: absolute; top: -26px; left: 46%; width: 38px; height: 38px; color: var(--purple-2); }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-6px) rotate(1deg); } }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-stage { margin-top: 10px; }
  .hero-stage .monitor { margin-left: 64px; }
  .hero-stage .hex-wave { width: 120px; left: -12px; bottom: -18px; }
  .hero-stage .note { display: none; }
}
@media (max-width: 520px) {
  .hero-stage .monitor { margin-left: 44px; transform: none; }
  .hero-stage .hex-wave { width: 92px; left: -14px; bottom: -14px; }
  .hero-actions .btn { flex: 1 1 100%; }
}

/* ---------- home: features ---------- */
.features { padding: 34px 0 10px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.feature { display: flex; gap: 16px; align-items: center; padding: 20px 20px 18px; }
.feature:nth-child(1) { transform: rotate(-1deg); }
.feature:nth-child(2) { transform: rotate(0.6deg); }
.feature:nth-child(3) { transform: rotate(-0.4deg); }
.feature svg { width: 70px; height: 70px; flex: none; }
.feature h3 { font-size: 1.75rem; margin-bottom: 4px; }
.feature p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; line-height: 1.4; }
@media (max-width: 900px) { .feature-grid { grid-template-columns: 1fr; gap: 22px; } }

/* ---------- home: seasons shelf ---------- */
.shelf { padding: 40px 0 20px; }
.season-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 26px; list-style: none; padding: 0; margin: 0; }
.season-card { display: flex; flex-direction: column; padding: 12px 12px 14px; height: 100%; color: inherit; text-decoration: none; transition: transform 0.15s ease, box-shadow 0.15s ease; }
a.season-card:hover { transform: translateY(-4px) rotate(-0.5deg); box-shadow: 6px 9px 0 rgba(43, 36, 32, 0.16); color: inherit; }
.season-card .cover { position: relative; border: 2px solid var(--ink); border-radius: 10px 6px 12px 6px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--paper-2); }
.season-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.season-card .cover.soon { background: linear-gradient(160deg, #d8f2ee, #bfe3dc 60%, #a9d6cf); display: flex; align-items: flex-end; justify-content: center; }
.season-card .cover.soon img { width: auto; height: 92%; object-fit: contain; }
.season-card .cover.soon .q { position: absolute; font-family: var(--font-display); font-size: 4rem; color: var(--ink); opacity: 0.35; }
.season-card .cover.soon .q1 { left: 14%; top: 6%; transform: rotate(-14deg); }
.season-card .cover.soon .q2 { right: 12%; top: 18%; transform: rotate(12deg); font-size: 3rem; }
.season-card .label { margin: 12px 0 4px; }
.season-card h3 { font-size: 1.9rem; margin-bottom: 10px; }
.season-card .meta { margin-top: auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-family: var(--font-hand); font-size: 1.15rem; }
.season-card .meta .count { margin-left: auto; }
.season-card .meta .status { margin-left: auto; }
.season-card .meta .count + .status { margin-left: 0; }
.av { position: relative; display: inline-block; width: 40px; height: 40px; flex: none; border-radius: 50%; border: 2px solid var(--ink); overflow: hidden; background: var(--yellow-soft); }
.av img { position: absolute; left: 50%; top: 0; height: 250%; width: auto; max-width: none; transform: translateX(-50%); }
.av.av-hex img { height: 230%; top: 4%; }
.av.av-bob img { height: 220%; top: 2%; }
.who small { display: block; font-family: var(--font-body); font-size: 0.78rem; color: var(--ink-soft); line-height: 1; }
@media (max-width: 960px) { .season-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .season-grid { grid-template-columns: 1fr; gap: 30px; } }

/* ---------- crew row ---------- */
.crew-row-section { padding: 40px 0 10px; }
.crew-row { list-style: none; margin: 0; padding: 0 0 6px; display: flex; justify-content: space-between; align-items: flex-end; gap: 6px; }
.crew-row li { flex: 1 1 0; min-width: 0; text-align: center; }
.crew-row a { display: block; color: var(--ink); text-decoration: none; font-family: var(--font-hand); font-size: 1.25rem; border-radius: 12px; padding: 6px 2px; }
.crew-row img { height: 190px; width: auto; margin: 0 auto 6px; object-fit: contain; filter: drop-shadow(2px 4px 0 rgba(43, 36, 32, 0.14)); transition: transform 0.2s ease; }
.crew-row a:hover img { transform: translateY(-6px) rotate(-2deg); }
.crew-row a:hover { color: var(--purple); }
@media (max-width: 900px) {
  .crew-row { flex-wrap: wrap; justify-content: center; gap: 14px 4px; }
  .crew-row li { flex: 0 0 31%; }
  .crew-row img { height: 150px; }
}

/* ---------- footer ---------- */
.site-footer { position: relative; margin-top: 70px; padding: 34px 0 40px; border-top: 2.5px dashed rgba(43, 36, 32, 0.3); overflow: hidden; }
.site-footer .wrap { position: relative; display: flex; flex-wrap: wrap; gap: 10px 30px; align-items: center; justify-content: space-between; font-family: var(--font-hand); font-size: 1.2rem; }
.site-footer p { margin: 0; }
.site-footer .made { font-size: 1.4rem; }
.site-footer .heart { color: var(--orange); }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer nav a { color: var(--ink); }
.site-footer .soon { color: var(--ink-soft); }
.peek { position: absolute; right: clamp(8px, 6vw, 90px); bottom: -64px; width: 130px; pointer-events: none; transform: rotate(-6deg); }
.site-footer .wrap { padding-right: 150px; }
@media (max-width: 600px) {
  .site-footer .wrap { padding-right: var(--gutter); padding-bottom: 70px; }
  .peek { width: 104px; bottom: -48px; right: 18px; }
}

/* ---------- season page ---------- */
.season-hero { padding: 14px 0 26px; }
.season-hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 26px; align-items: end; }
.season-card-head { padding: 30px 30px 28px; transform: rotate(-0.6deg); }
.season-card-head h1 { font-size: clamp(3.4rem, 7vw, 5.4rem); -webkit-text-stroke: 0.05em var(--ink); }
.season-card-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin: 6px 0 14px; }
.season-card-head p { font-size: 1.12rem; color: var(--ink-soft); max-width: 32em; }
.season-card-head .row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 8px; }
.season-art { position: relative; min-height: 330px; }
.season-art .glow { position: absolute; inset: 8% 6% 0 14%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 215, 106, 0.55), rgba(255, 215, 106, 0) 75%); }
.season-art .big { position: absolute; right: 2%; bottom: 0; height: 360px; width: auto; filter: drop-shadow(4px 6px 0 rgba(43, 36, 32, 0.16)); }
.season-art .hex { position: absolute; left: 8%; bottom: 0; height: 210px; width: auto; filter: drop-shadow(3px 5px 0 rgba(43, 36, 32, 0.16)); }
.season-art .sticky { position: absolute; left: 4%; top: 8%; width: 150px; padding: 10px 12px; font-family: var(--font-hand); font-size: 1.1rem; line-height: 1.2; background: var(--pink-soft); border: 2px solid var(--ink); transform: rotate(-5deg); box-shadow: var(--shadow); }
.season-player { padding: 8px 0 20px; }
.season-player .monitor { max-width: 1060px; margin: 0 auto; }
.player-caption { text-align: center; font-family: var(--font-hand); font-size: 1.15rem; color: var(--ink-soft); margin-top: 12px; }

.episodes-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 34px; align-items: start; padding-top: 30px; }
.ep-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ep-row { display: grid; grid-template-columns: 48px 168px minmax(0, 1fr) auto 46px; gap: 16px; align-items: center; padding: 10px 14px 10px 10px; color: inherit; text-decoration: none; transition: transform 0.12s ease, background-color 0.12s; }
.ep-row:hover { transform: translateX(4px); background: #fffdf7; color: inherit; }
.ep-num { width: 44px; height: 48px; display: grid; place-items: center; font-family: var(--font-display); font-size: 1.9rem; border: 2px solid var(--ink); border-radius: 8px 10px 6px 12px; background: var(--mint-soft); }
.ep-row:nth-child(3n+2) .ep-num { background: var(--purple-soft); }
.ep-row:nth-child(3n) .ep-num { background: var(--orange-soft); }
.ep-thumb { width: 168px; aspect-ratio: 16 / 9; object-fit: cover; border: 2px solid var(--ink); border-radius: 8px; background: var(--paper-2); }
.ep-text h3 { font-family: var(--font-display); font-size: 1.55rem; line-height: 1.1; margin-bottom: 3px; }
.ep-text p { margin: 0; color: var(--ink-soft); font-size: 0.97rem; line-height: 1.35; }
.ep-dur { font-family: var(--font-hand); font-size: 1.25rem; }
.ep-play { width: 44px; height: 44px; border-radius: 50%; border: 2.5px solid var(--ink); display: grid; place-items: center; background: var(--purple-soft); }
.ep-play svg { width: 18px; height: 18px; margin-left: 3px; color: var(--purple); }
.ep-row:hover .ep-play { background: var(--purple-2); }
.ep-row:hover .ep-play svg { color: #fff; }

.sources-card { padding: 26px 22px 20px; transform: rotate(1deg); position: sticky; top: 20px; }
.sources-card h2 { font-size: 2.4rem; margin-bottom: 14px; }
.sources-card ul { list-style: none; margin: 0; padding: 0; }
.sources-card li { display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: start; padding: 12px 0; border-top: 1.5px dashed var(--line); }
.sources-card li:first-child { border-top: 0; }
.sources-card li svg { width: 34px; height: 34px; }
.sources-card strong { display: block; font-family: var(--font-hand); font-size: 1.25rem; font-weight: 400; line-height: 1.1; }
.sources-card li span { font-size: 0.92rem; color: var(--ink-soft); line-height: 1.35; display: block; }

@media (max-width: 960px) {
  .season-hero .wrap { grid-template-columns: 1fr; }
  .season-art { min-height: 260px; order: -1; margin-bottom: -40px; }
  .season-art .big { height: 270px; right: 6%; }
  .season-art .hex { height: 160px; left: 10%; }
  .episodes-layout { grid-template-columns: 1fr; }
  .sources-card { position: relative; top: auto; transform: none; }
}
@media (max-width: 640px) {
  .season-card-head { padding: 26px 18px 22px; }
  .season-art { min-height: 210px; margin-bottom: -28px; }
  .season-art .big { height: 220px; right: 2%; }
  .season-art .hex { height: 128px; left: 2%; }
  .season-art .sticky { display: none; }
  .ep-row { grid-template-columns: 36px 96px minmax(0, 1fr); grid-template-rows: auto auto; gap: 4px 12px; padding: 10px; }
  .ep-num { width: 34px; height: 38px; font-size: 1.5rem; grid-row: 1 / span 2; }
  .ep-thumb { width: 96px; grid-row: 1 / span 2; }
  .ep-text { grid-column: 3; }
  .ep-text h3 { font-size: 1.3rem; }
  .ep-text p { font-size: 0.88rem; }
  .ep-dur { grid-column: 3; grid-row: 2; font-size: 1.05rem; color: var(--ink-soft); }
  .ep-play { display: none; }
}

/* ---------- episode page ---------- */
.ep-page { padding-top: 6px; }
.crumbs { font-family: var(--font-hand); font-size: 1.15rem; margin: 0 0 12px; color: var(--ink-soft); }
.crumbs a { color: var(--ink-soft); }
.ep-page .monitor { max-width: 1080px; margin: 0 auto; }
.ep-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 18px; margin: 28px 0 10px; }
.ep-head h1 { font-size: clamp(2.3rem, 5.4vw, 3.8rem); -webkit-text-stroke: 0.05em var(--ink); flex: 1 1 auto; }
.ep-head h1 .no { white-space: nowrap; }
.ep-head .dur { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-hand); font-size: 1.45rem; white-space: nowrap; }
.ep-head .dur svg { width: 24px; height: 24px; }
.ep-goal { font-size: 1.2rem; max-width: 46em; margin-bottom: 26px; }
.ep-goal b { font-family: var(--font-hand); font-weight: 400; font-size: 1.3rem; color: var(--purple); }
.ep-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 30px; align-items: start; }
.learn { padding: 30px 28px 24px; }
.learn h2 { font-size: clamp(2.1rem, 4vw, 2.7rem); margin-bottom: 14px; display: flex; align-items: center; gap: 14px; }
.learn h2 svg { width: 46px; height: 46px; }
.learn ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.learn li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; font-size: 1.08rem; line-height: 1.45; }
.learn li svg { width: 32px; height: 32px; margin-top: -2px; }
.ep-side { display: grid; gap: 26px; }
.src-note { padding: 22px 18px 16px; background: #fffdf4; transform: rotate(1.5deg); }
.src-note h2 { font-size: 1.8rem; margin-bottom: 8px; display: flex; gap: 10px; align-items: center; }
.src-note h2 svg { width: 34px; height: 34px; }
.src-note ul { margin: 0 0 10px; padding-left: 1.1em; font-size: 0.93rem; line-height: 1.4; }
.src-note li { margin-bottom: 6px; }
.src-note li code { font-size: 0.85em; }
.src-note .more { font-family: var(--font-hand); font-size: 1.1rem; }
.ep-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 34px 0 18px; }
.ep-nav .btn { justify-content: space-between; min-height: 64px; font-size: 1.35rem; }
.ep-nav .btn span { display: block; flex: 1 1 auto; text-align: left; }
.ep-nav .btn small { display: block; font-family: var(--font-body); font-size: 0.8rem; color: var(--ink-soft); line-height: 1.2; }
.ep-nav .next { text-align: right; }
.ep-nav .next span { text-align: right; }
.ep-nav .btn-orange small { color: #5a2a10; }
.share { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.share h2 { font-family: var(--font-hand); font-size: 1.3rem; margin-right: 4px; }
.share .btn { min-width: 120px; }
.share .discord svg { color: #5865f2; }
@media (max-width: 900px) {
  .ep-grid { grid-template-columns: 1fr; }
  .ep-side { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .ep-head { margin-top: 20px; }
  .ep-goal { font-size: 1.08rem; }
  .learn { padding: 26px 18px 20px; }
  .learn li { font-size: 1rem; }
  .ep-nav { gap: 12px; }
  .ep-nav .btn { font-size: 1.15rem; padding: 8px 12px; gap: 6px; min-height: 60px; }
  .ep-nav .btn small { display: none; }
  .share { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .share h2 { grid-column: 1 / -1; }
  .share .btn { min-width: 0; padding: 6px 8px; font-size: 1.1rem; gap: 6px; }
}

/* ---------- crew page ---------- */
.crew-intro { padding: 10px 0 20px; }
.crew-intro h1 { font-size: clamp(3rem, 7vw, 4.8rem); -webkit-text-stroke: 0.05em var(--ink); margin-bottom: 10px; }
.crew-intro p { font-size: 1.2rem; color: var(--ink-soft); max-width: 36em; }
.crew-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 26px; }
.crew-card { display: flex; flex-direction: column; padding: 18px 20px 20px; height: 100%; scroll-margin-top: 20px; }
.crew-card:nth-child(odd) { transform: rotate(-0.7deg); }
.crew-card:nth-child(even) { transform: rotate(0.6deg); }
.crew-card .art { height: 230px; display: flex; align-items: flex-end; justify-content: center; margin-bottom: 12px; border-radius: 10px; background: radial-gradient(closest-side, rgba(255, 215, 106, 0.4), transparent 80%); }
.crew-card .art img { max-height: 230px; width: auto; max-width: 100%; object-fit: contain; filter: drop-shadow(3px 5px 0 rgba(43, 36, 32, 0.15)); }
.crew-card h2 { font-size: 2.3rem; }
.crew-card .tag { font-size: 1.04rem; color: var(--ink-soft); margin: 4px 0 14px; }
.crew-card dl { margin: auto 0 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; font-size: 0.98rem; }
.crew-card dt { font-family: var(--font-hand); font-size: 1.12rem; color: var(--purple); }
.crew-card dd { margin: 0; }
.crew-card dd a { font-weight: 700; }
@media (max-width: 960px) { .crew-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .crew-grid { grid-template-columns: 1fr; } .crew-card .art { height: 200px; } .crew-card .art img { max-height: 200px; } }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 22px; z-index: 60;
  transform: translate(-50%, 140%);
  max-width: calc(100vw - 32px);
  padding: 12px 20px; font-family: var(--font-hand); font-size: 1.25rem;
  background: var(--ink); color: var(--card);
  border-radius: var(--radius); box-shadow: 4px 5px 0 rgba(63, 224, 176, 0.6);
  transition: transform 0.25s ease;
  pointer-events: none;
}
.toast.show { transform: translate(-50%, 0); }

/* ---------- 404 ---------- */
.lost { text-align: center; padding: 40px 0; }
.lost img { height: 260px; width: auto; margin: 0 auto 10px; }
.lost h1 { font-size: 4rem; }
