.creator-page, .help-page {
  color: var(--ink, #202124);
  padding-bottom: clamp(4rem, 8vw, 7.5rem);
}
.creator-page h1, .creator-page h2, .creator-page h3, .help-page h1, .help-page h2, .help-page h3,
.creator-page p, .help-page p {
  margin: 0;
}
.creator-page a, .help-page a { text-underline-offset: .21em; }
.creator-page [hidden] { display: none !important; }
.creator-page :is(section, h2)[id], .help-page :is(div, section)[id] { scroll-margin-top: 1.5rem; }
.maker-hero {
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
  grid-template-areas: "intro counter" "save counter";
  align-items: center;
  column-gap: clamp(3rem, 8vw, 7.5rem);
  padding: clamp(4rem, 7vw, 7rem) 0;
}
.maker-intro { grid-area: intro; align-self: end; }
.maker-intro h1, .help-title h1 {
  color: var(--ink, #202124);
  font-size: clamp(2.65rem, 4.4vw, 4.35rem);
  line-height: 1.13;
  letter-spacing: -.045em;
  text-wrap: balance;
  font-weight: 660;
}
.maker-intro p, .help-title p {
  max-width: 34em;
  margin: 1.25rem 0 0;
  color: var(--muted, #686871);
  font-size: clamp(1rem, 1.35vw, 1.22rem);
  line-height: 1.72;
}
.maker-save { grid-area: save; align-self: start; margin-top: 1.8rem; }
.maker-save .maker-caption { margin-top: .85rem; max-width: 31em; font-size: .88rem; line-height: 1.65; color: var(--muted, #686871); }
.maker-stage {
  grid-area: counter;
  background: #e9e5f3;
  display: grid;
  place-items: center;
  padding: clamp(2rem, 3.1vw, 3rem);
  border-radius: 5px;
}
.score-pad {
  width: min(100%, 22rem);
  background: #2d293e;
  color: #f9f7ff;
  padding: clamp(1.2rem, 2vw, 1.85rem);
  border-radius: 16px;
  box-shadow: 0 16px 26px -17px #382d6070, inset 0 1px 0 #584e67;
}
.score-pad label, .score-board span {
  display: block; color: #c6bdd9; font-size: .75rem; font-weight: 550; letter-spacing: .035em;
}
.score-pad input {
  width: 100%; height: 2.6rem; padding: .28rem 0 .55rem; border: 0; border-bottom: 1px solid #61576e; border-radius: 0;
  outline-offset: 3px; background: transparent; color: #fff; font: inherit; font-size: 1.35rem; font-weight: 550;
}
.score-board { padding: 1.15rem 0 1rem; }
.score-board output {
  display: block; width: 100%; overflow-wrap: anywhere; margin-top: .18rem;
  color: #f7f3ff; font-size: clamp(3rem, 5vw, 4.9rem); font-weight: 450; line-height: 1; letter-spacing: -.065em; font-variant-numeric: tabular-nums;
}
.score-actions { display: grid; grid-template-columns: 1.6fr 1fr; gap: .55rem; }
.score-actions button, .copy-actions button {
  min-height: 42px; padding: .52rem 1rem; border-radius: 6px; font: inherit; font-weight: 600; cursor: pointer;
}
.score-actions button { border: 1px solid #665c72; background: #393247; color: #ebe5f4; }
.score-actions button:first-child { background: #ded4ff; color: #332947; border-color: #ded4ff; }
.score-actions button:hover { filter: brightness(1.08); }
.score-actions button:active { transform: translateY(1px); }
.score-pad [data-score-status] { margin: .9rem 0 0; color: #c6bdd9; font-size: .75rem; line-height: 1.4; }
.score-pad :is(input, button):focus-visible { outline: 2px solid #c7b8ff; outline-offset: 3px; }
.guide-spread, .help-layout {
  display: grid; grid-template-columns: minmax(0, .74fr) minmax(0, 1.26fr);
  column-gap: clamp(2rem, 6vw, 6.5rem); border-top: 1px solid var(--line, #e8e8ec);
  padding: clamp(2.5rem, 4.4vw, 4.6rem) 0;
}
.guide-heading h2, .help-articles h2 {
  color: var(--ink, #202124); font-size: clamp(1.7rem, 2.35vw, 2.4rem); font-weight: 630;
  letter-spacing: -.036em; line-height: 1.22; text-wrap: balance;
}
.guide-heading p { margin-top: 1rem; max-width: 28em; color: var(--muted, #686871); line-height: 1.75; }
.prompt-sheet { align-self: start; border-left: 3px solid var(--accent, #6554c0); padding: .1rem 0 .1rem clamp(1.2rem, 2.2vw, 1.9rem); }
.prompt-sheet > p { line-height: 1.8; overflow-wrap: anywhere; }
.copy-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .8rem; margin-top: 1rem; }
.copy-actions button { background: var(--surface, white); color: var(--accent, #6554c0); border: 1px solid var(--line, #e8e8ec); font-size: .85rem; }
.copy-actions button:hover { border-color: var(--accent, #6554c0); }
.copy-actions span { font-size: .84rem; color: var(--muted, #686871); }
.guide-body { min-width: 0; max-width: 48rem; line-height: 1.72; }
.guide-body h3 { margin: 1.9rem 0 .5rem; font-size: clamp(1.15rem, 1.4vw, 1.4rem); font-weight: 630; line-height: 1.4; letter-spacing: -.018em; }
.guide-body > h3:first-child { margin-top: 0; }
.guide-body p + p, .guide-body h2 + p { margin-top: .8rem; }
.guide-body ol { padding-left: 1.45em; margin: .75rem 0 1.15rem; }
.guide-body li + li { margin-top: .45rem; }
.guide-body code { font-size: .9em; overflow-wrap: anywhere; }
.guide-body pre { background: #eeedee; color: #292834; line-height: 1.65; padding: 1rem; overflow: auto; border-radius: 4px; margin: 1rem 0; }
.guide-body pre code { font-size: .83rem; overflow-wrap: normal; }
.guide-fold {
  border: 0; margin: .85rem 0 0; border-bottom: 1px solid var(--line, #e8e8ec); border-radius: 0; padding: 0 0 .6rem;
}
.guide-fold + .guide-fold { margin-top: 0; }
.guide-fold > summary {
  color: var(--ink, #202124); min-height: 46px; cursor: pointer; display: flex; align-items: center; gap: 1rem;
  justify-content: space-between; list-style: none; font-size: 1rem; font-weight: 575; line-height: 1.5;
}
.guide-fold > summary::-webkit-details-marker { display: none; }
.guide-fold > summary::after { content: "+"; color: var(--accent, #6554c0); font: 1.25rem/1.2 system-ui, sans-serif; }
.guide-fold[open] > summary::after { content: "−"; }
.guide-fold[open] > p { margin: .6rem 0 1rem; }
.guide-fold + p { margin-top: 1rem; }
.guide-file { margin: .65rem 0 1rem; padding: 0; border: 0; font-size: .82rem; color: var(--muted, #686871); }
.guide-file summary { cursor: pointer; }
.guide-file p { overflow-wrap: anywhere; }
.guide-note { color: var(--muted, #686871); }
.help-title { padding: clamp(3rem, 6vw, 6rem) 0 clamp(2rem, 3.6vw, 3.6rem); }
.help-layout { grid-template-columns: minmax(12rem, .55fr) minmax(0, 1.45fr); }
.help-index {
  align-self: start; position: sticky; top: 7rem; display: grid; gap: .1rem; padding-left: 1rem; border-left: 2px solid var(--line, #e8e8ec);
}
.help-index a { display: block; width: fit-content; padding: .45rem .15rem; color: var(--muted, #686871); font-size: .98rem; text-decoration: none; }
.help-index a:hover { color: var(--accent, #6554c0); text-decoration: underline; }
.help-articles section { padding: 2.5rem 0; border-bottom: 1px solid var(--line, #e8e8ec); }
.help-articles section:first-child { padding-top: 0; }
.help-articles section:last-child { padding-bottom: 0; border: 0; }
@media (max-width: 760px) {
  .maker-hero { grid-template-columns: 1fr; grid-template-areas: "intro" "counter" "save"; padding: 2.7rem 0; row-gap: 1.4rem; }
  .maker-intro h1, .help-title h1 { font-size: clamp(2.1rem, 7.1vw, 2.75rem); }
  .maker-intro p, .help-title p { margin-top: .8rem; }
  .maker-stage { padding: 1.15rem; }
  .score-pad { max-width: 23rem; padding: 1.15rem 1.35rem; }
  .score-board { padding-top: .8rem; }
  .score-board output { font-size: 3.4rem; }
  .maker-save { margin-top: 0; }
  .guide-spread, .help-layout { grid-template-columns: 1fr; gap: 1.5rem; padding: 2.3rem 0; }
  .guide-heading h2 br { display: none; }
  .guide-heading p { margin-top: .55rem; }
  .help-title { padding: 2.7rem 0 1.6rem; }
  .help-layout { padding-top: 1rem; gap: 2rem; }
  .help-index { position: static; grid-template-columns: 1fr 1fr; border-left: 0; border-bottom: 1px solid var(--line, #e8e8ec); padding: 0 0 .85rem; }
  .help-index a { min-height: 44px; color: var(--accent, #6554c0); }
}
@media (prefers-color-scheme: dark) {
  .maker-stage { background: #352f43; }
  .score-pad { box-shadow: 0 16px 26px -16px #0c0a1290, inset 0 1px 0 #584e67; }
  .guide-body pre { background: #282634; color: #efebf7; }
}
