:root { --page: #fff8e6; --card: #ffffff; --ink: #17141a; --quiet: #6b6470; --accent: #ff2d9b; --tape: #fcff6f; }
@media (prefers-color-scheme: dark) {
  :root { --page: #242231; --card: #2d2b3d; --ink: #fff8e6; --quiet: #a9a4bd; --tape: #e5d94e; }
}
* { box-sizing: border-box; }
html { background: var(--page); color: var(--ink); font: 17px/1.5 ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; align-items: center; padding: 6vh 16px 24px; }
main { width: 100%; max-width: 620px; background: var(--card); border: 3px solid var(--ink); border-radius: 18px; box-shadow: 6px 6px 0 var(--ink); padding: 28px; }
@media (prefers-color-scheme: dark) { main { box-shadow: 6px 6px 0 #000; } }
.brand { display: inline-block; margin: 0 0 18px; padding: 2px 10px; background: var(--tape); color: #17141a; font-weight: 800; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; transform: rotate(-2deg); }
h1 { margin: 0; font-size: 2rem; line-height: 1.15; overflow-wrap: anywhere; }
h2 { margin: 1.6em 0 .3em; font-size: 1.1rem; }
p, li { overflow-wrap: anywhere; }
.by { margin: 6px 0 0; color: var(--quiet); }
.by b { color: var(--ink); }
a { color: inherit; }
.player { display: flex; align-items: center; gap: 14px; margin: 26px 0 8px; flex-wrap: wrap; }
.player audio { width: 100%; }
.player .play, .player .time { display: none; }
.player.js audio { display: none; }
.player.js .play { display: grid; place-items: center; flex: none; width: 56px; height: 56px; border-radius: 50%; border: 3px solid var(--ink); background: var(--accent); color: #fff; cursor: pointer; box-shadow: 3px 3px 0 var(--ink); }
.player.js .play:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.player .play svg { width: 22px; height: 22px; fill: currentColor; }
.player .play .pause, .player.playing .play .start { display: none; }
.player.playing .play .pause { display: block; }
.wave { position: relative; flex: 1 1 240px; height: 72px; cursor: pointer; }
.wave svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: .62; }
.wave .all { color: var(--quiet); opacity: .55; }
.wave .done { color: var(--accent); clip-path: inset(0 100% 0 0); }
.player.js .time { display: block; flex: 1 0 100%; margin: 0; text-align: right; color: var(--quiet); font-size: .85rem; font-variant-numeric: tabular-nums; }
.actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin: 22px 0 0; }
.button, button.button { display: inline-block; padding: 10px 18px; border: 3px solid var(--ink); border-radius: 12px; background: var(--ink); color: var(--page); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.quiet { color: var(--quiet); font-size: .9rem; }
footer { margin-top: 22px; color: var(--quiet); font-size: .85rem; }
footer a { margin: 0 8px; }
form label { display: block; margin: 14px 0 4px; font-weight: 700; }
form .choice { display: block; margin: 4px 0; font-weight: 400; }
textarea, input[type=text] { width: 100%; padding: 10px; border: 3px solid var(--ink); border-radius: 10px; background: var(--page); color: var(--ink); font: inherit; }
.trap { position: absolute; left: -9999px; }
.problem { padding: 8px 12px; border: 3px solid var(--accent); border-radius: 10px; }