/* ==========================================================================
   Rocky Fox — site styles
   Palette and type mirror the printed resume: warm paper, charcoal, mustard.
   ========================================================================== */

:root {
  --bg: #f1efea;
  --bg-warm: #f3e6d8;
  --surface: #faf8f4;
  --ink: #262825;
  --ink-2: #474944;
  --muted: #666862;
  --line: rgba(38, 40, 37, 0.14);
  --panel: #2b2d2a;
  --panel-2: #353733;
  --panel-ink: #f1efea;
  --panel-muted: #bcbab3;
  --panel-line: rgba(241, 239, 234, 0.14);
  --accent: #e9b45a;

  --radius-xl: 40px;
  --radius-lg: 28px;
  --radius: 18px;
  --radius-sm: 12px;

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1200px;
  --section: clamp(72px, 11vw, 144px);

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161715;
    --bg-warm: #1c1915;
    --surface: #1f201e;
    --ink: #efece6;
    --ink-2: #cfccc5;
    --muted: #a09d96;
    --line: rgba(239, 236, 230, 0.13);
    --panel: #242623;
    --panel-2: #2e302c;
    --panel-ink: #efece6;
    --panel-muted: #b3b0a9;
    --panel-line: rgba(239, 236, 230, 0.12);
    --accent: #edbe6a;
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  font-family: var(--font);
  font-optical-sizing: auto;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--bg) linear-gradient(180deg, var(--bg) 0%, var(--bg) 55%, var(--bg-warm) 100%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; }

a { color: inherit; }

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--accent); color: #1d1e1b; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--panel);
  color: var(--panel-ink);
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus { top: 16px; }

.nowrap { white-space: nowrap; }

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Buttons & links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 600 15px/1 var(--font);
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn svg { width: 18px; height: 18px; flex: none; }

.btn-accent { background: var(--accent); color: #1d1e1b; }
.btn-accent:hover { background: #f1c575; }

.btn-ghost-dark { border-color: var(--panel-line); color: var(--panel-ink); }
.btn-ghost-dark:hover { border-color: var(--panel-muted); }

.btn-ink { background: var(--ink); color: var(--bg); }
.btn-ink:hover { background: var(--ink-2); }

.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }

.text-link {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 4px;
  text-decoration-thickness: 1.5px;
  transition: text-decoration-color 0.2s var(--ease);
}
.text-link:hover { text-decoration-color: var(--accent); }

/* ---------- Nav ---------- */

.site-nav {
  position: sticky;
  top: 12px;
  z-index: 50;
  margin-top: 12px;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 8px 8px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset, 0 8px 24px -16px rgba(38, 40, 37, 0.35);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  font-size: 17px;
}
.wordmark .mark {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.nav-links a:hover { background: var(--line); color: var(--ink); }

@media (max-width: 720px) {
  .nav-links { display: none; }
}

/* ---------- Hero ---------- */

.hero {
  padding-top: clamp(40px, 7vw, 88px);
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "name"
    "photo"
    "intro";
  gap: clamp(20px, 3vw, 32px);
}

.hero-name { grid-area: name; }
.hero-photo { grid-area: photo; }
.hero-intro { grid-area: intro; }

.hero-name h1 {
  font-size: clamp(4.5rem, 27vw, 12.5rem);
  line-height: 0.84;
  letter-spacing: -0.06em;
  margin-left: -0.05em;
}

.hero-role {
  margin-top: clamp(16px, 2.4vw, 28px);
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  background: color-mix(in srgb, var(--surface) 60%, transparent);
}
.pill-link {
  text-decoration: none;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.pill-link:hover { border-color: var(--ink); color: var(--ink); }

.pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #58a55c;
  box-shadow: 0 0 0 3px color-mix(in srgb, #58a55c 25%, transparent);
}

.hero-photo {
  margin: 0;
  width: min(100%, 420px);
}
.hero-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 728 / 1065;
  object-fit: cover;
  border-radius: var(--radius-xl);
  background: var(--line);
}

.hero-intro {
  position: relative;
  display: grid;
  gap: 28px;
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--radius-xl);
  background: var(--panel);
  color: var(--panel-muted);
}

.quote-mark {
  width: 64px;
  height: auto;
  color: var(--accent);
}

.hero-intro h2 {
  color: var(--panel-ink);
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin-top: 16px;
}

.hero-intro p {
  margin-top: 16px;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.6;
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(300px, 400px) 1fr;
    grid-template-areas:
      "photo name"
      "photo intro";
    grid-template-rows: auto 1fr;
    column-gap: clamp(28px, 4vw, 56px);
    row-gap: 36px;
    align-items: end;
  }
  .hero-photo { width: 100%; align-self: stretch; }
  .hero-photo img { height: 100%; }
  .hero-name { align-self: end; }
  .hero-name h1 { font-size: clamp(7rem, 13.5vw, 12.5rem); }
  .hero-intro {
    align-self: stretch;
    grid-template-columns: auto 1fr;
    column-gap: 36px;
    align-items: start;
  }
  .hero-intro .quote-mark { margin-top: 6px; }
}

