@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");
:root {
  --bg: #05051b;
  --panel: #0d1030;
  --text: #fff;
  --muted: #a7add0;
  --blue: #3b67ff;
  --purple: #a63cff;
  --line: #342a79;
}
/* sci‑fi đồng bộ cắt vát thành hình khối.
Phần giữa mép trên có bậc nổi.
Viền chuyển màu xanh–tím như lớp giáp. */
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scrollbar-color: #7257e8 #07071f;
  scrollbar-width: thin;
}

/* Scrollbar dùng chung, đồng bộ với giao diện xanh tím của website. */
::-webkit-scrollbar {
  width: 11px;
  height: 11px;
}
::-webkit-scrollbar-track {
  background: #07071f;
}
::-webkit-scrollbar-thumb {
  min-height: 44px;
  border: 3px solid #07071f;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--blue), var(--purple));
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #6284ff, #bd5cff);
}
::-webkit-scrollbar-corner {
  background: #07071f;
}
body {
  margin: 0;
  background: radial-gradient(
    circle at 50% 15%,
    #17104d 0,
    #06051d 45%,
    #020313 100%
  );
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea {
  font: inherit;
}
.site-header {
  height: 70px;
  padding: 0 3%;
  display: flex;
  align-items: center;
  gap: 30px;
  background: rgba(2, 3, 18, 0.93);
  border-bottom: 1px solid #24234c;
  position: relative;
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font-size: 24px;
}
.brand .logo {
  font-size: 34px;
  filter: drop-shadow(0 0 9px #744cff);
}
.brand strong span {
  color: #b04cff;
}
.search {
  height: 42px;
  min-width: 260px;
  max-width: 320px;
  flex: 1;
  border: 1px solid #3e4778;
  border-radius: 22px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  position: relative;
  background: #0c102d;
}
.search > span {
  font-size: 26px;
}
.search input {
  width: 100%;
  background: none;
  border: 0;
  outline: 0;
  color: #fff;
  padding: 0 10px;
}
.search-results {
  display: none;
  position: absolute;
  top: 49px;
  left: 0;
  right: 0;
  background: #101431;
  border: 1px solid #464a8d;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 18px 40px #000;
}
.search-results.open {
  display: block;
}
.search-results a {
  display: flex;
  gap: 10px;
  padding: 9px;
  border-bottom: 1px solid #242854;
}
.search-results img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 7px;
}
.search-results small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}
.site-header nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 13px;
  flex: 2;
  justify-content: center;
}
.site-header nav a {
  padding: 25px 0;
  white-space: nowrap;
}
.site-header nav a.active {
  color: #fff;
  border-bottom: 3px solid #594bff;
  text-shadow: 0 0 12px #8e71ff;
}
.nav-toggle {
  display: none;
}
.reference-stage {
  position: relative;
  width: 100%;
  line-height: 0;
}
.reference-stage img {
  width: 100%;
  height: auto;
  display: block;
}
.hotspot {
  position: absolute;
  display: block;
}
.hero-play {
  left: 45%;
  top: 27%;
  width: 12%;
  height: 23%;
  border-radius: 50%;
}
.category-link {
  left: 41.5%;
  top: 0;
  width: 8%;
  height: 7%;
}
.first-card {
  left: 6%;
  top: 56%;
  width: 13%;
  height: 19%;
}
.category-stage .home-link {
  left: 36%;
  top: 0;
  width: 7%;
  height: 7%;
}
.category-stage .category-card {
  left: 4%;
  top: 50%;
  width: 15%;
  height: 34%;
}
.category-spiral {
  position:absolute;
  z-index:4;
  inset:0;
  overflow:hidden;
  line-height:normal;
  cursor:grab;
  touch-action:pan-y;
  user-select:none;
}
.category-spiral:active { cursor:grabbing }
.spiral-guide { position:absolute;inset:0;width:100%;height:100%;pointer-events:none }
.spiral-guide path { fill:none;vector-effect:non-scaling-stroke;stroke-linecap:round;stroke-linejoin:round }
.spiral-path-glow { stroke:rgba(89,69,255,.72);stroke-width:16;filter:blur(8px) drop-shadow(0 0 10px #5a4cff) }
.spiral-path-core { stroke:url(#spiralEnergyGradient);stroke-width:3;filter:drop-shadow(0 0 4px #63dfff) drop-shadow(0 0 7px #a44fff) }
.category-stage > img { filter:brightness(.76) saturate(.9) contrast(1.04) }
.spiral-cards { position:absolute;inset:0 }
.spiral-game-card {
  --spiral-cut:10px;
  position:absolute;
  width:clamp(88px,6vw,112px);
  overflow:hidden;
  border:1px solid rgba(84,156,255,.9);
  color:#fff;
  background:linear-gradient(150deg,rgba(7,18,66,.98),rgba(25,7,58,.98));
  clip-path:polygon(var(--spiral-cut) 0,calc(100% - var(--spiral-cut)) 0,100% var(--spiral-cut),100% calc(100% - var(--spiral-cut)),calc(100% - var(--spiral-cut)) 100%,var(--spiral-cut) 100%,0 calc(100% - var(--spiral-cut)),0 var(--spiral-cut));
  box-shadow:inset 0 0 18px rgba(51,101,210,.24),0 0 13px rgba(52,110,255,.5),0 0 24px rgba(154,55,255,.22);
  transform-origin:center;
  will-change:left,top,transform,opacity;
  transition:left .46s ease,top .46s ease,transform .46s ease,opacity .3s ease,border-color .18s,filter .18s,box-shadow .18s;
}
.spiral-game-card::after {
  content:"";position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(135deg,rgba(100,231,255,.16),transparent 22%,transparent 72%,rgba(191,70,255,.16));
}
.spiral-game-card img { display:block;width:100%;height:112px;object-fit:cover;pointer-events:none }
.spiral-game-card span { position:relative;z-index:1;display:grid;gap:3px;padding:9px 10px;background:linear-gradient(180deg,rgba(6,10,42,.92),rgba(17,6,48,.98));pointer-events:none }
.spiral-game-card strong { overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px }
.spiral-game-card small { overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#b9c7ef;font-size:10px }
.spiral-game-card small::first-letter { color:#ffd143 }
.spiral-game-card:hover,.spiral-game-card:focus-visible {
  border-color:#62e4ff;filter:brightness(1.16) saturate(1.12);
  box-shadow:inset 0 0 18px rgba(51,132,220,.3),0 0 18px rgba(65,205,255,.75),0 0 32px rgba(165,67,255,.4);
  outline:none;
}
.spiral-control {
  position:absolute;z-index:140;top:36%;display:grid;place-items:center;
  width:52px;height:66px;padding:0;border:1px solid rgba(93,190,255,.88);border-radius:0;
  clip-path:polygon(12px 0,100% 0,100% calc(100% - 12px),calc(100% - 12px) 100%,0 100%,0 12px);
  color:#fff;background:linear-gradient(145deg,rgba(9,43,111,.94),rgba(67,19,130,.92));
  box-shadow:inset 0 0 16px rgba(72,166,255,.2),0 0 18px rgba(62,111,255,.58);
  font:300 42px/1 Arial;cursor:pointer;transform:translateY(-50%);transition:.2s;
}
.spiral-control:hover,.spiral-control:focus-visible { border-color:#7eeaff;background:linear-gradient(145deg,#195db7,#822dc0);box-shadow:0 0 22px rgba(72,188,255,.8);outline:none }
.spiral-control:active { transform:translateY(-50%) scale(.94) }
.spiral-control:disabled { opacity:.32;cursor:default;filter:saturate(.45);box-shadow:none }
.spiral-control-prev { left:2.2% }
.spiral-control-next { right:2.2% }
.category-stage .home-link { z-index:6 }
@media (prefers-reduced-motion:reduce) {
  .spiral-game-card { transition:none }
}
.mobile-home,
.mobile-categories {
  display: none;
}
.category-page {
  min-height: 100vh;
  background-color: #03051b;
  background-image:
    linear-gradient(180deg, rgba(2, 4, 24, 0.04), rgba(2, 4, 24, 0.38)),
    url("../images/category-world-continuation-v3.jpg");
  background-position: center, center 62.5vw;
  background-size: 100% 100%, 100% auto;
  background-repeat: no-repeat, repeat-y;
}
.category-page > :not(.category-stage) {
  position: relative;
  z-index: 1;
}
.intro {
  max-width: 920px;
  margin: 70px auto;
  padding: 45px;
  text-align: center;
  border: 1px solid #342b72;
  border-radius: 24px;
  background: linear-gradient(
    140deg,
    rgba(25, 24, 69, 0.9),
    rgba(8, 8, 35, 0.9)
  );
  box-shadow: 0 0 60px rgba(80, 35, 200, 0.18);
}
.intro > span {
  color: #b274ff;
  font-size: 12px;
  letter-spacing: 3px;
}
.intro h2 {
  font-size: 32px;
  margin: 12px;
}
.intro p {
  color: #b7b9d3;
  line-height: 1.8;
}
.text-button {
  color: #9d7cff;
  background: none;
  border: 0;
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.games-section,
.mobile-categories {
  padding: 30px 5%;
}
.game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.game-card {
  background: linear-gradient(#171d48, #090d29);
  border: 1px solid #3551a6;
  border-radius: 12px;
  overflow: hidden;
  transition: 0.25s;
}
.game-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 12px 35px #241081;
}
.game-card img {
  width: 100%;
  height: 145px;
  object-fit: cover;
}
.game-card div {
  padding: 13px;
}
.game-card small {
  display: block;
  color: #ffca3c;
  margin-top: 8px;
}
.primary,
.secondary {
  display: inline-block;
  padding: 13px 22px;
  border-radius: 24px;
  border: 1px solid #6959fb;
  color: #fff;
  background: linear-gradient(90deg, #4a49ff, #a22ddd);
  cursor: pointer;
}
.secondary {
  background: rgba(0, 0, 0, 0.4);
}
.detail-hero {
  min-height: 610px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  padding: 8%;
}
.detail-hero > div {
  max-width: 610px;
}
.detail-hero span {
  display: block;
  color: #a990ff;
  margin-top: 45px;
}
.detail-hero h1 {
  font-size: 64px;
  margin: 12px 0;
}
.detail-hero p {
  line-height: 1.7;
  color: #d1d4e7;
}
.rating {
  color: #ffd03b;
  margin: 20px 0;
}
.game-content {
  max-width: 900px;
  margin: 50px auto;
  padding: 0 20px;
  line-height: 1.75;
}
.game-content form {
  display: grid;
  gap: 12px;
}
.game-content input,
.game-content textarea {
  background: #101330;
  border: 1px solid #393d76;
  border-radius: 10px;
  padding: 13px;
  color: #fff;
}
.game-content textarea {
  min-height: 110px;
}
.comment {
  border-top: 1px solid #282b55;
  padding: 20px 0;
}
.comment time {
  font-size: 12px;
  color: #8186a9;
  margin-left: 10px;
}
footer {
  border-top: 1px solid #292752;
  padding: 45px 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #030414;
}
footer div a {
  margin: 0 9px;
  color: #aeb0ca;
}
footer p {
  color: #9b6dff;
}
footer small {
  color: #71768f;
}
@media (max-width: 900px) {
  .category-page {
    background-image:
      linear-gradient(180deg, rgba(2, 4, 24, 0.12), rgba(2, 4, 24, 0.48)),
      url("../images/category-world-vertical-v2.png");
    background-position: center top, center top;
    background-size: 100% 100%, 100% auto;
  }
  .site-header {
    height: 64px;
    padding: 0 15px;
    gap: 12px;
    position: sticky;
    top: 0;
  }
  .brand {
    font-size: 19px;
  }
  .brand .logo {
    font-size: 25px;
  }
  .search {
    min-width: 0;
  }
  .site-header nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #07081d;
    flex-direction: column;
    gap: 0;
  }
  .site-header nav.open {
    display: flex;
  }
  .site-header nav a {
    padding: 15px;
    width: 100%;
    text-align: center;
  }
  .nav-toggle {
    display: block;
    background: none;
    border: 0;
    color: #fff;
    font-size: 22px;
  }
  .reference-stage {
    display: none;
  }
  .mobile-home,
  .mobile-categories {
    display: block;
  }
  .mobile-hero {
    min-height: 520px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: end;
    padding: 40px 6%;
    position: relative;
  }
  .mobile-hero:before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, #05051b 5%, transparent 90%);
  }
  .mobile-hero > div {
    position: relative;
  }
  .mobile-hero h1 {
    font-size: 45px;
    margin: 10px 0;
  }
  .game-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .category-page .mobile-categories h1 {
    font-size: 36px;
  }
  .filter-row {
    display: flex;
    gap: 8px;
    overflow: auto;
    margin: 20px 0;
  }
  .filter-row a {
    padding: 9px 13px;
    background: #12153b;
    border-radius: 20px;
    white-space: nowrap;
  }
  .filter-row a.active {
    background: #623cff;
  }
  .breadcrumb {
    margin-top: 20px;
    color: #989fc4;
  }
  .detail-hero {
    min-height: 500px;
    padding: 7%;
  }
  .detail-hero h1 {
    font-size: 44px;
  }
  footer {
    flex-direction: column;
    gap: 18px;
    text-align: center;
  }
}
@media (max-width: 540px) {
  .search {
    display: none;
  }
  .game-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .game-card img {
    height: 120px;
  }
  .game-card div {
    padding: 9px;
  }
  .game-card strong {
    font-size: 13px;
  }
  .intro {
    margin: 30px 12px;
    padding: 28px 18px;
  }
  .detail-hero h1 {
    font-size: 38px;
  }
}
@media (min-width: 901px) {
  .site-header {
    display: flex;
    position: sticky;
    top: 0;
  }
  .reference-stage {
    height: 62.5vw;
    overflow: hidden;
  }
  .reference-stage > img {
    position: absolute;
    top: -4.1667vw;
    left: 0;
  }
  .home-stage .category-link,
  .category-stage .home-link {
    display: none;
  }
  .intro {
    margin-top: 50px;
  }
}
.game-frame-unit {
  position: absolute;
  z-index: 3;
  left: 28.13%;
  top: 8.75%;
  width: 43.62%;
  line-height: normal;
}
.desktop-player {
  position: relative;
  width: 100%;
  aspect-ratio: 1.861 / 1;
  background-size: cover;
  background-position: center;
  border: 0;
  border-radius: clamp(14px, 1.45vw, 23px);
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 0 12px rgba(32, 70, 255, 0.28);
}
.desktop-player:after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 6;
  border: clamp(3px, 0.32vw, 5px) solid rgba(142, 183, 255, 0.75);
  border-radius: inherit;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.16),
    transparent 18%,
    transparent 78%,
    rgba(77, 53, 255, 0.2)
  );
  box-shadow:
    inset 0 0 0 1px rgba(228, 240, 255, 0.75),
    inset 0 0 15px 4px rgba(2, 5, 25, 0.72),
    inset 0 0 34px 8px rgba(6, 15, 68, 0.48),
    0 0 9px rgba(79, 106, 255, 0.65);
  pointer-events: none;
}
.desktop-player iframe,
.mobile-hero iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #05051b;
}
.desktop-player iframe {
  display: block;
  border-radius: inherit;
}
.game-toolbar {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: clamp(5px, 0.55vw, 10px);
  height: clamp(42px, 3.35vw, 54px);
  min-height: 0;
  margin-top: clamp(3px, 0.3vw, 5px);
  padding: 4px clamp(10px, 1.05vw, 17px);
  border: 0;
  border-radius: 0;
  clip-path: polygon(
    10px 0,
    calc(36% - 8px) 0,
    calc(36% + 1px) 4px,
    calc(64% - 1px) 4px,
    calc(64% + 8px) 0,
    calc(100% - 10px) 0,
    100% 10px,
    100% calc(100% - 10px),
    calc(100% - 10px) 100%,
    10px 100%,
    0 calc(100% - 10px),
    0 10px
  );
  background: linear-gradient(
    90deg,
    #44bfff 0,
    #7766ff 18%,
    #203cc9 38%,
    #893fff 62%,
    #315ee8 82%,
    #42c8ff 100%
  );
  box-shadow:
    0 0 8px rgba(46, 111, 255, 0.55),
    0 4px 12px rgba(1, 3, 25, 0.45);
  filter: drop-shadow(0 0 5px rgba(54, 112, 255, 0.65));
  color: #fff;
}
.game-toolbar:before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 2px;
  clip-path: polygon(
    9px 0,
    calc(36% - 9px) 0,
    calc(36% - 1px) 4px,
    calc(64% + 1px) 4px,
    calc(64% + 9px) 0,
    calc(100% - 9px) 0,
    100% 9px,
    100% calc(100% - 9px),
    calc(100% - 9px) 100%,
    9px 100%,
    0 calc(100% - 9px),
    0 9px
  );
  background:
    linear-gradient(
      180deg,
      rgba(28, 47, 135, 0.98),
      rgba(5, 10, 48, 0.99) 42%,
      rgba(21, 7, 71, 0.99)
    ),
    #07103d;
  box-shadow:
    inset 0 4px 9px rgba(74, 139, 255, 0.22),
    inset 0 -4px 9px rgba(120, 37, 225, 0.23);
  pointer-events: none;
}
.game-toolbar:after {
  content: "";
  position: absolute;
  z-index: 1;
  left: 14px;
  right: 14px;
  top: 2px;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent 0,
    #2ad9ff 7%,
    transparent 15%,
    transparent 35%,
    #7f68ff 42%,
    #35d5ff 50%,
    #8b46ff 58%,
    transparent 65%,
    transparent 85%,
    #38caff 93%,
    transparent 100%
  );
  filter: drop-shadow(0 0 4px #469dff);
  pointer-events: none;
}
.game-toolbar > * {
  position: relative;
  z-index: 2;
}
.toolbar-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: clamp(12px, 1.08vw, 17px);
  line-height: 1.1;
  text-shadow: 0 0 10px rgba(111, 142, 255, 0.45);
}
.game-rating,
.rating-stars,
.rating-summary {
  display: flex;
  align-items: center;
}
.game-rating {
  gap: clamp(4px, 0.4vw, 7px);
}
.rating-stars button {
  --fill: 0%;
  padding: 0 0.5px;
  border: 0;
  background: linear-gradient(90deg, #ffc928 var(--fill), #b4bad0 var(--fill));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  font-size: clamp(13px, 1.15vw, 18px);
  line-height: 1;
  cursor: pointer;
  transition: transform 0.15s;
  filter: drop-shadow(0 0 0 transparent);
}
.rating-stars button:hover,
.rating-stars button:focus {
  transform: scale(1.14);
  outline: none;
}
.rating-stars button.active {
  filter: drop-shadow(0 0 4px rgba(255, 193, 27, 0.5));
}
.rating-summary {
  gap: 2px;
  font-size: clamp(9px, 0.7vw, 12px);
  color: #edf0ff;
  white-space: nowrap;
}
.rating-summary small {
  color: #9199bd;
}
.toolbar-button {
  display: grid;
  place-items: center;
  width: clamp(27px, 2.15vw, 34px);
  height: clamp(27px, 2.15vw, 34px);
  padding: 0;
  border: 1px solid rgba(126, 190, 255, 0.9);
  border-radius: 50%;
  background: linear-gradient(145deg, #0a205a, #071039);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 6px rgba(49, 111, 255, 0.3);
  color: #fff;
  font: 700 clamp(13px, 1vw, 16px)/1 Arial;
  text-decoration: none;
  cursor: pointer;
  transition: 0.2s;
}
.toolbar-button:hover,
.toolbar-button:focus-visible {
  border-color: #b3d8ff;
  background: linear-gradient(145deg, #315ad0, #5226a5);
  box-shadow: 0 0 11px rgba(90, 121, 255, 0.8);
  outline: none;
}
.info-button {
  font-family: Georgia, serif;
  font-style: italic;
}
.desktop-player:fullscreen {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border-radius: 0;
  background-color: #030616;
}
.frame-fullscreen.fullscreen-overlay {
  position: absolute;
  z-index: 10;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  background: rgba(4, 10, 38, 0.82);
  box-shadow: 0 0 16px rgba(112, 91, 255, 0.75);
  backdrop-filter: blur(7px);
}
.frame-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 3px solid #fff;
  background: linear-gradient(145deg, #275cff, #9e27ff);
  color: #fff;
  font-size: 35px;
  cursor: pointer;
  box-shadow: 0 0 25px #8d3cff;
  z-index: 5;
}
.hot-games-carousel,
.hot-carousel-slots {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  line-height: normal;
}
.hot-games-carousel {
  perspective: 1400px;
  perspective-origin: 50% 23%;
}
.hot-carousel-slots {
  transform-style: preserve-3d;
  transition:
    transform 0.26s ease,
    opacity 0.2s ease;
}
.hot-carousel-slots.slide-next {
  transform: translateX(-1.8%);
  opacity: 0.18;
}
.hot-carousel-slots.slide-prev {
  transform: translateX(1.8%);
  opacity: 0.18;
}
.hot-carousel-slots.slide-settle {
  transition: none;
  opacity: 0.18;
}
.hot-game-card {
  --card-cut: clamp(7px, 0.65vw, 13px);
  --card-rotate: 0deg;
  position: absolute;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #070a2b;
  color: #fff;
  isolation: isolate;
  clip-path: polygon(
    var(--card-cut) 0,
    calc(50% - 14%) 0,
    calc(50% - 9%) 4%,
    calc(50% + 9%) 4%,
    calc(50% + 14%) 0,
    calc(100% - var(--card-cut)) 0,
    100% var(--card-cut),
    100% calc(100% - var(--card-cut)),
    calc(100% - var(--card-cut)) 100%,
    var(--card-cut) 100%,
    0 calc(100% - var(--card-cut)),
    0 var(--card-cut)
  );
  box-shadow:
    inset 0 0 18px rgba(5, 9, 54, 0.82),
    0 0 9px rgba(49, 44, 221, 0.46);
  pointer-events: auto;
  transform: rotateY(var(--card-rotate));
  transition:
    filter 0.22s ease,
    transform 0.28s cubic-bezier(0.2, 0.75, 0.25, 1),
    box-shadow 0.22s ease;
  backface-visibility: hidden;
  will-change: transform;
}
.hot-game-card::before {
  content: "";
  position: absolute;
  z-index: 4;
  inset: 0;
  padding: clamp(1px, 0.12vw, 2px);
  background: linear-gradient(
    135deg,
    #39d9ff 0%,
    #4258ff 34%,
    #b33dff 72%,
    #ff4bd8 100%
  );
  clip-path: inherit;
  pointer-events: none;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  filter: drop-shadow(0 0 4px rgba(83, 126, 255, 0.8));
}
.hot-game-card::after {
  content: "";
  position: absolute;
  z-index: 4;
  top: 0;
  left: 50%;
  width: 34%;
  height: clamp(3px, 0.32vw, 6px);
  transform: translateX(-50%);
  background: linear-gradient(
    90deg,
    transparent,
    #75efff 18%,
    #7b68ff 52%,
    #e75cff 82%,
    transparent
  );
  box-shadow:
    0 0 8px rgba(91, 214, 255, 0.95),
    0 3px 12px rgba(117, 65, 255, 0.65);
  pointer-events: none;
}
.hot-slot-0 {
  --card-rotate: 3deg;
  left: 2%;
  top: 20%;
  width: 9.5%;
  height: 25%;
  z-index: 3;
  transform-origin: right center;
}
.hot-slot-1 {
  --card-rotate: 5deg;
  left: 12%;
  top: 21%;
  width: 8.2%;
  height: 22%;
  z-index: 2;
  transform-origin: right center;
  filter: brightness(0.92) saturate(0.96);
}
.hot-slot-2 {
  --card-rotate: 7deg;
  left: 20.8%;
  top: 22%;
  width: 6.5%;
  height: 19%;
  z-index: 1;
  transform-origin: right center;
  filter: brightness(0.82) saturate(0.9);
}
.hot-slot-3 {
  --card-rotate: -7deg;
  right: 20.8%;
  top: 22%;
  width: 6.5%;
  height: 19%;
  z-index: 1;
  transform-origin: left center;
  filter: brightness(0.82) saturate(0.9);
}
.hot-slot-4 {
  --card-rotate: -5deg;
  right: 12%;
  top: 21%;
  width: 8.2%;
  height: 22%;
  z-index: 2;
  transform-origin: left center;
  filter: brightness(0.92) saturate(0.96);
}
.hot-slot-5 {
  --card-rotate: -3deg;
  right: 2%;
  top: 20%;
  width: 9.5%;
  height: 25%;
  z-index: 3;
  transform-origin: left center;
}
.hot-game-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.025);
}
.hot-card-shade {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(3, 5, 30, 0.99) 0,
    rgba(5, 9, 39, 0.82) 27%,
    rgba(6, 7, 34, 0.16) 57%,
    transparent 72%
  );
}
.hot-game-card strong {
  position: absolute;
  z-index: 2;
  left: 9%;
  right: 7%;
  bottom: 18%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: clamp(8px, 0.78vw, 14px);
  line-height: 1.08;
  text-shadow: 0 2px 5px #000;
}
.hot-game-card small {
  position: absolute;
  z-index: 2;
  left: 9%;
  bottom: 6%;
  max-width: 82%;
  padding: clamp(2px, 0.22vw, 4px) clamp(4px, 0.4vw, 8px);
  overflow: hidden;
  border: 1px solid rgba(96, 181, 255, 0.58);
  border-radius: 0;
  clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px);
  background: linear-gradient(90deg, rgba(22, 70, 154, 0.94), rgba(93, 31, 164, 0.94));
  font-size: clamp(6px, 0.52vw, 9px);
  line-height: 1;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.hot-game-card:hover,
.hot-game-card:focus-visible {
  filter: brightness(1.16) saturate(1.14);
  transform: translateY(-4px) rotateY(var(--card-rotate)) scale(1.025);
  box-shadow:
    inset 0 0 20px rgba(17, 29, 100, 0.78),
    0 0 18px rgba(65, 155, 255, 0.82),
    0 0 30px rgba(150, 55, 255, 0.38);
  outline: none;
}
.hot-arrow {
  position: absolute;
  z-index: 6;
  top: 24%;
  display: grid;
  place-items: center;
  width: clamp(30px, 3vw, 48px);
  height: clamp(30px, 3vw, 48px);
  padding: 0;
  border: 1px solid rgba(91, 127, 255, 0.8);
  border-radius: 50%;
  background: rgba(10, 20, 91, 0.86);
  box-shadow: 0 0 13px rgba(58, 48, 221, 0.62);
  color: #fff;
  font: 300 clamp(25px, 2.6vw, 42px)/1 Arial;
  cursor: pointer;
  pointer-events: auto;
  transition: 0.2s;
}
.hot-arrow-prev {
  left: 0.35%;
}
.hot-arrow-next {
  right: 0.35%;
}
.hot-arrow:hover,
.hot-arrow:focus-visible {
  border-color: #8ee7ff;
  background: #4422b5;
  box-shadow: 0 0 17px rgba(74, 161, 255, 0.9);
  outline: none;
  transform: scale(1.06);
}
.home-stage {
  height: 62.5vw;
}
.home-stage > img {
  -webkit-mask-image: linear-gradient(
    to bottom,
    #000 0,
    #000 78%,
    transparent 100%
  );
  mask-image: linear-gradient(to bottom, #000 0, #000 78%, transparent 100%);
}
main:has(> .home-stage) {
  background-color: #03051b;
  background-image:
    linear-gradient(
      180deg,
      rgba(2, 6, 29, 0.22),
      rgba(2, 6, 30, 0.36) 45%,
      rgba(2, 5, 27, 0.46) 100%
    ),
    url("../images/category-world-continuation-v3.jpg");
  background-position: center top, center 33vw;
  background-size: 100% 100%, 100% auto;
  background-repeat: no-repeat, repeat-y;
  background-attachment: scroll, scroll;
}
.home-world-layout {
  --world-gap: clamp(12px, 0.85vw, 16px);
  position: relative;
  z-index: 5;
  margin-top: calc(-29.5vw - var(--world-gap));
  padding: 10px clamp(14px, 1.5vw, 28px) clamp(55px, 5vw, 90px);
  display: grid;
  grid-template-columns: minmax(240px, 1.1fr) minmax(430px, 1.65fr) minmax(
      240px,
      1.1fr
    );
  grid-template-rows: auto auto;
  gap: var(--world-gap);
  align-items: start;
  isolation: isolate;
}
.home-world-layout::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(2, 5, 28, 0.08),
    rgba(2, 4, 23, 0.2) 62%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 155px);
  mask-image: linear-gradient(to bottom, transparent 0, #000 155px);
}
.category-shelves {
  display: contents;
}
.game-shelf {
  position: relative;
  min-width: 0;
  padding: clamp(12px, 1vw, 17px);
  border: 1px solid rgba(83, 104, 213, 0.46);
  border-radius: 16px;
  background: linear-gradient(
    145deg,
    rgba(10, 18, 66, 0.82),
    rgba(15, 7, 48, 0.72)
  );
  box-shadow:
    inset 0 0 24px rgba(51, 78, 177, 0.17),
    0 12px 30px rgba(0, 0, 25, 0.24);
  backdrop-filter: blur(8px);
}
.category-rail {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--world-gap);
  align-self: start;
}
.category-rail-left {
  grid-column: 1;
  grid-row: 2;
}
.category-rail-right {
  grid-column: 3;
  grid-row: 2;
}
.category-rail::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 16px;
  bottom: 16px;
  left: 50%;
  width: 1px;
  background: linear-gradient(
    180deg,
    transparent,
    #50d7ff 8%,
    #8755ff 50%,
    #e74dff 92%,
    transparent
  );
  box-shadow: 0 0 10px #576bff;
  transform: translateX(-50%);
}
.shelf-wide {
  grid-column: 1 / -1;
  grid-row: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(15px, 1.5vw, 28px);
  margin: 0;
  padding: 10px clamp(12px, 1.2vw, 20px);
  overflow: hidden;
  border-color: rgba(100, 139, 239, 0.62);
  background:
    radial-gradient(circle at 50% 0, rgba(96, 75, 214, 0.2), transparent 42%),
    linear-gradient(135deg, rgba(9, 23, 74, 0.92), rgba(20, 8, 56, 0.88));
  box-shadow:
    inset 0 0 30px rgba(53, 102, 218, 0.18),
    0 16px 42px rgba(0, 0, 27, 0.3),
    0 0 26px rgba(75, 66, 225, 0.13);
}
.shelf-wide::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    #52dfff 20%,
    #775cff 50%,
    #e454ff 80%,
    transparent
  );
  filter: drop-shadow(0 0 7px #566cff);
}
.shelf-wide .shelf-header {
  display: grid;
  gap: 5px;
  margin: 0;
  white-space: nowrap;
}
.shelf-wide .shelf-header h2 {
  font-size: clamp(15px, 1.15vw, 20px);
}
.shelf-wide .shelf-header a {
  justify-self: start;
  padding: 5px 9px;
  font-size: 9px;
}
.shelf-ticker {
  min-width: 0;
  overflow: hidden;
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 4%,
    #000 96%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 4%,
    #000 96%,
    transparent
  );
}
.shelf-ticker-track {
  display: flex;
  width: max-content;
  animation: shelfTicker 34s linear infinite;
  will-change: transform;
}
.shelf-ticker:hover .shelf-ticker-track,
.shelf-ticker:focus-within .shelf-ticker-track {
  animation-play-state: paused;
}
.shelf-ticker-group {
  display: flex;
  flex-shrink: 0;
  gap: var(--world-gap);
  padding-right: var(--world-gap);
}
.ticker-game {
  display: grid;
  grid-template-columns: 82px 112px;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(65, 112, 221, 0.72);
  border-radius: 10px;
  background: linear-gradient(
    135deg,
    rgba(8, 17, 62, 0.96),
    rgba(25, 8, 60, 0.94)
  );
  color: #fff;
  box-shadow: inset 0 0 14px rgba(38, 66, 156, 0.2);
  transition: 0.2s;
}
.ticker-game:hover,
.ticker-game:focus-visible {
  border-color: #62ddff;
  box-shadow: 0 0 14px rgba(65, 126, 255, 0.55);
  outline: none;
  transform: translateY(-2px);
}
.ticker-game img {
  width: 82px;
  height: 58px;
  object-fit: cover;
}
.ticker-game span {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 7px 9px;
}
.ticker-game strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
}
.ticker-game small {
  color: #ffc83d;
  font-size: 9px;
}
@keyframes shelfTicker {
  to {
    transform: translateX(-50%);
  }
}
.shelf-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 9px;
}
.shelf-header h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-size: clamp(18px, 1.35vw, 23px);
}
.shelf-header h2 span {
  color: #9e6cff;
  filter: drop-shadow(0 0 7px #624cff);
}
.shelf-header a {
  flex: 0 0 auto;
  padding: 8px 15px;
  border: 1px solid #5839bd;
  border-radius: 999px;
  color: #d8d2ff;
  font-size: 12px;
  background: rgba(39, 18, 102, 0.45);
  transition: 0.2s;
}
.shelf-header a:hover {
  border-color: #69d9ff;
  box-shadow: 0 0 12px rgba(78, 143, 255, 0.55);
}
.shelf-carousel-wrap {
  position: relative;
}
.shelf-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(105px, 47%);
  gap: clamp(10px, 0.9vw, 16px);
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.shelf-carousel::-webkit-scrollbar {
  display: none;
}
@media (min-width: 901px) {
  .game-shelf-vertical {
    padding: clamp(9px, 0.7vw, 12px);
    border-radius: 14px;
  }
  .game-shelf-vertical .shelf-header {
    display: flex;
    justify-content: space-between;
    gap: 7px;
    min-height: 28px;
    margin-bottom: 10px;
  }
  .game-shelf-vertical .shelf-header h2 {
    min-width: 0;
    gap: 6px;
    font-size: clamp(13px, 1vw, 17px);
    line-height: 1.15;
    white-space: nowrap;
  }
  .game-shelf-vertical .shelf-header a {
    flex: 0 0 auto;
    padding: 5px 8px;
    font-size: 9px;
    white-space: nowrap;
  }
  .game-shelf-vertical .shelf-carousel {
    display: grid;
    grid-auto-flow: row;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
    scroll-snap-type: none;
  }
  .game-shelf-vertical .shelf-card,
  .game-shelf-vertical .shelf-card:only-child {
    display: grid;
    aspect-ratio: auto;
    border-radius: 10px;
  }
  .game-shelf-vertical .shelf-card img {
    aspect-ratio: 16/9;
  }
  .game-shelf-vertical .shelf-card-info {
    position: relative;
    inset: auto;
    display: grid;
    gap: 2px;
    padding: 7px 8px;
    background: rgba(5, 7, 34, 0.98);
    opacity: 1;
    transform: none;
  }
  .game-shelf-vertical .shelf-card-info strong {
    font-size: 11px;
    text-align: center;
  }
  .game-shelf-vertical .shelf-card-info small {
    font-size: 9px;
    text-align: center;
  }
}
.shelf-carousel:has(> .shelf-card:only-child) {
  grid-auto-columns: 100%;
}
.shelf-card {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid #3155b8;
  border-radius: 10px;
  background: #080d31;
  scroll-snap-align: start;
  isolation: isolate;
  box-shadow:
    inset 0 0 14px rgba(15, 28, 91, 0.65),
    0 7px 18px rgba(0, 0, 16, 0.34);
  transition:
    transform 0.22s,
    border-color 0.22s,
    box-shadow 0.22s;
}
.shelf-card:only-child {
  aspect-ratio: 2.2/1;
}
.shelf-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition:
    transform 0.35s,
    filter 0.35s;
}
.shelf-card-info {
  position: absolute;
  z-index: 2;
  inset: auto 0 0;
  display: grid;
  gap: 4px;
  padding: 31% 10px 9px;
  background: linear-gradient(
    0deg,
    rgba(2, 4, 24, 0.98),
    rgba(3, 7, 39, 0.76) 55%,
    transparent
  );
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.24s,
    transform 0.24s;
}
.shelf-card-info strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: clamp(12px, 0.95vw, 16px);
}
.shelf-card-info small {
  color: #d9dcf1;
}
.shelf-card-info b {
  color: #ffca35;
}
.shelf-card:hover,
.shelf-card:focus-visible {
  border-color: #66d9ff;
  box-shadow:
    0 0 18px rgba(55, 133, 255, 0.65),
    0 0 28px rgba(127, 52, 255, 0.3);
  outline: none;
  transform: translateY(-4px);
}
.shelf-card:hover img,
.shelf-card:focus-visible img {
  transform: scale(1.07);
  filter: brightness(0.72) saturate(1.08);
}
.shelf-card:hover .shelf-card-info,
.shelf-card:focus-visible .shelf-card-info {
  opacity: 1;
  transform: none;
}
.shelf-arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  display: grid;
  place-items: center;
  width: 34px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(104, 151, 255, 0.75);
  border-radius: 9px;
  background: rgba(6, 12, 54, 0.9);
  box-shadow: 0 0 14px rgba(57, 91, 255, 0.45);
  color: #fff;
  font: 28px/1 Arial;
  cursor: pointer;
  transform: translateY(-50%);
  transition: 0.2s;
}
.shelf-arrow:hover {
  border-color: #78e3ff;
  background: #35219c;
}
.shelf-arrow[hidden] {
  display: none;
}
.shelf-arrow:disabled {
  opacity: 0.28;
  cursor: default;
}
.shelf-prev {
  left: -18px;
}
.shelf-next {
  right: -18px;
}
@media (max-width: 900px) {
  main:has(> .home-stage) {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    background-position: center top, center 520px;
    background-size: 100% 100%, auto max(980px, 115vw);
    background-repeat: no-repeat, repeat-y;
  }
  .home-world-layout {
    display: contents;
  }
  .mobile-home {
    display: contents;
  }
  .mobile-hero {
    order: 1;
  }
  .home-game-content {
    order: 2;
  }
  .category-shelves {
    order: 3;
    display: grid;
    margin-top: 0;
    padding: 24px 16px 48px;
    gap: 14px;
  }
  .category-rail {
    display: contents;
  }
  .game-shelf,
  .game-shelf:nth-child(n),
  .shelf-wide {
    grid-column: auto;
    grid-row: auto;
  }
  .game-shelf:nth-child(n)::before,
  .game-shelf:nth-child(n)::after {
    display: none;
  }
  .shelf-carousel {
    grid-auto-columns: clamp(145px, 42vw, 210px);
  }
  .shelf-wide {
    order: -1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 0 16px;
    padding: 12px;
  }
  .shelf-wide .shelf-header {
    display: flex;
  }
  .ticker-game {
    grid-template-columns: 70px 105px;
  }
  .ticker-game img {
    width: 70px;
    height: 52px;
  }
  .shelf-prev {
    left: -8px;
  }
  .shelf-next {
    right: -8px;
  }
  .mobile-home .games-section {
    display: none;
  }
}
@media (hover: none) {
  .shelf-card-info {
    opacity: 1;
    transform: none;
  }
}
.game-hit {
  z-index: 4;
}
.hit-0 {
  left: 1.8%;
  top: 4.85%;
  width: 11%;
  height: 33.6%;
}
.hit-1 {
  left: 13.2%;
  top: 12%;
  width: 7.8%;
  height: 26.67%;
}
.hit-2 {
  left: 21%;
  top: 15.73%;
  width: 6.7%;
  height: 23.47%;
}
.hit-3 {
  left: 72.5%;
  top: 12.53%;
  width: 8%;
  height: 26.67%;
}
.hit-4 {
  left: 81%;
  top: 9.33%;
  width: 8%;
  height: 30.93%;
}
.hit-5 {
  left: 90%;
  top: 4.53%;
  width: 8%;
  height: 35.2%;
}
.hit-6 {
  left: 6.4%;
  top: 55.2%;
  width: 12.3%;
  height: 16.53%;
}
.hit-7 {
  left: 19.6%;
  top: 55.2%;
  width: 11%;
  height: 16.53%;
}
.hit-8 {
  left: 31.7%;
  top: 55.2%;
  width: 11%;
  height: 16.53%;
}
.hit-9 {
  left: 44.2%;
  top: 55.2%;
  width: 11%;
  height: 16.53%;
}
.hit-10 {
  left: 56.5%;
  top: 55.2%;
  width: 10.5%;
  height: 16.53%;
}
.hit-11 {
  left: 67.7%;
  top: 55.2%;
  width: 10.8%;
  height: 16.53%;
}
.hit-12 {
  left: 79.1%;
  top: 55.2%;
  width: 10.7%;
  height: 16.53%;
}
.hit-13 {
  left: 90.2%;
  top: 55.2%;
  width: 8.8%;
  height: 16.53%;
}
.category-stage .category-card {
  top: 46.67%;
  height: 36.27%;
}
.dynamic-content {
  color: #1c25a4;
}

