/* Evokar — the front door: login, lobby, the in-room panel and the QR card (ui/FrontDoor.js,
   ui/Login.js, ui/Lobby.js, ui/RoomPanel.js, ui/QRCode.js). Same paper and ink as the HUD:
   hand-cut card corners, a doubled ink rule, sumi buttons, vermilion accents, 44 px touch targets. */

.fd-root [hidden], .room-panel [hidden], .qr-overlay [hidden] { display: none !important; }
.fd-root[hidden], .room-panel[hidden] { display: none !important; }

/* ---------------------------------------------------------------------------------------------
   Full-screen layer over the title / loading screen
   --------------------------------------------------------------------------------------------- */
.fd-root {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(12px + var(--safe-t)) calc(12px + var(--safe-r)) calc(12px + var(--safe-b)) calc(12px + var(--safe-l));
  background: rgba(233, 223, 201, 0.84);
  font-family: var(--font-ink);
  color: var(--sumi);
  overflow: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
}

.fd-card {
  position: relative;
  width: min(440px, 100%);
  max-height: 100%;
  overflow: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  background: rgba(239, 230, 211, 0.98);
  border-radius: 14px 18px 13px 17px / 16px 12px 18px 14px;
  box-shadow: 0 0 0 1.5px var(--sumi), 0 0 0 5px rgba(233, 223, 201, 0.9), 0 0 0 6px rgba(28, 27, 25, 0.35),
    0 14px 40px rgba(28, 27, 25, 0.25);
  padding: 1.1rem 1.25rem 1.2rem;
  font-family: var(--font-ink);
  color: var(--sumi);
}
.fd-card h2, .fd-card h3 {
  margin: 0 0 0.7rem;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.35em;
  text-transform: uppercase;
}
.fd-card h3 { font-size: 0.9rem; letter-spacing: 0.25em; margin: 0.2rem 0 0.6rem; }
.fd-card h2::after {
  content: "";
  display: block;
  width: 2.6em;
  height: 3px;
  margin-top: 0.45em;
  border-radius: 2px;
  background: var(--vermilion);
}
.fd-card.is-busy { cursor: progress; }
.fd-card .muted { color: var(--charcoal); opacity: 0.85; }

/* fields */
.fd-field { display: flex; flex-direction: column; gap: 0.3em; margin-bottom: 0.75rem; font-size: 0.85rem; letter-spacing: 0.06em; color: var(--charcoal); }
.fd-root input, .room-panel input {
  -webkit-user-select: text;
  user-select: text;
  touch-action: manipulation;
}
.fd-field input, .lobby-code input {
  font: inherit;
  font-size: 16px;                  /* 16 px: iOS doesn't zoom the page on focus */
  letter-spacing: 0.04em;
  color: var(--sumi);
  min-height: 44px;
  padding: 0.45em 0.75em;
  border: none;
  border-radius: 10px 12px 9px 11px;
  background: var(--parchment-light);
  box-shadow: inset 0 0 0 1.5px rgba(28, 27, 25, 0.7);
  outline: none;
  width: 100%;
}
.fd-field input:focus-visible, .lobby-code input:focus-visible { box-shadow: inset 0 0 0 2px var(--vermilion); }

.fd-hint { margin: 0.5rem 0 0; font-size: 0.78rem; color: var(--umber); line-height: 1.4; }
.fd-error, .fd-status.is-error { margin: 0 0 0.7rem; color: var(--vermilion); font-size: 0.88rem; line-height: 1.35; }
.fd-status { margin: 0 0 0.6rem; font-size: 0.88rem; color: var(--charcoal); }

.fd-root .ink-btn:disabled, .room-panel .ink-btn:disabled { opacity: 0.45; cursor: default; transform: none; }

/* ---------------------------------------------------------------------------------------------
   Login
   --------------------------------------------------------------------------------------------- */
