/* music.abso.live (AbsoMusic) - one stylesheet for every page. Phone first: 375 px is the
   design width, the bottom bar carries the five sections; 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. AbsoMusic's accent - «Бархат» #B790AE, always with
   ink text on it; its deep shade #853177 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: #B790AE;
  --accent-hi: #CDB0C6;
  --accent-lo: #A57E9C;
  --deep: #853177;
  --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; }
h4 { font-size: .92rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
b, strong { font-weight: 700; }
small { font-size: .82em; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }
.prose { max-width: 800px; }
.wide { max-width: 1160px; }
.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); }
.nav { display: none; }
.top-cta { margin-left: auto; }
.top .btn-accent { border-color: var(--accent); }

/* ---------------------------------------------------------------- bottom bar */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: grid; grid-template-columns: repeat(5, 1fr); 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 a[aria-current='page'] .ic { filter: drop-shadow(0 0 6px rgba(183, 144, 174, .45)); }

/* ---------------------------------------------------------------- buttons */
.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); }
button { font-family: inherit; }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; background-color: var(--ink); color: var(--on-ink); overflow: hidden;
  background-image: radial-gradient(circle at 1px 1px, rgba(183, 144, 174, .3) 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, .82) 65%, rgba(11, 12, 15, .5)); pointer-events: none; }
.hero > .wrap { position: relative; z-index: 1; }
.hero-page { padding: 34px 0 34px; }
.hero-home { padding: 34px 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: 28px; }
.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); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .82rem; margin: 0 0 16px; color: var(--on-ink-2); }
.crumbs a { color: var(--on-ink); }
.crumbs i { font-style: normal; opacity: .5; }

