:root {
  --ink: #f8f4ff;
  --muted: #ada5c3;
  --night: #080613;
  --night-soft: #100b22;
  --panel: rgba(20, 14, 43, 0.92);
  --line: rgba(255, 255, 255, 0.13);
  --pink: #ff3aa7;
  --pink-hot: #ff147f;
  --lime: #d6ff3f;
  --cyan: #51f4ff;
  --purple: #8056ff;
  --danger: #ff405f;
  --display: "Archivo Black", Impact, sans-serif;
  --body: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% -10%, rgba(126, 63, 255, 0.2), transparent 34rem),
    linear-gradient(180deg, #0c081c 0%, #070510 55%, #0b0717 100%);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 48px 48px;
  content: "";
  pointer-events: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
  font: inherit;
}

button:focus-visible,
a:focus-visible,
canvas:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

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

.ambient {
  position: fixed;
  z-index: -1;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.13;
  pointer-events: none;
}

.ambient-one {
  top: 18%;
  left: -16rem;
  background: var(--pink);
}

.ambient-two {
  right: -18rem;
  bottom: 4%;
  background: var(--purple);
}

.site-shell {
  width: min(1480px, calc(100% - 56px));
  margin: 0 auto;
}

.topbar {
  display: flex;
  min-height: 94px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: block;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border: 2px solid var(--pink);
  border-radius: 50%;
  box-shadow: 0 0 22px rgba(255, 58, 167, 0.36);
}

.brand-mark::after {
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: inherit;
  content: "";
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 34%;
  transform: scale(1.08);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  font-family: var(--display);
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  line-height: 1.15;
}

.brand-copy small {
  margin-top: 4px;
  color: var(--pink);
  font-family: var(--body);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.24em;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 9px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: #e8e3f2;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: 180ms ease;
}

.icon-button:hover {
  border-color: rgba(255, 58, 167, 0.55);
  background: rgba(255, 58, 167, 0.09);
  transform: translateY(-1px);
}

.icon-button > span:first-child {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  font-size: 0.7rem;
}

.icon-button.square {
  width: 42px;
  padding: 0;
  justify-content: center;
  border-radius: 50%;
}

.icon-button.square svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.icon-button.square > span:first-of-type {
  display: none;
}

.sound-off,
.is-muted .sound-on {
  display: none;
}

.is-muted .sound-off {
  display: block;
}

.hero {
  padding: clamp(48px, 6vw, 94px) 0 0;
}

.hero-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 42px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--pink);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.24em;
}

.eyebrow > span {
  width: 34px;
  height: 1px;
  background: var(--pink);
  box-shadow: 0 0 10px var(--pink);
}

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

.hero h1,
.section-intro h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3rem, 6.2vw, 6.9rem);
  font-weight: 900;
  letter-spacing: -0.065em;
  line-height: 0.84;
  text-transform: uppercase;
}

.hero h1 em,
.section-intro h2 em {
  color: transparent;
  -webkit-text-stroke: 1.6px var(--pink);
  filter: drop-shadow(0 0 16px rgba(255, 58, 167, 0.28));
  font-style: normal;
}

.hero-kicker {
  position: relative;
  max-width: 260px;
  padding: 0 0 5px 24px;
  margin: 0 4px 5px 0;
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.65;
}

.hero-kicker::before {
  position: absolute;
  top: 4px;
  bottom: 8px;
  left: 0;
  width: 2px;
  background: linear-gradient(var(--pink), transparent);
  content: "";
}

.game-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 18px;
  align-items: stretch;
}

.game-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  background: #090616;
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.46), 0 0 0 1px rgba(255, 58, 167, 0.03);
}

.game-card-topline {
  display: flex;
  height: 34px;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.42);
  font-family: monospace;
  font-size: 0.54rem;
  letter-spacing: 0.13em;
}

.game-card-topline > span:first-child {
  margin-right: auto;
}

.record-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 8px var(--danger);
  animation: blink 1.4s infinite;
}

@keyframes blink {
  50% { opacity: 0.25; }
}