.login-card { width: min(380px, 100%); }
.fd-brand { display: flex; align-items: center; justify-content: center; gap: 0.6em; margin: 0.1rem 0 0.9rem; }
.fd-mark { font-weight: 800; font-size: 1.5rem; letter-spacing: 0.45em; padding-left: 0.45em; }
.fd-hanko {
  display: grid; place-items: center; width: 1.6em; height: 1.6em; font-size: 0.85rem;
  border-radius: 0.15em; background: var(--vermilion); color: var(--parchment-light);
  box-shadow: inset 0 0 0 0.09em rgba(242, 234, 216, 0.55); transform: rotate(-4deg);
}
.fd-tabs { display: flex; gap: 0.3rem; margin-bottom: 0.9rem; border-bottom: 1.5px solid rgba(28, 27, 25, 0.2); }
.fd-tab {
  flex: 1 1 0;
  font: inherit;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  min-height: 44px;
  background: none;
  border: none;
  color: var(--charcoal);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -1.5px;
  touch-action: manipulation;
}
.fd-tab[aria-selected="true"] { color: var(--sumi); font-weight: 800; border-bottom-color: var(--vermilion); }
.login-form .ink-btn { width: 100%; }
.login-guest { width: 100%; }
.fd-or { display: flex; align-items: center; gap: 0.8em; margin: 0.9rem 0; color: var(--umber); font-size: 0.8rem; letter-spacing: 0.2em; }
.fd-or::before, .fd-or::after { content: ""; flex: 1; height: 1.5px; background: rgba(28, 27, 25, 0.18); }

/* ---------------------------------------------------------------------------------------------
   Who's playing, with a way out (ui/Login.js accountStrip): under Begin / Enter on the title card,
   on the welcome card and (guests) the Play card. Quiet ink pills, 44 px on touch.
   --------------------------------------------------------------------------------------------- */
#loading-screen .fd-account[hidden], .fd-account[hidden] { display: none !important; }
.fd-account {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  font-family: var(--font-ink);
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--charcoal);
}
.fd-account-who { margin: 0; font-size: 0.85rem; text-align: center; line-height: 1.3; }
.fd-account-name { color: var(--sumi); font-weight: 800; border-bottom: 2px solid var(--vermilion); }
.fd-account-tag { color: var(--umber); }
.fd-account-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 0.5rem; }
.fd-account-btn {
  font: inherit;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  min-height: 38px;
  padding: 0.3em 1em;
  color: var(--sumi);
  background: rgba(242, 234, 216, 0.7);
  border: none;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px rgba(28, 27, 25, 0.7);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.fd-account-btn:hover, .fd-account-btn:focus-visible { background: var(--sumi); color: var(--parchment); outline: none; }
.fd-account-btn:disabled { opacity: 0.55; cursor: progress; }
@media (pointer: coarse) { .fd-account-btn { min-height: 44px; } }
/* on a card (the welcome card, the Play card): under a dashed rule, aligned with the card's text */
.fd-account.is-card { margin-top: 0.9rem; padding-top: 0.7rem; border-top: 1.5px dashed rgba(28, 27, 25, 0.22); }
/* on the title and Connected · Enter screens: top left, opposite the QR button. Out of the centred
   column, which is already sized to just fit short windows and phones without it. */
#loading-screen .fd-account {
  position: absolute;
  left: calc(12px + var(--safe-l));
  top: calc(10px + var(--safe-t));
  z-index: 1;
  max-width: calc(100% - 84px - var(--safe-l) - var(--safe-r));
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.3rem 0.6rem;
  padding: 0.3rem 0.35rem 0.3rem 0.85rem;
  border-radius: 14px 18px 13px 17px / 16px 12px 18px 14px;
  background: rgba(242, 234, 216, 0.8);
  box-shadow: 0 0 0 1.5px rgba(28, 27, 25, 0.28);
}
#loading-screen .fd-account-who { text-align: left; }
#loading-screen .fd-account-acts { justify-content: flex-start; }

