:root {
  --bg: #0d141b;
  --bg-soft: #101a22;
  --surface: #14212b;
  --surface-strong: #182731;
  --ink: #f5f7f8;
  --text: #c6d0d8;
  --muted: #8f9da8;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --honey: #f9a825;
  --honey-light: #ffd06e;
  --berry: #9d4edd;
  --red: #c95d5d;
  --blue: #4f80b6;
  --green: #719b62;
  --purple: #8664a1;
  --yellow: #d9a43c;
  --zombee: #65757f;
  --curse: #20272d;
  --max: 1160px;
  --header-height: 72px;
  --radius-sm: 12px;
  --radius: 22px;
  --radius-lg: 30px;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.32);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
  margin: 0;
  padding-top: var(--header-height);
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, "Segoe UI", "Yu Gothic UI", "Hiragino Sans", Meiryo, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::selection {
  color: var(--bg);
  background: var(--honey);
}

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

button,
select {
  color: inherit;
  font: inherit;
}

svg {
  display: block;
}

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

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 10px 14px;
  color: var(--bg);
  background: var(--honey);
  border-radius: 8px;
  font-weight: 700;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: none;
}

:focus-visible {
  outline: 2px solid var(--honey-light);
  outline-offset: 3px;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-height);
  background: rgba(13, 20, 27, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(120%);
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

body:not(.legal-page) .site-header:not(.is-scrolled) {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-100%);
}

.site-header.is-scrolled {
  background: rgba(13, 20, 27, 0.96);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.24);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  width: min(var(--max), calc(100% - 40px));
  height: 100%;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  min-height: 44px;
}

.brand-mark {
  position: relative;
  display: block;
  width: 44px;
  height: 40px;
  flex: 0 0 44px;
}

.brand-hex {
  position: absolute;
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0 50%);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.brand-hex::before {
  content: "";
  position: absolute;
  inset: 2px;
  z-index: -1;
  clip-path: inherit;
  background: var(--bg);
}

.brand-hex--b {
  top: 0;
  left: 0;
  color: var(--honey);
  background: var(--honey);
}

.brand-hex--z {
  right: 0;
  bottom: 0;
  color: var(--berry);
  background: var(--berry);
}

.brand-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.015em;
}

.header-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  min-width: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.site-nav a {
  min-height: 42px;
  padding: 8px 11px;
  color: var(--text);
  border-radius: 9px;
  font-size: 0.84rem;
  font-weight: 650;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.055);
}

.language-control {
  position: relative;
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 42px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
}

.language-control:hover {
  border-color: rgba(249, 168, 37, 0.36);
}

.language-control:focus-within {
  border-color: var(--honey);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(249, 168, 37, 0.14);
}

.language-icon {
  position: absolute;
  left: 12px;
  z-index: 1;
  width: 17px;
  height: 17px;
  color: var(--muted);
  pointer-events: none;
}

.language-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.language-trigger {
  width: 176px;
  min-height: 42px;
  padding: 7px 30px 7px 37px;
  color: var(--text);
  background: transparent;
  border: 0;
  border-radius: inherit;
  outline: 0;
  font-size: 0.8rem;
  font-weight: 650;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}

.language-trigger:focus,
.language-trigger:focus-visible {
  outline: 0;
}

.language-control::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 13px;
  width: 6px;
  height: 6px;
  color: var(--muted);
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  pointer-events: none;
  transform: translateY(-70%) rotate(45deg);
  transition: transform 160ms ease;
}

.language-control[data-open]::after {
  transform: translateY(-25%) rotate(225deg);
}

.language-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 120;
  width: 200px;
  max-width: calc(100vw - 28px);
  max-height: min(360px, calc(100dvh - 88px));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px;
  background: rgba(13, 20, 27, 0.99);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.42);
  scrollbar-color: var(--muted) transparent;
}

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

.language-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 38px;
  padding: 7px 10px;
  color: var(--text);
  background: transparent;
  border: 0;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.language-option:hover,
.language-option:focus-visible {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.07);
}

.language-option:focus-visible {
  outline: 2px solid var(--honey-light);
  outline-offset: -2px;
}

.language-option[aria-selected="true"] {
  color: var(--honey-light);
  background: rgba(249, 168, 37, 0.12);
}

.language-option[aria-selected="true"]::after {
  content: "✓";
  flex: 0 0 auto;
  color: var(--honey);
  font-weight: 800;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 11px 10px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 4px 0;
  background: currentColor;
  border-radius: 2px;
  transition: transform 180ms ease, opacity 180ms ease;
}

