/* Palette and type from indiegames.wtf */
:root {
  --bg-primary: #0a0a0b;
  --bg-secondary: #111113;
  --bg-elevated: #18181b;
  --text-primary: #fafafa;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --accent: #f90465;
  --accent-light: #fb3d8a;
  --accent-glow: rgba(249, 4, 101, 0.4);
  --border: rgba(255, 255, 255, 0.08);
  --hot: var(--accent);
  --slop: #a1a1aa;
  --gradient-card: linear-gradient(180deg, transparent 0%, rgba(10, 10, 11, 0.4) 50%, rgba(10, 10, 11, 0.95) 100%);
  --font-display: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Instrument Sans", -apple-system, system-ui, sans-serif;
  --radius: 12px;
  color-scheme: dark;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(249, 4, 101, 0.14), transparent 70%),
    var(--bg-primary);
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Film grain, as on the indiegames.wtf hero */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body > * { position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
main { flex: 1; width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.hot { color: var(--hot); }
.slop { color: var(--slop); }

.label {
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; color: var(--text-secondary);
}

/* ---------- nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 32px;
  padding: 18px 40px;
  background: rgba(10, 10, 11, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav__logo {
  font-family: var(--font-display); font-weight: 800; font-size: 1.6rem;
  letter-spacing: -0.02em; line-height: 1; white-space: nowrap;
}
.nav__logo em { font-style: normal; color: var(--accent); }
.nav__brand { display: flex; flex-direction: column; gap: 4px; }
.nav__by {
  font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; line-height: 1;
  color: var(--text-muted); transition: color 0.2s ease;
}
.nav__by strong { font-family: var(--font-display); font-weight: 800; color: var(--text-secondary); letter-spacing: 0.5px; transition: color 0.2s ease; }
.nav__by:hover, .nav__by:hover strong { color: var(--accent); }
.nav__links { display: flex; gap: 28px; list-style: none; }
.nav__links a {
  color: var(--text-secondary); font-size: 14px; letter-spacing: 1px; text-transform: uppercase;
  transition: color 0.2s ease;
}
.nav__links a:hover, .nav__links a.active { color: var(--text-primary); }
.nav__links a.active { box-shadow: 0 2px 0 var(--accent); }
.nav__links a.nav__about {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2); font-family: var(--font-display); font-weight: 800;
  font-size: 13px; letter-spacing: 0; line-height: 1;
}
.nav__links a.nav__about:hover, .nav__links a.nav__about.active { border-color: var(--accent); color: var(--accent); box-shadow: none; }
.nav__links { align-items: center; }
.search { margin-left: auto; flex: 0 1 260px; }
.search input {
  width: 100%; padding: 9px 16px; border-radius: 100px;
  border: 1px solid var(--border); background: var(--bg-elevated);
  color: var(--text-primary); font: inherit; font-size: 14px; outline: none;
  transition: border-color 0.2s ease;
}
.search input::placeholder { color: var(--text-muted); }
.search input:focus { border-color: var(--accent); }

.search--page { display: none; }

@media (max-width: 720px) {
  .nav {
    padding: 12px 16px; gap: 16px; justify-content: space-between;
    padding-top: max(12px, env(safe-area-inset-top));
  }
  .nav__logo { font-size: 1.3rem; }
  .nav__by { font-size: 9px; }
  .nav__links { gap: 18px; }
  .nav__links a { font-size: 13px; }
  .nav .search { display: none; }
  .search--page { display: block; max-width: none; margin: 0 0 20px; }
}

/* ---------- footer */
.footer {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  max-width: 1100px; width: 100%; margin: 48px auto 0; padding: 32px 20px;
  border-top: 1px solid var(--border); color: var(--text-muted); font-size: 13px;
}
.footer a { color: var(--text-secondary); transition: color 0.2s ease; }
.footer a:hover { color: var(--accent); }
.footer strong { font-family: var(--font-display); font-weight: 800; color: var(--text-primary); }

/* ---------- swipe page: full-viewport hero, no page scroll */
/* On phones 100vh includes the space behind the browser toolbars, so the page would be
   taller than what's visible (scrollbars, vote buttons hidden). --app-height is the real
   visible height, measured by swipe.js; 100dvh is the fallback before JS runs. */
html:has(> body.page-swipe) { height: 100%; overflow: hidden; }
body.page-swipe {
  height: 100vh; height: 100dvh; height: var(--app-height, 100dvh);
  min-height: 0; overflow: hidden; overscroll-behavior: none; background: var(--bg-primary);
}
body.page-swipe main { display: flex; flex-direction: column; min-height: 0; max-width: none; padding: 0; }
body.page-swipe .footer { display: none; }
body.page-swipe .nav { background: linear-gradient(to bottom, rgba(10, 10, 11, 0.9), transparent); border-bottom: 0; backdrop-filter: none; }

/* Blurred art of the current game behind everything, like the indiegames.wtf hero video. */
.hero-bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero-bg img {
  position: absolute; inset: -10%; width: 120%; height: 120%; object-fit: cover;
  filter: blur(48px) brightness(0.45) saturate(1.3);
  opacity: 0; transition: opacity 0.8s ease;
}
.hero-bg img.on { opacity: 1; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 45%, transparent 0%, rgba(10, 10, 11, 0.55) 100%),
    linear-gradient(180deg, rgba(10, 10, 11, 0.5) 0%, transparent 30%, rgba(10, 10, 11, 0.85) 100%);
}

.swipe {
  position: relative; z-index: 1;   /* above .hero-bg */
  /* Clip cards flying off-screen so they can never widen the page (iOS Safari scrollbars) */
  overflow: hidden; overflow: clip;
  flex: 1; min-height: 0; width: 100%;
  display: grid;
  grid-template-columns: 1fr minmax(0, 480px) 1fr;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  column-gap: 56px;
  padding: 8px 40px 28px;
}
.hero-meta {
  grid-column: 2; grid-row: 1; justify-self: center;
  display: flex; align-items: center; gap: 12px; margin-bottom: 18px;
  font-size: 12px; text-transform: uppercase; letter-spacing: 2px; color: var(--text-secondary);
  white-space: nowrap;
}
.hero-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
.progress { grid-column: 2; grid-row: 2; }
.stack {
  grid-column: 2; grid-row: 3; align-self: center;
  position: relative; width: 100%; height: 100%; max-height: 680px; min-height: 0;
}
.controls { display: contents; }
.vote-slop { grid-column: 1; grid-row: 3; justify-self: end; align-self: center; }
.vote-hot { grid-column: 3; grid-row: 3; justify-self: start; align-self: center; }
.hint { grid-column: 2; grid-row: 4; }
.empty { color: var(--text-muted); text-align: center; padding-top: 40%; }

.card {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  container-type: inline-size;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 24px 48px -16px rgba(0, 0, 0, 0.75);
  touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  transition: transform 0.35s ease, opacity 0.35s ease, filter 0.35s ease;
}
/* The pile: the top card is straight, the ones waiting behind it are slightly
   tilted (--tilt is set per card in swipe.js) and dimmed, so their edges peek out
   like a deck. When the top card leaves, the next one straightens up. */
.card:not(.top) {
  transform: rotate(var(--tilt, 0deg)) scale(0.985);
  filter: brightness(0.65);
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.7);
}
.card.buried { opacity: 0; }
.card.dragging { transition: none; cursor: grabbing; }
.card.leaving { transition: transform 0.4s ease-in, opacity 0.4s ease-in; opacity: 0; pointer-events: none; }

