/* Game developer portfolio — professional dark theme */
:root {
  --bg-deep: #0c0e12;
  --bg-surface: #13161d;
  --bg-card: #1a1e28;
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8eaef;
  --text-muted: #8b92a5;
  --accent: #3dd6c3;
  --accent-dim: rgba(61, 214, 195, 0.15);
  --accent-hover: #5ae8d6;
  --danger-soft: #f472b6;
  --radius: 12px;
  --radius-sm: 8px;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-display: "Outfit", var(--font-sans);
  --shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
  --max: 1100px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: var(--bg-deep);
  font-weight: 600;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 14, 18, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.logo:hover {
  color: var(--accent);
}

.nav {
  display: flex;
  gap: 1.75rem;
}

.nav a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9375rem;
}

.nav a:hover {
  color: var(--text);
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(1.5rem, 4vw, 2.25rem) 0 clamp(1.75rem, 5vw, 2.75rem);
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-layout {
  display: grid;
  gap: 1.25rem;
  align-items: center;
}

@media (min-width: 768px) {
  .hero-layout {
    grid-template-columns: minmax(240px, 300px) 1fr;
    gap: clamp(1.25rem, 3vw, 2rem);
    align-items: center;
  }
}

.hero-photo {
  justify-self: center;
}

@media (min-width: 768px) {
  .hero-photo {
    justify-self: start;
  }
}

.hero-photo-img {
  display: block;
  width: min(100%, 300px);
  max-width: 300px;
  height: auto;
  aspect-ratio: 3 / 4;
  max-height: 400px;
  object-fit: cover;
  object-position: center 20%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--bg-surface);
}

@media (min-width: 768px) {
  .hero-photo-img {
    width: 300px;
    height: 400px;
    max-height: 400px;
  }
}

.hero-copy {
  min-width: 0;
  box-sizing: border-box;
  width: min(100%, 700px);
  height: 300px;
  max-height: 300px;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.hero-glow {
  position: absolute;
  top: -15%;
  right: -8%;
  width: min(55vw, 380px);
  height: min(55vw, 380px);
  background: radial-gradient(
    circle,
    rgba(61, 214, 195, 0.1) 0%,
    transparent 68%
  );
  pointer-events: none;
}

.hero-role {
  margin: 0 0 0.35rem;
  font-size: clamp(0.9375rem, 1.6vw, 1.0625rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
  line-height: 1.35;
}

.hero-creds {
  margin: 0 0 0.65rem;
  font-size: clamp(0.8125rem, 1.35vw, 0.9375rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1.4;
}

.hero-title {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 2.875rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--text);
}

.hero-lead {
  margin: 0 0 1.25rem;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-deep);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--bg-deep);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: var(--text-muted);
  color: var(--text);
}

/* Sections */
.section {
  padding: clamp(3.5rem, 8vw, 5rem) 0;
}

.section-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.125rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-intro {
  margin: 0 0 2.5rem;
  max-width: 40rem;
  color: var(--text-muted);
}

.about {
  background: var(--bg-surface);
  border-block: 1px solid var(--border);
}

.about-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 720px) {
  .about-grid {
    grid-template-columns: 1.4fr 1fr;
    align-items: start;
  }
}

.about-copy {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}

.about-text {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.0625rem;
}

.about-tags {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.about-tags li {
  padding: 0.4rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
}

/* Full-width horizontal project strip (above Games) */
.project-strip-section {
  padding: clamp(2.5rem, 6vw, 3.75rem) 0;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
}

.project-strip-header {
  text-align: center;
  max-width: 36rem;
  margin-inline: auto;
  margin-bottom: 1.5rem;
}

.project-strip-eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.project-strip-title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.project-strip-sub {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.project-strip-bleed {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  position: relative;
}

.project-strip-bleed::before,
.project-strip-bleed::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: min(3rem, 8vw);
  z-index: 2;
  pointer-events: none;
}

.project-strip-bleed::before {
  left: 0;
  background: linear-gradient(
    to right,
    var(--bg-surface) 0%,
    transparent 100%
  );
}

.project-strip-bleed::after {
  right: 0;
  background: linear-gradient(
    to left,
    var(--bg-surface) 0%,
    transparent 100%
  );
}

.project-strip-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  scroll-padding-inline: clamp(1rem, 4vw, 2.5rem);
  scrollbar-width: thin;
  scrollbar-color: rgba(61, 214, 195, 0.35) transparent;
  padding-block: 0.25rem 0.75rem;
  outline: none;
}