.canvas-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  min-height: min(500px, calc(100dvh - 96px));
  max-height: calc(100dvh - 96px);
  overflow: hidden;
  background: #120b2e;
  isolation: isolate;
  touch-action: none;
}

.canvas-wrap:fullscreen,
.canvas-wrap:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  max-height: none;
  aspect-ratio: auto;
  border-radius: 0;
  background: #070411;
}

.canvas-wrap::after {
  position: absolute;
  inset: 0;
  z-index: 8;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 80px rgba(4, 1, 14, 0.55);
  content: "";
  pointer-events: none;
}

#gameCanvas {
  display: block;
  width: 100%;
  height: 100%;
}

.hud {
  position: absolute;
  top: 17px;
  left: 18px;
  z-index: 12;
  display: flex;
  gap: 8px;
  opacity: 0;
  transition: opacity 180ms ease;
}

.hud-item {
  min-width: 92px;
  padding: 8px 12px 7px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(8, 5, 24, 0.78);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(10px);
}

.hud-item > span {
  display: block;
  margin-bottom: 2px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.46rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.hud-item strong {
  font-family: var(--display);
  font-size: clamp(0.75rem, 1.25vw, 1.03rem);
  letter-spacing: 0.02em;
}

.combo-item strong { color: var(--lime); }
.time-item strong { color: var(--cyan); }
.lives-item strong { color: var(--pink); letter-spacing: 0.12em; }

.level-chip {
  position: absolute;
  top: 19px;
  right: 108px;
  z-index: 12;
  padding: 7px 11px;
  border: 1px solid rgba(255, 58, 167, 0.35);
  border-radius: 999px;
  background: rgba(18, 5, 38, 0.72);
  color: #ff93cf;
  font-size: 0.48rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 180ms ease;
}

.effect-chip {
  position: absolute;
  top: 57px;
  right: 108px;
  z-index: 14;
  max-width: min(330px, 58%);
  padding: 7px 11px;
  border: 1px solid rgba(255, 179, 42, 0.62);
  border-radius: 999px;
  background: rgba(39, 11, 5, 0.84);
  box-shadow: 0 0 22px rgba(255, 99, 24, 0.22);
  color: #ffd35a;
  font-size: 0.5rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-align: center;
  backdrop-filter: blur(8px);
}

.effect-chip.drunk {
  border-color: rgba(224, 153, 69, 0.64);
  background: rgba(45, 25, 10, 0.88);
  color: #ffc977;
  animation: drunk-chip 550ms ease-in-out infinite alternate;
}

.effect-chip.mixed {
  border-color: rgba(255, 86, 137, 0.72);
  color: #fff0a8;
}

@keyframes drunk-chip {
  from { transform: rotate(-1deg) translateX(-2px); }
  to { transform: rotate(1deg) translateX(2px); }
}

.is-playing .hud,
.is-playing .level-chip {
  opacity: 1;
}

.screen {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: none;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 25%, rgba(255, 58, 167, 0.2), transparent 38%),
    linear-gradient(180deg, rgba(11, 6, 31, 0.79), rgba(6, 4, 18, 0.94));
  backdrop-filter: blur(3px);
}

.screen.active {
  display: grid;
  animation: screen-in 300ms ease both;
}

