/* FLAMES: on top of site.css. */
header h1 { margin: 0; }
label { display: block; margin-top: 12px; font-weight: 700; }
label .pencil { display: block; font-weight: 400; }
.content input { max-width: 420px; text-transform: uppercase; letter-spacing: .04em; font-weight: 700; font-size: 20px; }
button.red, button.ink { display: inline-flex; align-items: center; min-height: 43px; margin-top: 14px; padding: 8px 14px; border-radius: 6px; border: 1px solid var(--red); background: var(--red); color: #fffaf2; font-weight: 700; cursor: pointer; }
button:disabled { opacity: .45; cursor: default; }
button.small, button.ink.small { background: none; border: 0; padding: 0; color: var(--red); font-weight: 700; min-height: 40px; margin-top: 8px; }
#working { margin-top: 18px; cursor: pointer; user-select: none; -webkit-user-select: none; font-family: var(--display); }
.name, .flames { display: flex; flex-wrap: wrap; gap: 0 3px; min-height: 48px; align-items: flex-end; }
.name { font-size: 30px; line-height: 48px; font-weight: 700; letter-spacing: .04em; }
.l { position: relative; display: inline-block; min-width: .35em; opacity: 0; transition: opacity .12s; }
.l.on { opacity: 1; }
.l::after { content: ""; position: absolute; left: -3px; right: -3px; top: 52%; height: 3px; border-radius: 2px; background: var(--red); transform: rotate(-9deg) scaleX(0); transform-origin: left center; transition: transform .2s ease-out; }
.l.struck::after { transform: rotate(-9deg) scaleX(1); }
.count { color: var(--red); font-weight: 700; font-size: 30px; line-height: 48px; opacity: 0; transition: opacity .25s; }
.count.on { opacity: 1; }
.flames { gap: 0 16px; margin-top: 14px; font-weight: 700; font-size: 36px; line-height: 56px; }
.flames .n { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); font: 400 14px/18px var(--body); color: var(--muted); opacity: 0; transition: opacity .2s; }
.flames .l.struck .n { opacity: 1; }
.flames .l.here::before { content: ""; position: absolute; bottom: 2px; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--ink); }
.loop { position: absolute; left: -14px; top: -6px; width: calc(100% + 28px); height: calc(100% + 10px); overflow: visible; pointer-events: none; }
.loop path { fill: none; stroke: var(--red); stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset .5s ease-in-out; }
.loop.on path { stroke-dashoffset: 0; }
.answer { color: var(--red); font-weight: 700; font-style: italic; font-size: 40px; line-height: 60px; margin-top: 10px; transform: rotate(-4deg) scale(.6); transform-origin: left; opacity: 0; transition: transform .35s cubic-bezier(.3,1.6,.5,1), opacity .2s; }
.answer.on { transform: rotate(-4deg) scale(1); opacity: 1; }
.reaction { padding-left: 4px; opacity: 0; transition: opacity .3s .15s; font-family: var(--body); }
.reaction.on { opacity: 1; }
#after { margin-top: 10px; }
#after button { display: block; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

label input { margin-top: 4px; }
