:root {
  --bg: #020915;
  --bg-2: #071224;
  --panel: #0d1322;
  --panel-2: #121b2e;
  --line: #2a3447;
  --text: #eef3fb;
  --muted: #a3afc2;
  --teal: #25e5df;
  --green: #00ff4f;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: Manrope, sans-serif;
  background: radial-gradient(circle at top left, #07203c 0%, #020915 32%);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 28px;
  border-bottom: 1px solid #10253a;
  background: rgba(2, 10, 22, 0.95);
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 175px;
}

.brand-mark {
  font-weight: 800;
  font-size: 42px;
  line-height: 1;
  color: #48f3cf;
}

.brand-text {
  display: grid;
  gap: 1px;
}

.brand-text strong {
  font-size: 28px;
  line-height: 1;
}

.brand-text small {
  font-size: 9px;
  color: #b2bfd0;
}

.search-wrap {
  flex: 1;
  max-width: 920px;
  height: 44px;
  border-radius: 999px;
  background: #1a2432;
  color: var(--teal);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
}

.search-wrap input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #dbe6f4;
  font-size: 16px;
}

.menu {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  font-weight: 700;
  margin-left: auto;
}

.menu .avatar {
  color: var(--teal);
  font-size: 18px;
}

.page {
  width: calc(100vw - 56px);
  max-width: 1600px;
  margin: 10px auto 40px;
}

.filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.filter-left,
.filter-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-right {
  margin-left: auto;
}

.chip {
  border: 1px solid #788193;
  color: #d7dfec;
  background: #0d1526;
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 12px;
}

.chip.active,
.chip:hover {
  border-color: #e4ebf5;
}

.hero-block h1,
.rack h2,
.browse-block h2 {
  font-size: 45px;
  margin: 14px 0 10px;
}

.hero-block h1 {
  padding-left: 44px;
}

.hero-card {
  display: grid;
  grid-template-columns: 44px 1.65fr 0.9fr 44px;
  gap: 12px;
  align-items: stretch;
}

.hero-nav {
  border: 0;
  background: transparent;
  color: #f7fbff;
  font-size: 58px;
  line-height: 1;
}