@keyframes screen-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.start-content {
  position: relative;
  z-index: 2;
  display: flex;
  width: min(88%, 760px);
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.mascot-lockup {
  position: relative;
  width: clamp(92px, 12vw, 130px);
  height: clamp(92px, 12vw, 130px);
  margin-bottom: 16px;
}

.mascot-halo {
  position: absolute;
  inset: -14px;
  border: 1px solid rgba(255, 58, 167, 0.42);
  border-radius: 50%;
  box-shadow: 0 0 35px rgba(255, 58, 167, 0.32), inset 0 0 20px rgba(255, 58, 167, 0.16);
  animation: halo-pulse 2.5s ease-in-out infinite;
}

.mascot-halo::before,
.mascot-halo::after {
  position: absolute;
  inset: 9px;
  border: 1px dashed rgba(81, 244, 255, 0.38);
  border-radius: inherit;
  content: "";
  animation: spin 16s linear infinite;
}

.mascot-halo::after {
  inset: -7px;
  border-style: solid;
  border-color: transparent transparent rgba(214, 255, 63, 0.54) transparent;
  animation-duration: 8s;
  animation-direction: reverse;
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes halo-pulse { 50% { transform: scale(1.045); opacity: 0.74; } }

.mascot-photo {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 4px solid #ff61b9;
  border-radius: 50%;
  background: #20113f;
  box-shadow: inset 0 0 0 2px #fff, 0 12px 38px rgba(0, 0, 0, 0.45);
}

.mascot-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 31%;
  transform: scale(1.08);
}

.mascot-tag {
  position: absolute;
  right: -48px;
  bottom: 4px;
  padding: 5px 9px;
  border: 1px solid var(--lime);
  background: #111122;
  color: var(--lime);
  font-family: monospace;
  font-size: clamp(0.42rem, 0.65vw, 0.56rem);
  font-weight: 700;
  line-height: 1.15;
  text-align: left;
  transform: rotate(-4deg);
}

.start-label {
  margin: 0 0 8px;
  color: var(--pink);
  font-size: clamp(0.48rem, 0.75vw, 0.64rem);
  font-weight: 700;
  letter-spacing: 0.26em;
}

.start-content h2,
.compact-screen h2 {
  width: 100%;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.65rem, 3.5vw, 3.4rem);
  letter-spacing: -0.045em;
  line-height: 0.92;
}

.start-content h2 span {
  color: transparent;
  -webkit-text-stroke: 1px var(--pink);
}

.start-copy {
  width: 100%;
  max-width: 620px;
  margin: 13px 0 14px;
  color: rgba(241, 235, 255, 0.72);
  font-size: clamp(0.62rem, 1vw, 0.84rem);
}

.target-row {
  display: flex;
  gap: 8px;
  margin-bottom: 17px;
}

.target-row > span {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(255, 255, 255, 0.67);
  font-size: clamp(0.4rem, 0.65vw, 0.56rem);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.target-row b { color: white; }

.mini-icon {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  font-style: normal;
}

.blonde-icon { background: #ffd84d; color: #5c3500; }
.uzbek-icon { background: #43e8c7; color: #042e30; }

.primary-button {
  position: relative;
  display: flex;
  min-width: min(100%, 265px);
  height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 0 9px 0 21px;
  overflow: hidden;
  border: 0;
  border-radius: 4px;
  background: linear-gradient(110deg, var(--pink-hot), #ff4cb0);
  box-shadow: 0 12px 35px rgba(255, 20, 127, 0.28);
  color: white;
  cursor: pointer;
  font-family: var(--display);
  font-size: 0.69rem;
  letter-spacing: 0.07em;
  transition: 180ms ease;
}

.primary-button::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -40%;
  width: 35%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.38), transparent);
  content: "";
  transform: skewX(-20deg);
  transition: left 350ms ease;
}

.primary-button:hover {
  box-shadow: 0 16px 40px rgba(255, 20, 127, 0.42);
  transform: translateY(-2px);
}

.primary-button:hover::before { left: 115%; }

.primary-button b {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 3px;
  background: rgba(38, 3, 25, 0.28);
  font-family: var(--body);
  font-size: 1.15rem;
}

.key-hint {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.42);
  font-size: clamp(0.48rem, 0.7vw, 0.58rem);
}

kbd {
  display: inline-grid;
  min-width: 24px;
  height: 24px;
  margin: 0 2px;
  padding: 0 5px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom-color: rgba(255, 255, 255, 0.38);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.075);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.4);
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--body);
  font-size: 0.6rem;
  font-weight: 700;
}

.start-orbit {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 50%;
  pointer-events: none;
}

.orbit-one { width: 58%; aspect-ratio: 1; }
.orbit-two { width: 78%; aspect-ratio: 1; border-style: dashed; }

.compact-screen {
  text-align: center;
}

.compact-screen > * {
  max-width: min(84%, 550px);
}

.compact-screen > p:not(.start-label, .high-score-line) {
  margin: 13px 0 22px;
  color: var(--muted);
  font-size: 0.82rem;
}

.compact-screen .primary-button { margin: 20px auto 0; }

