/* met-lobby.css -- the MetPlayer lobby banner on the games grid (TASK-1698[Q];
   living_docs/mockups/multiplayer-lobby.html is the reference).  The grid's
   dark palette (games-grid.css --gg-* tokens) under late-90s MPlayer / Zone
   lobby chrome: bevelled frames, a gradient title bar, column-headed lists.
   Readable floor: 12px+, 4.5:1+ on these grounds (ink #d8fbff and soft
   #9ec8cf on #0b1219 / #0e1821 measure 13:1 and 7:1; the amber #ffc66b 9:1;
   the accent #5be7ff 10:1); 44px taps at phone width.  Borders are declared
   at their final width in every state so nothing moves on press or hover,
   and every list is a FIXED frame that scrolls (CLAUDE.md, fixed-size
   panels).  Every class is .mpl-* so metaeden_net_mobile_e's rule about a
   stylesheet painting nothing off its own markup holds. */
.mpl-root {
  --mpl-bg: #05080c; --mpl-card: #0b1219; --mpl-panel: #0e1821; --mpl-panel2: #0a131a;
  --mpl-field: #060d12; --mpl-rule: #1c2a36; --mpl-hi: #2f4a5c; --mpl-lo: #010305;
  --mpl-ink: #d8fbff; --mpl-soft: #9ec8cf; --mpl-accent: #5be7ff; --mpl-amber: #ffc66b;
  --mpl-good: #7dffa8; --mpl-warn: #ff9a8a; --mpl-title-a: #0c4058; --mpl-title-b: #072433;
  --mpl-title-ink: #e6fdff; --mpl-sel: #12394b; --mpl-btn: #12283a; --mpl-btn-hot: #1a3a50;
  --mpl-go: #5be7ff; --mpl-go-ink: #03161d; --mpl-chip: #10212c;
  display: block; margin: 0 0 16px; color: var(--mpl-ink);
  font: 14px/1.45 'IBM Plex Mono', 'Courier New', Courier, monospace;
}
.mpl-root * { box-sizing: border-box; }
.mpl-root [hidden] { display: none !important; }

