/* ---- src/styles.css ---- */
/* dance.abso.live (AbsoDance) - one stylesheet for every page (the game's own look is
   src/game.css, glued after this one by the build). Phone first: 375 px is the design
   width, the bottom bar carries four sections and the game - the round button in the
   middle; from 960 px the header does. The family's look (C:\dev\Absolute\docs\brand.md):
   ink bands, warm paper, rounded 24 px cards with a thick ink edge, numbers like race bibs,
   Unbounded for titles and Onest for text, all served by the site itself. AbsoDance's
   accent - «Фуэте» #FF9FEA, always with ink text on it; its deep shade #990186 for text
   and links on light grounds (7:1). */

@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/unbounded-cyrillic-700-normal.fdc2a84527.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/unbounded-latin-700-normal.477fa23002.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 800; font-display: swap; src: url(/assets/fonts/unbounded-cyrillic-800-normal.a535053f07.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 800; font-display: swap; src: url(/assets/fonts/unbounded-latin-800-normal.fe6d4ea7ed.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 900; font-display: swap; src: url(/assets/fonts/unbounded-cyrillic-900-normal.47cf6520d0.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 900; font-display: swap; src: url(/assets/fonts/unbounded-latin-900-normal.d84ca6bdf9.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/onest-cyrillic-400-normal.51adb4c8c5.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/onest-latin-400-normal.93dfb945d2.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/onest-cyrillic-500-normal.a345dcbda6.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/onest-latin-500-normal.83c1e16166.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/onest-cyrillic-600-normal.73984d20ad.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/onest-latin-600-normal.a56e6d2dcc.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/onest-cyrillic-700-normal.0fcb8fa256.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/onest-latin-700-normal.d48e1aee80.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ink: #0B0C0F;
  --ink-2: #17181D;
  --ink-3: #24262D;
  --paper: #F5F4EE;
  --paper-2: #ECEAE1;
  --card: #FFFFFF;
  --accent: #FF9FEA;
  --accent-hi: #FFC2F1;
  --accent-lo: #F57FDB;
  --deep: #990186;
  --gold: #FFD666;
  --flame: #FF4F1F;
  --ok: #1F9A57;
  --line: rgba(11, 12, 15, .12);
  --line-2: rgba(11, 12, 15, .22);
  --muted: #5A5C66;
  --on-ink: #F5F4EE;
  --on-ink-2: rgba(245, 244, 238, .72);
  --font-head: 'Unbounded', system-ui, sans-serif;
  --font-text: 'Onest', system-ui, sans-serif;
  --r: 24px;
  --r-sm: 14px;
  --gutter: 16px;
  --tabbar: 64px;
  --wm-pin: var(--on-ink);
  --wm-accent: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 76px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.55 var(--font-text); padding-bottom: calc(var(--tabbar) + env(safe-area-inset-bottom)); overflow-x: hidden; }
img, svg { max-width: 100%; }
a { color: var(--deep); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--deep); outline-offset: 2px; border-radius: 6px; }
.band-ink :focus-visible, .hero :focus-visible, .top :focus-visible, .foot :focus-visible, .tabbar :focus-visible, .strip :focus-visible { outline-color: var(--accent); }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 800; letter-spacing: -.03em; line-height: 1.12; margin: 0 0 .5em; overflow-wrap: break-word; hyphens: auto; }
h1 { font-size: 2rem; font-weight: 900; letter-spacing: -.045em; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.08rem; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
b, strong { font-weight: 700; }
small { font-size: .82em; }
[hidden] { display: none !important; }
button { font-family: inherit; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }
.prose { max-width: 800px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 100; font-weight: 700; }
.skip:focus { left: 8px; }
.mark { background: linear-gradient(180deg, var(--accent-hi) 0%, var(--accent) 55%, var(--accent-lo) 100%); color: var(--ink); padding: 0 .14em; border-radius: .14em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.eyebrow { font: 700 .72rem/1.3 var(--font-head); letter-spacing: .1em; text-transform: uppercase; color: var(--deep); margin: 0 0 .9em; }
.arr { display: inline-block; transition: transform .15s; }
a:hover .arr { transform: translateX(2px); }
mark.fill { background: #FFE0D6; color: var(--ink); border: 1px dashed var(--flame); padding: 0 .3em; border-radius: 4px; }

/* ---------------------------------------------------------------- the group's band */
.strip { background: #000; color: var(--on-ink-2); font-size: .76rem; }
.strip-in { display: flex; align-items: center; gap: 10px; min-height: 30px; }
.strip-dots { display: flex; gap: 3px; flex: none; }
.strip-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--c); display: block; }
.strip-dots i:nth-child(n+12) { display: none; }
.strip-text { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.strip-text b { color: var(--on-ink); font-weight: 600; }
.strip-more { display: none; }
.strip a { color: var(--on-ink); text-decoration: none; white-space: nowrap; }

/* ---------------------------------------------------------------- header */
.top { position: sticky; top: 0; z-index: 40; background: var(--ink); color: var(--on-ink); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.top-in { display: flex; align-items: center; gap: 16px; min-height: 58px; }
.brand { color: var(--on-ink); text-decoration: none; display: flex; align-items: center; }
.wordmark { display: inline-flex; align-items: center; font: 900 1.28rem/1 var(--font-head); letter-spacing: -.05em; transform: skewX(-10deg); white-space: nowrap; }
.wm-pin { height: 1.08em; width: auto; margin: 0 .03em; transform: translateY(-.02em); }
.wm-dance { display: inline-flex; }
.wm-dance i { font-style: normal; display: inline-block; }
.wm-dance.is-step i { animation: wm-step .5s ease-out both; animation-delay: calc(var(--i) * 90ms + 200ms); }
@keyframes wm-step { 0% { transform: translateY(0); } 40% { transform: translateY(-.28em) rotate(-6deg); } 70% { transform: translateY(.04em); } 100% { transform: none; } }
.nav { display: none; }
.top-install { margin-left: auto; }

/* ---------------------------------------------------------------- the bottom bar: four sections and the game */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; background: var(--ink); border-top: 1px solid rgba(255, 255, 255, .1); padding-bottom: env(safe-area-inset-bottom); }
.tabbar > a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: var(--tabbar); color: var(--on-ink-2); text-decoration: none; font: 600 .7rem/1.1 var(--font-text); letter-spacing: .01em; }
.tabbar .ic { width: 23px; height: 23px; }
.tabbar > a[aria-current='page'] { color: var(--accent); }
.tabbar .tab-play { position: relative; justify-content: flex-end; padding-bottom: 9px; color: var(--accent); }
.tab-play-c { position: absolute; top: -22px; left: 50%; transform: translateX(-50%); width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); border: 3px solid var(--ink); box-shadow: 0 6px 18px rgba(255, 159, 234, .45); transition: transform .15s; }
.tab-play:active .tab-play-c { transform: translateX(-50%) scale(.94); }
.tab-play-c .play-mk { width: 24px; height: 33px; }
.tab-play[aria-current='page'] .tab-play-c { background: var(--gold); box-shadow: 0 6px 18px rgba(255, 214, 102, .45); }
.tab-play[aria-current='page'] { color: var(--gold); }
@media (prefers-reduced-motion: no-preference) {
  .tab-play-c::after { content: ''; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; animation: tab-ping 3.2s ease-out infinite 1.5s; }
}
@keyframes tab-ping { 0% { opacity: .7; transform: scale(1); } 60%, 100% { opacity: 0; transform: scale(1.45); } }

/* ---------------------------------------------------------------- buttons, chips */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 11px 20px; border-radius: 999px; border: 2px solid var(--ink); font: 700 .86rem/1.2 var(--font-head); letter-spacing: -.01em; text-decoration: none; cursor: pointer; background: transparent; color: var(--ink); transition: transform .08s, background .15s, box-shadow .15s; -webkit-tap-highlight-color: transparent; }
.btn:hover { text-decoration: none; box-shadow: 0 3px 0 var(--ink); transform: translateY(-1px); }
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn .ic { width: 18px; height: 18px; flex: none; }
.btn-accent { background: linear-gradient(180deg, var(--accent-hi) 0%, var(--accent) 55%, var(--accent-lo) 100%); color: var(--ink); }
.btn-ink { background: var(--ink); color: var(--on-ink); }
.btn-line { background: var(--card); }
.btn-ghost { border-color: transparent; text-decoration: underline; text-underline-offset: .2em; font-family: var(--font-text); font-weight: 600; }
.btn-ghost:hover { box-shadow: none; }
.btn-sm { min-height: 38px; padding: 7px 14px; font-size: .78rem; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; }
.hero .btn-line, .band-ink .btn-line, .foot .btn-line { background: transparent; color: var(--on-ink); border-color: var(--on-ink); }
.hero .btn:hover, .band-ink .btn:hover { box-shadow: 0 3px 0 var(--accent); }
.band-ink .btn-ghost { color: var(--on-ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--card); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .86rem; }
.chip:hover { background: var(--accent); }
.chip-accent { background: var(--accent); }
.chip-18 { padding: 1px 7px; border-radius: 999px; background: var(--flame); color: var(--ink); font-size: .74rem; font-weight: 700; }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; background-color: var(--ink); color: var(--on-ink); overflow: hidden;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 159, 234, .28) 1.2px, transparent 1.8px);
  background-size: 22px 22px; background-position: right top; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink) 30%, rgba(11, 12, 15, .84) 65%, rgba(11, 12, 15, .55)); pointer-events: none; }