/* ---------- Section scaffolding ---------- */

.section { padding-top: var(--section); }

.section-head {
  display: grid;
  gap: 16px;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.section-head h2 {
  font-size: clamp(2.5rem, 6.4vw, 5rem);
  letter-spacing: -0.05em;
  line-height: 0.95;
}
.section-head p {
  max-width: 44ch;
  color: var(--muted);
  font-size: 16px;
}

@media (min-width: 820px) {
  .section-head {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
  .section-head p { text-align: right; max-width: 36ch; }
}

/* ---------- Impact stats ---------- */

.stats-title { margin-bottom: 20px; }

.stats {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 20px 8px 0;
  border-bottom: 1px solid var(--line);
}
.stat:nth-child(odd) { border-right: 1px solid var(--line); }
.stat:nth-child(even) { padding-left: 20px; }

.stat-value {
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 650;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.stat-value small {
  font-size: 0.5em;
  letter-spacing: -0.02em;
  margin-left: 2px;
}

.stat-label {
  font-size: 15px;
  line-height: 1.45;
  color: var(--muted);
  padding-bottom: 20px;
  max-width: 24ch;
}

@media (min-width: 900px) {
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
  .stat { border-bottom: 0; padding: 32px 24px 12px; }
  .stat:nth-child(odd) { border-right: 0; }
  .stat + .stat { border-left: 1px solid var(--line); }
  .stat:first-child { padding-left: 0; }
}

/* ---------- Featured project ---------- */

.feature {
  display: grid;
  gap: clamp(28px, 4vw, 48px);
  padding: clamp(24px, 4vw, 48px);
  border-radius: var(--radius-xl);
  background: var(--panel);
  color: var(--panel-muted);
  overflow: hidden;
}

.feature-body { display: flex; flex-direction: column; gap: 20px; }

.feature-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}
.feature .eyebrow { color: var(--panel-muted); }

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--panel-line);
  font-size: 13px;
  font-weight: 600;
  color: var(--panel-ink);
}
.status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.feature h3 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  letter-spacing: -0.045em;
  color: var(--panel-ink);
}

.feature-lede {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--panel-ink);
  max-width: 44ch;
}

.checks { display: grid; gap: 12px; }
.checks li {
  position: relative;
  padding-left: 30px;
  line-height: 1.5;
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 18%, transparent)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.5l2.6 2.5L13 6.5' fill='none' stroke='%23e9b45a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 18px no-repeat;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--line);
  color: var(--ink-2);
}
.feature .tag { border-color: var(--panel-line); color: var(--panel-muted); }

.feature-actions { margin-top: 4px; }

.feature-art {
  position: relative;
  min-height: 320px;
  border-radius: var(--radius-lg);
  background: radial-gradient(120% 90% at 15% 0%, #1c2b4d 0%, #0e1526 55%, #0a0f1a 100%);
  overflow: hidden;
  isolation: isolate;
}

.shot {
  position: absolute;
  height: auto;
  max-width: none;
  background: #0b1020;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.75);
}
.shot-desktop {
  left: 24px;
  top: 28px;
  width: auto;
  height: 76%;
  aspect-ratio: 1440 / 900;
  border-radius: 12px;
}
.shot-phone {
  right: 18px;
  bottom: 0;
  transform: translateY(9%); /* crop just below Navigate / Log visit */
  width: 34%;
  max-width: 190px;
  border: 4px solid #1c2233;
  border-radius: 26px;
}

.art-chip {
  position: absolute;
  left: 20px;
  bottom: 20px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--panel-line);
  color: var(--panel-ink);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.5);
}
.art-chip span { color: var(--panel-muted); font-weight: 500; }
.art-chip .ok {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #1d1e1b;
  font-size: 11px;
}
@media (max-width: 560px) {
  .art-chip { display: none; }
}

@media (min-width: 900px) {
  .feature { grid-template-columns: 1.05fr 1fr; align-items: stretch; }
  .feature-art { min-height: 440px; }
}

/* ---------- Work grid ---------- */

.subhead {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  margin: clamp(56px, 8vw, 96px) 0 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.subhead h3 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  letter-spacing: -0.035em;
}
.subhead p { color: var(--muted); font-size: 15px; }

.work-grid {
  display: grid;
  gap: clamp(28px, 3vw, 40px) clamp(20px, 2.4vw, 32px);
}
@media (min-width: 760px) {
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.work-card { display: flex; flex-direction: column; gap: 18px; }

.work-media {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--panel);
}
.work-media video,
.work-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.work-media.contain video { object-fit: contain; object-position: top center; }
.work-card:hover .work-media video { transform: scale(1.02); }
.work-media.contain video,
.work-card:hover .work-media.contain video { transform: none; }