.project-strip-scroll:focus-visible {
  box-shadow: inset 0 0 0 2px var(--accent);
  border-radius: var(--radius-sm);
}

.project-strip-scroll::-webkit-scrollbar {
  height: 7px;
}

.project-strip-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
  margin-inline: clamp(1rem, 4vw, 2.5rem);
}

.project-strip-scroll::-webkit-scrollbar-thumb {
  background: rgba(61, 214, 195, 0.28);
  border-radius: 999px;
}

.project-strip-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(61, 214, 195, 0.42);
}

.project-strip-track {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  width: max-content;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
  padding-bottom: 0.35rem;
}

.project-strip-item {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.project-strip-link {
  position: relative;
  display: block;
  width: 5.75rem;
  height: 5.75rem;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border);
  background: var(--bg-card);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.project-strip-link {
  -webkit-appearance: none;
  appearance: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
}

.project-strip-link:hover {
  border-color: rgba(61, 214, 195, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(61, 214, 195, 0.12);
}

.project-strip-link:focus-visible {
  border-color: var(--accent);
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.project-strip-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.project-strip-link:hover .project-strip-img,
.project-strip-link:focus-visible .project-strip-img {
  transform: scale(1.06);
}

.project-strip-caption {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem;
  text-align: center;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--text);
  background: rgba(12, 14, 18, 0.9);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.project-strip-link:hover .project-strip-caption,
.project-strip-link:focus-visible .project-strip-caption {
  opacity: 1;
}

.project-strip-section.is-empty {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .project-strip-link,
  .project-strip-img,
  .project-strip-caption {
    transition: none;
  }

  .project-strip-link:hover .project-strip-img,
  .project-strip-link:focus-visible .project-strip-img {
    transform: none;
  }

  .project-strip-link:hover {
    transform: none;
  }
}

/* Games — wider layout + up to 6 columns */
.games > .container {
  width: min(100% - 2rem, 1680px);
  max-width: 1680px;
}

.games .section-intro {
  max-width: 48rem;
}

/* Games grid — allow detail panels to overlap adjacent cells */
.games-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  overflow: visible;
}

.games {
  overflow: visible;
}

@media (min-width: 600px) {
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.35rem;
  }
}

@media (min-width: 768px) {
  .games-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
  }
}

@media (min-width: 960px) {
  .games-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.15rem;
  }

  .game-card-title-bar {
    padding: 0.65rem 0.75rem 0.7rem;
  }

  .game-title {
    font-size: clamp(0.875rem, 1.1vw, 1.125rem);
    line-height: 1.25;
  }

  .game-desc {
    font-size: 0.8125rem;
    line-height: 1.45;
  }

  .game-play {
    font-size: 0.8125rem;
  }
}

@media (min-width: 1120px) {
  .games-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 1.1rem;
  }
}

@media (min-width: 1320px) {
  .games-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
  }

  .game-card-title-bar {
    padding: 0.55rem 0.65rem 0.6rem;
  }

  .game-title {
    font-size: clamp(0.8125rem, 0.95vw, 1rem);
    line-height: 1.25;
  }

  .game-card-panel-inner {
    gap: 0.4rem;
    padding: 0.65rem 0.75rem 0.75rem;
  }

  .game-desc {
    font-size: 0.75rem;
    line-height: 1.45;
  }

  .game-play {
    font-size: 0.75rem;
  }

  .game-meta {
    font-size: 0.6875rem;
    gap: 0.25rem 0.5rem;
  }

  .game-card-panel .game-collection-list {
    max-height: none;
  }

  .game-collection-list {
    font-size: 0.6875rem;
    padding-left: 0.9rem;
  }

  .game-collection-label {
    font-size: 0.5625rem;
  }

  .game-badge {
    font-size: 0.5625rem;
    padding: 0.2rem 0.4rem;
  }
}

