/* Data Science at Home: pixel-art theme.
   Press Start 2P is drawn on an 8px grid: keep its sizes at multiples of 8
   (or 10/12 for small labels) so glyphs stay crisp. */

@font-face {
  font-family: "Press Start 2P";
  src: url(../fonts/press-start-2p-latin-400-normal.woff2) format("woff2");
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Press Start 2P";
  src: url(../fonts/press-start-2p-latin-ext-400-normal.woff2) format("woff2");
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Pixelify Sans";
  src: url(../fonts/pixelify-sans-latin-wght-normal.woff2) format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Pixelify Sans";
  src: url(../fonts/pixelify-sans-latin-ext-wght-normal.woff2) format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --navy: #3e4677;
  --navy-600: #353c6a;
  --navy-700: #2f355f;
  --navy-800: #282d52;
  --navy-900: #1f2343;
  --ink: #161a33;
  --navy-300: #6d76b3;
  --cream: #f8f6ef;
  --muted: #c4c9e8;
  --yellow: #edcb4d;
  --yellow-hi: #f8e08a;
  --yellow-lo: #c9a52b;
  --pink: #e8668a;
  --violet: #8f6ae8;
  --blue: #5b6fd9;
  --teal: #69a7b8;

  --display: "Press Start 2P", ui-monospace, "Courier New", monospace;
  --body: "Pixelify Sans", ui-rounded, system-ui, sans-serif;

  --bc: var(--ink);
  --depth: 0 10px 0 0 rgba(10, 12, 32, .55);
}

/* Pixel frame: four offset shadows leave the corners notched. Declared on
   every element so a local --bc (e.g. on hover) recolours that frame. */
*, *::before, *::after {
  box-sizing: border-box;
  --frame: 0 -4px 0 0 var(--bc), 0 4px 0 0 var(--bc), -4px 0 0 0 var(--bc), 4px 0 0 0 var(--bc);
  --frame-sm: 0 -2px 0 0 var(--bc), 0 2px 0 0 var(--bc), -2px 0 0 0 var(--bc), 2px 0 0 0 var(--bc);
}

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--navy) url(../img/stars.svg) repeat;
  color: var(--cream);
  font: 400 1.1875rem/1.6 var(--body);
  overflow-x: hidden;
}

[hidden] { display: none !important; }

img, svg { max-width: 100%; }
img { display: block; height: auto; }
svg.px { display: inline-block; flex: none; vertical-align: middle; }

a { color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:hover { color: var(--cream); }

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

::selection { background: var(--yellow); color: var(--ink); }

p { margin: 0 0 1em; }

h1, h2, h3, .display { font-family: var(--display); font-weight: 400; line-height: 1.5; margin: 0 0 .9em; }
h1, h2, .eyebrow, .btn, .badge, .chip, .nav a, .brand-text, .press-start, .pbtn, .ptime { -webkit-font-smoothing: none; }

h1 { font-size: 24px; color: var(--cream); text-shadow: 4px 4px 0 var(--ink); }
h2 { font-size: 16px; color: var(--yellow); text-shadow: 4px 4px 0 var(--ink); }
h3 { font-size: 12px; line-height: 1.7; }
@media (min-width: 720px) {
  h1 { font-size: 40px; }
  h2 { font-size: 24px; }
  h3 { font-size: 16px; }
}

.wrap { width: min(100% - 32px, 1120px); margin-inline: auto; }
.narrow { width: min(100% - 32px, 820px); }
.center { text-align: center; }
.muted { color: var(--muted); }

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

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 12px 16px; background: var(--yellow); color: var(--ink);
  font: 12px var(--display); text-decoration: none;
}
.skip:focus { top: 16px; }

.eyebrow {
  font: 10px/1.6 var(--display);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--cream);
  margin: 0 0 16px;
}
@media (min-width: 720px) { .eyebrow { font-size: 12px; } }

.glow { text-shadow: 0 0 4px rgba(255, 255, 255, .8), 0 0 12px rgba(255, 255, 255, .45), 0 0 24px rgba(255, 255, 255, .2); }

/* ---- buttons, badges, chips ------------------------------------------- */

