/* 오늘의 꽃병: 연습장 디자인(craft.css)의 색과 글꼴을 쓴다. */
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; font-family: var(--body); color: var(--ink); line-height: 1.5;
  background-color: var(--paper); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 28px 28px; }
main { max-width: 520px; margin: auto; padding: .5rem 1rem 1.5rem; } a { color: var(--accent-deep); }
button, select { font: inherit; min-height: 48px; border: 2.5px solid var(--ink); border-radius: 10px; background: var(--paper); color: var(--ink); padding: .5rem .8rem; cursor: pointer; box-shadow: 2px 3px 0 var(--ink); transition: translate .08s, box-shadow .08s; }
button:active:not(:disabled) { translate: 2px 3px; box-shadow: 0 0 0 var(--ink); }
button:focus-visible, select:focus-visible, a:focus-visible, summary:focus-visible { outline: 4px solid #145cc8; outline-offset: 3px; }
button:disabled { opacity: .5; cursor: default; box-shadow: none; }
button[aria-pressed='true'] { background: var(--hl); translate: 2px 3px; box-shadow: 0 0 0 var(--ink); }
p, label, h1, summary, button { word-break: keep-all; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hud { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .35rem 0; }
.hud a { position: absolute; }
.hud h1 { margin: 0; font-family: var(--head); font-weight: 400; font-size: 1.6rem; background-image: linear-gradient(transparent 58%, var(--hl) 58%, var(--hl) 90%, transparent 90%); padding: 0 .12em; }
.progress { display: flex; align-items: center; gap: .5rem; margin: 0; padding: .3rem .8rem; border: 2.5px solid var(--ink); border-radius: 999px; background: var(--paper); box-shadow: 2px 3px 0 var(--ink); font-family: var(--head); font-size: 1.1rem; }
.dots { display: flex; gap: .25rem; } .dots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ink); background: #fff; } .dots i.on { background: var(--accent-deep); }
.stage { position: relative; padding: .8rem; border: 2.5px solid var(--ink); border-radius: var(--wobble); background: var(--paper); box-shadow: 4px 5px 0 var(--ink); text-align: center; }
.bubble { min-height: 2.8rem; margin: 0 0 .5rem; padding: .6rem .9rem; border-radius: 2px 2px 14px 2px; background: var(--note); box-shadow: 2px 3px 0 rgba(29, 36, 51, .28); font-family: var(--hand); font-size: 1.35rem; line-height: 1.4; transform: rotate(-.5deg); }
.vase { display: block; width: min(100%, 340px); height: auto; margin: 0 auto .6rem; }
.slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.slots button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .25rem; min-height: 64px; padding: .4rem .25rem; border-style: dashed; box-shadow: none; font-size: .9rem; }
.slots button.filled { border-style: solid; background: #fff; box-shadow: 2px 3px 0 var(--ink); }
.slots b { font-size: .85rem; } .slots span:not(.chip):not(.sr-only) { font-size: .85rem; color: var(--ink-soft); }
#result { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); }
.chip { width: 22px; height: 22px; border-radius: 50%; border: 2px dashed var(--ink-soft); } .filled .chip { border: 2px solid var(--ink); }
.tray { margin-top: .9rem; } .caption { margin: 0 0 .3rem; font-family: var(--head); font-size: 1.15rem; }
.choices { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: .5rem; }
.choices button { display: flex; flex-direction: column; align-items: center; gap: .15rem; min-width: 76px; min-height: 76px; padding: .4rem .6rem; }
.swatch { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 2px solid var(--ink); border-radius: 50%; font-weight: 700; margin: 0; }
.controls { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .6rem; }
.controls #finish { background: var(--accent-deep); border-color: var(--ink); color: #fff; font-family: var(--head); font-weight: 400; font-size: 1.15rem; box-shadow: 3px 4px 0 var(--ink); }
.controls #finish:disabled { background: #aab2c0; box-shadow: none; }
#finish-hint:empty { display: none; } #finish-hint { margin: .5rem 0 0; font-size: .95rem; }
.more { margin-top: .9rem; } .more summary { min-height: 48px; display: flex; align-items: center; cursor: pointer; font-weight: 700; }
@keyframes pop { 0% { transform: scale(.2); } 60% { transform: scale(1.35); } 100% { transform: scale(1); } }
@keyframes sway { 0%, 100% { transform: rotate(-1.5deg); } 50% { transform: rotate(1.5deg); } }
.bloom.fresh circle { transform-box: fill-box; transform-origin: center; animation: pop .45s ease-out; }
.stage.done .vase { transform-origin: 50% 90%; animation: sway 2.4s ease-in-out infinite; }
.stage.done { box-shadow: 0 0 0 4px var(--hl), 4px 5px 0 4px var(--ink); }
@media (prefers-reduced-motion: reduce) { .bloom.fresh circle, .stage.done .vase { animation: none; } button { transition: none; } }
