/* skittertail.com — палитра игры (docs/ART.md), шрифт Rubik из игры. Логические свойства — для арабского (RTL). */
@font-face { font-family: Rubik; src: url(fonts/rubik-latin-500.woff2) format('woff2'); font-weight: 500; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2190-21FF, U+20AC, U+2122, U+2212, U+2215; }
@font-face { font-family: Rubik; src: url(fonts/rubik-latin-700.woff2) format('woff2'); font-weight: 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2190-21FF, U+20AC, U+2122, U+2212, U+2215; }
@font-face { font-family: Rubik; src: url(fonts/rubik-latin-900.woff2) format('woff2'); font-weight: 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2190-21FF, U+20AC, U+2122, U+2212, U+2215; }
@font-face { font-family: Rubik; src: url(fonts/rubik-cyrillic-500.woff2) format('woff2'); font-weight: 500; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Rubik; src: url(fonts/rubik-cyrillic-700.woff2) format('woff2'); font-weight: 700; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Rubik; src: url(fonts/rubik-cyrillic-900.woff2) format('woff2'); font-weight: 900; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Rubik; src: url(fonts/rubik-arabic-500.woff2) format('woff2'); font-weight: 500; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: Rubik; src: url(fonts/rubik-arabic-700.woff2) format('woff2'); font-weight: 700; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: Rubik; src: url(fonts/rubik-arabic-900.woff2) format('woff2'); font-weight: 900; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: MPlusJP; src: url(fonts/mplus-jp-500.woff2) format('woff2'); font-weight: 400 600; font-display: swap; }
@font-face { font-family: MPlusJP; src: url(fonts/mplus-jp-800.woff2) format('woff2'); font-weight: 700 900; font-display: swap; }

:root {
  --ink: #1D1B3A; --ink-2: #24224a; --ink-3: #2E2B5E; --line: rgba(255, 244, 220, .12);
  --cream: #FFF4DC; --muted: rgba(255, 244, 220, .74);
  --lime: #B6F24A; --lime-d: #6E9E1C; --gold: #FFC83D; --coral: #FF4D5A; --teal: #3DE0C8; --violet: #7A5CFF; --peach: #FF9E6B;
  --r: 20px; --wrap: 1200px; --gut: clamp(16px, 4vw, 40px);
  --font: Rubik, system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: dark;
}
:lang(ja) { --font: Rubik, MPlusJP, 'Hiragino Sans', 'Yu Gothic', sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--ink); color: var(--cream); font: 500 17px/1.6 var(--font); overflow-x: clip; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0; font-weight: 900; letter-spacing: -.01em; }
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3, :lang(ar) h1, :lang(ar) h2, :lang(ar) h3 { letter-spacing: 0; line-height: 1.35; }
p { margin: 0; }
.wrap { width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; background: var(--lime); color: var(--ink); padding: 10px 14px; border-radius: 10px; font-weight: 700; z-index: 20; }
.skip:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* шапка */
.bar { position: sticky; top: 0; z-index: 10; background: rgba(29, 27, 58, .94); border-bottom: 1px solid var(--line); }
.bar .wrap { display: flex; align-items: center; gap: 18px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; font-size: 20px; letter-spacing: -.01em; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.nav { display: flex; gap: 4px; margin-inline-start: auto; }
.nav a { text-decoration: none; color: var(--muted); padding: 8px 12px; border-radius: 999px; font-size: 15px; font-weight: 700; }
.nav a:hover { color: var(--cream); background: var(--ink-3); }
.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 15px; font-weight: 700; color: var(--muted); min-height: 40px; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { color: var(--cream); border-color: rgba(255, 244, 220, .3); }
.lang svg { width: 18px; height: 18px; }
.lang ul { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); margin: 0; padding: 6px; list-style: none; background: var(--ink-2); border: 1px solid var(--line); border-radius: 14px; min-width: 170px; box-shadow: 0 18px 40px rgba(0, 0, 0, .35); }
.lang li a { display: block; padding: 9px 12px; border-radius: 10px; text-decoration: none; font-weight: 700; }
.lang li a:hover { background: var(--ink-3); }
.lang li a[aria-current] { color: var(--lime); }
.bar .btn { padding: 9px 18px; font-size: 15px; box-shadow: 0 4px 0 var(--lime-d); }

/* кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 13px 26px; border-radius: 999px; font: 900 18px/1.1 var(--font); text-decoration: none; border: 0; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-main { background: var(--lime); color: var(--ink); box-shadow: 0 6px 0 var(--lime-d); }
.btn-main:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--lime-d); }
.btn-main:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--lime-d); }
.btn-alt { color: var(--cream); background: rgba(255, 244, 220, .08); box-shadow: inset 0 0 0 2px rgba(255, 244, 220, .32); }
.btn-alt:hover { background: rgba(255, 244, 220, .16); }

/* первый экран */
.hero { position: relative; }
.hero-grid { display: grid; }
.hero-art { order: -1; margin-inline: calc(-1 * var(--gut)); }
.hero-art img { width: 100%; height: auto; aspect-ratio: 1672 / 941; object-fit: cover; }
.hero-body { padding: 22px 0 8px; display: grid; gap: 18px; align-content: center; }
.hero h1 { font-size: clamp(30px, 7.6vw, 60px); max-width: 15ch; }
:lang(ja) .hero h1, :lang(ar) .hero h1 { max-width: 18ch; }
.hero .lead { font-size: clamp(17px, 2.2vw, 21px); color: var(--muted); max-width: 46ch; }
.cta { display: flex; flex-wrap: wrap; gap: 14px 16px; align-items: center; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 0; padding: 0; list-style: none; }
.facts li { padding: 6px 12px; border-radius: 999px; background: var(--ink-3); font-size: 14px; font-weight: 700; color: var(--cream); }
.facts li:last-child { background: rgba(182, 242, 74, .14); color: var(--lime); }
@media (min-width: 900px) {
  .hero { padding: clamp(28px, 5vw, 64px) 0 0;
    background: radial-gradient(60% 80% at 78% 40%, rgba(122, 92, 255, .28) 0, rgba(29, 27, 58, 0) 70%); }
  [dir=rtl] .hero { background: radial-gradient(60% 80% at 22% 40%, rgba(122, 92, 255, .28) 0, rgba(29, 27, 58, 0) 70%); }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr); gap: clamp(32px, 4vw, 56px); align-items: center; }
  .hero-art { order: 0; margin: 0; }
  .hero-art img { aspect-ratio: 927 / 941; border-radius: 32px; box-shadow: 0 0 0 3px rgba(182, 242, 74, .28), 0 30px 70px rgba(10, 8, 30, .55); }
  .hero-body { padding: 0; }
  .hero h1 { font-size: clamp(38px, 4.4vw, 60px); }
}

/* секции */
.sec { padding: clamp(56px, 9vw, 104px) 0 0; }
.sec-head { display: grid; gap: 12px; margin-bottom: 28px; max-width: 62ch; }
.sec h2 { font-size: clamp(28px, 4.6vw, 44px); }
.sec-head p { color: var(--muted); font-size: 18px; }

