:root {
  --heading-font: "Roboto Mono", "Inter", sans-serif;
  --body-font: "Open Sans", "Lato", sans-serif;
  --bg: #121212;
  --bg-soft: #181b1f;
  --card: #171b1f;
  --text: #eff3f3;
  --text-muted: #a5b1b5;
  --line: rgba(0, 255, 194, 0.22);
  --accent-orange: #ff5f1f;
  --accent-teal: #00ffc2;
  --accent-green: #39ff14;
  --metal: #3e4857;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  --parallax-offset: 0px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--body-font);
  line-height: 1.6;
  background:
    radial-gradient(circle at 12% 10%, rgba(0, 255, 194, 0.07), transparent 32%),
    radial-gradient(circle at 85% 8%, rgba(57, 255, 20, 0.05), transparent 36%),
    linear-gradient(150deg, #0d0f11 10%, #121212 42%, #181b1f 100%);
  overflow-x: hidden;
  cursor: crosshair;
}

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

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.18'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

#root {
  position: relative;
  z-index: 1;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 120;
  padding: 0.55rem 0.9rem;
  border-radius: 0.35rem;
  background: var(--accent-orange);
  color: #06090b;
  text-decoration: none;
  font-family: var(--heading-font);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}

.skip-link:focus {
  top: 16px;
}

.site-shell {
  min-height: 100vh;
}

.container {
  width: min(1160px, calc(100% - 2.4rem));
  margin: 0 auto;
}

.top-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 70;
  border-bottom: 1px solid rgba(0, 255, 194, 0.16);
  background: linear-gradient(180deg, rgba(10, 12, 15, 0.88), rgba(10, 12, 15, 0.34));
  backdrop-filter: blur(8px);
}

.nav-content {
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-family: var(--heading-font);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.84rem;
}

.nav-brand img {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(0, 255, 194, 0.22);
  box-shadow: 0 0 18px rgba(0, 255, 194, 0.2);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 1px solid var(--line);
  background: rgba(0, 255, 194, 0.08);
  color: var(--text);
  border-radius: 0.4rem;
  font-family: var(--heading-font);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.48rem 0.72rem;
}

.nav-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-family: var(--heading-font);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.74rem;
  padding: 0.45rem 0.55rem;
  border-radius: 0.35rem;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--accent-teal);
  background: rgba(0, 255, 194, 0.1);
}

.nav-link.is-active {
  color: var(--accent-green);
  background: rgba(57, 255, 20, 0.14);
  border: 1px solid rgba(57, 255, 20, 0.34);
}

.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.theme-toggle {
  border: 1px solid rgba(57, 255, 20, 0.35);
  background: rgba(57, 255, 20, 0.1);
  color: var(--accent-green);
  padding: 0.55rem 0.72rem;
  border-radius: 0.42rem;
  font-family: var(--heading-font);
  font-size: 0.74rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  background: rgba(57, 255, 20, 0.18);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  padding: 0.72rem 1.05rem;
  text-decoration: none;
  border: 1px solid transparent;
  font-family: var(--heading-font);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
  line-height: 1;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn[disabled] {
  opacity: 0.7;
  pointer-events: none;
  transform: none;
}

.btn:focus-visible,
.theme-toggle:focus-visible,
.menu-toggle:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent-green);
  outline-offset: 2px;
}

.btn-primary {
  background: linear-gradient(160deg, #ff742f, var(--accent-orange));
  color: #070b0e;
  box-shadow: 0 0 24px rgba(255, 95, 31, 0.4);
}

.btn-primary:hover {
  box-shadow: 0 0 30px rgba(255, 95, 31, 0.55);
}

.btn-secondary {
  color: var(--accent-teal);
  border-color: rgba(0, 255, 194, 0.45);
  background: rgba(0, 255, 194, 0.08);
}

.btn-secondary:hover {
  background: rgba(0, 255, 194, 0.18);
}

.btn-ghost {
  color: var(--text);
  border-color: rgba(165, 177, 181, 0.26);
  background: rgba(255, 255, 255, 0.02);
}

.btn-ghost:hover {
  border-color: rgba(0, 255, 194, 0.32);
}

.btn-return-home {
  color: #ffd7b4;
  border-color: rgba(255, 95, 31, 0.5);
  background: rgba(255, 95, 31, 0.16);
  box-shadow: 0 0 18px rgba(255, 95, 31, 0.22);
}

.btn-return-home:hover {
  background: rgba(255, 95, 31, 0.24);
  box-shadow: 0 0 22px rgba(255, 95, 31, 0.28);
}

.btn-glitch {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.btn-ripple {
  position: absolute;
  left: 0;
  top: 0;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  transform: translate(-50%, -50%);
  animation: btn-ripple 520ms ease-out forwards;
  pointer-events: none;
}

@keyframes btn-ripple {
  from {
    opacity: 0.9;
    width: 8px;
    height: 8px;
  }
  to {
    opacity: 0;
    width: 280px;
    height: 280px;
  }
}

.btn-glitch::before,
.btn-glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  opacity: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.btn-glitch:hover::before {
  opacity: 0.7;
  text-shadow: -2px 0 var(--accent-teal);
  transform: translate(1px, -1px);
  animation: glitch-a 220ms steps(2, end) infinite;
}

.btn-glitch:hover::after {
  opacity: 0.65;
  text-shadow: 2px 0 var(--accent-orange);
  transform: translate(-1px, 1px);
  animation: glitch-b 220ms steps(2, end) infinite;
}

@keyframes glitch-a {
  0% {
    clip-path: inset(0 0 75% 0);
  }
  50% {
    clip-path: inset(36% 0 28% 0);
  }
  100% {
    clip-path: inset(78% 0 0 0);
  }
}

@keyframes glitch-b {
  0% {
    clip-path: inset(82% 0 0 0);
  }
  50% {
    clip-path: inset(45% 0 24% 0);
  }
  100% {
    clip-path: inset(0 0 73% 0);
  }
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  padding-top: 128px;
  padding-bottom: 72px;
  background:
    radial-gradient(circle at 15% 12%, rgba(57, 255, 20, 0.18), transparent 31%),
    radial-gradient(circle at 82% 10%, rgba(0, 255, 194, 0.16), transparent 33%),
    linear-gradient(130deg, rgba(8, 11, 13, 0.98), rgba(18, 22, 25, 0.98)),
    repeating-linear-gradient(140deg, rgba(255, 95, 31, 0.055) 0 2px, transparent 2px 12px);
  background-position:
    center calc(46% + var(--parallax-offset)),
    center calc(32% + var(--parallax-offset)),
    center,
    center;
  background-size: cover, cover, cover, cover;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -10% -6% auto -6%;
  height: 64%;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 40%, rgba(255, 95, 31, 0.18), transparent 34%),
    radial-gradient(circle at 74% 50%, rgba(0, 255, 194, 0.15), transparent 38%);
  filter: blur(58px);
  animation: drift 10s ease-in-out infinite alternate;
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(0, 24px, 0);
  }
}

