:root {
  --steam-night: #07131f;
  --steam-ink: #0b1c2a;
  --steam-mist: #afc8d8;
  --steam-paper: #edf5f8;
  --steam-line: rgba(145, 202, 226, 0.22);
  --steam-signal: #73d9ff;
  --steam-lime: #c7ef62;
  --steam-copper: #f1b76c;
}

.steam-page {
  background:
    radial-gradient(circle at 92% 6%, rgba(115, 217, 255, 0.12), transparent 28rem),
    linear-gradient(180deg, #07131f 0, #081825 28rem, #07131f 100%);
}

.steam-page .steam-radar-hero {
  min-height: 430px;
  border-bottom: 1px solid var(--steam-line);
}

.steam-page .steam-radar-hero::after {
  background:
    linear-gradient(90deg, rgba(4, 13, 21, 0.96) 0%, rgba(4, 13, 21, 0.66) 42%, rgba(4, 13, 21, 0.12) 76%),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(115, 217, 255, 0.045) 40px);
}

.steam-page .steam-radar-hero-content {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

.steam-page .steam-eyebrow,
.home-steam-radar .steam-eyebrow {
  color: var(--steam-signal);
  font: 700 0.71rem/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.14em;
}

.steam-signal {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  margin-right: 0.5rem;
  border-radius: 50%;
  background: var(--steam-lime);
  box-shadow: 0 0 0 4px rgba(199, 239, 98, 0.14), 0 0 16px rgba(199, 239, 98, 0.9);
  vertical-align: 0.02rem;
}

.steam-page .steam-radar-title {
  max-width: 780px;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  letter-spacing: 0.015em;
  text-transform: uppercase;
}

.steam-page .steam-radar-subtitle {
  max-width: 660px;
  color: #c4d7e1;
}

.steam-page .steam-radar-cta {
  border-color: rgba(115, 217, 255, 0.55);
  color: #eaf8ff;
}

.steam-page .steam-radar-cta:hover,
.steam-page .steam-radar-cta:focus-visible {
  color: var(--steam-night);
  background: var(--steam-signal);
  border-color: var(--steam-signal);
}

.steam-page .steam-radar-cta-primary {
  color: var(--steam-night);
  background: var(--steam-lime);
  border-color: var(--steam-lime);
}

.steam-page .steam-radar-cta-primary:hover,
.steam-page .steam-radar-cta-primary:focus-visible {
  background: #e0ff92;
  border-color: #e0ff92;
}

.steam-page .steam-radar-stat {
  border-color: var(--steam-line);
  background: rgba(6, 23, 35, 0.78);
}

.steam-page .steam-radar-stat strong { color: var(--steam-lime); }

.steam-page .steam-radar-stat span {
  color: var(--steam-mist);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.73rem;
  letter-spacing: 0.06em;
}

.steam-page .steam-content {
  max-width: 1240px;
  padding-top: 4.2rem;
  padding-bottom: 5.4rem;
}

.steam-page .steam-section-heading {
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.6rem;
}

.steam-page .steam-section-heading h2 {
  color: var(--steam-paper);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(2rem, 4.2vw, 3.8rem);
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.steam-page .steam-section-heading p {
  max-width: 34rem;
  color: var(--steam-mist);
}

.steam-release-board {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(360px, 0.78fr);
  gap: 1rem;
}

.steam-feature-card {
  position: relative;
  isolation: isolate;
  min-height: 540px;
  overflow: hidden;
  border: 1px solid rgba(115, 217, 255, 0.36);
  background: #0c2637;
}

.steam-feature-card::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background:
    linear-gradient(0deg, rgba(3, 13, 21, 0.98) 3%, rgba(3, 13, 21, 0.6) 48%, rgba(3, 13, 21, 0.08) 100%),
    linear-gradient(90deg, rgba(3, 13, 21, 0.82), transparent 76%);
}

.steam-feature-art,
.steam-feature-art img {
  position: absolute;
  z-index: -2;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.steam-feature-art img { object-fit: cover; }

.steam-feature-content {
  position: relative;
  display: flex;
  min-height: 540px;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.5rem, 4vw, 2.6rem);
}

.steam-feature-topline,
.steam-shelf-marker,
.home-steam-game-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  font: 700 0.68rem/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.steam-feature-number { color: var(--steam-lime); }
.steam-feature-release { color: #d2e4ee; }

.steam-feature-title {
  max-width: 16ch;
  margin: 1.25rem 0 0.8rem;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(2.5rem, 5vw, 4.65rem);
  font-weight: 400;
  letter-spacing: 0.025em;
  line-height: 0.94;
  text-transform: uppercase;
}

.steam-feature-title-link,
.steam-quick-title-link,
.steam-shelf-title-link,
.home-steam-game-title-link {
  color: inherit;
  text-decoration: none;
}

.steam-feature-title-link:hover,
.steam-quick-title-link:hover,
.steam-shelf-title-link:hover,
.home-steam-game-title-link:hover {
  color: var(--steam-signal);
}

.steam-feature-title-link:focus-visible,
.steam-quick-title-link:focus-visible,
.steam-shelf-title-link:focus-visible,
.home-steam-game-title-link:focus-visible,
.steam-feature-link:focus-visible,
.home-steam-link:focus-visible,
.home-steam-game-link:focus-visible {
  outline: 2px solid var(--steam-lime);
  outline-offset: 4px;
}

.steam-feature-description {
  max-width: 38rem;
  margin: 0;
  color: #d2e4ee;
  font-size: 1rem;
  line-height: 1.65;
}

.steam-feature-genres {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.15rem;
}

.steam-genre {
  border: 1px solid rgba(237, 245, 248, 0.28);
  padding: 0.34rem 0.55rem;
  color: #eff9fc;
  font: 700 0.65rem/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.steam-feature-footer,
.steam-shelf-footer,
.home-steam-game-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.steam-feature-footer {
  margin-top: 1.85rem;
  border-top: 1px solid rgba(237, 245, 248, 0.24);
  padding-top: 1rem;
}

.steam-feature-price,
.steam-quick-price,
.steam-shelf-price,
.home-steam-game-price { color: var(--steam-lime); }

.steam-feature-link,
.home-steam-game-link {
  color: var(--steam-paper);
  font: 700 0.7rem/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.07em;
  text-decoration: none;
  text-transform: uppercase;
}

.steam-link-arrow { margin-left: 0.35rem; color: var(--steam-signal); }

.steam-quick-releases {
  display: grid;
  grid-template-rows: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.steam-quick-card {
  display: grid;
  grid-template-columns: 2rem 7.2rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem;
  min-height: 0;
  border: 1px solid var(--steam-line);
  padding: 0.7rem;
  background: rgba(11, 34, 49, 0.76);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.steam-quick-card:hover {
  border-color: rgba(115, 217, 255, 0.62);
  background: rgba(12, 43, 60, 0.92);
  transform: translateX(-3px);
}

.steam-quick-number,
.steam-shelf-number,
.home-steam-game-index {
  color: var(--steam-copper);
  font: 700 0.72rem/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.06em;
}

.steam-quick-art,
.steam-quick-art img {
  display: block;
  width: 7.2rem;
  height: 4.5rem;
  background: #12354b;
}

.steam-quick-art img { object-fit: cover; }

.steam-quick-meta,
.steam-shelf-genres,
.steam-shelf-platforms,
.home-steam-game-meta {
  color: var(--steam-mist);
}

.steam-quick-meta {
  margin: 0 0 0.35rem;
  font: 600 0.67rem/1.25 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.steam-quick-title {
  margin: 0;
  color: var(--steam-paper);
  font-size: clamp(0.92rem, 1.4vw, 1.05rem);
  line-height: 1.16;
}

.steam-quick-price {
  min-width: 5.2rem;
  font-size: 0.76rem;
  text-align: right;
}

.steam-release-shelf {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 3.25rem;
  border-top: 1px solid var(--steam-line);
  border-left: 1px solid var(--steam-line);
}

.steam-shelf-card {
  display: grid;
  min-width: 0;
  border-right: 1px solid var(--steam-line);
  border-bottom: 1px solid var(--steam-line);
  background: rgba(8, 27, 41, 0.46);
  transition: background 160ms ease;
}

.steam-shelf-card:hover { background: rgba(18, 50, 67, 0.76); }

.steam-shelf-art,
.steam-shelf-art img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 7;
  background: #12354b;
}

.steam-shelf-art img { object-fit: cover; }

.steam-shelf-body { padding: 1.1rem 1.15rem 1.2rem; }

.steam-shelf-date { color: var(--steam-mist); }

.steam-shelf-title {
  min-height: 2.45em;
  margin: 0.85rem 0 0.45rem;
  color: var(--steam-paper);
  font-size: 1.1rem;
  line-height: 1.18;
}

.steam-shelf-genres {
  min-height: 2.7em;
  margin: 0;
  font-size: 0.79rem;
  line-height: 1.45;
}

.steam-shelf-footer {
  margin-top: 1.25rem;
  font: 600 0.68rem/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.steam-shelf-platforms { max-width: 56%; }
.steam-shelf-price { text-align: right; }

.steam-page .steam-more-button {
  margin-top: 2rem;
  border: 1px solid var(--steam-line);
  padding: 0.8rem 1.25rem;
  color: var(--steam-paper);
  background: transparent;
  font: 700 0.72rem/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.steam-page .steam-more-button:hover,
.steam-page .steam-more-button:focus-visible {
  border-color: var(--steam-signal);
  background: rgba(115, 217, 255, 0.12);
}

.steam-page .steam-attribution,
.steam-page .steam-status {
  color: var(--steam-mist);
}

.steam-empty-state,
.steam-error-state {
  grid-column: 1 / -1;
  margin: 0;
  border: 1px solid var(--steam-line);
  padding: 1.25rem;
  color: var(--steam-mist);
  background: rgba(8, 27, 41, 0.6);
}

.steam-error-state,
.steam-status.is-error { color: #ffbc9a; }

.steam-skeleton {
  min-height: 7rem;
  border: 1px solid var(--steam-line);
  background: linear-gradient(110deg, rgba(22, 55, 73, 0.45) 8%, rgba(82, 132, 153, 0.28) 18%, rgba(22, 55, 73, 0.45) 33%);
  background-size: 220% 100%;
  animation: steam-shimmer 1.7s linear infinite;
}

.steam-skeleton-featured { min-height: 540px; }

@keyframes steam-shimmer {
  to { background-position-x: -220%; }
}

.home-steam-radar {
  position: relative;
  overflow: hidden;
  margin: 2.9rem 0 4.2rem;
  border: 1px solid rgba(115, 217, 255, 0.32);
  padding: clamp(1.3rem, 3.5vw, 2.35rem);
  background:
    radial-gradient(circle at 90% 5%, rgba(199, 239, 98, 0.18), transparent 18rem),
    linear-gradient(125deg, #092238, #0b1724 58%, #122e3d);
}

.home-steam-radar::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: repeating-linear-gradient(90deg, transparent 0 34px, rgba(115, 217, 255, 0.035) 35px);
}

.home-steam-heading,
.home-steam-releases,
.home-steam-status { position: relative; }

.home-steam-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
}

.home-steam-heading h2 {
  margin: 0.45rem 0 0.35rem;
  color: var(--steam-paper);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(2rem, 4vw, 3.35rem);
  font-weight: 400;
  letter-spacing: 0.025em;
  line-height: 0.96;
  text-transform: uppercase;
}

.home-steam-heading p:not(.steam-eyebrow) {
  max-width: 34rem;
  margin: 0;
  color: var(--steam-mist);
}

.home-steam-link {
  flex: 0 0 auto;
  color: var(--steam-lime);
  font: 700 0.72rem/1.35 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.04em;
  text-align: right;
  text-decoration: none;
  text-transform: uppercase;
}

.home-steam-link span {
  margin-left: 0.2rem;
  color: var(--steam-signal);
  font-size: 1.2em;
}

.home-steam-releases {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 2rem;
}

.home-steam-game {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  border: 1px solid rgba(175, 200, 216, 0.25);
  background: rgba(5, 19, 31, 0.54);
}

.home-steam-game-art,
.home-steam-game-art img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 7;
  background: #12354b;
}

.home-steam-game-art img { object-fit: cover; }

.home-steam-game-body { padding: 0.9rem 1rem 1rem; }

.home-steam-game-meta {
  justify-content: flex-start;
  margin: 0;
  font-size: 0.63rem;
}

.home-steam-game-index { margin-right: 0.15rem; }

.home-steam-game-title {
  min-height: 2.42em;
  margin: 0.65rem 0 1rem;
  color: var(--steam-paper);
  font-size: 1rem;
  line-height: 1.2;
}

.home-steam-game-footer {
  font-size: 0.73rem;
}

.home-steam-game-link { color: var(--steam-signal); font-size: 0.65rem; }

.home-steam-status {
  margin: 1rem 0 0;
  color: var(--steam-mist);
  font: 600 0.66rem/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.home-steam-skeleton {
  min-height: 12.5rem;
  border: 1px solid rgba(175, 200, 216, 0.25);
  background: linear-gradient(110deg, rgba(22, 55, 73, 0.45) 8%, rgba(82, 132, 153, 0.28) 18%, rgba(22, 55, 73, 0.45) 33%);
  background-size: 220% 100%;
  animation: steam-shimmer 1.7s linear infinite;
}

.home-steam-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 1.25rem 0;
  color: var(--steam-mist);
}

.steam-image-missing { background: linear-gradient(135deg, #15364b, #0a1824); }

@media (max-width: 900px) {
  .steam-release-board { grid-template-columns: 1fr; }
  .steam-quick-releases { grid-template-rows: unset; }
  .steam-quick-card { min-height: 6rem; }
  .steam-release-shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .steam-page .steam-radar-hero { min-height: 0; }
  .steam-page .steam-radar-hero-content { padding-top: 3.6rem; padding-bottom: 3.6rem; }
  .steam-page .steam-content { padding-top: 2.6rem; }
  .steam-feature-card,
  .steam-feature-content,
  .steam-skeleton-featured { min-height: 27rem; }
  .steam-feature-description { font-size: 0.91rem; }
  .steam-quick-card { grid-template-columns: 1.65rem 5.55rem minmax(0, 1fr); gap: 0.65rem; }
  .steam-quick-art,
  .steam-quick-art img { width: 5.55rem; height: 3.75rem; }
  .steam-quick-price { display: none; }
  .steam-release-shelf { grid-template-columns: 1fr; margin-top: 2rem; }
  .steam-shelf-title { min-height: 0; }
  .steam-shelf-genres { min-height: 0; }
  .home-steam-heading { display: block; }
  .home-steam-link { display: inline-block; margin-top: 1rem; text-align: left; }
  .home-steam-releases { grid-template-columns: 1fr; }
  .home-steam-game { grid-template-columns: 8.5rem minmax(0, 1fr); }
  .home-steam-game-art,
  .home-steam-game-art img { height: 100%; min-height: 7.75rem; aspect-ratio: auto; }
  .home-steam-game-body { padding: 0.85rem; }
  .home-steam-game-title { min-height: 0; margin-bottom: 0.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  .steam-quick-card { transition: none; }
  .steam-quick-card:hover { transform: none; }
  .steam-skeleton,
  .home-steam-skeleton { animation: none; }
}