/* Reusable Geometry Dash SubZero header */
.site-header {
  height: 64px;
  padding: 0 clamp(18px, 4vw, 64px);
  gap: 24px;
  background: linear-gradient(
    90deg,
    rgba(3, 4, 25, 0.98),
    rgba(7, 9, 40, 0.96)
  );
  box-shadow: 0 8px 30px rgba(2, 4, 28, 0.34);
}
.brand {
  font-size: 24px;
}
.brand-mark {
  width: 58px;
  height: 42px;
  display: grid;
  place-items: center;
  font-size: 32px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(145deg, #6f3cff, #d040ff);
  box-shadow: 0 0 18px rgba(123, 62, 255, 0.72);
  transform: rotate(-4deg);
}
.search {
  height: 38px;
  min-width: 230px;
  max-width: 310px;
  background: rgba(12, 15, 49, 0.82);
}
.search-icon {
  width: 15px;
  height: 15px;
  border: 2px solid #eef;
  border-radius: 50%;
  position: relative;
  flex: 0 0 auto;
}
.search-icon:after {
  content: "";
  position: absolute;
  width: 7px;
  height: 2px;
  background: #eef;
  right: -5px;
  bottom: -2px;
  transform: rotate(45deg);
  border-radius: 2px;
}
.category-nav {
  gap: clamp(12px, 1.55vw, 28px) !important;
  justify-content: flex-start !important;
  overflow: hidden;
}
.category-nav a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 22px 0 !important;
}
.category-nav a.active {
  position: relative;
  background: linear-gradient(180deg, rgba(73, 57, 255, 0.22), transparent);
  border-bottom: 0 !important;
}
.category-nav a.active:after {
  content: "";
  position: absolute;
  left: 5%;
  right: 5%;
  bottom: 6px;
  height: 2px;
  border-radius: 2px;
  background: #536bff;
  box-shadow: 0 0 9px #536bff;
}
.category-nav img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}
.category-icon {
  font-size: 14px;
}
@media (max-width: 1200px) and (min-width: 901px) {
  .site-header {
    gap: 14px;
    padding-inline: 22px;
  }
  .brand {
    font-size: 20px;
  }
  .brand-mark {
    width: 45px;
    height: 36px;
    font-size: 26px;
  }
  .search {
    min-width: 180px;
    max-width: 230px;
  }
  .category-nav {
    gap: 14px !important;
  }
  .category-nav a {
    font-size: 12px;
  }
  .category-icon,
  .category-nav img {
    display: none;
  }
}
.home-game-content {
  position: relative;
  grid-column: 2;
  grid-row: 2;
  align-self: stretch;
  width: 100%;
  margin: 0;
  padding: clamp(24px, 2vw, 36px);
  overflow: hidden;
  border: 1px solid rgba(102, 139, 255, 0.62);
  border-radius: 26px;
  background:
    radial-gradient(circle at 50% 0, rgba(66, 87, 203, 0.2), transparent 32%),
    linear-gradient(
      155deg,
      rgba(10, 16, 61, 0.94),
      rgba(8, 8, 38, 0.96) 52%,
      rgba(20, 7, 53, 0.95)
    );
  box-shadow:
    inset 0 0 0 1px rgba(173, 203, 255, 0.06),
    inset 0 0 55px rgba(26, 48, 133, 0.2),
    0 22px 70px rgba(0, 0, 25, 0.38),
    0 0 32px rgba(74, 66, 255, 0.16);
  backdrop-filter: blur(14px);
}
.home-game-content::before {
  display: inline-flex;
  margin: -10px 0 25px;
  padding: 7px 12px;
  border: 1px solid rgba(87, 205, 255, 0.46);
  border-radius: 999px;
  color: #8fe8ff;
  background: rgba(15, 49, 105, 0.42);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.8px;
  box-shadow: 0 0 16px rgba(56, 140, 255, 0.22);
}
.home-game-content::after {
  content: "";
  position: absolute;
  inset: 0 18% auto;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent,
    #42d9ff,
    #9257ff,
    #f05cff,
    transparent
  );
  filter: drop-shadow(0 0 6px #586dff);
}
.game-article-heading {
  display: block;
  height: auto;
  padding: 0;
  background: none;
  border: 0;
}
.game-article-heading span {
  color: #af78ff;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.game-article-heading h1 {
  margin: 7px 0 10px;
  font-size: clamp(30px, 2.6vw, 46px);
  line-height: 1.05;
  text-shadow: 0 4px 24px rgba(91, 88, 255, 0.32);
}
.game-article-heading p {
  color: #b7b9d3;
}
.home-game-content .game-description,
.home-game-content .dynamic-content {
  color: #bdc5e4;
  line-height: 1.6;
}
.home-game-content .game-description p {
  margin: 0;
}
.home-game-content .dynamic-content h2 {
  margin: 22px 0 10px;
}
.home-game-content .dynamic-content p {
  margin: 0 0 12px;
}
.home-game-content .dynamic-content a {
  color: #78a5ff;
  text-shadow: 0 0 12px rgba(72, 103, 255, 0.32);
}
.comments-section {
  margin-top: clamp(32px, 3vw, 50px);
  padding-top: clamp(24px, 2vw, 34px);
  border-top: 1px solid rgba(86, 104, 197, 0.42);
}
.category-shelves,
.mobile-home,
.home-game-content,
.intro,
.site-footer {
  content-visibility: auto;
  contain-intrinsic-size: 600px;
}
.comments-section form {
  margin-bottom: 24px;
  padding: clamp(14px, 1.4vw, 22px);
  border: 1px solid rgba(76, 97, 190, 0.4);
  border-radius: 16px;
  background: rgba(5, 10, 42, 0.48);
}
.comments-section .comment-error {
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 92, 118, 0.55);
  color: #ffb3c0;
  background: rgba(112, 16, 40, 0.3);
}
.comments-section .primary {
  justify-self: start;
}
.comments-section .comment p {
  margin-bottom: 0;
}
@media (max-width: 900px) {
  .home-game-content {
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
    min-width: 0;
    margin: 20px auto;
    padding: 26px 20px;
    grid-column: auto;
    grid-row: auto;
    border-radius: 20px;
  }
  .home-game-content::before {
    margin-top: -4px;
  }
  .home-game-content h1,
  .home-game-content h2,
  .home-game-content p,
  .home-game-content .dynamic-content {
    overflow-wrap: anywhere;
  }
  .shelf-header {
    gap: 8px;
  }
  .shelf-header h2 {
    font-size: 17px;
  }
  .shelf-header a {
    padding: 7px 10px;
    font-size: 11px;
  }
  .shelf-carousel:has(> .shelf-card:only-child) {
    grid-auto-columns: clamp(145px, 42vw, 210px);
  }
  .shelf-card:only-child {
    aspect-ratio: 1;
  }
}