.scanline-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.25;
  background: repeating-linear-gradient(
    to bottom,
    rgba(57, 255, 20, 0.09) 0,
    rgba(57, 255, 20, 0.09) 1px,
    transparent 1px,
    transparent 4px
  );
  mix-blend-mode: screen;
  animation: scan 8s linear infinite;
}

@keyframes scan {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(6px);
  }
}

.hero-grid {
  display: grid;
  gap: 2.2rem;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
}

.kicker {
  margin: 0;
  color: var(--accent-teal);
  font-family: var(--heading-font);
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero-title {
  margin: 0.7rem 0 0;
  font-family: var(--heading-font);
  font-size: clamp(2rem, 4.8vw, 3.6rem);
  line-height: 1.04;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero-title-primary,
.hero-title-secondary {
  display: block;
}

.hero-title-primary {
  font-size: clamp(2.45rem, 6vw, 4.55rem);
  font-weight: 800;
  line-height: 0.98;
}

.hero-title-secondary {
  margin-top: 0.18rem;
  font-size: clamp(1.22rem, 2.1vw, 1.72rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0.018em;
  text-transform: none;
  max-width: 30ch;
}

.hero-copy p {
  margin: 1rem 0 0;
  color: var(--text-muted);
  font-size: clamp(1rem, 1.4vw, 1.08rem);
  max-width: 66ch;
}

.hero-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.hero-stats {
  margin-top: 1.8rem;
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.hero-stats li {
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  padding: 0.8rem 0.85rem;
  background: rgba(0, 255, 194, 0.04);
}

.hero-stats span {
  display: block;
  font-size: 0.67rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-family: var(--heading-font);
}

.hero-stats strong,
.hero-stats a {
  display: block;
  margin-top: 0.3rem;
  color: var(--text);
  text-decoration: none;
  font-size: 0.88rem;
}

.hero-stats a:hover,
.hero-stats a:focus-visible {
  color: var(--accent-teal);
}

.hero-logo-wrap {
  border: 1px solid rgba(255, 95, 31, 0.2);
  border-radius: 1rem;
  background:
    linear-gradient(160deg, rgba(17, 23, 27, 0.84), rgba(9, 13, 16, 0.92)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent);
  box-shadow: var(--shadow);
  padding: clamp(1rem, 2vw, 1.35rem);
}

.hero-logo-wrap img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.85rem;
  border: 1px solid rgba(0, 255, 194, 0.25);
  image-rendering: auto;
  backface-visibility: hidden;
  transform: translateZ(0);
  filter: saturate(1.06) contrast(1.05) brightness(1.01);
}

.logo-caption {
  margin: 0.8rem 0 0;
  text-align: center;
  color: var(--accent-green);
  font-family: var(--heading-font);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-logo-note {
  margin: 0.6rem 0 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.section {
  padding: 94px 0;
}

.section-head {
  margin-bottom: 1.4rem;
}

.section-kicker {
  margin: 0;
  color: var(--accent-teal);
  font-family: var(--heading-font);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.section-title {
  margin: 0.45rem 0 0;
  font-family: var(--heading-font);
  font-size: clamp(1.5rem, 3.2vw, 2.3rem);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.section-copy {
  margin: 0.85rem 0 0;
  color: var(--text-muted);
  max-width: 74ch;
}

.about-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
}

.panel {
  border: 1px solid rgba(62, 72, 87, 0.55);
  background:
    linear-gradient(150deg, rgba(17, 22, 25, 0.88), rgba(22, 28, 32, 0.92)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent);
  border-radius: 0.95rem;
  padding: clamp(1rem, 2vw, 1.3rem);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.24);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.panel:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 255, 194, 0.3);
}

.team-list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
  display: grid;
  gap: 0.62rem;
}

.team-member {
  border: 1px solid rgba(0, 255, 194, 0.2);
  border-radius: 0.6rem;
  padding: 0.65rem 0.72rem;
  background: rgba(0, 255, 194, 0.04);
}

.team-member strong {
  display: block;
  font-size: 0.98rem;
  font-family: var(--heading-font);
  letter-spacing: 0.04em;
}

.mission-list {
  margin: 0.9rem 0 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
}

.mission-list li + li {
  margin-top: 0.55rem;
}

.mission-panel {
  padding: clamp(1.1rem, 2.2vw, 1.5rem);
}

.mini-brand {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid rgba(0, 255, 194, 0.24);
  border-radius: 999px;
  padding: 0.42rem 0.72rem 0.42rem 0.42rem;
  background: rgba(0, 255, 194, 0.06);
}

.mini-brand img {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(0, 255, 194, 0.28);
}

.mini-brand p {
  margin: 0;
  font-family: var(--heading-font);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.games-grid {
  display: grid;
  gap: 1rem;
}

.game-card {
  border: 1px solid rgba(62, 72, 87, 0.56);
  border-radius: 1rem;
  background:
    linear-gradient(160deg, rgba(15, 19, 22, 0.9), rgba(20, 26, 30, 0.95)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent);
  box-shadow: var(--shadow);
  display: grid;
  gap: 1.1rem;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  transform-style: preserve-3d;
}

.game-card:hover {
  border-color: rgba(0, 255, 194, 0.38);
  box-shadow: 0 28px 78px rgba(0, 0, 0, 0.42);
}

.game-card .media {
  margin: 0;
}

.game-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  image-rendering: auto;
  backface-visibility: hidden;
  transform: translateZ(0);
  filter: saturate(1.08) contrast(1.06) brightness(1.02);
}

.game-content {
  padding: 1.1rem 1.2rem 1.2rem 0;
}

.status-pill {
  display: inline-flex;
  border-radius: 999px;
  padding: 0.36rem 0.68rem;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--heading-font);
  background: rgba(255, 95, 31, 0.14);
  border: 1px solid rgba(255, 95, 31, 0.36);
  color: #ffb591;
  animation: status-pulse 2.2s ease-in-out infinite;
}

@keyframes status-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 95, 31, 0.22);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(255, 95, 31, 0.04);
  }
}