.beezell-logo {
  --logo-size: 56px;
  --logo-sub-size: calc(var(--logo-size) * 0.7);
  --logo-gap: calc(var(--logo-size) * 0.12);
  --logo-row-offset: calc(var(--logo-size) * 0.415);
  --logo-overlap: calc(var(--logo-size) * -0.2);
  --logo-ell-shift: calc(var(--logo-size) * -0.071);
  --logo-sub-y: 0px;
  --logo-ell-y: var(--logo-sub-y);
  display: inline-grid;
  justify-items: start;
  width: calc(var(--logo-row-offset) + var(--logo-size) + var(--logo-gap) + var(--logo-sub-size) * 1.55);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1;
}

.beezell-logo--hero {
  --logo-size: 78px;
  margin-inline: auto;
}

.logo-row {
  display: inline-flex;
  align-items: center;
  gap: var(--logo-gap);
}

.logo-row--zell {
  margin-top: var(--logo-overlap);
  margin-left: var(--logo-row-offset);
}

.logo-hex {
  position: relative;
  display: grid;
  place-items: center;
  width: var(--logo-size);
  height: var(--logo-size);
  flex: 0 0 var(--logo-size);
  font-size: calc(var(--logo-size) * 0.58);
  font-weight: 700;
  line-height: 1;
}

.logo-hex svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.logo-hex__shape {
  fill: #180c00;
  stroke: var(--honey);
  stroke-width: 2.35;
  stroke-linejoin: round;
}

.logo-hex > span {
  position: relative;
  z-index: 1;
  transform: translateY(0.025em);
}

.logo-hex--b {
  color: var(--honey);
}

.logo-hex--z {
  color: var(--berry);
}

.logo-hex--z .logo-hex__shape {
  fill: #180c0a;
  stroke: var(--berry);
}

.logo-sub {
  color: #8d99a3;
  font-size: var(--logo-sub-size);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1;
  transform: translateY(var(--logo-sub-y));
}

.logo-sub--ell {
  transform: translate(var(--logo-ell-shift), var(--logo-ell-y));
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: calc(100svh - var(--header-height));
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.012), transparent 28%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(var(--max), calc(100% - 48px));
  min-height: calc(100svh - var(--header-height));
  margin: 0 auto;
  padding: 72px 0;
}

.hero-board {
  display: none;
}

.hero-copy {
  --hero-shift: -42px;
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 860px;
  text-align: center;
  transform: translateY(var(--hero-shift));
}

.section-kicker,
.mode-label,
.mode-index {
  color: var(--honey-light);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero-lead {
  max-width: 640px;
  margin: 24px auto 0;
  color: #e4ecf2;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.9;
  text-wrap: balance;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 34px;
}

.hero-store-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 18px;
  color: #101820;
  background: var(--honey);
  border: 1px solid rgba(255, 208, 110, 0.32);
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(249, 168, 37, 0.16);
  font-size: 1rem;
  font-weight: 900;
  transition: transform 160ms ease, background-color 160ms ease;
}

.primary-btn:hover,
.primary-btn:focus-visible {
  background: #ffb52b;
  transform: translateY(-2px);
}

.cell,
.threat-cell {
  display: inline-grid;
  place-items: center;
  width: clamp(34px, 4.2vw, 48px);
  height: clamp(34px, 4.2vw, 48px);
  flex: 0 0 auto;
  clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0 50%);
  color: rgba(255, 255, 255, 0.94);
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1;
}

.cell--red { background: var(--red); }
.cell--blue { background: var(--blue); }
.cell--green { background: var(--green); }
.cell--purple { background: var(--purple); }
.cell--yellow { background: var(--yellow); }
.cell--honey-star { background: var(--honey); }

.cell--star::after {
  content: "★";
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.8em;
}

.section {
  position: relative;
  padding: clamp(88px, 10vw, 132px) 0;
}

.section-inner {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.section-heading {
  max-width: 700px;
}

.section-heading--split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  align-items: end;
  gap: clamp(40px, 7vw, 84px);
  max-width: none;
}

.section-heading--center {
  margin-inline: auto;
  text-align: center;
}

.section-kicker {
  margin: 0 0 16px;
}

.section-kicker--berry {
  color: #c48aff;
}

h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.22;
  text-wrap: balance;
}

