:root { color-scheme: light; font-family: ui-rounded, "Arial Rounded MT Bold", "Trebuchet MS", sans-serif; color: #503849; background: #fff5e9; }
* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(circle at 9% 12%, #ffe3db 0, transparent 28%), radial-gradient(circle at 92% 85%, #daf1e5 0, transparent 30%), #fff5e9; }
button, input { font: inherit; }
button { cursor: pointer; color: inherit; touch-action: manipulation; }
button:focus-visible, input:focus-visible, canvas:focus-visible { outline: 4px solid #437d75; outline-offset: 4px; }
button:disabled { cursor: default; opacity: .45; }
button:not(:disabled):hover { filter: brightness(1.035); transform: translateY(-2px); }
button:not(:disabled):active { transform: translateY(1px); }
[hidden] { display: none !important; }
.bakery { max-width: 1440px; margin: auto; padding: 26px 30px 16px; }
.topbar { margin-bottom: 26px; }
h1 { margin: 2px 0 0; font-size: clamp(1.6rem, 3vw, 2.4rem); letter-spacing: -.055em; }
.eyebrow, .step { text-transform: uppercase; letter-spacing: .14em; font-size: .68rem; font-weight: 900; margin: 0 0 8px; color: #9a5666; }
.header-sticker { background: #e1f0df; color: #537953; border-radius: 50% 45% 45% 50%; padding: 17px 23px; transform: rotate(5deg); font-size: .9rem; font-weight: bold; }
.workbench { display: grid; grid-template-columns: 240px minmax(340px, 1fr) 250px; gap: 18px; align-items: start; }
.panel { background: #fffdf7; border: 2px solid #eadccb; border-radius: 24px; padding: 22px 18px; box-shadow: 0 6px 0 #ebddcd80; }
h2 { margin: 0 0 20px; font-size: 1.25rem; letter-spacing: -.035em; }
h3 { font-size: .88rem; margin: 22px 0 12px; }
.flavor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.flavor { display: grid; justify-items: center; gap: 7px; padding: 12px 4px 9px; border: 2px solid #eee1d5; background: #fff; border-radius: 16px; font-weight: bold; font-size: .75rem; }
.flavor.selected { border-color: #965877; background: #fff0f5; box-shadow: 0 0 0 2px #96587720; }
.scoop { position: relative; width: 43px; height: 35px; border-radius: 60% 60% 35% 35%; background: var(--swatch); box-shadow: inset -5px -5px 0 #56364e20, inset 5px 4px 0 #ffffff55; border: 1px solid #50384930; }
.scoop::before { content: ""; position: absolute; width: 29px; height: 24px; left: 7px; top: -6px; background: var(--swatch); border-radius: 55% 55% 25% 25%; box-shadow: inset 4px 3px 0 #ffffff44; }
#wrappers { display: flex; gap: 10px; }
.wrapper { width: 33px; height: 35px; background: repeating-linear-gradient(90deg, transparent 0 5px, #ffffff55 5px 8px), var(--swatch); border: 2px solid #50384930; border-radius: 4px 4px 10px 10px; }
.wrapper.selected { outline: 3px solid #965877; outline-offset: 3px; }
.cupcake-stage { position: relative; background: #e6f3ef; background-image: radial-gradient(#aac9be40 1px, transparent 1px); background-size: 19px 19px; border: 2px solid #d1e6dd; border-radius: 28px; overflow: hidden; text-align: center; padding-bottom: 18px; min-width: 0; }
.stage-heading { display: flex; justify-content: space-between; align-items: center; padding: 20px 23px 0; color: #4f8173; }
.little-label { font-size: .63rem; font-weight: 900; letter-spacing: .2em; }
.hint { font-size: .95rem; margin: 8px 14px 0; font-weight: bold; min-height: 2.4em; }
canvas { display: block; width: auto; height: auto; max-width: 100%; max-height: min(58vh, 590px); touch-action: none; cursor: crosshair; margin: -22px auto 0; }
.status { font-size: .87rem; margin: -2px 20px 15px; min-height: 2.3em; line-height: 1.4; }
.stage-actions { display: flex; gap: 12px; justify-content: center; padding: 0 16px; }
.quiet, .finish { border-radius: 14px; padding: 13px 23px; font-weight: 900; border: 2px solid #d4dacf; }
.quiet { background: #fffdf7; }
.finish { background: #b4557b; color: white; border-color: #9f4268; box-shadow: 0 4px 0 #8e3d5d; font-size: 1.04rem; }
.finish span { margin-left: 14px; }
.tool-list { display: grid; gap: 9px; }
.tool { width: 100%; display: flex; gap: 11px; align-items: center; padding: 10px; border: 2px solid #eee1d5; border-radius: 13px; background: white; text-align: left; font-size: .82rem; font-weight: bold; }
.tool > span:first-child { width: 32px; font-size: 1.6rem; text-align: center; flex-shrink: 0; }
.tool small { display: block; margin-top: 3px; font-size: .65rem; font-weight: normal; line-height: 1.3; }
.tool.selected { background: #fff0f5; border-color: #965877; }
.size-control { display: grid; gap: 7px; font-size: .75rem; margin-top: 17px; font-weight: bold; }
input[type="range"] { width: 100%; accent-color: #b4557b; cursor: pointer; }
.sprinkle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sprinkle { display: grid; justify-items: center; gap: 5px; border: 2px solid #eee1d5; background: #fff; border-radius: 12px; padding: 9px 2px; font-size: .65rem; font-weight: bold; }
.sprinkle.selected { border-color: #965877; background: #fff0f5; }
.sprinkle-dots { display: flex; gap: 3px; transform: rotate(-12deg); height: 15px; align-items: center; }
.sprinkle-dots i { width: 5px; height: 13px; border-radius: 3px; background: var(--swatch); }
.sprinkle-dots i:nth-child(2) { transform: rotate(65deg); }
.scatter, .cherry { width: 100%; font-size: .8rem; font-weight: bold; padding: 12px 7px; border-radius: 13px; margin-top: 12px; border: 2px solid #d3e1d3; background: #e8f2e3; }
.cherry { background: #fff0e8; border-color: #edcec0; font-size: .87rem; }
.cherry[aria-pressed="true"] { border-color: #b4557b; background: #ffe4ed; }
.cherry span { margin-right: 6px; }
.keyboard-note { text-align: center; font-size: .72rem; line-height: 1.5; color: #856e74; margin: 19px 10px 0; }
@media (min-width: 1300px) { .panel { padding: 25px 21px; } .workbench { grid-template-columns: 250px minmax(340px, 1fr) 270px; gap: 24px; } }
@media (max-width: 1050px) { .bakery { padding: 20px 16px; } .workbench { grid-template-columns: 185px minmax(290px, 1fr) 205px; gap: 12px; } .panel { padding: 18px 12px; } h2 { font-size: 1.05rem; } .tool { gap: 4px; padding: 8px 5px; } .flavor-grid { gap: 7px; } .wrapper { width: 26px; } }
@media (max-width: 800px) { .workbench { grid-template-columns: 1fr 1fr; } .cupcake-stage { grid-column: 1 / -1; grid-row: 1; } canvas { max-height: 480px; width: auto; max-width: 100%; margin: -22px auto 0; } .flavor-grid { grid-template-columns: repeat(3, 1fr); } .header-sticker { display: none; } .topbar { margin-bottom: 18px; } .panel { height: 100%; } }
@media (max-width: 460px) { .bakery { padding: 14px 10px; } .workbench { gap: 10px; } .flavor-grid { grid-template-columns: 1fr 1fr; } .tool small { font-size: .6rem; } .tool > span:first-child { width: 22px; font-size: 1.2rem; } .tool { font-size: .7rem; } .wrapper { width: 22px; height: 29px; } #wrappers { gap: 6px; } .panel { border-radius: 18px; padding: 16px 9px; } .sprinkle-grid { gap: 4px; } h2 { font-size: .94rem; } .step { font-size: .57rem; } }