.game-content h3 {
  margin: 0.7rem 0 0;
  font-family: var(--heading-font);
  font-size: clamp(1.3rem, 3vw, 2rem);
  text-transform: uppercase;
}

.game-content p {
  margin: 0.85rem 0 0;
  color: var(--text-muted);
}

.tagline {
  margin-top: 0.95rem;
  color: var(--accent-green);
  font-family: var(--heading-font);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contact-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.contact-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.62rem;
}

.contact-list a {
  color: var(--accent-teal);
  text-decoration: none;
}

.contact-list a:hover,
.contact-list a:focus-visible {
  color: var(--accent-green);
}

.contact-brand-card {
  margin-top: 1rem;
  border: 1px solid rgba(0, 255, 194, 0.24);
  border-radius: 0.8rem;
  background: rgba(0, 255, 194, 0.06);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.75rem;
}

.contact-brand-card img {
  width: 68px;
  height: 68px;
  border-radius: 999px;
  border: 1px solid rgba(0, 255, 194, 0.33);
  box-shadow: 0 0 22px rgba(0, 255, 194, 0.18);
}

.contact-brand-card strong {
  display: block;
  font-family: var(--heading-font);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
}

.contact-brand-card p {
  margin: 0.35rem 0 0;
  color: var(--text-muted);
}

.contact-form {
  border: 1px solid rgba(62, 72, 87, 0.56);
  border-radius: 0.95rem;
  background:
    linear-gradient(160deg, rgba(16, 20, 24, 0.9), rgba(22, 28, 33, 0.94)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent);
  padding: 1rem;
}

.field {
  margin-bottom: 0.85rem;
}

