/* GXA Party House. Colors come from theme.php (as CSS variables); this file never hardcodes brand colors. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px 64px; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
img { max-width: 100%; }

.display {
  font-stretch: 125%;
  font-weight: 850;
  letter-spacing: -0.01em;
  line-height: 1.02;
  font-size: clamp(2rem, 5vw, 3.4rem);
  margin: 0 0 16px;
  text-wrap: balance;
}
.lede { font-size: 1.15rem; max-width: 60ch; margin: 0 0 20px; }
.muted, .hint { color: var(--muted); }
.section-title { font-stretch: 112%; font-weight: 750; font-size: 1.15rem; margin: 0 0 12px; }

/* ---- top bar ---- */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 1180px; width: 100%; margin: 0 auto; padding: 18px 20px;
}
.brand { color: var(--text); text-decoration: none; display: inline-flex; align-items: center; }
.brand-text { font-stretch: 125%; font-weight: 850; font-size: 1.2rem; }
.brand-logo { height: 40px; width: auto; }
.topnav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: flex-end; font-size: .98rem; }
.topnav .who { color: var(--muted); }
.flash {
  max-width: 1140px; margin: 0 auto 16px; padding: 12px 16px; width: calc(100% - 40px);
  background: var(--panel); border-left: 4px solid var(--accent); border-radius: 4px;
}