.btn {
  --bc: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px;
  padding: 14px 18px;
  margin: 4px 4px 14px;
  border: 0;
  background: var(--yellow);
  color: var(--ink);
  font: 12px/1.5 var(--display);
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  box-shadow: inset -4px -4px 0 0 var(--yellow-lo), inset 4px 4px 0 0 var(--yellow-hi), var(--frame), 0 8px 0 0 var(--ink);
  transition: transform 80ms steps(2);
}
.btn:hover { color: var(--ink); background: #f4d866; transform: translateY(-2px); }
.btn:active { transform: translateY(4px); box-shadow: inset -4px -4px 0 0 var(--yellow-lo), inset 4px 4px 0 0 var(--yellow-hi), var(--frame), 0 4px 0 0 var(--ink); }
.btn-ghost { background: var(--navy-700); color: var(--cream); box-shadow: inset -4px -4px 0 0 var(--navy-900), inset 4px 4px 0 0 var(--navy-300), var(--frame), 0 8px 0 0 var(--ink); }
.btn-ghost:hover, .btn-ghost[aria-pressed="true"] { background: var(--navy-600); color: var(--yellow); }
.btn-ghost:active { box-shadow: inset -4px -4px 0 0 var(--navy-900), inset 4px 4px 0 0 var(--navy-300), var(--frame), 0 4px 0 0 var(--ink); }
.btn-big { font-size: 12px; padding: 18px 22px; }
@media (min-width: 720px) { .btn-big { font-size: 16px; } }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.badge {
  --bc: var(--ink);
  display: inline-block;
  padding: 5px 7px 4px;
  margin: 2px;
  background: var(--yellow);
  color: var(--ink);
  font: 10px/1.2 var(--display);
  white-space: nowrap;
  box-shadow: var(--frame-sm);
}
.badge-alt { background: var(--teal); }
.badge-new { background: var(--pink); animation: blink 1.2s steps(1) 3; }
.ep-meta > [data-f="badges"] { display: contents; }

.chips { display: flex; flex-wrap: wrap; gap: 14px; list-style: none; margin: 0 0 1em; padding: 4px; }
.chip {
  --bc: var(--ink);
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  background: var(--navy-800);
  color: var(--cream);
  font: 10px/1.4 var(--display);
  text-decoration: none;
  box-shadow: inset 2px 2px 0 0 var(--navy-600), var(--frame-sm), 0 4px 0 0 var(--ink);
}
a.chip:hover { background: var(--navy-600); color: var(--yellow); }
.chip .px { width: 16px; height: auto; }
.chip-trophy .px { width: 10px; }

.link-more { font: 10px/1.6 var(--display); text-decoration: none; display: inline-block; padding: 6px 0; }
.link-more:hover { text-decoration: underline; }
@media (min-width: 720px) { .link-more { font-size: 12px; } }

/* ---- panels ---------------------------------------------------------- */

.panel {
  --bc: var(--ink);
  position: relative;
  padding: 24px 20px;
  background: var(--navy-800);
  box-shadow: inset 4px 4px 0 0 rgba(255, 255, 255, .05), inset -4px -4px 0 0 rgba(0, 0, 0, .22), var(--frame), var(--depth);
}
@media (min-width: 720px) { .panel { padding: 32px; } }
.panel > :last-child { margin-bottom: 0; }

/* ---- header ---------------------------------------------------------- */

.site-header {
  position: relative; z-index: 10;
  background: var(--navy-900);
  box-shadow: 0 4px 0 0 var(--ink);
}
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 72px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--cream); text-decoration: none; margin-right: auto; padding: 8px 0; }
.brand:hover { color: var(--yellow); }
.brand .px { width: 32px; height: 32px; box-shadow: 0 0 0 2px var(--ink); }
.brand-text { font: 10px/1.6 var(--display); text-transform: uppercase; }
.brand-text span { display: block; }
.brand-text span + span { color: var(--yellow); }

.nav { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.nav a {
  padding: 10px 10px;
  font: 10px/1.4 var(--display);
  color: var(--cream);
  text-decoration: none;
  text-transform: uppercase;
}
.nav a:hover { color: var(--yellow); }
.nav a[aria-current="page"] { color: var(--yellow); box-shadow: inset 0 -4px 0 0 var(--yellow); }
.nav a.nav-cta { --bc: var(--ink); background: var(--yellow); color: var(--ink); box-shadow: var(--frame-sm); margin-inline: 4px; }
.nav a.nav-cta:hover { background: var(--cream); }
.nav a.nav-cta[aria-current="page"] { box-shadow: var(--frame-sm), inset 0 -4px 0 0 var(--yellow-lo); }

.nav-toggle {
  display: none;
  align-items: center; gap: 10px;
  min-height: 44px; padding: 10px 12px;
  border: 0; background: var(--navy-700); color: var(--cream);
  font: 10px var(--display); text-transform: uppercase; cursor: pointer;
  --bc: var(--ink); box-shadow: var(--frame-sm);
}
.nav-toggle-bars { width: 16px; height: 2px; background: currentColor; box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor; }
.nav-toggle[aria-expanded="true"] { color: var(--yellow); }

@media (max-width: 879px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; width: 100%; flex-direction: column; padding: 4px 0 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 8px; font-size: 12px; }
  .nav a.nav-cta { align-self: flex-start; margin: 8px 4px; }
}
@media (min-width: 880px) {
  .brand-text { font-size: 12px; }
  .nav a { font-size: 10px; }
}