.field label {
  display: block;
  margin-bottom: 0.3rem;
  font-family: var(--heading-font);
  font-size: 0.69rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.field input,
.field textarea {
  width: 100%;
  color: var(--text);
  border: 1px solid rgba(0, 255, 194, 0.24);
  border-radius: 0.56rem;
  background: rgba(0, 0, 0, 0.22);
  padding: 0.62rem 0.72rem;
  font: inherit;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease;
}

.field:hover input,
.field:hover textarea {
  border-color: rgba(0, 255, 194, 0.5);
  box-shadow: 0 0 0 2px rgba(0, 255, 194, 0.16), 0 0 18px rgba(0, 255, 194, 0.1);
}

.field:focus-within label {
  color: var(--accent-teal);
}

.field input:focus,
.field textarea:focus {
  border-color: rgba(0, 255, 194, 0.78);
  box-shadow: 0 0 0 2px rgba(0, 255, 194, 0.24), 0 0 24px rgba(0, 255, 194, 0.14);
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(165, 177, 181, 0.75);
}

.field textarea {
  resize: vertical;
  min-height: 124px;
}

.form-status {
  margin: 0.8rem 0 0;
  border: 1px solid rgba(57, 255, 20, 0.28);
  border-radius: 0.5rem;
  padding: 0.56rem 0.7rem;
  background: rgba(57, 255, 20, 0.08);
  color: var(--accent-green);
}

.form-status[data-status="pending"] {
  border-color: rgba(0, 255, 194, 0.34);
  background: rgba(0, 255, 194, 0.1);
  color: var(--accent-teal);
}

.form-status[data-status="error"] {
  border-color: rgba(255, 95, 31, 0.44);
  background: rgba(255, 95, 31, 0.12);
  color: #ffb08c;
}

.form-status[data-status="success"] {
  border-color: rgba(57, 255, 20, 0.34);
  background: rgba(57, 255, 20, 0.12);
  color: #a3ff93;
}

.form-helper {
  margin: 0.72rem 0 0;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.site-footer {
  border-top: 1px solid rgba(0, 255, 194, 0.16);
  background: rgba(8, 10, 12, 0.56);
  padding: 1.2rem 0;
}

.footer-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-brand img {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(0, 255, 194, 0.2);
}

.footer-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-family: var(--heading-font);
  text-transform: uppercase;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  border: 1px solid rgba(0, 255, 194, 0.17);
  border-radius: 999px;
  padding: 0.32rem 0.62rem;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--accent-teal);
  border-color: rgba(0, 255, 194, 0.38);
}

.copyright {
  margin: 0.6rem 0 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1rem;
  text-align: center;
  background:
    radial-gradient(circle at 50% 30%, rgba(0, 255, 194, 0.15), transparent 38%),
    linear-gradient(155deg, #050708, #101418 58%, #0f1214);
}

.preloader img {
  width: min(188px, 42vw);
  height: auto;
  border-radius: 999px;
  border: 1px solid rgba(0, 255, 194, 0.3);
  box-shadow: 0 0 32px rgba(0, 255, 194, 0.16);
}

.preloader-label {
  margin: 0;
  font-family: var(--heading-font);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.82rem;
  color: var(--accent-teal);
}

.preloader-bar {
  width: min(420px, 76vw);
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(0, 255, 194, 0.08);
}

.preloader-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent-green), var(--accent-teal), var(--accent-orange));
  transition: width 0.26s ease;
}

.preloader-percent {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-family: var(--heading-font);
}

body.theme-light {
  --bg: #ecf0f2;
  --bg-soft: #f8fafb;
  --card: #ffffff;
  --text: #13171d;
  --text-muted: #41515d;
  --line: rgba(0, 133, 104, 0.24);
  --shadow: 0 28px 70px rgba(22, 33, 41, 0.18);
  background:
    radial-gradient(circle at 12% 10%, rgba(0, 255, 194, 0.13), transparent 30%),
    radial-gradient(circle at 85% 8%, rgba(57, 255, 20, 0.08), transparent 34%),
    linear-gradient(145deg, #f4f7f9, #e8edef 56%, #dbe2e8);
}

body.theme-light .top-nav {
  background: linear-gradient(180deg, rgba(244, 247, 249, 0.94), rgba(244, 247, 249, 0.72));
  border-bottom-color: rgba(0, 90, 72, 0.14);
}

body.theme-light .hero {
  background:
    radial-gradient(circle at 15% 12%, rgba(57, 255, 20, 0.21), transparent 31%),
    radial-gradient(circle at 82% 10%, rgba(0, 255, 194, 0.2), transparent 33%),
    linear-gradient(130deg, rgba(231, 236, 239, 0.98), rgba(214, 223, 230, 0.98)),
    repeating-linear-gradient(140deg, rgba(255, 95, 31, 0.07) 0 2px, transparent 2px 12px);
}

body.theme-light .hero-copy p,
body.theme-light .section-copy,
body.theme-light .game-content p,
body.theme-light .copyright {
  color: var(--text-muted);
}

body.theme-light .kicker,
body.theme-light .section-kicker {
  color: #0b6f60;
}

body.theme-light .logo-caption,
body.theme-light .tagline {
  color: #1b7b31;
}

body.theme-light .nav-brand,
body.theme-light .hero-title,
body.theme-light .section-title,
body.theme-light .game-content h3,
body.theme-light .panel strong {
  color: #12212d;
}

body.theme-light .nav-link {
  color: #2f4452;
}

body.theme-light .nav-link:hover,
body.theme-light .nav-link:focus-visible {
  color: #0a6e5a;
  background: rgba(10, 110, 90, 0.12);
}

body.theme-light .nav-link.is-active {
  color: #0d7f34;
  background: rgba(57, 255, 20, 0.22);
  border-color: rgba(57, 255, 20, 0.45);
}

body.theme-light .btn-primary {
  color: #ffffff;
}

body.theme-light .theme-toggle {
  color: #0e4d3a;
  border-color: rgba(14, 77, 58, 0.38);
  background: rgba(57, 255, 20, 0.26);
}

body.theme-light .theme-toggle:hover,
body.theme-light .theme-toggle:focus-visible {
  background: rgba(57, 255, 20, 0.34);
}

body.theme-light .btn-secondary {
  color: #0a5d4c;
  border-color: rgba(10, 93, 76, 0.42);
  background: rgba(0, 190, 145, 0.2);
}

body.theme-light .btn-secondary:hover {
  background: rgba(0, 190, 145, 0.28);
}

body.theme-light .btn-ghost {
  color: #13222d;
  border-color: rgba(19, 34, 45, 0.3);
  background: rgba(255, 255, 255, 0.52);
}

body.theme-light .btn-return-home {
  color: #6f321a;
  border-color: rgba(176, 92, 54, 0.5);
  background: rgba(255, 136, 79, 0.2);
  box-shadow: 0 0 14px rgba(176, 92, 54, 0.16);
}

body.theme-light .btn-return-home:hover {
  background: rgba(255, 136, 79, 0.3);
  box-shadow: 0 0 18px rgba(176, 92, 54, 0.2);
}

body.theme-light .hero-stats li {
  background: rgba(0, 190, 145, 0.1);
  border-color: rgba(10, 93, 76, 0.2);
}

body.theme-light .hero-logo-wrap {
  background:
    linear-gradient(160deg, rgba(235, 242, 246, 0.9), rgba(224, 235, 241, 0.98)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), transparent);
  border-color: rgba(10, 93, 76, 0.26);
}

