:root {
  --bg: #0e1018;
  --panel: rgba(24, 27, 40, 0.9);
  --line: rgba(255, 255, 255, 0.1);
  font-family: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh; color: #fff;
  background:
    radial-gradient(120% 80% at 15% -10%, rgba(255,138,60,0.18), transparent 60%),
    radial-gradient(120% 80% at 85% 0%, rgba(79,227,207,0.16), transparent 55%),
    radial-gradient(140% 100% at 50% 120%, rgba(120,90,220,0.18), transparent 60%),
    var(--bg);
  padding: 40px 20px 60px;
}

.hero { max-width: 900px; margin: 0 auto 34px; text-align: center; }
.hero h1 {
  font-size: clamp(34px, 7vw, 60px); font-weight: 900; letter-spacing: -1.5px; line-height: 1.02;
  margin: 6px 0 10px;
  background: linear-gradient(180deg, #fff, #cfe0ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero h1 span { color: #ffb13c; -webkit-text-fill-color: #ffb13c; }
.hero .sub { font-size: clamp(14px, 2.4vw, 17px); opacity: 0.72; max-width: 620px; margin: 0 auto; line-height: 1.5; font-weight: 500; }

.grid {
  max-width: 1080px; margin: 0 auto;
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px; overflow: hidden;
  box-shadow: 0 18px 50px rgba(0,0,0,0.45);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.card:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: 0 26px 70px rgba(0,0,0,0.55), 0 0 0 1px var(--accent); }

.art {
  height: 150px; display: flex; align-items: center; justify-content: center;
  font-size: 72px; line-height: 1;
  background: radial-gradient(120% 120% at 50% 20%, var(--glow), transparent 70%);
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.4));
}
.card:hover .art { animation: bob 1.4s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-8px) rotate(2deg); } }

.body { padding: 4px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.body h2 { font-size: 26px; font-weight: 900; margin: 0 0 6px; letter-spacing: -0.5px; }
.hook { font-size: 15px; font-weight: 700; color: var(--accent); margin: 0 0 10px; }
.desc { font-size: 13.5px; line-height: 1.5; opacity: 0.72; margin: 0 0 14px; flex: 1; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.tags span {
  font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  color: color-mix(in srgb, var(--accent) 80%, white);
}
.play {
  align-self: flex-start;
  font-size: 15px; font-weight: 800; letter-spacing: 0.3px;
  color: #101216;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 70%, white), var(--accent));
  padding: 11px 22px; border-radius: 12px;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 40%, transparent);
}

.c-squirrel { --accent: #ff8a3c; --glow: rgba(255,138,60,0.28); }
.c-possum   { --accent: #9d7bff; --glow: rgba(157,123,255,0.28); }
.c-cheek    { --accent: #f0b429; --glow: rgba(240,180,41,0.26); }
.c-gecko    { --accent: #57d977; --glow: rgba(87,217,119,0.26); }
.c-sewer    { --accent: #46c6b4; --glow: rgba(70,198,180,0.26); }
.c-mole     { --accent: #d18a4e; --glow: rgba(209,138,78,0.26); }
.c-frog     { --accent: #8fdb5a; --glow: rgba(143,219,90,0.26); }
.c-duck     { --accent: #ffd24a; --glow: rgba(255,210,74,0.26); }
.c-otter    { --accent: #6ec6ff; --glow: rgba(110,198,255,0.26); }
.c-snail    { --accent: #b6d94f; --glow: rgba(182,217,79,0.26); }
.c-turtle   { --accent: #35e0b0; --glow: rgba(53,224,176,0.26); }
.c-beat     { --accent: #ff5fa2; --glow: rgba(255,95,162,0.26); }
.c-owl      { --accent: #f6a94a; --glow: rgba(246,169,74,0.26); }
.c-penguin  { --accent: #38bdf8; --glow: rgba(56,189,248,0.26); }
.c-crab     { --accent: #ff7a6b; --glow: rgba(255,122,107,0.26); }
.c-merge    { --accent: #d98adf; --glow: rgba(217,138,223,0.26); }
.c-panda2   { --accent: #74c7a0; --glow: rgba(116,199,160,0.26); }
.c-firefly  { --accent: #ffd34e; --glow: rgba(255,211,78,0.26); }
.c-bear     { --accent: #ff8a5c; --glow: rgba(255,138,92,0.26); }
.c-chameleon{ --accent: #3ddc84; --glow: rgba(61,220,132,0.26); }
.c-mouse    { --accent: #ffcf4a; --glow: rgba(255,207,74,0.26); }
.c-flamingo { --accent: #ff8fc0; --glow: rgba(255,143,192,0.26); }
.c-cricket  { --accent: #c0a0ff; --glow: rgba(192,160,255,0.26); }
.c-panda    { --accent: #4fe3cf; --glow: rgba(79,227,207,0.26); }
.c-tether   { --accent: #34e1ff; --glow: rgba(52,225,255,0.26); }

footer { max-width: 900px; margin: 44px auto 0; text-align: center; opacity: 0.4; font-size: 12.5px; }

/* The sole survivor gets the spotlight. */
.card.featured { grid-column: 1 / -1; }
@media (min-width: 640px) {
  .card.featured { flex-direction: row; }
  .card.featured .art { width: 40%; height: auto; min-height: 220px; font-size: 96px; }
  .card.featured .body { padding-top: 22px; }
}

/* Retired games: greyed out with a big X over the art. */
.card.dead {
  cursor: default;
  opacity: 0.55;
  filter: grayscale(0.85);
}
.card.dead:hover { transform: none; border-color: var(--line); box-shadow: 0 18px 50px rgba(0,0,0,0.45); }
.card.dead:hover .art { animation: none; }
.card.dead .art { position: relative; }
.card.dead .art::after {
  content: "✕";
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 110px; font-weight: 900; line-height: 1;
  color: rgba(255, 80, 80, 0.82);
  text-shadow: 0 4px 18px rgba(0,0,0,0.6);
}
.card.dead h2 { text-decoration: line-through; text-decoration-thickness: 3px; text-decoration-color: rgba(255,80,80,0.75); }
.card.dead .hook { color: rgba(255,255,255,0.55); }
.card.dead .body { padding-bottom: 18px; }
.gone {
  align-self: flex-start; margin-top: auto;
  font-size: 13px; font-weight: 800; letter-spacing: 0.3px;
  color: rgba(255,255,255,0.55);
  border: 1px solid var(--line);
  padding: 8px 16px; border-radius: 12px;
}

.c-logjam  { --accent: #6bb8e0; --glow: rgba(107,184,224,0.26); }
.c-acorn   { --accent: #e0a53c; --glow: rgba(224,165,60,0.26); }
.c-jelly   { --accent: #b06cff; --glow: rgba(176,108,255,0.26); }

.c-backalley { --accent: #46e0b0; --glow: rgba(70,224,176,0.26); }
.c-nectar  { --accent: #f5b53f; --glow: rgba(245,181,63,0.26); }
.c-breaker { --accent: #5fb0d8; --glow: rgba(95,176,216,0.26); }
.c-mouse   { --accent: #c9a24b; --glow: rgba(201,162,75,0.26); }
.c-fish    { --accent: #5aa0e0; --glow: rgba(90,160,224,0.26); }
.c-firefly { --accent: #b6f05a; --glow: rgba(182,240,90,0.26); }
