:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.78);
  --panel-strong: rgba(15, 23, 42, 0.96);
  --line: rgba(255, 255, 255, 0.11);
  --text: #f8fafc;
  --muted: #cbd5e1;
  --subtle: #94a3b8;
  --cyan: #22d3ee;
  --sky: #38bdf8;
  --violet: #a855f7;
  --pink: #f472b6;
  --brand-orange: #ff7a45;
  --lime: #84cc16;
  --shadow: 0 24px 70px rgba(2, 6, 23, 0.42);
  --glow: 0 0 52px rgba(34, 211, 238, 0.16);
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #fff7ed;
  --bg-soft: #fff2e3;
  --panel: rgba(255, 255, 255, 0.82);
  --panel-strong: rgba(255, 255, 255, 0.96);
  --line: rgba(15, 23, 42, 0.14);
  --text: #111827;
  --muted: #475569;
  --subtle: #64748b;
  --cyan: #0284c7;
  --sky: #0ea5e9;
  --violet: #7c3aed;
  --pink: #db2777;
  --lime: #4d7c0f;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.14);
  --glow: 0 0 52px rgba(255, 122, 69, 0.17);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 85% 10%, rgba(34, 211, 238, 0.22), transparent 34rem),
    radial-gradient(circle at 15% 24%, rgba(168, 85, 247, 0.18), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

body.lightbox-open {
  overflow: hidden;
}

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

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

button {
  cursor: pointer;
}

.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;
}

.hidden {
  display: none !important;
}

.page-shell {
  min-height: 100vh;
  overflow: hidden;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.82);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
}

.brand,
.nav-links,
.mobile-menu,
.hero-actions,
.card-actions,
.footer-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-weight: 850;
  letter-spacing: 0.01em;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 122, 69, 0.34);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 42px rgba(255, 122, 69, 0.16);
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text {
  display: inline-flex;
  align-items: baseline;
  font-size: 1.02rem;
  line-height: 1;
}

.brand-text-plix {
  color: #ffffff;
}

.brand-text-plox {
  color: var(--brand-orange);
}

.nav-links {
  gap: 28px;
  color: var(--muted);
  font-weight: 650;
}

.header-controls,
.mobile-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle {
  display: inline-grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  outline: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  border-color: rgba(255, 122, 69, 0.48);
  background: rgba(255, 122, 69, 0.14);
  box-shadow: 0 0 0 3px rgba(255, 122, 69, 0.12);
}

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

.theme-toggle-icon {
  display: grid;
  width: 1.35em;
  height: 1.35em;
  place-items: center;
  font-size: 17px;
  line-height: 1;
}

.theme-toggle-icon::before {
  content: "\1F319";
}

html[data-theme="light"] .theme-toggle-icon::before {
  content: "\2600\FE0F";
}

.language-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.language-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 72px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 34px 0 16px;
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.08em;
  outline: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.language-button::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 0;
  height: 0;
  transform: translateY(-40%);
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
  border-top: 5px solid var(--cyan);
  transition: transform 160ms ease;
}

.language-button:hover,
.language-button:focus-visible,
.language-dropdown.is-open .language-button {
  border-color: rgba(34, 211, 238, 0.45);
  background: rgba(34, 211, 238, 0.1);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12);
}

.language-dropdown.is-open .language-button::after {
  transform: translateY(-60%) rotate(180deg);
}

.language-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  display: grid;
  min-width: 92px;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 6px;
  background: var(--panel-strong);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.language-menu[hidden] {
  display: none;
}

.language-menu-item {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 9px 14px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 160ms ease,
    color 160ms ease;
}

.language-menu-item:hover,
.language-menu-item:focus-visible,
.language-menu-item.is-active {
  background: rgba(34, 211, 238, 0.14);
  color: var(--cyan);
  outline: none;
}

.mobile-controls {
  margin: 2px 0 6px;
}

.language-dropdown-mobile {
  flex: 1 1 auto;
  min-width: 0;
}

.language-dropdown-mobile .language-button {
  width: 100%;
}

.language-dropdown-mobile .language-menu {
  right: 0;
  left: 0;
  min-width: 0;
}

html[data-theme="light"] .language-menu {
  background: rgba(255, 255, 255, 0.98);
}

.nav-links a,
.mobile-menu a,
.footer-links a {
  transition: color 160ms ease;
}

.nav-links a:hover,
.mobile-menu a:hover,
.footer-links a:hover {
  color: var(--cyan);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 22px;
}

.mobile-menu {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.96);
}

.mobile-menu a {
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--muted);
  font-weight: 650;
}

.mobile-menu a:hover {
  background: rgba(255, 255, 255, 0.06);
}

.mobile-menu .language-menu-item {
  padding: 9px 14px;
  color: var(--muted);
  font-weight: 850;
}

.mobile-menu .language-menu-item:hover,
.mobile-menu .language-menu-item:focus-visible,
.mobile-menu .language-menu-item.is-active {
  background: rgba(34, 211, 238, 0.14);
  color: var(--cyan);
}

.section {
  padding: 88px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: center;
  border-top: 0;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.75fr);
  gap: clamp(32px, 5vw, 56px);
  align-items: center;
}

.hero-copy {
  max-width: 740px;
}

.i18n-loading .hero-copy [data-i18n] {
  opacity: 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  line-height: 1.08;
}

h1 {
  max-width: 780px;
  margin-bottom: 24px;
  font-size: clamp(2.7rem, 8vw, 6.4rem);
  letter-spacing: -0.06em;
}

.hero h1 {
  max-width: 720px;
  font-size: clamp(3rem, 6.2vw, 5.4rem);
  text-wrap: balance;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: -0.04em;
}

h3 {
  margin-bottom: 14px;
  font-size: 1.55rem;
}

h4 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.hero-text,
.section-heading p,
.about-grid p,
.support-grid p,
.game-card p,
.hero-card p,
.value-list p {
  color: var(--muted);
}

.hero-text {
  max-width: 600px;
  margin-bottom: 32px;
  font-size: clamp(1rem, 1.55vw, 1.18rem);
  text-wrap: pretty;
}

.hero-actions,
.card-actions {
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 16px;
  padding: 0 20px;
  border: 1px solid transparent;
  font-weight: 800;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    filter 160ms ease;
}

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

.button-primary {
  background: linear-gradient(135deg, var(--cyan), var(--sky), var(--violet));
  color: #020617;
  box-shadow: var(--glow);
}