.hero-image {
  aspect-ratio: 16 / 9;
  min-height: 0;
  background: linear-gradient(125deg, #371f15, #811f18 52%, #2c1b12);
  position: relative;
}

.hero-image-snake {
  background-image: linear-gradient(125deg, rgba(55, 31, 21, 0.25), rgba(10, 32, 50, 0.45)), url("snake-thumbnail.svg");
  background-size: cover;
  background-position: center;
}

.hero-logo {
  position: absolute;
  left: 32px;
  top: 106px;
  font-size: clamp(56px, 8vw, 150px);
  font-weight: 800;
  letter-spacing: 3px;
}

.hero-stats {
  position: absolute;
  left: 18px;
  bottom: 10px;
  font-size: 13px;
  color: #dde6f3;
}

.hero-copy {
  background: #31353c;
  padding: 28px 22px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.hero-copy h2 {
  margin: 0 0 8px;
  font-size: 44px;
}

.hero-copy p {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.45;
  color: #e5eaf2;
  max-width: 92%;
}

.btn {
  border: 1px solid #4a98ac;
  background: linear-gradient(90deg, #296f88, #3d745e);
  color: #e9f5ff;
  border-radius: 8px;
  padding: 8px 13px;
  font-size: 12px;
  font-weight: 700;
}

.rack {
  margin-top: 8px;
}

.rack-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0 44px;
}

.rack-head a {
  color: #8f99ab;
  font-size: 18px;
}

.rack-track {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  gap: 8px;
  align-items: center;
}

.rack-arrow {
  border: 0;
  background: transparent;
  color: #ebf1fb;
  font-size: 58px;
  line-height: 1;
  padding: 0;
}

.card-row,
.grid-cards {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(190px, 1fr));
}

.game-card {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #223046;
  background: linear-gradient(180deg, #0e1322, #151a2a);
  display: flex;
  flex-direction: column;
}

.thumb {
  aspect-ratio: 16 / 9;
  min-height: 0;
  background: linear-gradient(110deg, #2c7f95, #3f6648);
  background-size: cover;
  background-position: center;
  padding: 8px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.badge {
  font-size: 11px;
  border: 1px solid #84a8bc;
  border-radius: 999px;
  padding: 2px 8px;
  color: #d4e6f4;
  background: rgba(5, 10, 20, 0.28);
}

.badge.hot {
  border-color: #70778a;
  background: #151a2a;
}

.card-meta {
  padding: 9px 10px 10px;
  min-height: 150px;
}

.title-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 6px;
}

.title-row .hype {
  color: var(--green);
}

.card-desc {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.35;
  color: #c8d3e5;
}

.tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 7px;
}

.tag {
  font-size: 10px;
  border: 1px solid #788093;
  border-radius: 999px;
  padding: 2px 7px;
  color: #c8d3e5;
}

.progress {
  height: 10px;
  border: 1px solid #7b8191;
  border-radius: 999px;
  overflow: hidden;
}

.progress span {
  display: block;
  height: 100%;
  width: 26%;
  background: linear-gradient(90deg, #21d5df, #96d745);
}

.sub-row {
  margin-top: 7px;
  display: flex;
  justify-content: space-between;
  color: #a9b3c3;
  font-size: 12px;
}

.browse-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.browse-block {
  padding: 0 44px;
}

.btn.wide {
  display: inline-flex;
  justify-content: center;
  padding: 10px 14px;
  font-size: 13px;
}

.library-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 18px;
  align-items: start;
}

.sidebar {
  background: #000;
  min-height: calc(100vh - 108px);
  padding: 28px 22px;
}

.sidebar h2 {
  margin: 0 0 18px;
  font-size: 24px;
  font-weight: 800;
  border-left: 4px solid #fff;
  padding-left: 10px;
}

.side-link {
  display: block;
  margin: 10px 0;
  font-size: 18px;
  color: #e9eef8;
}

.library-layout .grid-cards {
  grid-template-columns: repeat(4, minmax(210px, 1fr));
  gap: 18px;
}

.library-layout .game-card {
  border-radius: 18px;
  border-color: #1f2f42;
}

.library-layout .thumb {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  padding: 14px;
}

.library-layout .card-meta {
  padding: 12px 14px 13px;
  min-height: 122px;
}

.library-layout .title-row {
  font-size: 15px;
}

.library-layout .sub-row {
  font-size: 13px;
}

.game-layout {
  max-width: 960px;
}

.game-title {
  font-size: 28px;
  margin: 8px 0 10px;
}

.game-hero {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 10px;
}

.game-shot,
.large-shot {
  aspect-ratio: 16 / 9;
  background: linear-gradient(180deg, #30424f, #131f2b 66%);
  border: 1px solid #213648;
  min-height: 0;
}

.large-shot {
  min-height: 0;
}

.game-side {
  border: 1px solid #213648;
  background: #090f1d;
  padding: 12px;
  font-size: 13px;
}

.studio-icon {
  color: #fff;
  font-size: 24px;
}

.score.good {
  color: var(--green);
  font-weight: 800;
  margin: 8px 0;
}

.fund-row {
  margin-top: 8px;
  border: 1px solid #203248;
  background: #0f1729;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}

.tabs {
  margin-top: 10px;
  background: #486a60;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.tabs a {
  padding: 8px;
  text-align: center;
  font-size: 12px;
}

.tabs a.active {
  background: rgba(0, 0, 0, 0.25);
}

.two-col {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1.1fr 0.7fr;
  gap: 12px;
}

.two-col h2,
#rewards h2,
#roadmap h2,
#updates h2,
#reviews h2 {
  font-size: 24px;
  margin: 8px 0;
}

.two-col p,
#updates p,
#reviews p,
#roadmap p,
.reward-card p {
  font-size: 12px;
  line-height: 1.45;
  color: #ced8e9;
}

.thumb-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.thumb-grid div {
  aspect-ratio: 16 / 9;
  background: linear-gradient(110deg, #2d7f94, #415f43);
}

.specs {
  padding-left: 16px;
  margin-top: 6px;
}

.specs li {
  font-size: 12px;
  color: #ced8e8;
}

.reward-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.reward-card {
  border: 1px solid #224257;
  background: #09111f;
  padding: 10px;
}

.reward-card h3 {
  margin: 0 0 6px;
  font-size: 13px;
}

.timeline {
  border-left: 2px solid #669485;
  margin-left: 8px;
  padding-left: 12px;
  display: grid;
  gap: 8px;
}

.timeline h3,
.update-item h3,
.review h3 {
  margin: 0 0 4px;
  font-size: 13px;
}

.update-item,
.review {
  border-bottom: 1px solid #2c3646;
  padding: 8px 0;
}

.review.positive h3 {
  color: var(--green);
}

.snake-page {
  max-width: 820px;
}

.snake-panel {
  border: 1px solid #213648;
  background: #09111f;
  padding: 16px;
}

.snake-head {
  display: grid;
  gap: 6px;
}

.snake-help {
  margin: 0;
  color: #ced8e9;
  font-size: 12px;
}

.snake-status {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.snake-stat {
  font-size: 13px;
  color: #ced8e9;
}

.snake-board-wrap {
  margin-top: 12px;
  position: relative;
}

.snake-board {
  display: grid;
  grid-template-columns: repeat(18, 1fr);
  border: 1px solid #223046;
  background: #060d19;
  gap: 1px;
}

.snake-cell {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #0f1729;
}

.snake-body {
  background: #25e5df;
}

.snake-head-cell {
  background: #00ff4f;
}

.snake-food {
  background: #e06f42;
}

.snake-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 13, 25, 0.82);
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

.snake-overlay p {
  margin: 0;
  font-size: 14px;
}

.snake-controls {
  margin-top: 12px;
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(5, minmax(48px, 70px));
}

.snake-about {
  margin-top: 14px;
  border: 1px solid #213648;
  background: #0a1425;
  padding: 12px;
}

.snake-about h2 {
  margin: 0 0 6px;
  font-size: 20px;
}

.snake-about p {
  margin: 0 0 8px;
  font-size: 12px;
  color: #ced8e9;
  line-height: 1.45;
}

.snake-control {
  border: 1px solid #4a98ac;
  background: #0f1729;
  color: #e9f5ff;
  border-radius: 8px;
  min-height: 40px;
  font-size: 14px;
  font-family: inherit;
}

.snake-control-pause {
  grid-column: span 2;
}

.game-detail-page {
  --detail-panel: rgba(8, 16, 31, 0.9);
  --detail-panel-2: rgba(13, 23, 42, 0.9);
  --detail-line: #1e3850;
  --detail-soft: #95a6bd;
  --detail-accent: #21d5df;
  --detail-good: #8cff57;
  --detail-title: "Chakra Petch", Manrope, sans-serif;
  max-width: 1320px;
  display: grid;
  gap: 18px;
  position: relative;
}

.game-detail-page::before {
  content: "";
  position: fixed;
  inset: 64px 0 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 10% 8%, rgba(33, 213, 223, 0.18), transparent 34%),
    radial-gradient(circle at 90% 18%, rgba(140, 255, 87, 0.1), transparent 28%);
  z-index: -1;
}

.detail-title {
  margin: 0;
  font-family: var(--detail-title);
  letter-spacing: 0.7px;
  font-weight: 700;
  font-size: clamp(36px, 5.1vw, 64px);
  line-height: 0.95;
}

.detail-subtitle {
  margin: -6px 0 2px;
  color: var(--detail-soft);
  font-size: 15px;
  max-width: 760px;
}

.detail-top {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 0.9fr);
  gap: 14px;
}

.main-column,
.side-column {
  min-width: 0;
}

.play-shell {
  background: linear-gradient(165deg, rgba(11, 21, 40, 0.93), rgba(7, 14, 29, 0.95));
  border: 1px solid var(--detail-line);
  border-radius: 16px;
  overflow: hidden;
}

.media-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(140deg, rgba(1, 8, 18, 0.45), rgba(1, 12, 20, 0.65)),
    url("snake-thumbnail.svg");
  background-size: cover;
  background-position: center;
}

.media-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(3, 8, 17, 0.82), transparent 48%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 85px);
  pointer-events: none;
}

