@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Rajdhani:wght@500;600;700&display=swap");

:root {
  --bg: #000000;
  --surface: rgba(7, 22, 48, 0.92);
  --surface-soft: rgba(9, 27, 58, 0.82);
  --surface-hover: rgba(15, 42, 82, 0.97);

  --orange: #299bd6;
  --orange-bright: #63c9e8;
  --orange-soft: rgba(41, 155, 214, 0.2);

  --white: #f5f5f5;
  --text: #eeeeee;
  --muted: #a8a8a8;
  --muted-dark: #b0b0b0;

  --border: rgba(55, 153, 205, 0.34);
  --border-strong: rgba(99, 201, 232, 0.72);

  --body-font: "Inter", Arial, Helvetica, sans-serif;
  --display-font: "Rajdhani", "Inter", Arial, Helvetica, sans-serif;

  --nav-height: 78px;
}

/* ================================
   RESET / GLOBAL
================================ */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body-font);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  cursor: none;
}

a,
button,
input,
textarea,
select,
label {
  cursor: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

::selection {
  color: #050505;
  background: var(--orange);
}

/* ================================
   CUSTOM CURSOR
================================ */

.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  pointer-events: none;
  z-index: 999999;
  opacity: 0;
  visibility: hidden;
  will-change: transform;
  box-shadow:
    0 0 6px rgba(255, 255, 255, 0.22),
    0 0 15px rgba(0, 200, 255, 0.12);
  transition:
    width 0.18s ease,
    height 0.18s ease,
    margin 0.18s ease,
    opacity 0.18s ease,
    visibility 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.custom-cursor.visible {
  opacity: 1;
  visibility: visible;
}

.cursor-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--orange);
  box-shadow:
    0 0 7px var(--orange),
    0 0 15px rgba(0, 200, 255, 0.65);
}

.custom-cursor.hovering {
  width: 42px;
  height: 42px;
  margin: -21px 0 0 -21px;
  border-color: rgba(255, 255, 255, 0.95);
  box-shadow:
    0 0 10px rgba(255, 255, 255, 0.22),
    0 0 22px rgba(0, 200, 255, 0.28);
}

.custom-cursor.hovering .cursor-dot {
  width: 4px;
  height: 4px;
}

.custom-cursor.clicking {
  width: 21px;
  height: 21px;
  margin: -10.5px 0 0 -10.5px;
  border-color: var(--orange-bright);
}

.custom-cursor.clicking .cursor-dot {
  width: 7px;
  height: 7px;
}

/* ================================
   BACKGROUND TUNNEL
================================ */

#grid {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(1.5px 1.5px at 4% 12%, rgba(255, 255, 255, 0.58) 50%, transparent 100%),
    radial-gradient(1px 1px at 8% 18%, rgba(255, 255, 255, 0.62) 50%, transparent 100%),
    radial-gradient(1px 1px at 13% 46%, rgba(190, 220, 255, 0.48) 50%, transparent 100%),
    radial-gradient(1px 1px at 17% 88%, rgba(255, 255, 255, 0.42) 50%, transparent 100%),
    radial-gradient(1px 1px at 19% 72%, rgba(170, 205, 255, 0.5) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 24% 23%, rgba(255, 255, 255, 0.55) 50%, transparent 100%),
    radial-gradient(1px 1px at 28% 58%, rgba(190, 220, 255, 0.48) 50%, transparent 100%),
    radial-gradient(1px 1px at 31% 91%, rgba(255, 255, 255, 0.44) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 34% 31%, rgba(255, 255, 255, 0.5) 50%, transparent 100%),
    radial-gradient(1px 1px at 39% 68%, rgba(190, 220, 255, 0.5) 50%, transparent 100%),
    radial-gradient(1px 1px at 43% 9%, rgba(255, 255, 255, 0.46) 50%, transparent 100%),
    radial-gradient(1px 1px at 48% 84%, rgba(170, 205, 255, 0.45) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 53% 42%, rgba(255, 255, 255, 0.56) 50%, transparent 100%),
    radial-gradient(1px 1px at 57% 17%, rgba(190, 220, 255, 0.48) 50%, transparent 100%),
    radial-gradient(1px 1px at 61% 73%, rgba(255, 255, 255, 0.42) 50%, transparent 100%),
    radial-gradient(1px 1px at 66% 16%, rgba(255, 255, 255, 0.55) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 70% 54%, rgba(190, 220, 255, 0.5) 50%, transparent 100%),
    radial-gradient(1px 1px at 74% 91%, rgba(255, 255, 255, 0.46) 50%, transparent 100%),
    radial-gradient(1px 1px at 79% 63%, rgba(170, 205, 255, 0.5) 50%, transparent 100%),
    radial-gradient(1px 1px at 83% 28%, rgba(255, 255, 255, 0.48) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 87% 78%, rgba(190, 220, 255, 0.52) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 91% 38%, rgba(255, 255, 255, 0.5) 50%, transparent 100%),
    radial-gradient(1px 1px at 96% 8%, rgba(255, 255, 255, 0.45) 50%, transparent 100%),
    radial-gradient(1px 1px at 97% 86%, rgba(190, 220, 255, 0.45) 50%, transparent 100%),
    #000000;
}

#grid .tunnel-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0.9;
}

#grid::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      circle at center,
      transparent 0%,
      rgba(0, 0, 0, 0.04) 28%,
      rgba(0, 0, 0, 0.45) 70%,
      rgba(0, 0, 0, 0.94) 100%
    );
}

#grid::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(
      rgba(255, 255, 255, 0.012) 50%,
      transparent 50%
    );
  background-size: 100% 4px;
  opacity: 0.16;
}

#grid.overload {
  animation: gridOverload 2s ease-out;
}

@keyframes gridOverload {
  0%, 100% {
    filter: brightness(1);
  }
  12% {
    filter: brightness(2.2);
  }
  25% {
    filter: brightness(1.25);
  }
  40% {
    filter: brightness(1.8);
  }
}

/* ================================
   NAVBAR
================================ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0 5vw;
  background: rgba(4, 13, 31, 0.78);
  border-bottom: 1px solid rgba(0, 200, 255, 0.14);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  color: var(--white);
  text-decoration: none;
  font-family: var(--display-font);
  font-size: 25px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.09em;
}

.logo img {
  width: 45px;
  height: 45px;
  display: block;
  flex: 0 0 auto;
  filter: drop-shadow(0 0 8px rgba(0, 200, 255, 0.5));
  transition:
    transform 0.28s ease,
    filter 0.28s ease;
}

.logo:hover img {
  transform: rotate(10deg) scale(1.08);
  filter: drop-shadow(0 0 15px rgba(0, 200, 255, 0.9));
}

.logo span {
  display: flex;
  align-items: center;
}

.logo b {
  color: #fff;
  font: inherit;
  font-weight: 700;
}

.logo strong {
  color: var(--orange);
  font: inherit;
  font-weight: 700;
  text-shadow: 0 0 14px rgba(0, 200, 255, 0.34);
}

nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

nav a {
  position: relative;
  color: #b5b5b5;
  text-decoration: none;
  font-family: var(--display-font);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transition:
    color 0.2s ease,
    text-shadow 0.2s ease;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -9px;
  width: 0;
  height: 1px;
  background: var(--orange);
  box-shadow: 0 0 9px var(--orange);
  transition: width 0.22s ease;
}

nav a:hover,
nav a.active {
  color: #fff;
  text-shadow: 0 0 12px rgba(0, 200, 255, 0.4);
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

/* ================================
   SEARCH BUTTON
================================ */

.search-button {
  position: relative;
  width: 42px;
  height: 42px;
  margin-left: 28px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: visible;
  border: 1px solid rgba(99, 201, 232, 0.34);
  border-radius: 10px;
  background: linear-gradient(
    145deg,
    rgba(18, 45, 82, 0.58),
    rgba(5, 17, 36, 0.72)
  );
  color: #8bdcf4;
  box-shadow:
    inset 0 1px 0 rgba(190, 225, 255, 0.075),
    0 5px 16px rgba(0, 0, 0, 0.2);
  transition:
    color 0.22s ease,
    background 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s ease;
}