.section-copy {
  margin: 22px 0 0;
  color: var(--text);
  font-size: clamp(0.98rem, 1.3vw, 1.08rem);
  line-height: 1.9;
}

.section-heading--split .section-copy {
  margin: 0;
}

.rules-section {
  background: var(--bg-soft);
}

.rule-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: clamp(56px, 7vw, 82px);
  border-top: 1px solid var(--line-strong);
}

.rule-step {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  min-width: 0;
  padding: 34px clamp(18px, 3vw, 32px) 12px;
}

.rule-step:not(:first-child) {
  border-left: 1px solid var(--line);
}

.rule-step::before {
  content: "";
  position: absolute;
  top: -3px;
  left: clamp(18px, 3vw, 32px);
  width: 52px;
  height: 5px;
  background: var(--honey);
  border-radius: 999px;
}

.rule-step:nth-child(2)::before { background: var(--green); }
.rule-step:nth-child(3)::before { background: var(--blue); }

.rule-symbol {
  padding-top: 4px;
}

.rule-step-media {
  grid-column: 1 / -1;
  aspect-ratio: 3 / 2;
  margin: 0 0 4px;
  overflow: hidden;
  background: #0d1b21;
  border: 1px solid rgba(141, 169, 188, 0.16);
  border-radius: 12px;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.2);
}

.rule-step-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-cell {
  display: block;
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  background: transparent;
  filter: drop-shadow(0 9px 18px rgba(0, 0, 0, 0.2));
}

.game-cell--star {
  filter:
    drop-shadow(0 0 10px rgba(153, 195, 133, 0.16))
    drop-shadow(0 9px 18px rgba(0, 0, 0, 0.2));
}

.game-cell--clear {
  filter:
    drop-shadow(0 0 12px rgba(123, 165, 213, 0.2))
    drop-shadow(0 9px 18px rgba(0, 0, 0, 0.2));
}

.game-cell--honey-star {
  filter:
    drop-shadow(0 0 10px rgba(240, 196, 98, 0.18))
    drop-shadow(0 9px 18px rgba(0, 0, 0, 0.2));
}

.rule-step-copy > span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.14em;
}

.rule-step h3 {
  margin: 7px 0 8px;
  font-size: 1.15rem;
  line-height: 1.35;
}

.rule-step p {
  margin: 0;
  color: var(--text);
  font-size: 0.9rem;
}

.next-moves {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 760px;
  margin: 50px auto 0;
  padding: 22px 26px;
  background: rgba(255, 255, 255, 0.028);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.next-moves-cells {
  display: flex;
  gap: 4px;
  flex: 0 0 auto;
}

.next-moves-cells .cell {
  width: 28px;
  height: 28px;
}

.next-moves strong {
  font-size: 0.95rem;
}

.next-moves p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(390px, 1fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(56px, 8vw, 100px);
}

.split-layout--reverse {
  grid-template-columns: minmax(390px, 0.96fr) minmax(0, 1.04fr);
}

.zombee-section {
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 50%, rgba(157, 78, 221, 0.07), transparent 34%),
    var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.zombee-visual {
  padding: clamp(24px, 4vw, 38px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.24);
}

.zombee-visual article {
  position: relative;
  display: grid;
  grid-template-columns: 60px 1fr;
  align-items: center;
  gap: 20px;
  padding: 22px 0;
}

.zombee-visual article + article {
  border-top: 1px solid var(--line);
}

.threat-cell {
  display: block;
  width: 54px;
  height: 54px;
  clip-path: none;
  background: transparent;
  filter: drop-shadow(0 9px 18px rgba(0, 0, 0, 0.2));
}

.threat-cell--star {
  filter:
    drop-shadow(0 0 10px rgba(123, 142, 154, 0.12))
    drop-shadow(0 9px 18px rgba(0, 0, 0, 0.2));
}

.threat-cell--curse {
  filter:
    drop-shadow(0 0 12px rgba(123, 91, 176, 0.22))
    drop-shadow(0 9px 18px rgba(0, 0, 0, 0.22));
}

.zombee-visual small {
  display: block;
  color: #c48aff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.zombee-visual strong {
  display: block;
  margin-top: 3px;
  font-size: 1.03rem;
}

.zombee-visual p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.83rem;
}

.rescue-note {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 30px;
  padding: 18px 20px;
  background: rgba(249, 168, 37, 0.055);
  border: 1px solid rgba(249, 168, 37, 0.18);
  border-radius: var(--radius-sm);
}

