/* Ruly: a sorting bench under soft mint and coral light. The baby dragon is the rule keeper;
   the y of the wordmark ends in his tail. Mint = fits, coral = doesn't, yellow = the moment you get it. */
:root {
  --bg: #F4F5F8;
  --grid: #DDE1E8;
  --surface: #FFFFFF;
  --ink: #14161C;
  --muted: #5A6070;
  --line: #E1E4EA;
  --shadow: rgba(20, 22, 28, 0.07);
  --fit: #12A27A;
  --fit-ink: #05664A;
  --fit-bg: #E3F6EE;
  --fit-soft: #C5ECDA;
  --nofit: #E0475F;
  --nofit-ink: #9E1F37;
  --nofit-bg: #FCE9EC;
  --nofit-soft: #F6CBD3;
  --hl: #FFD43B;
  --hl-ink: #2B2300;
  --hl-soft: #FFF1BF;
  --glow-fit: rgba(18, 162, 122, 0.20);
  --glow-no: rgba(224, 71, 95, 0.13);
  --glow-hl: rgba(255, 212, 59, 0.24);
  --scale: rgba(20, 22, 28, 0.05);
  --over: #B4530A;
  --font-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
html { color-scheme: light; -webkit-text-size-adjust: 100%; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 760px 460px at -8% -6%, var(--glow-fit), transparent 70%),
    radial-gradient(ellipse 680px 420px at 108% -4%, var(--glow-no), transparent 70%),
    radial-gradient(ellipse 900px 380px at 50% 104%, var(--glow-hl), transparent 70%),
    radial-gradient(circle at 50% 0, transparent 13px, var(--scale) 13.5px 14.5px, transparent 15px),
    radial-gradient(circle at 50% 0, transparent 13px, var(--scale) 13.5px 14.5px, transparent 15px);
  background-size: auto, auto, auto, 30px 15px, 30px 15px;
  background-position: 0 0, 0 0, 0 0, 0 0, 15px 7.5px;
  background-repeat: no-repeat, no-repeat, no-repeat, repeat, repeat;
  color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.5;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  -webkit-font-smoothing: antialiased;
}
.app { max-width: 560px; margin: 0 auto; padding-block: max(18px, env(safe-area-inset-top, 0px)) max(40px, env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 16px; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--hl); outline-offset: 2px; border-radius: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 1px 0 var(--line), 0 14px 30px -18px var(--shadow); }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wordmark { display: inline-block; white-space: nowrap; font-family: var(--font-display); font-weight: 800; font-size: 40px; line-height: 1; letter-spacing: -1.6px; color: var(--ink); text-decoration: none; }
.wordmark .y-tip { fill: #FF6B7F; }
.wordmark svg.y { display: inline-block; width: 0.69em; height: 1em; margin-left: -1px; vertical-align: -0.27em; overflow: visible; }
.tools { display: flex; gap: 6px; }
.iconbtn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 0 14px; height: 42px; font-size: 14px; font-weight: 600; box-shadow: 0 6px 16px -12px var(--shadow); transition: border-color .2s; }
.iconbtn:hover { border-color: var(--muted); }
.iconbtn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* Panels */
.panel { padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; animation: rise .28s ease-out; }
.panel h2 { font-family: var(--font-display); font-size: 21px; letter-spacing: -0.4px; margin: 0; }
.panel p { margin: 0; color: var(--muted); }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.x { border: 0; background: var(--bg); font-size: 20px; line-height: 1; width: 40px; height: 40px; border-radius: 12px; color: var(--muted); }
.ex { display: flex; gap: 6px; flex-wrap: wrap; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 12px; counter-increment: s; }
.steps li::before { content: counter(s); grid-row: span 2; width: 32px; height: 32px; border-radius: 10px; background: var(--hl); color: var(--hl-ink); font-family: var(--font-display); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.steps b { font-weight: 700; }
.steps span { color: var(--muted); }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Puzzle header */
.puzzle { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.pz-title { display: flex; flex-direction: column; gap: 4px; }
.pz-date { font-size: 13px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: var(--muted); }
.pz-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.num { font-family: var(--font-display); font-weight: 800; font-size: 30px; letter-spacing: -1px; line-height: 1; }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.tag .glyph { font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--muted); }
.diff { display: inline-flex; gap: 3px; margin-left: 2px; }
.diff i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); display: block; }
.diff i.on { background: var(--ink); }
.meter { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; }
.dots { display: flex; gap: 4px; }
.dot { width: 13px; height: 7px; border-radius: 4px; background: var(--line); transition: background .3s, transform .3s; }
.dot.on { background: var(--ink); }
.dot.on.last { transform: scaleY(1.35); }
.meter-label { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; font-weight: 600; }
.meter-label.over { color: var(--over); }

