/* Scoring rules (scoring.html, scoring.js): the rule every game shares, told by playing it first, then in six short steps.
   Brand: night ground, lime for action, violet, DynaPuff titles, 24 px cards, one CTA per block, nothing in capitals.
   The judgement's colours are the boards' (sdk/board.js): Perfect lime, Great violet, Good cyan, Miss grey. */
.sc-page { display: flex; flex-direction: column; gap: 24px; padding-top: 16px; }
.sc-page h2 { font-family: var(--font-display); font-weight: 600; font-size: 40px; line-height: 46px; color: var(--ivory); }
.sc-text { font-size: 18px; line-height: 28px; color: var(--tx-mid); max-width: 62ch; }

.sc-hero { display: grid; justify-items: start; gap: 14px; padding: 48px; border-radius: 32px; border: 1px solid var(--line-subtle); overflow: hidden; }   /* (its lights: site.css .glow) */
.sc-kicker { font-size: 15px; font-weight: 700; color: var(--lime); }
.sc-hero h1 { font-family: var(--font-display); font-weight: 600; font-size: 64px; line-height: 68px; color: var(--ivory); max-width: 14ch; }
.sc-lead { font-size: 20px; line-height: 31px; color: var(--tx-mid); max-width: 46ch; }

/* the demo: the HUD on top, the lane, the word, the result, Sound and the one big button */
.sc-try { display: grid; gap: 16px; }
.sc-try-head { display: grid; gap: 6px; }
.sc-try-head p { color: var(--tx-mid); font-size: 17px; line-height: 26px; max-width: 60ch; }
.sc-demo { position: relative; display: grid; gap: 12px; padding: 20px; border-radius: 28px; background: #0E0E15; border: 1px solid var(--line-subtle); outline: none;
  transition: box-shadow 0.3s ease; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.sc-demo.is-fever { box-shadow: inset 0 0 0 3px #C9B0FF, 0 0 48px rgba(164, 123, 255, 0.35); }
.sc-hud { display: flex; align-items: center; gap: 20px; }
.sc-hud small { display: block; font-size: 12px; font-weight: 600; color: var(--tx-mid); }
.sc-hud b { font-size: 22px; font-weight: 800; color: var(--ivory); font-variant-numeric: tabular-nums; }
.sc-hud-mult { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.sc-hud-mult b { font-size: 18px; }
.sc-hud-mult i { position: relative; width: 56px; height: 8px; border-radius: 999px; overflow: hidden; background: rgba(250, 247, 242, 0.14); }
.sc-hud-mult i::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--lime); transform-origin: 0 50%; transform: scaleX(var(--m, 0)); transition: transform 0.15s linear; }
.sc-hud-mult.is-ready i::after { animation: sc-blink 0.45s ease-in-out infinite alternate; }
.sc-hud-mult.is-fever b { color: #C9B0FF; }
.sc-hud-mult.is-fever i::after { background: #C9B0FF; transition: none; }
.sc-canvas { display: block; width: 100%; height: 132px; border-radius: 20px; background: rgba(250, 247, 242, 0.03); cursor: pointer; }
.sc-word { min-height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-align: center; }
.sc-word b { font-family: var(--font-display); font-weight: 600; font-size: 30px; line-height: 34px; }
.sc-word b.is-small { font-family: inherit; font-size: 16px; line-height: 22px; font-weight: 600; opacity: 0.8; }
.sc-word small { font-size: 14px; font-weight: 700; color: var(--tx-mid); }
.sc-end { display: grid; justify-items: center; gap: 8px; padding: 8px 0 4px; }
.sc-end[hidden] { display: none; }
.sc-end-top { display: flex; align-items: center; gap: 14px; }
.sc-end-pct { font-family: var(--font-display); font-weight: 600; font-size: 48px; line-height: 52px; color: var(--ivory); }
.sc-end-stars { display: flex; gap: 4px; }
.sc-end-pts { font-size: 18px; font-weight: 700; color: var(--ivory); font-variant-numeric: tabular-nums; }
.sc-end-counts { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.sc-end-counts li { display: flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border-radius: 999px; background: rgba(250, 247, 242, 0.06); font-size: 14px; color: var(--tx-mid); }
.sc-end-counts li span { color: var(--c); font-weight: 700; }
.sc-end-counts li b { color: var(--ivory); font-variant-numeric: tabular-nums; }
.sc-end-counts li.is-side { flex-basis: 100%; justify-content: center; background: none; }
.sc-demo-foot { display: flex; align-items: center; gap: 12px; }
.sc-sound { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-subtle); background: transparent;
  color: var(--tx-mid); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.sc-sound-ico { width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--sc-mute) center / contain no-repeat; mask: var(--sc-mute) center / contain no-repeat;
  --sc-mute: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 9h4l5-4v14l-5-4H4zM16 9l5 6M21 9l-5 6' stroke='black' stroke-width='2' fill='black'/%3E%3C/svg%3E");
  --sc-on: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 9h4l5-4v14l-5-4H4z' fill='black'/%3E%3Cpath d='M16.5 8.5a5 5 0 0 1 0 7M19 6a8.5 8.5 0 0 1 0 12' stroke='black' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); }
.sc-sound[aria-pressed="true"] { color: var(--lime); border-color: var(--lime); }
.sc-sound[aria-pressed="true"] .sc-sound-ico { -webkit-mask-image: var(--sc-on); mask-image: var(--sc-on); }
.sc-tap { flex: 1; min-height: 56px; border: 0; border-radius: 999px; background: var(--lime); color: var(--night); font: inherit; font-size: 18px; font-weight: 800; cursor: pointer; }
.sc-demo.is-on .sc-tap { transition: transform 0.06s ease; }
.sc-demo.is-press .sc-tap { animation: sc-press 0.12s ease-out; }
.sc-sound:focus-visible, .sc-tap:focus-visible, .sc-faq summary:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
@keyframes sc-press { from { transform: scale(0.96); } to { transform: scale(1); } }
@keyframes sc-blink { from { opacity: 0.55; } to { opacity: 1; } }

/* the six steps */
.sc-block { position: relative; display: grid; gap: 16px; padding: 40px 48px; border-radius: 32px; border: 1px solid var(--line-subtle); }
.sc-block:where(:not(.glow)) { background: var(--bg-1); }
.sc-block.is-violet { background: linear-gradient(135deg, #7650E6, #4B2FA8 70%); border-color: transparent; }
.sc-block.is-violet .sc-text { color: rgba(250, 247, 242, 0.88); }
.sc-block.is-fever { background: radial-gradient(70% 120% at 100% 0%, rgba(201, 176, 255, 0.28), transparent 70%), var(--bg-1); }
.sc-step { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--lime); color: var(--night); font-weight: 800; font-size: 18px; }
.sc-block.is-violet .sc-step { background: var(--ivory); }

.sc-tiers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.sc-tier { display: grid; gap: 4px; padding: 20px; border-radius: 24px; background: rgba(250, 247, 242, 0.04); border-top: 6px solid var(--c); }
.sc-tier.is-perfect { --c: #D2FF4D; } .sc-tier.is-great { --c: #A47BFF; } .sc-tier.is-good { --c: #4DE3FF; } .sc-tier.is-miss { --c: #8C8A99; }
.sc-tier b { font-family: var(--font-display); font-weight: 600; font-size: 26px; line-height: 30px; color: var(--c); }
.sc-worth { font-size: 32px; font-weight: 800; color: var(--ivory); font-variant-numeric: tabular-nums; }
.sc-tier p { font-size: 15px; line-height: 22px; color: var(--tx-mid); }
/* the target: the beat in the middle, Perfect around it, then Great, then Good */
.sc-target { position: relative; height: 56px; margin: 8px 0 18px; }
.sc-band { position: absolute; top: 12px; height: 32px; left: 50%; border-radius: 999px; transform: translateX(-50%); }
.sc-band.is-good { width: 100%; background: rgba(77, 227, 255, 0.28); }
.sc-band.is-great { width: 66.7%; background: rgba(164, 123, 255, 0.55); }
.sc-band.is-perfect { width: 36.4%; background: #D2FF4D; }
.sc-beat { position: absolute; left: 50%; top: 4px; width: 4px; height: 48px; margin-left: -2px; border-radius: 2px; background: var(--night); box-shadow: 0 0 0 2px var(--ivory); }
.sc-early, .sc-late { position: absolute; bottom: -18px; font-size: 13px; font-weight: 700; color: var(--tx-mid); }
.sc-early { left: 0; } .sc-late { right: 0; }
.sc-notes { list-style: none; display: grid; gap: 10px; }
.sc-notes li { position: relative; padding-left: 36px; font-size: 17px; line-height: 26px; color: var(--tx-mid); }
.sc-notes li::before { content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--lime)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m9.5 16.2-4.2-4.2-1.4 1.4 5.6 5.6L21 7.5l-1.4-1.4Z' fill='%2313131B'/%3E%3C/svg%3E") center / 16px no-repeat; }

.sc-star { display: inline-block; width: 28px; height: 28px; background: #FFD23F;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 2.8 2.8 5.9 6.4.8-4.7 4.4 1.2 6.4L12 17.1l-5.7 3.2 1.2-6.4-4.7-4.4 6.4-.8Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 2.8 2.8 5.9 6.4.8-4.7 4.4 1.2 6.4L12 17.1l-5.7 3.2 1.2-6.4-4.7-4.4 6.4-.8Z'/%3E%3C/svg%3E") center / contain no-repeat; }
.sc-star.is-off { background: rgba(250, 247, 242, 0.18); }
.sc-stars { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.sc-stars li { display: grid; justify-items: center; gap: 10px; padding: 22px 12px; border-radius: 24px; background: rgba(19, 19, 27, 0.28); text-align: center; }
.sc-stars li b { font-size: 20px; font-weight: 800; color: var(--ivory); }
.sc-stars li > span:first-child { margin-top: 2px; }

.sc-ladder { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.sc-rung { display: grid; place-items: center; min-width: 64px; min-height: 48px; padding: 0 14px; border-radius: 999px; background: rgba(250, 247, 242, 0.08); color: var(--ivory); font-size: 22px; font-weight: 800; }
.sc-rung.is-top { background: var(--lime); color: var(--night); }
.sc-ladder i { font-style: normal; font-size: 13px; font-weight: 600; color: var(--tx-mid); }
.sc-ladder i::after { content: " →"; }

.sc-meter { position: relative; height: 44px; border-radius: 999px; background: rgba(250, 247, 242, 0.08); overflow: hidden; }
.sc-meter i { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, #D2FF4D, #C9B0FF); transform-origin: 0 50%; animation: sc-fill 4s ease-in-out infinite; }
.sc-meter span { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; font-size: 18px; color: var(--night); opacity: 0; animation: sc-full 4s ease-in-out infinite; }
@keyframes sc-full { 0%, 52% { opacity: 0; } 60%, 85% { opacity: 1; } 92%, 100% { opacity: 0; } }   /* (its words only while the meter is full under them) */
@keyframes sc-fill { 0% { transform: scaleX(0.05); } 60%, 85% { transform: scaleX(1); } 100% { transform: scaleX(0.05); } }

.sc-split { display: flex; height: 56px; border-radius: 18px; overflow: hidden; }
.sc-split > span { display: flex; align-items: center; justify-content: center; min-width: 0; color: var(--night); font-size: 18px; font-weight: 800; }
.sc-split-acc { flex: 8; background: var(--lime); }
.sc-split-mult { flex: 2; background: var(--violet); }
/* the parts' numbers and names under the bar (never squeezed into its 20 %) */
.sc-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.sc-legend li { display: flex; align-items: center; gap: 8px; font-size: 16px; color: var(--tx-mid); }
.sc-legend li::before { content: ""; width: 14px; height: 14px; border-radius: 4px; background: var(--lime); }
.sc-legend li.is-mult::before { background: var(--violet); }
.sc-legend b { color: var(--ivory); font-variant-numeric: tabular-nums; }

.sc-diffs { display: flex; flex-wrap: wrap; gap: 10px; }
.sc-diff { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 20px 0 16px; border-radius: 999px; background: rgba(250, 247, 242, 0.06); color: var(--ivory); font-size: 17px; font-weight: 700; }
.sc-diff::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--c); }

.sc-faq { display: grid; gap: 12px; }
.sc-faq details { border-radius: 24px; background: var(--bg-1); border: 1px solid var(--line-subtle); }
.sc-faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 12px 24px; cursor: pointer; font-size: 18px; font-weight: 700; color: var(--ivory); border-radius: 24px; }
.sc-faq summary::-webkit-details-marker { display: none; }
.sc-faq summary::after { content: "+"; flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: rgba(250, 247, 242, 0.08); font-size: 20px; }
.sc-faq details[open] summary::after { content: "−"; background: var(--lime); color: var(--night); }
.sc-faq details p { padding: 0 24px 20px; font-size: 17px; line-height: 26px; color: var(--tx-mid); max-width: 64ch; }

.sc-close { display: grid; justify-items: start; gap: 16px; padding: 48px; border-radius: 32px; background: var(--lime); color: var(--night); }
.sc-close h2 { color: var(--night); }
.sc-close .btn-play { background: var(--night); color: var(--lime); }
.sc-close .btn-play-ico { background: var(--lime); color: var(--night); }

@media (prefers-reduced-motion: reduce) {
  .sc-meter i { animation: none; transform: scaleX(1); }
  .sc-meter span { animation: none; opacity: 1; }
  .sc-hud-mult.is-ready i::after, .sc-demo.is-press .sc-tap { animation: none; }
  .sc-demo { transition: none; }
}
@media (max-width: 860px) {
  .sc-tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sc-hero h1 { font-size: 48px; line-height: 52px; }
}
@media (max-width: 600px) {
  .sc-page h2 { font-size: 30px; line-height: 36px; }
  .sc-hero, .sc-block, .sc-close { padding: 28px 20px; border-radius: 28px; }
  .sc-hero h1 { font-size: 38px; line-height: 42px; }
  .sc-lead { font-size: 17px; line-height: 27px; }
  .sc-text { font-size: 16px; line-height: 25px; }
  .sc-demo { padding: 14px; border-radius: 24px; }
  .sc-hud { gap: 14px; }
  .sc-hud b { font-size: 18px; }
  .sc-hud-mult i { width: 40px; }
  .sc-tier { padding: 16px; }
  .sc-tier b { font-size: 22px; }
  .sc-worth { font-size: 26px; }
  .sc-stars li { padding: 16px 6px; }
  .sc-stars li b { font-size: 16px; }
  .sc-star { width: 22px; height: 22px; }
  .sc-split { height: 48px; }
  .sc-split > span { font-size: 15px; }
  .sc-close .btn-play { width: 100%; justify-content: center; }
}
