:root {
  color-scheme: light;
  --paper: #fbf9f0;
  --ink: #22391c;
  --muted: #56604c;
  --orange: #eb781f;
  --line: #c8cbbd;
  --font: "Manrope", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); }
button, summary, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; text-underline-offset: 4px; }
img { display: block; max-width: 100%; }
button, summary { cursor: pointer; }
[hidden] { display: none !important; }
html[data-lang="ru"] .en, html[data-lang="en"] .ru { display: none; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 6px; }
.page { width: min(1230px, calc(100% - 96px)); margin: 0 auto; }
.skip-link { position: absolute; top: -80px; left: 24px; z-index: 10; padding: 12px; background: var(--paper); }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

.header { display: flex; justify-content: space-between; align-items: center; padding: 20px 0 24px; }
.wordmark { font-size: 28px; line-height: 1; letter-spacing: .02em; font-weight: 800; text-decoration: none; }
.languages { display: flex; align-items: center; gap: 8px; font-size: 19px; font-weight: 800; }
.languages > span { color: #9a9d8f; }
.languages button { min-width: 44px; min-height: 44px; padding: 4px; border: 0; background: transparent; color: #939789; font-weight: 800; }
.languages button[aria-pressed="true"] { color: var(--ink); }
.languages button:hover { color: var(--orange); }

.hero { display: grid; grid-template-columns: .7fr 1fr; gap: 36px; align-items: start; padding-bottom: 26px; }
.hero-copy { padding-top: 50px; }
h1 { font-size: clamp(40px, 5.12vw, 68px); font-weight: 800; letter-spacing: -.025em; line-height: 1.05; margin: 0 0 28px; }
.intro { font-size: 24px; font-weight: 500; line-height: 1.38; margin: 0; max-width: 32ch; }
.hero-characters { display: flex; align-items: center; justify-content: space-around; gap: 18px; height: 224px; margin-top: 10px; }
.hero-gas { width: 166px; height: 166px; object-fit: contain; }
.hero-bug { width: 215px; height: 215px; object-fit: contain; }
.hero-video { min-width: 0; position: relative; }
.video-frame { position: relative; overflow: hidden; border-radius: 18px; background: #11140e; aspect-ratio: 1.27; }
.video-frame video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.watch-video { position: absolute; inset: 0; width: 100%; padding: 0; border: 0; color: var(--paper); background: transparent; }
.play-disc { position: absolute; top: 50%; left: 50%; width: 104px; height: 104px; display: grid; place-items: center; border-radius: 50%; background: var(--paper); transform: translate(-50%, -50%); }
.play-disc img { margin-left: 7px; }
.play-label { position: absolute; left: 50%; bottom: 32px; transform: translateX(-50%); display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 24px; max-width: calc(100% - 36px); border-radius: 999px; background: var(--orange); font-size: 24px; line-height: 1.2; font-weight: 800; white-space: nowrap; }
.play-label img, .download-disc img { filter: invert(1); }
.watch-video:hover .play-label { background: #ce6110; }
.watch-video:focus-visible { outline-offset: -7px; border-radius: 18px; }
.video-caption { position: absolute; right: 22px; top: 18px; margin: 0; color: white; font-size: 14px; text-align: right; pointer-events: none; text-shadow: 0 1px 3px #172510; }
.video-error { color: #7d341a; font-size: 14px; line-height: 1.5; }

.how { border-top: 1px solid var(--line); padding-top: 26px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding: 0 0 0 70px; margin: 0; list-style: none; }
.step { display: grid; grid-template-columns: 42px 1fr; gap: 17px; min-width: 0; }
.step-number { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: var(--paper); font-size: 25px; line-height: 1; font-weight: 800; }
.step-body { min-width: 0; }
.step h2 { font-size: 28px; line-height: 1.2; margin: 4px 0 9px; font-weight: 800; letter-spacing: -.02em; }
.step p { font-size: 20px; line-height: 1.4; margin: 0; max-width: 27ch; }
.step:nth-child(2) p { max-width: 22ch; }
.step-photo { width: 270px; height: 180px; object-fit: cover; border-radius: 10px; margin: 12px 0 0 -59px; }
.step-sprites { display: flex; align-items: center; justify-content: center; height: 178px; gap: 0; }
.step-sprites img { width: 50%; max-width: 145px; height: 158px; object-fit: contain; }
.pair img { max-width: 160px; height: 178px; filter: drop-shadow(0 0 8px rgba(64, 190, 217, .55)); }

summary { list-style: none; }
summary::-webkit-details-marker { display: none; }
.recipe { margin-top: 16px; border-bottom: 1px solid var(--line); }
.recipe > summary { display: flex; align-items: center; gap: 18px; padding: 14px 28px 18px; font-size: 20px; font-weight: 800; }
.recipe > summary:hover, .install > summary:hover .install-title { color: #a94b0b; }
.recipe[open] > summary img { transform: rotate(180deg); }
.recipe-content { padding: 10px 0 26px; }
.recipe-heading { display: flex; align-items: baseline; gap: 24px; flex-wrap: wrap; }
.recipe-heading h2 { margin: 0; font-size: 24px; }
.recipe-heading p { margin: 0; font-size: 16px; }
.recipe-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; list-style-position: inside; padding: 0; margin: 24px 0; }
.recipe-steps li { padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.5; }
.recipe-steps strong { display: block; margin: 6px 0 8px; font-size: 18px; line-height: 1.4; }
.recipe-note { max-width: 85ch; color: var(--muted); font-size: 14px; line-height: 1.6; margin: 10px 0 0; }

.install > summary { display: grid; grid-template-columns: 285px 1fr auto; gap: 22px; align-items: center; padding: 28px 0; }
.install-title { display: flex; align-items: center; gap: 18px; font-size: 26px; font-weight: 800; white-space: nowrap; }
.download-disc { display: grid; place-items: center; width: 60px; height: 60px; flex-shrink: 0; border: 3px double var(--paper); outline: 1px solid var(--ink); border-radius: 50%; background: var(--ink); }
.install-description { font-size: 17px; line-height: 1.5; max-width: 47ch; }
.game-facts { padding-left: 28px; border-left: 1px solid var(--line); font-size: 17px; line-height: 1.5; white-space: nowrap; }
.install-content { padding: 0 0 24px 78px; max-width: 950px; font-size: 16px; line-height: 1.7; }
.install-content ol { padding-left: 22px; margin: 0 0 18px; }
.install-content li { margin: 7px 0; }

@media (max-width: 1050px) {
  .page { width: calc(100% - 56px); }
  .hero { grid-template-columns: .85fr 1fr; gap: 24px; }
  .hero-copy { padding-top: 18px; }
  .desktop-break { display: none; }
  h1 { font-size: 48px; }
  .intro { font-size: 20px; }
  .hero-characters { height: 176px; }
  .hero-gas { width: 125px; height: 125px; }
  .hero-bug { width: 170px; height: 170px; }
  .video-frame { aspect-ratio: 1; }
  .play-label { font-size: 19px; padding: 12px 18px; bottom: 22px; }
  .step { grid-template-columns: 34px 1fr; gap: 10px; }
  .steps { padding-left: 0; }
  .step-number { width: 34px; height: 34px; font-size: 21px; }
  .step h2 { font-size: 23px; }
  .step p { font-size: 15px; min-height: 90px; }
  .step-photo { width: 100%; height: 135px; margin-left: 0; }
  .step-sprites { height: 147px; }
  .step-sprites img { height: 125px; }
  .install > summary { grid-template-columns: 260px 1fr; gap: 14px 24px; }
  .game-facts { grid-column: 2; border: 0; padding: 0; }
}

@media (max-width: 700px) {
  .page { width: calc(100% - 36px); }
  .header { padding: 16px 0 20px; }
  .wordmark { font-size: 23px; }
  .languages { font-size: 16px; gap: 2px; }
  .hero { display: block; padding-bottom: 22px; }
  .hero-copy { position: relative; padding: 0; }
  h1 { font-size: clamp(34px, 8.8vw, 48px); line-height: 1.08; margin-bottom: 18px; }
  .intro { font-size: 18px; line-height: 1.45; max-width: 35ch; }
  .hero-characters { height: 132px; width: 245px; margin: 3px auto 12px; justify-content: space-between; }
  .hero-gas { width: 105px; height: 105px; }
  .hero-bug { width: 133px; height: 133px; }
  .video-frame { aspect-ratio: 1.24; border-radius: 14px; }
  .play-disc { width: 76px; height: 76px; }
  .play-disc img { width: 36px; height: 36px; margin-left: 5px; }
  .play-label { font-size: 17px; bottom: 17px; padding: 11px 17px; }
  .play-label img { width: 20px; height: 20px; }
  .video-caption { text-align: right; font-size: 11px; right: 12px; top: 12px; }
  .how { padding-top: 22px; }
  .steps { grid-template-columns: 1fr; gap: 22px; }
  .step { grid-template-columns: 36px 1fr; gap: 12px; }
  .step h2 { font-size: 26px; margin-top: 1px; }
  .step p { font-size: 16px; min-height: 0; max-width: 34ch; }
  .step-photo { width: 210px; height: 120px; margin-top: 14px; }
  .step-sprites { max-width: 250px; height: 124px; margin-top: 10px; justify-content: flex-start; }
  .step-sprites img { height: 120px; width: 50%; max-width: 120px; }
  .recipe { margin-top: 20px; }
  .recipe > summary { padding: 14px 0 18px; gap: 12px; font-size: 18px; min-height: 48px; }
  .recipe-heading { gap: 6px; }
  .recipe-steps { grid-template-columns: 1fr; gap: 12px; margin-top: 16px; }
  .recipe-steps li { padding-top: 12px; }
  .install > summary { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 24px 0; }
  .install-title { font-size: 23px; gap: 14px; }
  .download-disc { width: 46px; height: 46px; }
  .download-disc img { width: 24px; height: 24px; }
  .install-description { font-size: 16px; }
  .game-facts { font-size: 15px; white-space: normal; }
  .install-content { padding: 0 0 16px; }
}

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