/* Trays */
.bins { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.bin { border-radius: 22px; padding: 14px; min-height: 200px; display: flex; flex-direction: column; gap: 12px; border: 1px solid transparent; transition: box-shadow .5s; }
.bin.fit { background: var(--fit-bg); border-color: var(--fit-soft); }
.bin.nofit { background: var(--nofit-bg); border-color: var(--nofit-soft); }
.bin.pulse.fit { animation: glowFit .9s ease-out; }
.bin.pulse.nofit { animation: glowNo .9s ease-out; }
@keyframes glowFit { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--fit) 55%, transparent); } 100% { box-shadow: 0 0 0 9px transparent; } }
@keyframes glowNo { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--nofit) 55%, transparent); } 100% { box-shadow: 0 0 0 9px transparent; } }
.bin-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.bin h2 { margin: 0; font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.badge { width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.badge svg { width: 13px; height: 13px; }
.fit .badge { background: var(--fit); color: var(--surface); }
.nofit .badge { background: var(--nofit); color: var(--surface); }
.count { font-family: var(--font-mono); font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--surface); }
.fit h2, .fit .count { color: var(--fit-ink); }
.nofit h2, .nofit .count { color: var(--nofit-ink); }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 7px; }
.chips li { font-family: var(--font-mono); font-weight: 500; font-size: 15px; background: var(--surface); border-radius: 10px; padding: 5px 10px 4px; overflow-wrap: anywhere; box-shadow: 0 2px 0 var(--line); }
.fit .chips li { color: var(--fit-ink); box-shadow: 0 2px 0 var(--fit-soft); }
.nofit .chips li { color: var(--nofit-ink); box-shadow: 0 2px 0 var(--nofit-soft); }
.chips li.seed { background: transparent; box-shadow: none; border: 1.5px dashed currentColor; padding: 4px 9px 3px; }
.chips li.new { animation: drop .42s cubic-bezier(.2, .9, .3, 1.35); }
@keyframes drop { from { transform: translateY(-14px) scale(.7); opacity: 0; } to { transform: none; opacity: 1; } }
.legend { margin: -4px 0 0; font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.legend span { display: inline-block; width: 18px; height: 12px; border-radius: 4px; border: 1.5px dashed var(--muted); }

/* Composer */
.composer { display: flex; flex-direction: column; gap: 12px; }
form.row { position: relative; display: flex; }
.field { width: 100%; border: 2px solid var(--line); background: var(--surface); border-radius: 18px; padding: 14px 112px 14px 18px; font-family: var(--font-mono); font-size: 18px; min-height: 60px; box-shadow: 0 10px 24px -18px var(--shadow); transition: border-color .2s; }
.field:focus { border-color: var(--ink); outline: none; }
.field::placeholder { color: var(--muted); opacity: .8; }
.testbtn { position: absolute; right: 7px; top: 7px; bottom: 7px; border: 0; border-radius: 13px; padding: 0 20px; background: var(--ink); color: var(--bg); font-weight: 700; font-size: 16px; display: inline-flex; align-items: center; gap: 6px; }
.testbtn svg { width: 16px; height: 16px; }
.err { margin: -4px 0 0; min-height: 20px; font-size: 14px; color: var(--nofit-ink); }
.err:empty { min-height: 0; margin: -6px 0 0; }
.actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.btn { border: 0; border-radius: 16px; padding: 12px 18px; font-weight: 700; font-size: 16px; min-height: 54px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: transform .12s; }
.btn:active { transform: scale(.98); }
.btn svg { width: 18px; height: 18px; }
.btn.primary { background: var(--ink); color: var(--bg); }
.btn.hl { background: var(--hl); color: var(--hl-ink); box-shadow: 0 3px 0 #D9A900; }
.btn.ghost { background: var(--surface); border: 1.5px solid var(--line); color: var(--ink); font-weight: 600; }
.btn:disabled { opacity: .45; cursor: default; }
.hints { display: flex; flex-direction: column; gap: 8px; }
.hint { padding: 12px 14px; font-size: 15px; display: flex; gap: 10px; align-items: flex-start; border-radius: 16px; animation: rise .28s ease-out; }
.hint b { font-size: 11px; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); display: block; }
mark { background: var(--hl); color: var(--hl-ink); border-radius: 4px; padding: 0 3px; font-family: var(--font-mono); }
.link { background: none; border: 0; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; font-size: 14px; padding: 6px 0; align-self: center; min-height: 40px; }
.confirm { display: flex; gap: 8px; justify-content: center; align-items: center; flex-wrap: wrap; font-size: 14px; color: var(--muted); }

/* Final sort */
.sortwrap { padding: 18px; display: flex; flex-direction: column; gap: 12px; animation: rise .3s ease-out; }
.sortwrap h2 { margin: 0; font-family: var(--font-display); font-size: 24px; letter-spacing: -0.6px; }
.sort { display: flex; flex-direction: column; gap: 8px; }
.sort-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--bg); border: 1px solid transparent; border-radius: 14px; padding: 7px 7px 7px 14px; transition: background .2s, border-color .2s; }
.sort-row[data-ans="y"] { background: var(--fit-bg); border-color: var(--fit-soft); color: var(--fit-ink); }
.sort-row[data-ans="n"] { background: var(--nofit-bg); border-color: var(--nofit-soft); color: var(--nofit-ink); }
.sort-item { font-family: var(--font-mono); font-size: 17px; font-weight: 500; overflow-wrap: anywhere; min-width: 0; }
.seg { display: flex; gap: 6px; flex-shrink: 0; }
.seg button { width: 46px; height: 46px; border: 1.5px solid var(--line); background: var(--surface); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); transition: background .15s, border-color .15s, color .15s, transform .15s; }
.seg button svg { width: 18px; height: 18px; }
.seg button.y:hover { border-color: var(--fit); color: var(--fit-ink); }
.seg button.n:hover { border-color: var(--nofit); color: var(--nofit-ink); }
.seg button[aria-pressed="true"] { transform: scale(1.06); }
.seg button[aria-pressed="true"].y { background: var(--fit); border-color: var(--fit); color: var(--surface); }
.seg button[aria-pressed="true"].n { background: var(--nofit); border-color: var(--nofit); color: var(--surface); }
.final-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.notice { margin: 0; font-size: 15px; padding: 12px 14px; border-radius: 16px; display: flex; gap: 10px; align-items: center; }
.notice > svg { width: 20px; height: 20px; color: var(--over); flex-shrink: 0; }