/* ---- buttons & forms ---- */
.btn {
  display: inline-block; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  padding: 13px 22px; border-radius: 6px; border: 2px solid var(--accent); line-height: 1.2;
}
.btn-primary { background: var(--accent); color: var(--onaccent); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-quiet { background: transparent; color: var(--accent); }
.btn-quiet:hover { background: color-mix(in srgb, var(--accent) 12%, transparent); }

.form-wrap { max-width: 560px; padding-top: 24px; }
.form-wrap.wide { max-width: 760px; }
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; font-weight: 650; }
.field .hint { font-weight: 400; font-size: .92rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
input[type=text], input[type=email], input[type=password], select {
  font: inherit; font-weight: 400; color: var(--text); background: var(--panel);
  border: 1px solid var(--line); border-radius: 6px; padding: 11px 12px; width: 100%;
}
input:focus, select:focus { border-color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.errors { background: var(--panel); border-left: 4px solid #d0634a; border-radius: 4px; padding: 10px 16px; margin-bottom: 18px; }
.errors p { margin: 0 0 4px; font-weight: 650; }
.errors ul { margin: 0; padding-left: 20px; }

.q { border: 0; padding: 0; margin: 0 0 6px; display: grid; gap: 8px; }
.q legend { font-weight: 750; font-size: 1.1rem; margin-bottom: 8px; }
.choice {
  display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 6px;
  background: var(--panel); border: 1px solid transparent; cursor: pointer;
}
.choice:has(input:checked) { border-color: var(--accent); }
.choice input { margin-top: 4px; accent-color: var(--accent); }

.room-picks { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.room-pick { position: relative; cursor: pointer; }
.room-pick input { position: absolute; opacity: 0; }
.room-pick-body {
  display: grid; gap: 4px; height: 100%; padding: 16px; border-radius: 6px;
  background: var(--panel); border: 2px solid var(--line);
}
.room-pick-body strong { font-stretch: 112%; font-size: 1.1rem; }
.room-pick-body span { color: var(--muted); }
.room-pick input:checked + .room-pick-body { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.room-pick input:focus-visible + .room-pick-body { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---- the house drawing (the one bold thing) ---- */
.house { width: 100%; height: auto; display: block; }
.house .roof { fill: none; stroke: var(--line); stroke-width: 3; stroke-linejoin: round; }
.house .chimney { fill: var(--panel); stroke: var(--line); stroke-width: 3; }
.house .ground { stroke: var(--line); stroke-width: 3; }
.house .dirt { fill: color-mix(in srgb, var(--line) 18%, transparent); }
.house .fence { stroke: var(--line); stroke-width: 3; fill: none; stroke-linecap: round; }
.house .room rect { fill: var(--panel); stroke: var(--line); stroke-width: 3; transition: fill .6s ease; }
.house .room-name { fill: var(--text); font-family: "Archivo", sans-serif; font-stretch: 112%; font-weight: 750; text-anchor: middle; }
.house .room-count { fill: var(--muted); font-family: "Archivo", sans-serif; font-size: 14px; text-anchor: middle; }
.house .room.lit rect {
  fill: var(--accent);
  filter: drop-shadow(0 0 14px color-mix(in srgb, var(--accent) 70%, transparent));
}
.house .room.lit .room-name, .house .room.lit .room-count { fill: var(--onaccent); }
.house .room.mine rect { stroke: var(--people); stroke-width: 5; }
.house .room.locked rect { fill: transparent; stroke-dasharray: 8 6; }
.house .room.locked .room-name { fill: var(--muted); }
.house a.room:hover rect, .house a.room:focus-visible rect { stroke: var(--accent); stroke-width: 5; }
.house a.room:focus-visible { outline: none; }

/* ---- front door ---- */
.door { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px; align-items: center; padding: 28px 0 48px; }
.door-title { font-size: clamp(2.4rem, 6vw, 4.6rem); }
.door-when { font-size: 1.15rem; margin: 0 0 10px; }
.door-count { margin: 0 0 26px; color: var(--muted); max-width: 46ch; }
.door-count strong { color: var(--text); font-stretch: 125%; font-size: 1.35rem; }
.door-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.door-house { margin: 0; }
.door-house figcaption { color: var(--muted); font-size: .95rem; margin-top: 6px; }

.how { border-top: 1px solid var(--line); padding-top: 32px; max-width: 760px; }
.how-steps { margin: 0 0 16px; padding-left: 22px; display: grid; gap: 10px; }
.how-invite { color: var(--muted); margin: 0; }

/* ---- lobby ---- */
.house-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; padding: 16px 0 20px; }
.house-title { margin-bottom: 6px; }
.house-status { margin: 0; color: var(--muted); max-width: 62ch; }
.house-status strong { color: var(--text); }
.home-chip {
  display: inline-block; padding: 10px 14px; border-radius: 6px; background: var(--panel);
  border: 2px solid var(--people); color: var(--text); text-decoration: none;
}
.house-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start; }
.room-list { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 2px; }
.room-list li { display: grid; grid-template-columns: 1fr auto; gap: 0 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.room-list a { font-weight: 700; }
.room-list .count { color: var(--muted); font-size: .92rem; }
.room-list .who { grid-column: 1 / -1; color: var(--muted); font-size: .92rem; }
.room-list .locked { opacity: .7; }
.invite p { margin: 0 0 10px; }
.invite-row { display: flex; gap: 8px; }
.invite-row input { min-width: 0; font-size: .9rem; }
.invite-row .btn { padding: 10px 14px; white-space: nowrap; }

/* ---- a room ---- */
.room-head { padding: 12px 0 24px; max-width: 760px; }
.crumb { margin: 0 0 8px; }
.room-who { color: var(--muted); margin: 0; }
.room-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.activities { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.activities li { display: grid; gap: 2px; padding: 16px 18px; background: var(--panel); border-radius: 6px; border-left: 4px solid var(--accent); }
.activities strong { font-stretch: 112%; font-size: 1.1rem; }
.activities .soon { font-style: normal; color: var(--muted); font-size: .9rem; }
.people { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.people li { display: flex; gap: 10px; align-items: center; }
.avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex: none; }
.avatar-letter { display: grid; place-items: center; background: var(--people); color: var(--bg); font-weight: 800; }
.person { display: grid; line-height: 1.25; }
.person-name { font-weight: 650; }
.person-meta { color: var(--muted); font-size: .9rem; }

/* ---- footer ---- */
.foot { border-top: 1px solid var(--line); padding: 20px; text-align: center; color: var(--muted); font-size: .92rem; }
.foot p { margin: 0; }

/* ---- small screens ---- */
@media (max-width: 860px) {
  .door, .house-layout, .room-layout { grid-template-columns: 1fr; }
  .door { gap: 24px; }
}
@media (max-width: 520px) {
  .field-row { grid-template-columns: 1fr; }
  .topnav { gap: 12px; font-size: .92rem; }
}
@media (prefers-reduced-motion: reduce) {
  .house .room rect { transition: none; }
}

/* ---- announcement ---- */
.announce {
  max-width: 1140px; width: calc(100% - 40px); margin: 0 auto 16px; padding: 12px 16px;
  background: var(--accent); color: var(--onaccent); border-radius: 4px; font-weight: 650;
}
.announce[hidden] { display: none; }

/* ---- the Roll Call ---- */
.rollcall {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 50;
  width: min(560px, calc(100% - 24px)); padding: 22px 24px 20px; border-radius: 8px;
  background: var(--panel); border: 3px solid var(--accent); text-align: center;
  box-shadow: 0 0 0 9999px color-mix(in srgb, var(--bg) 55%, transparent), 0 0 40px color-mix(in srgb, var(--accent) 45%, transparent);
}
.rollcall.done { box-shadow: 0 0 30px color-mix(in srgb, var(--accent) 35%, transparent); }
.rollcall-title { font-stretch: 125%; font-weight: 900; font-size: 2.2rem; margin: 0 0 4px; line-height: 1; }
.rollcall-text { margin: 0 0 16px; }
.rollcall-btn { font-size: 1.5rem; padding: 18px 40px; font-stretch: 112%; }
.rollcall-btn:disabled { opacity: 1; cursor: default; filter: saturate(.6); }
.rollcall-meta { margin: 12px 0 0; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---- Living Room stream ---- */
.stream { position: relative; aspect-ratio: 16 / 9; margin-bottom: 28px; background: #000; border-radius: 6px; overflow: hidden; }
.stream iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.stream-off { padding: 40px 20px; margin: 0 0 28px; text-align: center; background: var(--panel); border-radius: 6px; color: var(--muted); }

/* ---- host panel ---- */
.host { display: grid; gap: 20px; max-width: 860px; }
.host-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.host-stats p { margin: 0; padding: 14px 16px; background: var(--panel); border-radius: 6px; color: var(--muted); }
.host-stats strong { display: block; color: var(--text); font-stretch: 125%; font-size: 1.8rem; font-variant-numeric: tabular-nums; }
.host-card { padding: 18px 20px; background: var(--panel); border-radius: 6px; }
.host-card p { margin: 0 0 12px; }
.host-rollcall.is-open { border: 3px solid var(--accent); }
.host-big strong { font-stretch: 125%; font-size: 3rem; color: var(--accent); font-variant-numeric: tabular-nums; }
.host-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.host-row input[type=text] { flex: 1 1 260px; }
.host-row select { width: auto; }
.host-links { margin: 0; padding-left: 20px; }
.host-links code { word-break: break-all; }

/* ---- results ---- */
.results { padding-top: 16px; max-width: 900px; }
.results-label { color: var(--muted); margin: 0; }
.results-num { font-stretch: 125%; font-weight: 900; font-size: clamp(4rem, 14vw, 9rem); line-height: .95; color: var(--accent); margin: 6px 0 10px; font-variant-numeric: tabular-nums; }
.results-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; margin: 28px 0 36px; }
.tally { list-style: none; margin: 0; padding: 0; }
.tally li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.tally strong { font-variant-numeric: tabular-nums; }
.how-counted { border-top: 1px solid var(--line); padding-top: 24px; max-width: 70ch; }
.how-counted ul { padding-left: 20px; display: grid; gap: 6px; }

/* ---- room chat ---- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.chat {
  /* Sits on a background 15% darker than the page, so it reads as its own space. */
  margin-bottom: 32px; padding: 16px; border-radius: 8px;
  background: color-mix(in srgb, var(--bg) 85%, #000);
  border: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}
.chat .section-title { margin-bottom: 10px; }
.chat-log {
  list-style: none; margin: 0 0 12px; padding: 4px 2px; height: 340px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 12px;
}
.chat-empty { color: var(--muted); margin: auto; text-align: center; }
.chat-msg { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; line-height: 1.4; }
.chat-who { font-weight: 750; }
.chat-msg.is-host .chat-who { color: var(--accent); }
.chat-msg.is-me .chat-who { color: var(--people); }
.chat-time { color: var(--muted); font-size: .8rem; align-self: center; }
.chat-text { grid-column: 1 / -1; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-tools { grid-column: 1 / -1; display: flex; gap: 12px; }
.chat-tools button { font: inherit; font-size: .82rem; background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; cursor: pointer; }
.chat-tools button:hover { color: var(--text); }
.chat-form { display: flex; gap: 8px; align-items: stretch; margin: 0; }
.chat-form textarea {
  flex: 1; min-width: 0; font: inherit; line-height: 1.4; color: var(--text); background: var(--panel);
  border: 1px solid var(--line); border-radius: 6px; padding: 12px 14px; resize: none; height: 50px; min-height: 50px;
  appearance: none; -webkit-appearance: none;
}
.chat-form textarea::placeholder { color: var(--muted); opacity: 1; }
.chat-form .btn { flex: none; padding-top: 0; padding-bottom: 0; }
.chat-form textarea:focus { border-color: var(--accent); }
.chat-note { margin: 8px 0 0; color: var(--muted); font-size: .92rem; min-height: 1.2em; }
@media (max-width: 860px) { .chat-log { height: 300px; } }

/* ---- live vote card ---- */
.vote {
  margin-bottom: 24px; padding: 16px; border-radius: 8px; background: var(--panel);
  border: 2px solid color-mix(in srgb, var(--accent) 55%, transparent);
}
.vote .section-title { margin-bottom: 6px; }
.vote-idle { margin: 0; color: var(--muted); }
.vote-q { margin: 0 0 12px; font-stretch: 112%; font-weight: 800; font-size: 1.25rem; line-height: 1.2; }
.vote-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.vote-choice {
  --pct: 0%;
  position: relative; overflow: hidden; display: grid; gap: 2px; align-content: start; text-align: left;
  font: inherit; color: var(--text); cursor: pointer; padding: 16px; min-height: 110px; border-radius: 6px;
  background: color-mix(in srgb, var(--bg) 85%, #000); border: 2px solid var(--line);
}
.vote-choice::before {
  /* the result bar, filled from the left once results are showing */
  content: ""; position: absolute; inset: 0 auto 0 0; width: var(--pct);
  background: color-mix(in srgb, var(--accent) 22%, transparent); transition: width .6s ease;
}
.vote-choice > * { position: relative; }
.vote-choice:hover:not(:disabled) { border-color: var(--accent); }
.vote-choice:disabled { cursor: default; }
.vote-choice.is-mine { border-color: var(--people); box-shadow: inset 0 0 0 1px var(--people); }
.vote-choice.is-winner { border-color: var(--accent); box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 40%, transparent); }
.vote-label { font-weight: 800; font-size: 1.1rem; line-height: 1.25; }
.vote-detail { color: var(--muted); }
.vote-meta { margin-top: 8px; font-size: .92rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.vote-choice.is-winner .vote-meta { color: var(--text); font-weight: 700; }
.vote-foot { margin: 12px 0 0; color: var(--muted); font-size: .92rem; font-variant-numeric: tabular-nums; }
@media (max-width: 520px) { .vote-choices { grid-template-columns: 1fr; } .vote-choice { min-height: 0; } }
@media (prefers-reduced-motion: reduce) { .vote-choice::before { transition: none; } }

/* ---- host panel: votes ---- */
.host-poll.is-open { border: 3px solid var(--accent); }
.poll-form { display: grid; gap: 12px; }
.poll-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
@media (max-width: 520px) { .poll-pair { grid-template-columns: 1fr; } }

/* ---- Living Room player ---- */
.player { margin-bottom: 24px; }
.player-frame { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 6px; overflow: hidden; }
.player-frame iframe, .player-frame #party-player { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* Sits over the video so clicks can't pause, scrub or open YouTube's menus. */
.player-shield { position: absolute; inset: 0; z-index: 2; background: transparent; }
.player-frame:fullscreen { border-radius: 0; }
.player-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.player-bar .btn { padding: 10px 16px; }
.player-status { color: var(--muted); font-size: .92rem; }
/* Twitch, Kick, Facebook... play in their own player, so viewers can use its volume control. */
.player-frame.is-embed #party-player, .player-frame.is-embed .player-shield { display: none; }
.player-embed, .player-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-out { display: grid; justify-items: center; gap: 10px; aspect-ratio: 16 / 9; align-content: center; padding: 20px; text-align: center; border-radius: 6px;
  background: radial-gradient(circle at 50% 30%, #3a1458, #120a24 75%); color: #fff; }
.player-out-t { margin: 0; font-weight: 800; font-size: 1.3rem; }
.player-out-n { margin: 0; color: #c9b6e4; font-size: .9rem; }
.player-credit { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; margin: 10px 0 0; font-size: .95rem; }
.player-credit strong { color: var(--accent); }
.player-credit a { font-weight: 700; }
.chat-msg.is-tagged .chat-who { font-weight: 800; }

/* ---- arcade ---- */
.cabinet-card {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start;
  margin-bottom: 24px; padding: 18px; border-radius: 8px; background: var(--panel); border: 2px solid var(--line);
}
.cabinet-blurb { margin: 0 0 14px; }
.cabinet-top { padding: 12px 14px; border-radius: 6px; background: color-mix(in srgb, var(--bg) 85%, #000); }
.cabinet-top-title { margin: 0 0 6px; font-weight: 700; color: var(--muted); font-size: .92rem; }
.cabinet-top ol { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.cabinet-top li span { margin-right: 6px; }
.cabinet-top strong { font-variant-numeric: tabular-nums; }
.arcade-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.arcade-frame { width: 100%; height: 1000px; border: 0; border-radius: 8px; background: #0c0918; display: block; }
.arcade-note { min-height: 1.4em; margin: 10px 0 0; color: var(--muted); }
.arcade-board { padding: 16px; border-radius: 8px; background: color-mix(in srgb, var(--bg) 85%, #000); border: 1px solid var(--line); }
.board-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 10px; }
.board-tabs button { font: inherit; font-weight: 700; padding: 8px; border-radius: 6px; cursor: pointer; color: var(--muted); background: transparent; border: 1px solid var(--line); }
.board-tabs button[aria-selected="true"] { color: var(--onaccent); background: var(--accent); border-color: var(--accent); }
.board-list { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 2px; }
.board-list li { display: grid; grid-template-columns: 2.2ch 1fr auto; gap: 10px; padding: 7px 6px; border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.board-list li.is-me { color: var(--people); font-weight: 700; }
.board-list .rk { color: var(--muted); font-variant-numeric: tabular-nums; }
.board-list .sc { font-variant-numeric: tabular-nums; }
.board-empty { color: var(--muted); display: block !important; }
.board-foot { font-size: .88rem; margin: 0; }
.host-board { margin: 0 0 10px; padding-left: 20px; display: grid; gap: 6px; }
.host-board li > * { display: inline; margin-right: 8px; }
.linkish { font: inherit; font-size: .9rem; background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; cursor: pointer; }
@media (max-width: 860px) {
  .arcade-layout, .cabinet-card { grid-template-columns: 1fr; }
  .arcade-frame { height: 1300px; }
}

.host-card .poll-form + p { margin-top: 16px; }
.host-textarea { font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; width: 100%; resize: vertical; }
.stream-now { margin: 16px 0 10px !important; }
.loop-row { margin-top: 12px; }

/* ---- mailing list page ---- */
.mail-warn { margin: 0; padding: 12px 16px; border-radius: 6px; background: color-mix(in srgb, var(--accent) 18%, var(--panel)); border-left: 4px solid var(--accent); }
.send-bar { height: 10px; border-radius: 6px; background: var(--bg); overflow: hidden; margin: 6px 0 10px; }
.send-bar span { display: block; height: 100%; background: var(--accent); transition: width .6s ease; }
.mail-preview { width: 100%; height: 640px; border: 1px solid var(--line); border-radius: 8px; background: #1b1036; margin-top: 14px; }
.sub-table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 6px 0 12px; }
.sub-table th, .sub-table td { text-align: left; padding: 8px 8px 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.sub-table th { color: var(--muted); font-weight: 650; }
.sub-table td:first-child { word-break: break-all; }
@media (max-width: 640px) { .sub-table th:nth-child(3), .sub-table td:nth-child(3), .sub-table th:nth-child(5), .sub-table td:nth-child(5) { display: none; } }
.public-state { font-size: 1.1rem; margin: 0 0 12px; }
.public-state strong { color: var(--accent); }

/* ---------- People page (owner) ---------- */
.nav-badge { display: inline-block; min-width: 1.4em; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: var(--accent); color: var(--onaccent); font-size: .8em; font-weight: 800; text-align: center; text-decoration: none; }
.nav-tester { padding: 2px 10px; border-radius: 999px; border: 1px solid var(--accent); color: var(--accent); font-size: .85rem; font-weight: 750; }
.pp-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.pp-tabs a { padding: 8px 14px; border-radius: 999px; background: var(--panel); color: var(--text); text-decoration: none; font-weight: 700; }
.pp-tabs a:hover { outline: 2px solid var(--accent); }
.pp-tabs span { color: var(--muted); font-weight: 600; margin-left: 4px; }
.pp-tabs span.is-hot { color: var(--accent); }
.pp .host-card { scroll-margin-top: 16px; }
.pp-soon { padding: 10px 12px; border-left: 3px solid var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); font-size: .95rem; }
.pp-empty { color: var(--muted); font-style: italic; }
.pp-list, .pp-fb { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; }
.pp-person, .pp-fbitem { padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); }
.pp-person.is-gone { opacity: .65; }
.pp-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.pp-top strong { font-size: 1.08rem; }
.pp-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pp-tag { display: inline-block; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line); font-size: .82rem; font-weight: 700; }
.pp-tag.is-key { border-color: var(--accent); color: var(--accent); }
.pp-tag.is-off { color: var(--muted); border-style: dashed; }
.pp-meta { flex-basis: 100%; color: var(--muted); font-size: .9rem; }
.pp-edit, .pp-add { margin-top: 8px; }
.pp-edit summary, .pp-add summary { cursor: pointer; font-weight: 750; color: var(--accent); width: fit-content; }
.pp-add { margin-top: 4px; padding: 12px 14px; border: 2px dashed var(--line); border-radius: 8px; }
.pp-add[open] { border-style: solid; }
.pp-form { display: grid; gap: 14px; margin: 12px 0 8px; }
.pp-form input[type=date] { font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; width: fit-content; }
.pp-rooms { margin: 0; padding: 0; border: 0; display: grid; gap: 10px; }
.pp-rooms legend { font-weight: 650; margin-bottom: 6px; }
.pp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pp-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; font-weight: 650; }
.pp-chip:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.pp-chip input, .pp-house input { accent-color: var(--accent); width: 18px; height: 18px; margin: 0; }
.pp-house { display: flex; gap: 10px; align-items: flex-start; }
.pp-house .hint { display: block; font-size: .9rem; color: var(--muted); }
.pp-danger { color: #e0485f !important; }
.pp-fbtabs { display: flex; gap: 14px; margin-bottom: 12px; }
.pp-fbtabs a[aria-current] { font-weight: 800; text-decoration: none; color: var(--text); }
.pp-fbhead { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 6px !important; }
.pp-fbitem.kind-bug .pp-tag { border-color: #e0485f; color: #e0485f; }
.pp-fbitem.kind-idea .pp-tag { border-color: var(--accent); color: var(--accent); }
.pp-fbbody { margin: 0 0 6px !important; white-space: normal; }
.pp-fbmeta { font-size: .88rem; }
.pp-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .95rem; }
.pp-log time { color: var(--muted); margin-right: 6px; font-variant-numeric: tabular-nums; }
.pp-invite { border: 2px solid var(--accent); }
.pp form { margin: 0; }

/* ---------- Host dashboard ---------- */
.btn-sm { padding: 7px 12px; font-size: .9rem; border-width: 1px; }
.page-hd .announce { margin-bottom: 0; }
.hd-viewas { margin: 12px 0 0; padding: 10px 14px; border-radius: 8px; background: color-mix(in srgb, var(--accent) 18%, var(--panel)); border: 2px dashed var(--accent); }
.hd { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; align-items: start; padding-top: 18px; }
.hd-nav { position: sticky; top: 14px; display: grid; gap: 14px; padding: 16px 12px; border-radius: 10px; background: var(--panel); max-height: calc(100vh - 28px); overflow-y: auto; }
.hd-me { margin: 0 6px; font-weight: 850; font-size: 1.05rem; line-height: 1.2; overflow-wrap: anywhere; }
.hd-me span { display: block; font-weight: 600; font-size: .82rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-top: 2px; }
.hd-nav nav { display: grid; gap: 2px; }
.hd-group { margin: 12px 8px 4px; font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.hd-link { display: grid; grid-template-columns: 20px 1fr; align-items: center; column-gap: 8px; padding: 9px 10px; border-radius: 8px; color: var(--text); text-decoration: none; font-weight: 700; line-height: 1.25; }
.hd-link small, .hd-live { grid-column: 2; font-weight: 500; font-size: .82rem; color: var(--muted); }
.hd-link:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.hd-link.is-on { background: color-mix(in srgb, var(--accent) 18%, transparent); box-shadow: inset 3px 0 0 var(--accent); }
.hd-ico { text-align: center; color: var(--accent); }
.hd-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--c); justify-self: center; box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 25%, transparent); }
.hd-live b { color: var(--text); font-variant-numeric: tabular-nums; }
.hd-none { margin: 0 10px; color: var(--muted); font-size: .92rem; }
.hd-tour { display: grid; gap: 8px; padding: 12px 8px 4px; border-top: 1px solid var(--line); }
.hd-tourbtn { width: 100%; text-align: center; padding: 9px 12px; }
.hd-switch { display: flex; gap: 8px; align-items: flex-start; font-size: .88rem; color: var(--muted); cursor: pointer; }
.hd-switch input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
.hd-main { min-width: 0; }
.hd-main .host { max-width: none; }
.hd-head { margin: 0 0 18px; }
.hd-head .display { margin-bottom: 8px; }
.hd-head .lede { margin-bottom: 12px; }
.hd-head .lede strong { font-size: 1.3em; font-variant-numeric: tabular-nums; }
.hd-kicker { margin: 0 0 4px; font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.hd-rooms { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.hd-rooms a { display: grid; gap: 4px; height: 100%; padding: 14px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); border-top: 4px solid var(--c); color: var(--text); text-decoration: none; }
.hd-rooms a:hover { border-color: var(--c); }
.hd-big b { font-size: 1.8rem; font-stretch: 125%; font-weight: 850; font-variant-numeric: tabular-nums; }
.hd-big { color: var(--muted); }
.hd-flags { display: flex; flex-wrap: wrap; gap: 4px; min-height: 1.4em; }
.hd-flags i { font-style: normal; font-size: .78rem; font-weight: 800; padding: 1px 8px; border-radius: 999px; background: color-mix(in srgb, var(--c) 25%, transparent); }
.hd-hosts { font-size: .85rem; color: var(--muted); }
.hd-chat, .hd-blocks { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.hd-chat li { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); }
.hd-msg { margin: 0 !important; flex: 1 1 300px; overflow-wrap: anywhere; }
.hd-msg time { color: var(--muted); font-size: .85rem; margin-left: 4px; }
.hd-mod { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.hd-mod form, .hd-blocks form { display: flex; gap: 6px; align-items: center; margin: 0; }
.hd-mod select { width: auto; padding: 6px 8px; font-size: .9rem; }
.hd-blocks li { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.hd-sub { margin: 18px 0 8px; font-size: 1rem; font-weight: 800; }
@media (max-width: 860px) {
  .hd { grid-template-columns: 1fr; gap: 16px; }
  .hd-nav { position: static; max-height: none; }
  .hd-nav nav { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
  .hd-group { grid-column: 1 / -1; margin-top: 6px; }
}

/* People page: member search */
.mp { position: relative; }
.mp-list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% - 26px); margin: 0; padding: 6px; list-style: none; max-height: 320px; overflow-y: auto;
  background: var(--panel); border: 2px solid var(--accent); border-radius: 8px; box-shadow: 0 14px 30px rgba(0,0,0,.35); }
.mp-list li { display: grid; grid-template-columns: 34px 1fr; column-gap: 10px; align-items: center; padding: 7px 8px; border-radius: 6px; cursor: pointer; font-weight: 400; }
.mp-list li[aria-selected="true"] { background: color-mix(in srgb, var(--accent) 22%, transparent); }
.mp-av { grid-row: span 2; width: 34px; height: 34px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--bg); color: var(--accent); font-weight: 850; }
.mp-av img { width: 100%; height: 100%; object-fit: cover; }
.mp-name { font-weight: 800; }
.mp-meta { font-size: .82rem; color: var(--muted); }
.mp.is-picked input[type=text] { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 35%, transparent); }
.hd-main .host { grid-template-columns: minmax(0, 1fr); }
.hd-main .host-card { min-width: 0; overflow-wrap: anywhere; }
.hd-main select, .hd-main input[type=text], .hd-main textarea { max-width: 100%; }

/* dashboard: help box and docked host chat */
.hd-helpbox { display: grid; gap: 6px; padding: 12px 8px 4px; border-top: 1px solid var(--line); }
.hd-helpbtn { width: 100%; background: #d7263d; border-color: #d7263d; color: #fff; padding: 10px 12px; }
.hd-helpbtn:hover { filter: brightness(1.1); }
.hd-duty { margin: 0; font-size: .85rem; color: var(--muted); }
.hd-dock { position: fixed; z-index: 60; right: 16px; bottom: 0; width: min(380px, calc(100vw - 32px)); }
.hd-dock-tab { float: right; cursor: pointer; padding: 10px 16px; border-radius: 10px 10px 0 0; border: 2px solid var(--accent); border-bottom: 0; background: var(--panel); color: var(--text); font: inherit; font-weight: 800; box-shadow: 0 -4px 16px rgba(0,0,0,.2); }
.hd-dock-tab span { margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: #d7263d; color: #fff; font-size: .78rem; }
.hd-dock-body { clear: both; padding: 12px; background: var(--panel); border: 2px solid var(--accent); border-bottom: 0; border-radius: 10px 0 0 0; box-shadow: 0 -8px 30px rgba(0,0,0,.3); }
.hd-dock-body .chat-log { list-style: none; margin: 0 0 8px; padding: 0; height: min(320px, 45vh); overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.hd-dock-body .chat-form { display: flex; gap: 8px; align-items: flex-end; }
.hd-dock-body textarea { flex: 1; min-width: 0; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; resize: none; }
.hd-dock-sub { margin: 0 0 8px; font-size: .82rem; color: var(--muted); }
.page-hd main { padding-bottom: 120px; }
.page-hd .hb-dock { display: none; }
.page-hd .hb-form { bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
.hd-dock-body .chat { background: none; padding: 0; border: 0; box-shadow: none; }
.hd-dock-body .chat-form .btn { padding: 10px 14px; }
@media (max-width: 860px) { .hd-dock { right: 8px; width: calc(100vw - 16px); } }

/* ---------- bookings (host side, room sign, house strip) ---------- */
.hd-set { margin: 8px 0 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; display: grid; gap: 10px; }
.hd-set legend { font-weight: 800; padding: 0 6px; }
.hd-tog { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.hd-tog input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); flex: none; }
.hd-nums { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.hd-nums input { font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; width: 100%; }
.bkh-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.bkh-item { display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between; padding: 12px 14px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); border-left: 6px solid var(--bk); }
.bkh-main { flex: 1 1 340px; min-width: 0; }
.bkh-main h3 { margin: 2px 0; font-size: 1.1rem; }
.bkh-main p { margin: 0 !important; }
.bkh-when { font-size: .92rem; }
.bkh-act { display: grid; gap: 8px; align-content: start; }
.bkh-act form { margin: 0; }
.bkh-trust { font-size: .88rem; display: flex; gap: 6px; align-items: center; }
.linkish { cursor: pointer; color: var(--accent); font-weight: 700; }
.bk-door { padding: 10px 14px; border-radius: 8px; background: color-mix(in srgb, var(--bk) 22%, var(--panel)); border-left: 6px solid var(--bk); }
.bk-door small { color: var(--muted); }
.bk-strip ul { list-style: none; margin: 14px 0; padding: 0; display: flex; gap: 10px; overflow-x: auto; scrollbar-width: thin; }
.bk-strip li { flex: 0 0 auto; }
.bk-strip a { display: grid; gap: 2px; min-width: 210px; max-width: 280px; padding: 10px 14px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); color: var(--text); text-decoration: none; }
.bk-strip li.is-live a { border: 2px solid #d7263d; }
.bk-strip .bk-when { font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.bk-strip li.is-live .bk-when { color: #d7263d; }
.bk-strip .bk-who { font-size: .85rem; color: var(--muted); }
.hd-tvall { justify-content: space-between; margin-bottom: 12px; }
.btn[disabled] { opacity: .45; cursor: default; }
.bkh-pitch { margin-top: 8px; padding: 10px 12px; border-radius: 6px; background: var(--panel); font-size: .95rem; white-space: normal; }
.hd-stage { font-size: .85rem; padding: 3px 8px; border-radius: 6px; background: color-mix(in srgb, var(--bk) 22%, transparent); border-left: 3px solid var(--bk); }
.hd-onstage { margin: 10px 0 14px; padding: 12px 14px; border-radius: 8px; background: color-mix(in srgb, var(--bk) 18%, var(--panel)); border-left: 6px solid var(--bk); }
.hd-onstage p { margin: 0 0 6px; }
.hd-onstage span { font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.hd-onstage small { color: var(--muted); }
.bk-series { font-size: .8rem; padding: 1px 8px; border-radius: 999px; background: rgba(255,181,71,.18); }

/* room page: reserve, on-stage sign with report, grown-ups heads-up */
.bk-reserve { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 14px; padding: 8px 14px; border-radius: 8px; background: var(--panel); border: 1px dashed var(--line); font-size: .95rem; }
.bk-reserve-btn { padding: 6px 14px; border-radius: 999px; background: var(--accent); color: var(--onaccent) !important; text-decoration: none; font-weight: 800; }
.bk-door p { margin: 0; }
.bk-report { margin-top: 6px; font-size: .9rem; }
.bk-report summary { cursor: pointer; color: var(--muted); text-decoration: underline; width: fit-content; }
.bk-report form { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.bk-report input { flex: 1 1 240px; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; }
.bk-report button { cursor: pointer; padding: 8px 14px; border-radius: 6px; border: 0; background: #d7263d; color: #fff; font-weight: 800; }
.bk-report-msg { flex-basis: 100%; font-weight: 700; }
.bk-report-msg:empty { display: none; }
.grown-gate { max-width: 680px; margin: 40px auto; padding: 30px; border-radius: 14px; background: var(--panel); border-top: 6px solid var(--bk); }
.bk-strip li.bk-all a { border-style: dashed; }
.bkh-table-wrap { overflow-x: auto; }
.bkh-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.bkh-table th, .bkh-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.bkh-table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.bkh-table td:first-child { font-weight: 700; white-space: normal; }
/* the room's door sign and "Reserve this room" bar line up with the announcement bar */
.bk-door, .bk-reserve { box-sizing: border-box; max-width: 1140px; width: calc(100% - 40px); margin: 12px auto 16px; }
.bk-door > p > span { font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.bk-door span.bk-report-msg { font-size: .95rem; letter-spacing: 0; text-transform: none; }
.bkh-hold { margin: 8px 0; padding: 8px 12px; border-radius: 6px; border-left: 4px solid var(--amber, #ffb547); background: var(--panel); font-size: .95rem; }
.bkh-holdform { display: inline; margin-left: 6px; }
.bk-left { display: inline-block; margin-left: 4px; padding: 1px 8px; border-radius: 999px; font-size: .85rem; background: color-mix(in srgb, var(--bk) 35%, transparent); font-variant-numeric: tabular-nums; }
.bk-left.is-soon { background: #ffb547; color: #120a24; }
.bk-left.is-over { background: #ff4fa3; color: #120a24; }
/* League HQ */
.lg-hq .lg-answer { margin: 8px 0; font-size: .97rem; }
.lg-hq .lg-credits { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 4px; }
.lg-hq .lg-credits li { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 6px 10px; border-radius: 6px; background: var(--panel); font-size: .95rem; }
.lg-hq .lg-credits small { color: var(--muted); margin-left: 6px; }
.lg-hq .lg-credits form { margin: 0; }
.lg-hq .lg-guests { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.lg-hq .lg-guests li { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.lg-hq .lg-guests form { margin: 0; }
.lg-hq .lg-shot { display: inline-block; margin: 6px 0; }
.lg-hq .lg-shot img { display: block; max-width: min(420px, 100%); max-height: 260px; border-radius: 8px; border: 1px solid var(--line); }
.lg-hq .lg-expected { color: var(--muted); }
.lg-hq .lg-rform { margin-top: 10px; gap: 10px; }
.lg-hq .lg-rrow { display: grid; grid-template-columns: minmax(150px, 220px) 1fr; gap: 12px; align-items: end; }
.lg-hq .lg-rrow select { font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; width: 100%; }
@media (max-width: 640px) { .lg-hq .lg-rrow { grid-template-columns: 1fr; } }
/* League HQ: invite picker */
.lg-hq .lg-pick { position: relative; }
.lg-hq .lg-pick-box { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); }
.lg-hq .lg-pick-box:focus-within { border-color: var(--accent); }
.lg-hq .lg-pick-box input { flex: 1 1 160px; min-width: 120px; border: 0; background: transparent; color: var(--text); font: inherit; padding: 6px 4px; outline: none; }
.lg-hq .lg-chips { display: contents; list-style: none; margin: 0; padding: 0; }
.lg-hq .lg-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 4px 3px 3px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 14%, transparent); font-weight: 650; }
.lg-hq .lg-chip button { border: 0; background: none; color: var(--muted); font-size: 1.1rem; line-height: 1; cursor: pointer; padding: 0 6px; }
.lg-hq .lg-pav { width: 26px; height: 26px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--panel); font-weight: 800; font-size: .8rem; flex: none; }
.lg-hq .lg-pav img { width: 100%; height: 100%; object-fit: cover; }
.lg-hq .lg-pick-list { position: absolute; left: 0; right: 0; top: calc(100% - 22px); z-index: 20; list-style: none; margin: 0; padding: 4px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); box-shadow: 0 14px 30px rgba(0,0,0,.25); max-height: 280px; overflow: auto; }
.lg-hq .lg-pick-list li { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 6px; cursor: pointer; }
.lg-hq .lg-pick-list li[aria-selected="true"], .lg-hq .lg-pick-list li:hover { background: color-mix(in srgb, var(--accent) 14%, transparent); }
.lg-hq .lg-pname { font-weight: 700; }
.lg-hq .lg-pmeta { color: var(--muted); font-size: .88rem; }

/* Tonight > Rooms: open or close rooms */
.hd-doors { margin-top: 16px; padding: 12px 14px; border-radius: 8px; background: var(--bg); }
.hd-doors summary { cursor: pointer; }
.hd-doorlist { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; }
.hd-doorlist form { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; background: var(--panel); }
.hd-door-name { flex: 1; display: flex; align-items: center; gap: 8px; font-weight: 700; }
.hd-door-state { font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.hd-door-state.is-open { color: var(--people); }

/* Backyard tournaments admin (host-yard.php) */
.hy-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; align-items: end; }
.hy-pay { align-self: center; }
.hy-t { padding: 12px 0; border-top: 1px solid var(--line); }
.hy-t:first-of-type { border-top: 0; }
.hy-t h3 { margin: 0 0 4px; font-size: 1.1rem; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.hy-t p { margin: 0 0 6px; }
.hy-st { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: var(--bg); color: var(--muted); }
.hy-st.is-running { background: color-mix(in srgb, #5be3b5 22%, var(--bg)); color: var(--text); }
.hy-st.is-signup { background: color-mix(in srgb, var(--accent) 22%, var(--bg)); color: var(--text); }
.hy-names { list-style: none; margin: 6px 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.hy-names li { display: flex; align-items: center; gap: 4px; padding: 3px 4px 3px 10px; border-radius: 999px; background: var(--bg); }
.hy-names form { display: inline; }
.hy-t .host-row form { display: inline; }
.hy-btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.hd-tvoff { margin-top: 10px; padding: 10px 12px; border-radius: 8px; background: color-mix(in srgb, #d7263d 10%, var(--bg)); align-items: center; }
.hd-offbtn { background: #c8283c; border-color: #c8283c; color: #fff; }
.hd-offbtn:hover { background: #a91f31; border-color: #a91f31; }

/* top menu: My Party, Admin dropdown */
.topnav .nav-me { font-weight: 800; }
.topnav a.who { color: var(--muted); text-decoration: none; }
.topnav a.who:hover { color: var(--text); }
.nav-admin { position: relative; }
.nav-admin summary { cursor: pointer; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; list-style: none; }
.nav-admin summary::-webkit-details-marker { display: none; }
.nav-admin summary::after { content: " \25BE"; font-size: .8em; }
.nav-admin-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 50; display: grid; min-width: 250px; padding: 6px; border-radius: 10px; background: var(--panel); box-shadow: 0 12px 36px rgba(0,0,0,.28); border: 1px solid var(--line); }
.nav-admin-menu a { display: block; padding: 8px 10px; border-radius: 6px; color: var(--text); text-decoration: none; font-weight: 700; }
.nav-admin-menu a small { display: block; font-weight: 400; color: var(--muted); font-size: .8rem; }
.nav-admin-menu a:hover { background: color-mix(in srgb, var(--accent) 14%, transparent); }
@media (max-width: 640px) { .nav-admin-menu { right: auto; left: 50%; transform: translateX(-50%); min-width: 230px; } }