.search-button span {
  position: relative;
  display: block;
  width: 13px;
  height: 13px;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-size: 0;
  line-height: 0;
  transform: translate(-1px, -1px);
  transition: filter 0.22s ease, transform 0.22s ease;
}

.search-button span::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -3px;
  width: 7px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: rotate(45deg);
  transform-origin: center;
}

.search-button:hover,
.search-button:focus-visible {
  color: #d2f6ff;
  background: linear-gradient(
    145deg,
    rgba(18, 54, 86, 0.86),
    rgba(5, 20, 42, 0.9)
  );
  border-color: rgba(99, 201, 232, 0.78);
  box-shadow:
    0 0 18px rgba(41, 155, 214, 0.2),
    inset 0 0 14px rgba(99, 201, 232, 0.08),
    0 5px 16px rgba(0, 0, 0, 0.22);
  transform: translateY(-2px);
}

.search-button:hover span,
.search-button:focus-visible span {
  filter: drop-shadow(0 0 5px rgba(99, 201, 232, 0.75));
  transform: translate(-1px, -1px) scale(1.08);
}

.search-button:active {
  transform: scale(0.94);
}

/* ================================
   MAIN LAYOUT
================================ */

.home {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  padding: 125px 6vw 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.home-center {
  position: relative;
  z-index: 2;
  margin-bottom: 52px;
  text-align: center;
}

.status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-bottom: 20px;
  color: var(--orange);
  font-family: var(--display-font);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.2em;
}

.status span {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--orange);
  box-shadow:
    0 0 8px var(--orange),
    0 0 16px rgba(0, 200, 255, 0.5);
  animation: statusPulse 1.5s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.8); }
}

.home-center h1 {
  color: #fff;
  font-family: var(--display-font);
  font-size: clamp(62px, 10vw, 135px);
  font-weight: 700;
  line-height: 0.84;
  letter-spacing: -0.025em;
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.045);
}

.home-center h1 span {
  color: var(--orange);
  text-shadow:
    0 0 16px rgba(0, 200, 255, 0.22),
    0 0 36px rgba(0, 200, 255, 0.12);
}

.home-center p {
  margin-top: 25px;
  color: #b0b0b0;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.95);
  font-family: var(--body-font);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.28em;
}

/* ================================
   BACK HOME BUTTON
================================ */