/* ---- hero ------------------------------------------------------------ */

.hero {
  position: relative;
  overflow: hidden;
  padding: 120px 0 176px;
  text-align: center;
  isolation: isolate;
}
@media (min-width: 720px) { .hero { padding: 152px 0 200px; } }

.hero-inner { position: relative; z-index: 2; }

.logo-title { margin: 0 auto 28px; text-shadow: none; line-height: 1; text-transform: uppercase; }
.logo-title span { display: block; }
.t-data { font-size: 56px; color: var(--cream); text-shadow: 6px 6px 0 var(--ink); margin-bottom: 16px; }
.t-science { font-size: 32px; color: var(--yellow); text-shadow: 4px 4px 0 var(--ink); margin-bottom: 24px; }
.t-home { font-size: 16px; letter-spacing: .6em; margin-right: -.6em; color: var(--cream); }
@media (min-width: 640px) {
  .t-data { font-size: 112px; text-shadow: 8px 8px 0 var(--ink); margin-bottom: 24px; }
  .t-science { font-size: 64px; text-shadow: 6px 6px 0 var(--ink); margin-bottom: 32px; }
  .t-home { font-size: 24px; }
}
@media (min-width: 1100px) {
  .t-data { font-size: 168px; }
  .t-science { font-size: 96px; text-shadow: 8px 8px 0 var(--ink); }
  .t-home { font-size: 32px; }
}

.hero-pitch { font: 16px/1.6 var(--display); color: var(--cream); margin: 0 0 12px; }
.hero-sub { max-width: 36em; margin: 0 auto 40px; color: var(--muted); font-size: 1.25rem; }
@media (min-width: 720px) { .hero-pitch { font-size: 24px; } }

.press-start { font: 10px/1.6 var(--display); text-transform: uppercase; letter-spacing: .2em; color: var(--yellow); margin: 0 0 24px; }
.blink { animation: blink 1s steps(1) infinite; }

/* Platform "menu": one column on phones, a row on desktops. */
.platforms {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 20px;
  max-width: 980px;
  margin: 0 auto;
  padding: 4px 4px 12px;
  list-style: none;
  text-align: left;
}
@media (min-width: 980px) { .platforms { grid-template-columns: repeat(4, 1fr); } }