body.theme-light .hero-logo-note {
  color: #48606f;
}

body.theme-light .hero-logo-wrap img,
body.theme-light .game-card img,
body.theme-light .game-logo-box img {
  filter: saturate(1.04) contrast(1.05) brightness(1.01);
}

body.theme-light .panel,
body.theme-light .game-card,
body.theme-light .contact-form {
  background:
    linear-gradient(150deg, rgba(241, 246, 249, 0.92), rgba(227, 236, 242, 0.98)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), transparent);
  border-color: rgba(67, 88, 102, 0.24);
}

body.theme-light .status-pill {
  color: #8e3d20;
  border-color: rgba(192, 103, 63, 0.42);
  background: rgba(255, 95, 31, 0.16);
}

body.theme-light .field input,
body.theme-light .field textarea {
  color: #10202b;
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(10, 93, 76, 0.24);
}

body.theme-light .field:hover input,
body.theme-light .field:hover textarea {
  border-color: rgba(10, 93, 76, 0.46);
  box-shadow: 0 0 0 2px rgba(10, 93, 76, 0.12), 0 0 16px rgba(10, 93, 76, 0.08);
}

body.theme-light .field:focus-within label {
  color: #0a6e5a;
}

body.theme-light .field input:focus,
body.theme-light .field textarea:focus {
  border-color: rgba(10, 93, 76, 0.68);
  box-shadow: 0 0 0 2px rgba(10, 93, 76, 0.18), 0 0 18px rgba(10, 93, 76, 0.1);
}

body.theme-light .field input::placeholder,
body.theme-light .field textarea::placeholder {
  color: rgba(66, 84, 96, 0.82);
}

body.theme-light .contact-list a {
  color: #046a5d;
}

body.theme-light .contact-list a:hover,
body.theme-light .contact-list a:focus-visible {
  color: #0c8b37;
}

body.theme-light .mini-brand,
body.theme-light .contact-brand-card {
  background: rgba(0, 190, 145, 0.12);
  border-color: rgba(10, 93, 76, 0.25);
}

body.theme-light .site-footer {
  background: rgba(226, 235, 241, 0.82);
  border-top-color: rgba(67, 88, 102, 0.2);
}

body.theme-light .footer-links a {
  color: #2f4452;
  border-color: rgba(67, 88, 102, 0.26);
}

body.theme-light .footer-links a:hover,
body.theme-light .footer-links a:focus-visible {
  color: #0a6e5a;
  border-color: rgba(10, 110, 90, 0.38);
}

body.theme-light .form-helper {
  color: #4b6271;
}

body.theme-light .form-status {
  color: #0f6f31;
  border-color: rgba(15, 111, 49, 0.3);
  background: rgba(15, 111, 49, 0.1);
}

body.theme-light .form-status[data-status="pending"] {
  color: #0c5f56;
  border-color: rgba(12, 95, 86, 0.3);
  background: rgba(12, 95, 86, 0.1);
}

body.theme-light .form-status[data-status="error"] {
  color: #8c2f1a;
  border-color: rgba(140, 47, 26, 0.3);
  background: rgba(140, 47, 26, 0.1);
}

body.theme-light .simulator {
  background: linear-gradient(150deg, rgba(239, 246, 249, 0.9), rgba(226, 236, 242, 0.96));
  border-color: rgba(192, 103, 63, 0.34);
}

body.theme-light .sim-readout {
  background: linear-gradient(160deg, rgba(231, 243, 247, 0.96), rgba(216, 232, 238, 0.98));
  border-color: rgba(53, 92, 106, 0.32);
}

body.theme-light .sim-check {
  background: rgba(0, 190, 145, 0.14);
  border-color: rgba(10, 93, 76, 0.28);
}

body.theme-light .sim-row select {
  color: #10202b;
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(10, 93, 76, 0.28);
}

body.theme-light .sim-gauge {
  background: rgba(57, 86, 102, 0.28);
  border-color: rgba(57, 86, 102, 0.42);
}

