:root {
  --bg: #051417;
  --bg-soft: #0b2328;
  --site-background-image: url("images/site-background.jpg");
  --surface: rgba(10, 22, 34, 0.82);
  --surface-strong: #11343a;
  --surface-bright: #19515a;
  --text: #f2f7fb;
  --muted: #a8d6d8;
  --line: rgba(173, 233, 235, 0.16);
  --accent: #17cfc6;
  --accent-deep: #0faec0;
  --ice: #73f0ef;
  --gold: #95f4df;
  --success: #7ce5ae;
  --error: #ff8f86;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --rail-width: 214px;
  --content-width: 1180px;
}

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

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  position: relative;
  isolation: isolate;
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  font-family: "Segoe UI Variable Text", "Trebuchet MS", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 10%, rgba(115, 240, 239, 0.16), transparent 34%),
    radial-gradient(circle at 88% 18%, rgba(23, 207, 198, 0.18), transparent 26%),
    linear-gradient(180deg, #041014 0%, #07181d 45%, #0a2025 100%);
  min-height: 100vh;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  z-index: -2;
  background-image: var(--site-background-image);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0.16;
  filter: saturate(1.05) blur(2px);
  transform: scale(1.03);
}

body::after {
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(2, 11, 14, 0.34), rgba(3, 13, 17, 0.56) 38%, rgba(4, 15, 19, 0.76) 100%),
    radial-gradient(circle at 16% 14%, rgba(115, 240, 239, 0.1), transparent 30%),
    radial-gradient(circle at 82% 12%, rgba(23, 207, 198, 0.12), transparent 24%);
}

body.age-locked {
  overflow: hidden;
}

@supports (overflow: clip) {
  html,
  body {
    overflow-x: clip;
  }
}

img {
  max-width: 100%;
  display: block;
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header,
.site-footer,
main {
  position: relative;
}

body.has-rail .site-header,
body.has-rail .site-footer,
body.has-rail main {
  padding-left: calc(var(--rail-width) + 1rem);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(5, 13, 20, 0.72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.header-inner,
.footer-inner,
.section-shell {
  width: min(var(--content-width), calc(100vw - 2rem));
  margin: 0 auto;
  padding: 0 clamp(1rem, 2vw, 1.6rem);
}

.header-inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.brand-logo {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  object-fit: cover;
}

.brand.brand--text-only .brand-logo {
  display: none;
}

.brand-copy {
  min-width: 0;
  display: grid;
  gap: 0.2rem;
}

.brand-copy strong {
  font-family: "Arial Black", "Franklin Gothic Heavy", sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.85rem;
  white-space: nowrap;
}

.top-nav,
.rail-links,
.footer-list,
.social-list,
.inline-links {
  display: flex;
  gap: 0.8rem;
}

.top-nav {
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.top-nav a,
.mobile-menu a {
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  color: var(--muted);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.top-nav a:hover,
.top-nav a:focus-visible,
.mobile-menu a:hover,
.mobile-menu a:focus-visible,
.top-nav a.is-active,
.mobile-menu a.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border-radius: 999px;
  padding: 0.72rem 1rem;
  min-width: 118px;
  min-height: 52px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.nav-toggle::before {
  content: "";
  width: 1.05rem;
  height: 0.82rem;
  border-radius: 2px;
  background:
    linear-gradient(currentColor 0 0) center top / 100% 2px no-repeat,
    linear-gradient(currentColor 0 0) center center / 100% 2px no-repeat,
    linear-gradient(currentColor 0 0) center bottom / 100% 2px no-repeat;
  opacity: 0.95;
}

.nav-toggle:hover,
.nav-toggle:focus-visible,
.nav-toggle[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

.mobile-menu {
  width: min(var(--content-width), calc(100vw - 2rem));
  margin: 0 auto;
  padding: 0 1.2rem;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, auto));
  gap: 0.8rem;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  pointer-events: none;
  transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
}

.mobile-menu.is-open {
  max-height: 320px;
  opacity: 1;
  pointer-events: auto;
  padding-bottom: 1rem;
}

.mobile-menu a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  text-align: center;
  white-space: nowrap;
}

.site-rail {
  position: fixed;
  left: 1rem;
  top: 104px;
  z-index: 45;
  width: var(--rail-width);
  padding: 1rem;
  border-radius: 28px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(17, 36, 54, 0.95), rgba(8, 19, 31, 0.92)),
    radial-gradient(circle at top right, rgba(23, 207, 198, 0.12), transparent 40%);
  box-shadow: var(--shadow);
}

.rail-title {
  display: block;
  font-family: "Arial Black", "Franklin Gothic Heavy", sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.95rem;
}

.rail-links {
  flex-direction: column;
}

.rail-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.86rem 0.95rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  border: 1px solid transparent;
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.rail-links a::after {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--ice));
  box-shadow: 0 0 18px rgba(23, 207, 198, 0.45);
}

