:root {
  --ink: #1b2433;
  --paper: #fff8ee;
  --sun: #ffe7a3;
  --card: #fffdf8;
  --line: #1b2433;
  --muted: #5c6574;
  color-scheme: light;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  min-height: 100vh;
  color: var(--ink);
  font-family: "Nunito", "Trebuchet MS", sans-serif;
  background:
    radial-gradient(900px 420px at 12% -10%, #fff1b8 0%, transparent 60%),
    radial-gradient(700px 380px at 100% 0%, #c8f3ff 0%, transparent 55%),
    linear-gradient(180deg, #fff6e4 0%, #ffe8c8 42%, #fff8ee 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(27, 36, 51, 0.06) 1px, transparent 1px);
  background-size: 18px 18px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 80%);
}

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  position: relative;
}

.top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0 8px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo {
  width: 64px;
  height: 64px;
  flex: none;
  border: 3px solid var(--line);
  border-radius: 16px;
  background: #ffcf48;
  box-shadow: 4px 4px 0 var(--line);
  display: grid;
  place-items: center;
}

.logo span {
  width: 38px;
  height: 26px;
  border-radius: 5px;
  background: #1f6f8a;
  box-shadow: inset 0 -8px 0 #174e63;
  position: relative;
}

.logo span::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  top: 6px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, #fff6d8, #ff5a36, #7dffb3);
}

h1 {
  font-family: "Fredoka", "Trebuchet MS", sans-serif;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 0.9;
  letter-spacing: -0.5px;
  margin: 0;
}

.tag {
  margin: 8px 0 0;
  max-width: 46ch;
  font-size: 17px;
  font-weight: 700;
  color: #314056;
}

.marquee {
  margin: 0;
  padding: 10px 14px;
  border: 3px solid var(--line);
  border-radius: 999px;
  background: #fff;
  box-shadow: 4px 4px 0 var(--line);
  font-weight: 800;
  font-size: 14px;
  white-space: nowrap;
}

.note {
  margin: 18px 0 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 2px dashed #c47a2c;
  font-weight: 800;
  color: #7a3e12;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
  padding: 22px 0 12px;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 3px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 6px 6px 0 var(--line);
}

.thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #203044;
  overflow: hidden;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumb .fallback {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  font-size: 64px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.35), transparent 40%),
    var(--accent, #ffcf48);
}

.thumb.missing img { display: none; }
.thumb.missing .fallback { display: grid; }

.card h2 {
  font-family: "Fredoka", "Trebuchet MS", sans-serif;
  font-size: 24px;
  line-height: 1.05;
  margin: 14px 14px 6px;
}

.card .blurb {
  margin: 0 14px;
  color: #314056;
  font-weight: 700;
  line-height: 1.35;
  min-height: 2.7em;
}

.card .controls {
  margin: 10px 14px 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.play {
  margin: 14px;
  margin-top: auto;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  color: #1b2433;
  background: #ffcf48;
  border: 3px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  font-family: "Fredoka", "Trebuchet MS", sans-serif;
  font-size: 18px;
  box-shadow: 3px 3px 0 var(--line);
}

.play:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--line); }
.play:focus-visible { outline: 3px solid #1f6f8a; outline-offset: 3px; }

.site-footer {
  padding: 10px 0 28px;
  text-align: center;
  font-weight: 800;
  color: #314056;
}

.status {
  padding: 40px 0;
  font-weight: 800;
}

@media (max-width: 720px) {
  .top { flex-direction: column; align-items: flex-start; }
  .marquee { white-space: normal; }
  .wrap { width: min(1120px, calc(100% - 20px)); }
  .card .blurb { min-height: 0; }
}