.rescue-note .game-cell {
  width: 42px;
  height: 42px;
}

.rescue-note strong {
  color: var(--honey-light);
  font-size: 0.9rem;
}

.rescue-note p {
  margin: 1px 0 0;
  color: var(--text);
  font-size: 0.84rem;
}

.modes-section {
  background: var(--bg-soft);
}

.mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(54px, 7vw, 76px);
}

.mode-card {
  position: relative;
  min-height: 255px;
  padding: clamp(26px, 4vw, 40px);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.mode-card--featured {
  background:
    linear-gradient(135deg, rgba(157, 78, 221, 0.06), transparent 55%),
    rgba(255, 255, 255, 0.025);
  border-color: rgba(157, 78, 221, 0.22);
}

.mode-index {
  position: absolute;
  top: 24px;
  right: 28px;
  color: rgba(255, 255, 255, 0.16);
  font-size: 0.84rem;
}

.mode-card h3 {
  max-width: 80%;
  margin: 15px 0 12px;
  font-size: clamp(1.35rem, 2.7vw, 2.05rem);
  line-height: 1.28;
}

.mode-card > p {
  max-width: 560px;
  margin: 0;
  color: var(--text);
  font-size: 0.9rem;
}

.mode-metric {
  position: absolute;
  right: 30px;
  bottom: 24px;
  color: rgba(255, 255, 255, 0.1);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.16em;
}

.mode-sub {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.mode-sub > span {
  color: #c48aff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.mode-sub strong {
  display: block;
  margin-top: 3px;
  font-size: 0.92rem;
}

.mode-sub p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.custom-strip {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: center;
  gap: 26px;
  margin-top: 16px;
  padding: 22px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.custom-strip > span {
  color: var(--honey-light);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.12em;
}

.custom-strip strong {
  font-size: 0.95rem;
}

.custom-strip p {
  display: inline;
  margin: 0 0 0 12px;
  color: var(--muted);
  font-size: 0.86rem;
}

.progression-section {
  background: var(--bg);
}

.progress-visual {
  display: grid;
  gap: 14px;
}

.score-card {
  padding: clamp(26px, 4vw, 38px);
  background:
    radial-gradient(circle at 80% 20%, rgba(249, 168, 37, 0.09), transparent 40%),
    var(--surface-strong);
  border: 1px solid rgba(249, 168, 37, 0.16);
  border-radius: var(--radius);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

.score-card > span {
  color: var(--honey-light);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.score-card strong {
  display: block;
  margin-top: 7px;
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
  line-height: 1;
}

.score-card p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.06em;
}

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

.collection-grid > div {
  min-width: 0;
  padding: 20px;
  background: rgba(255, 255, 255, 0.026);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.collection-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.13em;
}

.collection-grid strong {
  display: block;
  margin-top: 5px;
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

.collection-theme {
  background: linear-gradient(130deg, rgba(79, 128, 182, 0.08), rgba(157, 78, 221, 0.07)) !important;
}

.feature-list {
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding: 15px 0 15px 22px;
  color: var(--text);
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}

.feature-list li::before {
  content: "";
  position: absolute;
  top: 26px;
  left: 0;
  width: 7px;
  height: 7px;
  background: var(--honey);
  transform: rotate(30deg);
}

.feature-list li:last-child {
  border-bottom: 0;
}

.site-footer {
  position: relative;
  padding: 0;
  color: var(--text);
  background: linear-gradient(180deg, #101820 0%, #0d141b 100%);
  border-top: 1px solid rgba(249, 168, 37, 0.1);
  font-size: 0.88rem;
}

.site-footer::before {
  content: "";
  display: block;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(249, 168, 37, 0),
    rgba(249, 168, 37, 0.18),
    rgba(157, 78, 221, 0.16),
    rgba(157, 78, 221, 0)
  );
}

.footer-inner {
  display: grid;
  grid-template-columns:
    minmax(0, 1.45fr)
    minmax(130px, 0.58fr)
    minmax(150px, 0.68fr)
    minmax(220px, 0.92fr);
  align-items: start;
  gap: clamp(30px, 3.2vw, 44px);
  width: min(var(--max), calc(100% - 64px));
  margin: 0 auto;
  padding: 48px 0 42px;
}

.footer-brand {
  min-width: 0;
}

.footer-brand-top {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 18px;
}

.footer-logo-link {
  display: inline-flex;
  flex: 0 0 auto;
}

.beezell-logo--footer {
  --logo-size: 42px;
}

.footer-store-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.google-play-link {
  display: inline-flex;
  flex: 0 0 auto;
  border-radius: 6px;
  transition: transform 160ms ease, filter 160ms ease;
}

.google-play-link:hover,
.google-play-link:focus-visible {
  filter: brightness(1.08);
  transform: translateY(-2px);
}

.google-play-link:focus-visible {
  outline: 2px solid var(--honey-light);
  outline-offset: 4px;
}

.google-play-badge {
  display: block;
  width: auto;
  height: 46px;
}

.store-card {
  display: grid;
  min-width: 122px;
  min-height: 46px;
  align-content: center;
  padding: 7px 12px;
  color: rgba(245, 247, 248, 0.9);
  background: rgba(5, 10, 15, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
}

.store-card span {
  color: rgba(245, 247, 248, 0.54);
  font-size: 0.57rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
}

.store-card strong {
  margin-top: 4px;
  font-size: 0.86rem;
  line-height: 1;
}

.footer-brand > p,
.footer-group p {
  max-width: 410px;
  margin: 0;
  color: rgba(245, 247, 248, 0.7);
  font-size: 0.84rem;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.footer-group {
  display: grid;
  min-width: 0;
  align-content: start;
  grid-auto-rows: max-content;
  gap: 8px;
}

.footer-group h3 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.3;
}

.footer-group a {
  width: fit-content;
  color: rgba(245, 247, 248, 0.78);
  font-size: 0.86rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.footer-logo-link:hover,
.footer-logo-link:focus-visible,
.footer-group a:hover,
.footer-group a:focus-visible {
  color: var(--honey-light);
}

.footer-bottom {
  display: flex;
  justify-content: center;
  padding: 20px 24px calc(20px + env(safe-area-inset-bottom));
  color: rgba(245, 247, 248, 0.68);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.72rem;
  letter-spacing: 0.01em;
  text-align: center;
}

/* Legal pages */
.legal-page-main {
  min-height: 70vh;
}

.legal-hero {
  padding: 80px 0 62px;
  background:
    radial-gradient(circle at 8% 16%, rgba(249, 168, 37, 0.065), transparent 32%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}

.legal-wrap {
  width: min(760px, calc(100% - 48px));
  margin: 0 auto;
}

.legal-kicker {
  margin: 0 0 14px;
  color: var(--honey-light);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.legal-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: -0.045em;
  line-height: 1.2;
}

.legal-lead {
  margin: 20px 0 0;
  color: var(--text);
  font-size: 1rem;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 26px;
  color: var(--muted);
  font-size: 0.75rem;
}

.legal-main {
  padding: 72px 0 110px;
  background: var(--bg-soft);
}

.legal-card {
  padding: 0;
}

.legal-section {
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.legal-section:first-child {
  padding-top: 0;
}

.legal-section:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.legal-section h2 {
  margin: 0 0 18px;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  letter-spacing: -0.02em;
  line-height: 1.45;
}

.legal-section p,
.legal-section li {
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.95;
}

.legal-section p {
  margin: 12px 0 0;
}

.legal-section ul,
.legal-section ol {
  margin: 14px 0 0;
  padding-left: 1.4rem;
}

.legal-section a {
  color: var(--honey-light);
  text-decoration: underline;
  text-decoration-color: rgba(255, 208, 110, 0.42);
  text-underline-offset: 3px;
}

.legal-note {
  margin-top: 20px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.026);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.legal-note p:first-child {
  margin-top: 0;
}

.legal-note p:last-child {
  margin-bottom: 0;
}

@media (max-width: 1040px) {
  .header-inner {
    width: calc(100% - 28px);
  }

  .site-nav a {
    padding-inline: 8px;
    font-size: 0.79rem;
  }

  .split-layout,
  .split-layout--reverse {
    gap: 52px;
  }

  .footer-inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
    width: calc(100% - 40px);
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  :root {
    --header-height: 64px;
  }

  .header-inner {
    gap: 12px;
  }

  .brand-name {
    display: none;
  }

  .nav-toggle {
    display: block;
    order: 3;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 14px;
    left: 14px;
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding: 10px;
    background: rgba(13, 20, 27, 0.98);
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(18px);
  }

  .site-header.is-menu-open .site-nav {
    display: grid;
  }

  .site-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    text-align: center;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .hero-inner {
    padding: 64px 0;
  }

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

  .section-heading--split {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 24px;
  }

  .section-heading--split .section-copy {
    margin: 0;
  }

  .split-layout,
  .split-layout--reverse {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .progress-visual {
    order: 2;
  }

}

@media (max-width: 700px) {
  .section-inner,
  .hero-inner,
  .footer-inner,
  .legal-wrap {
    width: calc(100% - 36px);
  }

  .hero-inner {
    padding: 52px 0;
  }

  .rule-flow {
    grid-template-columns: 1fr;
    border-top: 0;
  }

  .rule-step,
  .rule-step:not(:first-child) {
    padding: 28px 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .rule-step::before {
    top: -3px;
    left: 0;
  }

  .next-moves {
    align-items: flex-start;
    margin-top: 32px;
    padding: 20px;
  }

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

  .mode-card {
    min-height: 230px;
  }

  .custom-strip {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .custom-strip p {
    display: block;
    margin: 4px 0 0;
  }

  .legal-hero {
    padding: 58px 0 46px;
  }

  .legal-main {
    padding: 54px 0 84px;
  }
}

@media (max-width: 720px) {
  .hero-board {
    width: 118vw;
    opacity: 0.44;
    transform: translate(-50%, -58%);
  }

  .hero-copy {
    --hero-shift: -18px;
  }

  .beezell-logo--hero {
    --logo-size: 56px;
  }

  .hero-lead {
    max-width: 34rem;
    margin-top: 20px;
    font-size: 0.94rem;
    line-height: 1.8;
  }

  .hero-actions {
    gap: 10px;
    margin-top: 28px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 26px;
    width: calc(100% - 36px);
    padding: 38px 0 32px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .beezell-logo--footer {
    --logo-size: 38px;
  }

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

  .footer-group--game h3 {
    grid-column: 1 / -1;
  }

  .footer-group a {
    display: flex;
    align-items: center;
    min-height: 44px;
  }
}

@media (max-width: 560px) {
  .footer-brand-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .footer-store-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .footer-store-buttons .google-play-link {
    justify-self: start;
  }

  .store-card {
    min-width: 0;
  }
}

@media (max-width: 440px) {
  .hero-actions {
    width: 100%;
    flex-direction: column;
  }

  .primary-btn {
    width: 100%;
    max-width: 250px;
  }

  .hero-store-buttons {
    width: 100%;
  }
}

@media (max-width: 430px) {
  .header-inner {
    width: calc(100% - 22px);
  }

  .header-tools {
    gap: 8px;
  }

  .language-trigger {
    padding-right: 22px;
    font-size: 0.75rem;
  }

  .next-moves {
    flex-direction: column;
    gap: 14px;
  }

  .zombee-visual {
    padding: 18px;
  }

  .zombee-visual article {
    grid-template-columns: 48px 1fr;
    gap: 14px;
  }

  .threat-cell {
    width: 44px;
    height: 44px;
  }

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

}

@media (max-width: 380px) {
  .footer-store-buttons {
    grid-template-columns: 1fr;
  }

  .hero-store-buttons {
    flex-direction: column;
  }
}

@media (max-width: 340px) {
  .language-trigger {
    width: min(176px, calc(100vw - 134px));
    padding-left: 31px;
  }

  .language-icon {
    left: 9px;
  }

  .nav-toggle {
    width: 42px;
    height: 42px;
  }

  .section-inner,
  .hero-inner,
  .footer-inner,
  .legal-wrap {
    width: calc(100% - 28px);
  }

}

@media (max-width: 360px) {
  .beezell-logo--hero {
    --logo-size: 52px;
  }

  .hero-lead {
    font-size: 0.9rem;
  }
}

@media (max-height: 540px) {
  .hero-board {
    width: min(640px, 112vw);
    opacity: 0.34;
    transform: translate(-50%, -54%);
  }

  .hero-inner {
    padding: 28px 0 36px;
  }

  .hero-copy {
    --hero-shift: 0px;
  }

  .beezell-logo--hero {
    --logo-size: 52px;
  }

  .hero-lead {
    margin-top: 16px;
    line-height: 1.65;
  }

  .hero-actions {
    margin-top: 20px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy {
    animation: heroEnter 520ms ease-out both;
  }

  @keyframes heroEnter {
    from { opacity: 0; transform: translateY(calc(var(--hero-shift) + 12px)); }
    to { opacity: 1; transform: translateY(var(--hero-shift)); }
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