/* Verdict */
.verdict { padding: 22px 20px; display: flex; flex-direction: column; gap: 14px; align-items: stretch; }
.verdict { position: relative; overflow: hidden; }
.verdict-hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding-top: 4px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); }
.tier { font-family: var(--font-display); font-weight: 800; font-size: 60px; line-height: .95; letter-spacing: -2.4px; margin-top: 4px; }
.tier span { background: linear-gradient(transparent 70%, var(--hl) 70% 96%, transparent 96%); padding: 0 6px; }
.tier.in { animation: stamp .55s cubic-bezier(.2, .9, .3, 1.25); }
@keyframes stamp { from { transform: scale(1.25) rotate(-3deg); opacity: 0; } to { transform: none; opacity: 1; } }
.verdict .line { margin: 0; color: var(--muted); font-variant-numeric: tabular-nums; }
.rulebox { border-radius: 16px; background: var(--fit-bg); color: var(--fit-ink); padding: 12px 14px; font-weight: 600; border: 1px solid var(--fit-soft); }
.rulebox small { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .8px; font-weight: 700; opacity: .85; margin-bottom: 2px; }
.ticket { position: relative; border: 1.5px dashed var(--line); border-radius: 16px; padding: 4px; background: var(--bg); }
.share { width: 100%; font-family: var(--font-mono); font-size: 14px; background: transparent; border: 0; padding: 10px 12px; white-space: pre-wrap; margin: 0; color: var(--ink); resize: none; display: block; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stat { background: var(--bg); border-radius: 14px; padding: 10px; text-align: center; }
.stat b { display: block; font-family: var(--font-display); font-size: 26px; font-variant-numeric: tabular-nums; letter-spacing: -0.5px; }
.stat span { font-size: 12px; color: var(--muted); }
.next { text-align: center; margin: 0; font-size: 14px; color: var(--muted); }

/* Footer */
.foot { display: flex; flex-direction: column; gap: 10px; align-items: center; padding-top: 6px; }
.foot p { margin: 0; font-size: 13px; color: var(--muted); }

.dg { display: block; width: 100%; height: 100%; overflow: visible; }
.dg .dg-o { stroke: #1D2130; stroke-width: 3; stroke-linejoin: round; }
.dg .dg-tube-o { fill: none; stroke: #1D2130; stroke-linecap: round; }
.dg .dg-tube { fill: none; stroke: #36C98F; stroke-linecap: round; }
.dg .dg-body { fill: #36C98F; }
.dg .dg-shade { fill: #22A876; }
.dg .dg-muzzle { fill: #6BE0B2; }
.dg .dg-belly { fill: #FFE9A8; }
.dg .dg-plates { fill: none; stroke: #EBC25A; stroke-width: 1.8; stroke-linecap: round; }
.dg .dg-coral { fill: #FF6B7F; }
.dg .dg-vein { fill: none; stroke: #E0475F; stroke-width: 2; stroke-linecap: round; }
.dg .dg-horn { fill: #FFD43B; }
.dg .dg-ink { fill: #1D2130; }
.dg .dg-white { fill: #FFFFFF; }
.dg .dg-cheek { fill: #FF9CAC; }
.dg .dg-shine { fill: #FFFFFF; opacity: .35; }
.dg .dg-spark { fill: #FFD43B; }
.dg .dg-line { fill: none; stroke: #1D2130; stroke-width: 3; stroke-linecap: round; }
.dg .dg-fang { fill: #FFFFFF; stroke: #1D2130; stroke-width: 1; stroke-linejoin: round; }
.dg .dg-tongue { fill: #FF6B7F; }
.dg .dg-sweat { fill: #9ED8FF; stroke-width: 2.2; }
.dg .dg-fire-o { fill: #FF5A4E; }
.dg .dg-fire-i { fill: #FFD43B; }
.dg .dg-shadow { fill: rgba(20, 22, 28, .12); }
.dg .dg-happy, .dg .dg-frown, .dg .dg-brows, .dg .dg-open, .dg .dg-sweat, .dg .dg-flame { display: none; }
[data-mood="happy"] .dg .dg-eyes { display: none; }
[data-mood="happy"] .dg .dg-happy, [data-mood="happy"] .dg .dg-open { display: inline; }
[data-mood="happy"] .dg .dg-smile, [data-mood="happy"] .dg .dg-fang { display: none; }
[data-mood="oops"] .dg .dg-brows, [data-mood="oops"] .dg .dg-sweat { display: inline; }
[data-mood="oops"] .dg .dg-smile { display: none; }
[data-mood="oops"] .dg .dg-frown { display: inline; }
[data-mood="oops"] .dg .dg-fang { display: none; }
[data-flame="on"] .dg .dg-flame { display: inline; }

/* Mascot: the rule keeper */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.mascot { display: inline-block; flex-shrink: 0; transform-origin: 50% 100%; }
.mascot.hd { width: 56px; height: 56px; }
.mascot.sm { width: 46px; height: 46px; }
.mascot.big { width: 136px; height: 136px; padding: 10px; margin-bottom: 6px; background: radial-gradient(circle at 50% 56%, var(--hl-soft) 0 47%, transparent 48%); }
.mascot .dg-all { transform-box: fill-box; transform-origin: 50% 100%; animation: breathe 3.4s ease-in-out infinite; }
.mascot .dg-eyes { transform-box: fill-box; transform-origin: center; animation: blink 5.2s infinite; }
.mascot .dg-pupils { transition: transform .25s ease; }
.mascot[data-look="l"] .dg-pupils { transform: translateX(-2.8px); }
.mascot[data-look="r"] .dg-pupils { transform: translateX(2.8px); }
.mascot[data-look="d"] .dg-pupils { transform: translate(1px, 2.6px); }
.mascot .dg-f1, .mascot .dg-f2 { transform-box: fill-box; transform-origin: 50% 90%; animation: flicker .8s ease-in-out infinite alternate; }
.mascot .dg-f2 { animation-delay: -.4s; }
.mascot .dg-spark { transform-box: fill-box; transform-origin: center; animation: twinkle 1.4s ease-in-out infinite; }
.mascot .dg-s2 { animation-delay: -.7s; }
.mascot.hop { animation: hop .5s cubic-bezier(.3, .8, .4, 1); }
.mascot.shake { animation: shake .5s ease; }
@keyframes breathe { 0%, 100% { transform: none; } 50% { transform: scale(1.012, .988); } }
@keyframes blink { 0%, 93%, 100% { transform: scaleY(1); } 95.5% { transform: scaleY(.1); } }
@keyframes flicker { from { transform: scale(.9, .96) rotate(-5deg); } to { transform: scale(1.06, 1.12) rotate(5deg); } }
@keyframes twinkle { 0%, 100% { transform: scale(.55); opacity: .5; } 50% { transform: scale(1.1); opacity: 1; } }
@keyframes hop { 0%, 100% { transform: none; } 35% { transform: translateY(-8px) scale(1.03, .97); } 65% { transform: translateY(0) scale(1.04, .95); } }
@keyframes shake { 0%, 100% { transform: none; } 20% { transform: rotate(-8deg); } 45% { transform: rotate(7deg); } 70% { transform: rotate(-3deg); } }

/* Speech bubble */
.say { position: relative; align-self: flex-start; max-width: min(100%, 470px); margin-top: -2px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 11px 16px; box-shadow: 0 12px 26px -18px var(--shadow); transform-origin: 28px 0; }
.say::before { content: ""; position: absolute; top: -7px; left: 22px; width: 12px; height: 12px; background: var(--surface); border-left: 1px solid var(--line); border-top: 1px solid var(--line); transform: rotate(45deg); border-radius: 3px 0 0 0; }
.say p { margin: 0; font-size: 15px; font-weight: 500; text-wrap: pretty; }
.say.pop { animation: pop .32s cubic-bezier(.2, .9, .3, 1.3); }
@keyframes pop { from { transform: scale(.94); opacity: .3; } to { transform: none; opacity: 1; } }

/* Confetti */
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; top: -14px; width: 8px; height: 13px; border-radius: 2px; animation: fall linear forwards; }
@keyframes fall { to { transform: translate(var(--dx), 460px) rotate(var(--r)); opacity: 0; } }
.notice .mascot { margin: -6px 0 -8px; }

/* Live site */
.testbtn:disabled, .btn.busy { opacity: .6; cursor: progress; }
.pct { margin: 6px 0 0; font-weight: 600; color: var(--fit-ink); }
.next b { font-variant-numeric: tabular-nums; color: var(--ink); }
.foot-links { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.foot .link { font-size: 13px; padding: 4px 0; min-height: 32px; }
.panel ul { margin: 0; padding-left: 20px; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
.idea { border-top: 1px dashed var(--line); padding-top: 12px; }
.idea summary { cursor: pointer; font-weight: 600; text-align: center; list-style: none; color: var(--ink); padding: 6px 0; }
.idea summary::-webkit-details-marker { display: none; }
.idea summary span { color: var(--muted); font-weight: 500; }
.idea form { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.idea label { font-size: 13px; font-weight: 600; color: var(--muted); }
.idea textarea, .idea input { width: 100%; border: 1.5px solid var(--line); background: var(--surface); border-radius: 14px; padding: 10px 12px; font-size: 16px; }
.idea textarea { resize: vertical; min-height: 84px; }
.idea textarea:focus, .idea input:focus { border-color: var(--ink); outline: none; }
.fine { margin: 0; font-size: 12px; color: var(--muted); }
.ok { color: var(--fit-ink); }
.loading .composer, .loading .legend { visibility: hidden; }

@media (max-width: 520px) {
  .meter { width: 100%; flex-direction: row; align-items: center; justify-content: space-between; }
}
@media (max-width: 420px) {
  .wordmark { font-size: 34px; }
  .iconbtn .lbl { display: none; }
  .iconbtn { padding: 0; width: 42px; justify-content: center; }
  .actions, .final-actions { grid-template-columns: 1fr; }
  .tier { font-size: 50px; }
  .mascot.hd { width: 46px; height: 46px; }
  .mascot.big { width: 116px; height: 116px; }
  .field { padding-right: 100px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
