.coop-root{display:flex;flex-direction:column;gap:12px;width:100%;min-width:0;color:var(--ink,#202842)}
.coop-root *{box-sizing:border-box}.coop-root h3,.coop-root h4,.coop-root p{margin:0}.coop-title{text-align:center;font-size:23px}.coop-intro{font-size:15px;line-height:1.55;text-align:center;color:var(--muted,#66708a)}
.coop-hud{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 14px;border:1px solid var(--border,#dfe3ed);border-radius:13px;background:#fff;font-size:16px}.coop-clock{font-variant-numeric:tabular-nums;white-space:nowrap;color:#7664cf}.coop-progress{overflow-wrap:anywhere}
.coop-root .coop-canvas{display:block;width:100%;height:auto;max-width:720px;margin-inline:auto;border-radius:20px;touch-action:none;background:#d9ece7}
.coop-role-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;width:100%;min-width:0}.coop-root button{font:inherit;min-height:44px;min-width:0;touch-action:none;user-select:none;-webkit-user-select:none;white-space:normal}.coop-root button:focus-visible{outline:3px solid #7664cf;outline-offset:3px}
.coop-root button>*{pointer-events:none}.coop-root button:disabled{cursor:default}
.coop-paddle{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;padding:10px 12px;border-radius:16px;border:2px solid #f0c4b5;background:#fff0e8;color:#ad4b35}.coop-paddle-right{border-color:#d5c9ef;background:#f0eafa;color:#6850a6}.coop-paddle strong{font-size:18px}.coop-paddle small{font-size:13px;line-height:1.3}.coop-control-icon{font-size:28px;line-height:1}.coop-paddle.is-stroke{box-shadow:inset 0 0 0 3px currentColor;transform:translateY(1px)}
.coop-key{font-family:inherit;font-size:12px;font-weight:650;opacity:.8}.coop-status{padding:10px 13px;border-radius:12px;background:#f2f4fa;color:var(--ink);font-size:14px;line-height:1.5;text-align:center;min-height:42px}.coop-footnote{font-size:13px;line-height:1.5;text-align:center;color:var(--muted)}
.coop-workstation{display:flex;flex-direction:column;gap:9px;min-width:0;padding:13px;border:1px solid #edc9bd;border-radius:17px;background:#fff8f1}.coop-chef{border-color:#d9d0ed;background:#f6f1fc}.coop-role-title{font-size:17px;line-height:1.35}.coop-small-note{font-size:12px;line-height:1.4;color:var(--muted);min-height:1.4em}
.coop-orders{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.coop-order{padding:12px;border:1px solid #dfe3ed;border-radius:14px;background:#f5f6fa;min-width:0}.coop-order.is-current{background:#edf9f2;border-color:#96cbb1}.coop-order-heading{display:flex;flex-direction:column;gap:4px;margin-bottom:8px;font-size:15px;line-height:1.3}.coop-order-label{font-size:11px;letter-spacing:.07em;text-transform:uppercase;color:#697c78}.coop-chips{display:flex;flex-wrap:wrap;gap:5px;min-height:24px;align-items:center}.coop-chip{display:inline-flex;align-items:center;gap:4px;padding:4px 7px;border-radius:8px;background:#ffffffd9;border:1px solid #e3e5e9;font-size:12px;line-height:1.4}.coop-empty{font-size:13px;color:var(--muted);line-height:1.4}.coop-counter{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:10px 12px;border-radius:12px;background:#e8f0f3;border:1px solid #d0e0e6}.coop-counter>strong{font-size:14px;line-height:1.3}
.coop-ingredient-buttons,.coop-chef-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.coop-ingredient,.coop-chef-action{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:9px 5px!important;border-radius:11px;border:2px solid transparent;background:#fff;color:var(--ink);min-height:63px!important}.coop-ingredient strong{font-size:13px;line-height:1.25;overflow-wrap:anywhere}.coop-food-icon{font-size:22px;line-height:1}.coop-ingredient.is-selected{border-color:#ee9b7f;background:#ffeadc}.coop-chef-action strong{font-size:15px}.coop-chef-action.is-selected{border-color:#a48acb;background:#ece1fa}.coop-chef-action.is-ready{background:#d7f0e2;border-color:#5aa982;color:#1b684e}
.coop-handoff,.coop-wide,.coop-rescue{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;width:100%;padding:10px 6px!important;border:1px solid #e5b29f;border-radius:11px;background:#f5b39a;color:#613f34;min-height:49px!important}.coop-rescue{background:#d7c6f0;border-color:#bca2dc;color:#49356d}.coop-wide{background:#fae3a9;border-color:#e4c87f;color:#715619}.coop-handoff:disabled,.coop-wide:disabled{opacity:.55}
.coop-meter{height:6px;border-radius:4px;background:#e5e4e6;overflow:hidden}.coop-meter>span{display:block;height:100%;width:0;border-radius:4px;background:#e99575}.coop-pan{display:flex;flex-direction:column;gap:8px;padding:9px;border-radius:12px;background:#fff;border:1px solid #e5ddec;min-height:91px}.coop-pan-state{font-size:13px;line-height:1.35}.coop-pan.is-cooking .coop-meter>span{background:#b294d3}.coop-pan.is-ready{border-color:#79ba97;background:#eaf8ef}.coop-pan.is-ready .coop-meter>span{background:#51a47b}
.coop-aim-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.coop-aim{font-size:31px!important;border:1px solid #e6c19a!important;background:#fff7e6!important;color:#866042!important;border-radius:12px;min-height:56px!important}.coop-dpad{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(2,44px);gap:5px;max-width:210px;width:100%;margin-inline:auto}.coop-direction{font-size:24px!important;padding:4px!important;border:1px solid #d3c4e6!important;background:#fff!important;color:#786095!important;border-radius:10px}.coop-direction-up{grid-column:2;grid-row:1}.coop-direction-left{grid-column:1;grid-row:2}.coop-direction-down{grid-column:2;grid-row:2}.coop-direction-right{grid-column:3;grid-row:2}.coop-aim.is-held,.coop-direction.is-held{box-shadow:inset 0 0 0 3px currentColor}.coop-lighthouse-roles .coop-workstation{gap:8px}.coop-lighthouse-roles .coop-wide{margin-top:auto}
.coop-root .coop-aim,.coop-root .coop-direction{min-width:44px}.coop-chef-action strong{overflow-wrap:anywhere}
@media(min-width:900px){.coop-root{max-width:900px;margin-inline:auto}.coop-raft .coop-paddles{max-width:720px;margin-inline:auto}.coop-lighthouse-roles{max-width:720px;margin-inline:auto}.coop-kitchen .coop-workstation{padding:16px}.coop-kitchen .coop-ingredient strong{font-size:16px}.coop-kitchen .coop-food-icon{font-size:26px}}
@media(max-width:600px){.coop-root{gap:8px}.coop-title{font-size:19px}.coop-intro{font-size:13px;line-height:1.4}.coop-hud{font-size:14px;padding:8px 10px}.coop-root .coop-canvas{border-radius:14px}.coop-role-grid{gap:7px}.coop-workstation{padding:8px;gap:7px;border-radius:12px}.coop-role-title{font-size:14px}.coop-status{font-size:13px;line-height:1.4;padding:8px 9px;min-height:0}.coop-footnote{font-size:12px}.coop-paddle{padding:8px 6px;gap:3px}.coop-paddle strong{font-size:15px}.coop-paddle small{font-size:11px}.coop-control-icon{font-size:24px}.coop-key{font-size:10px}.coop-orders{gap:6px}.coop-order{padding:8px}.coop-order-heading{font-size:13px;margin-bottom:6px}.coop-order-label{font-size:10px}.coop-chip{font-size:10px;padding:3px 4px;gap:2px}.coop-counter{padding:8px;gap:6px}.coop-counter>strong{font-size:12px}.coop-ingredient-buttons,.coop-chef-buttons{gap:5px}.coop-ingredient{min-height:62px!important}.coop-ingredient strong{font-size:11px}.coop-chef-action{min-height:46px!important}.coop-chef-action strong{font-size:13px}.coop-food-icon{font-size:20px}.coop-small-note{font-size:10px}.coop-pan{padding:7px;min-height:84px;gap:6px}.coop-pan-state{font-size:11px}.coop-dpad{gap:4px}.coop-handoff strong,.coop-wide strong,.coop-rescue strong{font-size:13px;line-height:1.3}.coop-aim{min-height:48px!important}.coop-kitchen .coop-chef-hint{line-height:1.35}}
@media(max-width:600px){.coop-dpad{grid-template-columns:repeat(2,minmax(0,1fr))}.coop-direction-up{grid-column:1;grid-row:1}.coop-direction-down{grid-column:2;grid-row:1}.coop-direction-left{grid-column:1;grid-row:2}.coop-direction-right{grid-column:2;grid-row:2}}
@media(max-width:350px){.coop-role-grid{gap:6px}.coop-workstation{padding:6px}.coop-dpad{gap:3px}.coop-aim-buttons{gap:6px}.coop-direction{font-size:21px!important}.coop-intro{font-size:12px}.coop-chip{font-size:10px}.coop-orders .coop-chips{gap:3px}}
@media(prefers-reduced-motion:reduce){.coop-paddle.is-stroke{transform:none}}
/* Keep both stations and their primary touch actions together on a phone. */
@media(max-width:600px){.coop-title,.coop-intro,.coop-footnote,.coop-key,.coop-chef-hint{display:none}.coop-ingredient-buttons{grid-template-columns:1fr}.coop-ingredient{flex-direction:row;justify-content:flex-start;gap:6px;min-height:44px!important;padding:7px 5px!important}.coop-ingredient strong{font-size:12px;line-height:1.2;overflow-wrap:normal}.coop-food-icon{font-size:19px}.coop-small-note{font-size:11px}.coop-counter .coop-chips{min-height:20px}.coop-handoff{margin-top:auto}.coop-lighthouse-roles .coop-workstation{padding:7px}.coop-lighthouse-roles .coop-small-note{font-size:11px}}
/* A visible next step for each human role; one chef button follows the recipe. */
.coop-next-action{padding:8px 9px;border-radius:9px;background:#ffffffc9;font-size:13px;font-weight:650;line-height:1.4;min-height:3.8em;overflow-wrap:anywhere}
.coop-ingredient.is-needed{border-color:#79b797;background:#e6f6eb;color:#245e45}.coop-ingredient:disabled{opacity:.55}.coop-ingredient.is-selected:disabled{opacity:.95}
.coop-handoff.is-ready{background:#d7f0e2;border-color:#5aa982;color:#1b684e}
.coop-kitchen .coop-chef-primary{width:100%;min-height:78px!important;border-width:2px;box-shadow:0 3px 0 #0000000a}.coop-kitchen .coop-chef-primary:disabled{background:#eeebf1;border-color:#e1dbe8;color:#6b6574;box-shadow:none}.coop-kitchen .coop-chef-primary strong{font-size:18px;line-height:1.25}
.coop-kitchen .coop-chef-reset{width:100%;min-height:44px!important;padding:7px 5px!important;background:transparent;border:1px solid #d5c9e2;flex-direction:row;gap:7px}.coop-kitchen .coop-chef-reset strong{font-size:12px;font-weight:600}.coop-kitchen .coop-chef-reset:disabled{opacity:.4}.coop-kitchen .coop-chef-reset.is-warning{border-color:#ce926a;color:#98572e;background:#fff0df}
.coop-recipe-count{font-size:11px;color:#42715a;font-weight:600}.coop-recipe-count:empty{display:none}.coop-recipe-chip{flex-direction:column;align-items:flex-start;gap:1px}.coop-ingredient-stage{font-size:10px;color:#777c88;line-height:1.3}.coop-recipe-chip[data-stage="pan"]{background:#d7f0e2;border-color:#86bba0}.coop-recipe-chip[data-stage="pan"] .coop-ingredient-stage{color:#2c7050}.coop-recipe-chip[data-stage="counter"],.coop-recipe-chip[data-stage="prepared"]{background:#fff0da;border-color:#e7bf83}.coop-recipe-chip[data-stage="preparing"]{border-color:#e8ae99;background:#fff2e9}
@media(max-width:600px){.coop-kitchen .coop-orders{gap:6px}.coop-kitchen .coop-order{padding:7px}.coop-kitchen .coop-order-heading{gap:3px;margin-bottom:5px;font-size:12px}.coop-kitchen .coop-order-label{font-size:9px;letter-spacing:.03em}.coop-kitchen .coop-recipe-count{font-size:10px}.coop-kitchen .coop-recipe-chips{gap:4px}.coop-kitchen .coop-recipe-chip{padding:3px 4px;font-size:10px}.coop-kitchen .coop-ingredient-stage{font-size:9px}.coop-kitchen .coop-order:not(.is-current) .coop-ingredient-stage{display:none}.coop-next-action{font-size:11px;padding:6px;min-height:3.6em;line-height:1.35}.coop-kitchen .coop-prep>.coop-small-note{display:none}.coop-kitchen .coop-chef-primary{min-height:65px!important}.coop-kitchen .coop-chef-primary strong{font-size:14px}.coop-kitchen .coop-chef-reset strong{font-size:11px}.coop-kitchen .coop-pan{min-height:76px}.coop-kitchen .coop-counter{padding:7px 8px;gap:4px}.coop-kitchen .coop-counter>strong,.coop-kitchen .coop-empty{font-size:11px}.coop-kitchen .coop-handoff strong{font-size:12px}}
