:root {
  color-scheme: light;
  --cream: #fff7e3;
  --paper: #fffcf4;
  --butter: #ffecad;
  --ink: #39283e;
  --muted: #685769;
  --line: #dfd3c4;
  --berry: #9c3659;
  --peach: #ffafba;
  --blush: #fbe1e6;
  --green: #276853;
  --mint: #e3f4df;
  --fern: #c8e5cd;
  --purple: #62479c;
  --lavender: #f0e8fc;
  --lilac: #e5d6f7;
  --white: #fff;
  --display: "Baloo 2", "Nunito", system-ui, sans-serif;
  --body: "Nunito", system-ui, sans-serif;
}
* { box-sizing: border-box }
body { margin: 0; background: var(--cream); color: var(--ink); font: 600 16px/1.55 var(--body); -webkit-font-smoothing: antialiased }
a { color: var(--green); text-underline-offset: .18em }
button, input { font: inherit }
button { cursor: pointer; color: inherit }
button:disabled { cursor: default; opacity: .5 }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px }
[hidden] { display: none !important }
.shell { width: min(1040px, calc(100% - 56px)); margin-inline: auto }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap }
.skip:focus { position: absolute; z-index: 3; background: var(--white); padding: 10px }
.header-row, .footer-row { display: flex; min-height: 73px; align-items: center; justify-content: space-between; gap: 14px }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font: 800 28px/1 var(--display); letter-spacing: -.055em; text-decoration: none; white-space: nowrap }
.brand-accent { color: var(--berry) }
.brand-mark { display: grid; place-items: center; width: 43px; height: 40px; flex: 0 0 auto; border: 2px solid var(--ink); border-radius: 15px; background: var(--fern); box-shadow: 0 2px var(--ink); transform: rotate(-7deg) }
.brand-mark i { width: 28px; height: 19px; border: 1.5px solid var(--ink); border-radius: 55% 55% 49% 49%; background: var(--blush); position: relative }
.brand-mark i::before { content: ""; position: absolute; top: 6px; left: 6px; width: 3px; height: 3px; border-radius: 50%; background: var(--ink); box-shadow: 10px 0 var(--ink), -3px 5px var(--peach), 13px 5px var(--peach) }
.brand-mark i::after { content: ""; position: absolute; left: 10px; top: 9px; width: 5px; height: 3px; border-bottom: 1.5px solid var(--ink); border-radius: 50% }
nav { display: flex; align-items: center; gap: clamp(6px, 1.85vw, 22px) }
nav a { font-size: 14px; font-weight: 850; color: var(--ink); text-decoration: none; padding: 6px 10px; border-radius: 999px; white-space: nowrap }
nav a:hover { text-decoration: underline }
nav a[aria-current] { background: var(--butter) }
.masthead { text-align: center; padding: 12px 0 21px }
h1, h2, h3, p { margin: 0 }
h1, h2, h3 { font-family: var(--display) }
.masthead h1 { font-weight: 800; font-size: clamp(43px, 7.4vw, 77px); line-height: 1; letter-spacing: -.044em; text-wrap: balance }
.masthead h1 span { display: inline-block }
.masthead h1 span:first-child { color: var(--berry) }
.masthead h1 span:nth-child(2) { color: var(--green) }
.masthead h1 span:last-child { color: var(--purple) }
.masthead p { margin: 8px auto 0; color: var(--muted); font-weight: 750; font-size: clamp(15px, 2vw, 18px); max-width: 68ch; text-wrap: balance }
.workspace { position: relative; padding-bottom: 5px }
.editor { position: relative; background: var(--paper); border: 2px solid var(--ink); border-radius: 25px; box-shadow: 0 5px var(--ink); overflow: hidden }
.editor-bar { padding: 9px 16px 9px 19px; min-height: 61px; display: flex; justify-content: space-between; align-items: center; gap: 9px; background: var(--paper); border-bottom: 2px solid var(--ink) }
.editor-file { min-width: 0; display: flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 850 }
.editor-file span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.file-dot { width: 11px; height: 11px; border: 1.5px solid var(--green); background: var(--fern); border-radius: 50%; flex-shrink: 0 }
.editor-open { display: flex; align-items: center; gap: 9px; flex-shrink: 0 }
.sample-button, .adjust button { border: 0; background: none; color: var(--muted); font-size: 13px; font-weight: 850; min-height: 38px; padding: 3px 6px }
.sample-button:hover, .adjust button:hover { color: var(--ink); text-decoration: underline }
button.button, .sound-button { display: inline-flex; justify-content: center; align-items: center; gap: 6px; min-height: 41px; padding: 7px 14px; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper); box-shadow: 0 2px var(--ink); font-weight: 900; font-size: 14px; line-height: 1.15 }
button.button:hover:not(:disabled), .sound-button:hover:not(:disabled) { filter: brightness(.97) }
button.button:active:not(:disabled), .sound-button:active:not(:disabled) { transform: translateY(2px); box-shadow: none }
button.upload { background: var(--peach) }
.upload span { font-size: 17px }
.sound-button { min-width: 42px; background: var(--cream); padding-inline: 10px }
.sound-button[aria-pressed="true"] { background: var(--butter) }
.sound-button svg { width: 18px; height: 18px; flex: 0 0 auto; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round }
.sound-button .sound-waves, .sound-button[aria-pressed="true"] .sound-mute { display: none }
.sound-button[aria-pressed="true"] .sound-waves { display: initial }
.editor-body { display: grid; grid-template-columns: minmax(0,1fr) minmax(305px,34%) }
.stage { display: grid; justify-items: center; align-content: center; padding: 15px 16px 8px; min-width: 0; background: var(--mint); background-image: radial-gradient(var(--fern) 1.2px, transparent 1.2px); background-size: 17px 17px }
.stage[data-over] { box-shadow: inset 0 0 0 4px var(--green) }
.surface { display: grid; place-items: center; position: relative; max-width: 100%; width: min(100%,var(--canvas-width,565px)); overflow: hidden; background: transparent }
.surface canvas { grid-area: 1/1; display: block; width: 100%; height: auto }
.overlay { z-index: 1; touch-action: none; cursor: grab }
.overlay:active { cursor: grabbing }
.editor[data-mode="paint"] .overlay, .editor[data-mode="erase"] .overlay { cursor: crosshair }
.stage-label { position: absolute; z-index: 2; bottom: 11px; left: 50%; transform: translateX(-50%); padding: 4px 12px; background: var(--paper); border: 1.5px solid var(--ink); border-radius: 999px; box-shadow: 0 2px var(--ink); font-size: 12px; font-weight: 900; white-space: nowrap; pointer-events: none }
.stage-meta { display: flex; justify-content: space-between; width: min(100%,var(--canvas-width,565px)); padding-top: 6px; font-size: 12px; color: var(--green); font-weight: 850 }
.controls { border-left: 2px solid var(--ink); padding: 15px 16px; background: var(--lavender); display: flex; flex-direction: column; gap: 10px; min-width: 0 }
.mode-note .mode-title { font-family: var(--display); font-size: 29px; font-weight: 800; line-height: 1.04; letter-spacing: -.027em }
.mode-note p:not(.mode-title) { margin-top: 3px; color: var(--muted); font-size: 13px; min-height: 2lh; line-height: 1.36 }
.tabs { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px }
.tabs button { border: 1.5px solid var(--ink); background: var(--paper); min-height: 37px; border-radius: 10px; font-size: 13px; font-weight: 900; white-space: nowrap }
.tabs button[aria-pressed="true"] { background: var(--butter); box-shadow: 0 2px var(--ink) }
.tabs button[data-mode="squish"][aria-pressed="true"] { background: var(--peach) }
.tabs span { font-size: 15px; margin-right: 2px }
.sliders { display: grid; gap: 6px; padding: 9px 11px; border: 1px solid var(--lilac); border-radius: 12px; background: var(--paper) }
.sliders label { display: grid; gap: 0; font-size: 13px; font-weight: 900 }
.sliders label span { display: flex; justify-content: space-between; gap: 8px }
.sliders output { font-size: 12px; font-weight: 800; color: var(--muted) }
.sliders input { width: 100%; height: 18px; margin: 1px 0; accent-color: var(--purple); cursor: pointer }
.adjust { display: flex; align-items: center; margin-inline: -4px; gap: 2px; flex-wrap: wrap }
.adjust button { font-size: 12px; min-height: 29px; padding-inline: 4px }
.download { display: grid; grid-template-columns: 1fr 1.1fr; gap: 8px }
button.png { background: var(--paper) }
button.gif { background: var(--butter) }
.editor[data-recording] button.gif { background: var(--peach) }
.export-note { font-size: 12px; color: var(--muted); font-weight: 750 }
.status { font-size: 12px; color: var(--berry); font-weight: 850 }
.status:empty { display: none }
.download-link { font-size: 12px; font-weight: 850; width: fit-content }
.editor-privacy { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; padding: 8px 12px; color: var(--muted); background: var(--paper); border-top: 2px solid var(--ink); font-size: 12px; font-weight: 850 }
.lock { width: 10px; height: 8px; border: 1.2px solid currentColor; border-radius: 2px; display: inline-block; position: relative; margin-top: 3px }
.lock::before { content: ""; position: absolute; height: 5px; top: -5px; left: 1px; right: 1px; border: 1.2px solid currentColor; border-bottom: 0; border-radius: 5px 5px 0 0 }
.divider { display: inline-block; background: var(--berry); border-radius: 50%; width: 3px; height: 3px }
.below { padding: 48px 0 64px }
.how h2, .faq h2, .notes h2, .legal h2 { font-size: clamp(29px,4.2vw,40px); font-weight: 800; line-height: 1.1; letter-spacing: -.035em }
.steps { margin: 16px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3,1fr); gap: 13px }
.steps li { min-width: 0; background: var(--mint); border: 1.5px solid var(--ink); border-radius: 16px; padding: 16px }
.steps li:nth-child(2) { background: var(--lavender) }
.steps li:nth-child(3) { background: var(--blush) }
.steps h3 { font-size: 22px; font-weight: 800; line-height: 1.15 }
.steps p, .notes p, .faq p, .legal p { margin-top: 7px; color: var(--muted) }
.notes { max-width: 82ch; margin: 33px auto 0; padding: clamp(18px,4vw,34px); background: var(--paper); border: 1.5px solid var(--line); border-radius: 18px }
.legal p { max-width: 74ch }
.notes h2:not(:first-child), .legal h2 { margin-top: 21px }
.faq { margin-top: 36px; display: grid; grid-template-columns: minmax(180px,1fr) minmax(0,2fr); gap: 17px }
details { border-bottom: 1px solid var(--line); padding: 10px 4px }
details:first-child { border-top: 1px solid var(--line) }
summary { cursor: pointer; font-weight: 850 }
.faq p { max-width: 68ch }
.legal { padding: 28px 0 70px; min-height: 65vh }
.legal h1 { font-size: clamp(43px,7vw,72px); font-weight: 800; line-height: 1.05; letter-spacing: -.04em; color: var(--green) }
.site-footer { border-top: 1px solid var(--line); background: var(--paper) }
.no-script { padding: 12px }