.game-card {
  position: relative;
  z-index: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: visible;
  box-shadow: var(--shadow);
  transition: border-color 0.22s ease, box-shadow 0.28s ease, z-index 0s;
  outline: none;
}

.game-card-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--bg-surface);
  overflow: hidden;
  border-radius: var(--radius);
  isolation: isolate;
}

.game-card-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.78) 0%,
    rgba(0, 0, 0, 0.4) 38%,
    rgba(0, 0, 0, 0.1) 68%,
    transparent 100%
  );
}

.game-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease, filter 0.28s ease;
}

.game-card-title-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 0.85rem 1.1rem 0.9rem;
}

.game-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: #f4f6fa;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85), 0 2px 24px rgba(0, 0, 0, 0.55),
    0 0 1px rgba(0, 0, 0, 1);
}

.game-title--panel {
  display: none;
  color: var(--text);
  text-shadow: none;
  font-size: 1.2rem;
  margin-bottom: 0.15rem;
}

/* Detail panel — hidden until hover on pointer devices */
.game-card-panel {
  display: none;
}

.game-card-panel-inner {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.game-card-panel-art {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  border-radius: var(--radius-sm);
  overflow: hidden;
  line-height: 0;
}

.game-card-panel-art img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(42vh, 18rem);
  object-fit: contain;
  object-position: center;
}

/* Pointer + tablet/desktop: floating detail card on hover */
@media (hover: hover) and (min-width: 768px) {
  .game-card:hover,
  .game-card:focus-within {
    z-index: 250;
    border-color: rgba(61, 214, 195, 0.45);
    box-shadow: 0 28px 64px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(61, 214, 195, 0.12);
  }

  .game-card:hover .game-card-thumb img,
  .game-card:focus-within .game-card-thumb img {
    transform: scale(1.03);
    filter: brightness(0.45);
  }

  .game-card-panel {
    display: block;
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    width: clamp(18rem, 165%, 26rem);
    max-height: min(88vh, 40rem);
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0;
    margin: 0;
    background: var(--bg-card);
    border: 1px solid rgba(61, 214, 195, 0.35);
    border-radius: var(--radius);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.65);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, -48%) scale(0.94);
    transition: opacity 0.22s ease, visibility 0.22s ease, transform 0.28s ease;
    scrollbar-width: thin;
    scrollbar-color: rgba(61, 214, 195, 0.35) transparent;
  }

  .game-card:hover .game-card-panel,
  .game-card:focus-within .game-card-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
  }

  .game-card-panel-inner {
    padding: 0.75rem 1rem 1rem;
  }

  .game-card-panel-art {
    margin: -0.75rem -1rem 0.5rem;
    border-radius: var(--radius) var(--radius) 0 0;
    max-height: min(50vh, 22rem);
  }

  .game-card-panel-art img {
    max-height: min(50vh, 22rem);
  }

  .game-title--panel {
    display: block;
  }

  .game-desc,
  .game-meta,
  .game-collection-list {
    text-shadow: none;
  }

  .game-desc {
    color: var(--text-muted);
  }

  .game-meta {
    color: var(--text-muted);
  }

  .game-collection-list {
    color: var(--text);
    max-height: none;
  }
}

.game-card-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.game-play {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}

.game-play::after {
  content: "→";
  font-size: 0.9em;
  transition: transform 0.2s;
}

.game-play:hover {
  color: var(--accent-hover);
}

.game-play:hover::after {
  transform: translateX(3px);
}

.game-badge {
  display: inline-block;
  padding: 0.25rem 0.55rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fbcfe8;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(244, 114, 182, 0.35);
  border-radius: 4px;
}

.game-badge--offline {
  color: #cbd5e1;
  border-color: rgba(148, 163, 184, 0.45);
  background: rgba(0, 0, 0, 0.5);
}