.platform {
  --bc: var(--ink);
  position: relative;
  display: flex; align-items: center; gap: 14px;
  min-height: 72px;
  padding: 14px 16px;
  background: var(--cream);
  color: var(--ink);
  text-decoration: none;
  box-shadow: inset -4px -4px 0 0 #d9d6ea, var(--frame), 0 8px 0 0 var(--ink);
  transition: transform 80ms steps(2);
}
.platform .px:not(.px-arrow) { width: 32px; height: auto; }
.platform:hover, .platform:focus-visible { background: var(--yellow); color: var(--ink); transform: translateY(-4px); box-shadow: inset -4px -4px 0 0 var(--yellow-lo), var(--frame), 0 12px 0 0 var(--ink); }
.platform:active { transform: translateY(4px); box-shadow: var(--frame), 0 4px 0 0 var(--ink); }
.pl-action { display: block; font: 500 1rem/1.2 var(--body); color: #4a5180; }
.pl-name { display: block; font: 12px/1.5 var(--display); }
.cursor { position: absolute; left: -22px; top: 50%; translate: 0 -50%; opacity: 0; }
/* Phones: compact tiles, icon above the name. */
@media (max-width: 559px) {
  .platform { flex-direction: column; justify-content: center; gap: 8px; min-height: 112px; padding: 14px 8px; text-align: center; }
  .pl-action { font-size: .95rem; }
  .pl-name { font-size: 10px; }
  .cursor { display: none; }
}
.platform:hover .cursor, .platform:focus-visible .cursor { opacity: 1; animation: blink .8s steps(1) infinite; }

/* Sky decorations. Positions are percentages so they scale with the hero. */
.sky { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.sky .px { position: absolute; }
.cloud-a { top: 28px; left: -40px; width: 180px; height: auto; animation: drift 24s steps(24) infinite alternate; }
.cloud-b { top: 46%; right: -24px; width: 120px; height: auto; animation: drift 30s steps(20) infinite alternate-reverse; opacity: .9; }
.cloud-c { display: none; }
.rocket { top: 24px; right: 7%; width: 44px; height: auto; animation: bob 1.2s steps(2) infinite; }
.rocket .flame { animation: flicker .24s steps(1) infinite; }
.tw { animation: twinkle 2.4s steps(1) infinite; }
.s1 { top: 92px; left: 10%; width: 28px; height: auto; }
.s2 { top: 150px; left: 4%; width: 20px; height: auto; animation-delay: .6s; }
.s3 { top: 38%; right: 6%; width: 16px; height: auto; animation-delay: 1.2s; }
.s4 { top: 30%; right: 12%; width: 20px; height: auto; animation-delay: .3s; }
.s5 { top: 64%; left: 8%; width: 12px; height: auto; animation-delay: 1.8s; }
.s6 { top: 18%; left: 40%; width: 24px; height: auto; animation-delay: .9s; display: none; }
.planet-wrap { position: absolute; left: -56px; bottom: -64px; width: 200px; }
.planet-wrap .px { position: static; }
.planet { width: 200px; height: auto; }
.cat { position: absolute !important; top: 4px; left: 92px; width: 48px; height: auto; }
.hearts { position: absolute; right: 16px; bottom: 28px; display: flex; gap: 6px; }
.hearts .px { position: static; width: 32px; height: auto; animation: beat 1.8s steps(1) infinite; }
.hearts .px:nth-child(2) { animation-delay: .3s; }
.hearts .px:nth-child(3) { animation-delay: .6s; }

@media (min-width: 720px) {
  .cloud-a { top: 40px; left: -24px; width: 288px; }
  .cloud-b { top: 52%; right: -32px; width: 220px; }
  .cloud-c { display: block; top: 72%; left: 14%; width: 120px; height: auto; opacity: .6; animation: drift 40s steps(16) infinite alternate; }
  .rocket { top: 48px; right: 10%; width: 64px; }
  .s1 { top: 150px; left: 9%; width: 36px; }
  .s2 { top: 210px; left: 4%; width: 28px; }
  .s3 { top: 38%; right: 8%; width: 24px; }
  .s4 { top: 42%; right: 4%; width: 28px; }
  .s6 { display: block; }
  .planet-wrap { left: -48px; bottom: -80px; width: 264px; }
  .planet { width: 264px; }
  .cat { top: 6px; left: 122px; width: 56px; }
  .hearts { right: 40px; bottom: 40px; }
  .hearts .px { width: 44px; }
}

/* ---- HUD ------------------------------------------------------------- */

.hud { background: var(--navy-900); box-shadow: 0 -4px 0 0 var(--ink), 0 4px 0 0 var(--ink); position: relative; z-index: 3; }
.hud-inner { display: grid; grid-template-columns: repeat(2, 1fr); margin-block: 0; padding: 8px 0; }
.hud-item { padding: 16px 8px; text-align: center; }
.hud-item dt { font: 8px/1.6 var(--display); text-transform: uppercase; letter-spacing: .15em; color: var(--muted); margin-bottom: 10px; }
.hud-item dd { margin: 0; font: 16px/1.2 var(--display); color: var(--yellow); text-shadow: 3px 3px 0 var(--ink); }
@media (min-width: 720px) {
  .hud-inner { grid-template-columns: repeat(4, 1fr); }
  .hud-item + .hud-item { box-shadow: -4px 0 0 0 var(--navy-700); }
  .hud-item dt { font-size: 10px; }
  .hud-item dd { font-size: 24px; }
}

/* ---- sections -------------------------------------------------------- */

.section { padding: 56px 0; }
.section-tight { padding-top: 24px; }
@media (min-width: 720px) { .section { padding: 72px 0; } }

.section-title { display: flex; align-items: center; gap: 14px; }
.section-title .px { width: 12px; height: auto; animation: blink 1.2s steps(1) infinite; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 24px; }

.page-head { padding: 56px 0 24px; }
.page-head h1 { margin-bottom: 20px; }
.lead { font-size: 1.3rem; color: var(--muted); max-width: 40em; }
@media (min-width: 720px) { .page-head { padding: 80px 0 32px; } }

.split { display: grid; gap: 40px; }
@media (min-width: 880px) { .split { grid-template-columns: 1fr 1fr; align-items: start; } }

.cover { width: 100%; max-width: 420px; image-rendering: auto; --bc: var(--ink); box-shadow: var(--frame), var(--depth); }

/* ---- feature (latest episode) --------------------------------------- */

.feature { display: grid; gap: 28px; }
@media (min-width: 880px) { .feature { grid-template-columns: 240px 1fr; gap: 40px; align-items: start; } }
.feature-art {
  position: relative;
  display: grid; place-items: center;
  aspect-ratio: 1;
  max-width: 240px;
  background: var(--navy-900) url(../img/stars.svg);
  box-shadow: inset 0 0 0 4px var(--ink);
}
.feature-art .px { width: 50%; height: auto; }
@media (max-width: 879px) { .feature-art { max-width: 136px; } .onair { top: 6px; left: 6px; } }
.onair {
  position: absolute; top: 12px; left: 12px;
  padding: 6px 8px 5px; background: var(--pink); color: var(--ink);
  font: 8px/1.2 var(--display); text-transform: uppercase;
  animation: blink 1.6s steps(1) infinite;
}
.feature-title { font-size: 16px; line-height: 1.6; }
.feature-title a { color: var(--cream); text-decoration: none; }
.feature-title a:hover { color: var(--yellow); }
.feature-sum { color: var(--muted); }
@media (min-width: 720px) { .feature-title { font-size: 24px; line-height: 1.5; } }

.ep-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 14px; color: var(--muted); font-size: 1.05rem; }
.ep-meta .badge { margin: 2px; }

/* ---- episode cards --------------------------------------------------- */

.ep-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 36px 28px;
  list-style: none;
  margin: 8px 0 40px;
  padding: 4px;
}
.ep-card {
  --bc: var(--ink);
  position: relative;
  display: flex; flex-direction: column;
  padding: 20px;
  background: var(--navy-800);
  box-shadow: inset 4px 4px 0 0 rgba(255, 255, 255, .05), var(--frame), var(--depth);
  transition: transform 80ms steps(2);
}
.ep-card:hover, .ep-card:focus-within { --bc: var(--yellow); transform: translateY(-4px); }
.ep-card-title { font-size: 12px; line-height: 1.8; margin-bottom: 12px; }
.ep-card-title a { color: var(--cream); text-decoration: none; }
.ep-card-title a::after { content: ""; position: absolute; inset: 0; }
.ep-card-title a:focus-visible { outline: none; }
.ep-card:focus-within { outline: 4px solid var(--yellow); outline-offset: 8px; }
.ep-card-sum {
  color: var(--muted);
  font-size: 1.05rem;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.ep-card-foot { display: flex; justify-content: space-between; margin: auto 0 0; padding-top: 8px; color: var(--muted); }
.ep-card .go { font: 10px/2 var(--display); color: var(--yellow); }

/* ---- about teaser / sponsor band ------------------------------------ */

.about-teaser { display: grid; gap: 28px; grid-column: 1 / -1; }
.about-teaser .cover { max-width: 280px; }
@media (min-width: 880px) { .about-teaser { grid-template-columns: 280px 1fr; gap: 48px; align-items: center; } }

.band { background: var(--ink); padding: 40px 0; box-shadow: 0 -4px 0 0 var(--navy-700); }
.band-inner { display: grid; gap: 20px; justify-items: start; }
.band-inner p { margin-bottom: .4em; color: var(--muted); }
.band-title { font: 16px/1.4 var(--display); color: var(--yellow) !important; text-transform: uppercase; }
.band .px-coin { width: 48px; height: auto; }
@media (min-width: 880px) { .band-inner { grid-template-columns: auto 1fr auto; align-items: center; gap: 32px; } }
.spin { animation: spin 1.6s steps(4) infinite; }

/* ---- episodes page --------------------------------------------------- */

.ep-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 0 0 32px; padding: 4px; }
.search {
  --bc: var(--ink);
  flex: 1 1 320px;
  display: flex; align-items: center; gap: 12px;
  padding: 0 14px;
  background: var(--cream);
  box-shadow: inset 4px 4px 0 0 #d9d6ea, var(--frame);
  margin-bottom: 12px;
}
.search:focus-within { --bc: var(--yellow); }
.search .px { width: 15px; height: auto; }
.search input {
  flex: 1; min-width: 0;
  min-height: 52px;
  border: 0; background: transparent; color: var(--ink);
  font: 500 1.2rem var(--body);
}
.search input:focus { outline: none; }
.search input::placeholder { color: #6c7299; }
.ep-tools .btn { margin: 0 4px 12px; }
.ep-count { margin: 0 0 12px; font: 10px/1.6 var(--display); color: var(--muted); }

.year { margin-bottom: 48px; }
.year-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; padding-bottom: 14px; margin-bottom: 8px; background: linear-gradient(90deg, var(--yellow) 50%, transparent 0) bottom / 16px 4px repeat-x; }
.year-title span { font-size: 10px; color: var(--muted); text-shadow: none; }