/* Unified sci-fi geometry for the game information world */
.home-world-layout {
  --sci-cut: 14px;
  --sci-cut-sm: 8px;
  --sci-cyan: #43d9ff;
  --sci-blue: #4f6cff;
  --sci-violet: #a54dff;
}
.home-world-layout .game-shelf,
.home-world-layout .home-game-content {
  border-radius: 0;
  clip-path: polygon(
    var(--sci-cut) 0,
    calc(50% - 34px) 0,
    calc(50% - 26px) 4px,
    calc(50% + 26px) 4px,
    calc(50% + 34px) 0,
    calc(100% - var(--sci-cut)) 0,
    100% var(--sci-cut),
    100% calc(100% - var(--sci-cut)),
    calc(100% - var(--sci-cut)) 100%,
    var(--sci-cut) 100%,
    0 calc(100% - var(--sci-cut)),
    0 var(--sci-cut)
  );
  border-color: rgba(84, 144, 255, 0.72);
  background:
    linear-gradient(
        90deg,
        transparent 0,
        rgba(57, 218, 255, 0.12) 20%,
        rgba(150, 73, 255, 0.14) 80%,
        transparent 100%
      )
      top/100% 3px no-repeat,
    radial-gradient(circle at 50% 0, rgba(73, 91, 220, 0.2), transparent 38%),
    linear-gradient(
      145deg,
      rgba(8, 20, 69, 0.96),
      rgba(10, 9, 48, 0.97) 56%,
      rgba(29, 7, 62, 0.95)
    );
  box-shadow:
    inset 0 0 0 1px rgba(170, 211, 255, 0.06),
    inset 0 0 30px rgba(44, 83, 185, 0.18),
    0 12px 34px rgba(0, 0, 25, 0.34);
}
.home-world-layout .home-game-content {
  border-color: rgba(97, 164, 255, 0.82);
  box-shadow:
    inset 0 0 0 1px rgba(173, 223, 255, 0.08),
    inset 0 0 55px rgba(35, 66, 175, 0.22),
    0 18px 58px rgba(0, 0, 25, 0.42),
    0 0 28px rgba(82, 70, 255, 0.16);
}
.home-world-layout .shelf-header h2 {
  color: #f4f7ff;
  letter-spacing: 0.2px;
  text-shadow: 0 0 12px rgba(89, 135, 255, 0.38);
}
.home-world-layout .shelf-header h2::before {
  content: "";
  width: 3px;
  height: 15px;
  background: linear-gradient(var(--sci-cyan), var(--sci-violet));
  box-shadow: 0 0 8px var(--sci-blue);
  clip-path: polygon(0 0, 100% 3px, 100% 100%, 0 calc(100% - 3px));
}
.home-world-layout .shelf-header a,
.home-game-content .primary {
  border-radius: 0;
  clip-path: polygon(
    var(--sci-cut-sm) 0,
    100% 0,
    100% calc(100% - var(--sci-cut-sm)),
    calc(100% - var(--sci-cut-sm)) 100%,
    0 100%,
    0 var(--sci-cut-sm)
  );
  border-color: rgba(92, 140, 255, 0.82);
  background: linear-gradient(
    135deg,
    rgba(18, 55, 122, 0.86),
    rgba(72, 25, 143, 0.82)
  );
  box-shadow:
    inset 0 0 10px rgba(86, 166, 255, 0.15),
    0 0 10px rgba(81, 81, 255, 0.18);
}
.home-world-layout .shelf-header a:hover,
.home-world-layout .shelf-header a:focus-visible {
  border-color: var(--sci-cyan);
  color: #fff;
  background: linear-gradient(135deg, #164c9e, #652bb5);
  outline: none;
}
.home-world-layout .shelf-card,
.home-world-layout .ticker-game {
  --card-cut: 7px;
  border-radius: 0;
  clip-path: polygon(
    var(--card-cut) 0,
    calc(100% - var(--card-cut)) 0,
    100% var(--card-cut),
    100% calc(100% - var(--card-cut)),
    calc(100% - var(--card-cut)) 100%,
    var(--card-cut) 100%,
    0 calc(100% - var(--card-cut)),
    0 var(--card-cut)
  );
  border-color: rgba(68, 129, 234, 0.78);
  background: linear-gradient(
    145deg,
    rgba(7, 18, 66, 0.98),
    rgba(22, 7, 53, 0.98)
  );
}
.home-world-layout .shelf-card:hover,
.home-world-layout .ticker-game:hover {
  border-color: var(--sci-cyan);
  box-shadow:
    0 0 16px rgba(63, 190, 255, 0.55),
    0 0 24px rgba(145, 64, 255, 0.24);
}
.home-game-content::before {
  border-radius: 0;
  clip-path: polygon(
    7px 0,
    100% 0,
    100% calc(100% - 7px),
    calc(100% - 7px) 100%,
    0 100%,
    0 7px
  );
}
.home-game-content .comments-section {
  position: relative;
  border-top: 0;
}
.home-game-content .comments-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    var(--sci-cyan),
    rgba(100, 89, 255, 0.9) 48%,
    var(--sci-violet),
    transparent
  );
  box-shadow: 0 0 8px rgba(81, 111, 255, 0.55);
}
.home-game-content .comments-section form,
.home-game-content .comment,
.home-game-content input,
.home-game-content textarea {
  border-radius: 0;
  clip-path: polygon(
    9px 0,
    100% 0,
    100% calc(100% - 9px),
    calc(100% - 9px) 100%,
    0 100%,
    0 9px
  );
}
.home-game-content .comments-section form {
  border-color: rgba(72, 129, 222, 0.58);
  background: linear-gradient(
    145deg,
    rgba(5, 18, 59, 0.7),
    rgba(25, 8, 57, 0.62)
  );
}
.home-game-content input:focus,
.home-game-content textarea:focus {
  border-color: var(--sci-cyan);
  box-shadow:
    0 0 0 1px rgba(67, 217, 255, 0.18),
    0 0 14px rgba(75, 91, 255, 0.22);
  outline: none;
}
.home-center-column {
  grid-column: 2;
  grid-row: 2;
  display: grid;
  align-self: start;
  gap: var(--world-gap);
  min-width: 0;
}
.home-center-column .home-game-content {
  grid-column: auto;
  grid-row: auto;
  align-self: auto;
}
.game-info-collapsible {
  position: relative;
  overflow: hidden;
  transition: max-height 0.38s ease;
}
.game-info-collapsible.is-collapsed {
  max-height: 330px;
  -webkit-mask-image: linear-gradient(#000 0, #000 82%, transparent 100%);
  mask-image: linear-gradient(#000 0, #000 82%, transparent 100%);
}
.game-info-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 9px 14px;
  border: 1px solid rgba(87, 170, 255, 0.72);
  border-radius: 0;
  color: #dff7ff;
  cursor: pointer;
  clip-path: polygon(
    8px 0,
    100% 0,
    100% calc(100% - 8px),
    calc(100% - 8px) 100%,
    0 100%,
    0 8px
  );
  background: linear-gradient(
    135deg,
    rgba(17, 63, 133, 0.9),
    rgba(75, 24, 139, 0.86)
  );
  box-shadow:
    inset 0 0 10px rgba(85, 174, 255, 0.16),
    0 0 12px rgba(74, 84, 255, 0.22);
}
.game-info-toggle:hover,
.game-info-toggle:focus-visible {
  border-color: var(--sci-cyan);
  box-shadow: 0 0 14px rgba(67, 174, 255, 0.42);
  outline: none;
}
.game-info-toggle i {
  font-style: normal;
  transition: transform 0.25s;
}
.game-info-toggle[aria-expanded="true"] i {
  transform: rotate(180deg);
}
.comments-panel {
  position: relative;
  margin: 0;
  padding: clamp(24px, 2.2vw, 38px);
  overflow: hidden;
  border: 1px solid rgba(92, 147, 244, 0.72);
  border-radius: 0;
  clip-path: polygon(
    var(--sci-cut) 0,
    calc(50% - 30px) 0,
    calc(50% - 22px) 4px,
    calc(50% + 22px) 4px,
    calc(50% + 30px) 0,
    calc(100% - var(--sci-cut)) 0,
    100% var(--sci-cut),
    100% calc(100% - var(--sci-cut)),
    calc(100% - var(--sci-cut)) 100%,
    var(--sci-cut) 100%,
    0 calc(100% - var(--sci-cut)),
    0 var(--sci-cut)
  );
  background:
    radial-gradient(circle at 50% 0, rgba(71, 80, 206, 0.18), transparent 36%),
    linear-gradient(
      150deg,
      rgba(7, 18, 62, 0.96),
      rgba(12, 8, 43, 0.97) 58%,
      rgba(28, 7, 58, 0.95)
    );
  box-shadow:
    inset 0 0 0 1px rgba(173, 223, 255, 0.06),
    inset 0 0 38px rgba(36, 67, 165, 0.16),
    0 16px 46px rgba(0, 0, 25, 0.34);
}
.comments-panel::before {
  display: inline-flex;
  margin: -5px 0 20px;
  padding: 6px 11px;
  border: 1px solid rgba(87, 205, 255, 0.46);
  color: #8fe8ff;
  background: rgba(15, 49, 105, 0.42);
  clip-path: polygon(
    7px 0,
    100% 0,
    100% calc(100% - 7px),
    calc(100% - 7px) 100%,
    0 100%,
    0 7px
  );
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.6px;
}
.comments-panel h2 {
  margin-top: 0;
}
.comments-panel form {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
  padding: clamp(14px, 1.4vw, 22px);
  border: 1px solid rgba(72, 129, 222, 0.58);
  background: linear-gradient(
    145deg,
    rgba(5, 18, 59, 0.7),
    rgba(25, 8, 57, 0.62)
  );
}
.comments-panel form,
.comments-panel .comment,
.comments-panel input,
.comments-panel textarea {
  border-radius: 0;
  clip-path: polygon(
    9px 0,
    100% 0,
    100% calc(100% - 9px),
    calc(100% - 9px) 100%,
    0 100%,
    0 9px
  );
}
.comments-panel input,
.comments-panel textarea {
  width: 100%;
  padding: 13px;
  border: 1px solid #393d76;
  background: #101330;
  color: #fff;
}
.comments-panel textarea {
  min-height: 110px;
  resize: vertical;
}
.comments-panel input:focus,
.comments-panel textarea:focus {
  border-color: var(--sci-cyan);
  box-shadow:
    0 0 0 1px rgba(67, 217, 255, 0.18),
    0 0 14px rgba(75, 91, 255, 0.22);
  outline: none;
}
.comments-panel .primary {
  justify-self: start;
  border-radius: 0;
  clip-path: polygon(
    var(--sci-cut-sm) 0,
    100% 0,
    100% calc(100% - var(--sci-cut-sm)),
    calc(100% - var(--sci-cut-sm)) 100%,
    0 100%,
    0 var(--sci-cut-sm)
  );
  border-color: rgba(92, 140, 255, 0.82);
  background: linear-gradient(
    135deg,
    rgba(18, 55, 122, 0.86),
    rgba(72, 25, 143, 0.82)
  );
}
.comments-panel .comment p {
  margin-bottom: 0;
}
@media (max-width: 900px) {
  .home-world-layout {
    --sci-cut: 10px;
  }
  .home-world-layout .home-game-content {
    border-radius: 0;
  }
  .home-center-column {
    order: 2;
    width: calc(100vw - 32px);
    margin: 20px auto;
    gap: var(--world-gap);
  }
  .home-center-column .home-game-content {
    width: 100%;
    max-width: none;
    margin: 0;
  }
  .comments-panel {
    padding: 24px 20px;
  }
}

/* Sci-fi header: same armor language as the player toolbar */
.site-header {
  --header-cyan: #43d9ff;
  --header-blue: #4e6cff;
  --header-violet: #a64dff;
  isolation: isolate;
  border-bottom: 0;
  background:
    linear-gradient(
      90deg,
      rgba(11, 23, 76, 0.18),
      transparent 24%,
      transparent 76%,
      rgba(79, 22, 126, 0.14)
    ),
    linear-gradient(180deg, rgba(4, 7, 31, 0.99), rgba(3, 4, 23, 0.98));
  box-shadow:
    inset 0 -1px rgba(83, 144, 255, 0.36),
    0 8px 30px rgba(2, 4, 28, 0.42);
}
.site-header::after {
  content: "";
  position: absolute;
  z-index: 3;
  left: 2.5%;
  right: 2.5%;
  bottom: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--header-cyan) 8%,
    var(--header-blue) 38%,
    var(--header-violet) 72%,
    var(--header-cyan) 92%,
    transparent
  );
  clip-path: polygon(
    0 1px,
    12% 1px,
    calc(12% + 8px) 0,
    calc(88% - 8px) 0,
    88% 1px,
    100% 1px,
    100% 100%,
    0 100%
  );
  filter: drop-shadow(0 0 5px rgba(74, 113, 255, 0.85));
  pointer-events: none;
}
.site-header .brand {
  position: relative;
  height: 46px;
  padding: 4px 14px 4px 4px;
  gap: 10px;
  border: 1px solid rgba(83, 127, 224, 0.42);
  border-radius: 0;
  clip-path: polygon(
    9px 0,
    100% 0,
    100% calc(100% - 9px),
    calc(100% - 9px) 100%,
    0 100%,
    0 9px
  );
  background: linear-gradient(
    135deg,
    rgba(14, 31, 91, 0.7),
    rgba(34, 10, 73, 0.56)
  );
  box-shadow: inset 0 0 14px rgba(59, 104, 215, 0.14);
}
.site-header .brand-mark {
  width: 52px;
  height: 36px;
  border: 1px solid rgba(115, 203, 255, 0.6);
  border-radius: 0;
  clip-path: polygon(
    9px 0,
    calc(100% - 5px) 0,
    100% 5px,
    100% calc(100% - 9px),
    calc(100% - 9px) 100%,
    5px 100%,
    0 calc(100% - 5px),
    0 9px
  );
  background: linear-gradient(135deg, #384fe1, #a62dea 72%, #df43f1);
  box-shadow:
    inset 0 0 10px rgba(170, 224, 255, 0.22),
    0 0 15px rgba(101, 66, 255, 0.58);
  transform: none;
  font-size: 25px;
}
.site-header .search {
  height: 40px;
  padding-inline: 14px;
  border-color: rgba(77, 132, 231, 0.65);
  border-radius: 0;
  clip-path: polygon(
    10px 0,
    calc(100% - 10px) 0,
    100% 10px,
    100% calc(100% - 10px),
    calc(100% - 10px) 100%,
    10px 100%,
    0 calc(100% - 10px),
    0 10px
  );
  background: linear-gradient(
    135deg,
    rgba(8, 20, 67, 0.94),
    rgba(21, 8, 54, 0.92)
  );
  box-shadow:
    inset 0 0 14px rgba(50, 94, 200, 0.2),
    0 0 10px rgba(62, 74, 210, 0.12);
}
.site-header .search:focus-within {
  border-color: var(--header-cyan);
  box-shadow:
    inset 0 0 14px rgba(50, 122, 220, 0.24),
    0 0 13px rgba(58, 157, 255, 0.35);
}
.site-header .search-results {
  top: 46px;
  border-radius: 0;
  clip-path: polygon(
    10px 0,
    100% 0,
    100% calc(100% - 10px),
    calc(100% - 10px) 100%,
    0 100%,
    0 10px
  );
  border-color: rgba(75, 130, 230, 0.72);
  background: rgba(5, 10, 42, 0.98);
}
.site-header .search-results img {
  border-radius: 0;
  clip-path: polygon(
    5px 0,
    100% 0,
    100% calc(100% - 5px),
    calc(100% - 5px) 100%,
    0 100%,
    0 5px
  );
}
.site-header .category-nav {
  gap: clamp(4px, 0.55vw, 10px) !important;
}
.site-header .category-nav a {
  position: relative;
  padding: 9px 8px !important;
  border: 1px solid rgba(63, 100, 181, 0.24);
  clip-path: polygon(
    6px 0,
    100% 0,
    100% calc(100% - 6px),
    calc(100% - 6px) 100%,
    0 100%,
    0 6px
  );
  background: linear-gradient(
    135deg,
    rgba(10, 31, 82, 0.22),
    rgba(43, 13, 83, 0.18)
  );
  transition:
    color 0.18s,
    border-color 0.18s,
    background 0.18s,
    box-shadow 0.18s;
}
.site-header .category-nav a:hover,
.site-header .category-nav a:focus-visible {
  color: #fff;
  border-color: rgba(73, 151, 238, 0.56);
  background: linear-gradient(
    135deg,
    rgba(16, 53, 119, 0.62),
    rgba(59, 20, 119, 0.48)
  );
  box-shadow: inset 0 0 9px rgba(65, 142, 235, 0.13);
  outline: none;
}
.site-header .category-nav a.active {
  border-color: rgba(81, 196, 255, 0.78);
  background: linear-gradient(
    135deg,
    rgba(18, 73, 149, 0.8),
    rgba(89, 28, 157, 0.7)
  );
  box-shadow:
    inset 0 0 11px rgba(67, 178, 255, 0.2),
    0 0 10px rgba(83, 79, 255, 0.25);
}
.site-header .category-nav a.active::after {
  left: 12%;
  right: 12%;
  bottom: 2px;
  height: 2px;
  border-radius: 0;
  background: linear-gradient(90deg, var(--header-cyan), var(--header-violet));
}
.site-header .nav-toggle {
  width: 34px;
  height: 34px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(80, 131, 223, 0.58);
  border-radius: 0;
  clip-path: polygon(
    8px 0,
    calc(100% - 4px) 0,
    100% 4px,
    100% calc(100% - 8px),
    calc(100% - 8px) 100%,
    4px 100%,
    0 calc(100% - 4px),
    0 8px
  );
  background: linear-gradient(
    145deg,
    rgba(10, 31, 83, 0.9),
    rgba(39, 12, 76, 0.88)
  );
  box-shadow: inset 0 0 10px rgba(74, 133, 224, 0.15);
  font-size: 17px;
}
.site-header .nav-toggle:hover {
  border-color: var(--header-cyan);
  background: linear-gradient(145deg, #174b9b, #6728a7);
  box-shadow: 0 0 12px rgba(66, 145, 255, 0.45);
}
.site-header .nav-toggle {
  display: none;
}
@media (max-width: 900px) {
  .site-header .brand {
    height: 42px;
    padding-right: 9px;
  }
  .site-header .brand-mark {
    width: 42px;
    height: 32px;
    font-size: 22px;
  }
  .site-header .category-nav {
    top: 64px;
    padding: 10px;
    background: rgba(3, 6, 29, 0.98);
    border-bottom: 1px solid rgba(74, 126, 225, 0.58);
  }
  .site-header .category-nav a {
    justify-content: center;
    padding: 12px !important;
  }
  .site-header .nav-toggle {
    display: grid;
  }
}

/* Final header layout */
.site-header {
  min-height: 72px;
  height: auto;
  display: grid;
  grid-template-columns: auto clamp(360px, 28vw, 520px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(16px, 2vw, 34px);
  padding: 8px clamp(18px, 3.5vw, 58px);
}
.site-header .brand,
.site-header .search,
.site-header .category-nav {
  min-width: 0;
}
.site-header .search {
  width: 100%;
  max-width: none;
}
.site-header .category-nav {
  width: 100%;
  justify-content: flex-end !important;
}
.site-header .category-nav a {
  min-height: 38px;
}

@media (max-width: 1200px) and (min-width: 901px) {
  .site-header {
    grid-template-columns: auto minmax(240px, 320px) minmax(0, 1fr);
    gap: 14px;
  }
}

@media (max-width: 900px) {
  .site-header {
    min-height: 64px;
    grid-template-columns: auto minmax(150px, 1fr) auto;
    gap: 12px;
    padding: 8px 15px;
  }
  .site-header .nav-toggle {
    grid-column: 3;
  }
  .site-header .category-nav {
    width: auto;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.48);
  }
}

@media (max-width: 540px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .site-header .nav-toggle {
    grid-column: 2;
  }
}

/* Reveal game metadata only on deliberate hover/focus */
@media (hover: hover) and (pointer: fine) {
  .hot-game-card strong,
  .hot-game-card small,
  .spiral-game-card span,
  .ticker-game span,
  .game-card > div,
  .game-shelf-vertical .shelf-card-info {
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
  }
  .hot-game-card:hover strong,
  .hot-game-card:hover small,
  .hot-game-card:focus-visible strong,
  .hot-game-card:focus-visible small,
  .spiral-game-card:hover span,
  .spiral-game-card:focus-visible span,
  .ticker-game:hover span,
  .ticker-game:focus-visible span,
  .game-card:hover > div,
  .game-card:focus-visible > div,
  .game-shelf-vertical .shelf-card:hover .shelf-card-info,
  .game-shelf-vertical .shelf-card:focus-visible .shelf-card-info {
    opacity: 1;
    transform: none;
  }
  .spiral-game-card img {
    height: 145px;
  }
  .spiral-game-card span {
    position: absolute;
    inset: auto 0 0;
    padding: 28px 10px 9px;
    background: linear-gradient(0deg, rgba(5, 7, 35, 0.99), rgba(5, 9, 42, 0.8) 62%, transparent);
  }
  .ticker-game {
    position: relative;
    display: block;
    width: 194px;
  }
  .ticker-game img {
    width: 100%;
    height: 58px;
  }
  .ticker-game span {
    position: absolute;
    z-index: 2;
    inset: auto 0 0;
    padding: 20px 9px 6px;
    background: linear-gradient(0deg, rgba(5, 7, 35, 0.98), rgba(5, 9, 42, 0.72) 65%, transparent);
  }
  .game-card {
    position: relative;
  }
  .game-card > div {
    position: absolute;
    z-index: 2;
    inset: auto 0 0;
    padding: 42px 13px 13px;
    background: linear-gradient(0deg, rgba(5, 7, 34, 0.99), rgba(8, 11, 48, 0.78) 60%, transparent);
  }
  .game-shelf-vertical .shelf-card-info {
    position: absolute;
    inset: auto 0 0;
    padding: 30% 8px 8px;
    background: linear-gradient(0deg, rgba(5, 7, 34, 0.99), rgba(5, 9, 42, 0.76) 58%, transparent);
  }
}

/* Universal square game-card contract: upload one square cover everywhere */
.hot-game-card,
.spiral-game-card,
.ticker-game,
.game-card,
.shelf-card,
.shelf-card:only-child,
.game-shelf-vertical .shelf-card,
.game-shelf-vertical .shelf-card:only-child {
  aspect-ratio: 1 / 1;
}
.hot-slot-0,
.hot-slot-1,
.hot-slot-2,
.hot-slot-3,
.hot-slot-4,
.hot-slot-5 {
  height: auto;
}
.hot-game-card img,
.spiral-game-card img,
.ticker-game img,
.game-card img,
.shelf-card img,
.game-shelf-vertical .shelf-card img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.spiral-game-card span,
.ticker-game span,
.game-card > div,
.game-shelf-vertical .shelf-card-info {
  position: absolute;
  z-index: 2;
  inset: auto 0 0;
  background: linear-gradient(0deg, rgba(4, 6, 31, 0.99), rgba(5, 9, 42, 0.78) 62%, transparent);
}
.spiral-game-card span {
  padding: 30px 10px 9px;
}
.ticker-game {
  display: block;
  width: 76px;
}
.ticker-game span {
  padding: 28px 8px 7px;
}
.game-card {
  position: relative;
}
.game-card > div {
  padding: 42px 13px 13px;
}
.game-shelf-vertical .shelf-card-info {
  padding: 32% 8px 8px;
}
@media (min-width: 901px) {
  .game-shelf-vertical .shelf-carousel {
    justify-items: center;
  }
  .game-shelf-vertical .shelf-card,
  .game-shelf-vertical .shelf-card:only-child {
    width: 100%;
  }
}

/* Dynamic footer */
.site-footer {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 28px;
  padding: 42px clamp(22px, 6vw, 110px) 22px;
  border-top: 1px solid rgba(67, 103, 190, 0.42);
  background: linear-gradient(180deg, rgba(3, 5, 24, 0.98), #02030f);
}
.footer-socials,
.footer-pages {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-socials a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(70, 101, 167, 0.55);
  border-radius: 50%;
  color: #8ee62d;
  background: rgba(5, 10, 32, 0.72);
  font-size: 21px;
  transition: 0.2s;
}
.footer-socials a:hover { border-color: #62ddff; box-shadow: 0 0 15px rgba(78, 160, 255, 0.5); transform: translateY(-3px); }
.footer-socials img { width: 22px; height: 22px; object-fit: contain; }
.footer-identity { text-align: center; }
.footer-logo { display: inline-flex; align-items: center; justify-content: center; gap: 9px; color: #fff; font-size: 21px; }
.footer-logo img { max-width: 150px; max-height: 56px; object-fit: contain; }
.footer-identity p { margin: 13px 0 0; color: #9ca8ce; }
.footer-pages { justify-content: flex-end; flex-wrap: wrap; }
.footer-pages a { margin: 0; color: #c5cceb; }
.site-footer > small { grid-column: 1 / -1; padding-top: 20px; border-top: 1px dashed rgba(73, 94, 151, 0.38); text-align: center; }

/* Geometry Dash SubZero identity */
.site-header .brand {
  width: auto;
  height: 54px;
  padding: 0 16px 0 7px;
  font-size: clamp(17px, 1.35vw, 23px);
}
.site-header .brand-cube,
.footer-logo-cube {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  color: #9df4ff;
  border: 1px solid rgba(124, 217, 255, 0.72);
  background: linear-gradient(145deg, #2e52df, #9b31e8 70%, #ed43da);
  box-shadow: inset 0 0 10px rgba(215, 245, 255, 0.35), 0 0 16px rgba(112, 63, 255, 0.5);
  clip-path: polygon(8px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 6px 100%, 0 calc(100% - 6px), 0 8px);
  transform: rotate(-3deg);
}
.site-header .brand strong span,
.footer-logo strong span { color: #a94cff; }
.footer-logo {
  font-size: clamp(18px, 1.7vw, 24px);
  font-weight: 800;
}
.footer-logo-cube {
  width: 38px;
  height: 38px;
}
@media (max-width: 900px) {
  .site-header .brand {
    height: 46px;
    padding: 0 9px 0 5px;
    font-size: 15px;
  }
  .site-header .brand-cube { width: 34px; height: 34px; }
}

/* Sci-fi static pages */
.not-found-page {
  min-height: calc(100vh - 64px);
  padding: clamp(45px, 6vw, 95px) 20px 100px;
  background:
    radial-gradient(circle at 50% 18%, rgba(80, 64, 220, 0.3), transparent 30%),
    linear-gradient(180deg, rgba(3, 5, 28, 0.2), rgba(2, 4, 24, 0.76)),
    url("../images/category-world-continuation-v3.jpg") center top / 100% auto repeat-y;
}
.not-found-hero { width: min(850px, 100%); margin: 0 auto; text-align: center; }
.not-found-code { display: flex; align-items: center; justify-content: center; gap: clamp(10px, 2vw, 28px); color: #fff; font-size: clamp(90px, 15vw, 190px); font-weight: 900; line-height: 0.8; text-shadow: 0 0 28px rgba(83, 116, 255, 0.55); }
.not-found-code i { display: grid; place-items: center; width: clamp(70px, 10vw, 125px); aspect-ratio: 1; border: 2px solid #65ddff; color: #bd6cff; clip-path: polygon(18% 0,82% 0,100% 18%,100% 82%,82% 100%,18% 100%,0 82%,0 18%); background: rgba(18, 23, 81, 0.78); box-shadow: inset 0 0 25px rgba(72, 176, 255, 0.32),0 0 28px rgba(109, 71, 255, 0.48); font-size: 0.42em; font-style: normal; }
.not-found-kicker,.not-found-suggestions header span { color: #b274ff; font-size: 12px; letter-spacing: 3px; }
.not-found-hero h1 { margin: 12px 0; font-size: clamp(34px, 5vw, 58px); }
.not-found-hero > p:not(.not-found-kicker) { max-width: 680px; margin: 0 auto; color: #bfc8e7; font-size: 17px; line-height: 1.7; }
.not-found-actions { display: flex; justify-content: center; gap: 13px; margin-top: 28px; flex-wrap: wrap; }
.not-found-actions a { display: inline-flex; align-items: center; min-height: 46px; padding: 11px 20px; border-radius: 0; }
.not-found-suggestions { width: min(1120px, 100%); margin: 75px auto 0; padding-top: 30px; border-top: 1px solid rgba(88, 112, 205, 0.42); }
.not-found-suggestions header { margin-bottom: 20px; text-align: center; }
.not-found-suggestions h2 { margin: 8px 0 0; font-size: clamp(25px, 3vw, 36px); }
.not-found-game-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 18px); }
.not-found-game-grid .shelf-card { width: 100%; }
@media (max-width: 900px) {
  .not-found-page { background-image: radial-gradient(circle at 50% 15%,rgba(80,64,220,.3),transparent 28%),linear-gradient(180deg,rgba(3,5,28,.2),rgba(2,4,24,.76)),url("../images/category-world-vertical-v2.png"); }
  .not-found-game-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 540px) {
  .not-found-game-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .not-found-code { font-size: 82px; }
}

.static-page {
  min-height: calc(100vh - 64px);
  padding: clamp(35px, 5vw, 80px) 20px 90px;
  background:
    linear-gradient(180deg, rgba(3, 5, 28, 0.34), rgba(2, 4, 24, 0.72)),
    url("../images/category-world-continuation-v3.jpg") center top / 100% auto repeat-y;
}
.static-page-shell { width: min(1080px, 100%); margin: 0 auto; }
.static-breadcrumb { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; color: #aab5d8; }
.static-breadcrumb a { color: #73dbff; }
.static-page-content {
  --page-cut: 18px;
  padding: clamp(28px, 4vw, 58px);
  border: 1px solid rgba(85, 148, 255, 0.7);
  clip-path: polygon(var(--page-cut) 0, 100% 0, 100% calc(100% - var(--page-cut)), calc(100% - var(--page-cut)) 100%, 0 100%, 0 var(--page-cut));
  background: linear-gradient(145deg, rgba(8, 20, 69, 0.94), rgba(20, 7, 53, 0.96));
  box-shadow: inset 0 0 38px rgba(45, 88, 190, 0.18), 0 18px 55px rgba(0, 0, 25, 0.45);
}
.static-page-kicker { color: #b274ff; font-size: 12px; letter-spacing: 3px; }
.static-page-content h1 { margin: 10px 0 30px; font-size: clamp(34px, 5vw, 58px); }
.static-page-body { color: #c2cae7; font-size: 17px; line-height: 1.75; }
.static-page-body h2,.static-page-body h3 { margin-top: 32px; color: #f3f6ff; }
.static-page-body a { color: #69ddff; }
@media (max-width: 760px) {
  .site-footer { grid-template-columns: 1fr; text-align: center; }
  .footer-socials,.footer-pages { justify-content: center; }
  .static-page { background-image: linear-gradient(180deg,rgba(3,5,28,.34),rgba(2,4,24,.72)),url("../images/category-world-vertical-v2.png"); }
}

/* Global sci-fi back-to-top control */
.back-to-top {
  position: fixed;
  z-index: 300;
  right: clamp(16px, 2vw, 30px);
  bottom: clamp(16px, 2vw, 30px);
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(86, 205, 255, 0.9);
  color: #f5fbff;
  background: linear-gradient(135deg, rgba(18, 67, 145, 0.96), rgba(89, 30, 155, 0.96));
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
  box-shadow:
    inset 0 0 13px rgba(75, 211, 255, 0.2),
    0 0 12px rgba(65, 178, 255, 0.45),
    0 0 24px rgba(145, 64, 255, 0.25);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px) scale(0.88);
  transition: opacity 0.22s, transform 0.22s, filter 0.22s;
}
.back-to-top::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-top: 1px solid rgba(143, 237, 255, 0.65);
  border-bottom: 1px solid rgba(196, 102, 255, 0.45);
  pointer-events: none;
}
.back-to-top span {
  position: relative;
  font: 800 25px/1 Arial, sans-serif;
  text-shadow: 0 0 9px #69dcff;
  transform: translateY(-1px);
}
.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
.back-to-top:hover,
.back-to-top:focus-visible {
  filter: brightness(1.22);
  outline: none;
  transform: translateY(-4px);
  box-shadow:
    inset 0 0 16px rgba(75, 211, 255, 0.3),
    0 0 18px rgba(65, 211, 255, 0.7),
    0 0 30px rgba(164, 72, 255, 0.38);
}
@media (prefers-reduced-motion: reduce) {
  .back-to-top {
    transition: none;
  }
}