/* the first page's drawing */
.fig { margin: 0; max-width: 440px; justify-self: center; width: 100%; }
.fig svg { display: block; width: 100%; height: auto; }
.fg-board { fill: #7A5A3E; stroke: #000; stroke-width: 2; }
.fg-dots { fill: rgba(0, 0, 0, .28); }
.fg-paper { fill: #FBFAF6; stroke: rgba(0, 0, 0, .25); stroke-width: 1; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .35)); }
.fg-paper2 { fill: var(--accent); stroke: rgba(0, 0, 0, .25); filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .3)); }
.fg-small { font: 800 15px var(--font-head); fill: var(--ink); letter-spacing: -.02em; }
.fg-kind { font: 700 13px var(--font-head); fill: var(--deep); letter-spacing: .08em; }
.fg-title { font: 900 33px var(--font-head); fill: var(--ink); letter-spacing: -.05em; }
.fg-lines { stroke: rgba(11, 12, 15, .22); stroke-width: 7; stroke-linecap: round; fill: none; }
.fg-cut { stroke: rgba(11, 12, 15, .35); stroke-width: 1.2; stroke-dasharray: 4 4; fill: none; }
.fg-tab { fill: #FBFAF6; stroke: rgba(11, 12, 15, .3); stroke-width: 1; stroke-dasharray: 3 3; }
.fg-tabt { font: 600 10px var(--font-text); fill: var(--ink); }
.fg-tear { stroke: rgba(11, 12, 15, .35); stroke-width: 1.2; fill: none; }

/* ---------------------------------------------------------------- bands */
.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 .s-lead, .band-ink p { color: var(--on-ink-2); }
.band-ink a:not(.btn):not(.tile):not(.chip) { color: var(--accent); }
.s-head { margin: 0 0 22px; max-width: 760px; }
.s-head h2 { font-size: 1.6rem; }
.s-lead { color: var(--muted); font-size: 1.02rem; margin: 0; }
.two { display: grid; gap: 28px; }

/* ---------------------------------------------------------------- tiles */
.tiles { display: grid; gap: 12px; grid-template-columns: 1fr; }
.tile { position: relative; display: flex; flex-direction: column; background: var(--card); color: var(--ink); text-decoration: none; border: 2px solid var(--ink); border-radius: var(--r); padding: 18px 18px 16px; transition: transform .12s, box-shadow .12s; }
.tile:hover { transform: translateY(-2px); box-shadow: 0 5px 0 var(--ink); text-decoration: none; }
.tile-n { position: absolute; top: 14px; right: 16px; font: 900 .8rem/1 var(--font-head); color: var(--muted); letter-spacing: .02em; }
.tile-ic { width: 30px; height: 30px; color: var(--deep); margin-bottom: 12px; }
.tile h3 { font-size: 1.12rem; padding-right: 26px; }
.tile p { color: var(--muted); font-size: .95rem; margin: 0 0 14px; }
.tile-cta { margin-top: auto; font: 700 .8rem/1.2 var(--font-head); color: var(--deep); }
.band-ink .tile { background: var(--ink-2); color: var(--on-ink); border-color: rgba(245, 244, 238, .18); }
.band-ink .tile:hover { box-shadow: 0 5px 0 var(--accent); }
.band-ink .tile p { color: var(--on-ink-2); }
.band-ink .tile-ic, .band-ink .tile-cta { color: var(--accent); }
.band-ink .tile-n { color: rgba(245, 244, 238, .45); }

/* ---------------------------------------------------------------- prose blocks */
.b-h2 { font-size: 1.4rem; margin: 1.6em 0 .6em; }
.b-h2:first-child { margin-top: 0; }
.b-h2 .eyebrow { display: block; margin-bottom: .5em; }
.b-h3 { margin: 1.4em 0 .5em; }
.b-lead { font-size: 1.12rem; color: var(--ink); }
.b-list { padding: 0; margin: 0 0 1.2em; list-style: none; }
.b-list > li { position: relative; padding-left: 26px; margin: 0 0 .6em; }
.b-list > li::before { content: ''; position: absolute; left: 4px; top: .55em; width: 9px; height: 9px; border-radius: 2px; background: var(--accent); border: 1.5px solid var(--ink); }
.b-ol { counter-reset: n; }
.b-ol > li { counter-increment: n; padding-left: 34px; }
.b-ol > li::before { content: counter(n); top: .05em; left: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); border: 0; color: var(--on-ink); font: 700 .74rem/24px var(--font-head); text-align: center; }
.steps { list-style: none; padding: 0; margin: 0 0 1.4em; display: grid; gap: 12px; }
.steps > li { display: grid; grid-template-columns: auto 1fr; gap: 14px; background: var(--card); border: 1.5px solid var(--line-2); border-radius: var(--r-sm); padding: 16px; }
.steps h3 { font-size: 1rem; margin-bottom: .35em; }
.steps p { margin: 0 0 .5em; color: var(--ink); }
.steps p:last-child { margin: 0; }
.step-n { font: 900 1.25rem/1 var(--font-head); color: var(--deep); min-width: 2ch; }
.note { border-radius: var(--r-sm); padding: 16px 18px; margin: 0 0 1.4em; border: 1.5px solid var(--ink); background: #F3EAF1; }
.note p:last-child { margin: 0; }
.note-t { font: 800 .95rem/1.3 var(--font-head); margin: 0 0 .4em; }
.note-warn { background: #FFEDE6; border-color: var(--flame); }
.note-joke { background: var(--paper-2); border-style: dashed; }
.quote { margin: 0 0 1.4em; padding: 4px 0 4px 18px; border-left: 4px solid var(--accent); font-size: 1.08rem; }
.quote footer { font-size: .86rem; color: var(--muted); margin-top: .4em; }
.src { font-size: .82rem; color: var(--muted); }
.facts { display: grid; gap: 12px; margin: 0 0 1.4em; }
.fact { background: var(--card); border: 2px solid var(--ink); border-radius: var(--r); padding: 18px; }
.fact-big { font: 900 2rem/1 var(--font-head); letter-spacing: -.04em; color: var(--deep); margin: 0 0 .35em; }
.fact p:last-child { margin: 0; }
.table-wrap { overflow-x: auto; margin: 0 0 1.4em; border: 1.5px solid var(--line-2); border-radius: var(--r-sm); background: var(--card); }
.tbl { border-collapse: collapse; width: 100%; font-size: .92rem; }
/* Two columns wrap on a phone; three and more keep their width and scroll inside the card. */
.tbl:has(thead th:nth-child(3)) { min-width: 520px; }
.tbl caption { text-align: left; padding: 12px 14px 0; font-weight: 700; }
.tbl th, .tbl td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.tbl thead th { font: 700 .74rem/1.3 var(--font-head); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); background: var(--paper); }
.tbl tbody th { font-weight: 700; }
.tbl tr:last-child > * { border-bottom: 0; }
.faq details { border-bottom: 1px solid var(--line-2); padding: 12px 0; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; position: relative; padding-right: 28px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: -2px; font: 800 1.2rem/1 var(--font-head); color: var(--deep); }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: .7em 0 0; color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 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-size: .86rem; font-weight: 600; }
.chip:hover { background: var(--accent); text-decoration: none; }
.band-ink .chip, .hero .chip { background: transparent; color: var(--on-ink); border-color: rgba(245, 244, 238, .4); }
.band-ink .chip:hover { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.live-box { background: var(--ink); color: var(--on-ink); border-radius: var(--r); padding: 18px; margin: 0 0 1.4em; }
.live-box p { margin: 0; color: var(--on-ink-2); }
.live-box .chip { background: transparent; color: var(--on-ink); border-color: rgba(245, 244, 238, .4); }
.live-box .chip:hover { background: var(--accent); color: var(--ink); }
.live-box a:not(.chip) { color: var(--accent); }

/* checklists */
.check { background: var(--card); border: 2px solid var(--ink); border-radius: var(--r); padding: 16px 16px 12px; margin: 0 0 1.4em; }
.check-t { font: 800 1rem/1.3 var(--font-head); margin: 0 0 .7em; }
.check ul { list-style: none; padding: 0; margin: 0; }
.check li { border-top: 1px solid var(--line); }
.check li:first-child { border-top: 0; }
.check label { display: grid; grid-template-columns: 26px 1fr; gap: 10px; padding: 10px 0; cursor: pointer; align-items: start; }
.check input { appearance: none; -webkit-appearance: none; width: 24px; height: 24px; margin: 0; border: 2px solid var(--ink); border-radius: 7px; background: var(--card); display: grid; place-content: center; cursor: pointer; }
.check input::after { content: ''; width: 11px; height: 6px; border-left: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.check input:checked { background: var(--accent); }
.check input:checked::after { opacity: 1; }
.check input:checked + span { color: var(--muted); }
.check-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.check-note { font-size: .78rem; color: var(--muted); }

/* courses */
.week { background: var(--card); border: 2px solid var(--ink); border-radius: var(--r); padding: 18px; margin: 0 0 16px; }
.week.is-done { border-color: var(--deep); box-shadow: inset 0 0 0 2px var(--accent); }
.wk-n { display: inline-block; font: 800 .72rem/1 var(--font-head); letter-spacing: .08em; text-transform: uppercase; background: var(--ink); color: var(--on-ink); padding: 6px 10px; border-radius: 999px; margin-bottom: 12px; }
.wk-head h3 { font-size: 1.2rem; }
.wk-goal { font-size: 1.02rem; }
.wk-body { display: grid; gap: 12px; }
.wk-part { border-radius: var(--r-sm); padding: 12px 14px; background: var(--paper); }
.wk-part h4 { margin: 0 0 .5em; }
.wk-part ul { margin: 0; padding-left: 1.1em; }
.wk-part li { margin: 0 0 .35em; }
.wk-meet { background: #F3EAF1; }
.wk-chords { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; }
.wk-tip { margin: 14px 0 0; font-size: .92rem; color: var(--muted); }
.wk-done { margin-top: 14px; }
.wk-done[aria-pressed='true'] { background: var(--accent); }
.chord-chip { display: inline-block; min-width: 2.6em; text-align: center; padding: 5px 10px; border-radius: 10px; border: 1.5px solid var(--ink); background: var(--card); color: var(--ink); text-decoration: none; font: 800 .86rem/1.2 var(--font-head); }
.chord-chip:hover { background: var(--accent); text-decoration: none; }
.progs { display: grid; gap: 12px; margin: 0 0 1.4em; }
.prog { background: var(--card); border: 2px solid var(--ink); border-radius: var(--r); padding: 16px; }
.prog-chords { display: flex; flex-wrap: wrap; gap: 6px; }
.prog .btn { margin-top: 4px; }

/* neighbours */
.nbs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 0; padding-bottom: 40px; }
.nb { display: block; border: 2px solid var(--ink); border-radius: var(--r-sm); padding: 12px 14px; color: var(--ink); text-decoration: none; font: 800 .9rem/1.25 var(--font-head); background: var(--card); }
.nb small { display: block; font: 600 .72rem/1.3 var(--font-text); color: var(--muted); margin-bottom: 4px; }
.nb-next { text-align: right; grid-column: 2; }
.nb:hover { box-shadow: 0 4px 0 var(--ink); text-decoration: none; }

/* home pieces */
.game-teaser { background: var(--ink); color: var(--on-ink); border-radius: var(--r); padding: 22px; position: relative; overflow: hidden;
  background-image: repeating-linear-gradient(90deg, transparent 0 22px, rgba(183, 144, 174, .14) 22px 24px); }
.game-teaser .eyebrow { color: var(--accent); }
.game-teaser h2 { font-size: 2.2rem; font-weight: 900; }
.game-teaser p { color: var(--on-ink-2); }
.install { background: var(--card); border: 2px solid var(--ink); border-radius: var(--r); padding: 20px; }
.install h2 { font-size: 1.25rem; }
.install-state, .install-how { margin: 12px 0 0; font-size: .92rem; color: var(--muted); }
.install-box { margin-top: 8px; }

/* ---------------------------------------------------------------- tools */
.tool { background: var(--card); border: 2px solid var(--ink); border-radius: var(--r); padding: 16px; margin: 0 0 1.6em; }
.tool-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 14px 0 0; }
.tool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0 0; }
.tool-note { font-size: .86rem; color: var(--muted); margin: 14px 0 0; }
.fld { display: flex; flex-direction: column; gap: 5px; font-size: .78rem; font-weight: 600; color: var(--muted); min-width: 0; }
.fld-wide { width: 100%; }
.fld input, .fld select, .fld textarea { font: 500 1rem/1.3 var(--font-text); color: var(--ink); background: var(--paper); border: 1.5px solid var(--line-2); border-radius: 12px; padding: 10px 12px; min-height: 44px; width: 100%; }
.fld textarea { resize: vertical; font-family: var(--font-head); font-weight: 700; letter-spacing: -.01em; }
.fld input:focus, .fld select:focus, .fld textarea:focus { border-color: var(--deep); outline: none; box-shadow: 0 0 0 3px rgba(183, 144, 174, .45); }
.seg { display: inline-flex; flex-wrap: wrap; border: 2px solid var(--ink); border-radius: 999px; padding: 3px; gap: 3px; background: var(--paper); }
.seg-wide { display: grid; grid-template-columns: 1fr 1fr; width: 100%; border-radius: 20px; }
.seg-wide .seg-b { border-radius: 16px; }
@media (min-width: 640px) { .seg-wide { grid-template-columns: repeat(4, 1fr); border-radius: 999px; } .seg-wide .seg-b { border-radius: 999px; } }
.seg-b { border: 0; background: transparent; border-radius: 999px; padding: 8px 12px; font: 700 .78rem/1.2 var(--font-head); color: var(--ink); cursor: pointer; min-height: 36px; }
.seg-b.is-on { background: var(--ink); color: var(--on-ink); }

