.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-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-wide:disabled{opacity:.55}
.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}
@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}}
@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-small-note{font-size:10px}.coop-dpad{gap:4px}.coop-wide strong,.coop-rescue strong{font-size:13px;line-height:1.3}.coop-aim{min-height:48px!important}}
@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}}
@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{display:none}.coop-small-note{font-size:11px}.coop-lighthouse-roles .coop-workstation{padding:7px}.coop-lighthouse-roles .coop-small-note{font-size:11px}}
.coop-root>.coop-title,.coop-root>.coop-intro{display:none}
@media(min-width:800px){
 :is(.coop-raft,.coop-lighthouse){max-width:1230px;display:grid;grid-template-columns:minmax(0,1.35fr) minmax(255px,.75fr);gap:8px 17px}
 :is(.coop-raft,.coop-lighthouse)>.coop-hud{grid-column:1/-1}
 :is(.coop-raft,.coop-lighthouse)>.coop-canvas{width:100%;max-width:none;max-height:calc(var(--round-space) - 80px);object-fit:contain;grid-column:1;grid-row:2/span 3}
 :is(.coop-raft,.coop-lighthouse)>:is(.coop-role-grid,.coop-status,.coop-footnote){grid-column:2;align-self:start}
}

.play-shell:has(.coop-raft){
 max-width:none;
 padding-inline:max(5px,env(safe-area-inset-left)) max(5px,env(safe-area-inset-right));
}
.play-shell:has(.coop-raft)>.match-strip{display:none}
#round-content>.arena.shared:has(.coop-raft){max-width:none}
#round-content>.arena.shared:has(.coop-raft) .player-panel{border:0;box-shadow:none;background:transparent}
#round-content>.arena.shared:has(.coop-raft) .game-content{min-height:0;padding:0}
.coop-root.coop-raft{position:relative;display:block;max-width:none;isolation:isolate}
.coop-root.coop-raft>.coop-canvas{
 width:100%;height:max(180px,calc(100dvh - 91px - env(safe-area-inset-bottom)));
 max-width:none;max-height:none;object-fit:fill;border-radius:14px;
}
.coop-raft>.coop-hud{
 position:absolute;inset:10px 12px auto;z-index:1;pointer-events:none;
 padding:0;border:0;background:none;gap:8px;
}
.coop-raft>.coop-hud>strong,.coop-raft>.coop-status{
 padding:6px 10px;border:1px solid #fff4;border-radius:10px;background:#153e46ec;
 color:#f3fffd;font-variant-numeric:tabular-nums;box-shadow:0 2px 6px #11343b37;
}
.coop-raft>.coop-status{
 position:absolute;inset:auto auto 16px 50%;transform:translateX(-50%);
 width:max-content;max-width:42%;min-height:0;pointer-events:none;font-size:.81rem;
}
.coop-raft>.coop-status:empty{display:none}
.coop-root.coop-raft>.coop-paddles{
 position:absolute;inset:auto 12px 12px;display:flex;justify-content:space-between;
 width:auto;max-width:none;pointer-events:none;
}
.coop-raft .coop-paddle{
 pointer-events:auto;min-width:132px;min-height:48px;display:grid;grid-template-columns:auto auto;
 gap:3px 6px;padding:6px 8px;align-items:center;justify-content:center;box-shadow:0 3px 10px #173a374d;
}
.coop-raft .coop-paddle strong{font-size:.87rem}
.coop-raft .coop-paddle svg{width:24px;height:24px}
.coop-raft .coop-paddle kbd{grid-column:2;font-size:.71rem}
.coop-raft .coop-paddle small{display:none}
@media (pointer:coarse){
 .coop-raft .coop-paddle kbd{display:none}
}
@media (max-width:690px){
 .coop-raft>.coop-hud{inset-inline:8px;top:7px}
 .coop-root.coop-raft>.coop-paddles{inset:auto 7px 8px}
 .coop-raft .coop-paddle{min-width:0;min-height:45px;padding:5px 6px}
 .coop-raft .coop-paddle strong{font-size:clamp(.71rem,3.8vw,.86rem)}
 .coop-raft .coop-paddle svg{width:20px;height:20px}
 .coop-raft>.coop-status{inset:53px auto auto 50%;max-width:calc(100% - 24px);font-size:.74rem}
}