.pause-icon {
  display: grid;
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  place-items: center;
  border: 1px solid var(--pink);
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(255, 58, 167, 0.25);
  color: var(--pink);
  font-family: var(--display);
  letter-spacing: 2px;
}

.final-score {
  margin: 20px 0 14px;
}

.final-score span {
  display: block;
  color: var(--muted);
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.final-score strong {
  display: block;
  color: var(--lime);
  font-family: var(--display);
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  letter-spacing: -0.04em;
  line-height: 1;
  text-shadow: 0 0 26px rgba(214, 255, 63, 0.24);
}

.result-grid {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.result-grid span {
  min-width: 120px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted);
  font-size: 0.56rem;
}

.result-grid b {
  display: block;
  margin-top: 3px;
  color: white;
  font-family: var(--display);
  font-size: 0.84rem;
}

.high-score-line {
  margin: 10px 0 0;
  color: #ff91d0;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.09em;
}

.pause-button {
  position: absolute;
  top: 17px;
  right: 62px;
  z-index: 13;
  display: none;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(8, 5, 24, 0.75);
  color: white;
  cursor: pointer;
  font-family: var(--display);
  font-size: 0.63rem;
  letter-spacing: 1px;
  backdrop-filter: blur(8px);
}

.is-playing .pause-button { display: block; }

.fullscreen-button {
  position: absolute;
  top: 17px;
  right: 18px;
  z-index: 30;
  display: grid;
  width: 36px;
  height: 36px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(8, 5, 24, 0.78);
  color: white;
  cursor: pointer;
  font-family: var(--body);
  font-size: 1.05rem;
  line-height: 1;
  backdrop-filter: blur(8px);
  transition: 160ms ease;
}

.fullscreen-button:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  transform: scale(1.06);
}

.mobile-controls {
  position: absolute;
  right: 16px;
  bottom: 14px;
  left: 16px;
  z-index: 14;
  display: none;
  justify-content: space-between;
  pointer-events: none;
}

.mobile-controls button {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background: rgba(11, 7, 31, 0.63);
  color: white;
  cursor: pointer;
  font-size: 1.35rem;
  pointer-events: auto;
  backdrop-filter: blur(8px);
  user-select: none;
}

.mobile-controls button:active {
  border-color: var(--pink);
  background: rgba(255, 58, 167, 0.24);
  transform: scale(0.94);
}

.mission-panel {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(22, 14, 44, 0.95), rgba(11, 8, 25, 0.95));
}

.panel-heading {
  display: flex;
  height: 54px;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  font-family: var(--display);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
}

.panel-heading b {
  color: var(--pink);
  font-family: monospace;
  font-size: 0.8rem;
}

.mission-card {
  position: relative;
  display: grid;
  grid-template-columns: 26px 1fr auto;
  gap: 9px;
  padding: 17px 13px;
  border-bottom: 1px solid var(--line);
}

.mission-card::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: var(--pink);
  content: "";
}