.button-primary:hover {
  filter: brightness(1.08);
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.button-secondary:hover {
  border-color: rgba(34, 211, 238, 0.42);
  background: rgba(34, 211, 238, 0.1);
}

.button-disabled {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(148, 163, 184, 0.08);
  color: var(--subtle);
  cursor: default;
}

.button-disabled:hover {
  transform: none;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 680px;
  margin: 42px 0 0;
}

.stats div,
.hero-card,
.game-card,
.values-card,
.support-form {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.stats div {
  padding: 18px;
  border-radius: 20px;
}

.stats dt {
  color: var(--subtle);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.stats dd {
  margin: 8px 0 0;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 800;
}

.hero-card,
.game-card,
.values-card,
.support-form {
  border-radius: 32px;
}

.hero-card {
  overflow: hidden;
}

.game-art {
  display: grid;
  min-height: 340px;
  place-items: center;
  background:
    radial-gradient(circle at 28% 22%, rgba(244, 114, 182, 0.7), transparent 22%),
    radial-gradient(circle at 72% 24%, rgba(34, 211, 238, 0.58), transparent 24%),
    radial-gradient(circle at 50% 78%, rgba(132, 204, 22, 0.3), transparent 22%),
    linear-gradient(135deg, #2a1636, #0f172a 58%, #072337);
}

.game-art span,
.app-icon {
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(2, 6, 23, 0.54);
  color: var(--text);
  font-weight: 950;
  letter-spacing: -0.05em;
  box-shadow: var(--glow);
}

.game-art span {
  width: 152px;
  height: 152px;
  border-radius: 42px;
  font-size: 3rem;
}

.game-art-image {
  background:
    radial-gradient(circle at 30% 16%, rgba(255, 122, 69, 0.35), transparent 28%),
    radial-gradient(circle at 74% 22%, rgba(244, 114, 182, 0.34), transparent 24%),
    linear-gradient(135deg, #3a1f12, #1f2937 58%, #3d1c10);
}

.game-art-image img {
  width: 180px;
  height: 180px;
  border-radius: 48px;
  box-shadow: 0 28px 80px rgba(2, 6, 23, 0.38);
}

.game-art-link {
  transition: transform 0.2s ease, border-color 0.2s ease, filter 0.2s ease;
}

.game-art-link:hover,
.game-art-link:focus-visible {
  filter: brightness(1.06);
  transform: translateY(-2px);
  outline: none;
}

.hero-card-content {
  padding: 28px;
}

.card-kicker {
  margin-bottom: 10px;
  color: var(--pink);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.section-muted {
  background: rgba(15, 23, 42, 0.35);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 38px;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 24px;
}

.game-card {
  padding: 28px;
}

.game-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.app-icon {
  width: 82px;
  height: 82px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 30% 20%, rgba(244, 114, 182, 0.8), transparent 40%),
    linear-gradient(135deg, #3a243b, #0f172a);
  font-size: 1.15rem;
}

.app-icon-image {
  overflow: hidden;
  background: transparent;
}

.app-icon-image img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.tag {
  border: 1px solid rgba(244, 114, 182, 0.3);
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(244, 114, 182, 0.12);
  color: #fbcfe8;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.about-grid,
.support-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: 46px;
  align-items: start;
}

.values-card,
.support-form {
  padding: 30px;
}

.value-list {
  display: grid;
  gap: 14px;
}

.value-list div {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  background: rgba(2, 6, 23, 0.36);
}

.value-list h4:nth-child(1),
.value-list div:nth-child(1) h4 {
  color: #a5f3fc;
}

.value-list div:nth-child(2) h4 {
  color: #ddd6fe;
}

.value-list div:nth-child(3) h4 {
  color: #d9f99d;
}

.support-email {
  display: inline-flex;
  margin-top: 20px;
  border: 1px solid rgba(34, 211, 238, 0.26);
  border-radius: 16px;
  padding: 12px 16px;
  background: rgba(34, 211, 238, 0.1);
  color: #cffafe;
  font-weight: 800;
}

.support-form {
  display: grid;
  gap: 20px;
}

.form-field {
  display: grid;
  gap: 8px;
}

label {
  color: #e2e8f0;
  font-size: 0.9rem;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  outline: none;
  padding: 13px 15px;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

textarea {
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #64748b;
}

input:focus,
textarea:focus {
  border-color: rgba(34, 211, 238, 0.58);
  background: rgba(255, 255, 255, 0.075);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.1);
}

.form-submit {
  width: 100%;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.95);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0;
  color: var(--subtle);
}

.footer-brand {
  margin-bottom: 4px;
  color: var(--text);
  font-weight: 850;
}

.footer-content p {
  margin-bottom: 0;
}

.footer-links {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
  color: var(--muted);
  font-weight: 700;
}

@media (max-width: 920px) {
  .desktop-nav {
    display: none;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid,
  .about-grid,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 36px;
  }

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

@media (max-width: 640px) {
  .container,
  .nav,
  .mobile-menu {
    width: min(100% - 24px, 1120px);
  }

  .section {
    padding: 64px 0;
  }

  .hero {
    padding-top: 32px;
  }

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

  .hero-card,
  .game-card,
  .values-card,
  .support-form {
    border-radius: 24px;
  }

  .game-art {
    min-height: 240px;
  }

  .footer-content {
    align-items: flex-start;
    flex-direction: column;
  }

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

.game-card-featured {
  border-color: rgba(34, 211, 238, 0.26);
  background:
    radial-gradient(circle at 80% 0%, rgba(34, 211, 238, 0.16), transparent 28rem),
    var(--panel);
}

.app-icon-raid {
  background:
    radial-gradient(circle at 70% 18%, rgba(34, 211, 238, 0.85), transparent 38%),
    radial-gradient(circle at 22% 76%, rgba(168, 85, 247, 0.7), transparent 36%),
    linear-gradient(135deg, #062331, #17132e 70%);
}

.tag-cyan {
  border-color: rgba(34, 211, 238, 0.3);
  background: rgba(34, 211, 238, 0.12);
  color: #cffafe;
}

.game-page .site-header {
  background: rgba(2, 6, 23, 0.88);
}

.game-hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: center;
  border-top: 0;
}

.game-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 76% 22%, rgba(34, 211, 238, 0.24), transparent 26rem),
    radial-gradient(circle at 22% 18%, rgba(168, 85, 247, 0.2), transparent 28rem);
  pointer-events: none;
}

.game-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: 56px;
  align-items: center;
}

.merge-raid-showcase {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.1), rgba(2, 6, 23, 0.7)),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.06) 0,
      rgba(255, 255, 255, 0.06) 1px,
      transparent 1px,
      transparent 46px
    ),
    linear-gradient(135deg, #061827, #17132e 50%, #251031);
  box-shadow: var(--shadow), var(--glow);
}

.merge-raid-showcase::before,
.merge-raid-showcase::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  filter: blur(8px);
}