.rail-links a:hover,
.rail-links a:focus-visible,
.rail-links a.is-active {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.07);
  transform: translateX(2px);
}

.rail-note {
  margin-top: 1rem;
  padding: 0.95rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.section-shell {
  padding-top: clamp(3.5rem, 8vw, 6rem);
  padding-bottom: clamp(3.5rem, 8vw, 6rem);
}

.hero {
  min-height: calc(100vh - 84px);
  display: grid;
  align-items: center;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(18px);
}

.hero::before {
  inset: 8% auto auto 8%;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(115, 240, 239, 0.24), transparent 70%);
  animation: drift 10s ease-in-out infinite alternate;
}

.hero::after {
  inset: auto 4% 8% auto;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(23, 207, 198, 0.2), transparent 70%);
  animation: drift 12s ease-in-out infinite alternate-reverse;
}

.hero-grid,
.about-grid,
.story-grid,
.featured-grid,
.reviews-grid,
.contact-grid,
.policy-grid,
.footer-grid,
.catalog-grid,
.legal-grid,
.highlights-grid {
  display: grid;
  gap: 1.4rem;
}

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

.eyebrow,
.chip,
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 0.85rem;
}

.eyebrow {
  margin-bottom: 1.2rem;
  font-family: "Arial Black", "Franklin Gothic Heavy", sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero h1,
.page-intro h1 {
  margin: 0;
  font-family: "Arial Black", "Franklin Gothic Heavy", sans-serif;
  font-size: clamp(2.9rem, 8vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero p,
.page-intro p,
.section-heading p,
.info-card p,
.story-card p,
.review-card p,
.faq-card details,
.contact-copy p,
.policy-card p,
.footer-note,
.footer-copy p,
.game-card p,
.legal-intro p,
.legal-panel p,
.form-note {
  color: var(--muted);
  line-height: 1.7;
}

.hero-copy > p {
  max-width: 62ch;
  margin: 1.2rem 0 0;
  font-size: 1.05rem;
}

.hero-actions,
.hero-badges,
.card-tags,
.policy-links,
.meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero-actions {
  margin-top: 1.7rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.9rem 1.3rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff;
  box-shadow: 0 20px 36px rgba(23, 207, 198, 0.24);
}

.button-ghost {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.hero-badges {
  margin-top: 1.5rem;
}

.hero-stack {
  display: grid;
  gap: 1rem;
}

.glass-card,
.info-card,
.story-card,
.review-card,
.policy-card,
.game-card,
.legal-panel,
.contact-panel,
.faq-card,
.hero-panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(17, 34, 51, 0.9), rgba(10, 22, 34, 0.84));
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 1.2rem;
}

.hero-panel.primary {
  min-height: 220px;
  background:
    radial-gradient(circle at top right, rgba(23, 207, 198, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(18, 37, 55, 0.96), rgba(9, 20, 33, 0.9));
}

.panel-label,
.mini-title,
.section-heading span,
.legal-panel h2,
.legal-panel h3 {
  font-family: "Arial Black", "Franklin Gothic Heavy", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel-label {
  display: inline-flex;
  margin-bottom: 0.85rem;
  color: var(--gold);
  font-size: 0.82rem;
}

.hero-panel p {
  margin: 0 0 1rem;
}

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

.metric {
  padding: 0.95rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.metric strong {
  display: block;
  font-size: 1.15rem;
}

.metric span {
  color: var(--muted);
  font-size: 0.88rem;
}

.section-heading {
  display: grid;
  gap: 0.7rem;
  margin-bottom: 1.8rem;
  max-width: 68ch;
}

.section-heading span,
.page-intro span {
  color: var(--gold);
  font-size: 0.82rem;
}

.section-heading h2,
.page-intro h2 {
  margin: 0;
  font-family: "Arial Black", "Franklin Gothic Heavy", sans-serif;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.about-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.info-card,
.story-card,
.review-card,
.policy-card,
.game-card,
.legal-panel,
.contact-panel,
.faq-card {
  padding: 1.45rem;
}

.info-card h3,
.story-card h3,
.review-card h3,
.policy-card h3,
.game-card h3,
.contact-panel h3 {
  margin: 0 0 0.75rem;
  font-family: "Arial Black", "Franklin Gothic Heavy", sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.info-card strong,
.story-index {
  display: inline-flex;
  margin-bottom: 0.85rem;
  color: var(--ice);
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.highlights-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 1.4rem;
}

.highlight-pill {
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  text-align: center;
}

.highlight-pill strong {
  display: block;
  margin-bottom: 0.4rem;
  font-family: "Arial Black", "Franklin Gothic Heavy", sans-serif;
  font-size: 1.12rem;
}

.highlight-pill span {
  color: var(--muted);
  font-size: 0.88rem;
}

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

.story-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--ice));
}

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

.catalog-grid {
  align-items: stretch;
}

.game-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.media-frame {
  position: relative;
  min-height: 220px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(135deg, rgba(23, 207, 198, 0.24), rgba(115, 240, 239, 0.18)),
    linear-gradient(180deg, rgba(10, 19, 29, 0.94), rgba(16, 31, 47, 0.92));
}

.media-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 15%, rgba(255, 255, 255, 0.16), transparent 18%),
    radial-gradient(circle at 85% 22%, rgba(255, 255, 255, 0.12), transparent 20%),
    linear-gradient(135deg, rgba(23, 207, 198, 0.14), transparent 60%);
  pointer-events: none;
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame.is-fallback img {
  display: none;
}

.media-frame.is-fallback::after {
  content: attr(data-label);
  position: absolute;
  inset: auto 1rem 1rem 1rem;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  font-family: "Arial Black", "Franklin Gothic Heavy", sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(7, 18, 29, 0.72);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.game-card p {
  margin: 0;
}

.game-card .button {
  width: fit-content;
  margin-top: auto;
}

.card-tags {
  margin-top: 0.1rem;
}

.status-pill {
  font-size: 0.76rem;
}

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

.review-card {
  min-height: 100%;
}

.review-name {
  display: block;
  margin-top: 1rem;
  color: var(--gold);
  font-weight: 700;
}

.faq-card {
  display: grid;
  gap: 1rem;
}

.faq-card details {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  padding: 1rem 1.1rem;
}

.faq-card summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--text);
}

.faq-card details p {
  margin-bottom: 0;
}

.contact-grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
}

.contact-panel form {
  display: grid;
  gap: 1rem;
}

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

.field label {
  display: block;
  margin-bottom: 0.45rem;
  font-weight: 600;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(4, 10, 16, 0.48);
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(115, 240, 239, 0.72);
  box-shadow: 0 0 0 4px rgba(115, 240, 239, 0.14);
}

.field input.is-invalid,
.field textarea.is-invalid {
  border-color: rgba(255, 143, 134, 0.82);
  box-shadow: 0 0 0 4px rgba(255, 143, 134, 0.14);
}

.form-status {
  min-height: 1.5rem;
  font-weight: 600;
}

.form-status.is-success {
  color: var(--success);
}

.form-status.is-error {
  color: var(--error);
}

.policy-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.policy-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.policy-card .button {
  width: fit-content;
  margin-top: auto;
}

.page-intro {
  padding-top: clamp(3.5rem, 8vw, 5rem);
  padding-bottom: 2rem;
}

.page-intro p {
  margin-top: 1rem;
  max-width: 64ch;
}

.legal-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  align-items: start;
}