.bonus-mission::before { background: #37e0c1; }

.mission-number {
  color: rgba(255, 255, 255, 0.24);
  font-family: monospace;
  font-size: 0.58rem;
}

.mission-card small,
.danger-strip small {
  display: block;
  margin-bottom: 3px;
  color: var(--pink);
  font-size: 0.44rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.bonus-mission small { color: #51f4d5; }

.mission-card h3 {
  margin: 0 0 5px;
  font-family: var(--display);
  font-size: 0.76rem;
  letter-spacing: -0.02em;
}

.mission-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.6rem;
  line-height: 1.4;
}

.mission-card > strong {
  align-self: center;
  color: var(--lime);
  font-family: var(--display);
  font-size: 0.68rem;
}

.bonus-mission > strong { color: #51f4d5; }

.danger-strip {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 12px 13px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 64, 95, 0.065);
}

.hazard-duo {
  position: relative;
  display: block;
  width: 46px;
  height: 25px;
}

.hazard-duo i {
  position: absolute;
  top: 2px;
  display: block;
  width: 21px;
  height: 21px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 58%, #dba78e 0 31%, #2b171b 33% 68%, #130d18 70%);
  box-shadow: 0 0 10px rgba(255, 64, 95, 0.3);
}

.hazard-duo i:first-child { left: 0; z-index: 1; }
.hazard-duo i:nth-child(2) {
  left: 13px;
  z-index: 2;
  background: radial-gradient(circle at 50% 58%, #efb29a 0 31%, #c44724 33% 68%, #541917 70%);
}
.hazard-duo i:last-child {
  right: 0;
  z-index: 3;
  width: 23px;
  height: 23px;
  background: radial-gradient(circle at 50% 57%, #d9a283 0 29%, #8b603c 31% 64%, #3b251e 66%);
}
.danger-strip small { margin: 0; color: var(--danger); }
.danger-strip b { font-family: var(--display); font-size: 0.56rem; }
.danger-strip > span:last-child { color: var(--danger); font-family: var(--display); font-size: 0.62rem; }

.drunk-strip {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 10px 13px;
  border-bottom: 1px solid var(--line);
  background: rgba(202, 130, 49, 0.07);
}

.whisky-icon {
  filter: drop-shadow(0 0 8px rgba(238, 155, 56, 0.45));
  font-size: 1.25rem;
}

.drunk-strip small {
  display: block;
  color: #d9923e;
  font-size: 0.43rem;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.drunk-strip b { font-family: var(--display); font-size: 0.62rem; }
.drunk-strip > span:last-child { color: #f3b563; font-family: var(--display); font-size: 0.58rem; }

.live-feed {
  flex: 1;
  min-height: 145px;
  padding: 15px 13px 10px;
  border-bottom: 1px solid var(--line);
}

.feed-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.47rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.feed-title i {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
}

.live-feed ul {
  padding: 0;
  margin: 10px 0 0;
  list-style: none;
}

.live-feed li {
  display: grid;
  grid-template-columns: 43px 1fr;
  gap: 7px;
  padding: 6px 0;
  border-bottom: 1px dotted rgba(255, 255, 255, 0.07);
  color: #c5bdd6;
  font-family: monospace;
  font-size: 0.54rem;
  line-height: 1.35;
}

.live-feed li:first-child { color: var(--lime); }
.live-feed time { color: rgba(255, 255, 255, 0.32); }

.controls-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  padding: 13px;
}

.controls-card > span {
  grid-column: 1 / -1;
  margin-bottom: 2px;
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.45rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.controls-card > div {
  display: flex;
  align-items: center;
  gap: 2px;
}

.controls-card > div:last-child { grid-column: 1 / -1; }
.controls-card small { margin-left: 3px; color: var(--muted); font-size: 0.44rem; font-weight: 700; }
.controls-card kbd { min-width: 21px; height: 21px; font-size: 0.48rem; }

.how-to {
  display: grid;
  grid-template-columns: 0.62fr 1.38fr;
  gap: clamp(40px, 7vw, 110px);
  padding: clamp(100px, 12vw, 170px) 0 clamp(90px, 10vw, 140px);
}

.section-intro h2 {
  font-size: clamp(2.5rem, 4.6vw, 5rem);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--line);
  overflow: hidden;
}

.steps-grid article {
  position: relative;
  min-height: 330px;
  padding: 25px 22px;
  background: rgba(12, 8, 27, 0.96);
}

.steps-grid article::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--pink), transparent);
  content: "";
  opacity: 0;
  transition: opacity 180ms ease;
}

.steps-grid article:hover::after { opacity: 1; }

.step-no {
  color: rgba(255, 255, 255, 0.22);
  font-family: monospace;
  font-size: 0.65rem;
}

.step-visual {
  display: flex;
  height: 124px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  margin: 14px 0 16px;
}

.move-visual b {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--pink);
}

.mini-recep {
  display: block;
  width: 65px;
  height: 65px;
  overflow: hidden;
  border: 2px solid var(--pink);
  border-radius: 50%;
  box-shadow: 0 0 25px rgba(255, 58, 167, 0.26);
}

.mini-recep img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 31%;
  transform: scale(1.08);
}

.catch-visual i {
  color: var(--pink);
  font-family: var(--display);
  font-size: 1.4rem;
  font-style: normal;
  filter: drop-shadow(0 0 12px rgba(255, 58, 167, 0.55));
  transform: rotate(-8deg);
}