/* tuner */
.tuner-face { background: var(--ink); color: var(--on-ink); border-radius: 18px; padding: 18px 16px 16px; text-align: center; }
.tn-note { font: 900 4.2rem/1 var(--font-head); letter-spacing: -.06em; margin: 4px 0 10px; display: flex; align-items: baseline; justify-content: center; gap: 10px; }
.tn-note small { font: 600 1rem/1 var(--font-text); letter-spacing: 0; color: var(--on-ink-2); }
.tuner.is-in .tn-note span { color: #7DFFA8; }
.tn-meter { position: relative; height: 70px; margin: 0 auto 8px; max-width: 360px; }
.tn-scale { position: absolute; inset: auto 0 0 0; height: 40px; display: flex; justify-content: space-between; align-items: flex-end; }
.tn-scale i { width: 2px; height: 16px; background: rgba(245, 244, 238, .35); border-radius: 2px; }
.tn-scale i.mid { height: 36px; width: 3px; background: var(--accent); }
.tn-needle { position: absolute; left: 50%; bottom: 0; width: 4px; height: 66px; margin-left: -2px; background: var(--on-ink); border-radius: 4px; transform-origin: 50% 100%; transform: rotate(0deg); transition: transform .12s ease-out, background .2s; }
.tuner.is-in .tn-needle { background: #7DFFA8; }
.tn-cents { font-size: .9rem; color: var(--on-ink-2); margin: 0; font-variant-numeric: tabular-nums; }
.tn-hint { font-size: .86rem; color: var(--on-ink-2); margin: 10px 0 0; }
.tn-strings { display: grid; grid-template-columns: repeat(6, minmax(0, 58px)); gap: 6px; margin: 14px 0 0; }
.tn-str { width: 100%; aspect-ratio: 1; min-height: 44px; border-radius: 50%; border: 2px solid var(--ink); background: var(--card); color: var(--ink); font: 800 1rem/1 var(--font-head); cursor: pointer; display: grid; place-items: center; padding: 0; }
.tn-str small { display: block; font: 600 .62rem/1 var(--font-text); color: var(--muted); margin-top: 2px; }
.tn-str.is-target { background: var(--accent); }
.tn-str.is-in { background: #CFF5DD; border-color: var(--ok); }

/* metronome */
.mt-face { background: var(--ink); color: var(--on-ink); border-radius: 18px; padding: 18px 16px; text-align: center; }
.mt-beats { display: flex; justify-content: center; gap: 8px; min-height: 26px; flex-wrap: wrap; }
.mt-beats i { width: 20px; height: 20px; border-radius: 50%; border: 2px solid rgba(245, 244, 238, .45); display: block; transition: background .06s; }
.mt-beats i.acc { border-color: var(--accent); }
.mt-beats i.on { background: var(--on-ink); }
.mt-beats i.acc.on { background: var(--accent); }
.mt-beats.is-gap i { border-style: dashed; opacity: .55; }
.mt-bpm { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 12px 0 0; }
.mt-bpm output { font: 900 4rem/1 var(--font-head); letter-spacing: -.05em; min-width: 3ch; font-variant-numeric: tabular-nums; }
.mt-step { width: 48px; height: 48px; border-radius: 50%; border: 2px solid currentColor; background: transparent; color: inherit; font: 800 1.4rem/1 var(--font-head); cursor: pointer; }
.mt-unit { font-size: .86rem; color: var(--on-ink-2); margin: 6px 0 12px; }
.mt-face input[type='range'] { width: 100%; accent-color: var(--accent); }

/* chords */
.ch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin: 14px 0 0; }
.ch-card { border: 1.5px solid var(--line-2); border-radius: var(--r-sm); background: var(--card); padding: 10px 8px 8px; text-align: center; cursor: pointer; font: inherit; color: inherit; }
.ch-card:hover, .ch-card:focus-visible { border-color: var(--ink); }
.ch-card.is-target { border-color: var(--deep); box-shadow: 0 0 0 3px var(--accent); }
.ch-card h3 { margin: 0 0 4px; font-size: 1.15rem; }
.ch-card svg { width: 100%; max-width: 120px; height: auto; display: block; margin: 0 auto; }
.ch-card p { font-size: .72rem; color: var(--muted); margin: 4px 0 0; }
.ch-dot { fill: var(--ink); }
.ch-root { fill: var(--deep); }
.ch-line { stroke: var(--ink); }
.ch-fret { stroke: rgba(11, 12, 15, .35); }
.ch-txt { font: 700 9px var(--font-text); fill: var(--ink); }
.ch-num { font: 600 8px var(--font-text); fill: var(--muted); }

/* beat */
.bt-grid { display: grid; gap: 6px; }
.bt-row { display: grid; grid-template-columns: 64px 1fr; gap: 8px; align-items: center; }
.bt-name { font: 700 .74rem/1.1 var(--font-head); }
/* A phone shows the bar as two lines of eight sixteenths; from 640 px - one line of sixteen. */
.bt-steps { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; }
.bt-step { height: 34px; min-width: 0; border: 1.5px solid var(--line-2); border-radius: 6px; background: var(--paper); cursor: pointer; padding: 0; }
@media (min-width: 640px) { .bt-steps { grid-template-columns: repeat(16, minmax(0, 1fr)); gap: 3px; } .bt-step { height: 40px; } }
.bt-step:nth-child(4n + 1) { border-color: rgba(11, 12, 15, .45); }
.bt-step.on { background: var(--ink); border-color: var(--ink); }
.bt-row[data-row='kick'] .bt-step.on { background: var(--deep); border-color: var(--deep); }
.bt-row[data-row='clap'] .bt-step.on { background: var(--accent); border-color: var(--ink); }
.bt-step.now { box-shadow: 0 0 0 2px var(--accent); }

/* transposer */
.tr-shift { display: flex; align-items: center; gap: 10px; font-size: .86rem; color: var(--muted); }
.tr-shift output { font: 900 1.6rem/1 var(--font-head); color: var(--ink); min-width: 2.2ch; text-align: center; }
.tr-shift .mt-step { width: 42px; height: 42px; }
.tr-out { font: 800 1.35rem/1.5 var(--font-head); letter-spacing: -.02em; background: var(--ink); color: var(--on-ink); border-radius: 14px; padding: 14px 16px; margin: 14px 0 0; min-height: 3.2em; word-spacing: .2em; }
.tr-capo { display: grid; gap: 6px; }
.tr-capo .row { display: grid; grid-template-columns: 74px 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; background: var(--paper); font-size: .9rem; }
.tr-capo .row b { font-family: var(--font-head); font-size: .8rem; }
.tr-capo .row span { font-family: var(--font-head); font-weight: 700; }
.tr-capo .row.best { background: #F3EAF1; outline: 2px solid var(--deep); }
.tr-capo small { color: var(--muted); }

/* the ad: a tear-off flyer */
.adb { display: grid; gap: 16px; }
.adb-form { display: grid; gap: 12px; }
.adb-fields { display: grid; gap: 10px; }
.flyer { background: #FBFAF6; color: var(--ink); border: 1px solid rgba(0, 0, 0, .2); border-radius: 4px; padding: 22px 18px 0; box-shadow: 0 8px 18px rgba(0, 0, 0, .14); position: relative; max-width: 420px; margin: 8px auto 0; }
.flyer::before { content: ''; position: absolute; top: -10px; left: 50%; width: 20px; height: 20px; margin-left: -10px; border-radius: 50%; background: var(--deep); box-shadow: 0 2px 0 rgba(0, 0, 0, .3); }
.fl-kind { font: 700 .72rem/1.2 var(--font-head); letter-spacing: .1em; text-transform: uppercase; color: var(--deep); margin: 0 0 6px; }
.fl-title { font: 900 1.9rem/1.05 var(--font-head); letter-spacing: -.05em; text-transform: uppercase; margin: 0 0 14px; overflow-wrap: anywhere; }
.fl-lines { list-style: none; padding: 0; margin: 0 0 18px; font-size: .95rem; }
.fl-lines li { padding: 4px 0; border-bottom: 1px dotted rgba(0, 0, 0, .18); }
.fl-lines li b { font-weight: 700; }
.fl-tabs { display: grid; grid-template-columns: repeat(8, 1fr); border-top: 1.5px dashed rgba(0, 0, 0, .4); margin: 0 -18px; }
.fl-tabs span { writing-mode: vertical-rl; transform: rotate(180deg); font-size: .7rem; font-weight: 600; padding: 8px 0; text-align: left; border-left: 1px dashed rgba(0, 0, 0, .3); min-height: 120px; overflow: hidden; white-space: nowrap; display: flex; align-items: center; justify-content: flex-start; }
.fl-tabs span:last-child { border-left: 0; }
.brief-out { white-space: pre-wrap; font: 500 .95rem/1.5 var(--font-text); background: var(--paper); border: 1.5px dashed var(--line-2); border-radius: 14px; padding: 14px; margin: 14px 0 0; min-height: 6em; }

/* toast */
.toast { position: fixed; left: 50%; bottom: calc(var(--tabbar) + 16px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--ink); color: var(--on-ink); border: 1.5px solid var(--accent); border-radius: 999px; padding: 10px 18px; font-weight: 600; font-size: .9rem; z-index: 80; box-shadow: 0 6px 18px rgba(0, 0, 0, .3); max-width: calc(100% - 32px); text-align: center; }

/* ---------------------------------------------------------------- footer */
.foot { background: var(--ink); color: var(--on-ink-2); padding: 40px 0 28px; font-size: .9rem; --wm-pin: var(--on-ink); --wm-accent: var(--ink); }
.foot a { color: var(--on-ink); text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.f-top { display: grid; gap: 28px; }
.f-brand .wordmark { color: var(--on-ink); font-size: 1.6rem; }
.f-ru { font: 800 1rem/1.3 var(--font-head); color: var(--accent); margin: 14px 0 6px; }
.f-motto { margin: 0 0 4px; }
.f-motto-sm { font-size: .8rem; opacity: .7; }
.f-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.f-col h2 { font: 700 .72rem/1.3 var(--font-head); letter-spacing: .1em; text-transform: uppercase; color: var(--on-ink-2); margin: 0 0 12px; }
.f-col ul { list-style: none; padding: 0; margin: 0; }
.f-col li { margin: 0 0 8px; }
.f-projects { grid-column: 1 / -1; }
.f-projects ul { columns: 2; column-gap: 20px; }
.f-projects li { break-inside: avoid; }
.f-projects a i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--c); margin-right: 7px; vertical-align: .05em; }
.f-projects small { opacity: .6; }
.f-warranty { margin: 28px 0 0; font-size: .82rem; max-width: 70em; }
.f-bottom { margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(245, 244, 238, .12); font-size: .8rem; }
.f-bottom p { margin: 0 0 6px; }

/* ---------------------------------------------------------------- wider screens */
@media (min-width: 640px) {
  :root { --gutter: 24px; }
  h1 { font-size: 2.6rem; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .adb-fields { grid-template-columns: 1fr 1fr; }
  .tool-grid { grid-template-columns: repeat(4, 1fr); }
  .facts, .progs { grid-template-columns: 1fr 1fr; }
  .strip-more { display: inline; }
  .strip-dots i:nth-child(n+12) { display: block; }
  .wk-body { grid-template-columns: 1fr 1fr; }
  .wk-check { grid-column: 1 / -1; }
  .f-cols { grid-template-columns: repeat(3, 1fr); }
  .f-projects ul { columns: 3; }
}
@media (min-width: 960px) {
  body { padding-bottom: 0; font-size: 17px; }
  h1 { font-size: 3.3rem; }
  h2 { font-size: 1.8rem; }
  .tabbar { display: none; }
  .toast { bottom: 24px; }
  .nav { display: flex; gap: 4px; margin-left: 18px; }
  .nav a { color: var(--on-ink-2); text-decoration: none; font: 600 .9rem/1 var(--font-text); padding: 9px 12px; border-radius: 999px; }
  .nav a:hover { color: var(--on-ink); background: var(--ink-3); }
  .nav a[aria-current='page'] { color: var(--ink); background: var(--accent); }
  .hero-page { padding: 56px 0 52px; }
  .hero-home { padding: 56px 0 64px; }
  .hero-grid { grid-template-columns: 1.15fr .85fr; align-items: center; gap: 40px; }
  .band { padding: 64px 0; }
  .two { grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
  .tiles-3 { grid-template-columns: repeat(3, 1fr); }
  .tiles-4 { grid-template-columns: repeat(4, 1fr); }
  .tiles-5 { grid-template-columns: repeat(5, 1fr); }
  .tiles-5 .tile h3 { font-size: 1.02rem; }
  .adb { grid-template-columns: 1.1fr .9fr; align-items: start; }
  .adb-out { position: sticky; top: 80px; }
  .f-top { grid-template-columns: 300px 1fr; }
  .f-cols { grid-template-columns: repeat(3, 1fr) 2fr; }
  .f-projects { grid-column: auto; }
  .f-projects ul { columns: 2; }
}
@media (min-width: 1200px) {
  .nav-extra { display: inline-block; }
}
@media (max-width: 1199px) {
  .nav-extra { display: none; }
}
@media (max-width: 380px) {
  h1 { font-size: 1.8rem; }
  .tn-note { font-size: 3.6rem; }
  .mt-bpm output { font-size: 3.4rem; }
  .bt-row { grid-template-columns: 48px 1fr; }
  .bt-name { font-size: .64rem; }
  .wordmark { font-size: 1.15rem; }
}

/* ---------------------------------------------------------------- motion and print */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .strip, .top, .tabbar, .foot, .nbs, .hero, .tool-bar, .js-only, .toast, .check-bar { display: none !important; }
  body { background: #fff; padding: 0; }
  body.print-flyer main > *:not(.band) { display: none !important; }
  body.print-flyer .band { padding: 0; }
  body.print-flyer .prose > *:not(.adb), body.print-flyer .adb-form, body.print-flyer .tool-note { display: none !important; }
  body.print-flyer .adb { display: block; border: 0; padding: 0; }
  body.print-flyer .flyer { box-shadow: none; max-width: 100%; border: 1px solid #000; }
  body.print-flyer .fl-title { font-size: 3rem; }
  body.print-flyer .fl-tabs span { min-height: 180px; font-size: .9rem; }
}

/* ---- src/game.css ---- */
/* AbsoMusic — «Брейк» (src/game.js). Only the game: every selector sits under
   #break-game or starts with .bg-. Colours and fonts are the site's tokens
   (src/styles.css :root); the fallbacks keep the game readable on its own. */

#break-game {
  --bg-ink: var(--ink, #0b0c0f);
  --bg-paper: var(--paper, #f5f4ee);
  --bg-card: var(--card, #fff);
  --bg-accent: var(--accent, #b790ae);
  --bg-deep: var(--deep, #853177);
  --bg-flame: var(--flame, #ff4f1f);
  --bg-muted: var(--muted, #5a5c66);
  --bg-r: var(--r, 24px);
  --bg-head: var(--font-head, 'Unbounded', system-ui, sans-serif);
  --bg-text: var(--font-text, 'Onest', system-ui, sans-serif);
  position: relative;
  max-width: 560px;
  margin: 0 auto;
  color: var(--bg-ink);
  font-family: var(--bg-text);
  font-size: 1rem;
  line-height: 1.5;
}
#break-game *,
#break-game *::before,
#break-game *::after {
  box-sizing: border-box;
}
#break-game [hidden] {
  display: none !important;
}

.bg-shell {
  overflow: hidden;
  border: 3px solid var(--bg-ink);
  border-radius: var(--bg-r);
  background: var(--bg-paper);
}

/* ---- the top bar: name, points, trust, volume */
.bg-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  padding: 12px 16px;
  background: var(--bg-ink);
  color: var(--bg-paper);
}
.bg-title {
  margin-right: auto;
  font: 900 1.05rem/1 var(--bg-head);
  letter-spacing: 0.01em;
}
.bg-score {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-variant-numeric: tabular-nums;
}
.bg-score-l {
  font-size: 0.8rem;
  opacity: 0.75;
}
.bg-score-n {
  min-width: 2.5ch;
  font: 800 1.05rem/1 var(--bg-head);
  text-align: right;
}
.bg-trust {
  display: inline-flex;
  gap: 5px;
}
.bg-trust i {
  width: 12px;
  height: 12px;
  border: 2px solid var(--bg-accent);
  border-radius: 50%;
}
.bg-trust i.is-on {
  background: var(--bg-accent);
}
.bg-vol {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.bg-vol-ic {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.bg-vol-in {
  width: 88px;
  accent-color: var(--bg-accent);
}

/* ---- the stage: the big pad on ink */
.bg-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 20px 16px 18px;
  background: var(--bg-ink);
  color: var(--bg-paper);
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.35s ease;
}
.bg-phase {
  min-height: 2.6em;
  margin: 0;
  font: 700 1.05rem/1.3 var(--bg-head);
  text-align: center;
  text-wrap: balance;
}
.bg-dots {
  display: flex;
  gap: 12px;
  min-height: 18px;
  align-items: center;
}
.bg-dot {
  width: 14px;
  height: 14px;
  border: 2px solid var(--bg-accent);
  border-radius: 50%;
  transition: transform 0.08s ease;
}
.bg-dot-one {
  width: 18px;
  height: 18px;
}
.bg-dot.is-on {
  background: var(--bg-accent);
  transform: scale(1.15);
}
.bg-pad {
  display: grid;
  place-items: center;
  width: min(68vw, 260px);
  height: min(68vw, 260px);
  padding: 0;
  border: 5px solid var(--bg-paper);
  border-radius: 50%;
  background: var(--bg-accent);
  color: var(--bg-ink);
  font: 900 clamp(1.2rem, 6vw, 1.6rem)/1.1 var(--bg-head);
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.35s ease, filter 0.35s ease;
}
.bg-pad:focus-visible {
  outline: 4px solid var(--bg-paper);
  outline-offset: 5px;
}
.bg-pad-t {
  padding: 0 12px;
  text-align: center;
}
.bg-pad.is-hit {
  animation: bg-hit 0.12s ease-out;
}
@keyframes bg-hit {
  from {
    transform: scale(0.94);
  }
  to {
    transform: scale(1);
  }
}
.bg-hint {
  min-height: 1.5em;
  margin: 0;
  font-size: 0.95rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
  opacity: 0.85;
}
.bg-stop {
  min-height: 40px;
  padding: 6px 18px;
  border: 2px solid rgba(245, 244, 238, 0.45);
  border-radius: 999px;
  background: transparent;
  color: var(--bg-paper);
  font: 600 0.9rem/1 var(--bg-text);
  cursor: pointer;
}
.bg-stop:focus-visible {
  outline: 3px solid var(--bg-accent);
  outline-offset: 3px;
}

/* the silence: no beat on screen, the stage goes darker */
.bg-stage[data-phase='break'] {
  background: #030304;
}
.bg-stage[data-phase='break'] .bg-pad {
  opacity: 0.55;
  filter: saturate(0.5);
}
.bg-stage[data-phase='break'] .bg-dots {
  visibility: hidden;
}

/* the landing */
.bg-stage.is-flash::after,
.bg-stage.is-miss::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
}
.bg-stage.is-flash::after {
  background: var(--bg-accent);
  animation: bg-flash 0.5s ease-out;
}
.bg-stage.is-miss::after {
  box-shadow: inset 0 0 0 6px var(--bg-flame);
  animation: bg-flash 0.6s ease-out;
}
@keyframes bg-flash {
  from {
    opacity: 0.55;
  }
  to {
    opacity: 0;
  }
}

/* ---- cards: intro, the choice, a song's result, the set */
.bg-panel {
  padding: 20px 16px 22px;
}
.bg-panel > * + * {
  margin-top: 12px;
}
.bg-panel :focus {
  outline: none;
}
.bg-panel :focus-visible {
  outline: 3px solid var(--bg-deep);
  outline-offset: 3px;
}
.bg-eyebrow {
  margin: 0;
  color: var(--bg-deep);
  font: 700 0.78rem/1.3 var(--bg-text);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.bg-h {
  margin: 0;
  font: 900 clamp(1.35rem, 6.2vw, 2rem)/1.12 var(--bg-head);
  overflow-wrap: anywhere;
}
.bg-meta {
  margin: 0;
  color: var(--bg-muted);
  font-weight: 600;
}
.bg-lead {
  margin: 0;
  font-size: 1.05rem;
}
.bg-note {
  margin: 0;
  color: var(--bg-muted);
  font-size: 0.95rem;
}
.bg-msg {
  margin: 0;
  padding: 10px 14px;
  border: 2px solid var(--bg-ink);
  border-radius: 14px;
  background: var(--bg-card);
  font-weight: 600;
}
.bg-rules {
  margin: 0;
  padding-left: 1.2em;
}
.bg-rules li + li {
  margin-top: 6px;
}
.bg-ask {
  margin: 0;
  font: 800 1rem/1.3 var(--bg-head);
}

.bg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding-top: 4px;
}
.bg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  min-height: 48px;
  max-width: 100%;
  padding: 10px 20px;
  border: 3px solid var(--bg-ink);
  border-radius: 999px;
  background: var(--bg-ink);
  color: var(--bg-paper);
  font: 700 1rem/1.2 var(--bg-text);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.bg-btn-accent {
  background: var(--bg-accent);
  color: var(--bg-ink);
}
.bg-btn-ghost {
  background: transparent;
  color: var(--bg-ink);
}
.bg-btn-ink {
  background: var(--bg-ink);
  color: var(--bg-paper);
}

.bg-choices {
  display: grid;
  gap: 10px;
}
.bg-choice {
  display: grid;
  gap: 2px;
  width: 100%;
  min-height: 64px;
  padding: 10px 18px;
  border: 3px solid var(--bg-ink);
  border-radius: 18px;
  background: var(--bg-card);
  color: var(--bg-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.bg-choice-main {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font: 800 1.1rem/1.2 var(--bg-head);
}
.bg-choice-x {
  font-variant-numeric: tabular-nums;
}
.bg-choice-sub {
  color: var(--bg-muted);
  font-size: 0.92rem;
}

.bg-grade span {
  display: inline-block;
  padding: 0.05em 0.35em;
  border-radius: 10px;
}
.bg-grade-spot span,
.bg-grade-together span {
  background: var(--bg-accent);
}
.bg-grade-almost span {
  box-shadow: inset 0 -0.35em 0 var(--bg-accent);
}
.bg-grade-miss span {
  box-shadow: inset 0 -0.3em 0 rgba(255, 79, 31, 0.35);
}
.bg-err {
  margin: 0;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.bg-points {
  margin: 0;
  font: 800 1.15rem/1.3 var(--bg-head);
  font-variant-numeric: tabular-nums;
}
.bg-big {
  font-variant-numeric: tabular-nums;
}
.bg-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--bg-ink);
}
.bg-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line, rgba(11, 12, 15, 0.12));
  font-size: 0.95rem;
}
.bg-list b {
  font-variant-numeric: tabular-nums;
}
.bg-tip {
  margin: 0;
  padding: 12px 14px;
  border-left: 5px solid var(--bg-accent);
  background: var(--bg-card);
  border-radius: 0 14px 14px 0;
}
.bg-share-out {
  flex-basis: 100%;
  margin: 0;
  font-size: 0.92rem;
}
.bg-share-in {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 8px 10px;
  border: 2px solid var(--bg-ink);
  border-radius: 10px;
  background: var(--bg-card);
  color: var(--bg-ink);
  font: inherit;
}
.bg-find {
  padding: 14px;
  border: 3px solid var(--bg-ink);
  border-radius: 18px;
  background: var(--bg-card);
}
.bg-find > * + * {
  margin-top: 10px;
}
.bg-more {
  margin: 0;
  font-size: 0.95rem;
}
.bg-more a {
  color: var(--bg-deep);
  font-weight: 700;
}

.bg-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (hover: hover) {
  .bg-btn:hover {
    filter: brightness(1.06);
  }
  .bg-choice:hover {
    background: var(--bg-accent);
  }
}

@media (max-width: 380px) {
  .bg-top {
    padding: 10px 12px;
  }
  .bg-vol-in {
    width: 72px;
  }
  .bg-panel {
    padding: 18px 14px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bg-stage,
  .bg-pad,
  .bg-dot {
    transition: none;
  }
  .bg-pad.is-hit,
  .bg-stage.is-flash::after,
  .bg-stage.is-miss::after {
    animation: none;
  }
}
