.join-page .setup-panel{min-height:420px}.join-page #join-submit{width:100%;margin-top:20px}.join-create-link{display:inline-block;margin-top:24px}.join-page #game-list{max-height:580px;overflow-y:auto;display:grid;gap:12px;padding-right:4px}
.join-page .game-row{position:relative;isolation:isolate;overflow:hidden;display:flex;flex-direction:column;align-items:stretch;justify-content:center;min-height:182px;gap:14px;margin:0;padding:18px 55px;border:1px solid var(--line);border-radius:8px;background:#101b18}.join-map-backdrop{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2;opacity:.65}.join-page .game-row::before{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#0e1b20a6,#0e1b20dc 30%,#0e1b20dc 70%,#0e1b20a6);z-index:-1}
.join-game-details{text-align:center;min-width:0}.join-game-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.join-page .join-game-details h3{font-size:14px;line-height:1.3;text-align:left;margin:0;min-width:0;flex:1;overflow-wrap:anywhere}.join-game-points{display:flex;flex-direction:column;align-items:center;gap:5px;flex-shrink:0;color:#d6bd83;line-height:1}.join-game-points-value{display:flex;align-items:baseline;gap:4px}.join-game-points strong{font-size:24px;font-weight:750;font-variant-numeric:tabular-nums}.join-game-points span{font-size:11px}.join-game-points .join-game-pricing{font-size:11px;font-weight:400;color:var(--muted)}.join-game-opponent{margin:12px 0 0;font-size:13px;color:#c6d5d5;overflow-wrap:anywhere}
.join-army-portraits{position:absolute;inset:9px;display:flex;justify-content:space-between;pointer-events:none}.join-team-portraits{display:flex;flex-direction:column;justify-content:center;gap:4px;width:36px;pointer-events:auto}.join-unit-portrait,.join-unit-more{display:grid;place-items:center;flex-shrink:0;width:36px;height:36px;overflow:hidden;border:1px solid #778f98;border-radius:6px;background:#15252b;color:#cad7da;font-size:15px;font-weight:700}.join-team-portraits:last-child .join-unit-portrait{border-color:#ad817a}.join-unit-portrait svg{display:block;width:100%;height:100%}.join-unit-portrait.is-unknown{font-size:25px;color:#92a2a8}.join-unit-more{font-size:12px}
.join-game-actions{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap}.join-game-actions[hidden]{display:none}.join-page .game-row a{font-size:13px;white-space:nowrap}.join-page .close-game{background:#172528b3;color:#e7aaa3;border:1px solid #795451;padding:6px 8px;font-size:11px}.close-game-confirm{position:relative;z-index:2;background:#162528;padding:10px;border-radius:6px;margin:0 -32px}.close-game-confirm p{font-size:13px;line-height:1.5}.close-game-confirm button{font-size:12px;padding:7px 10px;margin-right:8px}
.join-empty{padding:20px 0}.join-empty h3{font-size:20px;line-height:1.4;margin-top:20px}.join-status-label{display:inline-block;border:1px solid var(--line);border-radius:20px;padding:5px 10px;font-size:12px;color:var(--muted)}.join-page #auth-hint form{margin-top:20px}.join-page #auth-hint p{font-size:13px}@media(max-width:1000px){.join-page .setup-panel{min-height:0}.join-page #game-list{max-height:480px}}
/* Clear title / match details / actions hierarchy over a brighter map. */
.join-map-backdrop{opacity:1;transform:scale(1.16)}.join-page .game-row::before{background:linear-gradient(90deg,#0e1b2030,#0e1b208f 24%,#0e1b208f 76%,#0e1b2030)}.join-page .game-row{gap:18px}.join-game-details{text-align:left;text-shadow:0 1px 4px #000}.join-page .join-game-details h3{font-size:16px;line-height:1.3;margin:0 0 14px;font-weight:700}.join-game-heading{align-items:center;gap:12px}.join-game-opponent{margin:0;font-size:13px;line-height:1.4;flex:1;color:#e0e8e8}.join-game-points{align-items:flex-end;gap:4px}.join-game-points strong{font-size:23px}.join-game-actions{justify-content:space-between;gap:10px}.join-page .game-row a{text-shadow:0 1px 4px #000}.join-page .close-game{background:#172528e6}
.join-unit-portrait,.join-unit-more{box-shadow:0 4px 6px #0009,0 1px 2px #0008}.join-game-heading{justify-content:center;align-items:baseline;gap:5px;flex-wrap:wrap}.join-page .join-game-details h3{flex:0 1 auto;font-size:14px;margin:0;text-align:center}.join-game-dot{color:#c5d2d0}.join-game-points{flex-direction:row;align-items:baseline;gap:4px}.join-game-points strong{font-size:19px}.join-game-points-value>span{display:none}.join-game-points .join-game-pricing{font-size:10px}.join-game-opponent{text-align:center;margin:18px 0 0;font-size:14px}.join-game-actions{justify-content:center;gap:8px;flex-wrap:nowrap}.join-page .game-row .join-game-actions>a{display:inline-flex;align-items:center;justify-content:center;padding:7px 8px;border:1px solid #8a9f72;border-radius:5px;background:#203125e6;color:#d4eaa9;text-decoration:none;font-size:11px;line-height:1.2}.join-page .close-game{padding:7px 8px;font-size:11px;line-height:1.2;white-space:nowrap}
.join-game-heading{gap:4px}.join-page .join-game-heading h3{font-size:12px}.join-game-heading .join-game-points strong{font-size:17px}.join-game-heading .join-game-pricing{font-size:9px}
/* Give the title breathing room and quiet the terrain behind it. */
.join-page .game-row::before{background:linear-gradient(90deg,#0e1b2060,#0e1b20bd 24%,#0e1b20bd 76%,#0e1b2060)}.join-game-heading{flex-direction:column;align-items:center;gap:7px;flex-wrap:nowrap}.join-page .join-game-heading h3{font-size:15px;line-height:1.3}.join-game-heading .join-game-points strong{font-size:19px}.join-game-heading .join-game-pricing{font-size:10px}.join-game-opponent{margin-top:12px}.join-page .game-row{gap:14px}
/* Quiet the center rather than making every element compete with the map. */
.join-map-backdrop{filter:saturate(.65);opacity:.8}.join-page .game-row::before{background:linear-gradient(90deg,#12212545 0%,#122125e8 23%,#122125f0 50%,#122125e8 77%,#12212545 100%)}.join-game-details{text-shadow:none;text-align:left}.join-game-heading{align-items:flex-start;gap:8px}.join-page .join-game-heading h3{font-size:15px;line-height:1.3;font-weight:650;text-align:left}.join-game-heading .join-game-points{gap:5px;align-items:baseline}.join-game-heading .join-game-points strong{font-size:15px;font-weight:600;color:#d6bd83}.join-game-heading .join-game-pricing{font-size:11px;color:#aebfc1}.join-game-opponent{text-align:left;margin-top:12px;font-size:12px;color:#bccbcd;line-height:1.3}.join-page .game-row{gap:16px}.join-game-actions{justify-content:flex-start;gap:12px}.join-page .game-row .join-game-actions>a{background:#c7dfa0;color:#18281d;border:1px solid #c7dfa0;font-weight:600;font-size:11px;padding:8px 10px;text-shadow:none;border-radius:6px}.join-page .join-game-actions .close-game{border-color:transparent;background:transparent;color:#c3aca9;font-weight:400;padding:8px 0;font-size:11px}.join-page .join-game-actions .close-game:hover{color:#f1b5ab;text-decoration:underline}.join-unit-portrait,.join-unit-more{box-shadow:0 2px 4px #0008}
/* Keep the map prominent; typography and action hierarchy do the cleanup. */
.join-map-backdrop{filter:none;opacity:1}.join-page .game-row::before{background:linear-gradient(90deg,#0e1b2060,#0e1b20bd 24%,#0e1b20bd 76%,#0e1b2060)}
/* Center the essentials between the two portrait columns. */
.join-game-details{text-align:center}.join-game-heading{align-items:center}.join-page .join-game-heading h3{text-align:center}.join-game-opponent{text-align:center;margin-top:14px}.join-game-actions{justify-content:center}
/* Match identity above a clearly separated bottom action row. */
.join-page .game-row{min-height:196px;justify-content:flex-start;padding-top:34px;padding-bottom:14px;gap:16px}.join-page .join-game-heading h3{font-size:19px;font-weight:750;line-height:1.25}.join-game-opponent{font-size:15px;font-weight:500;line-height:1.2;color:#c7a6a3;margin-top:10px;text-shadow:0 1px 3px #07131780}.join-game-actions{margin-top:auto;display:grid;grid-template-columns:1fr 1fr;gap:8px;width:100%}.join-page .game-row .join-game-actions>a,.join-page .join-game-actions .close-game{display:flex;align-items:center;justify-content:center;min-height:34px;padding:7px 5px;border-radius:7px;font-size:11px;font-weight:650;line-height:1.2;text-decoration:none;box-sizing:border-box;box-shadow:0 3px 6px #0005}.join-page .game-row .join-game-actions>a{color:#e4f1cc;background:#34482eea;border:1px solid #98ae76}.join-page .join-game-actions .close-game{color:#edc3be;background:#432e32e8;border:1px solid #98696b}.join-page .game-row .join-game-actions>a:hover{background:#455d38}.join-page .join-game-actions .close-game:hover{background:#603b40;color:#ffe4df;text-decoration:none}
/* Compact, labeled circular match actions. */
.join-game-actions{display:flex;justify-content:center;gap:18px}.join-page .game-row .join-game-actions>a,.join-page .join-game-actions .close-game{flex:0 0 36px;width:36px;height:36px;min-height:36px;padding:0;border-radius:50%;font-size:25px;line-height:1;font-weight:500}.join-page .game-row .join-game-actions>a:focus-visible,.join-page .join-game-actions .close-game:focus-visible{outline:2px solid #e8f0df;outline-offset:3px}
.join-match-points{display:flex;justify-content:center;align-items:baseline;gap:5px;margin-top:10px;color:#b8c7c9;font-size:11px}.join-match-points strong{font-size:16px;font-weight:600;color:#d6bd83}

/* A single split pill, with independently clickable resume and close halves. */
.join-game-actions{width:100px;align-self:center;gap:0;isolation:isolate;border:1px solid #83918a;border-radius:999px;overflow:hidden;box-shadow:0 3px 7px #0006}
.join-page .game-row .join-game-actions>a,.join-page .join-game-actions .close-game{flex:0 0 57px;width:57px;height:34px;min-height:34px;font-size:22px;border:0;border-radius:0;box-shadow:none}
.join-page .game-row .join-game-actions>a{background:#426237;color:#e3f3cd;clip-path:polygon(0 0,100% 0,75% 100%,0 100%);padding-right:10px;z-index:1}
.join-page .join-game-actions .close-game{margin-left:-14px;padding-left:10px;background:#743f44;color:#ffe0db;clip-path:polygon(25% 0,100% 0,100% 100%,0 100%)}
.join-page .game-row .join-game-actions>a:hover{background:#557d45}.join-page .join-game-actions .close-game:hover{background:#925059}
.join-page .game-row .join-game-actions>a:focus-visible,.join-page .join-game-actions .close-game:focus-visible{outline:0;box-shadow:inset 0 0 0 3px #e8f0df}

/* Soft central shade keeps the map visible around the match details. */
.join-page .game-row::before{background:radial-gradient(ellipse at 50% 48%,#07131752 0%,#07131726 32%,transparent 68%),linear-gradient(90deg,#0e1b2060,#0e1b20bd 24%,#0e1b20bd 76%,#0e1b2060)}
.join-page #pending-list{max-height:580px;overflow-y:auto;display:grid;gap:12px;padding-right:4px}

.invite-status{--status:#c8e896;margin:14px 0 4px;padding:14px 16px;border:1px solid var(--line);border-left:4px solid var(--status);border-radius:8px;background:#101b20}
.invite-status.is-full,.invite-status.is-reserved{--status:#e8c14a}.invite-status.is-in-progress{--status:#7fb6e8}.invite-status.is-finished,.invite-status.is-closed,.invite-status.is-missing{--status:#8fa3a8}
.invite-status-head{display:flex;align-items:center;gap:10px;margin-bottom:8px}.invite-status-pill{padding:3px 10px;border-radius:999px;background:var(--status);color:#0e171b;font-size:12px;font-weight:750;letter-spacing:.06em;text-transform:uppercase}
.invite-status-sub{font-size:13px;color:var(--status);font-weight:600}.invite-status-title{display:block;font-size:18px;letter-spacing:.04em}
.invite-status p{margin:4px 0 0}.invite-status-meta{color:#c8e896;font-size:13px}.invite-status-players{font-weight:600}.invite-status-note{color:var(--muted);font-size:13px}

.join-discord-guidance{font-size:13px;color:var(--muted);margin:16px 0;line-height:1.6}
.join-discord-guidance a{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;box-sizing:border-box;min-height:50px;padding:12px 18px;border:1px solid #718952;border-radius:7px;background:#26372a;color:#d4eca9;font-size:16px;font-weight:650;text-decoration:none}
.join-discord-guidance a:hover{background:#354c35;border-color:#c8e896}
.join-discord-guidance svg{width:24px;height:24px;flex-shrink:0}
.setup-panel:has(#invite-code:not(:placeholder-shown)) .join-discord-guidance{display:none}

/* Local-only design comparison; does not replace saved Classic/Terrain choices. */
.setup-design-preview .join-page{max-width:1320px;padding-top:42px}
.setup-design-preview .setup-panels{gap:20px;align-items:start;grid-template-columns:minmax(280px,.9fr) minmax(320px,1.15fr) minmax(260px,.9fr)}
.setup-design-preview .setup-panel>p.muted{font-size:14px;line-height:1.5;margin:0 0 22px}
.setup-design-preview #join-form label{font-size:12px;font-weight:550;color:#a4b7ba;margin:0 0 7px}
.setup-design-preview #invite-code{height:46px;margin:0;background:#101c20;border:1px solid #4a6268;border-radius:6px;padding:10px 12px;box-shadow:none;font-size:14px}
.setup-design-preview #join-submit{height:46px;margin-top:12px;border-radius:6px;background:#c8e896;border:1px solid #c8e896;box-shadow:none;color:#1a2b20;font-size:14px;padding:10px 16px}
.setup-design-preview #page-status:empty{display:none}
.setup-design-preview .join-discord-guidance{margin:20px 0 0}
.setup-design-preview .join-discord-guidance::before{content:'';display:block;height:1px;margin:0 0 18px;background:#35484d}
.setup-design-preview .join-discord-guidance a{height:46px;min-height:46px;background:transparent;border:1px solid #4a6268;border-radius:6px;color:#dce8e7;font-size:14px;font-weight:550;gap:10px}
.setup-design-preview .join-discord-guidance a:hover{background:#243a40;border-color:#8ca5aa}
.setup-design-preview .join-discord-guidance svg{width:21px;height:21px}
.setup-design-preview #auth-hint:empty{display:none}
.setup-design-preview #games-status,.setup-design-preview #pending-status{font-size:13px;line-height:1.6;color:#a4b7ba}
.setup-design-preview #game-list{max-height:550px}
.setup-design-preview .game-row{border-color:#35484d;border-radius:6px;box-shadow:none}
@media(max-width:1000px){.setup-design-preview .setup-panels{grid-template-columns:1fr}.setup-design-preview .join-page{max-width:660px;padding-top:28px}}

/* Add restrained depth to the local design comparison. */
.setup-design-preview #invite-code{background:linear-gradient(#101c20,#142328);box-shadow:inset 0 2px 4px #0003}
.setup-design-preview #join-submit{background:linear-gradient(#d5edae,#b8d88c);border-color:#c9e99e;box-shadow:inset 0 1px 0 #f3ffd666,0 2px 0 #637e42,0 5px 10px #0003}
.setup-design-preview .join-discord-guidance a{background:linear-gradient(#294047,#1e3339);border-color:#536e74;box-shadow:inset 0 1px 0 #d4eceb0d,0 3px 6px #0002}
.setup-design-preview .join-discord-guidance a:hover{background:linear-gradient(#344f55,#263f46);border-color:#8ca5aa}
.setup-design-preview .game-row{box-shadow:inset 0 1px 0 #d4eceb0a,0 3px 7px #0003}

.join-page .panel-step:has(.panel-count){display:flex;align-items:center;justify-content:flex-start;gap:10px}
.join-page .panel-count{display:inline-flex;align-items:center;justify-content:center;min-width:26px;height:24px;padding:0 7px;box-sizing:border-box;border:1px solid #536a70;border-radius:4px;background:#12232880;color:#cbdadd;font-size:12px;font-weight:600;letter-spacing:0;font-variant-numeric:tabular-nums}
.join-page .panel-count:empty{display:none}
.join-page #games-status:empty,.join-page #pending-status:empty{display:none}

/* Embedded panels float over Home rather than painting a second page. */

/* Paired invitation actions share the input width at every panel size. */
.join-page #spectate-game{display:block;width:100%;min-height:50px;margin-top:10px;padding:12px 20px;background:var(--surface);border-color:var(--line);color:var(--text)}
.join-page #join-submit{min-height:50px}
.setup-design-preview #spectate-game{height:46px;min-height:46px;padding:10px 16px;border-radius:6px;font-size:14px;background:linear-gradient(#294047,#1e3339);border-color:#536e74;box-shadow:inset 0 1px 0 #d4eceb0d,0 3px 6px #0002}
.setup-design-preview #join-submit{min-height:46px}
.terrain-setup #spectate-game{border-radius:3px 12px 3px 12px}