body.theme-light .sim-gauge i {
  background: linear-gradient(90deg, #2d8a2d 0%, #169f87 55%, #d96a1a 100%);
}

body.theme-light .sim-readout strong {
  color: #0e6f2d;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

body.theme-light .sim-readout p,
body.theme-light .sim-advice li {
  color: #1f3443;
}

body.theme-light .sim-advice li::marker {
  color: #33586b;
}

body.theme-light .sim-risk {
  color: #6f321a;
  border-color: rgba(176, 92, 54, 0.52);
  background: rgba(255, 136, 79, 0.16);
}

body.theme-light .feature-card {
  background: linear-gradient(150deg, rgba(238, 245, 249, 0.95), rgba(225, 235, 241, 0.98));
  border-color: rgba(67, 88, 102, 0.26);
}

body.theme-light .feature-card h3 {
  color: #142533;
}

body.theme-light .feature-card p {
  color: #405562;
}

.game-page {
  min-height: 100vh;
  position: relative;
}

.game-page .top-nav {
  position: sticky;
}

.game-hero {
  position: relative;
  padding: 86px 0 62px;
  overflow: hidden;
}

.game-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 28%, rgba(255, 95, 31, 0.2), transparent 32%),
    radial-gradient(circle at 82% 15%, rgba(0, 255, 194, 0.22), transparent 36%),
    repeating-linear-gradient(140deg, rgba(255, 95, 31, 0.05) 0 2px, transparent 2px 14px);
  opacity: 0.85;
  pointer-events: none;
}

.game-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 1.2rem;
  align-items: center;
}

.game-logo-box {
  border: 1px solid rgba(0, 255, 194, 0.3);
  border-radius: 1rem;
  padding: 1rem;
  background: linear-gradient(160deg, rgba(13, 18, 22, 0.88), rgba(23, 29, 33, 0.94));
  box-shadow: var(--shadow);
  animation: float-slow 6.5s ease-in-out infinite;
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-logo-box img {
  width: min(100%, 430px);
  max-width: 430px;
  height: auto;
  border-radius: 0.8rem;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: auto;
  backface-visibility: hidden;
  transform: translateZ(0);
  filter: saturate(1.14) contrast(1.12) brightness(1.03);
}

@keyframes float-slow {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.hud-panel {
  border: 1px solid rgba(57, 255, 20, 0.27);
  border-radius: 0.9rem;
  padding: 0.9rem;
  background: rgba(57, 255, 20, 0.06);
  display: grid;
  gap: 0.7rem;
}

.hud-row {
  display: flex;
  justify-content: space-between;
  gap: 0.9rem;
}

.hud-row span {
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-family: var(--heading-font);
  font-size: 0.68rem;
  color: var(--text-muted);
}

.hud-bar {
  height: 8px;
  border-radius: 999px;
  border: 1px solid rgba(0, 255, 194, 0.26);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.25);
}

.hud-bar i {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #39ff14, #00ffc2, #ff5f1f);
  animation: hud-shift 5.5s linear infinite;
}

@keyframes hud-shift {
  from {
    transform: translateX(0%);
  }
  to {
    transform: translateX(12%);
  }
}

.feature-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card {
  border: 1px solid rgba(0, 255, 194, 0.18);
  border-radius: 0.9rem;
  padding: 0.9rem;
  background: linear-gradient(150deg, rgba(16, 21, 24, 0.9), rgba(23, 31, 36, 0.95));
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 255, 194, 0.42);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
}

.feature-card h3 {
  margin: 0;
  font-family: var(--heading-font);
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
}

.feature-card p {
  margin: 0.62rem 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.simulator {
  border: 1px solid rgba(255, 95, 31, 0.3);
  border-radius: 1rem;
  padding: 1rem;
  background: linear-gradient(150deg, rgba(20, 15, 13, 0.84), rgba(18, 23, 26, 0.92));
}

.sim-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 1rem;
}

.sim-controls {
  display: grid;
  gap: 0.75rem;
}

.sim-row {
  display: grid;
  gap: 0.4rem;
}

.sim-row label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.68rem;
  font-family: var(--heading-font);
  color: var(--text-muted);
}

.sim-row input[type="range"] {
  width: 100%;
  accent-color: var(--accent-orange);
}

.sim-row select {
  width: 100%;
  color: var(--text);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(0, 255, 194, 0.24);
  border-radius: 0.5rem;
  font: inherit;
  padding: 0.5rem 0.58rem;
}

.sim-check {
  border: 1px solid rgba(0, 255, 194, 0.2);
  border-radius: 0.6rem;
  background: rgba(0, 255, 194, 0.06);
  padding: 0.65rem 0.7rem;
  grid-template-columns: 1fr auto;
  align-items: center;
}

.sim-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent-teal);
}

.sim-readout {
  border: 1px solid rgba(0, 255, 194, 0.24);
  border-radius: 0.9rem;
  background: rgba(0, 255, 194, 0.06);
  padding: 0.85rem;
}

.sim-gauge {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  border: 1px solid rgba(0, 255, 194, 0.24);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.28);
}

.sim-gauge i {
  display: block;
  width: 70%;
  height: 100%;
  background: linear-gradient(90deg, #39ff14, #00ffc2, #ff5f1f);
  transition: width 0.2s ease;
}

.sim-readout strong {
  margin-top: 0.72rem;
  display: block;
  font-family: var(--heading-font);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-green);
}

.sim-readout p {
  margin: 0.45rem 0 0;
  color: var(--text-muted);
}