.catch-visual i:nth-child(2) {
  color: #ffdd4a;
  font-size: 3.2rem;
  transform: rotate(8deg);
}

.bonus-visual {
  position: relative;
}

.bonus-visual i:first-child {
  color: #49f4d3;
  font-size: 4.6rem;
  font-style: normal;
  text-shadow: 0 0 30px rgba(73, 244, 211, 0.4);
}

.bonus-visual strong {
  position: absolute;
  color: #102723;
  font-family: var(--display);
  font-size: 0.68rem;
}

.bonus-visual i:last-child {
  position: absolute;
  right: 13%;
  bottom: 23%;
  padding: 3px 6px;
  border: 1px solid var(--lime);
  background: #10111f;
  color: var(--lime);
  font-family: monospace;
  font-size: 0.58rem;
  font-style: normal;
  transform: rotate(7deg);
}

.steps-grid h3 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 0.84rem;
  letter-spacing: 0.02em;
}

.steps-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.55;
}

footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 90px;
  border-top: 1px solid var(--line);
  color: rgba(255, 255, 255, 0.32);
  font-family: monospace;
  font-size: 0.55rem;
  letter-spacing: 0.1em;
}

footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.52);
  font-family: var(--body);
  font-size: 0.68rem;
  letter-spacing: 0;
}

footer em { color: var(--pink); font-style: normal; }
footer span:last-child { text-align: right; }

.guide-dialog {
  width: min(680px, calc(100% - 30px));
  max-height: calc(100vh - 30px);
  padding: 0;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 15px;
  background: #0f0a21;
  color: var(--ink);
  box-shadow: 0 35px 120px rgba(0, 0, 0, 0.75), 0 0 80px rgba(255, 58, 167, 0.12);
}

.guide-dialog::backdrop {
  background: rgba(4, 2, 11, 0.82);
  backdrop-filter: blur(8px);
}

.dialog-inner {
  position: relative;
  padding: clamp(28px, 5vw, 52px);
  overflow: hidden;
}

.dialog-inner::before {
  position: absolute;
  top: -180px;
  right: -150px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: rgba(255, 58, 167, 0.13);
  content: "";
  filter: blur(50px);
}

.dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  font-size: 1.3rem;
}

.dialog-portrait {
  position: absolute;
  top: 42px;
  right: 55px;
  z-index: 1;
  width: 94px;
  height: 94px;
  overflow: hidden;
  border: 2px solid var(--pink);
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(255, 58, 167, 0.28);
}

.dialog-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 31%;
  transform: scale(1.08);
}

.dialog-inner h2 {
  position: relative;
  margin: 0 0 28px;
  font-family: var(--display);
  font-size: clamp(2rem, 6vw, 3.8rem);
  letter-spacing: -0.055em;
  line-height: 0.88;
}

.dialog-inner h2 em { color: transparent; -webkit-text-stroke: 1px var(--pink); font-style: normal; }

.guide-list {
  display: grid;
  gap: 8px;
}

.guide-list > div {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px 13px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.027);
}

.guide-list > div > b {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(255, 58, 167, 0.48);
  border-radius: 50%;
  color: var(--pink);
  font-family: monospace;
  font-size: 0.65rem;
}

.guide-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.guide-list strong { color: white; }

.score-legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin: 17px 0;
}

.score-legend span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.62rem;
}

.score-legend b { margin-left: auto; color: white; font-size: 0.57rem; }

.legend-dot {
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  box-shadow: 0 0 8px currentColor;
}