@media (max-width: 740px) {
  .shell { width: calc(100% - 32px) }
  .editor-body { grid-template-columns: 1fr }
  .controls { border-left: 0; border-top: 2px solid var(--ink); padding: 14px }
  .mode-note p:not(.mode-title) { min-height: 0 }
  .stage { padding: 11px 11px 6px }
  .steps, .faq { grid-template-columns: 1fr }
  .below { padding-top: 34px }
}
@media (max-width: 475px) {
  .shell { width: calc(100% - 24px) }
  .header-row { min-height: 57px; gap: 5px }
  .brand { font-size: 22px; gap: 6px }
  .brand-mark { width: 31px; height: 30px; border-radius: 10px }
  .brand-mark i { transform: scale(.78) }
  .header-row nav { gap: 3px }
  .header-row nav a { font-size: 12px; padding-inline: 5px }
  .header-row .how-link { display: none }
  .masthead { padding: 10px 0 16px }
  .masthead h1 { font-size: clamp(35px,9.8vw,48px) }
  .masthead p { margin-top: 6px }
  .editor { border-radius: 18px; box-shadow: 0 4px var(--ink) }
  .editor-bar { padding: 7px 9px; min-height: 56px }
  .editor-open { gap: 5px }
  .editor-file, .sample-button { font-size: 12px }
  .sample-button { padding-inline: 3px }
  button.button { padding-inline: 9px; font-size: 13px }
  .sound-button { padding-inline: 7px; min-width: 36px }
  .sound-button svg { width: 16px; height: 16px }
  .editor-privacy { gap: 5px }
}
@media (max-width: 350px) {
  .editor-bar { flex-wrap: wrap }
  .editor-file { flex-basis: 100% }
  .editor-open { width: 100%; justify-content: space-between }
}