.sim-risk {
  display: inline-flex;
  border-radius: 999px;
  border: 1px solid rgba(255, 95, 31, 0.34);
  background: rgba(255, 95, 31, 0.14);
  padding: 0.28rem 0.58rem;
  font-family: var(--heading-font);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 0.67rem;
}

.sim-advice {
  margin: 0.75rem 0 0;
  padding-left: 1rem;
}

.sim-advice li {
  color: var(--text-muted);
}

.sim-advice li + li {
  margin-top: 0.4rem;
}

.timeline {
  display: grid;
  gap: 0.6rem;
}

.timeline-item {
  border-left: 2px solid rgba(0, 255, 194, 0.34);
  padding: 0.42rem 0 0.42rem 0.8rem;
}

.timeline-item strong {
  font-family: var(--heading-font);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.74rem;
}

.timeline-item p {
  margin: 0.3rem 0 0;
  color: var(--text-muted);
}

.auth-page {
  min-height: 100vh;
  position: relative;
}

.auth-page .top-nav {
  position: sticky;
}

.auth-main {
  position: relative;
}

.auth-section {
  position: relative;
  overflow: hidden;
}

.auth-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 24%, rgba(255, 95, 31, 0.12), transparent 32%),
    radial-gradient(circle at 84% 12%, rgba(0, 255, 194, 0.14), transparent 34%),
    repeating-linear-gradient(145deg, rgba(0, 255, 194, 0.04) 0 2px, transparent 2px 12px);
  pointer-events: none;
}

.auth-head {
  position: relative;
  z-index: 1;
  margin-bottom: 1rem;
}

.auth-notice {
  margin: 0.8rem 0 0;
  border: 1px solid rgba(0, 255, 194, 0.3);
  border-radius: 0.6rem;
  padding: 0.6rem 0.74rem;
  background: rgba(0, 255, 194, 0.1);
  color: var(--accent-teal);
  max-width: 74ch;
}

.auth-layout {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1rem;
}

.auth-layout-signup,
.auth-layout-settings {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
}

.auth-layout-login,
.auth-layout-profile {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.auth-card {
  position: relative;
  overflow: hidden;
}

.auth-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 25%, rgba(0, 255, 194, 0.04) 50%, transparent 75%);
  transform: translateX(-100%);
  animation: auth-shimmer 7s linear infinite;
}

@keyframes auth-shimmer {
  to {
    transform: translateX(100%);
  }
}

