:root { color-scheme: light; --ink: #374b40; --green: #4c8469; --cream: #fffaf0; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); font-family: ui-rounded, "SF Pro Rounded", system-ui, sans-serif; background: #f6f1e4; background-image: radial-gradient(circle at 5% 80%, #e4edda 0, transparent 40%), radial-gradient(circle at 94% 5%, #fae3cc 0, transparent 34%); }
button { font: inherit; color: inherit; cursor: pointer; touch-action: manipulation; }
button:focus-visible, a:focus-visible { outline: 3px solid #367259; outline-offset: 4px; }
button:disabled { opacity: .45; cursor: default; }
button:not(:disabled):active { transform: translateY(3px); box-shadow: none; }
.kitchen { width: min(1390px, 100%); padding: 28px 32px 18px; margin: auto; }
.topbar { margin-bottom: 30px; }
.title { padding-left: 6px; }
.eyebrow { font-size: 10px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: #7c8a70; margin: 0 0 6px; }
h1 { font-size: clamp(30px, 4vw, 45px); letter-spacing: -1.8px; margin: 0; line-height: 1.12; }
h1 span { color: #c78b54; font-weight: 400; }
.recipe-note { display: flex; align-items: center; gap: 9px; font-size: 13px; color: #8c8068; }
.recipe-note span { color: #b27c5c; font-size: 26px; }
.workspace { display: grid; grid-template-columns: 255px minmax(0, 1fr); gap: 27px; align-items: start; }
.food-shelf { background: var(--cream); padding: 23px 16px 17px; border: 1px solid #e3ddcb; border-radius: 22px; box-shadow: 0 8px 24px #6f684109; }
.shelf-heading { position: relative; padding: 0 5px 17px; }
.shelf-heading .eyebrow { font-size: 8px; letter-spacing: 1px; }
.shelf-heading h2 { font-size: 21px; letter-spacing: -.7px; margin: 0; padding-right: 30px; }
#page-number { position: absolute; right: 4px; bottom: 20px; font-size: 11px; color: #92947f; }
.food-options { display: grid; gap: 11px; }
.food-card { display: flex; align-items: center; gap: 6px; min-height: 113px; border: 2px solid #e4dfca; border-radius: 15px; padding: 9px 11px 9px 4px; background: #f5f1e3; text-align: left; position: relative; }
.food-card:nth-child(2) { background: #fcf0da; }
.food-card:nth-child(3) { background: #eef1df; }
.food-card svg { width: 95px; height: 95px; flex-shrink: 0; }
.food-card strong { display: block; font-size: 17px; }
.food-card small { display: block; font-size: 10px; margin-top: 6px; color: #8c8c73; }
.food-card:hover { border-color: #94ac83; }
.food-card:hover svg { transform: rotate(-4deg); }
.food-card[aria-pressed="true"] { background: #e5eedb; border-color: #5b876b; box-shadow: 0 0 0 2px #5b876b13; }
.food-card[aria-pressed="true"]::after { content: "✓"; position: absolute; top: 7px; right: 10px; font-size: 15px; font-weight: 900; color: #578564; }
#next { width: 100%; margin-top: 16px; border-radius: 13px; padding: 13px; border: 1px solid #d4d8bd; background: #e8ebd6; font-weight: 800; font-size: 18px; }
#next > span { margin-left: 10px; }
#next small { display: block; font-weight: 500; font-size: 10px; color: #7e8869; margin-top: 5px; }
.board-heading { display: flex; align-items: center; justify-content: space-between; padding: 0 5px 12px; gap: 10px; font-size: 13px; font-weight: 700; color: #7f806b; }
#piece-count { font-size: 11px; font-weight: 500; }
.stage { position: relative; border-radius: 23px; overflow: hidden; background: #fcf8ed; border: 1px solid #e5decb; background-image: linear-gradient(90deg, #d3d9bb20 1px, transparent 1px), linear-gradient(#d3d9bb20 1px, transparent 1px); background-size: 38px 38px; }
#board { display: block; width: 100%; height: auto; }
.empty-hint { position: absolute; top: 47%; left: 45%; transform: translate(-50%, -50%); text-align: center; width: 60%; pointer-events: none; }
.empty-hint > span { font-size: 31px; color: #bf9362; }
.empty-hint h2 { margin: 6px 0 8px; font-size: clamp(18px, 2.3vw, 28px); letter-spacing: -.8px; color: #8c683f; }
.empty-hint p { font-size: 14px; color: #93784f; margin: 0; }
#knife { transition: opacity .2s; }
.stage:not(.has-food) #knife { opacity: .6; }
#knife.chopping { animation: chop .34s ease-in-out; }
.food-piece { animation: separate .38s cubic-bezier(.18,.7,.28,1) both; }
.actions { display: flex; gap: 13px; margin-top: 20px; align-items: stretch; }
.actions button { min-height: 68px; padding: 12px 25px; border-radius: 16px; font-weight: 850; font-size: 23px; display: flex; align-items: center; justify-content: center; gap: 11px; border: 0; }
.cut-button { flex: 1; background: #528568; box-shadow: 0 5px 0 #345c47; color: #fffaf0; }
.cut-button:hover:not(:disabled) { background: #44785b; }
.cut-button svg { width: 41px; height: 32px; }
.finish-button { flex: 1; background: #f2d17f; box-shadow: 0 5px 0 #c3a35a; color: #665425; }
.finish-button > span { font-size: 29px; }
.finish-button:hover { background: #f6d993; }
.actions .clear-button { background: #eee8d9; border: 1px solid #d9d2be; font-size: 16px; padding: 12px 20px; color: #7b7c65; }
.clear-button span { font-size: 25px; }
.status { margin: 20px 5px 0; color: #7f8069; font-size: 14px; line-height: 1.5; min-height: 22px; text-align: center; }
.celebration { position: absolute; inset: 0; pointer-events: none; }
.celebration i { position: absolute; left: var(--left); top: 33%; width: 9px; height: 14px; border-radius: 3px; background: var(--color); animation: confetti .9s ease-out forwards; animation-delay: var(--delay); opacity: 0; }
footer { font-size: 11px; color: #96947a; text-align: center; margin-top: 28px; }
footer span { margin-left: 4px; color: #b48862; }
@keyframes chop { 0%, 100% { transform: translate(0,0); } 35% { transform: translate(-235px,-135px) rotate(-6deg); } 60% { transform: translate(-235px,45px) rotate(-6deg); } }
@keyframes separate { from { transform: translate(0,0) rotate(0); } to { transform: translate(var(--dx), var(--dy)) rotate(var(--turn)); } }
@keyframes confetti { 10% { opacity: 1; } to { opacity: 0; transform: translate(var(--drift), 230px) rotate(300deg); } }
@media (min-width: 1500px) { .kitchen { padding-top: 45px; } }
@media (max-width: 1000px) { .kitchen { padding: 22px; } .workspace { grid-template-columns: 210px minmax(0, 1fr); gap: 19px; } .food-shelf { padding: 20px 11px 14px; } .food-card { min-height: 97px; } .food-card svg { width: 75px; height: 75px; } .food-card strong { font-size: 15px; } .shelf-heading h2 { font-size: 18px; } .actions button { padding: 12px 17px; min-height: 60px; font-size: 20px; } .actions .clear-button { padding: 10px 14px; } .recipe-note { font-size: 11px; } }
@media (max-width: 700px) { .kitchen { padding: 17px 12px; } .topbar { margin-bottom: 17px; } .recipe-note { display: none; } .topbar:has(> .home-link) > .title:last-child { grid-column: auto; } .eyebrow { font-size: 8px; letter-spacing: .6px; } .workspace { display: flex; flex-direction: column; gap: 17px; } .food-shelf { width: 100%; padding: 14px 12px; } .shelf-heading { padding-bottom: 11px; } .shelf-heading .eyebrow { display: none; } .shelf-heading h2 { font-size: 19px; } #page-number { bottom: 15px; } .food-options { grid-template-columns: repeat(3, 1fr); gap: 8px; } .food-card { flex-direction: column; min-width: 0; padding: 5px 3px 11px; gap: 0; min-height: 113px; text-align: center; } .food-card svg { height: 74px; width: 100%; } .food-card strong { font-size: 13px; } .food-card small { display: none; } #next { font-size: 15px; padding: 9px; margin-top: 10px; display: flex; justify-content: center; gap: 4px; align-items: center; } #next small { display: inline; margin: 0 0 0 12px; } .board-area { width: 100%; } .board-heading { padding-bottom: 8px; font-size: 12px; } #piece-count { font-size: 10px; } .empty-hint p { font-size: 11px; } .empty-hint > span { font-size: 22px; } .empty-hint h2 { margin: 0 0 5px; font-size: 18px; } .actions { margin-top: 13px; gap: 9px; } .actions button { padding: 10px 12px; font-size: 19px; min-height: 57px; gap: 7px; border-radius: 13px; } .actions .clear-button { font-size: 13px; padding: 9px 12px; } .cut-button svg { width: 30px; } .status { font-size: 12px; margin-top: 17px; } footer { font-size: 10px; margin-top: 20px; } }
@media (max-width: 370px) { h1 { font-size: 29px; } .actions button { padding: 9px; font-size: 17px; } .actions .clear-button { padding: 8px; gap: 3px; } #next small { font-size: 9px; margin-left: 5px; } }
@media (prefers-reduced-motion: reduce) { #knife.chopping { animation: none; } .food-piece { animation: none; transform: translate(var(--dx), var(--dy)) rotate(var(--turn)); } .celebration { display: none; } * { transition: none !important; } }
