:root {
  color-scheme: dark;
  --bg: #08090b;
  --panel: rgba(19, 21, 25, 0.86);
  --panel-solid: #121419;
  --panel-soft: #191c22;
  --line: rgba(255, 255, 255, 0.1);
  --text: #f3efe7;
  --muted: #a39b90;
  --dim: #716c66;
  --red: #b9212d;
  --red-bright: #e43a48;
  --gold: #c8a45d;
  --green: #49b37d;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --radius: 8px;
  --tap: 48px;
  --bottom-nav-height: 72px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  overflow-x: hidden;
  background: var(--bg);
}

img,
svg {
  max-width: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(115deg, rgba(185, 33, 45, 0.16), transparent 34%),
    radial-gradient(circle at 74% 18%, rgba(200, 164, 93, 0.1), transparent 26%),
    radial-gradient(circle at 38% 42%, rgba(255, 255, 255, 0.045), transparent 28%),
    linear-gradient(180deg, #0d0e11, #08090b 58%);
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

button,
input {
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
  touch-action: manipulation;
}

[hidden] {
  display: none !important;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.app-shell {
  width: min(1440px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 18px;
  overflow-x: hidden;
}

.topbar {
  position: sticky;
  top: 14px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(8, 9, 11, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 170px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(228, 58, 72, 0.32);
  border-radius: 8px;
  background: #050506;
  box-shadow: inset 0 0 20px rgba(228, 58, 72, 0.08);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1;
}

.brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.topnav {
  display: flex;
  gap: 6px;
  min-width: 0;
  padding: 4px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.topnav::-webkit-scrollbar {
  display: none;
}

.nav-btn,
.icon-btn,
.primary-btn,
.secondary-btn,
.full-btn,
.danger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--text);
  line-height: 1.15;
  text-align: center;
}

.nav-btn {
  flex: 0 0 auto;
  padding: 0 15px;
  background: transparent;
  color: var(--muted);
}

.nav-btn.is-active {
  background: var(--panel-soft);
  color: var(--text);
}

.icon-btn {
  width: 42px;
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line);
}

.icon-btn svg,
.primary-btn svg,
.secondary-btn svg,
.panel-head svg {
  width: 18px;
  height: 18px;
}

main {
  padding-top: 26px;
}

.view {
  display: none;
}

.view.is-visible {
  display: block;
}

.hero,
.page-grid,
.game-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 18px;
}

.hero > *,
.page-grid > *,
.game-layout > * {
  min-width: 0;
}

.hero {
  min-height: calc(100vh - 130px);
  align-items: end;
}

.hero-copy {
  max-width: 780px;
  padding: clamp(32px, 7vw, 92px) 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  font-size: clamp(4.5rem, 14vw, 12rem);
  line-height: 0.82;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-logo {
  display: block;
  width: min(620px, 96%);
  height: auto;
  margin: -18px 0 14px -12px;
  filter: drop-shadow(0 24px 42px rgba(0, 0, 0, 0.52));
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
}

h3 {
  margin-bottom: 0;
  font-size: 1rem;
}

.lead {
  max-width: 650px;
  color: #d7d0c6;
  font-size: clamp(1.02rem, 2vw, 1.3rem);
  line-height: 1.55;
}

.hero-actions,
.media-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.media-actions::after {
  flex: 1 0 100%;
  min-height: 18px;
  color: var(--muted);
  content: attr(data-media-status);
  font-size: 0.78rem;
}

.primary-btn,
.full-btn {
  padding: 0 18px;
  background: linear-gradient(180deg, var(--red-bright), var(--red));
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 34px rgba(185, 33, 45, 0.24);
  font-weight: 800;
  white-space: normal;
}

.secondary-btn {
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line);
  font-weight: 700;
  white-space: normal;
}

.create-panel,
.side-panel,
.main-stage,
.role-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.create-panel {
  align-self: center;
  padding: 18px;
}

.panel-head,
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.panel-head > *,
.section-title > * {
  min-width: 0;
}

.panel-head {
  justify-content: flex-start;
  margin-bottom: 16px;
}

.panel-head svg {
  color: var(--red-bright);
}

.field {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.field input {
  width: 100%;
  height: 46px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.24);
  color: var(--text);
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  padding: 5px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.segmented button {
  min-height: 40px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
}

.segmented .is-selected {
  background: var(--panel-soft);
  color: var(--text);
  font-weight: 800;
}

.option-row,
.copy-line,
.role-control,
.vote-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.option-row span,
.copy-line span,
.role-control span,
.vote-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.option-row strong,
.vote-row strong {
  color: var(--text);
}

button.vote-row {
  width: 100%;
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  background: transparent;
  text-align: left;
}

.vote-row.is-selected,
.icon-btn.is-selected {
  border-color: rgba(200, 164, 93, 0.42);
  background: rgba(200, 164, 93, 0.1);
}

.full-btn,
.full-width {
  width: 100%;
}

.main-stage,
.side-panel {
  min-width: 0;
  padding: 16px;
}

.side-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-content: start;
}

.panel-block {
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.action-panel {
  border-color: rgba(200, 164, 93, 0.24);
  background: rgba(200, 164, 93, 0.055);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(73, 179, 125, 0.3);
  border-radius: 999px;
  color: #bce8ce;
  background: rgba(73, 179, 125, 0.09);
  font-size: 0.86rem;
  font-weight: 800;
  text-align: center;
}

.status-pill span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.video-grid {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.lobby-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.game-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.player-tile {
  position: relative;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.18);
}

.player-tile.is-awake {
  border-color: rgba(228, 58, 72, 0.56);
  box-shadow: inset 0 0 0 1px rgba(228, 58, 72, 0.12);
}

.video-surface {
  display: grid;
  aspect-ratio: 16 / 10;
  place-items: center;
  overflow: hidden;
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent),
    #0d0f13;
  color: var(--muted);
  font-weight: 900;
}

.livekit-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.livekit-audio {
  position: fixed;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.video-surface.live {
  color: var(--red-bright);
  background:
    linear-gradient(135deg, rgba(228, 58, 72, 0.28), transparent 58%),
    #151014;
}

.video-surface.initials {
  color: var(--gold);
  font-size: 1.45rem;
}

.video-surface.sleeping,
.video-surface.muted {
  color: var(--dim);
  background: #0b0c0f;
}

.nickname {
  width: 100%;
  min-height: 38px;
  margin-top: 8px;
  padding: 0 8px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  font-weight: 800;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nickname.is-clickable {
  border-color: rgba(200, 164, 93, 0.4);
  background: rgba(200, 164, 93, 0.08);
}

.nickname.is-selected {
  border-color: rgba(228, 58, 72, 0.7);
  background: rgba(228, 58, 72, 0.18);
}

.player-tile small {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qr-placeholder {
  aspect-ratio: 1;
  width: 156px;
  margin: 0 auto 14px;
  border: 10px solid #ece8df;
  border-radius: 6px;
  background:
    linear-gradient(90deg, #101217 18px, transparent 18px) 0 0 / 36px 36px,
    linear-gradient(#101217 18px, transparent 18px) 0 0 / 36px 36px,
    #ece8df;
}

.copy-line span {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.role-control div {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 10px;
}

.role-control button {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-soft);
  color: var(--text);
}

.detective-mark {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-left: 7px;
  border-radius: 999px;
  box-shadow: 0 0 0 2px rgba(8, 9, 11, 0.9);
  vertical-align: middle;
}

.detective-mark.is-mafia {
  background: var(--green);
}

.detective-mark.is-clear {
  background: var(--red-bright);
}

.danger-zone p,
.narration,
.muted-copy {
  color: var(--muted);
  line-height: 1.5;
}

.danger-btn {
  width: 100%;
  padding: 0 14px;
  background: rgba(185, 33, 45, 0.14);
  border-color: rgba(228, 58, 72, 0.32);
  color: #ffb4ba;
  font-weight: 800;
}

.phase-banner {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(228, 58, 72, 0.28);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(185, 33, 45, 0.18), rgba(255, 255, 255, 0.035));
}

.phase-banner p:last-child {
  max-width: 430px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
}

.progress-line {
  height: 7px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
}

.progress-line span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--red), var(--gold));
}

.join-stage {
  min-height: 560px;
}

.join-preview {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 16px;
  margin-top: 18px;
}

.camera-preview {
  min-height: 360px;
  color: var(--muted);
  font-size: 1.05rem;
  gap: 12px;
}

.camera-preview svg {
  width: 36px;
  height: 36px;
  color: var(--red-bright);
}

.join-form {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.media-checks {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 0.92rem;
}

.check-row span {
  width: 9px;
  height: 9px;
  border-radius: 99px;
  background: var(--dim);
}

.check-row.is-ok span {
  background: var(--green);
}

.validation-copy {
  margin: 12px 0;
  color: #ffb4ba;
  font-size: 0.9rem;
  line-height: 1.45;
}

.is-selected-player {
  border-color: rgba(200, 164, 93, 0.52);
  background: rgba(200, 164, 93, 0.06);
}

.center-stage {
  display: grid;
  min-height: calc(100vh - 150px);
  place-items: center;
}

.role-card {
  width: min(560px, 100%);
  padding: clamp(22px, 4vw, 34px);
  text-align: center;
}

.role-card h2 {
  margin-bottom: 14px;
  color: var(--red-bright);
  font-size: clamp(3rem, 9vw, 6rem);
  text-transform: uppercase;
}

.role-card p {
  color: #d7d0c6;
  line-height: 1.6;
}

.role-hints {
  display: grid;
  gap: 8px;
  margin: 20px 0;
}

.role-hints span {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
}

.day-banner {
  border-color: rgba(200, 164, 93, 0.28);
  background: linear-gradient(135deg, rgba(200, 164, 93, 0.13), rgba(255, 255, 255, 0.035));
}

.game-over-banner {
  border-color: rgba(73, 179, 125, 0.3);
  background: linear-gradient(135deg, rgba(73, 179, 125, 0.13), rgba(255, 255, 255, 0.035));
}

.is-dead {
  opacity: 0.62;
}

.is-observer {
  opacity: 0.72;
}

.observer-surface {
  color: var(--gold);
  border-color: rgba(200, 164, 93, 0.32);
  background: rgba(200, 164, 93, 0.08);
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.results-grid article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.results-grid span {
  color: var(--gold);
  font-weight: 800;
}

.simulator-grid {
  align-items: start;
}

.sim-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.sim-summary article {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.sim-summary span,
.sim-log {
  color: var(--muted);
}

.sim-summary strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-size: 1.1rem;
}

.sim-controls {
  display: grid;
  gap: 8px;
}

.sim-controls .secondary-btn,
.sim-controls .full-btn {
  width: 100%;
}

.sim-log {
  display: grid;
  gap: 10px;
  max-height: 340px;
  margin: 0;
  padding-left: 20px;
  overflow: auto;
  line-height: 1.45;
}

@media (max-width: 980px) {
  .hero,
  .page-grid,
  .game-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .create-panel {
    align-self: auto;
  }
}

@media (max-width: 720px) {
  html,
  body {
    min-height: 100%;
    overflow-x: hidden;
  }

  body {
    background:
      linear-gradient(180deg, rgba(185, 33, 45, 0.18), transparent 30%),
      linear-gradient(180deg, #0d0e11, #08090b 64%);
  }

  .app-shell {
    min-height: 100dvh;
    padding: max(10px, env(safe-area-inset-top)) 10px calc(var(--bottom-nav-height) + 18px + env(safe-area-inset-bottom));
  }

  .topbar {
    top: 0;
    gap: 10px;
    padding: 8px;
    border-radius: 0 0 var(--radius) var(--radius);
    margin: -10px -10px 0;
    border-right: 0;
    border-left: 0;
    flex-wrap: nowrap;
    backdrop-filter: none;
  }

  .brand {
    min-width: 0;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
  }

  .brand small {
    display: none;
  }

  .brand strong {
    font-size: 0.95rem;
  }

  .topbar > .icon-btn {
    flex: 0 0 var(--tap);
    width: var(--tap);
    min-height: var(--tap);
  }

  .hero-logo {
    width: 100%;
    margin: -10px 0 8px;
  }

  .topnav {
    position: fixed;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 30;
    order: initial;
    width: auto;
    gap: 4px;
    min-height: var(--bottom-nav-height);
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 12px 12px 0 0;
    background: rgba(8, 9, 11, 0.94);
    box-shadow: 0 -18px 52px rgba(0, 0, 0, 0.42);
    max-width: 100vw;
  }

  .nav-btn {
    min-height: var(--tap);
    padding: 0 12px;
    font-size: 0.88rem;
    white-space: nowrap;
  }

  main {
    padding-top: 14px;
  }

  .hero,
  .page-grid,
  .game-layout {
    gap: 12px;
  }

  .hero {
    align-items: start;
  }

  .hero-copy {
    padding: 12px 0 6px;
  }

  .lead {
    font-size: 0.98rem;
    line-height: 1.45;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .primary-btn,
  .secondary-btn,
  .full-btn,
  .danger-btn {
    width: 100%;
    min-height: var(--tap);
    padding: 0 14px;
  }

  .create-panel,
  .main-stage,
  .side-panel,
  .role-card {
    box-shadow: 0 16px 46px rgba(0, 0, 0, 0.32);
  }

  .create-panel,
  .main-stage,
  .side-panel {
    padding: 12px;
  }

  .panel-block {
    padding: 12px;
  }

  .field input {
    height: var(--tap);
    font-size: 1rem;
  }

  .segmented button,
  .role-control button,
  .nickname,
  .icon-btn {
    min-height: var(--tap);
  }

  .role-control button {
    width: var(--tap);
  }

  .section-title h2,
  .phase-banner h2 {
    font-size: clamp(1.7rem, 9vw, 2.5rem);
  }

  .status-pill {
    width: 100%;
    justify-content: center;
  }

  .lobby-grid,
  .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .player-tile {
    padding: 7px;
  }

  .video-surface {
    aspect-ratio: 4 / 3;
  }

  .video-surface.initials {
    font-size: 1.2rem;
  }

  .player-tile small {
    min-height: 2.3em;
    font-size: 0.78rem;
    line-height: 1.15;
    white-space: normal;
  }

  .nickname {
    margin-top: 6px;
    font-size: 0.9rem;
  }

  .join-preview,
  .results-grid,
  .sim-summary {
    grid-template-columns: 1fr;
  }

  .camera-preview {
    aspect-ratio: auto;
    min-height: 0;
    height: 210px;
  }

  .phase-banner,
  .section-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .phase-banner {
    padding: 14px;
  }

  .phase-banner p:last-child {
    max-width: none;
  }

  .game-layout .side-panel {
    order: 0;
  }

  .media-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .media-actions::after {
    text-align: center;
  }

  .media-actions .icon-btn {
    width: 100%;
  }

  .copy-line {
    align-items: stretch;
    min-width: 0;
  }

  .copy-line span {
    align-self: center;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .qr-placeholder {
    width: min(150px, 54vw);
  }

  .role-card {
    min-height: calc(100dvh - 120px);
    display: grid;
    align-content: center;
  }

  .role-card h2 {
    font-size: clamp(2.6rem, 16vw, 4.5rem);
  }

  .role-hints span {
    padding: 12px;
  }

  .results-grid article {
    display: grid;
    gap: 5px;
  }

  .sim-controls {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 390px) {
  .app-shell {
    padding-right: 8px;
    padding-left: 8px;
  }

  .topbar {
    margin-right: -8px;
    margin-left: -8px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .brand strong {
    font-size: 0.9rem;
  }

  .lobby-grid,
  .game-grid {
    gap: 7px;
  }

  .player-tile {
    padding: 6px;
  }

  .video-surface {
    aspect-ratio: 1 / 1;
  }

  .nickname {
    font-size: 0.84rem;
  }

  .player-tile small {
    font-size: 0.74rem;
  }
}
