/* [horde] HORDE H16: the join screen's HORDE block (client/hordemenu.js) and
   the run's share card (client/sharecard.js). The menu's palette and type
   (client/style.css :root); crimson marks HORDE apart from the practice
   block's cyan and the room rules' orange. */

.m-horde { margin-top: 14px; padding: 14px 16px; border: 1px solid rgba(34, 228, 255, 0.45); border-radius: 12px;
  background: #090e1e; }
.m-horde-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.m-horde-head b { font-family: var(--font-display); font-size: 13px; letter-spacing: 0.16em; color: var(--cyan); }
.m-horde-head small { display: block; color: var(--dim); font-size: 11px; line-height: 1.5; margin-top: 3px; }
.m-seats { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.m-seats-label { font-family: var(--font-display); font-size: 10.5px; font-weight: 700; letter-spacing: 0.18em; color: var(--dim); margin-right: 4px; }
.m-seats label { position: relative; cursor: pointer; }
.m-seats input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.m-seats label span { display: inline-block; min-width: 44px; text-align: center; font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: 0.08em;
  padding: 7px 10px; border-radius: 9px; border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(14, 22, 46, 0.72); color: var(--dim); }
.m-seats input:checked + span { color: #120a02; background: linear-gradient(180deg, #ffb35c, #ff8a2a); border-color: transparent; }
.m-seats input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }
.m-horde-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }
#menu .m-horde-buttons .m-go { font-size: 14px; padding: 11px 20px; background: linear-gradient(180deg, #ffb35c, #ff8a2a); color: #120a02; box-shadow: 0 6px 22px rgba(255, 138, 42, 0.32); }
/* [Claude, judges polish r1] the run choice row and a wide start button */
.m-horde-run { display: flex; align-items: center; gap: 12px; margin: 4px 0 12px; }
.m-horde-run-label { font-family: var(--font-display); font-size: 11.5px; letter-spacing: 0.14em; color: #c4d0ea; }
#menu .m-horde-buttons #m-horde-play { flex: 1 1 auto; min-width: 200px; }
.m-horde-mode-toggle { display: inline-flex; align-items: center; padding: 3px; border-radius: 11px; border: 1px solid rgba(34, 228, 255, 0.35); background: rgba(14, 22, 46, 0.85); gap: 3px; }
.m-horde-mode-btn { font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: 0.06em; min-height: 36px; padding: 6px 12px; border-radius: 8px; border: 0; background: transparent; color: var(--dim); cursor: pointer; }
.m-horde-mode-btn:hover { color: #fff; }
.m-horde-mode-btn[aria-pressed="true"] { background: rgba(34, 228, 255, 0.2); color: #fff; box-shadow: inset 0 0 0 1px var(--cyan); }
#menu .m-horde-buttons .m-horde-invite-link { min-height: 40px; padding: 6px 10px; font-size: 12.5px; color: #7ceeff; margin-left: auto; }
#menu .m-horde-buttons .m-horde-invite-link:hover { color: #fff; }
#menu .m-horde-buttons .m-ghost { font-size: 12px; padding: 11px 16px; }
.m-daily-line { margin-top: 10px; color: var(--amber); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.02em; }
.m-horde-status { margin-top: 6px; color: var(--text); font-size: 12px; line-height: 1.5; min-height: 0; }
.m-horde-status:empty { display: none; }
.m-horde-status[data-kind="invite"] { color: var(--lime); }
.m-horde-status[data-kind="error"] { color: #ffd0d8; }
/* the pause screen's INVITE SQUAD result (the join screen's status line is hidden under it) */
#menu .m-horde-pause-status { justify-content: center; margin-top: 8px; color: var(--text); font-size: 12px; line-height: 1.5; text-align: center;
  overflow-wrap: anywhere; user-select: text; -webkit-user-select: text; }
#menu .m-horde-pause-status:empty { display: none; }
#menu .m-horde-pause-status[data-kind="invite"] { color: var(--lime); }
#menu .m-horde-pause-status[data-kind="error"] { color: #ffd0d8; }
.m-board { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border-soft); }
.m-board-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.m-board-head b { font-family: var(--font-display); font-size: 10.5px; letter-spacing: 0.18em; color: var(--dim); }
.m-board-head > span { display: inline-flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.m-board-head button { font-family: var(--font-display); font-weight: 700; font-size: 10.5px; letter-spacing: 0.12em; margin: 0; padding: 4px 9px; border-radius: 7px;
  border: 1px solid var(--border-soft); background: transparent; color: var(--faint); cursor: pointer; }
.m-board-head button[aria-pressed="true"] { color: #fff; border-color: var(--cyan); background: rgba(34, 228, 255, 0.18); }
.m-board ol { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.m-board li { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--text); }
.m-board li b { font-family: var(--font-mono); font-weight: 600; color: var(--amber); white-space: nowrap; }
.m-board-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-board li.m-board-empty { color: var(--faint); }

/* the share card: over the field at the run's end */
#sharecard { position: fixed; inset: 0; z-index: 12; display: flex; align-items: center; justify-content: center; padding: 16px; overflow-y: auto;
  background: radial-gradient(ellipse at center, rgba(7, 10, 22, 0.55), rgba(7, 10, 22, 0.9)); user-select: text; -webkit-user-select: text; }
.sc-box { width: min(760px, 100%); margin: auto; padding: 20px 22px; border-radius: 18px; background: var(--surface); border: 1px solid rgba(255, 77, 109, 0.35);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6); text-align: center; }
.sc-kicker { font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: 0.3em; color: var(--red); }
.sc-box h2 { font-family: var(--font-display); font-size: 26px; letter-spacing: 0.06em; margin: 4px 0 12px; }
.sc-img canvas { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--border-soft); }
.sc-text { margin: 12px 0 0; padding: 10px 12px; text-align: left; white-space: pre-wrap; word-break: break-word; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.55;
  color: var(--text); background: rgba(0, 0, 0, 0.35); border: 1px solid var(--border-soft); border-radius: 10px; }
.sc-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; }
.sc-buttons .m-go { font-size: 14px; padding: 11px 20px; }
.sc-buttons .m-ghost { font-size: 12px; padding: 11px 16px; }
.sc-status { margin-top: 8px; min-height: 16px; font-size: 12px; color: var(--lime); }
.sc-box :focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
@media (max-width: 760px) { #menu .m-horde-buttons #m-horde-play { flex: 1 1 auto; } .sc-box h2 { font-size: 20px; } }