.ep-list { list-style: none; margin: 0; padding: 0; }
.ep-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px 20px;
  padding: 20px 8px;
  background: linear-gradient(90deg, var(--navy-600) 50%, transparent 0) bottom / 8px 4px repeat-x;
}
.ep-row:hover { background-color: var(--navy-600); }
.ep-row h3 { margin: 0 0 6px; font-size: 12px; line-height: 1.8; }
.ep-row h3 a { color: var(--cream); text-decoration: none; }
.ep-row h3 a::after { content: ""; position: absolute; inset: 0; }
.ep-row h3 a:hover { color: var(--yellow); }
.ep-row h3 a:focus-visible { outline: none; }
.ep-row:focus-within { outline: 4px solid var(--yellow); outline-offset: 0; }
.ep-row-main p { margin: 0; color: var(--muted); font-size: 1.02rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ep-row-meta { display: flex; gap: 12px; margin: 0; color: var(--muted); font-size: 1rem; white-space: nowrap; }
.ep-row-num { display: flex; flex-wrap: wrap; gap: 4px; align-items: flex-start; }
@media (min-width: 720px) {
  .ep-row { grid-template-columns: 92px 1fr 150px; align-items: start; padding: 22px 12px; }
  .ep-row-meta { flex-direction: column; gap: 0; text-align: right; }
}
.empty { text-align: center; }

/* ---- episode page ---------------------------------------------------- */

.crumbs { font: 10px/1.6 var(--display); margin-bottom: 24px; color: var(--muted); }
.crumbs a { text-decoration: none; }
.ep-title { font-size: 20px; line-height: 1.6; }
@media (min-width: 720px) { .ep-title { font-size: 32px; line-height: 1.5; } }

.listen-on { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 8px 0 48px; }
.listen-on p { margin: 0; font: 10px var(--display); color: var(--muted); text-transform: uppercase; }
.listen-on ul { display: flex; flex-wrap: wrap; gap: 14px; list-style: none; margin: 0; padding: 4px; }

.notes { margin-bottom: 56px; }
.notes-title { font-size: 16px; }

.prose { overflow-wrap: anywhere; }
.prose p, .prose ul, .prose ol, .prose blockquote { max-width: 68ch; }
.prose ul { list-style: square; padding-left: 1.4em; }
.prose li::marker { color: var(--yellow); }
.prose li { margin-bottom: .35em; }
.prose h3, .prose h4 { font-size: 12px; color: var(--yellow); margin-top: 1.6em; }
.prose blockquote { margin: 1.2em 0; padding: 4px 0 4px 20px; box-shadow: inset 4px 0 0 0 var(--violet); color: var(--muted); }
.prose code { font-family: ui-monospace, monospace; background: var(--ink); padding: 1px 6px; }
.prose pre { overflow-x: auto; padding: 16px; background: var(--ink); }
.prose hr { border: 0; height: 4px; background: linear-gradient(90deg, var(--navy-300) 50%, transparent 0) 0 0 / 8px 4px repeat-x; margin: 2em 0; }

.ep-nav { display: grid; gap: 28px; margin-bottom: 72px; padding: 4px; }
@media (min-width: 720px) { .ep-nav { grid-template-columns: 1fr 1fr; } }
.ep-nav-link {
  --bc: var(--ink);
  display: flex; flex-direction: column; gap: 10px;
  padding: 18px 20px;
  background: var(--navy-800);
  color: var(--cream);
  text-decoration: none;
  box-shadow: var(--frame), 0 8px 0 0 var(--ink);
}
.ep-nav-link:hover { --bc: var(--yellow); color: var(--yellow); }
.ep-nav-link.next { text-align: right; }
.ep-nav-k { font: 10px/1.4 var(--display); color: var(--yellow); }

/* ---- player ---------------------------------------------------------- */

.player { margin: 24px 0; }
.player audio { display: none; width: 100%; }
.player-ui {
  --bc: var(--ink);
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  padding: 14px;
  background: var(--navy-900);
  box-shadow: inset 0 0 0 4px var(--navy-700), var(--frame), 0 8px 0 0 var(--ink);
}
.pbtn {
  --bc: var(--ink);
  display: inline-grid; place-items: center;
  min-width: 48px; min-height: 48px;
  padding: 0 10px;
  border: 0;
  background: var(--navy-700);
  color: var(--cream);
  font: 10px var(--display);
  cursor: pointer;
  box-shadow: inset -3px -3px 0 0 var(--navy-900), var(--frame-sm);
}
.pbtn:hover { color: var(--yellow); background: var(--navy-600); }
.pbtn:active { translate: 0 2px; }
.pbtn-play { width: 56px; height: 56px; background: var(--yellow); box-shadow: inset -4px -4px 0 0 var(--yellow-lo), inset 4px 4px 0 0 var(--yellow-hi), var(--frame-sm); }
.pbtn-play:hover { background: #f4d866; }
.pbtn-play .px { width: 21px; height: auto; margin-left: 3px; }
.pbtn-play .px-pause { display: none; margin-left: 0; width: 18px; }
.is-playing .pbtn-play .px-play { display: none; }
.is-playing .pbtn-play .px-pause { display: block; }
.is-loading .pbtn-play { animation: blink .6s steps(1) infinite; }

.seek {
  --p: 0%;
  order: 10;
  flex: 1 1 100%;
  height: 28px;
  margin: 0;
  background: transparent;
  -webkit-appearance: none; appearance: none;
  cursor: pointer;
}
.seek::-webkit-slider-runnable-track {
  height: 16px;
  background:
    repeating-linear-gradient(90deg, transparent 0 6px, var(--navy-900) 6px 8px),
    linear-gradient(90deg, var(--yellow) var(--p), var(--navy-700) var(--p));
  box-shadow: 0 0 0 2px var(--ink);
}
.seek::-moz-range-track {
  height: 16px;
  background:
    repeating-linear-gradient(90deg, transparent 0 6px, var(--navy-900) 6px 8px),
    linear-gradient(90deg, var(--yellow) var(--p), var(--navy-700) var(--p));
  box-shadow: 0 0 0 2px var(--ink);
}
.seek::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 28px; margin-top: -6px; background: var(--cream); border: 0; box-shadow: 0 0 0 2px var(--ink); }
.seek::-moz-range-thumb { width: 12px; height: 28px; background: var(--cream); border: 0; border-radius: 0; box-shadow: 0 0 0 2px var(--ink); }
.seek:focus-visible { outline: 4px solid var(--yellow); outline-offset: 4px; }
.ptime { order: 11; margin: 0 0 0 auto; font: 10px/1 var(--display); color: var(--muted); white-space: nowrap; }
@media (min-width: 720px) {
  .seek { order: 0; flex: 1 1 200px; }
  .ptime { order: 0; margin: 0; }
}
.player-note { margin: 18px 0 0; color: var(--muted); font-size: 1rem; }

/* ---- about ----------------------------------------------------------- */

.split-media { align-items: center; }
.split-media .cover { justify-self: center; }
.sheet-head { display: flex; align-items: center; gap: 24px; margin-bottom: 24px; }
.sheet-head .px { width: 60px; height: auto; }
.sheet-head .eyebrow { color: var(--muted); margin-bottom: 10px; }
.sheet-name { margin: 0; font-size: 16px; }
@media (min-width: 720px) { .sheet-name { font-size: 24px; } }
.sheet-stats { display: grid; gap: 0; margin: 0 0 24px; }
.sheet-stats div { display: grid; gap: 4px 24px; padding: 14px 0; background: linear-gradient(90deg, var(--navy-600) 50%, transparent 0) bottom / 8px 4px repeat-x; }
.sheet-stats dt { font: 10px/1.8 var(--display); color: var(--yellow); text-transform: uppercase; }
.sheet-stats dd { margin: 0; }
@media (min-width: 720px) { .sheet-stats div { grid-template-columns: 160px 1fr; } }
.rainy.big .px { width: 96px; height: auto; }

/* ---- sponsor --------------------------------------------------------- */

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 32px 28px; margin-block: 0; padding: 4px; }
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.stat dd { margin: 0 0 12px; font: 24px/1.2 var(--display); color: var(--yellow); text-shadow: 4px 4px 0 var(--ink); }
.stat dt { color: var(--muted); }
@media (min-width: 720px) { .stat dd { font-size: 32px; } }