.legal-panel h2,
.legal-panel h3 {
  margin: 0 0 0.8rem;
  font-size: 1rem;
}

.legal-panel + .legal-panel {
  margin-top: 1rem;
}

.legal-doc {
  display: grid;
  gap: 1rem;
}

.inline-links {
  flex-wrap: wrap;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(5, 13, 20, 0.75);
}

.footer-inner {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

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

.footer-copy h3,
.footer-col h3 {
  margin: 0 0 0.9rem;
  font-family: "Arial Black", "Franklin Gothic Heavy", sans-serif;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-copy p {
  margin: 0;
}

.footer-list,
.social-list {
  flex-direction: column;
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-list a,
.social-list a {
  color: var(--muted);
}

.footer-list a:hover,
.footer-list a:focus-visible,
.social-list a:hover,
.social-list a:focus-visible {
  color: var(--text);
}

.footer-meta {
  margin-top: 1.6rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.2rem;
  justify-content: space-between;
  color: var(--muted);
}

.footer-note {
  max-width: 62ch;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

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

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 1.2rem;
  background: rgba(1, 5, 9, 0.86);
  backdrop-filter: blur(14px);
}

.age-gate__card {
  width: min(620px, calc(100vw - 2rem));
  padding: 2rem;
  border-radius: 28px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at top right, rgba(115, 240, 239, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(16, 33, 49, 0.98), rgba(7, 17, 27, 0.98));
  box-shadow: var(--shadow);
}

.age-gate__card h2 {
  margin: 0 0 0.9rem;
  font-family: "Arial Black", "Franklin Gothic Heavy", sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.age-gate__list {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
  line-height: 1.7;
}

.age-gate__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.page-game {
  background: linear-gradient(180deg, #041015, #08171c);
}

.page-game .site-header,
.page-game .site-footer {
  padding-left: 0;
}

.game-main {
  padding-left: 0;
}

.game-shell {
  width: 100%;
  padding: 0;
}

.game-frame {
  display: block;
  width: 100%;
  min-height: calc(100svh - 174px);
  height: 82vh;
  border: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(115, 240, 239, 0.2), transparent 30%),
    linear-gradient(180deg, #0a1b22, #051015);
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: translate3d(18px, -22px, 0) scale(1.08);
  }
}

@media (max-width: 1180px) {
  .about-grid,
  .highlights-grid,
  .policy-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .featured-grid,
  .catalog-grid,
  .reviews-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-grid,
  .legal-grid,
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  body.has-rail .site-header,
  body.has-rail .site-footer,
  body.has-rail main {
    padding-left: 0;
  }

  .site-rail {
    top: auto;
    bottom: calc(0.55rem + env(safe-area-inset-bottom, 0px));
    left: 50%;
    right: auto;
    width: min(720px, calc(100vw - 1rem));
    max-width: calc(100vw - 1rem);
    padding: 0.7rem;
    border-radius: 22px;
    transform: translateX(-50%);
    overflow: hidden;
  }

  .rail-title,
  .rail-note {
    display: none;
  }

  .rail-links {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.55rem;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.08rem;
  }

  .rail-links::-webkit-scrollbar {
    display: none;
  }

  .rail-links a {
    flex: 0 0 auto;
    justify-content: center;
    text-align: center;
    min-width: 102px;
    min-height: 52px;
    padding: 0.8rem 1rem;
  }

  .rail-links a::after {
    display: none;
  }

  .rail-links a:hover,
  .rail-links a:focus-visible,
  .rail-links a.is-active {
    transform: none;
  }

  main {
    padding-bottom: 7rem;
  }
}

@media (max-width: 760px) {
  .site-rail {
    display: none;
  }

  main {
    padding-bottom: 0;
  }

  .site-header {
    background: rgba(4, 14, 18, 0.9);
  }

  .header-inner {
    min-height: auto;
    padding-top: 0.95rem;
    padding-bottom: 0.95rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 0.9rem;
  }

  .top-nav {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    align-self: center;
  }

  .brand {
    align-items: flex-start;
    gap: 0.8rem;
    min-width: 0;
    padding-right: 0.25rem;
  }

  .brand-logo {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    flex: 0 0 auto;
  }

  .brand-copy {
    gap: 0.3rem;
  }

  .brand-copy strong {
    font-size: clamp(1rem, 4.6vw, 1.22rem);
    line-height: 1.06;
    letter-spacing: 0.05em;
  }

  .about-grid,
  .story-grid,
  .featured-grid,
  .catalog-grid,
  .reviews-grid,
  .policy-grid,
  .footer-grid,
  .highlights-grid,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .hero h1,
  .page-intro h1 {
    font-size: clamp(2.35rem, 13vw, 3.65rem);
  }

  .mobile-menu {
    padding-left: 1rem;
    padding-right: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
  }

  .mobile-menu a {
    min-height: 50px;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
  }

  .mobile-menu a:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .brand-copy span {
    white-space: normal;
    max-width: 22ch;
    font-size: 0.8rem;
    line-height: 1.35;
  }

  .game-frame {
    min-height: calc(100svh - 160px);
    height: 78svh;
  }
}

@media (max-width: 430px) {
  .nav-toggle {
    min-width: 98px;
    min-height: 48px;
    padding: 0.7rem 0.9rem;
  }

  .brand-logo {
    width: 44px;
    height: 44px;
  }

  .brand-copy strong {
    font-size: 0.95rem;
  }

  .brand-copy span {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