.back-home {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 42px;
  margin-bottom: 28px;
  padding: 11px 19px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: rgba(0, 200, 255, 0.045);
  color: #c0c0c0;
  text-decoration: none;
  font-family: var(--display-font);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  box-shadow:
    inset 0 0 20px rgba(0, 200, 255, 0.02),
    0 0 0 rgba(0, 200, 255, 0);
  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.back-home::before {
  content: "←";
  color: var(--orange);
  font-family: Arial, sans-serif;
  font-size: 16px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.back-home:hover {
  color: #fff;
  background: rgba(0, 200, 255, 0.11);
  border-color: var(--orange);
  box-shadow:
    0 0 20px rgba(0, 200, 255, 0.2),
    inset 0 0 16px rgba(0, 200, 255, 0.04);
  transform: translateY(-2px);
}

.back-home:hover::before {
  transform: translateX(-4px);
  text-shadow: 0 0 8px var(--orange);
}

/* ================================
   HOME MODULES
================================ */

.modules {
  position: relative;
  z-index: 3;
  width: min(1050px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.module {
  position: relative;
  min-height: 175px;
  display: flex;
  align-items: flex-end;
  padding: 26px;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  background:
    linear-gradient(
      145deg,
      rgba(13, 34, 67, 0.9),
      rgba(6, 18, 39, 0.84)
    );
  border: 1px solid var(--border);
  border-radius: 7px;
  box-shadow:
    0 15px 35px rgba(0, 0, 0, 0.18),
    inset 0 0 35px rgba(0, 200, 255, 0.012);
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.module::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--border);
  box-shadow: 0 0 0 transparent;
  transition:
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.module::after {
  content: attr(data-index);
  position: absolute;
  top: 17px;
  right: 21px;
  color: rgba(0, 200, 255, 0.34);
  font-family: var(--display-font);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.12em;
}

.module:hover {
  transform: translateY(-5px);
  background:
    linear-gradient(
      145deg,
      rgba(18, 45, 82, 0.96),
      rgba(8, 25, 52, 0.94)
    );
  border-color: var(--border-strong);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.28),
    0 0 25px rgba(0, 200, 255, 0.08),
    inset 0 0 30px rgba(0, 200, 255, 0.035);
}

.module:hover::before {
  background: var(--orange);
  box-shadow: 0 0 12px var(--orange);
}

.module-content {
  position: relative;
  z-index: 2;
}

.module-content h2 {
  color: #fff;
  font-family: var(--display-font);
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
}

.module-content p {
  margin-top: 8px;
  color: #aaaaaa;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.95);
  font-family: var(--body-font);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}

.module-arrow {
  position: absolute;
  right: 24px;
  bottom: 21px;
  z-index: 2;
  color: var(--orange);
  font-family: Arial, sans-serif;
  font-size: 21px;
  line-height: 1;
  transition:
    transform 0.25s ease,
    color 0.25s ease,
    text-shadow 0.25s ease;
}

.module:hover .module-arrow {
  color: var(--orange-bright);
  transform: translateX(7px);
  text-shadow: 0 0 13px rgba(0, 200, 255, 0.75);
}

.module-games,
.module-search {
  min-height: 215px;
}

/* ================================
   GAMES PAGE
================================ */

.games-page .home-center {
  margin-bottom: 38px;
}

.game-tools {
  position: relative;
  z-index: 3;
  width: min(1050px, 100%);
  margin: 0 auto 24px;
}

.game-tools .game-search-wrap {
  width: 100%;
  margin: 0 0 12px;
}

.game-filter-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 7px 9px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: rgba(8, 24, 49, 0.82);
  box-shadow: inset 0 0 18px rgba(0, 200, 255, 0.012);
}

.game-filter-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  padding: 0 7px 0 4px;
  color: #a0a0a0;
  font-family: var(--display-font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.game-filter-label span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 8px var(--orange);
}

.game-filters {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.game-filters::-webkit-scrollbar {
  display: none;
}

.game-filter {
  flex: 0 0 auto;
  min-height: 28px;
  padding: 5px 11px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: #999999;
  font-family: var(--display-font);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.09em;
  cursor: none;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.game-filter:hover {
  color: #ddd;
  border-color: var(--border);
  background: rgba(0, 200, 255, 0.045);
}

.game-filter.active {
  color: #050505;
  border-color: var(--orange);
  background: var(--orange);
  box-shadow:
    0 0 13px rgba(0, 200, 255, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.game-filter.active:hover {
  color: #050505;
  background: var(--orange-bright);
}

.game-count {
  flex: 0 0 auto;
  padding: 0 6px;
  color: #b0b0b0;
  font-family: var(--display-font);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.game-card {
  position: relative;
}

.game-card-topic {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 4px 6px;
  border: 1px solid rgba(0, 200, 255, 0.38);
  border-radius: 4px;
  background: rgba(4, 13, 31, 0.78);
  color: var(--orange);
  font-family: var(--display-font);
  font-size: 8px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.game-card:hover .game-card-topic {
  opacity: 1;
  transform: translateY(0);
}

.game-search-wrap {
  position: relative;
  z-index: 3;
  width: min(1050px, 100%);
  margin: 0 auto 24px;
}

.game-search-input {
  width: 100%;
  min-height: 46px;
  padding: 12px 17px;
  border: 1px solid var(--border);
  border-radius: 7px;
  outline: none;
  background: rgba(7, 20, 43, 0.86);
  color: var(--white);
  font-family: var(--body-font);
  font-size: 13px;
  font-weight: 500;
  box-shadow: inset 0 0 18px rgba(0, 200, 255, 0.015);
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.game-search-input::placeholder {
  color: #b0b0b0;
}

.game-search-input:focus {
  border-color: var(--border-strong);
  background: rgba(10, 30, 60, 0.9);
  box-shadow:
    0 0 18px rgba(0, 200, 255, 0.16),
    inset 0 0 15px rgba(0, 200, 255, 0.025);
}

.game-search-input.attention {
  animation: searchAttention 0.5s ease-in-out 3;
}

@keyframes searchAttention {
  0%, 100% {
    border-color: var(--border);
    box-shadow: none;
  }
  50% {
    border-color: var(--orange-bright);
    box-shadow: 0 0 22px rgba(0, 200, 255, 0.45);
  }
}

/* ================================
   CANT FIND A GAME
================================ */

.cant-find-game {
  position: relative;
  z-index: 3;
  width: min(1050px, 100%);
  min-height: 58px;
  margin: 0 auto 14px;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #aaa;
  text-decoration: none;
  background: rgba(7, 20, 43, 0.76);
  border: 1px solid rgba(0, 200, 255, 0.16);
  border-radius: 7px;
  transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.cant-find-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 8px var(--orange), 0 0 15px rgba(0, 200, 255,.45);
  animation: statusPulse 1.5s ease-in-out infinite;
}

.cant-find-text {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.cant-find-text strong {
  color: #ddd;
  font-family: var(--display-font);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
}

.cant-find-text small {
  color: var(--orange);
  font-family: var(--font-body, Inter, Arial, sans-serif);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.cant-find-text small::before {
  content: "•";
  margin-right: 8px;
  color: #b0b0b0;
}

.cant-find-arrow {
  margin-left: auto;
  color: var(--orange);
  font-family: Arial, sans-serif;
  font-size: 19px;
  transition: transform .2s ease, text-shadow .2s ease;
}

.cant-find-game:hover {
  transform: translateY(-2px);
  color: #fff;
  background: rgba(13, 36, 70, .9);
  border-color: var(--border-strong);
  box-shadow: 0 0 20px rgba(0, 200, 255,.08);
}

.cant-find-game:hover .cant-find-arrow {
  transform: translateX(5px);
  text-shadow: 0 0 10px var(--orange);
}

.game-grid {
  position: relative;
  z-index: 3;
  width: min(1050px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.game-card {
  display: block;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  background: rgba(11, 11, 11, 0.87);
  border: 1px solid var(--border);
  border-radius: 7px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.game-card:hover {
  transform: translateY(-5px);
  background: rgba(19, 13, 9, 0.94);
  border-color: var(--border-strong);
  box-shadow:
    0 18px 35px rgba(0, 0, 0, 0.28),
    0 0 22px rgba(0, 200, 255, 0.07);
}

.game-card-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #090909;
}

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

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

.game-card-title {
  padding: 12px 14px;
  color: #fff;
  font-family: var(--display-font);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
}

.games-empty {
  grid-column: 1 / -1;
  padding: 40px 0;
  color: #999999;
  font-family: var(--body-font);
  font-size: 13px;
  text-align: center;
}

/* ================================
   REQUEST PAGE
================================ */

.request-page .home-center {
  margin-bottom: 30px;
}

.request-description-box {
  position: relative;
  z-index: 3;
  width: min(680px, 100%);
  margin: 0 auto 24px;
  padding: 21px 25px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--orange);
  border-radius: 7px;
  background: rgba(11, 11, 11, 0.76);
  color: #999;
  font-family: var(--body-font);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.65;
  text-align: left;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.16);
}

.request-panel {
  position: relative;
  z-index: 3;
  width: min(680px, 100%);
  margin: 0 auto;
  padding: 36px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background:
    linear-gradient(
      150deg,
      rgba(20, 20, 20, 0.92),
      rgba(7, 7, 7, 0.9)
    );
  box-shadow:
    0 22px 55px rgba(0, 0, 0, 0.48),
    0 0 40px rgba(0, 200, 255, 0.055),
    inset 0 0 35px rgba(0, 200, 255, 0.015);
}

.request-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 9px 9px 0 0;
  background: linear-gradient(
    90deg,
    var(--orange),
    var(--orange-bright),
    var(--orange)
  );
  box-shadow: 0 0 14px rgba(0, 200, 255, 0.45);
}

.required-note {
  margin-bottom: 22px;
  color: var(--orange);
  font-family: var(--body-font);
  font-size: 11px;
  font-weight: 500;
  font-style: italic;
  text-align: right;
}

.request-form {
  counter-reset: field;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.form-group {
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  color: var(--white);
  font-family: var(--display-font);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.025em;
}

.form-group:not(:has(.radio-row)):not(:has(.rating-row)) label::before,
.form-group:has(.radio-row) > label::before,
.form-group:has(.rating-row) > label::before {
  counter-increment: field;
  content: counter(field, decimal-leading-zero) " ";
  color: var(--orange);
  font-weight: 700;
}

.form-group .required {
  color: var(--orange);
}

.form-group.invalid input[type="text"],
.form-group.invalid textarea {
  border-color: var(--orange-bright);
  box-shadow: 0 0 14px rgba(0, 200, 255, 0.3);
}

.form-group.invalid .radio-row label,
.form-group.invalid .rating-row label {
  border-color: var(--orange-bright);
}

.field-error {
  margin-top: 8px;
  color: var(--orange-bright);
  font-family: var(--body-font);
  font-size: 11px;
  font-style: italic;
}

.form-group input[type="text"],
.form-group textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--border);
  border-radius: 6px;
  outline: none;
  background: rgba(4, 4, 4, 0.66);
  color: var(--white);
  font-family: var(--body-font);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  resize: vertical;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.form-group input[type="text"]:focus,
.form-group textarea:focus {
  border-color: var(--border-strong);
  background: rgba(0, 200, 255, 0.035);
  box-shadow: 0 0 17px rgba(0, 200, 255, 0.18);
}

.radio-row,
.rating-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.radio-row input,
.rating-row input {
  display: none;
}

.radio-row label,
.rating-row label {
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(4, 13, 31, 0.62);
  color: #a0a0a0;
  font-family: var(--display-font);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.radio-row label:hover,
.rating-row label:hover {
  color: #eee;
  border-color: var(--border-strong);
  background: rgba(0, 200, 255, 0.06);
}

.radio-row input:checked + label,
.rating-row input:checked + label {
  color: var(--orange-bright);
  border-color: var(--orange);
  background: rgba(0, 200, 255, 0.13);
  box-shadow:
    0 0 15px rgba(0, 200, 255, 0.2),
    inset 0 0 12px rgba(0, 200, 255, 0.035);
}

.rating-row label {
  padding: 10px 18px;
}

/* ================================
   BUTTONS
================================ */

.submit-btn {
  position: relative;
  align-self: flex-start;
  min-height: 46px;
  margin-top: 7px;
  padding: 12px 34px;
  overflow: hidden;
  border: 1px solid rgba(0, 200, 255, 0.6);
  border-radius: 7px;
  background: linear-gradient(
    135deg,
    var(--orange),
    var(--orange-bright)
  );
  color: #050505;
  font-family: var(--display-font);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow:
    0 0 20px rgba(0, 200, 255, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

.submit-btn::before {
  content: "";
  position: absolute;
  top: -20%;
  left: -75%;
  width: 45%;
  height: 140%;
  background: rgba(255, 255, 255, 0.34);
  transform: skewX(-25deg);
  transition: left 0.5s ease;
}

.submit-btn:hover::before {
  left: 135%;
}

.submit-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow:
    0 0 30px rgba(0, 200, 255, 0.56),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.submit-btn:active {
  transform: translateY(0) scale(0.98);
}

.form-success {
  display: none;
  padding: 20px 0;
  color: var(--orange-bright);
  font-family: var(--display-font);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.success-offgrid {
  display: inline-flex;
  align-items: center;
  margin-left: 4px;
  font-family: var(--display-font);
  font-size: 1.08em;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.success-offgrid b {
  color: white;
  font-weight: 700;
}

.success-offgrid strong {
  color: var(--orange);
  font-weight: 700;
  text-shadow: 0 0 14px rgba(0, 200, 255, 0.3);
}

/* ================================
   EASTER-EGG EFFECTS
================================ */

body.power-surge::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 99998;
  pointer-events: none;
  background:
    radial-gradient(
      circle at center,
      rgba(0, 200, 255, 0.35),
      transparent 68%
    );
  animation: powerSurgeFlash 1.8s ease-out forwards;
}

@keyframes powerSurgeFlash {
  0% { opacity: 0; }
  10% { opacity: 1; }
  100% { opacity: 0; }
}

.logo.glitching {
  animation: logoGlitch 0.5s steps(2, end) 2;
}

@keyframes logoGlitch {
  0% { transform: translate(0); filter: none; }
  20% { transform: translate(-2px, 1px); filter: drop-shadow(2px 0 var(--orange)); }
  40% { transform: translate(2px, -1px); filter: drop-shadow(-2px 0 #fff); }
  60% { transform: translate(-1px, 2px); filter: drop-shadow(2px 0 var(--orange)); }
  80% { transform: translate(1px, -2px); filter: drop-shadow(-2px 0 #fff); }
  100% { transform: translate(0); filter: none; }
}

/* ================================
   ACCESSIBILITY
================================ */

:focus-visible {
  outline: 1px solid var(--orange-bright);
  outline-offset: 3px;
}

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

/* ================================
   MOBILE
================================ */

@media (max-width: 800px) {
  body {
    cursor: auto;
  }

  a,
  button,
  input,
  textarea,
  select,
  label {
    cursor: pointer;
  }

  .custom-cursor {
    display: none;
  }

  .navbar {
    height: 70px;
    padding: 0 20px;
  }

  .logo {
    gap: 9px;
    font-size: 20px;
  }

  .logo img {
    width: 36px;
    height: 36px;
  }

  nav {
    display: none;
  }

  .search-button {
    margin-left: auto;
    cursor: pointer;
  }

  .home {
    padding: 110px 20px 40px;
  }

  .home-center {
    margin-bottom: 40px;
  }

  .home-center h1 {
    font-size: 18vw;
  }

  .home-center p {
    font-size: 9px;
    letter-spacing: 0.18em;
  }

  .modules {
    grid-template-columns: 1fr;
  }

  .module,
  .module-games,
  .module-search {
    min-height: 155px;
  }

  .request-description-box {
    padding: 18px 20px;
  }

  .request-panel {
    padding: 26px 20px;
  }

  .back-home {
    margin-bottom: 22px;
  }
}

@media (max-width: 450px) {
  .logo {
    font-size: 19px;
  }

  .logo img {
    width: 32px;
    height: 32px;
  }

  .home-center h1 {
    font-size: 19vw;
  }

  .module {
    padding: 21px;
  }

  .module-content h2 {
    font-size: 27px;
  }

  .module-arrow {
    right: 20px;
    bottom: 19px;
  }

  .submit-btn {
    width: 100%;
  }
}/* ========================================
   RGB LOGO GLITCH
======================================== */

.logo.glitching {
  position: relative;
  animation: logoGlitchRGB 0.11s steps(2, end) 10;
}

.logo.glitching::before,
.logo.glitching::after {
  content: "OFFGRID";
  position: absolute;
  left: 58px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.logo.glitching::before {
  color: #ff003c;
  clip-path: inset(0 0 48% 0);
  transform: translate(-4px, -50%);
  opacity: 0.8;
  mix-blend-mode: screen;
}

.logo.glitching::after {
  color: #00e5ff;
  clip-path: inset(52% 0 0 0);
  transform: translate(4px, -50%);
  opacity: 0.8;
  mix-blend-mode: screen;
}

.logo.glitching img {
  animation: logoRGBIcon 0.11s steps(2, end) 10;
}

@keyframes logoGlitchRGB {
  0%, 100% { transform: translate(0); text-shadow: none; }
  20% { transform: translate(-3px, 1px); text-shadow: 3px 0 #ff003c, -3px 0 #00e5ff; }
  40% { transform: translate(3px, -1px); text-shadow: -4px 0 #00ff66, 4px 0 #ff003c; }
  60% { transform: translate(-2px, 2px); text-shadow: 4px 0 #00e5ff, -4px 0 #ff003c; }
  80% { transform: translate(2px, -2px); text-shadow: -3px 0 #00ff66, 3px 0 #00e5ff; }
}

@keyframes logoRGBIcon {
  0%, 100% { filter: none; }
  25% { filter: drop-shadow(-3px 0 #ff003c) drop-shadow(3px 0 #00e5ff); }
  50% { filter: drop-shadow(3px 0 #00ff66) drop-shadow(-3px 0 #ff003c); }
  75% { filter: drop-shadow(-3px 0 #00e5ff) drop-shadow(3px 0 #ff003c); }
}




/* ================================
   ABOUT PAGE
================================ */

.about-page .home-center {
  margin-bottom: 38px;
}

.about-content {
  position: relative;
  z-index: 3;
  width: min(900px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.about-panel {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 22px;
  padding: 28px 30px;
  overflow: hidden;
  background:
    linear-gradient(
      145deg,
      rgba(13, 34, 67, 0.91),
      rgba(6, 18, 39, 0.86)
    );
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow:
    0 14px 35px rgba(0, 0, 0, 0.2),
    inset 0 0 30px rgba(0, 200, 255, 0.012);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.about-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 100%;
  background: var(--border);
  transition:
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.about-panel:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  background:
    linear-gradient(
      145deg,
      rgba(18, 45, 82, 0.95),
      rgba(10, 9, 7, 0.92)
    );
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.28),
    0 0 24px rgba(0, 200, 255, 0.07);
}

.about-panel:hover::before {
  background: var(--orange);
  box-shadow: 0 0 12px var(--orange);
}

.about-panel-number {
  color: var(--orange);
  font-family: var(--display-font);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  opacity: 0.72;
  text-shadow: 0 0 14px rgba(0, 200, 255, 0.18);
}

.about-panel-content {
  min-width: 0;
}

.about-panel-content h2 {
  color: #fff;
  font-family: var(--display-font);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.015em;
}

.about-panel-content p {
  max-width: 720px;
  margin-top: 12px;
  color: #b0b0b0;
  font-family: var(--body-font);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.7;
}

.about-panel-content p + p {
  margin-top: 9px;
}

.about-contact {
  width: fit-content;
  min-height: 44px;
  margin-top: 20px;
  padding: 11px 15px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border-strong);
  border-radius: 7px;
  background: rgba(0, 200, 255, 0.07);
  color: #ddd;
  text-decoration: none;
  font-family: var(--display-font);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.13em;
  box-shadow:
    inset 0 0 16px rgba(0, 200, 255, 0.025);
  transition:
    transform 0.2s ease,
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.about-contact span {
  color: var(--orange);
  font-family: Arial, sans-serif;
  font-size: 15px;
}

.about-contact strong {
  color: var(--orange);
  font-family: Arial, sans-serif;
  font-size: 17px;
  font-weight: 400;
  transition: transform 0.2s ease;
}

.about-contact:hover {
  transform: translateY(-2px);
  color: #fff;
  background: rgba(0, 200, 255, 0.13);
  border-color: var(--orange);
  box-shadow:
    0 0 20px rgba(0, 200, 255, 0.18),
    inset 0 0 18px rgba(0, 200, 255, 0.035);
}

.about-contact:hover strong {
  transform: translateX(4px);
  text-shadow: 0 0 9px var(--orange);
}

.about-warning {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin-top: 4px;
  padding: 21px 24px;
  border: 1px solid rgba(0, 200, 255, 0.16);
  border-left: 2px solid var(--orange);
  border-radius: 7px;
  background: rgba(7, 20, 43, 0.68);
}

.about-warning-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(0, 200, 255, 0.35);
  border-radius: 50%;
  color: var(--orange);
  font-family: var(--display-font);
  font-size: 17px;
  font-weight: 700;
  box-shadow: 0 0 14px rgba(0, 200, 255, 0.1);
}

.about-warning h2 {
  color: #ddd;
  font-family: var(--display-font);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.08em;
}

.about-warning p {
  margin-top: 7px;
  color: #6f6f6f;
  font-family: var(--body-font);
  font-size: 12px;
  line-height: 1.6;
}

.about-signature {
  padding: 5px 4px 0;
  color: #b0b0b0;
  font-family: var(--display-font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-align: right;
}

@media (max-width: 800px) {
  .about-content {
    width: 100%;
  }

  .about-panel {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 15px;
    padding: 23px 20px;
  }

  .about-panel-number {
    font-size: 22px;
  }

  .about-panel-content h2 {
    font-size: 21px;
  }

  .about-panel-content p {
    font-size: 12px;
  }

  .about-warning {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
    padding: 19px 18px;
  }
}

@media (max-width: 450px) {
  .about-panel {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .about-panel-number {
    font-size: 18px;
  }

  .about-contact {
    width: 100%;
  }

  .about-warning {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 800px) {
  .game-filter-row {
    align-items: stretch;
    flex-wrap: wrap;
    padding: 8px;
  }

  .game-filter-label {
    width: 100%;
    padding: 1px 4px 3px;
  }

  .game-filters {
    order: 2;
    width: 100%;
    flex-basis: 100%;
  }

  .game-count {
    margin-left: auto;
    position: absolute;
    top: 11px;
    right: 12px;
  }

  .game-filter {
    cursor: pointer;
  }
}

/* Sync TOPICS indicator with GAME DATABASE status dot */
.game-filter-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.game-filter-label > span {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 8px var(--orange), 0 0 15px rgba(0, 200, 255, 0.5);
  animation: statusPulse 1.5s ease-in-out infinite;
}


/* ========================================
   MOBILE NAV + RESPONSIVE CLEANUP
======================================== */

.mobile-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: 10px;
  padding: 10px;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(0, 200, 255, 0.035);
  color: var(--orange);
}

.mobile-menu-toggle span {
  display: block;
  width: 17px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 800px) {
  .navbar {
    height: 70px;
    padding: 0 16px;
  }

  .logo {
    gap: 8px;
    font-size: 20px;
    min-width: 0;
  }

  .logo img {
    width: 35px;
    height: 35px;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .navbar nav {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 12px;
    right: 12px;
    z-index: 110;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 7px;
    border: 1px solid var(--border-strong);
    border-radius: 9px;
    background: rgba(7, 7, 7, 0.97);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55), 0 0 22px rgba(0, 200, 255, 0.08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  .navbar.menu-open nav {
    display: flex;
  }

  .navbar nav a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0 14px;
    border-radius: 6px;
    font-size: 14px;
  }

  .navbar nav a::after {
    display: none;
  }

  .navbar nav a.active {
    color: var(--orange-bright);
    background: rgba(0, 200, 255, 0.09);
    text-shadow: none;
  }

  .search-button {
    width: 42px;
    height: 42px;
    margin-left: 9px;
  }

  .navbar.menu-open .mobile-menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .navbar.menu-open .mobile-menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .navbar.menu-open .mobile-menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .home {
    min-height: 100svh;
    padding: 105px 16px 38px;
    justify-content: flex-start;
  }

  .home-center {
    margin-bottom: 34px;
  }

  .home-center h1 {
    font-size: clamp(54px, 15vw, 88px);
    line-height: 0.9;
    overflow-wrap: anywhere;
  }

  .home-center p {
    font-size: 10px;
    line-height: 1.5;
    letter-spacing: 0.16em;
  }

  .status {
    font-size: 10px;
    letter-spacing: 0.16em;
  }

  .modules {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .module,
  .module-games,
  .module-search {
    min-height: 132px;
    padding: 21px;
  }

  .games-page .home-center,
  .about-page .home-center {
    margin-bottom: 30px;
  }

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

  .game-card-title {
    padding: 10px;
    font-size: 14px;
    line-height: 1.15;
  }

  .game-card-topic {
    opacity: 1;
    transform: none;
  }

  .game-filter-row {
    position: relative;
    padding: 34px 8px 8px;
    gap: 8px;
  }

  .game-filter-label {
    position: absolute;
    top: 10px;
    left: 12px;
    width: auto;
    padding: 0;
  }

  .game-count {
    top: 10px;
    right: 12px;
  }

  .game-filters {
    width: 100%;
    flex-basis: 100%;
    order: 2;
    padding-bottom: 2px;
  }

  .game-filter {
    min-height: 34px;
    padding: 7px 11px;
  }

  .request-description-box {
    margin-bottom: 16px;
    padding: 17px;
    font-size: 13px;
  }

  .request-panel {
    padding: 27px 17px 20px;
  }

  .request-form {
    gap: 22px;
  }

  .form-group label {
    font-size: 14px;
    line-height: 1.35;
  }

  .form-group input[type="text"],
  .form-group textarea {
    font-size: 16px;
  }

  .submit-btn {
    width: 100%;
    min-height: 48px;
  }

  .about-content {
    width: 100%;
  }

  .about-panel {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 13px;
    padding: 21px 16px;
  }

  .about-panel-content h2 {
    font-size: 20px;
    line-height: 1.1;
  }

  .about-panel-content p {
    font-size: 13px;
    line-height: 1.65;
  }

  .about-warning {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 12px;
    padding: 18px 16px;
  }

  .about-warning p {
    color: #a8a8a8;
    font-size: 13px;
  }
}

@media (max-width: 380px) {
  .navbar {
    padding: 0 11px;
  }

  .logo {
    font-size: 18px;
  }

  .logo img {
    width: 31px;
    height: 31px;
  }

  .mobile-menu-toggle,
  .search-button {
    width: 39px;
    height: 39px;
  }

  .home {
    padding-right: 12px;
    padding-left: 12px;
  }

  .game-grid {
    gap: 8px;
  }

  .game-card-title {
    font-size: 12px;
  }

  .about-panel {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .about-warning {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   GAME SEARCH HOVER EFFECT
======================================== */

@media (hover: hover) and (pointer: fine) {
  .game-search-input:hover {
    border-color: rgba(0, 200, 255, 0.72);
    background: rgba(15, 10, 7, 0.94);
    box-shadow:
      0 0 12px rgba(0, 200, 255, 0.13),
      0 0 26px rgba(0, 200, 255, 0.07),
      inset 0 0 18px rgba(0, 200, 255, 0.035);
  }

  .game-search-wrap:hover .game-search-input:not(:focus) {
    border-color: rgba(0, 200, 255, 0.58);
  }
}

.game-search-input:focus,
.game-search-input:focus:hover {
  border-color: var(--orange-bright);
  box-shadow:
    0 0 20px rgba(0, 200, 255, 0.2),
    0 0 36px rgba(0, 200, 255, 0.08),
    inset 0 0 16px rgba(0, 200, 255, 0.035);
}

/* Keep small supporting copy readable on dark panels. */
.about-warning p {
  color: #a8a8a8;
}


/* ========================================
   DARKER ACCENTS + SOFTER TRANSLUCENT CARDS
======================================== */
.module {
  background: linear-gradient(
    145deg,
    rgba(10, 24, 45, 0.72),
    rgba(4, 12, 26, 0.66)
  );
  border-color: rgba(52, 133, 174, 0.22);
  box-shadow:
    0 15px 35px rgba(0, 0, 0, 0.22),
    inset 0 0 28px rgba(36, 125, 169, 0.012);
}

.module:hover {
  background: linear-gradient(
    145deg,
    rgba(12, 30, 53, 0.82),
    rgba(5, 15, 31, 0.78)
  );
}

.about-panel {
  background: linear-gradient(
    145deg,
    rgba(10, 24, 45, 0.74),
    rgba(4, 12, 26, 0.68)
  );
}

.about-panel:hover {
  background: linear-gradient(
    145deg,
    rgba(13, 32, 56, 0.84),
    rgba(5, 15, 31, 0.8)
  );
}

.game-card {
  background: rgba(5, 12, 24, 0.72);
}

.request-panel,
.request-description-box {
  background-color: rgba(5, 13, 27, 0.74);
}

.game-filter-row,
.cant-find-game {
  background-color: rgba(5, 13, 27, 0.7);
}

.module::after,
.about-panel-number {
  color: rgba(69, 157, 181, 0.5);
  text-shadow: none;
}


/* Brighter, more vivid blue-cyan accents */
.module,
.about-panel {
  border-color: rgba(55, 153, 205, 0.34);
}

.module::before,
.about-panel::before {
  background: rgba(55, 153, 205, 0.62);
}

.module::after,
.about-panel-number {
  color: #55b9e6;
  text-shadow: 0 0 10px rgba(41, 155, 214, 0.2);
}

.module:hover,
.about-panel:hover {
  border-color: rgba(99, 201, 232, 0.72);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.28),
    0 0 22px rgba(41, 155, 214, 0.12);
}

.module:hover::before,
.about-panel:hover::before {
  background: #299bd6;
  box-shadow: 0 0 13px rgba(41, 155, 214, 0.48);
}


/* ========================================
   MATCH THE HOMEPAGE GLASS PANEL STYLE
======================================== */
.request-panel,
.request-description-box,
.about-warning,
.game-filter-row,
.cant-find-game,
.game-card,
.game-search-input {
  background: linear-gradient(
    145deg,
    rgba(13, 32, 59, 0.68),
    rgba(4, 12, 27, 0.58)
  );
  border-color: rgba(55, 153, 205, 0.34);
  -webkit-backdrop-filter: blur(16px) saturate(125%);
  backdrop-filter: blur(16px) saturate(125%);
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(190, 225, 255, 0.055);
}

.request-panel {
  background: linear-gradient(
    145deg,
    rgba(13, 32, 59, 0.76),
    rgba(4, 12, 27, 0.68)
  );
}

.request-description-box,
.about-warning,
.game-filter-row,
.cant-find-game {
  background: linear-gradient(
    145deg,
    rgba(13, 32, 59, 0.64),
    rgba(4, 12, 27, 0.54)
  );
}

.game-card {
  background-color: rgba(5, 14, 30, 0.58);
}

.game-search-input {
  background: rgba(7, 20, 43, 0.62);
}

.request-panel:hover,
.about-warning:hover,
.game-filter-row:hover {
  border-color: rgba(99, 201, 232, 0.52);
}

.cant-find-game:hover,
.game-card:hover {
  border-color: rgba(99, 201, 232, 0.72);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.3),
    0 0 22px rgba(41, 155, 214, 0.12),
    inset 0 1px 0 rgba(190, 225, 255, 0.075);
}

.game-search-input:focus {
  background: rgba(10, 28, 54, 0.78);
}


/* ========================================
   HOMEPAGE-STYLE HOVER FOR SEARCH + GAME CARDS
======================================== */

@media (hover: hover) and (pointer: fine) {
  .game-search-input {
    transition:
      transform 0.25s ease,
      border-color 0.25s ease,
      background 0.25s ease,
      box-shadow 0.25s ease;
  }

  .game-search-input:hover:not(:focus) {
    transform: translateY(-3px);
    border-color: rgba(99, 201, 232, 0.72);
    background: linear-gradient(
      145deg,
      rgba(18, 45, 82, 0.88),
      rgba(8, 25, 52, 0.84)
    );
    box-shadow:
      0 18px 42px rgba(0, 0, 0, 0.28),
      0 0 25px rgba(41, 155, 214, 0.12),
      inset 0 0 30px rgba(41, 155, 214, 0.035);
  }

  .game-card {
    position: relative;
    transition:
      transform 0.25s ease,
      background 0.25s ease,
      border-color 0.25s ease,
      box-shadow 0.25s ease;
  }

  .game-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
    height: 2px;
    background: rgba(55, 153, 205, 0.62);
    box-shadow: 0 0 0 transparent;
    opacity: 0;
    transition:
      opacity 0.25s ease,
      background 0.25s ease,
      box-shadow 0.25s ease;
    pointer-events: none;
  }

  .game-card:hover {
    transform: translateY(-5px);
    background: linear-gradient(
      145deg,
      rgba(18, 45, 82, 0.88),
      rgba(8, 25, 52, 0.84)
    );
    border-color: rgba(99, 201, 232, 0.72);
    box-shadow:
      0 18px 42px rgba(0, 0, 0, 0.28),
      0 0 25px rgba(41, 155, 214, 0.12),
      inset 0 0 30px rgba(41, 155, 214, 0.035);
  }

  .game-card:hover::before {
    opacity: 1;
    background: #299bd6;
    box-shadow: 0 0 13px rgba(41, 155, 214, 0.48);
  }
}

.game-search-input:focus,
.game-search-input:focus:hover {
  transform: translateY(-2px);
  border-color: rgba(99, 201, 232, 0.82);
  background: rgba(10, 28, 54, 0.88);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.24),
    0 0 22px rgba(41, 155, 214, 0.18),
    inset 0 0 16px rgba(41, 155, 214, 0.04);
}

/* Cyan emphasis inside the request-page introduction. */
.request-highlight {
  color: #8bdcf4;
  font-weight: 700;
  text-shadow: 0 0 12px rgba(99, 201, 232, 0.18);
}

.request-description-box {
  border-left: 2px solid rgba(99, 201, 232, 0.72);
}


/* ========================================
   MOBILE NAVIGATION — BLUE GLASS REFRESH
======================================== */

@media (max-width: 800px) {
  .navbar {
    transition:
      background 0.25s ease,
      border-color 0.25s ease,
      box-shadow 0.25s ease;
  }

  .navbar.menu-open {
    background: rgba(3, 10, 23, 0.96);
    border-bottom-color: rgba(99, 201, 232, 0.28);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.34);
  }

  .mobile-menu-toggle {
    position: relative;
    z-index: 112;
    border-color: rgba(55, 153, 205, 0.42);
    border-radius: 10px;
    background: linear-gradient(
      145deg,
      rgba(18, 45, 82, 0.72),
      rgba(5, 17, 36, 0.78)
    );
    color: #8bdcf4;
    box-shadow:
      inset 0 1px 0 rgba(190, 225, 255, 0.08),
      0 5px 16px rgba(0, 0, 0, 0.2);
    transition:
      transform 0.22s ease,
      border-color 0.22s ease,
      background 0.22s ease,
      box-shadow 0.22s ease,
      color 0.22s ease;
  }

  .mobile-menu-toggle:active {
    transform: scale(0.94);
  }

  .navbar.menu-open .mobile-menu-toggle {
    border-color: rgba(99, 201, 232, 0.78);
    background: rgba(18, 54, 86, 0.82);
    color: #c2f2ff;
    box-shadow:
      0 0 18px rgba(41, 155, 214, 0.18),
      inset 0 0 14px rgba(99, 201, 232, 0.08);
  }

  .mobile-menu-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 3px;
    box-shadow: 0 0 7px rgba(99, 201, 232, 0.24);
  }

  .navbar nav {
    top: calc(100% + 10px);
    left: 12px;
    right: 12px;
    width: auto;
    max-width: 440px;
    margin-left: auto;
    padding: 8px;
    overflow: hidden;
    border: 1px solid rgba(99, 201, 232, 0.42);
    border-radius: 13px;
    background:
      linear-gradient(
        145deg,
        rgba(13, 34, 65, 0.97),
        rgba(3, 12, 27, 0.98)
      );
    box-shadow:
      0 22px 55px rgba(0, 0, 0, 0.62),
      0 0 28px rgba(41, 155, 214, 0.13),
      inset 0 1px 0 rgba(190, 225, 255, 0.1);
    backdrop-filter: blur(22px) saturate(135%);
    -webkit-backdrop-filter: blur(22px) saturate(135%);
    transform-origin: top right;
  }

  .navbar.menu-open nav {
    animation: mobileNavReveal 0.22s ease-out both;
  }

  .navbar nav a {
    position: relative;
    min-height: 51px;
    padding: 0 15px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #c0d0df;
    font-family: var(--display-font);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.13em;
    transition:
      color 0.18s ease,
      background 0.18s ease,
      border-color 0.18s ease,
      padding-left 0.18s ease,
      text-shadow 0.18s ease;
  }

  .navbar nav a + a {
    margin-top: 3px;
  }

  .navbar nav a:hover,
  .navbar nav a:focus-visible {
    padding-left: 20px;
    color: #fff;
    border-color: rgba(99, 201, 232, 0.2);
    background: rgba(41, 155, 214, 0.1);
    text-shadow: 0 0 12px rgba(99, 201, 232, 0.28);
  }

  .navbar nav a.active {
    color: #a8eaff;
    border-color: rgba(99, 201, 232, 0.24);
    background: linear-gradient(
      90deg,
      rgba(41, 155, 214, 0.2),
      rgba(41, 155, 214, 0.055)
    );
    box-shadow: inset 2px 0 0 #63c9e8;
    text-shadow: 0 0 12px rgba(99, 201, 232, 0.22);
  }

  .navbar nav a.active::before {
    content: "";
    position: absolute;
    top: 50%;
    right: 15px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #63c9e8;
    box-shadow: 0 0 9px rgba(99, 201, 232, 0.8);
    transform: translateY(-50%);
  }
}

@keyframes mobileNavReveal {
  from {
    opacity: 0;
    transform: translateY(-7px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .navbar.menu-open nav {
    animation: none;
  }
}


/* Keep all topic filters visible without horizontal scrolling. */
.game-filters {
  display: flex;
  flex: 1 1 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow: visible;
  scrollbar-width: auto;
}

.game-filter {
  flex: 0 1 auto;
  white-space: nowrap;
}

@media (max-width: 800px) {
  .game-filters {
    display: flex;
    width: 100%;
    flex: 1 1 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 6px;
    overflow: visible;
  }

  .game-filter {
    flex: 0 1 auto;
    max-width: 100%;
  }
}


/* Arrange topic buttons in evenly sized columns and balanced-looking rows. */
.game-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(105px, 1fr));
  align-items: stretch;
  gap: 7px;
  flex: 1 1 0;
  min-width: 0;
  overflow: visible;
}

.game-filter {
  width: 100%;
  min-width: 0;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
}

@media (max-width: 800px) {
  .game-filters {
    grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
    width: 100%;
    flex: 1 1 100%;
    gap: 7px;
  }

  .game-filter {
    width: 100%;
    padding-right: 6px;
    padding-left: 6px;
  }
}


/* OFFGRID MOTION REFRESH — tunnel intentionally excluded. */

/* Page content enters with a clean, staggered system reveal. */
@keyframes offgridRiseIn {
  from { opacity: 0; transform: translate3d(0, 22px, 0) scale(.985); filter: blur(5px); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); filter: blur(0); }
}

@keyframes offgridSoftIn {
  from { opacity: 0; transform: translate3d(0, 12px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes offgridCardIn {
  from { opacity: 0; transform: translate3d(0, 18px, 0) scale(.975); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes offgridLineSweep {
  0% { transform: translateX(-115%); opacity: 0; }
  25% { opacity: .9; }
  100% { transform: translateX(115%); opacity: 0; }
}

@keyframes offgridGlowBreathe {
  0%, 100% { box-shadow: 0 0 0 rgba(99, 201, 232, 0), inset 0 0 0 rgba(99, 201, 232, 0); }
  50% { box-shadow: 0 0 24px rgba(41, 155, 214, .13), inset 0 0 18px rgba(99, 201, 232, .035); }
}

@keyframes offgridStatusScan {
  0%, 100% { opacity: .55; transform: scaleX(.45); }
  50% { opacity: 1; transform: scaleX(1); }
}

/* Navbar and page heading motion. */
body.loaded .navbar {
  animation: offgridSoftIn .65s cubic-bezier(.2,.75,.25,1) both;
}

body.loaded .logo {
  animation: offgridRiseIn .7s .08s cubic-bezier(.2,.75,.25,1) both;
}

body.loaded .home-center {
  animation: offgridRiseIn .8s .12s cubic-bezier(.2,.75,.25,1) both;
}

body.loaded .status::after {
  content: "";
  display: block;
  width: 34px;
  height: 1px;
  margin-left: 3px;
  transform-origin: left;
  background: linear-gradient(90deg, transparent, var(--orange-bright));
  animation: offgridStatusScan 2.8s ease-in-out infinite;
}

/* Home modules: staggered entrances, a moving highlight and responsive hover lift. */
body.loaded .module {
  animation: offgridCardIn .72s cubic-bezier(.2,.75,.25,1) both;
}

body.loaded .module:nth-child(1) { animation-delay: .18s; }
body.loaded .module:nth-child(2) { animation-delay: .27s; }
body.loaded .module:nth-child(3) { animation-delay: .36s; }
body.loaded .module:nth-child(4) { animation-delay: .45s; }

.module {
  transform: translateZ(0);
  transition:
    transform .38s cubic-bezier(.2,.8,.2,1),
    background .35s ease,
    border-color .3s ease,
    box-shadow .38s ease;
}

.module::before {
  transform-origin: left;
  transition: transform .45s cubic-bezier(.2,.8,.2,1), background .3s ease, box-shadow .3s ease;
}

.module:hover::before {
  transform: scaleX(1);
}

.module::after {
  transition: color .3s ease, transform .35s ease, text-shadow .35s ease;
}

.module:hover::after {
  color: rgba(137, 226, 255, .8);
  transform: translate(-3px, 3px);
  text-shadow: 0 0 12px rgba(99, 201, 232, .45);
}

.module-arrow {
  transition: transform .38s cubic-bezier(.2,.8,.2,1), color .25s ease, text-shadow .25s ease;
}

/* Games page: cards arrive in a flowing sequence, then respond with a gentle lift. */
.game-card {
  animation: offgridCardIn .62s cubic-bezier(.2,.75,.25,1) both;
  transition:
    transform .34s cubic-bezier(.2,.8,.2,1),
    background .3s ease,
    border-color .3s ease,
    box-shadow .34s ease;
}

.game-card:nth-child(1) { animation-delay: .025s; }
.game-card:nth-child(2) { animation-delay: .05s; }
.game-card:nth-child(3) { animation-delay: .075s; }
.game-card:nth-child(4) { animation-delay: .1s; }
.game-card:nth-child(5) { animation-delay: .125s; }
.game-card:nth-child(6) { animation-delay: .15s; }
.game-card:nth-child(7) { animation-delay: .175s; }
.game-card:nth-child(8) { animation-delay: .2s; }
.game-card:nth-child(9) { animation-delay: .225s; }
.game-card:nth-child(10) { animation-delay: .25s; }
.game-card:nth-child(11) { animation-delay: .275s; }
.game-card:nth-child(12) { animation-delay: .3s; }

.game-card-image img {
  transition: transform .65s cubic-bezier(.2,.8,.2,1), filter .45s ease;
}

.game-card:hover .game-card-image img {
  transform: scale(1.075);
  filter: saturate(1.12) brightness(1.08);
}

/* Topic filters: seven balanced columns put the final SURVIVAL filter on row two. */
.game-filter-row {
  align-items: start;
  flex-wrap: wrap;
}

.game-filters {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 7px;
  align-items: stretch;
}

.game-filter {
  min-width: 0;
  width: 100%;
  min-height: 30px;
  padding: 6px 5px;
  transition:
    transform .22s cubic-bezier(.2,.8,.2,1),
    color .2s ease,
    background .2s ease,
    border-color .2s ease,
    box-shadow .22s ease;
}

.game-filter:hover {
  transform: translateY(-2px);
}

.game-filter.active {
  transform: translateY(-1px);
}

/* Request and About pages: stagger the main panels and form controls. */
body.loaded .request-description-box,
body.loaded .about-panel,
body.loaded .about-warning,
body.loaded .about-signature {
  animation: offgridRiseIn .7s cubic-bezier(.2,.75,.25,1) both;
}

body.loaded .request-description-box { animation-delay: .2s; }
body.loaded .request-panel { animation: offgridRiseIn .75s .28s cubic-bezier(.2,.75,.25,1) both; }
body.loaded .about-panel:nth-child(1) { animation-delay: .18s; }
body.loaded .about-panel:nth-child(2) { animation-delay: .27s; }
body.loaded .about-panel:nth-child(3) { animation-delay: .36s; }
body.loaded .about-panel:nth-child(4) { animation-delay: .45s; }
body.loaded .about-warning { animation-delay: .52s; }
body.loaded .about-signature { animation-delay: .6s; }

.request-panel,
.about-panel {
  transition:
    transform .35s cubic-bezier(.2,.8,.2,1),
    border-color .3s ease,
    box-shadow .35s ease,
    background .3s ease;
}

.form-group {
  animation: offgridSoftIn .48s ease both;
}

.form-group:nth-child(1) { animation-delay: .12s; }
.form-group:nth-child(2) { animation-delay: .17s; }
.form-group:nth-child(3) { animation-delay: .22s; }
.form-group:nth-child(4) { animation-delay: .27s; }
.form-group:nth-child(5) { animation-delay: .32s; }
.form-group:nth-child(6) { animation-delay: .37s; }
.form-group:nth-child(7) { animation-delay: .42s; }
.form-group:nth-child(8) { animation-delay: .47s; }

/* Shared tactile feedback for controls and links. */
button,
.play-btn,
.back-home,
.search-button,
.about-contact,
.cant-find-game {
  transition:
    transform .25s cubic-bezier(.2,.8,.2,1),
    color .22s ease,
    background .25s ease,
    border-color .25s ease,
    box-shadow .28s ease;
}

button:active,
.play-btn:active,
.back-home:active,
.search-button:active,
.cant-find-game:active {
  transform: scale(.97);
}

.game-search-input,
.form-group input,
.form-group textarea,
.form-group select {
  transition:
    transform .25s cubic-bezier(.2,.8,.2,1),
    border-color .25s ease,
    background .25s ease,
    box-shadow .28s ease;
}

.game-search-input:focus,
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  transform: translateY(-2px);
}

@media (max-width: 800px) {
  .game-filters {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  body.loaded .home-center,
  body.loaded .module,
  body.loaded .request-description-box,
  body.loaded .request-panel,
  body.loaded .about-panel,
  body.loaded .about-warning,
  body.loaded .about-signature {
    animation-duration: .55s;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.loaded .navbar,
  body.loaded .logo,
  body.loaded .home-center,
  body.loaded .module,
  .game-card,
  body.loaded .request-description-box,
  body.loaded .request-panel,
  body.loaded .about-panel,
  body.loaded .about-warning,
  body.loaded .about-signature,
  .form-group {
    animation: none !important;
  }

  .module,
  .module::before,
  .module::after,
  .module-arrow,
  .game-card,
  .game-card-image img,
  .game-filter,
  button,
  .play-btn,
  .back-home,
  .search-button,
  .about-contact,
  .cant-find-game,
  .game-search-input,
  .form-group input,
  .form-group textarea,
  .form-group select {
    transition: none !important;
  }
}


/* Keep SURVIVAL in the second topic row on every screen size. */
.game-filters {
  grid-template-columns: repeat(8, minmax(0, 1fr));
}

.game-filters .game-filter[data-filter="survival"] {
  grid-column: 1;
  grid-row: 2;
}

@media (max-width: 800px) {
  .game-filters {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .game-filters .game-filter[data-filter="survival"] {
    grid-column: 1;
    grid-row: 2;
  }
}


/* Restore the RGB glitch on the top-left OFFGRID logo. */
.logo.glitching {
  position: relative;
  animation: logoGlitchRGB 0.11s steps(2, end) 10 !important;
}

.logo.glitching::before,
.logo.glitching::after {
  content: "OFFGRID";
  position: absolute;
  left: 57px;
  top: 50%;
  pointer-events: none;
  white-space: nowrap;
  font-family: var(--display-font);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1;
}

.logo.glitching::before {
  color: #ff003c;
  clip-path: inset(0 0 48% 0);
  transform: translate(-4px, -50%);
  opacity: 0.85;
  mix-blend-mode: screen;
}

.logo.glitching::after {
  color: #00e5ff;
  clip-path: inset(52% 0 0 0);
  transform: translate(4px, -50%);
  opacity: 0.85;
  mix-blend-mode: screen;
}

.logo.glitching img {
  animation: logoRGBIcon 0.11s steps(2, end) 10;
}

@media (max-width: 800px) {
  .logo.glitching::before,
  .logo.glitching::after {
    left: 41px;
    font-size: 20px;
  }
}


/* POP-OUT HOVER — request description, homepage cards, and about cards. */
@media (hover: hover) and (pointer: fine) {
  .module,
  .about-panel,
  .request-description-box {
    transform-origin: center;
    will-change: transform, box-shadow;
  }

  .module:hover {
    z-index: 5;
    transform: translateY(-8px) scale(1.035);
    box-shadow:
      0 28px 58px rgba(0, 0, 0, 0.42),
      0 0 30px rgba(41, 155, 214, 0.13),
      inset 0 0 30px rgba(99, 201, 232, 0.045);
  }

  .about-panel:hover {
    z-index: 4;
    transform: translateY(-7px) scale(1.018);
    box-shadow:
      0 25px 52px rgba(0, 0, 0, 0.38),
      0 0 28px rgba(41, 155, 214, 0.12),
      inset 0 0 26px rgba(99, 201, 232, 0.025);
  }

  .request-description-box {
    transition:
      transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1),
      background 0.28s ease,
      border-color 0.28s ease,
      box-shadow 0.28s ease;
  }

  .request-description-box:hover {
    z-index: 4;
    transform: translateY(-6px) scale(1.025);
    background: rgba(9, 25, 48, 0.94);
    border-color: var(--border-strong);
    box-shadow:
      0 25px 50px rgba(0, 0, 0, 0.36),
      0 0 26px rgba(41, 155, 214, 0.13),
      inset 0 0 24px rgba(99, 201, 232, 0.035);
  }
}

@media (prefers-reduced-motion: reduce) {
  .request-description-box {
    transition: none;
  }
}


/* Center every topic-filter row, including incomplete final rows. */
.game-filters {
  display: flex;
  flex: 1 1 100%;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 7px;
  overflow: visible;
}

.game-filters .game-filter {
  flex: 0 1 calc((100% - 49px) / 8);
  width: auto;
  min-width: 0;
}

/* Let SURVIVAL follow the normal centered wrapping order. */
.game-filters .game-filter[data-filter="survival"] {
  grid-column: auto;
  grid-row: auto;
}

@media (max-width: 800px) {
  .game-filters {
    justify-content: center;
  }

  .game-filters .game-filter {
    flex: 0 1 calc((100% - 21px) / 4);
  }
}


/* Automatic availability label for games whose HTML file is not uploaded yet. */
.game-card-status {
  display: flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  max-width: calc(100% - 24px);
  margin: 10px auto 13px;
  padding: 7px 13px;
  border: 1px solid rgba(99, 201, 232, .58);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(24, 91, 125, .34), rgba(8, 29, 52, .72));
  color: #a5e8fa;
  font-family: var(--display-font);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  line-height: 1;
  text-align: center;
  box-shadow:
    0 0 12px rgba(41, 155, 214, .13),
    inset 0 0 10px rgba(99, 201, 232, .06);
  transition:
    border-color .25s ease,
    background .25s ease,
    box-shadow .25s ease,
    transform .25s ease;
}

.game-card-status::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: 0 0 5px;
  margin-right: 8px;
  border-radius: 50%;
  background: #8bdcf5;
  box-shadow: 0 0 8px rgba(139, 220, 245, .8);
}

.game-card:hover .game-card-status {
  border-color: rgba(139, 220, 245, .82);
  background: linear-gradient(135deg, rgba(28, 111, 148, .42), rgba(9, 38, 65, .82));
  box-shadow:
    0 0 16px rgba(41, 155, 214, .2),
    inset 0 0 12px rgba(99, 201, 232, .09);
  transform: translateY(-1px);
}

.game-card-status[hidden] {
  display: none !important;
}
