.coop-page{background:#fff;color:#18392f}.coop-page [hidden]{display:none!important}.coop-page *{box-sizing:border-box}.coop-shell{max-width:1340px;margin:auto;padding:25px 32px 16px}.coop-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:20px}.coop-heading h1{display:flex;align-items:center;gap:12px;margin:0;font-size:32px;letter-spacing:-1.3px;color:#103e2c}.coop-heading h1 img{width:36px;height:36px;image-rendering:pixelated}.coop-heading p{font-size:14px;color:#65786f;margin:5px 0 0}.heading-actions{display:flex;gap:8px;align-items:center}.coop-page button,.quiet-link{border:1px solid #9baea3;border-radius:6px;background:#fff;padding:10px 16px;font:inherit;font-size:14px;cursor:pointer;color:#234333;min-height:42px;text-decoration:none;white-space:nowrap}.coop-page button:hover,.quiet-link:hover{background:#edf5ef}.coop-page button:disabled{cursor:default;opacity:.5}.coop-page .primary{background:#175d3d;border-color:#175d3d;color:#fff;font-weight:700}.coop-page .primary:hover{background:#10452d}.entry-layout{display:grid;grid-template-columns:1.2fr 1fr;border:1px solid #cbd8cf;border-radius:12px;overflow:hidden;max-width:1100px;margin:36px auto}.entry-art{position:relative;background:#dca063;min-height:500px;overflow:hidden}.entry-art canvas{width:100%;height:100%;object-fit:cover;image-rendering:pixelated}.entry-art-copy{position:absolute;top:28px;left:30px;color:#3b281d}.entry-art-copy h2{font-size:40px;line-height:1.3;letter-spacing:-2px;margin:0 0 16px}.entry-art-copy p{font-size:16px;line-height:1.8}.entry-form{padding:30px 32px}.entry-form h2{font-size:23px;margin:0 0 10px;letter-spacing:-.8px}.entry-form>p{font-size:13px;color:#69796f;line-height:1.8;margin:0 0 22px}.coop-page label{display:block;font-size:13px;font-weight:700;margin:14px 0 7px}.entry-form label span{font-weight:400;color:#76877d;margin-left:6px;font-size:11px}.coop-page input,.coop-page select{width:100%;min-width:0;border:1px solid #b8c7bd;background:#fff;padding:10px 12px;border-radius:6px;min-height:44px;color:#223e2e;font:inherit;font-size:14px}.entry-selects{display:grid;grid-template-columns:1fr 1.2fr;gap:12px}.coop-page details{font-size:13px;line-height:1.8;color:#63766a;margin-top:18px}.coop-page summary{cursor:pointer}.entry-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:22px}.entry-form .form-note{font-size:11px;margin:12px 0 0}.coop-page .error{color:#b04432;margin:10px 0 0;min-height:20px}.team-hud{display:grid;grid-template-columns:1.5fr .8fr .8fr .9fr;align-items:center;gap:18px;background:#123d2b;border-radius:9px;padding:14px 20px;color:#f4f9f2;margin-bottom:16px}.team-hud>div,.team-hud>button{display:flex;align-items:center;gap:12px;min-width:0}.team-hud span{font-size:12px;white-space:nowrap;color:#c6dbca}.team-hud strong{font-size:22px;white-space:nowrap;font-variant-numeric:tabular-nums}.team-hud>button{padding:0;border:none;background:none;color:inherit;min-height:28px;justify-content:flex-end}.team-hud>button:hover{background:none;color:#b9e8a0}.team-hud meter{width:70px;height:12px}.arena-layout{display:grid;grid-template-columns:minmax(0,1fr) 240px;gap:18px}.battle-column{min-width:0}#battlefield{position:relative;width:100%;aspect-ratio:4/3;overflow:hidden;border:3px solid #254d38;border-radius:12px;background:#e9ad68;isolation:isolate}#battlefield canvas{position:absolute;inset:0;width:100%;height:100%;image-rendering:pixelated}#enemies,#effects{position:absolute;inset:0;pointer-events:none}.enemy{position:absolute;transform:translate(-50%,-100%);display:flex;align-items:center;flex-direction:column;width:max-content;max-width:24%;pointer-events:auto;cursor:pointer;z-index:2}.enemy-word{border:1.5px solid #625b48;border-radius:4px;background:#fffef4;padding:4px 10px;line-height:1.25;font-size:clamp(13px,1.4vw,21px);font-weight:800;color:#282e27;max-width:100%;overflow-wrap:anywhere;text-align:center;box-shadow:0 2px 0 #805b3630}.enemy img{width:clamp(30px,3.6vw,48px);height:clamp(30px,3.6vw,48px);image-rendering:pixelated;animation:march .5s ease-in-out infinite alternate;filter:drop-shadow(0 3px 1px #58412745)}.enemy.armored img{width:clamp(38px,4.5vw,68px);height:clamp(38px,4.5vw,68px)}.enemy.boss{max-width:32%;z-index:3}.enemy.boss img{width:clamp(48px,6vw,88px);height:clamp(48px,6vw,88px)}.enemy.boss .enemy-word{background:#fff1d0;border-color:#a27732}.enemy-hp{font-size:10px;font-weight:800;line-height:1.5;color:#533c26}.enemy-owner{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:2px 6px;border-radius:3px 3px 0 0;font-size:10px;font-weight:700;background:var(--owner-color);color:#fff;min-height:0}.enemy.is-target .enemy-word{outline:2px solid #1f704c;outline-offset:2px}.enemy.is-owned .enemy-word{border-color:var(--owner-color);box-shadow:0 0 0 2px var(--owner-color)}.attack-form{display:grid;grid-template-columns:minmax(0,1fr) 90px;gap:10px;margin-top:14px}.coop-page .attack-form input{min-height:52px;border:2px solid #226744;font-size:17px}.attack-form button{font-size:18px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}#battle-feedback{font-size:12px;min-height:18px;color:#63766a;margin:10px 0 0}.room-sidebar{border:1px solid #aebfb2;border-radius:9px;padding:16px;align-self:start}.room-sidebar h2{font-size:16px;margin:0 0 10px;color:#244b33}.room-sidebar section+section{border-top:1px solid #dae4dc;margin-top:16px;padding-top:16px}#players{list-style:none;margin:0;padding:0;max-height:240px;overflow:auto}#players li{display:flex;align-items:center;gap:7px;padding:10px 0;border-top:1px solid #e6ede7;font-size:12px;min-width:0}#players img{width:28px;height:28px;image-rendering:pixelated;flex:none}.player-name{font-weight:700;flex:1;overflow-wrap:anywhere}.player-status{font-size:10px;color:#697e6f;white-space:nowrap}.player-hit{font-size:10px;white-space:nowrap;color:#3f664d}#players .is-offline{opacity:.5}.how-to ol{padding-left:18px;font-size:12px;line-height:1.75;margin:0;display:grid;gap:8px}.how-to p{font-size:11px;color:#768679;line-height:1.7;margin-bottom:0}#pause{width:100%;margin-top:12px;font-size:12px}.room-verse p{font-size:12px}.battle-overlay{position:absolute;inset:0;z-index:10;background:#faf8eddf;display:grid;place-items:center;text-align:center;padding:22px}.battle-overlay>div{max-width:480px}.battle-overlay h2{font-size:clamp(20px,2.7vw,32px);letter-spacing:-1px;margin:0 0 12px;color:#1b4930}.battle-overlay p{font-size:14px;color:#5c705f;line-height:1.8;margin:0 0 18px}#lobby-actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}.battle-overlay.is-countdown h2{font-size:68px}.battle-overlay.is-countdown{background:#fff8e9b8}.coop-footer{text-align:right;font-size:10px;color:#8b998f;margin-top:16px}.coop-footer a{color:inherit}#connection-status{padding:10px 14px;border:1px solid #dfc78b;background:#fff8e7;color:#735a20;font-size:13px;border-radius:6px}.arrow{position:absolute;width:24px;height:7px;background:#fce091;clip-path:polygon(0 32%,70% 32%,70% 0,100% 50%,70% 100%,70% 68%,0 68%);transform-origin:center}.impact{position:absolute;transform:translate(-50%,-50%);font-weight:900;font-size:27px;color:#fff7bc;text-shadow:0 1px 2px #8c521a;animation:impact .55s ease-out forwards}.breach #map{animation:shake .28s ease-out}.is-paused .enemy img{animation-play-state:paused}@keyframes march{to{translate:0 -3px;rotate:3deg}}@keyframes impact{to{opacity:0;translate:0 -25px;scale:1.4}}@keyframes shake{25%{translate:-4px 0}75%{translate:4px 0}}
@media(min-width:1000px){.coop-shell:has(#room:not([hidden])){max-width:min(1340px,calc((100dvh - 330px)*4/3 + 320px))}}
@media(max-width:900px){.coop-shell{padding:20px}.coop-heading h1{font-size:26px}.arena-layout{grid-template-columns:minmax(0,1fr) 210px;gap:12px}.room-sidebar{padding:12px}.team-hud{gap:10px;padding:12px}.team-hud strong{font-size:18px}.team-hud meter{display:none}.entry-form{padding:24px}.entry-art-copy h2{font-size:32px}}
@media(max-width:700px){.coop-shell{padding:18px 12px}.coop-heading{align-items:flex-start;gap:10px;flex-wrap:wrap;margin-bottom:16px}.coop-heading h1{font-size:26px}.coop-heading p{font-size:12px}.heading-actions{gap:6px}.coop-page .heading-actions button,.quiet-link{font-size:12px;padding:8px 10px;min-height:36px}.entry-layout{grid-template-columns:1fr;margin:8px 0}.entry-art{min-height:0;height:200px}.entry-art canvas{object-position:center bottom}.entry-art-copy{top:16px;left:20px}.entry-art-copy h2{font-size:26px;margin-bottom:8px}.entry-art-copy p{font-size:12px;line-height:1.6}.entry-form{padding:24px 20px}.entry-form>p{margin-bottom:14px}.team-hud{grid-template-columns:1.3fr .8fr .8fr;gap:8px;padding:12px}.team-hud>div{gap:5px;flex-wrap:wrap}.team-hud span{font-size:10px}.team-hud strong{font-size:16px}.team-hud>button{grid-column:1/-1;border-top:1px solid #ffffff26;padding-top:7px;justify-content:center;gap:8px;min-height:20px}.team-hud>button strong{font-size:14px;letter-spacing:2px}.arena-layout{grid-template-columns:minmax(0,1fr);gap:16px}.room-sidebar{padding:16px;display:grid;grid-template-columns:1fr 1fr;gap:16px}.room-sidebar section+section{margin:0;padding:0;border:0}.room-sidebar .room-verse{grid-column:1/-1;margin-top:0}.how-to ol{font-size:11px;gap:6px}.how-to p{font-size:10px}.enemy{max-width:29%}.enemy-word{font-size:clamp(11px,3.2vw,16px);padding:3px 5px}.enemy-owner{font-size:8px;padding:1px 4px}.enemy-hp{font-size:8px}.enemy img{width:32px;height:32px}.enemy.armored img{width:38px;height:38px}.enemy.boss img{width:48px;height:48px}.attack-form{grid-template-columns:minmax(0,1fr) 66px;gap:8px;margin-top:10px}.coop-page .attack-form input{font-size:14px;min-height:48px;padding:10px}.attack-form button{font-size:15px;padding:8px}#battle-feedback{font-size:11px}.battle-overlay{padding:16px}.battle-overlay p{font-size:12px}.battle-overlay h2{font-size:21px}}
@media(prefers-reduced-motion:reduce){.enemy img,.impact,.breach #map{animation:none}.impact{display:none}}

/* Fit the large 4:3 field and its input in the desktop viewport. */
@media(min-width:1000px){.coop-heading>div:first-child{display:flex;align-items:center;gap:20px}.coop-heading p{margin:0}.coop-shell{padding-top:20px}.coop-heading{margin-bottom:16px}.coop-heading h1{font-size:30px}}
.entry-art canvas{position:absolute;left:0;bottom:0;width:100%;height:auto;object-fit:contain}
#arena-exit{display:none}

/* Fullscreen includes the shared health and wave HUD, plus an in-view exit. */
.coop-page #room:fullscreen{background:#fff;padding:12px;overflow:auto}
.coop-page #room:fullscreen .arena-layout{grid-template-columns:minmax(0,1fr) 220px;align-items:start}
.coop-page #room:fullscreen .battle-column{width:min(100%,calc((100dvh - 185px)*4/3));justify-self:center}
.coop-page #room:fullscreen #battlefield{max-height:none}
.coop-page #room:fullscreen .team-hud{margin-bottom:12px}
.coop-page #room:fullscreen #arena-exit{display:block;position:fixed;right:16px;bottom:12px;z-index:30;font-size:12px;padding:7px 10px;min-height:34px}
.coop-page .skip-link:not(:focus){clip-path:inset(50%);width:1px;height:1px;padding:0;overflow:hidden}
@media(max-width:700px){.coop-page #room:fullscreen .arena-layout{display:block}.coop-page #room:fullscreen .battle-column{margin:auto}.coop-page #room:fullscreen .room-sidebar{display:none}}
@media(max-width:700px){
 .team-hud>div{flex-direction:column;align-items:flex-start;gap:2px}
 .room-sidebar{display:block}
 .room-sidebar .how-to{border-top:1px solid #dae4dc;margin-top:16px;padding-top:16px}
 .room-sidebar .room-verse{margin-top:16px}
}
.code-join-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}
.code-join-row button{font-size:12px;padding:8px 12px}
#room-browser{width:min(660px,calc(100% - 28px));max-height:calc(100dvh - 28px);padding:24px;border:1px solid #aabfaf;border-radius:12px;color:#234333;background:#fff;box-shadow:0 16px 60px #102f3b35}
#room-browser::backdrop{background:#102f3b88}
.room-browser-heading{display:flex;align-items:flex-start;gap:16px;justify-content:space-between}
.room-browser-heading h2{font-size:23px;line-height:1.4;margin:0 0 8px;letter-spacing:-.6px}
.room-browser-heading p{font-size:13px;line-height:1.7;margin:0;color:#687b6c}
.room-browser-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:18px;font-size:13px;font-weight:700}
#room-browser button{font-size:13px;min-height:40px;padding:8px 13px}
#room-list-status{font-size:13px;color:#6a786b;line-height:1.7;margin:10px 0}
.room-list{list-style:none;padding:0;margin:0;max-height:min(48dvh,420px);overflow:auto}
.room-list li{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:16px;padding:16px 0;border-top:1px solid #dce5df}
.room-list strong{display:block;font-size:16px;overflow-wrap:anywhere}
.room-list p{font-size:12px;line-height:1.7;margin:5px 0;color:#687b6c}
.room-status{font-size:11px;color:#39724d}
.room-list button:not(:disabled){background:#175d3d;border-color:#175d3d;color:#fff}
.room-browser-note{font-size:11px;line-height:1.8;color:#78877c;margin:16px 0 0}
@media(max-width:700px){#room-browser{padding:20px 16px}.room-browser-heading h2{font-size:21px}.room-list li{gap:10px}.room-list strong{font-size:15px}}
/* Officially documented 3/5-combo triggers, shared by the cooperating team. */
.support-hud{display:flex;align-items:center;gap:20px;flex-wrap:wrap;margin:-6px 0 12px;padding:4px 2px;color:#6c7b6e;font-size:12px;min-height:30px}
.team-combo{font-weight:700;color:#294c36;white-space:nowrap}.team-combo strong{font-size:22px;line-height:1;margin-left:6px;color:#a56716;font-variant-numeric:tabular-nums}
.support-hud>span{display:flex;align-items:center;gap:6px;opacity:.65;white-space:nowrap}.support-hud>span.is-active{opacity:1;color:#9b5912;font-weight:800}
.support-hud #wizard-support.is-active{color:#7d42a9}.support-hud img{width:23px;height:23px;image-rendering:pixelated}
#support-wizard{position:absolute;left:82.7%;top:69.4%;width:5.4%;height:auto;image-rendering:pixelated;z-index:3}
.magic-bolt{position:absolute;width:13px;height:13px;border-radius:50%;box-shadow:0 0 6px 3px #ca9bff,0 0 12px #f7dfff;z-index:4}
.entry-form .support-intro{font-size:12px;font-weight:700;color:#735125;margin:18px 0 0}
@media(min-width:1000px){.coop-shell:has(#room:not([hidden])){max-width:min(1340px,calc((100dvh - 365px)*4/3 + 320px))}}
.coop-page #room:fullscreen .battle-column{width:min(100%,calc((100dvh - 220px)*4/3))}
@media(max-width:700px){.support-hud{gap:7px 14px;font-size:10px;margin:-5px 0 10px}.team-combo strong{font-size:19px}.support-hud img{width:20px;height:20px}}

.enemy.is-phrase:not(.boss){max-width:28%}.enemy.is-phrase .enemy-word{white-space:normal;word-break:normal}
.entry-form .phrase-intro{font-size:12px;line-height:1.7;color:#687b6c;margin:6px 0 0}

/* Nearer enemies stay in front so a newer phrase sprite cannot cover their labels. */
#effects{z-index:60}.battle-overlay{z-index:100}

/* Monthly team records sit beside the room entry, without reducing the battlefield. */
.entry-layout{max-width:none;grid-template-columns:minmax(0,.9fr) minmax(360px,1.15fr) minmax(280px,.85fr)}
.entry-ranking{min-width:0;padding:28px 20px;background:#f5f8f3;border-left:1px solid #d7e1d5}
.ranking-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.ranking-eyebrow{font-size:11px;color:#708263;margin:0 0 6px}.ranking-heading h2{font-size:21px;letter-spacing:-.8px;margin:0;color:#25472e}.coop-page .ranking-heading button{font-size:11px;padding:6px 8px;min-height:34px}
.ranking-filters{display:grid;grid-template-columns:1fr 1fr;gap:10px}.ranking-filters select{font-size:12px;padding:9px 8px}#ranking-status{font-size:12px;line-height:1.7;color:#667b60;margin:18px 0}.coop-rankings{list-style:none;padding:0;margin:18px 0 0}.coop-rankings li{display:grid;grid-template-columns:24px minmax(0,1fr) auto;align-items:start;gap:9px;border-bottom:1px solid #dbe5d7;padding:14px 0}.rank-number{font-size:17px;font-weight:800;color:#6b7b60;font-variant-numeric:tabular-nums}.coop-rankings li:first-child .rank-number{color:#a16a16}.rank-names{display:block;font-size:13px;line-height:1.6;overflow-wrap:anywhere}.rank-meta{font-size:10px;line-height:1.7;color:#70816b;margin:5px 0 0}.rank-score{font-size:17px;color:#214e32;white-space:nowrap;font-variant-numeric:tabular-nums}.rank-score small{font-size:10px;margin-left:2px;font-weight:400}.ranking-note{font-size:10px;line-height:1.8;color:#7b8973;margin:20px 0 0}
@media(max-width:1150px) and (min-width:701px){.entry-layout{grid-template-columns:minmax(0,1fr) minmax(340px,1fr)}.entry-art{display:none}.entry-ranking{grid-column:2;grid-row:1}.entry-form{grid-column:1;grid-row:1}}
@media(max-width:700px){.entry-layout{grid-template-columns:minmax(0,1fr)}.entry-ranking{border-left:0;border-top:1px solid #d7e1d5;padding:24px 20px}.ranking-heading h2{font-size:22px}}

/* Long challenges remain readable below the field, including on phones. */
.enemy.miniboss.is-phrase{max-width:44%}.enemy.miniboss .enemy-word{background:#fff0cf;border:2px solid #b36b25;color:#694018}.enemy.miniboss .enemy-hp{color:#7e3d1c;font-weight:900}.enemy.miniboss img{width:clamp(42px,5vw,72px);height:clamp(42px,5vw,72px);filter:drop-shadow(0 0 5px #ffbb4f)}
.miniboss-challenge{border:1px solid #d0a363;border-left:4px solid #b46a22;border-radius:7px;background:#fff8e8;padding:12px 16px;margin-top:12px}.miniboss-challenge strong{font-size:13px;color:#8d4a1e}.miniboss-challenge p{font-size:16px;line-height:1.8;font-weight:700;color:#4d3721;margin:7px 0;overflow-wrap:anywhere}.miniboss-challenge small{font-size:11px;color:#8b765c}
@media(max-width:700px){.enemy.miniboss.is-phrase{max-width:50%}.enemy.miniboss img{width:44px;height:44px}.miniboss-challenge{padding:10px 12px}.miniboss-challenge p{font-size:14px;line-height:1.8}}

#verse-preview,#room-verse-text{white-space:pre-line}