.game-collection-label {
  margin: 0;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

.game-collection-list {
  margin: 0;
  padding: 0 0 0 1.15rem;
  max-height: 10rem;
  overflow-y: auto;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: rgba(241, 243, 248, 0.95);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
  scrollbar-width: thin;
  scrollbar-color: rgba(61, 214, 195, 0.35) transparent;
}

.game-card--collection .game-card-panel-inner {
  gap: 0.45rem;
}

.game-desc {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: rgba(241, 243, 248, 0.92);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.75);
}

.game-meta {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
  font-size: 0.875rem;
  color: rgba(216, 222, 235, 0.9);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.65);
}

.game-meta li:not(:last-child)::after {
  content: "·";
  margin-left: 0.75rem;
  opacity: 0.5;
}

/* Touch / no hover: stack full details below the thumbnail */
@media (hover: none) {
  .game-card {
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
    border-radius: var(--radius);
  }

  .game-card-thumb {
    border-radius: var(--radius) var(--radius) 0 0;
  }

  .game-card-panel {
    display: block;
    position: static;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    width: 100%;
    max-height: none;
    overflow: visible;
    border: none;
    border-top: 1px solid var(--border);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: none;
    background: var(--bg-card);
  }

  .game-card-panel-inner {
    padding: 0 0 1rem;
  }

  .game-card-panel-art {
    margin: 0;
    border-radius: 0;
    max-height: none;
  }

  .game-card-panel-art img {
    max-height: min(50vh, 20rem);
    border-radius: 0;
  }

  .game-card-panel-inner > :not(.game-card-panel-art) {
    padding-inline: 1rem;
  }

  .game-title--panel {
    display: none;
  }

  .game-desc,
  .game-meta,
  .game-collection-list {
    text-shadow: none;
  }

  .game-desc {
    color: var(--text-muted);
  }

  .game-meta {
    color: var(--text-muted);
  }

  .game-collection-list {
    color: var(--text);
    max-height: none;
  }

  .game-card-thumb img {
    transform: none;
    filter: none;
  }
}

/* Narrow screens with a mouse: still stack (popover needs room) */
@media (hover: hover) and (max-width: 767px) {
  .game-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .game-card-thumb {
    border-radius: var(--radius) var(--radius) 0 0;
  }

  .game-card-panel {
    display: block;
    position: static;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    width: 100%;
    max-height: none;
    border: none;
    border-top: 1px solid var(--border);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: none;
    background: var(--bg-card);
  }

  .game-card-panel-inner {
    padding: 0 0 1rem;
  }

  .game-card-panel-art {
    margin: 0;
    border-radius: 0;
  }

  .game-card-panel-art img {
    max-height: min(50vh, 20rem);
  }

  .game-card-panel-inner > :not(.game-card-panel-art) {
    padding-inline: 1rem;
  }

  .game-title--panel {
    display: none;
  }

  .game-desc {
    color: var(--text-muted);
    text-shadow: none;
  }

  .game-meta {
    color: var(--text-muted);
    text-shadow: none;
  }

  .game-collection-list {
    color: var(--text);
    max-height: none;
    text-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .game-card-thumb img,
  .game-card-panel {
    transition: none;
  }

  .game-card:hover .game-card-thumb img,
  .game-card:focus-within .game-card-thumb img {
    transform: none;
    filter: brightness(0.55);
  }
}

/* Contact */
.contact {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
}

.contact-inner {
  text-align: center;
}

.contact .section-title {
  margin-bottom: 0.75rem;
}

.contact-text {
  margin: 0 auto 1.75rem;
  max-width: 28rem;
  color: var(--text-muted);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* Footer */
.site-footer {
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-align: center;
}

/* Bottom-right revision label (edit text in index.html #site-update) */
.site-update {
  position: fixed;
  right: max(0.75rem, env(safe-area-inset-right, 0px));
  bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
  z-index: 40;
  margin: 0;
  padding: 0.35rem 0.55rem;
  max-width: min(12rem, 42vw);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
  text-align: right;
  color: var(--text-muted);
  background: rgba(12, 14, 18, 0.78);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0.85;
  pointer-events: none;
  user-select: none;
}

@media print {
  .site-update {
    display: none;
  }
}