/* 16:9 at minimum; on tall cards the image grows (up to ~10:7) instead of leaving
   empty space under the text. cqw = card width. */
.media {
  position: relative; background: #000; cursor: pointer;
  flex: 1 1 56.25cqw; min-height: 56.25cqw; max-height: 70cqw;
}
.media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-shade { position: absolute; inset: 0; background: var(--gradient-card); pointer-events: none; }

.media-tags {
  position: absolute; left: 14px; right: 14px; bottom: 12px;
  display: flex; flex-wrap: wrap; gap: 6px; list-style: none;
}
.media-tags li {
  padding: 4px 10px; border-radius: 4px;
  background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px;
}

/* Story-style bars: shimmer = loading, brighter = loaded, white fill = time on screen. */
.dots { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; gap: 4px; z-index: 2; }
.dots span {
  position: relative; flex: 1; height: 3px; border-radius: 2px; overflow: hidden;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.12) 25%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0.12) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s linear infinite;
}
.dots span.loaded { background: rgba(255, 255, 255, 0.35); animation: none; }
.dots span.failed { background: rgba(255, 255, 255, 0.1); animation: none; }
.dots span i { position: absolute; inset: 0 auto 0 0; width: 0; background: #fff; }
.dots span.done i { width: 100%; }
.dots span.active i { animation: fillbar 3s linear forwards; }   /* 3s = SLIDE_MS in swipe.js */
.card.dragging .dots span.active i { animation-play-state: paused; }

.media.waiting::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 34px; height: 34px; margin: -17px;
  border: 3px solid rgba(255, 255, 255, 0.2); border-top-color: var(--accent); border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.stamp {
  position: absolute; top: 34px; z-index: 3;
  padding: 6px 16px; border-radius: 6px;
  font-family: var(--font-display); font-weight: 800; font-size: 30px; letter-spacing: 0.06em;
  opacity: 0; pointer-events: none;
}
.stamp-hot {
  left: 18px; transform: rotate(-12deg);
  background: var(--accent); color: #fff; box-shadow: 0 0 40px var(--accent-glow);
}
.stamp-slop {
  right: 18px; transform: rotate(12deg);
  background: rgba(10, 10, 11, 0.7); color: var(--slop); border: 3px solid var(--slop);
}

.info { padding: 18px 20px 20px; overflow: hidden; flex: 1 0 auto; display: flex; flex-direction: column; }
.info h2 {
  font-family: var(--font-display); font-weight: 800; font-size: 1.45rem;
  line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 8px;
}
.meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px;
  font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-secondary);
}
.meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
.desc {
  margin: 14px 0 16px; font-size: 15px; color: var(--text-secondary);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; line-clamp: 5; overflow: hidden;
}