.hero > .wrap { position: relative; z-index: 1; }
.hero-page { padding: 34px 0; }
.hero-home { padding: 30px 0 40px; }
.hero .eyebrow { color: var(--accent); }
.hero .lead { font-size: 1.06rem; color: var(--on-ink-2); max-width: 46em; margin: 0; }
.hero h1 { margin-bottom: .45em; }
.hero-simple { padding: 64px 0; }
.hero a:not(.btn) { color: var(--accent); }
.hero-grid { display: grid; gap: 22px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 22px 0 0; }
.tags span { border: 1px solid rgba(245, 244, 238, .25); border-radius: 999px; padding: 3px 10px; font-size: .78rem; color: var(--on-ink-2); }
.hero-art { margin: 0; max-width: 360px; justify-self: center; width: 100%; }
.hero-art figcaption { font-size: .76rem; color: var(--on-ink-2); text-align: center; margin-top: 6px; }
.dance-art { display: block; width: 100%; height: auto; }
.da-floor { fill: #1B1510; stroke: rgba(245, 244, 238, .2); stroke-width: 1.5; }
.da-l { fill: none; stroke: rgba(245, 244, 238, .55); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.da-f { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: no-preference) {
  .hero-art .da-l, .hero-art .da-f { stroke-dasharray: 9000; stroke-dashoffset: 9000; animation: da-draw 9s ease-out forwards .3s; }
  .hero-art .da-f { animation-delay: .5s; }
}
@keyframes da-draw { to { stroke-dashoffset: 0; } }

/* ---------------------------------------------------------------- bands, section heads, tiles */
.band { padding: 40px 0; }
.band-paper { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-ink { background: var(--ink); color: var(--on-ink); }
.band-ink .eyebrow { color: var(--accent); }
.band-ink .lead { color: var(--on-ink-2); }
.s-head { max-width: 760px; margin: 0 0 22px; }
.s-lead { color: var(--muted); font-size: 1.02rem; margin: 0; }
.b-h2 { font-size: 1.3rem; margin-top: 1.6em; }
.b-h2:first-child { margin-top: 0; }
.b-list { padding-left: 1.2em; margin: 0 0 1.2em; }
.b-list li { margin: 0 0 .55em; }
.b-ol { padding-left: 1.4em; }
.tiles { display: grid; gap: 12px; }
.tile { position: relative; display: flex; flex-direction: column; padding: 18px 18px 16px; border-radius: var(--r); border: 2px solid var(--ink); background: var(--card); color: var(--ink); text-decoration: none; transition: transform .12s, box-shadow .12s; }
.tile:hover { transform: translateY(-2px); box-shadow: 0 5px 0 var(--ink); }
.tile-n { font: 900 .82rem/1 var(--font-head); color: var(--deep); letter-spacing: -.02em; }
.tile-ic { position: absolute; top: 16px; right: 16px; width: 26px; height: 26px; color: var(--deep); }
.tile h3 { margin: 10px 0 6px; }
.tile p { color: var(--muted); margin: 0 0 12px; font-size: .94rem; }
.tile-cta { margin-top: auto; font: 700 .8rem var(--font-head); color: var(--deep); }
.small-note { color: var(--muted); font-size: .88rem; margin-top: 18px; }

/* ---------------------------------------------------------------- steps, rules, notes, faq, tables */
.steps { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 14px; }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: start; }
.step-n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); border: 2px solid var(--ink); font: 900 .86rem var(--font-head); }
.steps h3 { margin: 6px 0 6px; }
.steps p { margin: 0 0 .6em; }
.rules { display: grid; gap: 12px; }
.rule { padding: 16px; border-radius: var(--r); border: 2px solid var(--ink); background: var(--card); }
.band-paper .rule { background: var(--paper); }
.rule h3 { margin: 8px 0 4px; }
.rule p { margin: 0; color: var(--muted); }
.note { border-radius: var(--r-sm); padding: 14px 16px; margin: 18px 0; background: #FFF4FC; border: 1.5px solid var(--accent); }
.note p:last-child { margin-bottom: 0; }
.note-t { font: 700 .86rem var(--font-head); margin: 0 0 6px; }
.faq details { border-bottom: 1px solid var(--line-2); padding: 12px 0; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: '+'; font: 800 1.1rem/1 var(--font-head); color: var(--deep); }
.faq details[open] summary::after { content: '−'; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { margin: 10px 0 0; color: var(--ink-3); }
.table-wrap, .lp-tables { overflow-x: auto; }
.lp-tables { display: grid; gap: 14px; }
.tbl { border-collapse: collapse; width: 100%; font-size: .94rem; background: var(--card); border-radius: var(--r-sm); overflow: hidden; }
.tbl caption { text-align: left; font: 700 .86rem var(--font-head); padding: 0 0 8px; }
.tbl th, .tbl td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl thead th { background: var(--ink); color: var(--on-ink); font-size: .78rem; font-weight: 600; }
.tbl tbody th { font: 800 .9rem var(--font-head); color: var(--deep); width: 64px; }
.src { font-size: .82rem; color: var(--muted); }

/* ---------------------------------------------------------------- checklists */
.check { border: 2px solid var(--ink); border-radius: var(--r); padding: 16px; background: var(--card); margin: 18px 0; }
.check-t { font: 800 1rem var(--font-head); margin: 0 0 10px; }
.check ul { list-style: none; margin: 0; padding: 0; }
.check li { padding: 6px 0; border-bottom: 1px dashed var(--line-2); }
.check label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--deep); flex: none; }
.check input:checked + span { text-decoration: line-through; color: var(--muted); }
.check-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.check-note { font-size: .78rem; color: var(--muted); }