.auth-card-title {
  margin: 0;
  font-family: var(--heading-font);
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.auth-form {
  margin-top: 0.95rem;
}

.auth-field {
  margin-bottom: 0.84rem;
}

.auth-field label {
  display: block;
  margin-bottom: 0.28rem;
  font-family: var(--heading-font);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.auth-field input {
  width: 100%;
  font: inherit;
  color: var(--text);
  border: 1px solid rgba(0, 255, 194, 0.22);
  border-radius: 0.58rem;
  background: rgba(0, 0, 0, 0.24);
  padding: 0.62rem 0.7rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-field input::placeholder {
  color: rgba(165, 177, 181, 0.72);
}

.auth-field input:focus {
  border-color: rgba(0, 255, 194, 0.64);
  box-shadow: 0 0 0 2px rgba(0, 255, 194, 0.18);
}

.auth-grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.auth-checkbox {
  margin: 0.72rem 0 0.9rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.55rem;
  align-items: start;
  color: var(--text-muted);
}

.auth-checkbox input[type="checkbox"] {
  margin-top: 0.1rem;
  width: 17px;
  height: 17px;
  accent-color: var(--accent-teal);
}

.auth-status {
  margin: 0.8rem 0 0;
  border: 1px solid rgba(57, 255, 20, 0.28);
  border-radius: 0.56rem;
  padding: 0.56rem 0.7rem;
  background: rgba(57, 255, 20, 0.1);
  color: var(--accent-green);
}

.auth-status[data-status="error"] {
  border-color: rgba(255, 95, 31, 0.42);
  background: rgba(255, 95, 31, 0.14);
  color: #ffb18c;
}

.auth-status[data-status="success"] {
  border-color: rgba(57, 255, 20, 0.34);
  background: rgba(57, 255, 20, 0.12);
  color: #b0ff9e;
}

.auth-helper {
  margin: 0.75rem 0 0;
  color: var(--text-muted);
}

.auth-helper a {
  color: var(--accent-teal);
  text-decoration: none;
}

.auth-helper a:hover,
.auth-helper a:focus-visible {
  color: var(--accent-green);
}

.terms-box {
  border: 1px solid rgba(0, 255, 194, 0.24);
  border-radius: 0.8rem;
  background: rgba(0, 255, 194, 0.06);
  padding: 0.72rem;
  margin: 0.3rem 0 1rem;
}

.terms-box h4 {
  margin: 0;
  font-family: var(--heading-font);
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.terms-scroll {
  margin-top: 0.62rem;
  border: 1px solid rgba(0, 255, 194, 0.18);
  border-radius: 0.64rem;
  background: rgba(0, 0, 0, 0.2);
  padding: 0.7rem;
  max-height: 230px;
  overflow: auto;
}

.terms-scroll p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.terms-scroll p + p {
  margin-top: 0.55rem;
}

.profile-header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.84rem;
  align-items: center;
}

.profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-family: var(--heading-font);
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-green);
  border: 1px solid rgba(57, 255, 20, 0.36);
  background: rgba(57, 255, 20, 0.1);
  box-shadow: 0 0 18px rgba(57, 255, 20, 0.15);
}

.profile-grid {
  margin-top: 0.95rem;
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-item {
  border: 1px solid rgba(0, 255, 194, 0.2);
  border-radius: 0.62rem;
  padding: 0.65rem 0.72rem;
  background: rgba(0, 255, 194, 0.05);
}

.profile-item span {
  display: block;
  font-family: var(--heading-font);
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.profile-item strong {
  display: block;
  margin-top: 0.28rem;
  font-size: 0.88rem;
}

.settings-preferences,
.settings-password {
  margin: 0.9rem 0;
  border: 1px solid rgba(0, 255, 194, 0.2);
  border-radius: 0.72rem;
  padding: 0.72rem;
  background: rgba(0, 255, 194, 0.05);
}

.settings-preferences h4,
.settings-password h4 {
  margin: 0;
  font-family: var(--heading-font);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

body.theme-light .auth-section::before {
  background:
    radial-gradient(circle at 18% 24%, rgba(176, 92, 54, 0.18), transparent 32%),
    radial-gradient(circle at 84% 12%, rgba(10, 93, 76, 0.15), transparent 34%),
    repeating-linear-gradient(145deg, rgba(10, 93, 76, 0.05) 0 2px, transparent 2px 12px);
}

body.theme-light .auth-card::after {
  background: linear-gradient(120deg, transparent 25%, rgba(10, 93, 76, 0.05) 50%, transparent 75%);
}

body.theme-light .auth-notice {
  border-color: rgba(10, 93, 76, 0.3);
  background: rgba(10, 93, 76, 0.12);
  color: #0a5d4c;
}

body.theme-light .auth-field label {
  color: #4a616f;
}

body.theme-light .auth-field input {
  color: #10202b;
  border-color: rgba(10, 93, 76, 0.24);
  background: rgba(255, 255, 255, 0.9);
}

body.theme-light .auth-field input::placeholder {
  color: rgba(66, 84, 96, 0.82);
}

body.theme-light .auth-field input:focus {
  border-color: rgba(10, 93, 76, 0.58);
  box-shadow: 0 0 0 2px rgba(10, 93, 76, 0.16);
}

body.theme-light .auth-checkbox {
  color: #4b6271;
}

body.theme-light .auth-status {
  color: #0f6f31;
  border-color: rgba(15, 111, 49, 0.3);
  background: rgba(15, 111, 49, 0.1);
}

body.theme-light .auth-status[data-status="error"] {
  color: #8c2f1a;
  border-color: rgba(140, 47, 26, 0.3);
  background: rgba(140, 47, 26, 0.1);
}

body.theme-light .auth-status[data-status="success"] {
  color: #0f6f31;
  border-color: rgba(15, 111, 49, 0.3);
  background: rgba(15, 111, 49, 0.1);
}

body.theme-light .auth-helper,
body.theme-light .terms-scroll p {
  color: #4b6271;
}

body.theme-light .auth-helper a {
  color: #046a5d;
}

body.theme-light .auth-helper a:hover,
body.theme-light .auth-helper a:focus-visible {
  color: #0c8b37;
}

body.theme-light .terms-box,
body.theme-light .settings-preferences,
body.theme-light .settings-password,
body.theme-light .profile-item {
  border-color: rgba(10, 93, 76, 0.24);
  background: rgba(0, 190, 145, 0.12);
}

body.theme-light .terms-scroll {
  border-color: rgba(10, 93, 76, 0.2);
  background: rgba(255, 255, 255, 0.72);
}

body.theme-light .profile-avatar {
  color: #0d7f34;
  border-color: rgba(15, 111, 49, 0.34);
  background: rgba(57, 255, 20, 0.16);
  box-shadow: 0 0 14px rgba(15, 111, 49, 0.12);
}

body.theme-light .profile-item span {
  color: #4b6271;
}

@media (max-width: 1024px) {
  .hero-grid,
  .about-grid,
  .contact-grid,
  .game-card,
  .auth-layout-signup,
  .auth-layout-login,
  .auth-layout-profile,
  .auth-layout-settings,
  .footer-grid,
  .game-hero-grid,
  .feature-grid,
  .sim-layout {
    grid-template-columns: 1fr;
  }

  .game-card .media {
    max-height: 320px;
  }

  .game-content {
    padding: 0 1rem 1rem;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 900px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    padding: 0.85rem 1.2rem 1.05rem;
    background: rgba(8, 11, 14, 0.95);
    border-bottom: 1px solid rgba(0, 255, 194, 0.16);
    display: none;
    flex-direction: column;
    align-items: flex-start;
  }

  body.theme-light .nav-links {
    background: rgba(244, 247, 249, 0.96);
  }

  .top-nav.open .nav-links {
    display: flex;
  }

  .nav-actions .btn {
    display: none;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .hero {
    padding-top: 108px;
  }

  .hero-title-secondary {
    margin-top: 0.12rem;
    max-width: 24ch;
  }

  .section {
    padding: 72px 0;
  }

  .profile-grid,
  .auth-grid-two {
    grid-template-columns: 1fr;
  }
}