.merge-raid-showcase::before {
  top: 42px;
  right: 50px;
  background: rgba(34, 211, 238, 0.28);
}

.merge-raid-showcase::after {
  bottom: 32px;
  left: 38px;
  background: rgba(244, 114, 182, 0.24);
}

.raid-party {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 164px;
  height: 164px;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 44px;
  background:
    radial-gradient(circle at 35% 18%, rgba(34, 211, 238, 0.9), transparent 36%),
    linear-gradient(135deg, rgba(2, 6, 23, 0.98), rgba(30, 41, 59, 0.92));
  box-shadow: 0 0 70px rgba(34, 211, 238, 0.22);
}

.raid-party span {
  font-size: 3.2rem;
  font-weight: 950;
  letter-spacing: -0.07em;
}

.raid-lane {
  position: absolute;
  left: 28px;
  right: 28px;
  height: 86px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
}

.raid-lane::before,
.raid-lane::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 26px;
  height: 26px;
  transform: translateY(-50%);
  border-radius: 9px;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
}

.raid-lane::before {
  left: 36px;
}

.raid-lane::after {
  right: 42px;
}

.raid-lane-top {
  top: 62px;
}

.raid-lane-bottom {
  bottom: 62px;
}

.bakery-page .game-hero::before {
  background:
    radial-gradient(circle at 76% 20%, rgba(255, 122, 69, 0.28), transparent 26rem),
    radial-gradient(circle at 18% 18%, rgba(244, 114, 182, 0.2), transparent 28rem),
    radial-gradient(circle at 50% 92%, rgba(251, 191, 36, 0.13), transparent 24rem);
}

.bakery-page .feature-number {
  color: var(--brand-orange);
}

.bakery-showcase {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  aspect-ratio: 5 / 8;
  min-height: 700px;
  background: transparent;
  box-shadow: none;
}

.bakery-showcase::before,
.bakery-showcase::after {
  display: none;
}

.bakery-hero-poster {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  display: block;
  width: auto;
  height: calc(100% - 48px);
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 28px;
  box-shadow: 0 26px 80px rgba(2, 6, 23, 0.48);
  object-fit: contain;
}

.store-badge-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  padding: 10px 14px 10px 10px;
  background: rgba(2, 6, 23, 0.64);
  box-shadow: 0 18px 54px rgba(2, 6, 23, 0.34);
  backdrop-filter: blur(14px);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.store-badge-link:hover,
.store-badge-link:focus-visible {
  border-color: rgba(255, 122, 69, 0.48);
  transform: translateY(-2px);
  outline: none;
}

.store-badge-link img {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  border-radius: 16px;
}

.store-badge-link span {
  display: grid;
  gap: 2px;
  color: #f8fafc;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.store-badge-link strong {
  color: var(--brand-orange);
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
}

.store-badge-link-compact {
  border-radius: 18px;
  padding: 8px 12px 8px 8px;
}

.store-badge-link-compact img {
  width: 46px;
  height: 46px;
  border-radius: 13px;
}

.store-badge-link-compact span {
  font-size: 0.66rem;
}

.store-badge-link-compact strong {
  font-size: 0.9rem;
}

.screenshot-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.screenshot-button {
  display: block;
  overflow: hidden;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 0;
  background: var(--panel);
  box-shadow: var(--shadow);
  cursor: zoom-in;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.screenshot-button:hover,
.screenshot-button:focus-visible {
  border-color: rgba(255, 122, 69, 0.48);
  transform: translateY(-2px);
  outline: none;
}

.screenshot-button img {
  display: block;
  width: 100%;
  height: auto;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(2, 6, 23, 0.88);
  backdrop-filter: blur(16px);
}

.image-lightbox[hidden] {
  display: none;
}

.image-lightbox-image {
  max-width: min(100%, 1120px);
  max-height: calc(100vh - 56px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}

.image-lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 101;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.82);
  color: #f8fafc;
  font-size: 2rem;
  line-height: 1;
  box-shadow: var(--shadow);
}

.image-lightbox-close:hover,
.image-lightbox-close:focus-visible {
  border-color: rgba(255, 122, 69, 0.5);
  background: rgba(255, 122, 69, 0.2);
  outline: none;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  min-height: 270px;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 24px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.feature-number {
  display: inline-flex;
  margin-bottom: 34px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.22em;
}

.split-panel,
.cta-panel {
  border: 1px solid var(--line);
  border-radius: 34px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.split-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1fr);
  gap: 38px;
  align-items: center;
  padding: 36px;
}

.progress-list {
  display: grid;
  gap: 12px;
}

.progress-list div {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 16px 18px;
  background: rgba(2, 6, 23, 0.34);
  color: var(--muted);
  font-weight: 750;
}

.cta-panel {
  padding: 44px;
  text-align: center;
}

.cta-panel p {
  max-width: 720px;
  margin-right: auto;
  margin-left: auto;
  color: var(--muted);
}

.cta-actions {
  justify-content: center;
  margin-top: 26px;
}

@media (max-width: 920px) {
  .game-hero-grid,
  .split-panel {
    grid-template-columns: 1fr;
  }

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

  .screenshot-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .merge-raid-showcase {
    min-height: 300px;
    border-radius: 26px;
  }

  .bakery-showcase {
    min-height: 560px;
  }

  .bakery-hero-poster {
    height: calc(100% - 36px);
    border-radius: 22px;
  }

  .store-badge-link {
    gap: 9px;
    border-radius: 18px;
    padding: 8px 12px 8px 8px;
  }

  .store-badge-link img {
    width: 44px;
    height: 44px;
    border-radius: 13px;
  }

  .store-badge-link span {
    font-size: 0.64rem;
  }

  .store-badge-link strong {
    font-size: 0.88rem;
  }

  .raid-party {
    width: 126px;
    height: 126px;
    border-radius: 34px;
  }

  .raid-party span {
    font-size: 2.45rem;
  }

  .raid-lane {
    height: 66px;
  }

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

  .feature-card {
    min-height: auto;
  }

  .split-panel,
  .cta-panel {
    padding: 26px;
    border-radius: 26px;
  }

  .screenshot-gallery {
    gap: 12px;
  }

  .screenshot-button {
    border-radius: 20px;
  }

  .image-lightbox {
    padding: 16px;
  }

  .image-lightbox-image {
    max-height: calc(100vh - 32px);
    border-radius: 20px;
  }
}