#frame-game {
  width: 100%;
  height: 100%;
  display: block;
}

.stage-overlay {
  position: absolute;
  z-index: 2;
  inset: auto auto 18px 18px;
  background: rgba(8, 17, 32, 0.8);
  border: 1px solid rgba(44, 75, 98, 0.8);
  border-radius: 12px;
  padding: 10px 12px;
  display: grid;
  gap: 8px;
  max-width: 300px;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(140, 255, 87, 0.55);
  background: rgba(140, 255, 87, 0.08);
  color: #cbffb2;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  width: fit-content;
  padding: 2px 8px;
}

.stage-overlay p {
  margin: 0;
  font-size: 12px;
  color: #c4d0e1;
}

.media-meta {
  padding: 12px 14px 8px;
  display: grid;
  gap: 6px;
  border-top: 1px solid #183048;
}

.meta-icons {
  font-size: 12px;
  color: #d4dfec;
}

.meta-stats {
  font-size: 12px;
  color: #96abc1;
}

.funding-panel {
  border-top: 1px solid #183048;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 14px 14px;
}

.funding-panel strong {
  display: block;
  font-size: 16px;
  margin-bottom: 6px;
}

.funding-panel small {
  color: #94a8be;
  font-size: 11px;
}

.funding-panel .progress {
  margin-bottom: 6px;
  border-color: #365f71;
  background: #081323;
}