.steps { display: grid; gap: 32px 28px; list-style: none; margin: 0; padding: 4px; counter-reset: s; }
@media (min-width: 880px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step-n { font: 10px var(--display); color: var(--pink); text-transform: uppercase; margin-bottom: 14px; }
.step h3 { color: var(--cream); }
.step p:last-child { color: var(--muted); margin: 0; }

.final-cta { display: grid; gap: 28px; justify-items: start; }
.final-cta .px-coin { width: 64px; height: auto; }
@media (min-width: 720px) { .final-cta { grid-template-columns: auto 1fr; gap: 48px; align-items: center; padding: 48px; } .final-cta .px-coin { width: 96px; } }

/* ---- contact --------------------------------------------------------- */

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 36px 28px; padding: 4px; }
.contact-card { display: flex; flex-direction: column; align-items: flex-start; }
.contact-card .px { width: auto; height: 56px; margin-bottom: 20px; }
.contact-card p.addr { margin: 0 0 16px; color: var(--cream); font-weight: 600; overflow-wrap: anywhere; }
.contact-card h2 { font-size: 16px; }
.contact-card p { color: var(--muted); }
.contact-card p:last-child { margin-top: auto; margin-bottom: 0; }

/* ---- 404 ------------------------------------------------------------- */

.gameover { padding: 96px 0 120px; text-align: center; }
.gameover .px { width: 112px; height: auto; margin: 0 auto 32px; display: block; }
.gameover h1 { font-size: 32px; color: var(--pink); }
.gameover .lead { margin-inline: auto; }
.gameover .btn-row { justify-content: center; }
.gameover .press-start { animation: blink 1s steps(1) infinite; }
.checking .gameover { visibility: hidden; }
@media (min-width: 720px) { .gameover h1 { font-size: 56px; } }