html[data-theme="light"] body {
  background:
    radial-gradient(circle at 86% 10%, rgba(255, 122, 69, 0.22), transparent 32rem),
    radial-gradient(circle at 14% 22%, rgba(14, 165, 233, 0.14), transparent 30rem),
    var(--bg);
}

html[data-theme="light"] .site-header,
html[data-theme="light"] .game-page .site-header,
html[data-theme="light"] .site-footer {
  background: rgba(2, 6, 23, 0.9);
}

html[data-theme="light"] .mobile-menu {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(15, 23, 42, 0.96);
}

html[data-theme="light"] .nav-links,
html[data-theme="light"] .mobile-menu a,
html[data-theme="light"] .footer-links {
  color: #cbd5e1;
}

html[data-theme="light"] .language-button {
  color: #cbd5e1;
}

html[data-theme="light"] .footer-content {
  color: #94a3b8;
}

html[data-theme="light"] .footer-brand {
  color: #f8fafc;
}

html[data-theme="light"] .section {
  border-top-color: rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .hero::before {
  background:
    linear-gradient(rgba(15, 23, 42, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.045) 1px, transparent 1px);
}

html[data-theme="light"] .section-muted {
  background: rgba(255, 255, 255, 0.38);
}

html[data-theme="light"] .button-secondary,
html[data-theme="light"] input,
html[data-theme="light"] textarea {
  background: rgba(255, 255, 255, 0.72);
}

html[data-theme="light"] label {
  color: #334155;
}

html[data-theme="light"] .tag {
  color: #9d174d;
}

html[data-theme="light"] .tag-cyan {
  color: #075985;
}

html[data-theme="light"] .support-email {
  color: #075985;
}

html[data-theme="light"] .game-art span,
html[data-theme="light"] .app-icon,
html[data-theme="light"] .raid-party span {
  color: #f8fafc;
}

html[data-theme="light"] .value-list div,
html[data-theme="light"] .progress-list div {
  background: rgba(255, 255, 255, 0.66);
}

html[data-home-page="true"] {
  color-scheme: light;
  --background: #f7fbff;
  --surface: #ffffff;
  --surface-soft: rgba(255, 255, 255, 0.82);
  --text-primary: #10234a;
  --text-secondary: #536783;
  --brand-blue: #1778f2;
  --brand-light-blue: #48c6ff;
  --brand-deep-blue: #071c50;
  --accent-yellow: #ffd43b;
  --cake-pink: #ff5e9b;
  --leaf-green: #35b86b;
  --home-line: rgba(23, 120, 242, 0.16);
  --home-shadow: 0 22px 58px rgba(16, 35, 74, 0.16);
}

html[data-home-page="true"],
html[data-home-page="true"] body {
  background: var(--background);
  color: var(--text-primary);
}

.home-page {
  overflow-x: hidden;
  background: var(--background);
  color: var(--text-primary);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.home-page .page-shell {
  background:
    linear-gradient(180deg, #f7fbff 0%, #ffffff 46%, #f7fbff 100%);
}

.home-page h1,
.home-page h2,
.home-page h3,
.home-page h4,
.home-page p,
.home-page a,
.home-page button,
.home-page span {
  letter-spacing: 0;
}

.home-page .container {
  width: min(1360px, calc(100% - 48px));
}

.home-page .site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 50;
  border-bottom: 0;
  background: transparent;
  color: var(--brand-deep-blue);
  backdrop-filter: none;
  transition:
    background 220ms ease,
    box-shadow 220ms ease,
    backdrop-filter 220ms ease;
}

html[data-home-page="true"] .site-header {
  background: transparent;
}

html[data-home-page="true"] .site-header.is-scrolled,
html[data-home-page="true"] body.home-page.menu-open .site-header {
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 34px rgba(16, 35, 74, 0.1);
  backdrop-filter: blur(16px);
}

.home-page .nav {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  width: min(1220px, calc(100% - 48px));
  min-height: 78px;
  margin: 10px auto 0;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 44px rgba(16, 35, 74, 0.12);
  backdrop-filter: blur(12px);
}

.home-page .brand {
  gap: 10px;
  font-weight: 950;
}

.home-brand-mark {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
}

.home-brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.home-brand-text {
  color: var(--brand-deep-blue);
  font-size: clamp(1.14rem, 1.5vw, 1.72rem);
  line-height: 1;
}

.home-nav-links {
  justify-content: center;
  gap: clamp(22px, 3vw, 42px);
  color: var(--brand-deep-blue);
  font-size: 0.97rem;
  font-weight: 800;
}

html[data-home-page="true"] .home-nav-links,
html[data-home-page="true"] .home-mobile-menu a,
html[data-home-page="true"] .home-footer-links {
  color: var(--brand-deep-blue);
}

.home-nav-links a,
.home-footer-links a {
  transition: color 180ms ease, transform 180ms ease;
}

.home-nav-links a:hover,
.home-nav-links a:focus-visible,
.home-footer-links a:hover,
.home-footer-links a:focus-visible {
  color: var(--brand-blue);
  outline: none;
}

.home-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.home-language-button {
  min-height: 46px;
  gap: 8px;
  border: 0;
  background: transparent;
  color: var(--brand-deep-blue);
  font-weight: 800;
}

html[data-home-page="true"] .home-language-button {
  color: var(--brand-deep-blue);
}

.home-language-button::after {
  border-top-color: currentColor;
}

.home-language-icon {
  display: inline-grid;
  place-items: center;
}

.home-language-menu {
  border: 1px solid rgba(23, 120, 242, 0.16);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(16, 35, 74, 0.16);
}

.home-page .language-menu-item {
  color: var(--brand-deep-blue);
}

.home-page .language-menu-item:hover,
.home-page .language-menu-item:focus-visible,
.home-page .language-menu-item.is-active {
  background: rgba(23, 120, 242, 0.1);
  color: var(--brand-blue);
}

.home-page .button {
  min-height: 48px;
  border-radius: 8px;
  font-weight: 900;
}

.home-hero-cta,
.home-final-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--brand-blue);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(23, 120, 242, 0.24);
}

.home-hero-cta:hover,
.home-hero-cta:focus-visible,
.home-final-button:hover,
.home-final-button:focus-visible {
  background: #0869df;
  color: #ffffff;
  outline: none;
}

.home-hero-cta:focus-visible {
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.95),
    0 0 0 7px rgba(23, 120, 242, 0.34),
    0 12px 24px rgba(23, 120, 242, 0.24);
}

.home-nav-toggle {
  color: var(--brand-deep-blue);
}