.media-badge {
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(29, 30, 27, 0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #f1efea;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.work-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.work-row h4 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  letter-spacing: -0.03em;
}
.work-metric {
  flex: none;
  text-align: right;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.05;
}
.work-metric span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
}
.work-card p { color: var(--ink-2); max-width: 52ch; }
a.work-media { display: block; }
.work-media img { object-position: top left; }
.work-media img ~ .media-badge { top: auto; bottom: 14px; }
.work-card:hover .work-media img { transform: scale(1.02); }

.work-link {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-top: 4px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  transition: text-decoration-color 0.2s var(--ease);
}
.work-link:hover { text-decoration-color: var(--accent); }
.work-link svg { width: 16px; height: 16px; }

/* ---------- Experience ---------- */

.roles {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ink);
}

.role {
  display: grid;
  gap: 10px 32px;
  padding: clamp(24px, 3vw, 36px) 0;
  border-bottom: 1px solid var(--line);
}

.role-when {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.role-who h3 {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  letter-spacing: -0.035em;
}
.role-link {
  color: inherit;
  text-decoration: none;
}
.role-link span { color: var(--muted); font-weight: 500; }
.role-link:hover {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.role-who p {
  margin-top: 6px;
  font-weight: 600;
  color: var(--ink-2);
}

.role-what { display: grid; gap: 12px; color: var(--ink-2); }
.role-what ul { display: grid; gap: 8px; }
.role-what li {
  position: relative;
  padding-left: 18px;
}
.role-what li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.role-what strong { color: var(--ink); font-weight: 700; }
.role-note { color: var(--muted); font-size: 15px; }

@media (min-width: 900px) {
  .role {
    grid-template-columns: 170px minmax(0, 1fr) minmax(0, 1.35fr);
    align-items: start;
  }
  .role-when { padding-top: 8px; }
}

/* ---------- Toolkit & education ---------- */

.about-grid {
  display: grid;
  gap: clamp(20px, 2.4vw, 32px);
}
@media (min-width: 900px) {
  .about-grid { grid-template-columns: 1.6fr 1fr; }
}

.card {
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}
.card h3 {
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  letter-spacing: -0.035em;
  margin-bottom: 24px;
}

.skill-groups {
  margin: 0;
  display: grid;
  gap: 24px 32px;
}
@media (min-width: 560px) {
  .skill-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.skill-groups dt { margin-bottom: 8px; }
.skill-groups dd {
  margin: 0;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.55;
}

.edu { display: grid; gap: 20px; }
.edu-item + .edu-item { padding-top: 20px; border-top: 1px solid var(--line); }
.edu-item h4 {
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.edu-item p { color: var(--muted); margin-top: 4px; }

/* ---------- Contact ---------- */

.contact {
  position: relative;
  display: grid;
  gap: 32px;
  padding: clamp(32px, 6vw, 80px);
  border-radius: var(--radius-xl);
  background: var(--panel);
  color: var(--panel-muted);
  overflow: hidden;
}
.contact .eyebrow { color: var(--panel-muted); }
.contact h2 {
  color: var(--panel-ink);
  font-size: clamp(2.25rem, 6vw, 4.75rem);
  letter-spacing: -0.05em;
  line-height: 0.98;
  max-width: 14ch;
  margin-top: 16px;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  max-width: 100%;
  color: var(--accent);
  font-size: clamp(1.25rem, 4vw, 2.5rem);
  font-weight: 650;
  letter-spacing: -0.035em;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.contact-email svg {
  width: 1.1em;
  height: 1.1em;
  flex: none;
  transition: transform 0.25s var(--ease);
}
.contact-email:hover svg { transform: translateX(6px); }
.contact-email span {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  transition: background-size 0.3s var(--ease);
}
.contact-email:hover span { background-size: 100% 2px; }

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Footer ---------- */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 40px;
  font-size: 14px;
  color: var(--muted);
}
.site-footer a {
  color: var(--ink-2);
  text-underline-offset: 3px;
}
.site-footer a:hover { color: var(--ink); }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

/* ---------- Playground (games index) ---------- */

.section.page-top { padding-top: clamp(40px, 7vw, 88px); }

.page-title {
  font-size: clamp(3rem, 9vw, 6.5rem);
  letter-spacing: -0.055em;
  line-height: 0.9;
}

.game-grid {
  display: grid;
  gap: 16px;
}
@media (min-width: 640px) { .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.game-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 200px;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  text-decoration: none;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.game-card:hover { transform: translateY(-3px); border-color: var(--ink); }
.game-card .num {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.game-card h3 {
  margin-top: auto;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
}
.game-card h3 span { color: var(--muted); font-weight: 500; }
.game-card p { color: var(--muted); font-size: 15px; }

/* ---------- Motion ---------- */

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 22%;
    }
    @keyframes reveal {
      from { opacity: 0; transform: translateY(28px); }
      to { opacity: 1; transform: none; }
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