/* ---------------------------------------------------------------------------------------------
   Lobby
   --------------------------------------------------------------------------------------------- */
.lobby-card {
  width: min(560px, 100%);
  display: flex;
  flex-direction: column;
  max-height: 100%;
  overflow: auto;                    /* the room list scrolls first; the card when it can't shrink more */
}
.lobby-card .lobby-list { flex-shrink: 1; }
.lobby-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.6rem; }
.lobby-head h2 { margin-bottom: 0.5rem; }
.lobby-tools { display: flex; gap: 0.5rem; align-items: center; }
.lobby-logout { min-height: 40px; padding: 0.35em 1em; font-size: 0.8rem; }
.lobby-me { margin: 0 0 0.7rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2em 0.7em; }
.lobby-name { font-family: var(--font-italic); font-style: italic; font-size: 1.3rem; border-bottom: 2px solid var(--vermilion); line-height: 1.1; }
.lobby-stats { font-size: 0.8rem; color: var(--umber); letter-spacing: 0.04em; }

.lobby-list {
  list-style: none;
  margin: 0 -0.25rem;
  padding: 0.25rem;
  flex: 1 1 auto;
  min-height: 7.5rem;
  overflow: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.lobby-empty { padding: 1rem 0.4rem; color: var(--umber); font-size: 0.9rem; }
.lobby-room {
  width: 100%;
  min-height: 56px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "top status" "sub status";
  align-items: center;
  gap: 0.15rem 0.7rem;
  padding: 0.55rem 0.8rem;
  text-align: left;
  font: inherit;
  color: var(--sumi);
  background: var(--parchment-light);
  border: none;
  border-radius: 11px 14px 10px 13px / 12px 10px 14px 11px;
  box-shadow: inset 0 0 0 1.5px rgba(28, 27, 25, 0.75);
  cursor: pointer;
  touch-action: manipulation;
  transition: background 0.15s ease, transform 0.1s ease;
}
.lobby-room:hover:not(:disabled), .lobby-room:focus-visible { background: #fbf5e8; outline: none; box-shadow: inset 0 0 0 2px var(--sumi); }
.lobby-room:active:not(:disabled) { transform: scale(0.99); }
.lobby-room:disabled { opacity: 0.55; cursor: default; }
.lobby-room.is-open { box-shadow: inset 0 0 0 1.5px rgba(28, 27, 25, 0.75), inset 4px 0 0 var(--ink-wash); }
.lr-top { grid-area: top; display: flex; align-items: baseline; gap: 0.6em; min-width: 0; }
.lr-name { font-weight: 800; letter-spacing: 0.04em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.lr-count { font-size: 0.85rem; color: var(--charcoal); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lr-sub { grid-area: sub; font-size: 0.78rem; color: var(--umber); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.lr-status {
  grid-area: status;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  padding: 0.3em 0.75em;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1.2px var(--sumi);
  white-space: nowrap;
}
.lobby-room.is-match .lr-status { background: var(--vermilion); color: var(--parchment-light); box-shadow: none; }
.lobby-room.is-waiting .lr-status { background: var(--sumi); color: var(--parchment-light); box-shadow: none; }

.lobby-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; justify-content: space-between; margin-top: 0.8rem; }
.lobby-create { flex: 1 1 14em; }
.lobby-code { display: flex; gap: 0.4rem; flex: 1 1 11em; }
.lobby-code input { flex: 1 1 auto; width: auto; min-width: 6.2em; text-align: center; letter-spacing: 0.3em; text-transform: uppercase; }

.lobby-form { margin-top: 0.8rem; padding-top: 0.8rem; border-top: 1.5px dashed rgba(28, 27, 25, 0.25); }
.fd-row { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; margin-bottom: 0.6rem; font-size: 0.88rem; letter-spacing: 0.05em; }
.fd-row small { font-size: 0.72rem; }
.fd-buttons { display: flex; gap: 0.6rem; justify-content: flex-end; margin-top: 0.4rem; }
.fd-buttons .ink-btn { flex: 1 1 0; }

.fd-stepper { display: inline-flex; align-items: center; gap: 0.25rem; }
.fd-step {
  width: 44px; height: 44px; padding: 0;
  font: inherit; font-size: 1.25rem; line-height: 1;
  color: var(--sumi); background: transparent;
  border: none; border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--sumi);
  cursor: pointer; touch-action: manipulation;
}
.fd-step:hover:not(:disabled), .fd-step:focus-visible { background: rgba(28, 27, 25, 0.08); outline: none; }
.fd-step:disabled { opacity: 0.3; cursor: default; }
.fd-step-val { min-width: 2.2ch; text-align: center; font-weight: 800; font-size: 1.1rem; font-variant-numeric: tabular-nums; }

/* a toggle drawn as an ink box: the real checkbox stays focusable and clickable over it */
.fd-check { position: relative; cursor: pointer; }
.fd-check input { position: absolute; right: 0; width: 44px; height: 44px; margin: 0; opacity: 0; cursor: pointer; }
.fd-check i {
  flex: 0 0 auto; width: 26px; height: 26px; margin: 9px; border-radius: 6px 8px 5px 7px;
  box-shadow: inset 0 0 0 1.8px var(--sumi); background: var(--parchment-light); pointer-events: none;
}
.fd-check input:checked + i { background: var(--sumi); box-shadow: inset 0 0 0 1.8px var(--sumi), inset 0 0 0 6px var(--parchment-light); }
.fd-check input:focus-visible + i { outline: 2px dashed var(--vermilion); outline-offset: 3px; }

/* ---------------------------------------------------------------------------------------------
   QR: the round button and the card
   --------------------------------------------------------------------------------------------- */
.qr-btn {
  width: 44px; height: 44px; padding: 10px; flex: 0 0 auto;
  border: none; border-radius: 50%;
  color: var(--sumi); background: rgba(233, 223, 201, 0.86);
  box-shadow: 0 0 0 1.5px var(--sumi);
  cursor: pointer; touch-action: manipulation;
}
.qr-btn svg { width: 100%; height: 100%; display: block; }
.qr-btn:hover, .qr-btn:focus-visible { background: var(--sumi); color: var(--parchment); outline: none; }
#loading-screen .title-qr { position: absolute; right: calc(14px + var(--safe-r)); top: calc(12px + var(--safe-t)); z-index: 1; }

.qr-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(12px + var(--safe-t)) calc(12px + var(--safe-r)) calc(12px + var(--safe-b)) calc(12px + var(--safe-l));
  background: rgba(28, 27, 25, 0.35);
  font-family: var(--font-ink);
}
.qr-card { width: min(360px, 100%); text-align: center; display: flex; flex-direction: column; align-items: center; }
.qr-card h2::after { margin-left: auto; margin-right: auto; }
.qr-code { width: min(260px, 70vw, 52vh); aspect-ratio: 1; display: grid; place-items: center; }
.qr-code svg { width: 100%; height: 100%; display: block; border-radius: 6px; box-shadow: 0 0 0 1.5px rgba(28, 27, 25, 0.5); }
.qr-wait { font-size: 0.85rem; color: var(--umber); padding: 1rem; }
.qr-url {
  margin: 0.8rem 0 0.2rem;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  word-break: break-all;
  -webkit-user-select: text;
  user-select: text;
}
.qr-note { margin: 0.3rem 0 0; font-size: 0.78rem; line-height: 1.4; }
.qr-close { margin-top: 0.9rem; min-width: 10em; }

/* ---------------------------------------------------------------------------------------------
   The room panel (in play): a chip left of the menu button, a card under it
   --------------------------------------------------------------------------------------------- */
.room-panel { font-family: var(--font-ink); color: var(--sumi); }
.rp-chip {
  position: absolute;
  z-index: 2;
  right: calc(66px + var(--safe-r));
  top: calc(10px + var(--safe-t));
  max-width: min(44vw, 320px);
  min-height: 40px;
  pointer-events: auto;
  font: inherit;
  font-size: 0.82rem;
  color: var(--sumi);
  border: none;
  cursor: pointer;
  touch-action: manipulation;
}
.rp-chip-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.rp-caret { font-size: 0.7rem; transition: transform 0.2s ease; }
.room-panel.is-open .rp-caret { transform: rotate(180deg); }
.rp-chip-crown { display: none; }
.room-panel.is-host .rp-chip-crown { display: inline-flex; margin-right: -0.2em; }
.rp-card {
  position: absolute;
  z-index: 2;
  right: calc(12px + var(--safe-r));
  top: calc(60px + var(--safe-t));
  width: min(320px, calc(100vw - 24px - var(--safe-l) - var(--safe-r)));
  max-height: calc(100% - 72px - var(--safe-t) - var(--safe-b));
  pointer-events: auto;
  padding: 0.9rem 1rem 1rem;
}
.rp-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.6rem; }
.rp-head h2 { margin-bottom: 0.45rem; letter-spacing: 0.2em; font-size: 0.95rem; overflow-wrap: anywhere; }
.rp-code { font-size: 0.75rem; letter-spacing: 0.18em; white-space: nowrap; padding: 0.25em 0.6em; border-radius: 999px; box-shadow: inset 0 0 0 1.2px var(--sumi); }
.rp-code:empty { display: none; }
.rp-phase { margin: 0 0 0.6rem; font-size: 0.8rem; color: var(--charcoal); line-height: 1.4; }
.rp-members { list-style: none; margin: 0 0 0.7rem; padding: 0; display: flex; flex-direction: column; gap: 0.3rem; }
.rp-members li { display: flex; align-items: center; gap: 0.5em; font-size: 0.9rem; min-height: 1.6em; }
.rp-members li.is-you .rp-name { font-weight: 800; }
.rp-dot { width: 0.8em; height: 0.8em; border-radius: 50%; background: var(--c, var(--sumi)); box-shadow: inset 0 0 0 1px rgba(28, 27, 25, 0.35); flex: 0 0 auto; }
.rp-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.rp-crown { width: 1.1em; height: 0.75em; color: var(--vermilion); flex: 0 0 auto; }
.rp-tag { font-size: 0.7rem; letter-spacing: 0.1em; padding: 0.1em 0.5em; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(28, 27, 25, 0.45); }
.rp-settings { margin-top: 0.75rem; padding-top: 0.7rem; border-top: 1.5px dashed rgba(28, 27, 25, 0.22); }
.rp-settings[data-mode="read"] { border-top: none; padding-top: 0; margin-top: 0.5rem; }
.rp-summary { margin: 0; font-size: 0.85rem; }
.rp-msg { margin: 0 0 0.5rem; font-size: 0.82rem; color: var(--vermilion); }
.rp-buttons { display: flex; gap: 0.5rem; align-items: center; }
.rp-buttons .ink-btn { flex: 1 1 auto; }
.rp-hint { margin: 0.5rem 0 0; font-size: 0.72rem; }
.rp-hint:empty { display: none; }
.room-panel.is-sandbox .rp-members { max-height: 9.5rem; overflow: auto; }
/* Touch: in the Sandbox the chip only leads back to the lobby, which the menu already does
   ("Leave to lobby"): one control fewer on a phone. Match rooms keep it (Start, players, Leave). */
.is-touch .room-panel.is-sandbox:not(.is-open) .rp-chip { display: none; }
/* …and while a match runs it only repeats the round bar (game/Match.js sets .in-match); it comes
   back when the room waits again (Start, players, settings) */
.is-touch.in-match .room-panel:not(.is-open) .rp-chip { display: none; }

/* Narrow screens (phones in portrait): the status chip owns the top-left, so the room chip takes
   a second row under the menu button. */
@media (max-width: 560px) {
  .rp-chip { right: calc(12px + var(--safe-r)); top: calc(60px + var(--safe-t)); max-width: min(62vw, 260px); }
  .rp-card { top: calc(108px + var(--safe-t)); max-height: calc(100% - 200px - var(--safe-t) - var(--safe-b)); }
}

/* Touch: the top left is free (no status chip on phones, hud.css), so the room chip takes it and
   the card unfolds under it. While open the card sits above the hotbar (z-index) instead of
   interleaving with it; the chip folds it away again. */
.is-touch .rp-chip { left: calc(12px + var(--safe-l)); right: auto; top: calc(10px + var(--safe-t)); max-width: calc(100vw - 140px - var(--safe-l) - var(--safe-r)); }
.is-touch .rp-card {
  left: calc(12px + var(--safe-l));
  right: auto;
  top: calc(58px + var(--safe-t));
  z-index: 4;
  width: min(340px, calc(100vw - 24px - var(--safe-l) - var(--safe-r)));
  max-height: calc(100% - 70px - var(--safe-t) - var(--safe-b));
  overflow: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
}

/* Short screens (phones in landscape): tighter cards. */
@media (max-height: 520px) {
  .fd-card { padding: 0.75rem 1rem 0.85rem; }
  .fd-card h2 { margin-bottom: 0.45rem; font-size: 0.95rem; }
  .fd-brand { margin-bottom: 0.5rem; }
  .fd-field { margin-bottom: 0.5rem; }
  .fd-or { margin: 0.55rem 0; }
  .lobby-list { min-height: 5.5rem; }
  .lobby-room { min-height: 48px; padding: 0.4rem 0.7rem; }
  /* creating a room on a short screen: the form gets the whole card */
  .lobby-card.is-creating .lobby-list, .lobby-card.is-creating .lobby-me { display: none; }
  .lobby-form { margin-top: 0.2rem; padding-top: 0.5rem; }
  .lobby-form .fd-row { margin-bottom: 0.3rem; }
  /* stops above the bottom hotbar */
  .rp-card { top: calc(56px + var(--safe-t)); max-height: calc(100% - 136px - var(--safe-t) - var(--safe-b)); }
  .rp-members li { font-size: 0.82rem; }
  .rp-phase { display: none; }
  .rp-head h2 { font-size: 0.85rem; }
  .qr-code { width: min(220px, 60vh); }
}
@media (max-height: 520px) and (min-width: 600px) {
  .lobby-form { display: grid; grid-template-columns: 1fr 1fr; column-gap: 1.4rem; align-items: center; }
  .lobby-form h3, .lobby-form .fd-buttons { grid-column: 1 / -1; }
  .lobby-form .fd-field { grid-column: 1; grid-row: 2 / span 2; margin: 0; }
}
/* Landscape phones: the login card's guest half sits beside the form. */
@media (max-height: 520px) and (min-width: 640px) and (orientation: landscape) {
  .login-card { width: min(640px, 100%); display: grid; grid-template-columns: 1fr 1fr; column-gap: 1.2rem; align-items: start; }
  .login-card .fd-brand, .login-card .fd-tabs { grid-column: 1 / -1; }
  .login-card .login-form { grid-column: 1; grid-row: 3 / span 3; }
  .login-card .fd-or { grid-column: 2; margin-top: 0.2rem; }
  .login-card .login-guest, .login-card > .fd-hint { grid-column: 2; }
}

/* The Play card (ui/Lobby.js): what Settings → Leave lands on; one room, one big button */
.play-card { width: min(380px, 100%); }
.play-card .play-here { margin: 0 0 0.8rem; font-size: 0.85rem; min-height: 1.2em; }
.play-card .play-btn { display: block; width: 100%; min-height: 52px; font-size: 1.15rem; letter-spacing: 0.2em; }
.play-card .fd-hint { text-align: center; }