.home-mobile-menu {
  width: min(1220px, calc(100% - 48px));
  margin: 8px auto 0;
  border: 1px solid rgba(23, 120, 242, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 44px rgba(16, 35, 74, 0.12);
  color: var(--brand-deep-blue);
}

.home-hero {
  --hero-bottom-fade: clamp(56px, 5vw, 88px);
  position: relative;
  isolation: isolate;
  min-height: clamp(760px, 94svh, 1080px);
  padding: clamp(180px, 14vw, 240px) 0 clamp(80px, 8vw, 120px);
  overflow: hidden;
  background: #ffffff;
}

.home-clouds {
  position: absolute;
  right: -8vw;
  left: -8vw;
  pointer-events: none;
}

.home-clouds-back {
  top: 82px;
  height: 36%;
  opacity: 0.46;
  background:
    radial-gradient(ellipse at 8% 28%, rgba(255, 255, 255, 0.86) 0 8%, transparent 20%),
    radial-gradient(ellipse at 26% 18%, rgba(255, 255, 255, 0.72) 0 7%, transparent 18%),
    radial-gradient(ellipse at 72% 26%, rgba(255, 255, 255, 0.86) 0 9%, transparent 22%),
    radial-gradient(ellipse at 92% 42%, rgba(255, 255, 255, 0.72) 0 8%, transparent 20%);
}

.home-clouds-front {
  bottom: -62px;
  z-index: 4;
  height: 190px;
  background:
    radial-gradient(ellipse at 8% 68%, #ffffff 0 11%, transparent 24%),
    radial-gradient(ellipse at 22% 58%, #ffffff 0 13%, transparent 28%),
    radial-gradient(ellipse at 42% 70%, #ffffff 0 14%, transparent 30%),
    radial-gradient(ellipse at 62% 58%, #ffffff 0 15%, transparent 30%),
    radial-gradient(ellipse at 82% 70%, #ffffff 0 14%, transparent 28%),
    linear-gradient(180deg, transparent 18%, #ffffff 58%, #ffffff 100%);
}

.home-far-island {
  position: absolute;
  z-index: 1;
  opacity: 0.48;
  filter: saturate(0.88) blur(0.4px);
}

.home-far-island img {
  display: block;
  width: 100%;
  height: auto;
}

.home-far-island-left {
  top: 30%;
  left: 38%;
  width: min(16vw, 220px);
}

.home-far-island-right {
  top: 38%;
  right: -1%;
  width: min(18vw, 250px);
}

.home-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(280px, 0.42fr) minmax(0, 0.58fr);
  gap: 0;
  align-items: center;
}

.home-hero-copy {
  position: relative;
  top: -60px;
  z-index: 2;
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  max-width: 540px;
}

.home-hero-title {
  /* Reserve the pre-restyle line boxes (0.58 + 1.18 * 0.84) and bottom gap. */
  --hero-title-space: calc(clamp(3.35rem, 5.75vw, 6rem) * 1.5712 + 24px);
  display: flex;
  flex-direction: column;
  row-gap: 10px;
  min-block-size: var(--hero-title-space);
  max-width: 640px;
  margin: 0;
  color: #ffffff;
  font-size: 4.125rem;
  font-weight: 950;
  line-height: 0.86;
  text-transform: uppercase;
  text-wrap: balance;
  text-shadow:
    0 7px 0 var(--brand-deep-blue),
    0 12px 24px rgba(7, 28, 80, 0.22);
  -webkit-text-stroke: 4px var(--brand-deep-blue);
  paint-order: stroke fill;
}

.home-hero-title span,
.home-hero-title strong {
  display: block;
}

.home-hero-title strong {
  color: #31d2ff;
  font-size: 1.24em;
  line-height: inherit;
  white-space: normal;
}

.home-hero-title span {
  color: #ffffff;
  font-size: 1em;
  line-height: inherit;
  white-space: normal;
}

html[lang="ru"] .home-hero-title {
  --hero-title-space: calc(clamp(2.9rem, 3.5vw, 3.25rem) * 1.5712 + 24px);
  max-width: 680px;
  font-size: 2.875rem;
}

html[lang="ru"] .home-hero-copy {
  width: min(720px, 55vw);
  max-width: min(720px, 55vw);
}

html[lang="ru"] .home-hero-title strong {
  white-space: normal;
  text-wrap: balance;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: manual;
}

.home-hero-text {
  max-width: 500px;
  margin-top: 20px;
  margin-bottom: 30px;
  color: var(--text-primary);
  font-size: clamp(1.04rem, 1.25vw, 1.16rem);
  font-weight: 650;
  line-height: 1.55;
}

.home-hero-cta {
  min-height: 56px;
  min-inline-size: 13.46875rem;
  padding: 0 24px;
  gap: 0;
  font-size: 1rem;
}

/* Preserve the CTA footprint after removing its trailing arrow. */
html[lang="ru"] .home-hero-cta {
  min-inline-size: 10.0625rem;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 206px;
  min-height: 62px;
  padding: 8px 16px;
  border-radius: 8px;
  background: #05070d;
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(5, 7, 13, 0.18);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    background 220ms ease;
}

.store-badge:hover,
.store-badge:focus-visible {
  transform: translateY(-2px);
  background: #101522;
  box-shadow: 0 18px 36px rgba(5, 7, 13, 0.24);
  outline: none;
}

.store-badge-icon {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
}

.store-badge small,
.store-badge strong {
  display: block;
  line-height: 1;
}

.store-badge small {
  margin-bottom: 5px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.72rem;
  font-weight: 700;
}

.store-badge strong {
  font-size: 1.25rem;
  font-weight: 900;
}

.home-handnote,
.home-side-note {
  color: #075bd4;
  font-family: "Segoe Print", "Bradley Hand ITC", "Comic Sans MS", cursive;
  font-weight: 900;
  line-height: 1.05;
  transform: rotate(-8deg);
}

.home-handnote {
  margin: 18px 0 0 130px;
  font-size: clamp(1.05rem, 2vw, 1.55rem);
}

.home-hero-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  mask-image: linear-gradient(
    to bottom,
    #000 calc(100% - var(--hero-bottom-fade)),
    rgba(0, 0, 0, 0.92) calc(100% - var(--hero-bottom-fade) * 0.65),
    rgba(0, 0, 0, 0.45) calc(100% - var(--hero-bottom-fade) * 0.25),
    transparent calc(100% - 1px)
  );
  -webkit-mask-image: linear-gradient(
    to bottom,
    #000 calc(100% - var(--hero-bottom-fade)),
    rgba(0, 0, 0, 0.92) calc(100% - var(--hero-bottom-fade) * 0.65),
    rgba(0, 0, 0, 0.45) calc(100% - var(--hero-bottom-fade) * 0.25),
    transparent calc(100% - 1px)
  );
}

.home-hero-picture {
  display: block;
  width: 100%;
  height: 100%;
}

.home-hero-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.home-side-note {
  position: absolute;
  top: 8%;
  right: 0;
  z-index: 4;
  font-size: clamp(1rem, 1.55vw, 1.45rem);
}

.home-section {
  position: relative;
  padding: clamp(92px, 10vw, 152px) 0;
  scroll-margin-top: 120px;
  border-top: 0;
  overflow: hidden;
}

.home-section-heading {
  max-width: 800px;
  margin: 0 auto clamp(42px, 5vw, 72px);
  text-align: center;
}

.home-section-heading-compact {
  margin-bottom: clamp(28px, 4vw, 46px);
}

.home-eyebrow {
  margin: 0 0 12px;
  color: var(--brand-blue);
  font-size: 0.86rem;
  font-weight: 950;
  line-height: 1.2;
  text-transform: uppercase;
}

.home-section h2,
.home-final-cta h2 {
  margin: 0 0 18px;
  color: var(--brand-deep-blue);
  font-size: clamp(2.4rem, 4.2vw, 4rem);
  font-weight: 950;
  line-height: 1.02;
  text-wrap: balance;
}

.home-section-heading p,
.home-about-copy p,
.home-final-cta p {
  color: var(--text-secondary);
  font-size: clamp(1.02rem, 1.35vw, 1.2rem);
  line-height: 1.62;
}

.home-games-section {
  padding-top: clamp(48px, 4.5vw, 72px);
  background:
    linear-gradient(180deg, #ffffff 0%, #f7fbff 38%, #ffffff 100%);
}

.home-games-section .home-section-heading {
  margin-bottom: clamp(34px, 4vw, 56px);
}

@media (min-width: 921px) {
  .home-games-section .home-section-heading {
    max-width: none;
  }

  .home-games-section h2 {
    white-space: nowrap;
  }
}

@media (min-width: 1500px) {
  /* Keep the longer RU title within the 1360px home container. */
  html[lang="ru"] .home-games-section h2 {
    font-size: 3.9375rem;
  }
}

.home-games-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(30px, 3vw, 40px);
  align-items: stretch;
  max-width: 1160px;
  margin: 0 auto;
}

.home-game-card {
  --game-accent: var(--brand-blue);
  --game-accent-hover: #0869df;
  --game-art-position: 50% 50%;
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--game-accent) 34%, #ffffff);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(16, 35, 74, 0.1);
  cursor: pointer;
}

.home-game-card:focus-visible {
  outline: 3px solid var(--game-accent);
  outline-offset: 4px;
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .home-game-card {
    transition:
      transform 280ms ease,
      box-shadow 280ms ease,
      border-color 280ms ease;
  }

  .home-game-card:hover {
    border-color: var(--game-accent);
    box-shadow: 0 24px 54px rgba(16, 35, 74, 0.15);
    transform: translateY(-4px);
  }

  .home-game-art img {
    transition: transform 280ms ease;
  }

  .home-game-card:hover .home-game-art img {
    transform: scale(1.02);
  }
}

.home-game-card-my-cake-bakery {
  --cake-pink: #d7374b;
  --game-accent-hover: #b92538;
}

.home-game-art {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-bottom: 1px solid color-mix(in srgb, var(--game-accent) 18%, #ffffff);
  background: #eef8ff;
}

.home-game-art-motion {
  position: absolute;
  inset: 0;
}

.home-game-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--game-art-position);
}

.home-game-info {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: clamp(22px, 2.6vw, 30px);
  background: #ffffff;
}

.home-game-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.home-game-title {
  margin: 0;
  color: var(--brand-deep-blue);
  font-size: clamp(1.85rem, 2.8vw, 2.45rem);
  font-weight: 950;
  line-height: 1;
  text-wrap: balance;
}

.home-game-description {
  margin: 0;
  color: var(--text-secondary);
  font-size: clamp(1rem, 1.1vw, 1.08rem);
  font-weight: 700;
  line-height: 1.48;
}

.home-game-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-height: 50px;
  margin-top: auto;
  padding: 0 20px;
  border-radius: 8px;
  background: var(--game-accent);
  color: #ffffff;
  font-weight: 950;
  white-space: nowrap;
  transition: background-color 180ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .home-game-link:hover {
    background-color: var(--game-accent-hover);
  }
}

.home-featured-label {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--game-accent) 12%, #ffffff);
  color: var(--brand-deep-blue);
  font-size: 0.75rem;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
}

.home-about-section {
  --about-scene-width: 100vw;
  --about-scene-height: calc(var(--about-scene-width) * 941 / 1672);
  /* Keep text spacing independent of the artwork's sky blend. */
  --about-copy-gap: 48px;
  --about-sky-gap: clamp(24px, 4vw, 64px);
  --about-edge-fade: calc(var(--about-scene-height) * 0.025);
  --about-sky-background: linear-gradient(
    90deg,
    #fefefe 0%,
    #96bbfd 10%,
    #4faafd 20%,
    #389ffd 50%,
    #379dfd 60%,
    #51a8fd 90%,
    #18a9fd 100%
  );
  isolation: isolate;
  padding: clamp(76px, 8vw, 124px) 0 calc(var(--about-scene-height) + var(--about-copy-gap));
  overflow: hidden;
  background: #ffffff;
}

.home-about-content {
  position: relative;
  z-index: 1;
  display: flow-root;
}

.home-about-copy {
  max-width: 1100px;
  margin-inline: auto;
  text-align: center;
}

.home-about-copy h2 {
  margin-bottom: 20px;
}

.home-about-copy .home-about-description {
  max-width: 680px;
  margin-inline: auto;
  color: color-mix(in srgb, var(--text-secondary) 65%, var(--brand-deep-blue));
  font-size: 1rem;
  line-height: 1.6;
}

.home-about-copy > :last-child {
  margin-bottom: 0;
}

.home-text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  color: var(--brand-blue);
  font-weight: 950;
}