/* приёмы */
.moves { display: grid; gap: 28px; align-items: start; }
.clip { margin: 0; border-radius: var(--r); overflow: hidden; background: #000; box-shadow: 0 0 0 2px rgba(182, 242, 74, .35), 0 24px 60px rgba(0, 0, 0, .4); }
.clip video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.clip figcaption { padding: 10px 16px; font-size: 14px; color: var(--muted); background: var(--ink-2); }
.move-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.move { display: grid; grid-template-columns: 48px 1fr; gap: 4px 16px; padding: 16px 18px; border-radius: 16px; background: var(--ink-2); border: 1px solid var(--line); }
.move svg { grid-row: span 3; width: 48px; height: 48px; padding: 10px; border-radius: 14px; background: rgba(182, 242, 74, .13); color: var(--lime); }
.move h3 { font-size: 19px; }
.move p { color: var(--muted); font-size: 16px; }
.move kbd { justify-self: start; font: 700 13px/1 var(--font); padding: 6px 9px; border-radius: 8px; background: var(--ink); border: 1px solid var(--line); color: var(--cream); margin-top: 4px; }
@media (min-width: 960px) { .moves { grid-template-columns: 1.25fr 1fr; gap: 36px; } }

/* миры */
.worlds { display: grid; grid-auto-flow: column; grid-auto-columns: min(84%, 380px); gap: 16px; margin: 0; padding: 0 0 12px; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; }
.world { scroll-snap-align: start; border-radius: var(--r); overflow: hidden; background: var(--ink-2); border: 1px solid var(--line); display: flex; flex-direction: column; }
.world img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.world div { padding: 16px 18px 20px; display: grid; gap: 8px; border-top: 4px solid var(--c); flex: 1; align-content: start; }
.world h3 { font-size: 21px; }
.world p { color: var(--muted); font-size: 16px; }
.world span { font-size: 13px; font-weight: 700; color: var(--c); text-transform: uppercase; letter-spacing: .06em; }
:lang(ja) .world span, :lang(ar) .world span { text-transform: none; letter-spacing: 0; }
@media (min-width: 900px) {
  .worlds { grid-auto-flow: row; grid-template-columns: repeat(6, 1fr); overflow: visible; padding: 0; }
  .world { grid-column: span 2; }
  .world:nth-child(-n+2) { grid-column: span 3; }
}

/* что в игре */
.features { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.feat { display: grid; grid-template-columns: 44px 1fr; gap: 2px 14px; padding: 18px; border-radius: 16px; background: var(--ink-2); border: 1px solid var(--line); }
.feat svg { grid-row: span 2; width: 44px; height: 44px; padding: 9px; border-radius: 12px; background: rgba(255, 200, 61, .14); color: var(--gold); }
.feat h3 { font-size: 18px; }
.feat p { color: var(--muted); font-size: 15px; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .features { grid-template-columns: repeat(4, 1fr); } .feat { grid-template-columns: 1fr; } .feat svg { grid-row: auto; margin-bottom: 8px; } }

/* скриншоты */
.shots { display: grid; grid-auto-flow: column; grid-auto-columns: min(86%, 520px); gap: 16px; margin: 0; padding: 0 0 12px; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; }
.shots li { scroll-snap-align: start; }
.shots a { display: block; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.shots img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .25s ease; }
.shots a:hover img { transform: scale(1.03); }
@media (min-width: 900px) { .shots { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; padding: 0; } }

/* скачать */
.get { margin-top: clamp(56px, 9vw, 104px); border-radius: 28px; padding: clamp(24px, 5vw, 48px); background: radial-gradient(120% 140% at 0% 0%, #4A2E8F 0, var(--ink-3) 45%, var(--ink-2) 100%); border: 1px solid var(--line); display: grid; gap: 22px; align-items: center; }
[dir=rtl] .get { background: radial-gradient(120% 140% at 100% 0%, #4A2E8F 0, var(--ink-3) 45%, var(--ink-2) 100%); }
.get img { width: 112px; height: 112px; border-radius: 26px; box-shadow: 0 14px 30px rgba(0, 0, 0, .35); }
.get-body { display: grid; gap: 12px; }
.get h2 { font-size: clamp(28px, 4.4vw, 42px); }
.get p { color: var(--muted); }
.get .note { font-size: 14px; }
@media (min-width: 760px) { .get { grid-template-columns: auto 1fr; gap: 32px; } .get img { width: 148px; height: 148px; border-radius: 34px; } }

/* вопросы */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { border-radius: 16px; background: var(--ink-2); border: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 56px 18px 20px; font-weight: 700; font-size: 18px; position: relative; }
[dir=rtl] .faq summary { padding: 18px 20px 18px 56px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; inset-inline-end: 20px; top: 50%; translate: 0 -50%; font-size: 26px; font-weight: 500; color: var(--lime); transition: rotate .2s ease; }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { padding: 0 20px 18px; color: var(--muted); }

/* подвал */
.foot { margin-top: clamp(56px, 9vw, 104px); border-top: 1px solid var(--line); padding: 32px 0 40px; color: var(--muted); font-size: 15px; }
.foot .wrap { display: grid; gap: 18px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--cream); text-decoration: underline; }
.foot .langs { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.foot .langs a[aria-current] { color: var(--lime); }

/* текстовые страницы */
.doc { padding: clamp(36px, 6vw, 72px) 0 0; max-width: 760px; }
.doc h1 { font-size: clamp(32px, 5vw, 48px); margin-bottom: 10px; }
.doc .date { color: var(--muted); margin-bottom: 26px; }
.doc h2 { font-size: 22px; margin: 30px 0 10px; }
.doc p { color: var(--muted); }
.doc p + p { margin-top: 12px; }
.doc a { color: var(--lime); }
.nf { min-height: 60vh; display: grid; place-content: center; text-align: center; gap: 18px; padding: 48px 0; }
.nf img { width: 140px; height: 140px; border-radius: 32px; margin: 0 auto; }
.nf h1 { font-size: clamp(30px, 6vw, 48px); }
.nf p { color: var(--muted); }

@media (max-width: 899px) { .nav { display: none; } .lang { margin-inline-start: auto; } }
@media (max-width: 420px) { .bar .btn { padding: 9px 14px; } .brand span { display: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .shots img, .faq summary::after { transition: none; }
}
