:root {
  color-scheme: dark;
  --bg: #100b19;
  --text: #faf4ff;
  --muted: #c9bdd4;
  --pink: #ff7465;
  --purple: #c8a9ff;
  --border: #423253;
  font-family: system-ui, sans-serif;
  scroll-behavior: smooth;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--purple); }
a:focus-visible { outline: 3px solid #90c6ff; outline-offset: 5px; }
p { line-height: 1.65; }
.wrap { width: min(1200px, calc(100% - 64px)); margin-inline: auto; }
.skip { position: absolute; z-index: 3; left: 16px; top: -100px; background: #100b19; padding: 12px; }
.skip:focus { top: 16px; }
.top, .footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 22px; }
.top { align-items: start; flex-direction: column; gap: 8px; }
.brand { font-weight: 850; white-space: nowrap; letter-spacing: -.025em; }
.mark { display: inline-grid; place-items: center; background: #302047; border-radius: 9px; width: 35px; height: 35px; margin-right: 5px; }
.top nav {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  min-width: 0;
  width: 100%;
  gap: clamp(10px, 1vw, 15px);
  padding: 8px;
  overflow-x: auto;
  font-weight: 650;
  color: var(--muted);
}
.top nav a {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  min-height: 36px;
  white-space: nowrap;
}
.top nav a::before {
  content: "";
  flex: 0 0 38px;
  height: 23px;
  background: url("/panda-menu.webp") center / contain no-repeat;
}
.nav-cta { color: var(--text); padding: 9px 16px; background: #32204c; border-radius: 8px; }
.hero { position: relative; isolation: isolate; display: grid; align-items: center; min-height: 555px; overflow: hidden; border: 1px solid var(--border); border-radius: 24px; background: #1b1028; }
.hero-art { position: absolute; inset: 0 0 0 auto; width: 74%; height: 100%; object-fit: cover; object-position: center; z-index: -2; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #1b1028 12%, #1b1028 29%, #1b1028db 39%, #1b102826 63%, transparent 100%); }
.hero-content { padding: clamp(24px, 5vw, 70px); }
.eyebrow { color: var(--purple); font-weight: 800; font-size: .875rem; letter-spacing: .13em; margin: 0 0 12px; }
.eyebrow span { color: var(--pink); margin-right: 6px; }
h1, h2, h3 { margin: 0; letter-spacing: -.045em; line-height: 1; }
h1 { font-size: clamp(3.35rem, 8vw, 7rem); font-weight: 950; }
.blue { color: #8ebcff; }
.accent { color: var(--pink); }
.hero-content > p:not(.eyebrow) { max-width: 375px; color: var(--muted); font-size: 1.125rem; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 23px; }
.button { display: inline-flex; gap: 9px; align-items: center; justify-content: center; padding: 12px 17px; min-height: 46px; border-radius: 9px; font-weight: 800; }
.primary { background: var(--pink); color: #170c19; }
.primary:hover { background: #ff9a8f; color: #170c19; }
.secondary { background: #20162b; border: 1px solid #655275; }
.secondary:hover { border-color: var(--purple); }
.games { margin-block: 65px; }
h2 { font-size: clamp(2.1rem, 5vw, 3.2rem); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.card { --tone: #ffa38c; --glow: #422442; background: radial-gradient(ellipse at 92% 10%, var(--glow), transparent 80%), #1a1224; padding: 24px; border: 1px solid var(--border); border-radius: 16px; }
.games .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.vice-city { --tone: #ffa8e6; --glow: #51264d; }
.survival { --tone: #96f2db; --glow: #173835; }
.adventure { --tone: #ffcf8f; --glow: #463024; }
.icon { color: var(--tone); display: block; min-height: 45px; font-size: 1.65rem; }
.genre { color: var(--tone); font-size: .875rem; letter-spacing: .1em; font-weight: 800; }
h3 { font-size: 1.65rem; }
.card p:last-child, .planning p:last-child { color: var(--muted); margin-bottom: 0; }
.planning { display: grid; justify-items: start; gap: 24px; padding: clamp(16px, 3vw, 30px); border-radius: 16px; border: 1px solid var(--border); background: #1a1224; margin-bottom: 44px; }
.footer { border-top: 1px solid var(--border); color: var(--muted); }
@media (max-width: 760px) {
  .wrap { width: calc(100% - 32px); }
  .hero { display: flex; align-items: end; min-height: 650px; }
  .hero-art { width: 100%; height: 67%; object-position: 70% center; }
  .hero::after { background: linear-gradient(0deg,#1b1028 20%,#1b1028e8 38%,transparent 73%); }
  .grid, .games .grid { grid-template-columns: 1fr; }
  .games { margin-block: 45px; }
}
@media (max-width: 460px) {
  .hero { min-height: 610px; }
  .hero-content { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) { :root { scroll-behavior: auto; } }

.socials { margin-bottom: 44px; }
.social-list { list-style: none; padding: 0; margin-bottom: 0; }
.social-card {
  display: grid;
  gap: 7px;
  height: 100%;
  padding: 20px 24px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #1a1224;
}
.social-card strong { font-size: 1.25rem; }
.social-card span { color: var(--muted); }
a.social-card:hover { border-color: var(--purple); }

.bio {
  margin-top: clamp(32px, 5vw, 56px);
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #1a1224;
}
.bio p {
  max-width: 68ch;
  color: var(--muted);
}
.bio p:last-child { margin-bottom: 0; }
.bio strong { color: var(--text); }

.weeks {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: 24px;
}
.week { min-width: 0; }
.week h3 { font-size: clamp(1.25rem, 3vw, 1.65rem); line-height: 1.2; }
.poster { display: block; margin-block: 14px; }
.poster img { display: block; width: 100%; height: auto; border-radius: 12px; }
.week table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.week th, .week td {
  border-bottom: 1px solid var(--border);
  padding: 8px 4px;
  text-align: left;
}
.week thead th { color: var(--purple); }
.week .rest { color: var(--muted); }

.live { margin-top: clamp(32px, 5vw, 56px); }
.live-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 300px;
  margin-top: 20px;
  border: 0;
  border-radius: 16px;
  background: #1a1224;
}
.live button { font: inherit; font-weight: 800; color: var(--text); cursor: pointer; }
.live [hidden], .live-feedback:empty { display: none; }
.live-feedback { color: var(--muted); margin-bottom: 0; }

@media (max-width: 431px) {
  .live-player { display: none; }
}

.discord-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding: clamp(16px, 3vw, 24px);
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #1a1224;
}
.discord-card p { color: var(--muted); margin: 8px 0 0; }

.comments { margin-block: 36px 56px; max-width: 800px; }
.comments h1 { font-size: clamp(2.4rem, 7vw, 4.5rem); }
.comments h2 { font-size: clamp(1.5rem, 5vw, 2rem); }
.comment-form { display: grid; gap: 12px; margin-block: 24px 36px; }
.comment-form label { font-weight: 700; }
.comment-form input, .comment-form textarea {
  width: 100%;
  padding: 10px 12px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid #655275;
  border-radius: 8px;
  font: inherit;
}
.comment-form textarea { resize: vertical; }
.comments button { width: fit-content; font: inherit; font-weight: 800; cursor: pointer; }
.comments button:disabled { opacity: .65; cursor: default; }
.comments [hidden], .comments [role="status"]:empty { display: none; }
.comments p { color: var(--muted); margin: 0; }
.comment-list { display: grid; gap: 12px; padding: 0; list-style: none; }
.comment-list li { overflow-wrap: anywhere; }
.comment-list time { display: block; color: var(--muted); font-size: .875rem; }
.comment-list p { white-space: pre-wrap; margin-top: 8px; }

.donation {
  width: min(520px, calc(100% - 32px));
  padding: clamp(18px, 4vw, 30px);
  border: 1px solid var(--border);
  border-radius: 16px;
  color: var(--text);
  background: #1a1224;
}
.donation h1 { font-size: clamp(1.7rem, 5vw, 2.4rem); }
.donation p { color: var(--muted); }
#donation-form { display: grid; gap: 12px; }
.donation fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.donation legend, .donation label { font-weight: 700; }
.donation-amounts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.donation button { font: inherit; font-weight: 800; cursor: pointer; }
.donation .secondary { color: var(--text); }
.donation [aria-pressed="true"] { border-color: var(--purple); background: #34204e; }
.donation input {
  width: 100%;
  padding: 10px 12px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid #655275;
  border-radius: 8px;
  font: inherit;
}

.top nav .nav-cta::before { background-image: url("/panda-twitch.webp"); }

.bio h2, .bio h3 { line-height: 1.15; }
.bio h3 { margin-top: 1.7em; }
.bio h2 + h3 { margin-top: clamp(32px, 5vw, 56px); }
.bio ul {
  max-width: 68ch;
  padding-inline-start: 1.5em;
  color: var(--muted);
  line-height: 1.65;
}
.bio li + li { margin-top: .5em; }
.bio hr { margin-block: 2rem; border: 0; border-top: 1px solid var(--border); }

.standalone { margin-block: 36px 56px; }
.standalone h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); }
.standalone .donation h1 { font-size: clamp(1.7rem, 5vw, 2.4rem); }

.music { max-width: 860px; }
.music-player { margin-block: 24px; }
.music-player p { margin: 0 0 12px; font-weight: 750; }
.music-player audio { display: block; width: 100%; }
.music-tracks { display: grid; gap: 8px; padding-inline-start: 2rem; }
.music-tracks li::marker { color: var(--muted); font-variant-numeric: tabular-nums; }
.music-tracks button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 12px 16px;
  text-align: left;
  font: inherit;
  color: var(--text);
  background: #1a1224;
  border: 1px solid var(--border);
  border-radius: 9px;
  cursor: pointer;
}
.music-tracks button:hover, .music-tracks button[aria-pressed="true"] { border-color: var(--purple); }
.music-tracks time { color: var(--muted); white-space: nowrap; }