.home-text-link:hover,
.home-text-link:focus-visible {
  color: #075bd4;
  outline: none;
}

.home-about-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  overflow: hidden;
  border-radius: 0;
  background: var(--about-sky-background);
  box-shadow: none;
  pointer-events: none;
  -webkit-mask-image:
    linear-gradient(to bottom, #000 calc(100% - var(--about-edge-fade)), transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 32px);
  mask-image:
    linear-gradient(to bottom, #000 calc(100% - var(--about-edge-fade)), transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 32px);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

.home-about-art::before {
  content: "";
  position: absolute;
  inset: 0 0 var(--about-scene-height);
  /* Match the artwork's upper sky without stretching or duplicating its scenery. */
  background: linear-gradient(180deg, #eaf7ff 0%, #c8e8ff 45%, #9fd2ff 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - var(--about-sky-gap)), transparent 100%);
  mask-image: linear-gradient(to bottom, #000 calc(100% - var(--about-sky-gap)), transparent 100%);
}

.home-about-scene {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: var(--about-scene-height);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 3%, #000 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 3%, #000 100%);
}

.home-about-motion {
  position: absolute;
  inset: 0;
}

.home-about-art img {
  position: absolute;
  bottom: 0;
  left: 50%;
  display: block;
  width: var(--about-scene-width);
  height: var(--about-scene-height);
  max-width: none;
  transform: translateX(-50%);
  object-fit: contain;
}

.home-values-section {
  background: #ffffff;
}

.home-values-section .home-section-heading {
  max-width: 1100px;
}

.home-values-section h2 {
  margin-bottom: 0;
}

.home-values-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-value-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 20px;
  min-width: 0;
  align-content: start;
}

.home-value-number {
  color: var(--brand-blue);
  font-size: 2.625rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.home-value-copy {
  min-width: 0;
}

.home-value-item h3 {
  margin: 0;
  color: var(--brand-deep-blue);
  font-size: 1.5rem;
  font-weight: 950;
  line-height: 1.2;
}

.home-value-item p {
  margin: 12px 0 0;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
}

.home-final-cta {
  position: relative;
  padding: clamp(56px, 5vw, 78px) 0;
  scroll-margin-top: 120px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 85% 18%, rgba(255, 212, 59, 0.26), transparent 28%),
    linear-gradient(135deg, #e1f7ff 0%, #f7fbff 42%, #d8f2ff 100%);
}

.home-final-cta::before {
  content: "";
  position: absolute;
  top: -82px;
  left: -6%;
  width: 112%;
  height: 150px;
  border-radius: 0 0 50% 50%;
  background: #ffffff;
}

.home-final-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
}

.home-final-grid h2 {
  max-width: 760px;
}

@media (min-width: 921px) {
  .home-final-grid h2 {
    max-width: none;
  }
}

.home-final-grid p {
  max-width: 610px;
  margin-bottom: 0;
}

.home-final-actions {
  display: grid;
  justify-items: end;
}

.home-final-button {
  min-width: 210px;
}

.home-footer {
  border-top: 1px solid var(--home-line);
  background: #ffffff;
  color: var(--text-secondary);
}

html[data-home-page="true"] .home-footer {
  background: #ffffff;
  color: var(--text-secondary);
}

html[data-home-page="true"] .home-footer .home-brand-text {
  color: var(--brand-deep-blue);
}

.home-footer-content {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  min-height: 92px;
}

.home-footer-brand .home-brand-mark {
  width: 36px;
  height: 36px;
}

.home-footer-brand .home-brand-text {
  font-size: 1.25rem;
}

.home-footer-links {
  display: flex;
  align-items: center;
}

.home-footer-links {
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: clamp(14px, 2vw, 28px);
  color: var(--brand-deep-blue);
  font-weight: 800;
}

.home-footer-contact {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
}

.home-footer-links .home-telegram-link {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(23, 120, 242, 0.12);
  border-radius: 8px;
  color: var(--brand-blue);
  transition: background-color 180ms ease, color 180ms ease;
}

.home-telegram-icon {
  display: block;
  width: 20px;
  height: 20px;
  background: currentColor;
  mask: url("/assets/icons/telegram.svg") center / contain no-repeat;
  -webkit-mask: url("/assets/icons/telegram.svg") center / contain no-repeat;
}

.home-footer-links .home-telegram-link:focus-visible {
  background: var(--brand-blue);
  color: #ffffff;
  outline: 2px solid var(--brand-deep-blue);
  outline-offset: 3px;
}

@media (hover: hover) {
  .home-footer-links .home-telegram-link:hover {
    background: var(--brand-blue);
    color: #ffffff;
  }
}

.home-copyright {
  margin: 0;
  font-size: 0.9rem;
  white-space: nowrap;
}

html.supports-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 520ms ease,
    transform 520ms ease;
}

html.supports-reveal [data-reveal].is-visible,
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
  html.supports-artwork-motion .home-page [data-artwork-motion] {
    transform: translate3d(0, var(--artwork-y, 0px), 0) scale(var(--artwork-scale, 1));
    transform-origin: center bottom;
  }

  html.supports-artwork-motion .home-page .is-artwork-active {
    will-change: transform;
  }

  /* Reserve only the travel distance; the outer artwork masks stay stationary. */
  html.supports-artwork-motion .home-page .home-hero-image {
    position: relative;
    top: calc(-1 * var(--artwork-before, 0px));
    height: calc(100% + var(--artwork-range, 0px));
  }

  html.supports-artwork-motion .home-game-art-motion,
  html.supports-artwork-motion .home-about-motion {
    top: calc(-1 * var(--artwork-before, 0px));
    bottom: calc(-1 * var(--artwork-after, 0px));
  }

  html.supports-artwork-motion .home-about-motion img {
    width: calc(var(--about-scene-width) + var(--artwork-range, 0px) * 1672 / 941);
    height: 100%;
  }
}

@media (max-width: 1360px) {
  .home-hero-title {
    font-size: 3.75rem;
  }

  html[lang="ru"] .home-hero-title {
    font-size: 2.625rem;
  }
}

@media (max-width: 1120px) {
  .home-page .nav {
    width: min(100% - 32px, 1040px);
  }

  .home-hero-grid {
    grid-template-columns: minmax(260px, 0.44fr) minmax(0, 0.56fr);
  }

  .home-hero-title {
    --hero-title-space: calc(clamp(3.1rem, 5.8vw, 5rem) * 1.5712 + 24px);
    font-size: 3rem;
  }

  html[lang="ru"] .home-hero-title {
    --hero-title-space: calc(clamp(2.7rem, 4.5vw, 3.2rem) * 2.5624 + 24px);
    font-size: 2.5rem;
  }

  html[lang="ru"] .home-hero-title strong {
    max-inline-size: 12ch;
  }
}

@media (max-width: 920px) {
  .home-page .container {
    width: min(100% - 32px, 720px);
  }

  .home-about-section {
    --about-copy-gap: 36px;
  }

  html[data-home-page="true"] .home-header,
  html[data-home-page="true"] .home-header.is-scrolled,
  html[data-home-page="true"] body.home-page.menu-open .home-header {
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: 8px;
    background: #f7fbff;
    box-shadow: none;
    backdrop-filter: none;
    transition: none;
  }

  .home-page main {
    /* The hero already reserves header space; compensate only the safe area. */
    padding-top: env(safe-area-inset-top, 0px);
  }

  .home-page .nav {
    grid-template-columns: auto auto;
    min-height: 68px;
    margin-top: 8px;
    background: #ffffff;
    backdrop-filter: none;
  }

  .home-header-actions {
    display: none;
  }

  .home-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: end;
    padding: 0;
  }

  .home-menu-icon {
    display: block;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    background: currentColor;
    mask: url("/assets/icons/lucide-menu.svg") center / contain no-repeat;
    -webkit-mask: url("/assets/icons/lucide-menu.svg") center / contain no-repeat;
  }

  .home-mobile-menu {
    width: min(100% - 32px, 720px);
  }

  html[data-home-page="true"] .home-mobile-menu {
    background: #ffffff;
    backdrop-filter: none;
  }

  .home-hero {
    --hero-art-height: 400px;
    --hero-bottom-fade: 32px;
    min-height: 0;
    padding: 106px 0 var(--hero-art-height);
  }

  .home-far-island,
  .home-side-note {
    display: none;
  }

  .home-hero-grid,
  .home-final-grid {
    grid-template-columns: 1fr;
  }

  .home-hero-grid {
    gap: 0;
  }

  .home-hero-copy {
    top: auto;
    grid-column: 1;
    grid-row: auto;
    max-width: 680px;
  }

  .home-hero-title {
    --hero-title-space: calc(clamp(3.35rem, 11vw, 5.4rem) * 1.5712 + 24px);
    row-gap: 5px;
    font-size: 4.375rem;
  }

  html[lang="ru"] .home-hero-title {
    --hero-title-space: calc(clamp(2.65rem, 8.6vw, 4.1rem) * 2.5624 + 24px);
    max-width: 680px;
    font-size: 3.625rem;
  }

  html[lang="ru"] .home-hero-copy {
    width: auto;
    max-width: 680px;
  }

  .home-hero-text {
    max-width: 620px;
    margin-top: 14px;
  }

  .home-hero-art {
    /* Continue the artwork's own sky behind the copy without altering the asset. */
    background: url("/assets/home/hero-merge-raid-adventure.webp?v=20261007-1") left top / auto 1800px no-repeat;
  }

  .home-hero-picture {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: var(--hero-art-height);
    mask-image: linear-gradient(180deg, transparent 0, #000 18px);
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 18px);
  }

  .home-hero-image {
    object-position: 67% 50%;
  }

  .home-games-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
  }

  .home-values-grid {
    grid-template-columns: 1fr;
    max-width: 640px;
    margin-inline: auto;
  }

  .home-value-item {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 16px;
  }

  .home-value-number {
    font-size: 2rem;
  }

  .home-value-item h3 {
    font-size: 1.25rem;
  }

  .home-final-actions {
    justify-items: start;
    transform: none;
  }

  .home-footer-content {
    grid-template-columns: 1fr;
    justify-items: start;
    padding: 28px 0;
  }

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

