:root {
  --paper: #ffffff;
  --surface: #f5f5f7;
  --surface-strong: #ededf0;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --soft: #86868b;
  --line: #e5e5ea;
  --red: #e23b3b;
  --blue: #06c;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --shell: 1160px;
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
::selection { background: #dcecff; color: var(--ink); }
:focus-visible { outline: 3px solid rgba(0, 102, 204, .45); outline-offset: 4px; }
h1, h2, h3, p { margin-top: 0; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 11px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }
.section-shell { width: min(calc(100% - 64px), var(--shell)); margin-inline: auto; }

/* Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 68px;
  padding: 0 max(32px, calc((100vw - var(--shell)) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, .86);
  border-bottom: 1px solid rgba(229, 229, 234, .8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}
.wordmark { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 750; letter-spacing: -.035em; }
.wordmark img { display: block; width: 27px; height: 27px; object-fit: contain; }
.desktop-nav { display: flex; align-items: center; gap: clamp(17px, 2.5vw, 34px); margin-left: auto; margin-right: 34px; }
.desktop-nav a, .header-cta { color: #424245; font-size: 12px; transition: color .18s ease, background .18s ease, transform .18s ease; }
.desktop-nav a:hover { color: var(--blue); }
.header-cta {
  min-height: 34px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
}
.header-cta:hover { background: #3a3a3c; transform: translateY(-1px); }
.header-cta span { font-size: 14px; }
.menu-toggle, .mobile-menu { display: none; }

/* Hero */
.hero { padding-top: 82px; padding-bottom: 90px; }
.hero-copy { max-width: 850px; margin: 0 auto; text-align: center; }
.eyebrow, .section-index { margin: 0; color: var(--soft); font: 600 10px/1.5 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.red-dot { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--red); vertical-align: 1px; }
.hero h1 {
  margin: 21px 0 18px;
  font-size: clamp(54px, 7.2vw, 92px);
  line-height: .99;
  letter-spacing: -.075em;
  font-weight: 680;
}
.hero h1 span { color: #77777d; }
.hero-description { max-width: 620px; margin: 0 auto 27px; color: var(--muted); font-size: clamp(15px, 1.45vw, 18px); line-height: 1.65; letter-spacing: -.015em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 22px; }
.button {
  min-height: 44px;
  padding: 0 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.button:hover { transform: translateY(-1px); }
.button-dark { background: var(--ink); color: #fff; border: 1px solid var(--ink); }
.button-dark:hover { background: #3a3a3c; border-color: #3a3a3c; }
.button span { font-size: 16px; font-weight: 400; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--blue); font-size: 13px; font-weight: 600; }
.text-link span { transition: transform .18s ease; }
.text-link:hover span { transform: translateX(4px); }
.compatibility { margin: 17px 0 0; color: var(--soft); font-size: 11px; letter-spacing: .005em; }
.compatibility span { margin: 0 5px; color: #c4c4c9; }

/* Browser and product preview */
.browser-stage { width: min(100%, 1080px); min-width: 0; margin: 56px auto 0; }
.browser-window {
  overflow: hidden;
  background: #fff;
  border: 1px solid #dedee3;
  border-radius: 17px;
  box-shadow: 0 28px 75px rgba(29, 29, 31, .12), 0 3px 10px rgba(29, 29, 31, .04);
}
.browser-chrome { padding: 9px 13px 0; background: #f5f5f7; border-bottom: 1px solid #e4e4e8; }
.window-dots { height: 17px; display: flex; align-items: center; gap: 6px; }
.window-dots i { width: 8px; height: 8px; display: block; border-radius: 50%; background: #c7c7cc; }
.browser-tab { height: 30px; width: 190px; display: flex; align-items: center; gap: 8px; padding: 0 10px; background: #fff; color: #66666b; font-size: 9px; border: 1px solid #e1e1e5; border-bottom: 0; border-radius: 7px 7px 0 0; }
.tab-favicon { width: 8px; height: 8px; background: #929299; border-radius: 2px; }
.tab-close { margin-left: auto; font-size: 13px; }
.tab-add { position: absolute; margin: -23px 0 0 198px; color: #77777d; font-size: 16px; }
.browser-toolbar { height: 37px; display: flex; align-items: center; gap: 12px; color: #77777d; }
.browser-control { font-size: 16px; }
.address-bar { height: 24px; flex: 1; display: flex; align-items: center; gap: 8px; padding: 0 10px; color: #77777d; background: #fff; border: 1px solid #e2e2e6; border-radius: 6px; font-size: 9px; }
.lock-mark { color: #929299; font-size: 11px; }
.toolbar-more { font-size: 18px; line-height: 1; }
.browser-content { min-height: 672px; display: grid; grid-template-columns: minmax(0, 1fr) 310px; }
.reading-page { min-width: 0; padding: 28px 30px; background: #fff; }
.reading-nav { display: flex; justify-content: space-between; color: #55555a; font: 600 8px var(--mono); letter-spacing: .1em; }
.reading-rule { height: 1px; margin: 13px 0 36px; background: #ececf0; }
.reading-kicker { margin-bottom: 12px; color: #929299; font: 8px var(--mono); letter-spacing: .07em; }
.reading-page h2 { margin-bottom: 23px; font-size: clamp(27px, 3vw, 39px); line-height: 1.04; font-weight: 620; letter-spacing: -.055em; }
.reading-art { height: 190px; position: relative; overflow: hidden; background: #e8eaf0; border-radius: 4px; }
.art-sun { position: absolute; top: 29px; right: 70px; width: 50px; height: 50px; border-radius: 50%; background: #d0d3de; }
.art-hill { position: absolute; bottom: -65px; width: 120%; height: 145px; border-radius: 50% 50% 0 0; }
.hill-one { left: -20%; background: #b9bfce; transform: rotate(-8deg); }
.hill-two { left: 25%; bottom: -90px; background: #929aaf; transform: rotate(9deg); }
.reading-copy { margin: 20px 0 14px; color: #77777d; font-size: 12px; line-height: 1.65; }
.reading-lines { display: grid; gap: 7px; }
.reading-lines i { height: 3px; background: #eeeef1; }
.reading-lines i:last-child { width: 68%; }
.browser-side-panel { min-width: 0; background: #fff; border-left: 1px solid #e4e4e8; }
.side-panel-heading { height: 38px; padding: 0 12px; display: flex; align-items: center; justify-content: space-between; color: #68686e; font-size: 9px; border-bottom: 1px solid #e8e8ec; }
.hero-game { width: 100%; height: 634px; display: block; border: 0; background: #fff; }
.browser-caption { display: flex; justify-content: space-between; margin: 14px 3px 0; color: #929299; font-size: 10px; letter-spacing: .035em; }

/* Overview */
.intro { padding-top: 108px; padding-bottom: 112px; }
.section-index { color: #8a8a91; }
.section-index span { margin: 0 6px; color: #c7c7cc; }
.intro-heading { margin-top: 31px; display: grid; grid-template-columns: 1fr .65fr; align-items: end; gap: 55px; }
.intro-heading h2, .themes-heading h2, .gameplay-copy h2, .controls-heading h2, .install-intro h2, .privacy-layout h2 {
  margin: 0;
  font-size: clamp(42px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -.065em;
  font-weight: 670;
}
.intro-heading p { max-width: 390px; margin: 0 0 5px; color: var(--muted); font-size: 16px; line-height: 1.7; }
.principles { margin-top: 55px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.principle { min-height: 190px; padding: 27px 27px 25px; background: var(--surface); border-radius: 19px; }
.principle-number { color: var(--red); font: 600 10px var(--mono); }
.principle h3 { margin: 29px 0 9px; font-size: 19px; font-weight: 650; letter-spacing: -.035em; }
.principle p { max-width: 280px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }

/* Gameplay */
.gameplay-section { padding: 105px 0; background: var(--surface); }
.gameplay-layout { display: grid; grid-template-columns: .82fr 1fr; gap: 90px; align-items: center; }
.gameplay-copy .eyebrow { margin: 38px 0 17px; color: var(--red); }
.gameplay-copy h2 { font-size: clamp(43px, 4.6vw, 60px); }
.gameplay-copy > p:not(.eyebrow) { max-width: 400px; margin: 21px 0 28px; color: var(--muted); font-size: 15px; line-height: 1.75; }
.game-facts { display: flex; gap: 42px; }
.game-facts div { display: grid; gap: 6px; }
.game-facts strong { font-size: 22px; font-weight: 670; letter-spacing: -.045em; }
.game-facts span { color: var(--soft); font-size: 9px; font-weight: 600; letter-spacing: .075em; }
.board-demo-wrap { max-width: 490px; justify-self: end; width: 100%; }
.board-demo-frame { padding: 20px; background: #fff; border: 1px solid #e8e8ec; border-radius: 26px; box-shadow: 0 12px 34px rgba(29, 29, 31, .045); }
.board-demo { display: grid; grid-template-columns: repeat(20, minmax(0, 1fr)); aspect-ratio: 1; gap: 3px; padding: 9px; background: #f5f5f7; border-radius: 15px; }
.board-demo-cell { min-width: 0; background: #e7e7eb; aspect-ratio: 1; border-radius: 3px; }
.board-demo-cell.snake { background: #424247; }
.board-demo-cell.head { background: #171719; }
.board-demo-cell.food { background: var(--red); border-radius: 50%; }
.board-demo-caption { display: flex; justify-content: space-between; margin: 13px 3px 0; color: #929299; font-size: 9px; font-weight: 600; letter-spacing: .08em; }

/* Themes */
.themes { padding-top: 108px; padding-bottom: 112px; }
.themes-heading { margin-top: 31px; display: flex; align-items: end; justify-content: space-between; gap: 50px; }
.themes-heading p { max-width: 390px; margin: 0 0 5px; color: var(--muted); font-size: 15px; line-height: 1.75; }
.theme-showcase { margin-top: 45px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.theme-preview { min-width: 0; padding: 22px 22px 19px; background: var(--surface); border: 1px solid #ededf0; border-radius: 24px; overflow: hidden; }
.theme-light { background: #f5f5f7; }
.theme-dark { background: #202023; border-color: #202023; color: #f5f5f7; }
.theme-preview-top { display: flex; justify-content: space-between; margin-bottom: 15px; color: #6e6e73; font-size: 10px; font-weight: 650; letter-spacing: .1em; }
.theme-dark .theme-preview-top { color: #c2c2c8; }
.theme-preview iframe { width: min(100%, 390px); height: 670px; margin: 0 auto; display: block; border: 1px solid #dedee3; border-radius: 10px; background: white; box-shadow: 0 8px 24px rgba(0, 0, 0, .06); }
.theme-dark iframe { border-color: #48484d; }
.theme-preview p { margin: 14px 0 0; color: #6e6e73; font-size: 12px; text-align: center; }
.theme-dark p { color: #b2b2b8; }

/* Controls */
.controls-section { padding: 105px 0 108px; background: var(--surface); }
.controls-heading { margin-top: 31px; display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.controls-heading p { max-width: 370px; margin: 0 0 5px; color: var(--muted); font-size: 15px; line-height: 1.75; }
.controls-showcase { margin-top: 43px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.control-method { min-height: 365px; padding: 26px 28px; background: #fff; border: 1px solid #e8e8ec; border-radius: 20px; }
.control-method + .control-method { border: 1px solid #e8e8ec; }
.method-title { display: flex; align-items: center; gap: 13px; }
.method-title > span { color: var(--red); font: 600 10px var(--mono); }
.method-title h3 { margin: 0; font-size: 18px; font-weight: 650; letter-spacing: -.03em; }
.keyboard-art { height: 158px; margin: 15px 0 13px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; }
.key-row { display: flex; gap: 7px; }
.key-row-top { padding-left: 54px; }
kbd { min-width: 36px; height: 37px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center; background: #f5f5f7; border: 1px solid #dedee3; border-bottom-width: 2px; border-radius: 7px; color: #343438; font: 12px var(--mono); }
.key-row-top kbd { min-width: 43px; height: 39px; }
.control-method > p { margin: 0 0 17px; color: #626268; font-size: 13px; }
.shortcut-list { display: grid; gap: 8px; max-width: 360px; }
.shortcut-list > span { display: flex; align-items: center; gap: 7px; color: #77777d; font-size: 11px; }
.shortcut-list kbd { min-width: 23px; height: 22px; padding: 0 4px; border-radius: 5px; font-size: 9px; }
.shortcut-list b { margin-left: auto; color: #55555a; font-size: 11px; font-weight: 550; }
.touch-art { height: 158px; margin: 15px 0 13px; display: flex; align-items: center; justify-content: center; gap: 54px; }
.direction-pad { width: 126px; display: grid; grid-template-columns: repeat(3, 38px); grid-template-rows: repeat(2, 38px); gap: 5px; }
.direction-pad b { display: flex; justify-content: center; align-items: center; background: #f5f5f7; border: 1px solid #dedee3; border-radius: 7px; color: #343438; font-size: 17px; font-weight: 500; }
.direction-pad i { display: block; }
.swipe-illustration { width: 95px; height: 102px; position: relative; display: flex; align-items: center; justify-content: center; border: 1px solid #dedee3; border-radius: 12px; background: #fafafc; }
.swipe-line { position: absolute; width: 45px; height: 1px; background: #76767c; transform: rotate(-35deg) translateY(-4px); }
.swipe-arrow { position: absolute; right: 15px; top: 27px; font-size: 22px; color: var(--red); }
.swipe-label { position: absolute; bottom: 14px; color: #8c8c92; font: 8px var(--mono); letter-spacing: .1em; }
.controls-note { margin: 17px 0 0; color: #86868b; font-size: 11px; }

/* Installation */
.install-section { padding-top: 108px; padding-bottom: 108px; }
.install-intro { margin-top: 31px; display: grid; grid-template-columns: 1fr .75fr; gap: 50px; align-items: end; }
.install-intro > div { max-width: 410px; }
.install-intro p { margin: 0 0 19px; color: var(--muted); font-size: 15px; line-height: 1.75; }
.install-steps { margin-top: 49px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.install-step { min-width: 0; min-height: 230px; padding: 25px; display: block; background: var(--surface); border: 1px solid #ededf0; border-radius: 19px; }
.step-number { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 23px; border-radius: 50%; background: #fff; color: var(--red); font: 10px var(--mono); }
.install-step h3 { margin: 0 0 8px; font-size: 16px; font-weight: 650; letter-spacing: -.025em; }
.install-step p { max-width: 600px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.75; }
.install-step strong { color: var(--ink); }
.install-step code, .privacy-copy code { padding: 3px 6px; background: #e8e8ed; border-radius: 5px; color: #414147; font: 10px var(--mono); }
.file-chip, .address-chip, .success-note { width: fit-content; margin-top: 14px; padding: 8px 10px; display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #e7e7eb; border-radius: 8px; color: #606067; font: 10px var(--mono); }
.file-chip span { font-size: 15px; }
.address-chip { color: #4f4f56; }
.success-note { background: transparent; border: 0; padding-left: 0; color: #65656c; font: 11px var(--sans); }
.success-note span { color: #36834b; font-size: 14px; }
.install-footnote { margin: 18px 0 0; color: #86868b; font-size: 11px; line-height: 1.7; }

/* Privacy */
.privacy-section { padding: 105px 0; background: #1d1d1f; color: #f5f5f7; }
.privacy-layout { display: grid; grid-template-columns: .85fr 1fr; gap: 100px; }
.privacy-section .section-index { color: #a1a1a6; }
.privacy-section .section-index span { color: #66666b; }
.privacy-layout h2 { margin-top: 35px; }
.privacy-copy { padding-top: 3px; }
.privacy-lead { max-width: 470px; margin: 0 0 34px; color: #f5f5f7; font-size: 20px; line-height: 1.5; letter-spacing: -.025em; }
.privacy-item { display: grid; grid-template-columns: 38px 1fr; gap: 11px; padding: 18px 0; border-top: 1px solid #3b3b3f; }
.privacy-item > span { padding-top: 2px; color: #f07878; font: 9px var(--mono); }
.privacy-item h3 { margin: 0 0 6px; color: #f5f5f7; font-size: 14px; font-weight: 650; }
.privacy-item p { max-width: 430px; margin: 0; color: #b8b8be; font-size: 12px; line-height: 1.8; }
.privacy-copy code { background: #38383d; color: #ececf0; }
.privacy-copy > .text-link { margin-top: 17px; color: #7bb8ff; }

/* Closing panel and footer */
.closing-section {
  min-height: 440px;
  margin-top: 76px;
  margin-bottom: 76px;
  padding: 82px 32px;
  text-align: center;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  background: var(--surface);
  border-radius: 28px;
}
.closing-section h2 { margin: 21px 0 14px; font-size: clamp(53px, 6.5vw, 82px); line-height: .98; letter-spacing: -.075em; font-weight: 680; }
.closing-section > p:not(.eyebrow) { margin: 0 0 25px; color: var(--muted); font-size: 15px; }
.button-light { background: #fff; color: var(--ink); border: 1px solid #d8d8de; }
.button-light:hover { background: #f0f0f3; }
.closing-note { margin-top: 17px; color: #86868b; font-size: 10px; letter-spacing: .055em; }
.site-footer { padding-top: 23px; padding-bottom: 24px; border-top: 1px solid var(--line); }
.footer-top, .footer-bottom { display: flex; align-items: center; justify-content: space-between; }
.footer-top p { margin: 0; color: #86868b; font-size: 12px; }
.footer-bottom { margin-top: 24px; padding-top: 17px; border-top: 1px solid var(--line); color: #929299; font-size: 10px; }
.footer-bottom div { display: flex; gap: 21px; }
.footer-bottom a:hover { color: var(--blue); }
.back-top { color: #65656c; }

@media (max-width: 1050px) {
  .section-shell { width: min(calc(100% - 56px), var(--shell)); }
  .site-header { padding-inline: 28px; }
  .desktop-nav { gap: 18px; margin-right: 22px; }
  .browser-content { grid-template-columns: minmax(0, 1fr) 292px; }
  .gameplay-layout, .privacy-layout { gap: 55px; }
  .theme-preview iframe { height: 650px; }
}

@media (max-width: 760px) {
  .section-shell { width: calc(100% - 40px); }
  .site-header { height: 62px; padding-inline: 20px; }
  .desktop-nav, .header-cta { display: none; }
  .menu-toggle {
    width: 36px;
    height: 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
  }
  .menu-toggle span { width: 14px; height: 1.5px; background: var(--ink); transition: transform .18s ease; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
  .mobile-menu { padding: 8px 22px 16px; display: grid; gap: 0; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
  .mobile-menu[hidden] { display: none; }
  .mobile-menu a { padding: 13px 0; border-top: 1px solid var(--line); color: #424245; font-size: 14px; }
  .hero { padding-top: 56px; padding-bottom: 64px; }
  .hero h1 { margin-top: 18px; font-size: clamp(48px, 10.4vw, 68px); }
  .hero-description { max-width: 540px; font-size: 15px; }
  .browser-stage { margin-top: 39px; }
  .browser-content { min-height: 670px; grid-template-columns: minmax(0, 1fr) 260px; }
  .reading-page { padding: 21px 17px; }
  .reading-art { height: 145px; }
  .reading-page h2 { font-size: 27px; }
  .hero-game { height: 632px; }
  .intro, .themes, .install-section { padding-top: 78px; padding-bottom: 80px; }
  .intro-heading, .install-intro { grid-template-columns: 1fr; gap: 20px; }
  .intro-heading h2, .themes-heading h2, .gameplay-copy h2, .controls-heading h2, .install-intro h2, .privacy-layout h2 { font-size: 48px; }
  .intro-heading p { max-width: 520px; }
  .principles { margin-top: 37px; grid-template-columns: 1fr; gap: 10px; }
  .principle { min-height: auto; padding: 22px 23px; }
  .principle h3 { margin: 14px 0 7px; }
  .gameplay-section, .controls-section, .privacy-section { padding: 78px 0; }
  .gameplay-layout { grid-template-columns: 1fr; gap: 38px; }
  .gameplay-copy .eyebrow { margin-top: 27px; }
  .board-demo-wrap { justify-self: stretch; max-width: 500px; }
  .themes-heading, .controls-heading { align-items: start; flex-direction: column; gap: 17px; }
  .theme-showcase { grid-template-columns: 1fr; gap: 14px; }
  .theme-preview iframe { height: 650px; }
  .controls-showcase { grid-template-columns: 1fr; gap: 12px; }
  .control-method { min-height: auto; padding: 22px 23px 25px; }
  .control-method + .control-method { padding: 22px 23px 25px; }
  .keyboard-art, .touch-art { height: 145px; }
  .install-intro > div { max-width: 540px; }
  .install-steps { margin-top: 35px; grid-template-columns: 1fr; gap: 10px; }
  .install-step { min-height: auto; padding: 21px 22px 23px; }
  .step-number { margin-bottom: 13px; }
  .privacy-layout { grid-template-columns: 1fr; gap: 37px; }
  .privacy-layout h2 { margin-top: 26px; }
  .privacy-lead { font-size: 18px; }
  .closing-section { min-height: 385px; margin-top: 45px; margin-bottom: 52px; padding: 65px 20px; border-radius: 22px; }
  .closing-section h2 { font-size: 59px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 17px; }
  .footer-bottom div { flex-wrap: wrap; }
}

@media (max-width: 520px) {
  .section-shell { width: calc(100% - 32px); }
  .hero { padding-top: 49px; padding-bottom: 54px; }
  .hero h1 { font-size: clamp(44px, 12vw, 58px); }
  .hero-description { font-size: 14px; line-height: 1.65; }
  .hero-actions { gap: 15px; }
  .compatibility { font-size: 10px; line-height: 1.6; }
  .browser-stage { margin-top: 31px; }
  .browser-window { max-width: 380px; margin-inline: auto; border-radius: 14px; }
  .browser-content { min-height: 0; grid-template-columns: 1fr; }
  .reading-page { display: none; }
  .browser-side-panel { border-left: 0; }
  .side-panel-heading { height: 34px; }
  .hero-game { height: 665px; }
  .browser-caption { max-width: 380px; margin-inline: auto; font-size: 8px; }
  .intro, .themes, .install-section { padding-top: 67px; padding-bottom: 69px; }
  .intro-heading h2, .themes-heading h2, .gameplay-copy h2, .controls-heading h2, .install-intro h2, .privacy-layout h2 { font-size: 43px; }
  .intro-heading p, .themes-heading p, .controls-heading p { font-size: 14px; }
  .gameplay-section, .controls-section, .privacy-section { padding: 67px 0; }
  .gameplay-copy > p:not(.eyebrow) { font-size: 14px; }
  .game-facts { gap: 28px; }
  .board-demo-frame { padding: 12px; border-radius: 19px; }
  .board-demo { gap: 2px; padding: 6px; }
  .theme-preview { padding: 15px 12px 14px; border-radius: 19px; }
  .theme-preview iframe { height: 640px; }
  .touch-art { gap: 30px; }
  .direction-pad { transform: scale(.92); }
  .install-step { padding: 19px 18px 21px; }
  .privacy-lead { font-size: 17px; }
  .closing-section { width: calc(100% - 24px); min-height: 350px; }
  .closing-section h2 { font-size: 51px; }
  .footer-top { align-items: flex-start; flex-direction: column; gap: 12px; }
  .footer-bottom div { gap: 14px; }
}

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