.legend-dot.blonde { background: #ffdb4d; color: #ffdb4d; }
.legend-dot.uzbek { background: #49f4d3; color: #49f4d3; }
.legend-dot.cialis {
  width: 13px;
  height: 8px;
  border: 1px solid #e4c965;
  border-radius: 2px;
  background: linear-gradient(135deg, #f7e49b 0 55%, #075c36 56% 100%);
  color: #e4c965;
}
.legend-dot.whisky { background: #a75a24; color: #a75a24; }
.legend-dot.red { background: var(--danger); color: var(--danger); }

@media (max-width: 1120px) {
  .site-shell { width: min(100% - 34px, 1000px); }
  .game-layout { grid-template-columns: 1fr; }
  .mission-panel { display: grid; grid-template-columns: repeat(3, 1fr); }
  .panel-heading { grid-column: 1 / -1; }
  .mission-card { border-right: 1px solid var(--line); }
  .danger-strip { border-right: 1px solid var(--line); }
  .drunk-strip { border-right: 1px solid var(--line); }
  .live-feed { min-height: 130px; }
  .controls-card { align-content: start; }
  .how-to { grid-template-columns: 1fr; }
  .section-intro br { display: none; }
}

@media (max-width: 760px) {
  .site-shell { width: min(100% - 22px, 620px); }
  .topbar { min-height: 76px; }
  .icon-button:not(.square) > span:last-child { display: none; }
  .icon-button:not(.square) { width: 42px; padding: 0; justify-content: center; }
  .hero { padding-top: 40px; }
  .hero-heading { align-items: flex-start; flex-direction: column; gap: 20px; margin-bottom: 28px; }
  .hero h1 { font-size: clamp(3.3rem, 16vw, 5.6rem); }
  .hero-kicker { display: none; }
  .game-card-topline { height: 28px; }
  .canvas-wrap { aspect-ratio: 3 / 4; max-height: calc(100dvh - 24px); }
  .hud { top: 10px; right: 10px; left: 10px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
  .hud-item { min-width: 0; padding: 6px 7px 5px; }
  .hud-item strong { font-size: 0.7rem; }
  .hud-item > span { font-size: 0.38rem; }
  .level-chip { top: 58px; right: auto; left: 10px; font-size: 0.4rem; }
  .effect-chip { top: 94px; right: 10px; left: 10px; max-width: none; font-size: 0.43rem; }
  .pause-button { top: 55px; right: 49px; width: 31px; height: 31px; }
  .fullscreen-button { top: 55px; right: 10px; width: 31px; height: 31px; font-size: 0.9rem; }
  .mobile-controls { display: flex; }
  .start-content { width: 92%; }
  .mascot-lockup { width: 88px; height: 88px; margin-bottom: 12px; }
  .mascot-tag { right: -39px; }
  .start-content h2 { font-size: clamp(1.8rem, 9vw, 3rem); }
  .start-copy { max-width: 440px; margin: 12px 0; font-size: 0.7rem; }
  .target-row { flex-wrap: wrap; justify-content: center; margin-bottom: 14px; }
  .primary-button { height: 45px; }
  .key-hint { display: none; }
  .result-grid { display: grid; grid-template-columns: repeat(3, 1fr); width: 92%; }
  .result-grid span { min-width: 0; }
  .mission-panel { display: block; }
  .controls-card { display: none; }
  .live-feed { min-height: 145px; }
  .how-to { padding: 90px 0; }
  .steps-grid { grid-template-columns: 1fr; }
  .steps-grid article { min-height: 280px; }
  footer { grid-template-columns: 1fr 1fr; }
  footer p { display: none; }
}

@media (max-width: 480px) {
  .brand-copy span { font-size: 0.76rem; }
  .brand-copy small { font-size: 0.48rem; }
  .hero h1 { font-size: clamp(2.8rem, 15.5vw, 4.5rem); }
  .canvas-wrap { aspect-ratio: 0.73; }
  .screen { backdrop-filter: blur(2px); }
  .mascot-lockup { width: 76px; height: 76px; }
  .start-content h2 { font-size: clamp(1.62rem, 7.7vw, 2.35rem); }
  .start-copy { max-width: 310px; font-size: 0.63rem; }
  .target-row > span { padding: 4px 7px; }
  .result-grid { grid-template-columns: 1fr 1fr; }
  .result-grid span:last-child { grid-column: 1 / -1; }
  .dialog-portrait { top: 45px; right: 42px; width: 64px; height: 64px; }
  .score-legend { grid-template-columns: 1fr; }
  .dialog-inner { padding: 34px 22px; }
}

@media (pointer: coarse) {
  .is-playing .mobile-controls { display: flex; }
}

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