/* ---- the banner: one line, fixed height, never sticky ------------------------- */
.mpl-banner {
  display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap;
  min-height: 52px; padding: 6px 8px 6px 12px; background: var(--mpl-card);
  border: 2px solid; border-color: var(--mpl-hi) var(--mpl-lo) var(--mpl-lo) var(--mpl-hi);
}
.mpl-mark {
  font: 400 26px/1 'Bebas Neue', Impact, 'Arial Narrow', sans-serif; letter-spacing: 0.08em;
  color: var(--mpl-accent); text-shadow: 0 0 10px rgba(91, 231, 255, 0.45); white-space: nowrap;
}
.mpl-count { color: var(--mpl-soft); font-size: 13px; white-space: nowrap; }
.mpl-count b { color: var(--mpl-ink); font-weight: 600; }
.mpl-newest { flex: 1 1 260px; min-width: 0; font-size: 13px; color: var(--mpl-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mpl-newest b { color: var(--mpl-ink); font-weight: 600; }
.mpl-turn {
  color: var(--mpl-amber); font-weight: 600; font-size: 13px; white-space: nowrap; text-decoration: none;
  background: transparent; border: 1px solid var(--mpl-amber); border-radius: 3px; padding: 4px 8px; min-height: 36px;
  display: inline-flex; align-items: center; cursor: pointer; font-family: inherit;
}
.mpl-actions { display: flex; gap: 8px; flex: 0 0 auto; margin-left: auto; }

/* ---- the 90s controls --------------------------------------------------------------- */
.mpl-btn {
  min-height: 36px; padding: 0 14px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  font: 600 13px/1 'IBM Plex Mono', 'Courier New', monospace; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--mpl-ink); background: var(--mpl-btn); text-decoration: none;
  border: 2px solid; border-color: var(--mpl-hi) var(--mpl-lo) var(--mpl-lo) var(--mpl-hi);
}
.mpl-btn:hover, .mpl-btn:focus-visible { background: var(--mpl-btn-hot); outline: none; }
.mpl-btn:active { border-color: var(--mpl-lo) var(--mpl-hi) var(--mpl-hi) var(--mpl-lo); }
.mpl-btn.mpl-go { background: var(--mpl-go); color: var(--mpl-go-ink); }
.mpl-btn[disabled], .mpl-btn[aria-disabled="true"] { cursor: not-allowed; color: var(--mpl-soft); background: var(--mpl-panel2); }
.mpl-btn[aria-pressed="true"] { background: var(--mpl-go); color: var(--mpl-go-ink); }
.mpl-win {
  margin-top: 8px; background: var(--mpl-panel); color: var(--mpl-ink);
  border: 2px solid; border-color: var(--mpl-hi) var(--mpl-lo) var(--mpl-lo) var(--mpl-hi);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.mpl-titlebar {
  display: flex; align-items: center; gap: 8px; min-height: 30px; padding: 3px 4px 3px 8px;
  background: linear-gradient(90deg, var(--mpl-title-a), var(--mpl-title-b));
  color: var(--mpl-title-ink); font: 700 13px/1.2 Tahoma, Verdana, 'Segoe UI', sans-serif;
}
.mpl-titlebar .mpl-t { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mpl-tb-btn {
  flex: 0 0 auto; min-width: 28px; height: 24px; padding: 0 6px; cursor: pointer;
  font: 700 12px/1 Tahoma, Verdana, sans-serif; color: var(--mpl-ink); background: var(--mpl-btn);
  border: 2px solid; border-color: var(--mpl-hi) var(--mpl-lo) var(--mpl-lo) var(--mpl-hi);
}
.mpl-sunk { background: var(--mpl-field); border: 2px solid; border-color: var(--mpl-lo) var(--mpl-hi) var(--mpl-hi) var(--mpl-lo); }
.mpl-chip {
  display: inline-block; padding: 1px 6px; border-radius: 3px; border: 1px solid var(--mpl-rule);
  background: var(--mpl-chip); font-size: 12px; line-height: 18px; color: var(--mpl-soft); white-space: nowrap;
}
.mpl-chip.mpl-guest { color: var(--mpl-amber); }
.mpl-chip.mpl-yours { color: var(--mpl-soft); }
.mpl-chip.mpl-move-mine { color: var(--mpl-amber); border-color: var(--mpl-amber); font-weight: 600; }
.mpl-chip.mpl-move-theirs { color: var(--mpl-soft); }
.mpl-sprite { image-rendering: pixelated; image-rendering: crisp-edges; flex: 0 0 auto; vertical-align: middle; background: var(--mpl-panel2); }
.mpl-who { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.mpl-who b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mpl-tilde { color: var(--mpl-amber); }
.mpl-pane-h { margin: 0 0 6px; font: 700 12px/1.2 Tahoma, Verdana, sans-serif; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mpl-soft); }
.mpl-fine { font-size: 12px; color: var(--mpl-soft); margin: 6px 0 0; }
.mpl-note { font-size: 13px; color: var(--mpl-soft); margin: 6px 0 0; }
.mpl-field {
  flex: 1 1 auto; min-width: 0; min-height: 36px; padding: 4px 8px; color: var(--mpl-ink);
  font: 13px/1.2 'IBM Plex Mono', monospace; background: var(--mpl-field);
  border: 2px solid; border-color: var(--mpl-lo) var(--mpl-hi) var(--mpl-hi) var(--mpl-lo);
}
.mpl-field::placeholder { color: var(--mpl-soft); opacity: 1; }
select.mpl-field { min-height: 36px; }

/* ---- the open lobby: picker | tables + detail + chat | people ------------------------ */
.mpl-body { display: grid; gap: 8px; padding: 8px; grid-template-columns: 200px minmax(0, 1fr) 230px; }
.mpl-claim {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between;
  margin: 8px 8px 0; padding: 6px 8px; font-size: 13px; color: var(--mpl-ink);
  background: var(--mpl-panel2); border: 1px dashed var(--mpl-amber);
}
.mpl-claim b { color: var(--mpl-amber); }
.mpl-picker { list-style: none; margin: 0; padding: 4px; }
.mpl-picker li { margin: 0; }
.mpl-picker button {
  display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 6px;
  min-height: 40px; padding: 4px 8px; text-align: left; cursor: pointer;
  font: 13px/1.25 'IBM Plex Mono', monospace; color: var(--mpl-ink); background: transparent; border: 1px solid transparent;
}
.mpl-picker button small { display: block; font-size: 12px; color: var(--mpl-soft); }
.mpl-picker button[aria-pressed="true"] { background: var(--mpl-sel); border-color: var(--mpl-accent); }
.mpl-picker .mpl-n { font-weight: 600; color: var(--mpl-accent); }
.mpl-rooms-wrap { height: 264px; overflow-y: auto; }
.mpl-rooms { width: 100%; border-collapse: collapse; font-size: 13px; }
.mpl-rooms th {
  position: sticky; top: 0; z-index: 1; text-align: left; font: 700 12px/1.2 Tahoma, Verdana, sans-serif;
  color: var(--mpl-ink); background: var(--mpl-btn); padding: 6px 8px;
  border: 2px solid; border-color: var(--mpl-hi) var(--mpl-lo) var(--mpl-lo) var(--mpl-hi);
}
.mpl-rooms td { padding: 6px 8px; border-bottom: 1px solid var(--mpl-rule); vertical-align: middle; color: var(--mpl-ink); }
.mpl-rooms tbody tr { cursor: pointer; }
.mpl-rooms tbody tr:nth-child(even) td { background: var(--mpl-panel2); }
.mpl-rooms tbody tr[aria-selected="true"] td { background: var(--mpl-sel); }
.mpl-rooms tbody tr:focus-visible { outline: 2px solid var(--mpl-accent); outline-offset: -2px; }
.mpl-rooms .mpl-g { color: var(--mpl-soft); white-space: nowrap; }
.mpl-rooms .mpl-empty td { color: var(--mpl-soft); cursor: default; }
.mpl-st-wait { color: var(--mpl-good); }
.mpl-st-play { color: var(--mpl-amber); }
.mpl-seatbar { display: inline-flex; gap: 2px; vertical-align: middle; margin-right: 6px; }
.mpl-seatbar i { width: 9px; height: 12px; border: 1px solid var(--mpl-soft); }
.mpl-seatbar i.mpl-on { background: var(--mpl-accent); border-color: var(--mpl-accent); }
.mpl-seatbar i.mpl-ai { background: var(--mpl-soft); }
.mpl-detail { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 10px; padding: 8px; margin-top: 8px; min-height: 150px; }
.mpl-detail > p:only-child { grid-column: 1 / -1; margin: 0; }
.mpl-shot {
  aspect-ratio: 1200 / 630; display: flex; align-items: flex-end; padding: 4px 6px; background-size: cover; background-position: center;
  background-color: var(--mpl-panel2); font: 400 18px/1 'Bebas Neue', Impact, sans-serif; letter-spacing: 0.05em; color: var(--mpl-ink);
}
.mpl-detail h3 { margin: 0 0 4px; font: 400 24px/1 'Bebas Neue', Impact, sans-serif; letter-spacing: 0.05em; color: var(--mpl-ink); }
.mpl-detail p { margin: 0 0 6px; font-size: 13px; color: var(--mpl-soft); }
.mpl-seats-row { display: flex; flex-wrap: wrap; gap: 6px 12px; margin: 6px 0 8px; }
.mpl-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.mpl-people { list-style: none; margin: 0; padding: 4px; height: 332px; overflow-y: auto; }
.mpl-people li { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 40px; padding: 2px 4px; border-bottom: 1px solid var(--mpl-rule); }
.mpl-people .mpl-where { font-size: 12px; color: var(--mpl-soft); white-space: nowrap; }
.mpl-chat { margin-top: 8px; display: flex; flex-direction: column; }
.mpl-chat-lines { height: 150px; overflow-y: auto; padding: 6px 8px; font-size: 13px; }
.mpl-chat-lines p { margin: 0 0 4px; display: flex; gap: 6px; align-items: flex-start; }
.mpl-chat-lines p b { color: var(--mpl-accent); font-weight: 600; white-space: nowrap; }
.mpl-chat-lines p b.mpl-guest { color: var(--mpl-amber); }
.mpl-chat-lines p span { color: var(--mpl-ink); min-width: 0; overflow-wrap: anywhere; }
.mpl-chat-form { display: flex; gap: 6px; margin-top: 6px; }

/* ---- the host dialog and the waiting room: windows over the lobby ------------------ */
.mpl-dialog { max-width: 640px; }
.mpl-form { padding: 12px; display: grid; gap: 12px; }
.mpl-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 8px; align-items: center; }
.mpl-row > label, .mpl-row > .mpl-lab { font-size: 13px; color: var(--mpl-soft); }
.mpl-seg { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.mpl-seg .mpl-btn { min-width: 44px; }
.mpl-radios { display: grid; gap: 6px; }
.mpl-radios label, .mpl-checks label { display: flex; align-items: center; gap: 8px; min-height: 32px; font-size: 13px; color: var(--mpl-ink); }
.mpl-radios input, .mpl-checks input { width: 18px; height: 18px; accent-color: var(--mpl-accent); flex: 0 0 auto; }
fieldset.mpl-rules { margin: 0; padding: 8px 10px 10px; border: 1px solid var(--mpl-rule); }
fieldset.mpl-rules legend { padding: 0 6px; font: 700 12px/1.2 Tahoma, Verdana, sans-serif; letter-spacing: 0.06em; color: var(--mpl-accent); text-transform: uppercase; }
.mpl-form-foot { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; padding: 0 12px 12px; }
.mpl-status { font-size: 13px; color: var(--mpl-amber); min-height: 20px; margin: 0; }
.mpl-wait-body { display: grid; gap: 8px; padding: 8px; grid-template-columns: minmax(0, 1fr); }
.mpl-seats { display: grid; gap: 8px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mpl-seat { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 8px; min-height: 238px; text-align: center; }
.mpl-seat .mpl-h { font: 700 12px/1.2 Tahoma, Verdana, sans-serif; letter-spacing: 0.06em; color: var(--mpl-soft); }
.mpl-seat .mpl-nm { font-weight: 600; font-size: 14px; overflow-wrap: anywhere; }
.mpl-seat .mpl-corp { font-size: 12px; color: var(--mpl-soft); }
.mpl-seat .mpl-rdy { font-weight: 600; font-size: 13px; }
.mpl-seat .mpl-rdy.mpl-yes { color: var(--mpl-good); }
.mpl-seat .mpl-rdy.mpl-no { color: var(--mpl-amber); }
.mpl-seat.mpl-open { border-style: dashed; }
.mpl-seat.mpl-open .mpl-nm { color: var(--mpl-soft); font-weight: 400; }
.mpl-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; margin: 8px 0; font-size: 13px; color: var(--mpl-soft); }
.mpl-invite { display: flex; gap: 6px; margin: 8px 0; }
/* TASK-1749[Q]: DESTRUCTIVE CONTROLS.  A quiet underlined link on a row of its own, pushed to the far end,
   never beside the real press.  32px tall for a thumb, 13px, --mpl-soft on the panel (~7:1).  Its state
   (armed or not) changes only aria-expanded, so nothing moves; the question opens BELOW it. */
.mpl-danger-row { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 12px; margin-top: 10px; }
.mpl-danger-row[hidden] { display: none; }
.mpl-quiet { min-height: 32px; margin: 0; padding: 0 8px; border: 0; background: none; color: var(--mpl-soft); font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; }
.mpl-quiet:hover, .mpl-quiet:focus-visible { color: var(--mpl-ink); outline: none; box-shadow: inset 0 0 0 1px var(--mpl-hi); }
.mpl-ask-in { display: contents; }
.mpl-btn.mpl-danger { border-color: var(--mpl-warn); color: var(--mpl-warn); }
.mpl-wait-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; align-items: center; }
.mpl-ask { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; padding: 8px; font-size: 13px; background: var(--mpl-panel2); border: 1px dashed var(--mpl-amber); }
.mpl-hidden-start { margin-top: 8px; padding: 8px; font-size: 13px; color: var(--mpl-ink); background: var(--mpl-panel2); border: 1px solid var(--mpl-amber); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
/* TASK-1722[Q]: I'M READY EBBS while you are seated and not ready, and is the quiet
   secondary button while a pick is still owed.  The glow is box-shadow and the
   highlight is outline: neither takes a pixel of layout, so nothing jitters.
   Reduced motion gets the same two states as static rings.  The hint line keeps
   its height whether or not it has words. */
@keyframes mpl-ebb {
  0%, 100% { box-shadow: 0 0 3px 0 rgba(91, 231, 255, 0.35); }
  50% { box-shadow: 0 0 14px 4px rgba(91, 231, 255, 0.9); }
}
@keyframes mpl-nudge {
  0%, 100% { box-shadow: 0 0 2px 0 rgba(255, 198, 107, 0.35); }
  50% { box-shadow: 0 0 12px 3px rgba(255, 198, 107, 0.95); }
}
.mpl-btn.mpl-pulse { background: var(--mpl-go); color: var(--mpl-go-ink); animation: mpl-ebb 1.8s ease-in-out infinite; }
.mpl-btn.mpl-pulse:hover, .mpl-btn.mpl-pulse:focus-visible { background: #8af0ff; }
.mpl-btn.mpl-soft { background: var(--mpl-panel2); color: var(--mpl-soft); }
.mpl-btn.mpl-soft:hover, .mpl-btn.mpl-soft:focus-visible { background: var(--mpl-btn-hot); color: var(--mpl-ink); }
.mpl-field.mpl-nudge { outline: 2px solid var(--mpl-amber); outline-offset: 2px; animation: mpl-nudge 1.3s ease-in-out infinite; }
.mpl-pick-hint { margin: 0; min-height: 20px; font-size: 13px; color: var(--mpl-amber); }
/* TASK-1741[Q]: THE TABLE'S CHAT, a FIXED frame like world chat's (the log
   scrolls, the composer sits outside it), and THE READY CHECK: the nudged
   window flashes amber (box-shadow only, so nothing moves) and keeps a static
   ring until its player is ready; the line over the buttons keeps its height
   whether or not it has words. */
.mpl-tchat .mpl-tchat-lines { height: 132px; }
.mpl-tchat-lines p.mpl-sys span { color: var(--mpl-amber); }
.mpl-tchat-lines p.mpl-tchat-empty { color: var(--mpl-soft); }
.mpl-tchat-note { min-height: 18px; }
.mpl-rcheck-line { margin: 0; min-height: 22px; font-size: 14px; font-weight: 600; color: var(--mpl-amber); }
@keyframes mpl-rcheck {
  0%, 100% { box-shadow: 0 0 0 3px var(--mpl-amber); }
  50% { box-shadow: 0 0 0 5px var(--mpl-amber), 0 0 26px 8px rgba(255, 198, 107, 0.7); }
}
.mpl-win.mpl-rchecked { box-shadow: 0 0 0 3px var(--mpl-amber); animation: mpl-rcheck 0.9s ease-in-out 5; }
@media (prefers-reduced-motion: reduce) { .mpl-win.mpl-rchecked { animation: none; } }
@media (prefers-reduced-motion: reduce) {
  .mpl-btn.mpl-pulse { animation: none; box-shadow: 0 0 0 3px var(--mpl-accent); }
  .mpl-field.mpl-nudge { animation: none; box-shadow: 0 0 0 4px rgba(255, 198, 107, 0.45); }
}
/* TASK-1720[Q]: a popped-out waiting room (games-grid.html?room=<sid>): the room
   drawn alone over the whole window, which is the window the game opens in at
   START.  The line a room steps down to when another window holds its seat. */
.mpl-root.mpl-room-only { position: fixed; inset: 0; z-index: 250; margin: 0; padding: 12px; overflow-y: auto; background: var(--mpl-bg); }
.mpl-room-only .mpl-banner, .mpl-room-only .mpl-lobby { display: none !important; }
.mpl-away { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px; }
.mpl-away .mpl-note { margin: 0; font-size: 14px; color: var(--mpl-ink); }

@media (max-width: 1100px) {
  .mpl-body { grid-template-columns: 180px minmax(0, 1fr); }
  .mpl-people-pane { grid-column: 1 / -1; }
  .mpl-people { height: 200px; }
}
@media (max-width: 860px) { .mpl-seats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .mpl-body { grid-template-columns: minmax(0, 1fr); }
  .mpl-picker { display: flex; flex-wrap: wrap; gap: 4px; }
  .mpl-picker li { flex: 1 1 140px; }
  .mpl-rooms thead { display: none; }
  .mpl-rooms, .mpl-rooms tbody, .mpl-rooms tr, .mpl-rooms td { display: block; width: 100%; }
  .mpl-rooms tr { border-bottom: 1px solid var(--mpl-rule); padding: 4px 0; }
  .mpl-rooms td { border: 0; padding: 2px 8px; }
  .mpl-rooms-wrap { height: 300px; }
  .mpl-detail { grid-template-columns: minmax(0, 1fr); }
  .mpl-shot { max-width: 220px; }
  .mpl-row { grid-template-columns: minmax(0, 1fr); }
  .mpl-newest { flex-basis: 100%; order: 3; }
  .mpl-btn, .mpl-tb-btn, .mpl-turn { min-height: 44px; }
  .mpl-tb-btn { min-width: 44px; }
}
@media (max-width: 420px) {
  .mpl-seats { grid-template-columns: minmax(0, 1fr); }
  .mpl-seat { min-height: 0; }
  .mpl-actions { width: 100%; }
  .mpl-actions .mpl-btn { flex: 1 1 0; }
}
/* ---- the invite link (TASK-1706[Q]): the seat that sends it, the friend who opens it ---- */
/* The confirmation line beside a copy button reserves its width, so the words
   arriving and leaving never move anything; the button's own words never change. */
.mpl-yours { display: inline-flex; align-items: center; gap: 8px; flex: 1 1 auto; min-width: 0; font-size: 13px; color: var(--mpl-soft); }
.mpl-yours-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mpl-yours-t b { color: var(--mpl-ink); font-weight: 600; }
.mpl-copy { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mpl-copied { display: inline-block; min-width: 22ch; font-size: 13px; color: var(--mpl-good); }
.mpl-copy-field { flex: 1 1 300px; min-width: 220px; }
.mpl-invite { flex-wrap: wrap; align-items: center; padding: 8px; background: var(--mpl-panel2); border: 1px solid var(--mpl-accent); }
.mpl-invite .mpl-field { flex: 1 1 280px; }
.mpl-invite .mpl-fine { flex: 1 1 100%; margin: 0; }
.mpl-invite-h { flex: 1 1 100%; font: 700 12px/1.2 Tahoma, Verdana, sans-serif; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mpl-accent); }
.mpl-inv { max-width: 720px; }
.mpl-inv-body { display: grid; gap: 12px; padding: 12px; }
.mpl-inv-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mpl-inv-words { min-width: 0; }
.mpl-inv-h { margin: 0 0 4px; font: 400 26px/1.05 'Bebas Neue', Impact, sans-serif; letter-spacing: 0.05em; color: var(--mpl-ink); overflow-wrap: anywhere; }
.mpl-inv-head .mpl-note { margin: 0; }
.mpl-inv-seats { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.mpl-inv-act { display: grid; gap: 10px; min-height: 120px; align-content: start; }
.mpl-inv-name { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mpl-inv-name .mpl-lab { flex: 0 0 auto; font-size: 13px; color: var(--mpl-soft); }
.mpl-inv-name .mpl-field { flex: 1 1 220px; }
.mpl-inv-alt { display: flex; flex-wrap: wrap; gap: 8px; }
.mpl-inv-edge { margin: 0; font-size: 14px; color: var(--mpl-ink); }
.mpl-btn.mpl-big { min-height: 52px; padding: 0 22px; font-size: 16px; }
@media (max-width: 720px) {
  .mpl-yours { flex-basis: 100%; order: 2; }
  .mpl-copied { min-width: 0; }
  .mpl-inv-h { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) { .mpl-root * { transition: none !important; } }
/* ---- TASK-1727[Q]: the Tables | Long games tabs, and the Long games panel ----------------
   The panel is a FIXED frame (its height never follows the list); the list scrolls
   inside it.  A row is lit amber when the move is yours.  Text 12px and up, at 4.5:1
   or better on the panel's grounds (ink, soft, accent and amber on --mpl-field). */
.mpl-tabs { display: flex; gap: 4px; margin: 8px 8px 0; border-bottom: 2px solid var(--mpl-hi); }
.mpl-tab {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; cursor: pointer;
  font: 700 13px/1 Tahoma, Verdana, 'Segoe UI', sans-serif; color: var(--mpl-soft); background: var(--mpl-btn);
  border: 2px solid; border-color: #4a6f86 var(--mpl-lo) transparent #4a6f86; margin-bottom: -2px;
  box-shadow: inset 0 3px 0 0 transparent;
}
.mpl-tab:hover { color: var(--mpl-ink); background: var(--mpl-btn-hot); text-decoration: underline; }
.mpl-tab[aria-selected="true"] {
  color: var(--mpl-ink); background: var(--mpl-panel); border-color: var(--mpl-hi) var(--mpl-hi) var(--mpl-panel) var(--mpl-hi);
  box-shadow: inset 0 3px 0 0 var(--mpl-accent); text-decoration: none; cursor: default;
}
.mpl-tab:focus-visible { outline: 2px solid var(--mpl-accent); outline-offset: -4px; }
/* TASK-1760[Q]: the Long games tab ebbs amber while a move is owed (box-shadow
   only, no layout), calm while that tab is the open one; reduced motion gets a
   static ring instead. */
.mpl-tab.mpl-owed:not([aria-selected="true"]) { animation: mpl-nudge 1.3s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .mpl-tab.mpl-owed:not([aria-selected="true"]) { animation: none; box-shadow: 0 0 0 3px var(--mpl-amber); }
}
.mpl-badge { display: inline-block; min-width: 20px; padding: 2px 6px; border-radius: 10px; font: 700 12px/16px Tahoma, Verdana, sans-serif; text-align: center; color: var(--mpl-go-ink); background: var(--mpl-amber); }
.mpl-long { display: flex; flex-direction: column; gap: 8px; height: 520px; padding: 8px; box-sizing: border-box; }
.mpl-long-head { flex: 0 0 auto; }
.mpl-long-nudge { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; padding: 6px 8px; border: 1px dashed var(--mpl-accent); background: var(--mpl-panel2); }
.mpl-long-nudge .mpl-fine { flex: 1 1 220px; margin: 0; color: var(--mpl-ink); }
.mpl-long-nudge .mal-inline .mal-panel { margin: 0; padding: 6px 10px; }
.mpl-long-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 4px; }
.mpl-long-empty { margin: 8px; }
.mpl-long-row { display: grid; gap: 6px; padding: 8px; border: 1px solid var(--mpl-rule); border-left: 4px solid var(--mpl-rule); margin: 0 0 6px; background: var(--mpl-panel2); }
.mpl-long-row.mpl-long-mine { border-color: var(--mpl-amber); border-left-color: var(--mpl-amber); }
.mpl-long-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.mpl-long-go {
  display: flex; align-items: center; gap: 10px; flex: 1 1 260px; min-width: 0; min-height: 44px; padding: 2px; cursor: pointer;
  text-align: left; color: var(--mpl-ink); background: transparent; border: 1px solid transparent; font: inherit;
}
.mpl-long-go:hover, .mpl-long-go:focus-visible { border-color: var(--mpl-accent); outline: none; }
.mpl-long-pic { flex: 0 0 auto; width: 64px; height: 34px; object-fit: cover; background: var(--mpl-field); border: 1px solid var(--mpl-rule); }
.mpl-long-words { display: grid; min-width: 0; }
.mpl-long-title { font: 600 14px/1.3 'IBM Plex Mono', monospace; color: var(--mpl-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mpl-long-game { font-size: 12px; color: var(--mpl-soft); }
.mpl-long-state { font: 700 13px/1.3 'IBM Plex Mono', monospace; color: var(--mpl-soft); }
.mpl-long-state.mpl-long-yours { color: var(--mpl-amber); letter-spacing: 0.06em; }
.mpl-long-state.mpl-long-frozen { color: var(--mpl-warn); }
.mpl-long-info { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 13px; color: var(--mpl-soft); }
.mpl-long-who b { color: var(--mpl-ink); }
.mpl-long-gone b { color: var(--mpl-soft); text-decoration: line-through; }
.mpl-long-ago { margin-left: auto; font-size: 12px; color: var(--mpl-soft); }
.mpl-long-left { display: grid; gap: 6px; padding: 6px 8px; border: 1px dashed var(--mpl-rule); background: var(--mpl-field); }
.mpl-long-left.mpl-long-hot { border-color: var(--mpl-amber); }
.mpl-long-say, .mpl-long-q { margin: 0; font-size: 13px; color: var(--mpl-ink); }
.mpl-long-q { color: var(--mpl-amber); font-weight: 600; }
.mpl-long-left .mpl-fine { margin: 0; }
.mpl-long-foot { display: flex; flex-wrap: wrap; gap: 8px; }
.mpl-long-ask { margin-top: 0; }
.mpl-chip.mpl-long-chip { color: var(--mpl-good); border-color: var(--mpl-good); }
.mpl-host-long { margin: 0 0 6px; padding: 6px 8px; border: 1px dashed var(--mpl-accent); background: var(--mpl-panel2); }
.mpl-host-long .mpl-fine { margin: 0; color: var(--mpl-ink); }
.mpl-long-line { color: var(--mpl-ink); }
@media (max-width: 720px) {
  .mpl-long { height: 560px; }
  .mpl-long-ago { margin-left: 0; flex-basis: 100%; }
  .mpl-tab { flex: 1 1 0; justify-content: center; min-height: 44px; }
  .mpl-long-foot .mpl-btn { flex: 1 1 140px; min-height: 44px; }
}

/* TASK-1728[Q]: THE HIGH SCORES TAB (sites/met-lobby.scores.js) and a table's
   best line.  A fixed frame like the Long games tab; the table inside is
   MetHiscore's own (met-hiscore.css), drawn in the lobby's colours through
   the kit's theme tokens, and it scrolls inside its own fixed box. */
.mpl-scores { display: flex; flex-direction: column; gap: 8px; height: 520px; padding: 8px; box-sizing: border-box; }
.mpl-scores-pick { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.mpl-scores-lab { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--mpl-ink); }
.mpl-scores-sel { min-height: 32px; min-width: 180px; }
.mpl-scores-box { flex: 0 0 auto; height: 310px; overflow-y: auto; padding: 6px; box-sizing: border-box; }
.mpl-scores-mine { min-height: 16px; color: var(--mpl-ink); }
.mpl-scores-note { min-height: 18px; }
/* TASK-1761[Q]: the wall is a MARQUEE: a vertical strip of every board, newest
   score first, scrolled by sites/met-lobby.scores.js off its own scrollTop.
   overflow-y auto (not hidden) is what lets the wheel, touch, scrollbar and
   keys take it over, and what leaves a plain scrollable list under
   prefers-reduced-motion.  Two .mpl-wall-set copies make the loop seamless. */
.mpl-scores-wall { flex: 0 0 auto; height: 310px; box-sizing: border-box; padding: 6px; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; }
.mpl-scores-wall:focus-visible { outline: 2px solid var(--mpl-accent); outline-offset: -2px; }
.mpl-scores-wall[hidden], .mpl-scores-box[hidden] { display: none; }
.mpl-wall-set { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); grid-auto-rows: 176px; gap: 6px; }
.mpl-wall-set[hidden] { display: none; }
.mpl-wall-set + .mpl-wall-set { margin-top: 6px; }
.mpl-wall-card { position: relative; height: 176px; box-sizing: border-box; overflow: hidden;
  text-align: left; font: inherit; font-size: 15px; color: var(--mpl-ink); background: var(--mpl-panel2); border: 1px solid var(--mpl-hi); cursor: pointer; }
.mpl-wall-card:hover, .mpl-wall-card:focus-within { background: var(--mpl-btn-hot); }
/* TASK-1770[Q]: the card is two controls: the body opens the single board,
   PLAY (top right, over the heading's reserved right edge) opens the game. */
.mpl-wall-open { display: flex; flex-direction: column; gap: 2px; width: 100%; height: 100%; box-sizing: border-box; padding: 8px 10px; margin: 0;
  text-align: left; font: inherit; font-size: 15px; color: inherit; background: none; border: 0; cursor: pointer; }
.mpl-wall-open:focus-visible { outline: 2px solid var(--mpl-accent); outline-offset: -2px; }
.mpl-wall-play { position: absolute; top: 6px; right: 8px; height: 24px; min-height: 24px; min-width: 52px; padding: 0 10px; font-size: 13px; line-height: 22px; box-sizing: border-box; }
.mpl-scores-play { min-height: 32px; font-size: 13px; }
.mpl-wall-h { padding-right: 64px; box-sizing: border-box; font-size: 16px; line-height: 22px; font-weight: 600; color: var(--mpl-accent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mpl-wall-row { display: flex; align-items: center; gap: 8px; height: 24px; font-size: 15px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mpl-wall-rank { width: 16px; color: var(--mpl-soft); }
.mpl-wall-who { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--mpl-soft); }
.mpl-wall-val { margin-left: auto; color: var(--mpl-ink); font-variant-numeric: tabular-nums; }
.mpl-wall-new { color: var(--mpl-go-ink); background: var(--mpl-go); font-size: 12px; font-weight: 600; padding: 0 4px; }
.mpl-best { color: var(--mpl-amber); }
@media (max-width: 640px) {
  .mpl-scores { height: 560px; }
  .mpl-scores-lab { flex: 1 1 100%; }
  .mpl-wall-set { grid-template-columns: 1fr; }
  .mpl-scores-sel { flex: 1 1 auto; min-height: 44px; }
}