@media (max-width: 767px) {
  .home-hero-title {
    font-size: 3.75rem;
  }

  html[lang="ru"] .home-hero-title {
    font-size: 3.125rem;
  }
}

@media (max-width: 640px) {
  .home-page .container {
    width: min(100% - 24px, 520px);
  }

  .home-page .nav,
  .home-mobile-menu {
    width: min(100% - 20px, 520px);
  }

  .home-page .nav {
    padding: 0 12px;
  }

  .home-brand-mark {
    width: 38px;
    height: 38px;
  }

  .home-brand-text {
    font-size: 1.08rem;
  }

  .home-hero {
    --hero-art-height: clamp(350px, 92vw, 420px);
    padding-top: 96px;
  }

  .home-hero-title {
    --hero-title-space: calc(clamp(2.8rem, 12.8vw, 4rem) * 1.5712 + 18px);
    width: 100%;
    max-width: 100%;
    font-size: 3.25rem;
    -webkit-text-stroke-width: 2px;
    text-shadow:
      0 4px 0 var(--brand-deep-blue),
      0 8px 18px rgba(7, 28, 80, 0.2);
  }

  html[lang="ru"] .home-hero-title {
    --hero-title-space: calc(clamp(2.25rem, 10vw, 3.1rem) * 2.5624 + 18px);
    font-size: 2.75rem;
    -webkit-text-stroke-width: 1.6px;
  }

  .home-hero-text,
  .home-section-heading p,
  .home-about-copy p,
  .home-final-cta p {
    max-width: 100%;
    font-size: 1rem;
  }

  .store-badges {
    align-items: stretch;
  }

  .store-badge {
    width: 100%;
    max-width: 260px;
  }

  .home-handnote {
    margin-left: 42px;
  }

  .home-section {
    padding: 78px 0;
  }

  .home-about-section {
    padding-bottom: calc(var(--about-scene-height) + var(--about-copy-gap));
  }

  .home-about-copy h2 span {
    display: block;
  }

  .home-games-section {
    padding-top: 48px;
  }

  .home-section h2,
  .home-final-cta h2 {
    font-size: clamp(2.1rem, 10vw, 3.1rem);
  }

  .home-game-title {
    font-size: clamp(1.65rem, 8vw, 2.1rem);
  }

  .home-game-info {
    gap: 12px;
    padding: 20px;
  }

  .home-final-cta {
    padding: 56px 0;
  }

  .home-final-button {
    width: 100%;
  }

  .home-copyright {
    white-space: normal;
  }
}

@media (max-width: 540px) {
  .home-hero-title {
    font-size: 3.125rem;
  }

  html[lang="ru"] .home-hero-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 479px) {
  .home-hero-title {
    font-size: 2.75rem;
  }

  html[lang="ru"] .home-hero-title {
    font-size: 2.125rem;
  }
}

@media (max-width: 409px) {
  .home-hero-title {
    font-size: 2.5rem;
  }

  html[lang="ru"] .home-hero-title {
    font-size: 2rem;
  }
}

@media (max-width: 389px) {
  .home-hero-title {
    font-size: 2.375rem;
  }

  html[lang="ru"] .home-hero-title {
    font-size: 1.875rem;
  }
}

@media (max-width: 359px) {
  .home-hero-title {
    font-size: 2.125rem;
  }

  html[lang="ru"] .home-hero-title {
    font-size: 1.625rem;
  }
}

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

  html.supports-reveal [data-reveal],
  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .home-page [data-artwork-motion] {
    transform: none;
    will-change: auto;
  }
}