.studio-panel {
  height: 100%;
  background: linear-gradient(160deg, rgba(11, 22, 40, 0.92), rgba(9, 18, 34, 0.96));
  border: 1px solid var(--detail-line);
  border-radius: 16px;
  padding: 18px;
  display: grid;
  align-content: start;
  gap: 10px;
}

.studio-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid #32516b;
  display: grid;
  place-items: center;
  font-size: 20px;
  color: var(--detail-accent);
  background: #0b1528;
}

.studio-panel h2 {
  margin: 2px 0 0;
  font-size: 22px;
  font-family: var(--detail-title);
}

.studio-panel p {
  margin: 0;
  color: var(--detail-soft);
  font-size: 13px;
  line-height: 1.5;
}

.studio-panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.studio-panel li {
  border: 1px solid #1f3952;
  background: rgba(7, 14, 27, 0.7);
  border-radius: 8px;
  padding: 7px 8px;
  font-size: 12px;
  color: #cfdae8;
}

.studio-actions {
  margin-top: 2px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.btn.btn-ghost {
  border-color: #395066;
  background: linear-gradient(90deg, #1c293a, #1c2838);
}

.detail-tabs {
  position: sticky;
  top: 64px;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(13, 25, 42, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid #21455b;
  border-radius: 12px;
  overflow: hidden;
}

.detail-tabs a {
  text-align: center;
  padding: 11px 8px;
  font-size: 12px;
  font-weight: 700;
  color: #aec0d6;
  border-right: 1px solid #17374f;
  letter-spacing: 0.3px;
}

.detail-tabs a:last-child {
  border-right: 0;
}

.detail-tabs a.active,
.detail-tabs a:hover {
  color: #e8f3ff;
  background: linear-gradient(180deg, #173752, #132d44);
}

.detail-section,
.overview-grid {
  background: var(--detail-panel);
  border: 1px solid var(--detail-line);
  border-radius: 14px;
  padding: 16px;
}

.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.85fr);
  gap: 16px;
}

.detail-section h2,
.overview-grid h2 {
  margin: 0 0 12px;
  font-family: var(--detail-title);
  letter-spacing: 0.4px;
  font-size: clamp(24px, 2.9vw, 34px);
}

.overview-stage {
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  border: 1px solid #2a455d;
  background:
    linear-gradient(130deg, rgba(3, 10, 19, 0.55), rgba(2, 11, 19, 0.6)),
    url("snake-thumbnail.svg");
  background-size: cover;
  background-position: center;
}

.overview-stage[data-bg="b"],
.media-stage[data-bg="b"] {
  filter: hue-rotate(35deg) brightness(1.03);
}

.overview-stage[data-bg="c"],
.media-stage[data-bg="c"] {
  filter: hue-rotate(190deg) saturate(1.12);
}

.overview-stage[data-bg="d"],
.media-stage[data-bg="d"] {
  filter: grayscale(0.45) contrast(1.16) brightness(0.92);
}

.thumb-switches {
  display: flex;
  gap: 8px;
  margin: 12px 0 10px;
}

.media-thumb {
  width: 38px;
  height: 16px;
  border-radius: 999px;
  border: 1px solid #4d6376;
  background: #24384a;
}

.media-thumb.active {
  border-color: #85f6ff;
  background: #2c8ea8;
}

.overview-grid h3 {
  margin: 0 0 6px;
  font-size: 26px;
  font-family: var(--detail-title);
}

.overview-grid p {
  margin: 0;
  max-width: 95%;
  color: #c4d2e3;
  line-height: 1.55;
  font-size: 14px;
}

.quick-side {
  background: var(--detail-panel-2);
  border: 1px solid #23435a;
  border-radius: 12px;
  padding: 12px;
}

.quick-side h4 {
  margin: 0 0 8px;
  font-size: 12px;
  color: #95aac3;
  letter-spacing: 0.4px;
}

.quick-side .thumb-grid {
  margin-bottom: 10px;
}

.quick-side .thumb-grid div {
  border-radius: 6px;
}

.stat-pill {
  border: 1px solid #2a4862;
  border-radius: 8px;
  padding: 7px 8px;
  background: rgba(8, 15, 29, 0.8);
  font-size: 12px;
  color: #d6e2f1;
  margin-bottom: 6px;
}

.reward-row {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.reward-card {
  border: 1px solid #21435a;
  border-radius: 10px;
  background: linear-gradient(170deg, #0c1a30, #071323);
  padding: 12px;
  display: grid;
  gap: 9px;
}

.reward-card h3 {
  font-family: var(--detail-title);
  margin: 0;
  font-size: 18px;
}

.reward-card p {
  margin: 0;
  font-size: 12px;
  color: #c2d1e1;
}

.reward-card .btn {
  width: 100%;
}

.roadmap-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.roadmap-track article {
  border: 1px solid #21435d;
  border-radius: 10px;
  background: linear-gradient(180deg, #0f2138, #091625);
  padding: 12px;
  position: relative;
}

.roadmap-track article::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--detail-accent);
  box-shadow: 0 0 0 4px rgba(33, 213, 223, 0.16);
}

.roadmap-track h3 {
  margin: 0 0 8px 16px;
  font-family: var(--detail-title);
  font-size: 19px;
}

.roadmap-track p {
  margin: 0;
  font-size: 13px;
  color: #b8cadc;
  line-height: 1.5;
}

.update-item {
  padding: 12px 0;
  border-bottom-color: #213d55;
}

.update-item:last-child {
  border-bottom: 0;
  padding-bottom: 2px;
}

.update-item h3 {
  margin: 0 0 6px;
  font-size: 17px;
  color: #f1f7ff;
}

.update-item p {
  margin: 0;
  color: #bdcdde;
}

.studio-cta {
  border: 1px solid #274760;
  border-radius: 14px;
  background: linear-gradient(135deg, #111f36, #0b1627);
  padding: 16px;
  text-align: center;
}

.studio-cta h3 {
  margin: 0 0 10px;
  font-family: var(--detail-title);
  font-size: 22px;
}

.reviews-block .reviews-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.review-tabs {
  display: flex;
  gap: 8px;
}

.review-tabs button {
  border: 1px solid #37526a;
  border-radius: 999px;
  background: #10243a;
  color: #d8e6f6;
  padding: 6px 10px;
  font: inherit;
  font-size: 12px;
}

.review-tabs button.active {
  background: #16496c;
  border-color: #4a8bb4;
}

.review {
  border-bottom-color: #1f3c54;
  padding: 12px 0;
}

.review h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

.review p {
  margin: 0;
  color: #b8cbde;
  line-height: 1.5;
}

.review.positive h3 {
  color: var(--detail-good);
}

.review.down h3 {
  color: #ff9f52;
}

.review.extreme-down h3 {
  color: #ff6767;
}

@media (max-width: 1280px) {
  .hero-card {
    grid-template-columns: 1fr;
  }

  .hero-nav {
    display: none;
  }

  .library-layout,
  .game-hero,
  .two-col {
    grid-template-columns: 1fr;
  }

  .sidebar {
    min-height: auto;
  }

  .card-row,
  .grid-cards,
  .browse-actions,
  .reward-row {
    grid-template-columns: repeat(2, minmax(190px, 1fr));
  }

  .library-layout .grid-cards {
    grid-template-columns: repeat(2, minmax(190px, 1fr));
    gap: 12px;
  }

  .rack-track {
    grid-template-columns: 1fr;
  }

  .detail-top,
  .overview-grid {
    grid-template-columns: 1fr;
  }

  .reward-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .roadmap-track {
    grid-template-columns: 1fr;
  }

  .rack-arrow {
    display: none;
  }

  .hero-block h1,
  .rack-head,
  .browse-block {
    padding-left: 0;
    padding-right: 0;
  }
}

@media (max-width: 760px) {
  .topbar {
    height: auto;
    flex-wrap: wrap;
    padding: 10px;
    gap: 8px;
  }

  .brand {
    min-width: 0;
  }

  .brand-mark {
    font-size: 30px;
  }

  .brand-text strong {
    font-size: 20px;
  }

  .brand-text small {
    display: none;
  }

  .menu {
    font-size: 12px;
    gap: 12px;
  }

  .page {
    width: 94vw;
  }

  .filter-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .filter-left,
  .filter-right {
    flex-wrap: wrap;
  }

  .hero-block h1,
  .rack h2,
  .browse-block h2 {
    font-size: 26px;
  }

  .hero-copy h2 {
    font-size: 28px;
  }

  .card-row,
  .grid-cards,
  .browse-actions,
  .reward-row {
    grid-template-columns: 1fr;
  }

  .side-link,
  .sidebar h2 {
    font-size: 26px;
  }

  .library-layout .grid-cards {
    grid-template-columns: 1fr;
  }

  .snake-controls {
    grid-template-columns: repeat(3, minmax(40px, 1fr));
  }

  .snake-control-pause {
    grid-column: span 3;
  }

  .game-detail-page {
    gap: 12px;
  }

  .detail-title {
    font-size: 38px;
  }

  .detail-subtitle {
    font-size: 13px;
  }

  .detail-tabs {
    position: static;
  }

  .detail-tabs a {
    padding: 9px 6px;
    font-size: 11px;
  }

  .funding-panel {
    flex-direction: column;
    align-items: stretch;
  }

  .stage-overlay {
    left: 10px;
    bottom: 10px;
    max-width: calc(100% - 20px);
  }

  .detail-section,
  .overview-grid {
    padding: 12px;
  }

  .overview-grid p {
    max-width: 100%;
    font-size: 13px;
  }

  .studio-actions {
    grid-template-columns: 1fr;
  }
}