.steam-button {
  display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; margin-top: auto;
  padding: 9px 18px; border-radius: 4px;
  background: #171a21; color: #c7d5e0; border: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 600; font-size: 14px;
  transition: all 0.2s ease;
}
.steam-button:hover { background: #2a475e; color: #fff; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); }

.vote {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: none; border: 0; cursor: pointer;
}
.vote-circle {
  display: grid; place-items: center; width: 88px; height: 88px; border-radius: 50%;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.vote-circle svg { width: 34px; height: 34px; }
.vote-hot .vote-circle { background: var(--accent); color: #fff; box-shadow: 0 0 32px var(--accent-glow); }
.vote-hot:hover .vote-circle { background: var(--accent-light); box-shadow: 0 0 48px var(--accent-glow); }
.vote-slop .vote-circle { background: var(--bg-elevated); color: var(--slop); border: 1px solid rgba(255, 255, 255, 0.14); }
.vote-slop:hover .vote-circle { background: #222226; color: var(--text-primary); }
.vote:active .vote-circle { transform: scale(0.92); }

/* Voting is locked for 1.5 s on each new card (MIN_VIEW_MS in swipe.js):
   the buttons fade back in as the lock runs out. */
.swipe.locked .vote { cursor: not-allowed; }
.swipe.locked .vote-circle { animation: vote-unlock 1.5s ease-in forwards; }
.swipe.locked .vote:active .vote-circle { transform: none; }
@keyframes vote-unlock {
  0%, 85% { opacity: 0.3; filter: grayscale(1); box-shadow: none; }
  100% { opacity: 1; filter: none; }
}
.card.shake { animation: shake 0.35s ease; }
@keyframes shake {
  20%, 60% { translate: -8px 0; }
  40%, 80% { translate: 8px 0; }
}
.vote .label { letter-spacing: 2px; }
.vote-hot .label { color: var(--accent); }

.hint { margin-top: 18px; color: var(--text-muted); font-size: 13px; text-align: center; }
@media (hover: none) { .hint { display: none; } }
.hint kbd {
  font-family: inherit; font-size: 11px; padding: 1px 6px; border-radius: 4px;
  background: var(--bg-elevated); border: 1px solid var(--border); color: var(--text-secondary);
}

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 30; transform: translate(-50%, 20px);
  max-width: calc(100% - 32px); padding: 10px 20px; border-radius: 100px;
  background: var(--bg-elevated); border: 1px solid var(--border); font-size: 14px;
  opacity: 0; transition: opacity 0.2s, transform 0.2s; pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.warn { border-color: #ffa94d; color: #ffd8a8; box-shadow: 0 0 24px rgba(255, 169, 77, 0.3); }
.toast.warn.show { animation: shake 0.35s ease; }

/* On phones the vote buttons live at the bottom: show toasts at the top instead */
@media (max-width: 900px) {
  .toast {
    bottom: auto; top: calc(max(12px, env(safe-area-inset-top)) + 64px); transform: translate(-50%, -20px);
    width: calc(100% - 24px); border-radius: 12px; text-align: center;
  }
}

/* Vote particles (fx.js): above the cards, below the achievement popup */
.fx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 15; pointer-events: none; }

/* ---------- achievements: a discreet line with only the current goal */
.progress { width: 100%; margin-bottom: 16px; opacity: 0.6; transition: opacity 0.3s ease; }
.progress:hover { opacity: 1; }
.progress[hidden] { display: none; }
.progress-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.progress-head .label { display: flex; align-items: center; font-size: 11px; letter-spacing: 1.5px; color: var(--text-secondary); }
.progress-count { font-size: 11px; font-weight: 600; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.progress-track { height: 2px; border-radius: 1px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.progress-fill { height: 100%; width: 0; background: var(--accent); transition: width 0.4s ease; }
/* Phosphor icons from static/icons.svg; they take the text colour */
.icon { width: 1em; height: 1em; flex: none; vertical-align: -0.125em; }
.icon-inline { width: 1.4em; height: 1.4em; margin-right: 6px; color: var(--accent); }
.tag--icon { display: inline-flex; align-items: center; gap: 6px; }
.tag--icon .icon { width: 16px; height: 16px; }

.unlock { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 16px; pointer-events: none; }
.unlock[hidden] { display: none; }
.unlock-box {
  max-width: 360px; padding: 32px 36px; text-align: center;
  background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 0 0 100vmax rgba(10, 10, 11, 0.6), 0 0 80px var(--accent-glow);
}
.unlock.show .unlock-box { animation: unlock-pop 0.5s cubic-bezier(0.2, 1.4, 0.4, 1); }
.unlock-icon { display: grid; place-items: center; margin-bottom: 16px; color: var(--accent); }
.unlock-icon .icon { width: 72px; height: 72px; filter: drop-shadow(0 0 18px var(--accent-glow)); }
.unlock-kicker {
  display: inline-block; padding: 6px 12px; border-radius: 4px; background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 2px;
}
.unlock-box h2 { font-family: var(--font-display); font-weight: 800; font-size: 1.8rem; letter-spacing: -0.02em; margin: 14px 0 6px; }
.unlock-box p:last-child { color: var(--text-secondary); }

/* ---------- swipe page on phones and narrow windows: app-like column */
@media (max-width: 900px) {
  .swipe {
    display: flex; flex-direction: column; align-items: stretch;
    padding: 4px 12px max(14px, env(safe-area-inset-bottom));
  }
  /* No tilted pile on phones: only the top card is visible, the next one fades in */
  .card:not(.top) { transform: none; opacity: 0; box-shadow: none; }
  .hero-meta { display: none; }
  .progress { margin-bottom: 12px; }
  .stack { flex: 1; width: 100%; max-width: 480px; max-height: none; align-self: center; }
  .controls { display: flex; justify-content: center; align-items: center; gap: 48px; margin-top: 14px; }
  .vote-circle { width: 68px; height: 68px; }
  .vote-circle svg { width: 28px; height: 28px; }
  .vote { gap: 6px; }
  .vote .label { font-size: 11px; }
  .hint { margin-top: 10px; }
}

@media (max-height: 760px) {
  .info { padding: 14px 16px 16px; }
  .info h2 { font-size: 1.25rem; }
  .desc { -webkit-line-clamp: 3; line-clamp: 3; margin: 10px 0 12px; }
  .vote-circle { width: 58px; height: 58px; }
  .vote .label { display: none; }
  .controls { margin-top: 10px; }
}

@media (max-height: 620px) {
  .desc { display: none; }
}

/* ---------- first-visit intro (above the Turnstile check) */
/* Moved to <body> by swipe.js so it can sit above the sticky nav (z-index 50).
   Flex + margin:auto centres the box, but lets it scroll from the top when it's taller than the screen. */
.intro {
  position: fixed; inset: 0; z-index: 60; display: flex; padding: 16px;
  background: rgba(10, 10, 11, 0.75); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  overflow-y: auto;
}
.intro[hidden] { display: none; }
.intro-box {
  position: relative; width: 100%; max-width: 480px; margin: auto; padding: 36px 36px 28px;
  background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 80px rgba(249, 4, 101, 0.12);
  animation: intro-in 0.45s cubic-bezier(0.2, 1.2, 0.4, 1);
}
.intro-close {
  position: absolute; top: 14px; right: 14px; display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--bg-elevated); color: var(--text-secondary); cursor: pointer; transition: all 0.2s ease;
}
.intro-close:hover { color: var(--text-primary); border-color: var(--accent); }
.intro-box > .label { padding-right: 44px; }   /* keep clear of the close button */
.intro-close svg { width: 16px; height: 16px; }
.intro-logo {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(2.4rem, 9vw, 3.2rem);
  letter-spacing: -0.03em; line-height: 1; margin: 10px 0 18px;
}
.intro-logo em { font-style: normal; color: var(--accent); }
.intro-text { color: var(--text-secondary); margin-bottom: 12px; }
.intro-text strong { color: var(--text-primary); font-weight: 600; }
.intro-text em { font-style: normal; color: var(--accent); }
.intro-how { list-style: none; display: flex; flex-direction: column; gap: 10px; margin: 20px 0 26px; }
.intro-how li { display: flex; align-items: center; gap: 14px; color: var(--text-secondary); font-size: 15px; }
.intro-how strong { color: var(--text-primary); font-weight: 600; }
.intro-ico {
  display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg-elevated); border: 1px solid rgba(255, 255, 255, 0.12); color: var(--slop);
}
.intro-ico svg { width: 16px; height: 16px; }
.intro-ico--hot { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 0 18px var(--accent-glow); }
.intro-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.intro-actions .cta { border: 0; cursor: pointer; font-family: inherit; }
.intro-more { color: var(--text-secondary); font-size: 14px; transition: color 0.2s ease; }
.intro-more:hover { color: var(--accent); }
.intro-by { margin-top: 24px; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-muted); }
.intro-by strong { font-family: var(--font-display); font-weight: 800; color: var(--text-secondary); letter-spacing: 0.5px; }
@keyframes intro-in { from { transform: translateY(24px) scale(0.96); opacity: 0; } to { transform: none; opacity: 1; } }

@media (max-width: 480px) {
  .intro-box { padding: 28px 22px 22px; }
}

/* ---------- Turnstile overlay */
.verify { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 16px; background: rgba(10, 10, 11, 0.8); backdrop-filter: blur(8px); }
.verify[hidden] { display: none; }
.verify-box {
  max-width: 400px; padding: 32px; text-align: center;
  background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius);
}
.verify-box h2 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 8px; }
.verify-box p { color: var(--text-secondary); margin-bottom: 20px; }
#turnstile { display: flex; justify-content: center; min-height: 65px; }
.verify-box .verify-error { color: var(--accent); min-height: 1.5em; margin: 12px 0 0; }

/* ---------- shared page bits */
.page { padding: 40px 0; }
.page-title {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 24px;
}
.page-title em { font-style: normal; color: var(--accent); }

.tag {
  display: inline-block; padding: 7px 16px; border-radius: 100px;
  background: var(--bg-elevated); border: 1px solid var(--border);
  font-size: 13px; color: var(--text-secondary);
  transition: all 0.2s ease;
}
a.tag:hover { border-color: var(--accent); color: var(--accent); }
.tag.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }

/* hot/slop ratio bar */
.ratio { display: block; height: 4px; border-radius: 2px; background: #3f3f46; overflow: hidden; }
.ratio i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-light)); }

/* ---------- rankings */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.ranking { list-style: none; }
.ranking li {
  display: grid; grid-template-columns: 56px 1fr 200px; align-items: center; gap: 20px;
  padding: 14px 0; border-bottom: 1px solid var(--border);
}
.rank {
  font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; letter-spacing: -0.02em;
  color: var(--text-muted); text-align: right; font-variant-numeric: tabular-nums;
}
.ranking li:nth-child(-n+3) .rank { color: var(--accent); }
.row { display: flex; align-items: center; gap: 16px; min-width: 0; }
.row img { width: 140px; aspect-ratio: 616 / 353; object-fit: cover; border-radius: 6px; flex: none; transition: transform 0.3s ease; }
.row:hover img { transform: scale(1.04); }
.row-text { display: flex; flex-direction: column; min-width: 0; }
.row-text strong {
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color 0.2s ease;
}
.row:hover strong { color: var(--accent); }
.row-text small { color: var(--text-muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.result { display: flex; flex-direction: column; gap: 6px; }
.result small { color: var(--text-muted); font-size: 13px; }
.result b { font-family: var(--font-display); font-weight: 800; }

.pager { display: flex; justify-content: space-between; padding: 28px 0 0; }

@media (max-width: 640px) {
  .ranking li { grid-template-columns: 32px 1fr; gap: 12px; }
  .rank { font-size: 1.1rem; }
  .result { grid-column: 2; }
  .row img { width: 92px; }
}

/* ---------- game page */
.game { max-width: 760px; margin: 0 auto; }
.game-hero { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; background: var(--bg-secondary); }
.game-hero img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(1.1); }
.game-hero::after { content: ""; position: absolute; inset: 0; background: var(--gradient-card); }
.game-hero-content { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 28px; }
.game-hero-content .page-title { margin-bottom: 10px; text-shadow: 0 4px 60px rgba(0, 0, 0, 0.5); }

.verdict {
  margin: 28px 0; padding: 24px 28px; border-radius: 8px;
  background: var(--bg-secondary); border-left: 3px solid var(--accent);
}
.verdict-split { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.verdict-split span { font-family: var(--font-display); font-weight: 800; font-size: 2rem; letter-spacing: -0.03em; }
.verdict .ratio { height: 8px; border-radius: 4px; }
.verdict small { display: block; margin-top: 10px; color: var(--text-muted); }

.lead { font-size: 1.15rem; line-height: 1.75; color: var(--text-primary); padding-left: 20px; border-left: 2px solid var(--accent); margin: 24px 0; }
.links { display: flex; gap: 12px; flex-wrap: wrap; }
.links .steam-button { margin: 0; }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin-top: 32px; }
.shots img { width: 100%; border-radius: 8px; display: block; }

@media (max-width: 640px) {
  .game-hero-content { padding: 16px; }
  .verdict-split span { font-size: 1.5rem; }
}

/* ---------- about page, article style from indiegames.wtf */
.about { max-width: 720px; margin: 0 auto; }
.about p { color: var(--text-secondary); font-size: 1.05rem; line-height: 1.8; margin-bottom: 22px; }
.about p strong { color: var(--text-primary); font-weight: 600; }
.about p em { font-style: normal; color: var(--accent); }
.about .lead { color: var(--text-primary); margin: 8px 0 40px; }
.about .lead a { color: var(--accent); }
.about h2 {
  position: relative; font-family: var(--font-display); font-weight: 700; font-size: 1.5rem;
  letter-spacing: -0.02em; color: var(--text-primary); margin: 48px 0 18px;
}
.about h2::before {
  content: ""; position: absolute; left: -20px; top: 50%; transform: translateY(-50%);
  width: 4px; height: 60%; border-radius: 2px; background: var(--accent);
}
.about-cta { margin-top: 36px; align-items: center; }
.cta {
  display: inline-flex; align-items: center; padding: 11px 22px; border-radius: 4px;
  background: var(--accent); color: #fff; font-weight: 600; font-size: 14px;
  text-transform: uppercase; letter-spacing: 1.5px;
  box-shadow: 0 0 24px var(--accent-glow); transition: background 0.2s ease, transform 0.2s ease;
}
.cta:hover { background: var(--accent-light); transform: translateY(-2px); }
.small-print { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--border); }
.small-print h2 { font-size: 1rem; margin: 0 0 10px; }
.small-print h2::before { display: none; }
.small-print p { font-size: 14px; color: var(--text-muted); }

@media (max-width: 720px) {
  .about h2::before { left: -12px; }
}

/* ---------- animations */
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@keyframes fillbar { from { width: 0; } to { width: 100%; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes unlock-pop { from { transform: scale(0.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* The swipe effects are the point of this joke site: shown even with "reduce motion" on (owner's call). */

