:root {
  color-scheme: dark;
  --bg: #081725;
  --surface: #102535;
  --text: #eef6f3;
  --muted: #a0b7c3;
  --accent: #5aebc4;
  --line: #274051;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 20px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: "Geeza Pro", Tahoma, "Segoe UI", Arial, sans-serif; line-height: 1.8; }
a { color: inherit; text-decoration: none; }
button, summary { font: inherit; }
p, h1, h2, h3 { margin: 0; }
p { color: var(--muted); }
bdi { unicode-bidi: isolate; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
.wrap { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: fixed; inset-block-start: 12px; inset-inline-start: 12px; z-index: 10; padding: 8px 16px; background: var(--accent); color: var(--bg); transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.masthead { display: flex; align-items: center; gap: 28px; min-height: 94px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: Arial, sans-serif; font-size: 19px; font-weight: 800; }
.brand-symbol { display: grid; grid-template-columns: repeat(2, 12px); gap: 3px; transform: rotate(-8deg); }
.brand-symbol i { height: 9px; background: var(--accent); border-radius: 2px; }
.brand-symbol i:last-child { opacity: .4; }
.section-nav { display: flex; gap: 26px; margin-inline-start: auto; font-size: 14px; color: var(--muted); }
.section-nav a:hover, .text-link:hover, .arena-footer a:hover { color: var(--accent); }
.header-play { display: inline-flex; align-items: center; justify-content: center; gap: 18px; padding: 10px 20px; color: var(--accent); border: 1px solid #467666; border-radius: 6px; font-size: 14px; font-weight: 700; }
.header-play:hover { background: #153c3d; }
.hero { display: grid; grid-template-columns: 1fr 310px; align-items: center; gap: 60px; padding-block: 52px 36px; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: var(--accent); font-size: 13px; font-weight: 700; }
.status-dot { display: inline-block; flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 16px #5aebc440; }
h1 { margin-block: 10px 12px; font-size: clamp(42px, 5vw, 66px); line-height: 1.4; font-weight: 800; }
.title-dot { color: var(--accent); }
.hero-lead { color: var(--text); font-size: clamp(20px, 2.2vw, 25px); line-height: 1.7; }
.hero-description { max-width: 620px; margin-block-start: 12px; font-size: 15px; }
.hero-aside { display: grid; justify-items: center; }
.brick-art { position: relative; display: grid; grid-template-columns: repeat(3, 58px); gap: 7px; height: 168px; padding-top: 10px; transform: rotate(-7deg); direction: ltr; }
.brick-art i { height: 20px; border: 1px solid #5aebc480; border-radius: 4px; background: #17493f; box-shadow: inset 0 3px 0 #5aebc420; }
.brick-art i:nth-child(3n) { background: #20485e; border-color: #64bae480; }
.brick-art i:nth-child(7) { opacity: .35; transform: translate(-7px, 5px) rotate(-12deg); }
.brick-art i:nth-child(8) { opacity: .18; }
.art-ball { position: absolute; top: 101px; left: 80px; width: 12px; height: 12px; border-radius: 50%; background: var(--text); box-shadow: 16px -20px 0 -3px #eef6f326, 30px -38px 0 -4px #eef6f316; }
.art-paddle { position: absolute; bottom: 0; left: 55px; width: 78px; height: 9px; border-radius: 8px; background: var(--accent); box-shadow: 0 0 30px #5aebc430; }
.quick-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 24px 0 0; padding: 0; list-style: none; font-size: 12px; color: var(--muted); }
.quick-facts li + li { border-inline-start: 1px solid var(--line); padding-inline-start: 12px; }
.arena { scroll-margin-top: 16px; overflow: hidden; border: 1px solid #355b68; border-radius: 12px; background: #0b1e2e; box-shadow: 0 24px 80px #0003; }
.arena-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 22px; border-bottom: 1px solid var(--line); }
.arena-heading h2 { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.arena-tag { font-size: 12px; color: var(--muted); }
.arena iframe { display: block; width: 100%; height: clamp(500px, 54vw, 620px); border: 0; background: #081725; }
.arena-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 22px; border-top: 1px solid var(--line); font-size: 12px; }
.arena-footer a { color: var(--accent); }
.section-space { padding-block: 76px; border-bottom: 1px solid var(--line); }
h2 { font-size: clamp(25px, 3vw, 34px); line-height: 1.6; }
.guide, .questions { display: grid; grid-template-columns: .85fr 1.3fr; gap: 80px; }
.section-intro h2 { margin-block: 10px 14px; }
.section-intro > p:last-of-type { max-width: 330px; font-size: 15px; }
.control-list { border-top: 1px solid var(--line); }
.control-row { display: flex; align-items: flex-start; gap: 18px; padding-block: 23px; border-bottom: 1px solid var(--line); }
.control-row:last-child { border-bottom: 0; padding-block-end: 0; }
.step-number { color: var(--accent); font: 12px/2.4 monospace; direction: ltr; padding-top: 2px; }
h3 { font-size: 18px; line-height: 1.7; }
.control-row p { margin-block-start: 7px; font-size: 14px; }
.control-symbol { margin-inline-start: auto; color: var(--muted); font-size: 24px; min-width: 28px; text-align: center; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-block-end: 28px; }
.section-heading h2 { margin-block-start: 8px; }
.section-heading > p { font-size: 14px; }
.power-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.power-card { padding: 24px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.power-icon { display: inline-grid; place-items: center; width: 42px; height: 42px; margin-block-end: 18px; border-radius: 8px; background: #5aebc414; color: var(--accent); font: 700 22px/1 Arial, sans-serif; direction: ltr; }
.power-icon.wide { background: #69bded14; color: #69bded; }
.power-icon.slow { background: #edd28b14; color: #edd28b; }
.power-icon.multi { background: #b8a3ed14; color: #b8a3ed; font-size: 11px; letter-spacing: 2px; }
.power-card p { margin-block-start: 10px; font-size: 14px; }
.text-link { display: inline-block; margin-block-start: 24px; color: var(--accent); font-size: 14px; }
.faq-list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { position: relative; padding: 20px 0; padding-inline-end: 30px; font-size: 16px; font-weight: 700; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { position: absolute; inset-inline-end: 0; content: "+"; color: var(--accent); font: 22px/1.4 Arial, sans-serif; }
details[open] summary::after { content: "−"; }
details > p { padding-block-end: 22px; padding-inline-end: 20px; font-size: 14px; }
.site-footer { padding-block: 34px 42px; }
.footer-top { display: flex; align-items: center; gap: 28px; font-size: 13px; }
.footer-top > a:last-child { margin-inline-start: auto; color: var(--muted); }
.language-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-block-start: 24px; color: var(--muted); font-size: 12px; }
.language-nav a { display: inline-flex; align-items: center; min-height: 44px; }
.language-nav a:hover, .language-nav [aria-current="page"] { color: var(--accent); }

@media (max-width: 800px) {
  .wrap { width: calc(100% - 40px); }
  .masthead { min-height: 80px; gap: 16px; }
  .section-nav { gap: 16px; }
  .hero { grid-template-columns: 1fr 210px; gap: 20px; padding-block-start: 34px; }
  .guide, .questions { grid-template-columns: 1fr; gap: 28px; }
  .section-intro > p:last-of-type { max-width: 560px; }
  .power-grid { grid-template-columns: repeat(2, 1fr); }
  .section-space { padding-block: 48px; }
}

@media (max-width: 560px) {
  .wrap { width: calc(100% - 32px); }
  .masthead { min-height: 72px; gap: 12px; }
  .brand { font-size: 16px; gap: 8px; }
  .section-nav { display: none; }
  .header-play { margin-inline-start: auto; padding: 8px 12px; gap: 10px; font-size: 12px; }
  .hero { grid-template-columns: 1fr; gap: 18px; padding-block: 28px 24px; }
  h1 { font-size: 44px; margin-block: 6px; }
  .hero-lead { font-size: 21px; }
  .hero-description { font-size: 14px; }
  .hero-aside { justify-items: start; }
  .brick-art { display: none; }
  .quick-facts { margin: 0; }
  .arena-heading { padding: 12px 14px; }
  .arena-footer { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px 14px; }
  .arena-footer a { min-height: 36px; display: flex; align-items: center; }
  .section-heading { flex-direction: column; align-items: flex-start; gap: 12px; }
  .power-grid { gap: 10px; }
  .power-card { padding: 18px 14px; }
  .power-card h3 { font-size: 16px; }
  .power-card p { font-size: 13px; }
  .control-row { gap: 12px; }
  .control-symbol { display: none; }
  .footer-top { flex-wrap: wrap; gap: 10px 18px; }
  .footer-top p { flex-basis: 100%; order: 3; }
  .language-nav { column-gap: 18px; }
}

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