/* ---------------------------------------------------------------- the home page's game band */
.band-game { background-image: radial-gradient(circle at 1px 1px, rgba(255, 214, 102, .18) 1.2px, transparent 1.8px); background-size: 22px 22px; }
.game-promo { display: grid; gap: 24px; align-items: center; }
.game-promo h2 { font-size: 2rem; font-weight: 900; }
.g-facts { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.g-facts li { border: 1px solid rgba(255, 159, 234, .45); color: var(--accent); border-radius: 999px; padding: 3px 11px; font-size: .8rem; }
.game-shot { position: relative; display: block; max-width: 300px; width: 100%; justify-self: center; border-radius: 28px; overflow: hidden; border: 2px solid rgba(255, 159, 234, .5); background: #0F1013; transition: transform .15s; }
.game-shot:hover { transform: translateY(-3px) rotate(-1deg); }
.game-shot-play { position: absolute; right: 14px; bottom: 14px; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--ink); box-shadow: 0 6px 16px rgba(0, 0, 0, .4); }
.game-shot-play .ic { width: 26px; height: 26px; fill: currentColor; }

/* ---------------------------------------------------------------- myths */
.myths { display: grid; gap: 12px; }
.myth { border: 2px solid var(--ink); border-radius: var(--r); background: var(--card); padding: 16px; }
.myth summary { cursor: pointer; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.myth summary::-webkit-details-marker { display: none; }
.myth-q { font: 800 1.05rem/1.25 var(--font-head); letter-spacing: -.02em; }
.myth-open { align-self: flex-start; font-size: .78rem; font-weight: 700; color: var(--deep); border: 1.5px solid var(--deep); border-radius: 999px; padding: 2px 10px; }
.myth[open] .myth-open { display: none; }
.myth-v { display: inline-block; font: 800 .74rem/1 var(--font-head); letter-spacing: .08em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; margin: 10px 0 8px; border: 2px solid var(--ink); }
.myth-myth .myth-v { background: var(--ink); color: var(--on-ink); }
.myth-true .myth-v { background: #B9F5CF; }
.myth-half .myth-v { background: var(--gold); }
.myth-legend .myth-v { background: var(--accent); }
.myth-full { padding: 22px 0; border-bottom: 1px solid var(--line-2); }
.myth-full:first-child { padding-top: 0; }
.myth-full h2 { font-size: 1.22rem; margin-bottom: 4px; }
.myth-num { font: 900 .82rem var(--font-head); color: var(--deep); margin: 0 0 6px; }
.quiz { border: 2px solid var(--ink); border-radius: var(--r); padding: 20px; background: var(--card); transition: background .2s; }
.quiz-q { font: 800 1.3rem/1.25 var(--font-head); letter-spacing: -.02em; margin: 0; min-height: 2.5em; }
.quiz-out { margin: 14px 0 0; min-height: 1.5em; }
.quiz.is-right { background: #E9FBEF; }
.quiz.is-wrong { background: #FFF1F9; }

/* ---------------------------------------------------------------- jokes and the dictionary */
.joke-band { display: grid; }
.joke-box { max-width: 760px; }
.joke { font: 800 1.25rem/1.35 var(--font-head); letter-spacing: -.02em; margin: 0; }
.joke-big { font-size: 1.5rem; }
.joke.is-in { animation: joke-in .35s ease-out; }
@keyframes joke-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.jokes { margin: 0; padding-left: 1.6em; display: grid; gap: 10px; }
.jokes li { padding-left: 4px; }
.jokes li::marker { font: 800 .8rem var(--font-head); color: var(--deep); }
.dict { margin: 0; display: grid; gap: 10px; }
.dict div { border-left: 4px solid var(--accent); padding: 4px 0 4px 14px; }
.dict dt { font: 800 1rem var(--font-head); }
.dict dd { margin: 2px 0 0; color: var(--ink-3); }

/* ---------------------------------------------------------------- styles and the chooser */
.chooser { border: 2px solid var(--ink); border-radius: var(--r); background: var(--card); padding: 18px; }
.ch-q { border: 0; padding: 0; margin: 0 0 14px; }
.ch-q legend { font-weight: 700; margin: 0 0 8px; padding: 0; }
.ch-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.ch-opts label { cursor: pointer; }
.ch-opts input { position: absolute; opacity: 0; pointer-events: none; }
.ch-opts span { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--ink); font-weight: 600; font-size: .9rem; background: var(--paper); }
.ch-opts input:checked + span { background: var(--ink); color: var(--on-ink); }
.ch-opts input:focus-visible + span { outline: 3px solid var(--deep); outline-offset: 2px; }
.ch-res { border-top: 1px dashed var(--line-2); padding-top: 12px; }
.ch-t { font: 800 .95rem var(--font-head); margin: 0 0 4px; }
.styles { display: grid; gap: 12px; }
.style { border: 2px solid var(--ink); border-radius: var(--r); padding: 16px; background: var(--paper); scroll-margin-top: 80px; transition: box-shadow .2s, background .2s; }
.style.is-match { background: #FFF4FC; box-shadow: 0 0 0 3px var(--accent); }
.style h3 { font-size: 1.12rem; margin-bottom: 6px; }
.style-tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 0 0 10px; }
.style-tags span { font-size: .74rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--ink); color: var(--on-ink); }
.style-tags .tag-adult { background: var(--flame); color: var(--ink); }
.style-music { display: flex; align-items: center; gap: 6px; font-size: .88rem; color: var(--muted); }
.style-music .ic { width: 16px; height: 16px; flex: none; }
.style-first { font-size: .9rem; }

/* ---------------------------------------------------------------- the lesson player */
.band-lesson { padding-top: 22px; background: var(--paper-2); }
.lp { max-width: 760px; margin: 0 auto; }
.lp-stage { position: relative; border-radius: var(--r); border: 2px solid var(--ink); background: var(--card); overflow: hidden; }
.lp-svg { display: block; width: 100%; height: auto; max-height: 46vh; aspect-ratio: 4 / 3; }
.lp-grid { stroke: rgba(11, 12, 15, .07); stroke-width: .012; }
.lp-ghost { fill: none; stroke: rgba(153, 1, 134, .2); stroke-width: .014; stroke-dasharray: .03 .03; }
.lp-foot .lp-sole { fill: var(--card); stroke: var(--ink); stroke-width: .022; transition: fill .12s; }
.lp-foot.is-weight .lp-sole { fill: var(--accent); }
.lp-foot.is-tap .lp-sole { stroke-dasharray: .04 .03; fill: #FFF4FC; }
.lp-foot.is-up .lp-sole { fill: #FFE7F8; stroke-width: .03; filter: drop-shadow(0 .03px .05px rgba(0, 0, 0, .25)); }
.lp-letter { font: 800 .13px var(--font-head); fill: var(--ink); pointer-events: none; }
.lp-hip { fill: var(--ink); opacity: .55; }
.lp-fwd path { stroke: var(--muted); stroke-width: .02; fill: none; stroke-linecap: round; }
.lp-fwd text { font: 600 .1px var(--font-text); fill: var(--muted); }
.lp-now { position: absolute; left: 12px; top: 10px; display: flex; flex-direction: column; pointer-events: none; }
.lp-big { font: 900 2.4rem/1 var(--font-head); letter-spacing: -.05em; color: var(--deep); }
.lp-say { font-size: .86rem; color: var(--muted); margin-top: 4px; }
.lp-counts { display: flex; gap: 4px; margin: 10px 0 0; }
.lp-counts i { flex: 1; text-align: center; font: 800 .84rem/30px var(--font-head); font-style: normal; border-radius: 9px; background: var(--card); border: 1.5px solid var(--line-2); color: var(--muted); transition: background .08s; }
.lp-counts i.is-on { background: var(--ink); color: var(--accent); border-color: var(--ink); }
.lp-counts i:first-child { color: var(--deep); }
.lp-bar { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; margin: 12px 0 0; }
.lp-play { min-width: 190px; }
.seg { display: inline-flex; border: 1.5px solid var(--ink); border-radius: 999px; overflow: hidden; background: var(--card); }
.seg button { border: 0; background: transparent; padding: 8px 12px; font: 600 .84rem var(--font-text); cursor: pointer; color: var(--ink); }
.seg button[aria-pressed='true'] { background: var(--ink); color: var(--on-ink); }
.sw { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; cursor: pointer; }
.sw input { width: 18px; height: 18px; accent-color: var(--deep); }
.lp-tempo { font-size: .8rem; color: var(--muted); margin: 8px 0 0; }
.trainer { border: 2px solid var(--ink); border-radius: var(--r); padding: 18px; background: var(--card); margin: 0 0 18px; }
.tr-pad { display: block; width: 100%; min-height: 120px; border-radius: 22px; border: 2px solid var(--ink); background: var(--accent); font: 900 2rem var(--font-head); letter-spacing: -.04em; cursor: pointer; touch-action: manipulation; -webkit-user-select: none; user-select: none; }
.tr-pad.is-hit { animation: pad-hit .3s; }
.tr-pad.is-miss { animation: pad-miss .3s; }
@keyframes pad-hit { 50% { background: var(--gold); transform: scale(.98); } }
@keyframes pad-miss { 50% { background: var(--paper-2); transform: scale(.98); } }
.tr-out { margin: 10px 0 0; }

/* ---------------------------------------------------------------- the game page and the community */
.hero-game { padding-bottom: 18px; }
.band-play { padding: 8px 0 34px; }
.teach { display: grid; gap: 14px; align-items: center; }

/* ---------------------------------------------------------------- footer */
.foot { background: var(--ink); color: var(--on-ink-2); padding: 34px 0 24px; font-size: .9rem; }
.foot .wordmark { color: var(--on-ink); font-size: 1.15rem; }
.f-top { display: grid; gap: 26px; }
.f-ru { color: var(--on-ink); margin: 10px 0 4px; font-weight: 600; }
.f-motto { margin: 0; }
.f-motto-sm { font-size: .8rem; opacity: .75; }
.f-cols { display: grid; gap: 20px; grid-template-columns: 1fr 1fr; }
.f-col h2 { font: 700 .76rem var(--font-head); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 0 0 8px; }
.f-col ul { list-style: none; margin: 0; padding: 0; }
.f-col li { margin: 0 0 6px; }
.f-col a { color: var(--on-ink); text-decoration: none; }
.f-col a:hover { text-decoration: underline; }
.f-projects { grid-column: 1 / -1; }
.f-projects ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.f-projects a i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c); margin-right: 6px; }
.f-projects small { color: var(--on-ink-2); }
.f-warranty { margin: 22px 0 0; font-size: .8rem; }
.f-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 16px; padding-top: 14px; font-size: .8rem; }
.f-bottom a { color: var(--on-ink); }
.f-bottom p { margin: 0 0 6px; }

/* ---------------------------------------------------------------- toast */
.toast { position: fixed; left: 50%; bottom: calc(var(--tabbar) + 18px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--ink); color: var(--on-ink); padding: 10px 16px; border-radius: 999px; z-index: 60; font-size: .9rem; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }

/* ---------------------------------------------------------------- wider screens */
@media (min-width: 640px) {
  h1 { font-size: 2.6rem; }
  .tiles-4 { grid-template-columns: repeat(2, 1fr); }
  .tiles-5 { grid-template-columns: repeat(2, 1fr); }
  .rules { grid-template-columns: repeat(2, 1fr); }
  .styles { grid-template-columns: repeat(2, 1fr); }
  .myths-3 { grid-template-columns: repeat(3, 1fr); }
  .lp-tables { grid-template-columns: 1fr 1fr; }
  .strip-more { display: inline; }
  .f-projects ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  body { padding-bottom: 0; }
  .tabbar { display: none; }
  .toast { bottom: 24px; }
  h1 { font-size: 3.1rem; }
  .nav { display: flex; align-items: center; gap: 2px; margin-left: 18px; flex: 1; }
  .nav a { color: var(--on-ink-2); text-decoration: none; font-weight: 600; font-size: .92rem; padding: 8px 11px; border-radius: 999px; white-space: nowrap; }
  .nav a:hover { color: var(--on-ink); background: rgba(255, 255, 255, .08); }
  .nav a[aria-current='page'] { color: var(--accent); }
  .nav a.nav-play { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; padding: 5px 16px 5px 6px; color: var(--ink); background: var(--accent); font-family: var(--font-head); font-weight: 800; font-size: .86rem; box-shadow: 0 0 0 0 rgba(255, 159, 234, .5); transition: box-shadow .2s, transform .12s; }
  .nav a.nav-play:hover { color: var(--ink); background: var(--accent-hi); box-shadow: 0 0 0 5px rgba(255, 159, 234, .25); transform: translateY(-1px); }
  .nav a.nav-play[aria-current='page'] { background: var(--gold); color: var(--ink); }
  .nav-play .play-mk { width: 26px; height: 26px; padding: 2px 4px; background: var(--ink); border-radius: 50%; }
  .top-install { margin-left: 12px; }
  .hero-grid { grid-template-columns: 1.2fr .8fr; align-items: center; }
  .hero-home { padding: 56px 0 64px; }
  .tiles-4 { grid-template-columns: repeat(4, 1fr); }
  .tiles-5 { grid-template-columns: repeat(5, 1fr); }
  .rules { grid-template-columns: repeat(3, 1fr); }
  .styles { grid-template-columns: repeat(3, 1fr); }
  .game-promo { grid-template-columns: 1.1fr .9fr; }
  .teach { grid-template-columns: 1fr auto; }
  .f-top { grid-template-columns: 1fr 2fr; }
  .f-cols { grid-template-columns: 1fr 1fr 2fr; }
  .f-projects { grid-column: auto; }
  .f-projects ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---- src/game.css ---- */
/* «Линия танца» (src/game.js) - the game's own look. Phone first and portrait: the frame is
   one column the height of the window - the top bar, the music strip, the floor, the
   partner and the hand. On a phone a dance opens the frame over the whole screen; on a
   wide screen the frame stands in the page like a phone. Dark like a dance floor at night,
   the accent «Фуэте» for our couple, gold for the counts of the lead. */

.ld {
  --ld-ink: #0B0C0F;
  --ld-ink-2: #15161B;
  --ld-paper: #F5F4EE;
  --ld-accent: #FF9FEA;
  --ld-deep: #990186;
  --ld-gold: #FFD666;
  --ld-dim: rgba(245, 244, 238, .62);
  --ld-line: rgba(245, 244, 238, .1);
  position: relative;
  width: 100%;
  max-width: 460px;
  height: min(860px, calc(100svh - 96px));
  min-height: 600px;
  margin: 0 auto;
  background: var(--ld-ink);
  color: var(--ld-paper);
  border-radius: 28px;
  overflow: hidden;
  font: 400 15px/1.4 var(--font-text, 'Onest', system-ui, sans-serif);
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 18px 50px rgba(11, 12, 15, .28);
  isolation: isolate;
}
.ld.ld-full {
  position: fixed;
  inset: 0;
  z-index: 1000;
  max-width: none;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  border-radius: 0;
  box-shadow: none;
}
html.ld-locked, html.ld-locked body { overflow: hidden; overscroll-behavior: none; }
.ld:fullscreen { width: 100%; height: 100%; max-width: none; border-radius: 0; }
/* :where() keeps this at zero weight: every button's own colour below wins over it. */
:where(.ld) button { font: inherit; color: inherit; cursor: pointer; }
.ld :focus-visible { outline: 3px solid var(--ld-gold); outline-offset: 2px; }
.ld-frame { display: flex; flex-direction: column; height: 100%; max-width: 560px; margin: 0 auto; }
.ld-i { width: 22px; height: 22px; }
.ld-ti { width: 16px; height: 16px; flex: none; }

/* ---------------------------------------------------------------- the top bar */
.ld-top { display: flex; align-items: center; gap: 6px; padding: 10px 10px 6px; padding-top: max(10px, env(safe-area-inset-top)); }
.ld-btn { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 13px; background: rgba(245, 244, 238, .08); }
.ld-btn:hover { background: rgba(245, 244, 238, .16); }
.ld-name { flex: 1; min-width: 0; margin: 0 0 0 4px; }
.ld-name b { display: block; font: 800 14px/1.15 var(--font-head, 'Unbounded', sans-serif); letter-spacing: -.035em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ld-sub { display: block; font-size: 12px; color: var(--ld-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ld-score { margin: 0 4px 0 0; text-align: right; line-height: 1; }
.ld-joy { display: block; font: 800 20px/1 var(--font-head, 'Unbounded', sans-serif); color: var(--ld-accent); letter-spacing: -.04em; }
.ld-score small { font-size: 10px; color: var(--ld-dim); }

.ld-screen { flex: 1; min-height: 0; display: flex; flex-direction: column; }

/* ---------------------------------------------------------------- the music strip */
.ld-strip { padding: 0 10px; }
.ld-tiles { display: grid; grid-template-columns: minmax(0, 1fr) 14px minmax(0, 1fr) 38px; align-items: center; gap: 5px; }
.ld-tile { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 7px 9px; border-radius: 13px; background: rgba(245, 244, 238, .06); font-size: 13px; }
.ld-tile b { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ld-tile.is-now { background: rgba(255, 159, 234, .14); box-shadow: inset 0 0 0 1.5px var(--ld-accent); }
.ld-tile.is-now .ld-ti { color: var(--ld-accent); }
.ld-tile.is-next { box-shadow: inset 0 0 0 1px rgba(245, 244, 238, .25); }
.ld-tile.is-hidden { justify-content: center; padding: 7px 0; color: var(--ld-dim); }
.ld-arrow { color: var(--ld-dim); font-size: 12px; text-align: center; }
.ld-tile[data-tag='accent'] .ld-ti, .ld-tile[data-tag='finale'] .ld-ti { color: var(--ld-gold); }
.ld-counts { display: flex; gap: 4px; margin-top: 6px; }
.ld-counts i { flex: 1; height: 24px; border-radius: 8px; background: rgba(245, 244, 238, .07); font: 700 11px/24px var(--font-text, 'Onest', sans-serif); font-style: normal; text-align: center; color: rgba(245, 244, 238, .5); transition: background .06s, color .06s; }
.ld-counts i.is-prep { background: rgba(255, 214, 102, .13); color: var(--ld-gold); }
.ld-counts i.is-on { background: var(--ld-paper); color: var(--ld-ink); }
.ld-counts i.is-prep.is-on { background: var(--ld-gold); color: var(--ld-ink); box-shadow: 0 0 14px rgba(255, 214, 102, .55); }

/* ---------------------------------------------------------------- the floor */
.ld-stage { position: relative; flex: 1; min-height: 0; margin-top: 6px; }
.ld-canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; display: block; }
.ld-hint { position: absolute; left: 10px; right: 10px; top: 6px; z-index: 2; margin: 0; padding: 10px 12px; border-radius: 14px; background: rgba(11, 12, 15, .9); box-shadow: inset 0 0 0 1.5px rgba(255, 214, 102, .55); font-size: 14px; line-height: 1.35; animation: ld-in .25s ease-out; }
.ld-say { position: absolute; left: 12px; right: 12px; bottom: 4px; z-index: 2; margin: 0; text-align: center; font-size: 13px; color: var(--ld-paper); text-shadow: 0 1px 6px #000; opacity: 0; transition: opacity .2s; pointer-events: none; }
.ld-say.is-on { opacity: .95; }

/* ---------------------------------------------------------------- partner and meters */
.ld-meters { display: flex; align-items: center; gap: 10px; padding: 6px 12px; }
.ld-partner { position: relative; display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.ld-face { display: inline-block; width: 36px; height: 36px; flex: none; color: var(--ld-ink); }
.ld-face svg { display: block; width: 100%; height: 100%; }
.ld-face-bg { fill: var(--ld-accent); stroke: none; }
.ld-face-sm { width: 22px; height: 22px; vertical-align: -6px; margin-right: 6px; }
.ld-pname { min-width: 0; line-height: 1.15; }
.ld-pname b { display: block; font-size: 14px; }
.ld-pname small { display: block; font-size: 11px; color: var(--ld-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ld-wish { position: absolute; left: 30px; top: -24px; display: flex; align-items: center; gap: 4px; padding: 3px 9px 3px 7px; border-radius: 999px; background: var(--ld-accent); color: var(--ld-ink); font-size: 11.5px; font-weight: 700; white-space: nowrap; animation: ld-bob 1.4s ease-in-out infinite; }
.ld-meter { flex: none; }
.ld-meter small { display: block; font-size: 10px; color: var(--ld-dim); margin-bottom: 4px; }
.ld-dots, .ld-bars { display: flex; gap: 3px; }
.ld-dots i { width: 11px; height: 11px; border-radius: 50%; background: rgba(245, 244, 238, .12); transition: background .2s, transform .2s; }
.ld-dots i.is-on { background: var(--ld-accent); }
.ld-bars i { width: 6px; height: 13px; border-radius: 2px; background: rgba(245, 244, 238, .12); }
.ld-bars i.is-on { background: var(--ld-gold); }

/* ---------------------------------------------------------------- the hand */
.ld-hand { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, .62fr); gap: 6px; padding: 6px 10px 10px; padding-bottom: max(10px, env(safe-area-inset-bottom)); touch-action: manipulation; }
.ld-cardb, .ld-basic { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; min-height: 134px; padding: 8px 8px 9px; border: 0; border-radius: 16px; text-align: left; touch-action: manipulation; transition: transform .12s ease-out, box-shadow .12s, background .15s; }
.ld-cardb { background: var(--ld-paper); color: var(--ld-ink); }
.ld-cardb b { font-size: 13px; line-height: 1.12; font-weight: 700; }
.ld-cardb small { font-size: 10.5px; line-height: 1.2; color: #4F515B; }
.ld-cardb:active, .ld-basic:active { transform: scale(.97); }
.ld-cardb.is-queued { transform: translateY(-9px); box-shadow: 0 0 0 3px var(--ld-accent), 0 12px 26px rgba(255, 159, 234, .35); }
.ld-cardb.is-closed { background: #2A2B31; color: rgba(245, 244, 238, .55); }
.ld-cardb.is-closed small { color: rgba(245, 244, 238, .45); }
.ld-cardb.is-closed .ld-fig-l { stroke: rgba(245, 244, 238, .4); }
.ld-cardb.is-closed .ld-fig-f { stroke: rgba(255, 159, 234, .45); }
.ld-cardb.is-no { animation: ld-no .35s; }
.ld-prep .ld-cardb:not(.is-closed):not(.is-queued) { box-shadow: 0 0 0 2.5px var(--ld-gold); }
.ld-prep .ld-cardb.is-queued { box-shadow: 0 0 0 3px var(--ld-gold), 0 12px 26px rgba(255, 214, 102, .35); }
.ld-fig { width: 46px; height: 42px; margin: -2px 0 0 -4px; }
.ld-fig polyline { fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ld-fig-l { stroke: var(--ld-ink); opacity: .75; }
.ld-fig-f { stroke: var(--ld-deep); }
.ld-love { display: flex; gap: 2px; margin-top: 2px; color: var(--ld-deep); min-height: 16px; }
.ld-cardb.is-closed .ld-love { color: rgba(255, 159, 234, .5); }
.ld-cost { display: flex; flex-wrap: wrap; align-items: center; gap: 3px; margin-top: auto; padding-top: 4px; font-size: 10px; }
.ld-cost i { width: 7px; height: 11px; border-radius: 2px; background: #C99A12; }
.ld-cost em { font-style: normal; color: #4F515B; }
.ld-need { margin-left: 2px; padding: 1px 6px; border-radius: 999px; background: rgba(153, 1, 134, .12); color: var(--ld-deep); font-weight: 700; }
.ld-cardb.is-closed .ld-need.is-low { background: rgba(255, 159, 234, .2); color: var(--ld-accent); }
.ld-k { position: absolute; top: 6px; right: 8px; font-size: 10px; opacity: .45; }
.ld-basic { justify-content: center; align-items: center; text-align: center; background: rgba(245, 244, 238, .08); color: var(--ld-paper); }
.ld-basic b { font-size: 12.5px; }
.ld-basic small { font-size: 10px; color: var(--ld-dim); }
.ld-basic.is-queued { box-shadow: 0 0 0 3px var(--ld-accent); transform: translateY(-6px); }
.ld-teach .ld-cardb:not(.is-closed) { animation: ld-wiggle 1.1s ease-in-out infinite; }
@media (pointer: coarse) { .ld-k { display: none; } }

/* ---------------------------------------------------------------- the menu */
.ld-menu { overflow: hidden; }
.ld-menu-in { overflow-y: auto; padding: 4px 14px 18px; -webkit-overflow-scrolling: touch; }
.ld-h { margin: 6px 0 8px; font: 800 22px/1.15 var(--font-head, 'Unbounded', sans-serif); letter-spacing: -.035em; color: var(--ld-paper); }
.ld-h small { font-size: 14px; color: var(--ld-dim); letter-spacing: 0; }
.ld-lead { margin: 0 0 14px; font-size: 14px; color: rgba(245, 244, 238, .8); }
.ld-tut { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 12px; padding: 13px 14px; border: 1.5px dashed rgba(255, 214, 102, .55); border-radius: 16px; background: transparent; text-align: left; font-size: 14px; }
.ld-tut b { color: var(--ld-gold); white-space: nowrap; }
.ld-tut.is-first { border-style: solid; background: rgba(255, 214, 102, .1); }
.ld-dances { display: grid; gap: 10px; }
.ld-dance { display: grid; grid-template-columns: 40px 1fr; gap: 4px 10px; width: 100%; padding: 13px; border: 0; border-radius: 18px; background: rgba(245, 244, 238, .06); text-align: left; transition: background .15s; }
.ld-dance:hover { background: rgba(245, 244, 238, .1); }
.ld-dance-n { grid-row: span 2; width: 36px; height: 36px; border-radius: 50%; background: var(--ld-accent); color: var(--ld-ink); font: 800 15px/36px var(--font-head, 'Unbounded', sans-serif); text-align: center; }
.ld-dance-t b { display: block; font: 800 15px/1.2 var(--font-head, 'Unbounded', sans-serif); letter-spacing: -.02em; }
.ld-dance-t small { display: block; margin-top: 2px; font-size: 12px; color: var(--ld-dim); }
.ld-dance-p { grid-column: 2; font-size: 13px; color: var(--ld-accent); }
.ld-dance-a { grid-column: 2; font-size: 13px; color: rgba(245, 244, 238, .78); }
.ld-dance-b { grid-column: 2; font-size: 12px; color: var(--ld-dim); }
.ld-go { grid-column: 2; justify-self: start; margin-top: 4px; padding: 7px 14px; border-radius: 999px; background: var(--ld-accent); color: var(--ld-ink); font-weight: 700; font-size: 13px; }
.ld-credit { margin: 16px 0 0; font-size: 12px; color: var(--ld-dim); }
.ld-credit a { color: var(--ld-paper); }

/* ---------------------------------------------------------------- the result and the pause */
.ld-result { overflow: hidden; }
.ld-res { overflow-y: auto; padding: 4px 14px 18px; -webkit-overflow-scrolling: touch; }
.ld-res-pic { margin: 0 0 12px; }
.ld-pic { display: block; width: 100%; height: auto; max-height: 46vh; object-fit: contain; border-radius: 18px; background: var(--ld-ink); box-shadow: inset 0 0 0 1px var(--ld-line); }
.ld-eyebrow { margin: 0; font: 700 11px/1.3 var(--font-head, 'Unbounded', sans-serif); letter-spacing: .08em; text-transform: uppercase; color: var(--ld-accent); }
.ld-best { margin: 0 0 10px; font-size: 13px; color: var(--ld-dim); }
.ld-quote { display: grid; grid-template-columns: 36px 1fr; gap: 2px 10px; margin: 0 0 12px; padding: 12px; border-radius: 16px; background: rgba(255, 159, 234, .1); }
.ld-quote .ld-face { grid-row: span 2; }
.ld-quote p { margin: 0; font-size: 14px; }
.ld-quote cite { font-style: normal; font-size: 12px; color: var(--ld-dim); }
.ld-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; }
.ld-stats li { padding: 10px 12px; border-radius: 14px; background: rgba(245, 244, 238, .06); }
.ld-stats b { display: block; font: 800 17px/1.2 var(--font-head, 'Unbounded', sans-serif); color: var(--ld-accent); letter-spacing: -.03em; }
.ld-stats span { font-size: 12px; color: rgba(245, 244, 238, .75); }
.ld-row { display: flex; flex-wrap: wrap; gap: 8px; }
.ld-cta, .ld-ghost { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 11px 18px; border: 0; border-radius: 999px; font-weight: 700; font-size: 14.5px; }
.ld-cta { background: var(--ld-accent); color: var(--ld-ink); }
.ld-cta .ld-i, .ld-ghost .ld-i { width: 18px; height: 18px; }
.ld-ghost { background: rgba(245, 244, 238, .1); color: var(--ld-paper); }
.ld-paused { align-items: center; justify-content: center; }
.ld-card-big { max-width: 320px; padding: 24px; text-align: center; }
.ld-card-big h3 { font: 800 24px/1.2 var(--font-head, 'Unbounded', sans-serif); margin: 0 0 6px; color: var(--ld-paper); }
.ld-card-big p { color: var(--ld-dim); }
.ld-card-big .ld-row { justify-content: center; }

/* ---------------------------------------------------------------- motion */
@keyframes ld-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes ld-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes ld-wiggle { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes ld-no { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
@media (prefers-reduced-motion: reduce) {
  .ld *, .ld *::before, .ld *::after { animation: none !important; transition: none !important; }
}

/* ---------------------------------------------------------------- small and wide screens */
@media (max-height: 700px) {
  .ld-cardb, .ld-basic { min-height: 112px; }
  .ld-cardb small { display: none; }
  .ld-counts i { height: 20px; line-height: 20px; }
  .ld-face { width: 30px; height: 30px; }
}
@media (max-width: 360px) {
  .ld-cardb b { font-size: 12px; }
  .ld-tile { padding: 6px 7px; font-size: 11.5px; }
  .ld-hand { gap: 4px; padding-left: 6px; padding-right: 6px; }
}
@media (min-width: 900px) {
  .ld.ld-full .ld-frame { max-width: 520px; }
}

/* ---- src/forum.css ---- */
/* The forum (community/, /forum/...) in the site's own look. Its pages are made by the forum's
   server inside the frame the build writes (dist-forum/shell.html); the classes are the engine's
   (community/views.mjs, a copy of abso.games's forum). The build glues this file after styles.css. */

.page-head { position: relative; background-color: var(--ink); color: var(--on-ink); padding: 30px 0 28px; overflow: hidden;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 159, 234, .26) 1.2px, transparent 1.8px); background-size: 22px 22px; background-position: right top; }
.page-head::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink) 35%, rgba(11, 12, 15, .82) 70%, rgba(11, 12, 15, .55)); pointer-events: none; }
.page-head > .wrap { position: relative; z-index: 1; }
.page-head .eyebrow { color: var(--accent); }
.page-head .eyebrow a { color: var(--accent); }
.page-head .lesson-title { font-size: 1.8rem; font-weight: 900; letter-spacing: -.04em; margin: 0 0 .4em; color: var(--on-ink); }
.page-head .lead { color: var(--on-ink-2); max-width: 46em; margin: 0; font-size: 1.02rem; }
.page-head .lead a, .page-head .meta a { color: var(--accent); }
.page-head .meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 12px 0 0; font-size: .86rem; color: var(--on-ink-2); }
.col { max-width: 800px; }
.muted { color: var(--muted); }
.page-head .muted { color: var(--on-ink-2); }
.h3 { font: 800 1.12rem/1.2 var(--font-head); letter-spacing: -.02em; margin: 1.4em 0 .6em; }

/* the forum's own bar under the page head: sections, rules, who is in */
.forum-bar { background: var(--paper-2); border-bottom: 1px solid var(--line); }
.forum-bar > .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; min-height: 52px; padding-top: 6px; padding-bottom: 6px; }
.forum-nav { display: flex; flex-wrap: wrap; gap: 4px; }
.forum-nav a { padding: 7px 12px; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: .9rem; }
.forum-nav a:hover { background: var(--card); }
.forum-nav a[aria-current='page'] { background: var(--ink); color: var(--accent); }
.forum-who { display: flex; align-items: center; gap: 10px; font-size: .9rem; }
.forum-me { font-weight: 700; color: var(--ink); }
.inline { display: inline; margin: 0; }
.linkish { border: 0; background: none; padding: 0; color: var(--deep); text-decoration: underline; text-underline-offset: .18em; cursor: pointer; font: inherit; }
.btn-outline { background: var(--card); }

.forum-body { padding-top: 22px; padding-bottom: 40px; }
.forum-note { border-radius: var(--r-sm); padding: 12px 14px; margin: 0 0 18px; background: #FFF4FC; border: 1.5px solid var(--accent); }
.forum-error { border-radius: var(--r-sm); padding: 12px 14px; margin: 0 0 18px; background: #FFE9E2; border: 1.5px solid var(--flame); }
.forum-error ul { margin: 6px 0 0; padding-left: 1.2em; }
.forum-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 1.4em 0 .6em; }
.forum-section-head .h3, .forum-section-head p { margin: 0; }

.forum-cats { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.forum-cat { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: var(--r); border: 2px solid var(--ink); background: var(--card); color: var(--ink); text-decoration: none; transition: transform .12s, box-shadow .12s; }
.forum-cat:hover { transform: translateY(-1px); box-shadow: 0 4px 0 var(--ink); }
.forum-cat-title { font: 800 1.05rem var(--font-head); letter-spacing: -.02em; }
.forum-cat-lead { color: var(--ink-3); font-size: .93rem; }
.forum-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.forum-row { padding: 12px 0; border-bottom: 1px solid var(--line); }
.forum-row p { margin: 0; }
.forum-row-main { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.forum-row-title { font-weight: 700; color: var(--ink); text-decoration: none; }
.forum-row-title:hover { text-decoration: underline; }
.forum-row-meta { font-size: .84rem; margin: 4px 0 0; }
.forum-row-meta a { color: var(--deep); }
.forum-tag { display: inline-block; font: 700 .7rem/1 var(--font-text); padding: 4px 8px; border-radius: 999px; background: var(--paper-2); color: var(--ink); vertical-align: middle; }
.forum-tag-good { background: #B9F5CF; }
.forum-tag-bad { background: #FFD9CC; }
.forum-tag-team { background: var(--accent); }
.page-head .forum-tag { font-size: .66rem; }

.forum-thread { display: grid; gap: 12px; }
.forum-post { border: 2px solid var(--ink); border-radius: var(--r); background: var(--card); padding: 14px 16px; scroll-margin-top: 80px; }
.forum-post.is-solution { box-shadow: 0 0 0 3px #3DBA6B; }
.forum-post-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 8px; font-size: .88rem; }
.forum-author { font-weight: 700; color: var(--ink); }
.forum-author.is-gone { color: var(--muted); font-weight: 600; }
.forum-when { color: var(--muted); }
.forum-post-body p { margin: 0 0 .8em; }
.forum-post-body p:last-child { margin-bottom: 0; }
.forum-post-body blockquote { margin: 0 0 .8em; padding: 4px 0 4px 12px; border-left: 4px solid var(--accent); color: var(--ink-3); }
.forum-post-body code { background: var(--paper-2); padding: 1px 5px; border-radius: 5px; font-size: .9em; }
.forum-post-body details { margin: 0 0 .8em; border: 1px dashed var(--line-2); border-radius: 10px; padding: 6px 10px; }
.forum-flag { font-size: .84rem; color: var(--deep); font-weight: 700; }
.forum-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 10px 0 0; font-size: .86rem; }
.forum-useful { border: 1.5px solid var(--ink); background: var(--paper); border-radius: 999px; padding: 4px 11px; font: 700 .8rem var(--font-text); cursor: pointer; }
.forum-useful[aria-pressed='true'] { background: var(--accent); }
.forum-useful.is-static { cursor: default; display: inline-block; }
.forum-mod summary { cursor: pointer; color: var(--muted); }
.forum-mod form { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; margin-top: 8px; }

.forum-form { display: grid; gap: 8px; max-width: 760px; margin: 22px 0 0; padding: 18px; border: 2px solid var(--ink); border-radius: var(--r); background: var(--card); }
.forum-form label { font-weight: 700; font-size: .92rem; }
.forum-form input:not([type=checkbox]):not([type=hidden]), .forum-form textarea, .forum-form select, .forum-inline-form input, .forum-mod input, .forum-mod select { width: 100%; font: inherit; padding: 10px 12px; border: 1.5px solid var(--line-2); border-radius: 12px; background: var(--paper); color: var(--ink); }
.forum-form textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
.forum-form input:focus, .forum-form textarea:focus, .forum-form select:focus { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--ink); }
.forum-form .note { margin: 0; padding: 0; border: 0; background: none; font-size: .82rem; color: var(--muted); }
.forum-form fieldset { border: 0; padding: 0; margin: 0; }
.forum-form legend { font-weight: 700; font-size: .92rem; margin: 0 0 6px; }
.forum-form label.check, .forum-checks label.check { display: flex; gap: 8px; align-items: center; border: 0; padding: 0; margin: 0; background: none; font-weight: 600; }
.forum-checks { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.forum-danger { border-color: var(--flame); background: #FFF7F4; }
.forum-inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; margin-top: 8px; }
.forum-inline-form label { font-size: .84rem; font-weight: 600; }

.forum-pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 18px 0 0; font-size: .9rem; }

.cards { display: grid; gap: 12px; }
.card.forum-project { display: block; border: 2px solid var(--ink); border-radius: var(--r); background: var(--card); color: var(--ink); text-decoration: none; transition: transform .12s, box-shadow .12s; }
.card.forum-project:hover { transform: translateY(-2px); box-shadow: 0 5px 0 var(--ink); }
.forum-project .body { padding: 16px; }
.forum-project .n { font: 800 .74rem var(--font-head); color: var(--deep); letter-spacing: .04em; text-transform: uppercase; }
.forum-project h4 { margin: 6px 0 4px; font-size: 1.05rem; }
.forum-project p { margin: 0 0 6px; color: var(--ink-3); }
.filters { display: grid; gap: 8px; margin: 0 0 8px; }
.chips-h { font-weight: 700; font-size: .84rem; align-self: center; margin-right: 4px; }
.chip.is-on { background: var(--ink); color: var(--accent); }
.forum-project-grid { display: grid; gap: 18px; margin: 18px 0; }
.forum-aside { border: 2px solid var(--ink); border-radius: var(--r); padding: 14px 16px; background: var(--paper); }
.forum-aside ul { margin: 0 0 8px; padding-left: 1.1em; }
.forum-aside .h3 { margin-top: .4em; }
.forum-requests { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.forum-requests > li { border: 1.5px solid var(--line-2); border-radius: var(--r-sm); padding: 12px; background: var(--card); }

@media (min-width: 640px) {
  .forum-cats { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .page-head { padding: 44px 0 40px; }
  .page-head .lesson-title { font-size: 2.6rem; }
  .forum-cats { grid-template-columns: repeat(3, 1fr); }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .forum-project-grid { grid-template-columns: 1fr 280px; align-items: start; }
}