/* ---- footer ---------------------------------------------------------- */

.site-footer { background: var(--navy-900); margin-top: 0; padding-bottom: 32px; }
.ground {
  height: 16px;
  background:
    linear-gradient(90deg, var(--violet) 50%, transparent 0) top left / 16px 4px repeat-x,
    linear-gradient(var(--violet), var(--violet)) 0 4px / 100% 4px no-repeat,
    linear-gradient(var(--blue), var(--blue)) 0 8px / 100% 8px no-repeat;
  background-color: var(--navy);
}
.footer-grid { display: grid; gap: 32px; padding: 48px 0 24px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-title { font: 12px/1.8 var(--display); color: var(--yellow); text-transform: uppercase; }
.footer-about p:last-child { color: var(--muted); }
.footer-h { font-size: 10px; color: var(--muted); text-shadow: none; text-transform: uppercase; margin-bottom: 16px; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 4px; }
.footer-links a { display: inline-flex; align-items: center; gap: 10px; padding: 4px 0; color: var(--cream); text-decoration: none; }
.footer-links a:hover { color: var(--yellow); text-decoration: underline; }
.footer-links .px { width: 16px; height: auto; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 24px; color: var(--muted); font-size: 1rem; background: linear-gradient(90deg, var(--navy-700) 50%, transparent 0) top / 8px 4px repeat-x; }
.footer-bottom p { margin: 0; }
.rainy { display: inline-flex; align-items: center; gap: 12px; }
.rainy .px { width: 36px; height: auto; }
.drop { animation: rain .9s steps(3) infinite; }

/* ---- easter egg ------------------------------------------------------ */

.toast {
  position: fixed; left: 50%; bottom: 32px; z-index: 50; translate: -50% 0;
  padding: 16px 20px; background: var(--yellow); color: var(--ink);
  font: 12px/1.5 var(--display); text-align: center;
  --bc: var(--ink); box-shadow: var(--frame), 0 8px 0 0 var(--ink);
  animation: pop .3s steps(3);
}
.level-up .rocket { animation: launch 2.4s steps(24) forwards; }

/* ---- animation ------------------------------------------------------- */

@keyframes blink { 50% { opacity: 0; } }
@keyframes twinkle { 0%, 100% { opacity: 1; } 40% { opacity: .25; } 70% { opacity: .7; } }
@keyframes flicker { 50% { opacity: .15; } }
@keyframes drift { to { transform: translateX(48px); } }
@keyframes bob { 50% { transform: translateY(-6px); } }
@keyframes beat { 0%, 70%, 100% { transform: scale(1); } 80% { transform: scale(1.15); } }
@keyframes spin { 0%, 100% { transform: scaleX(1); } 25% { transform: scaleX(.55); } 50% { transform: scaleX(.12); } 75% { transform: scaleX(.55); } }
@keyframes rain { from { transform: translateY(-2px); opacity: 1; } to { transform: translateY(3px); opacity: .2; } }
@keyframes pop { from { transform: scale(.6); } }
@keyframes launch { to { transform: translate(40vw, -110vh); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
