/* Cream-paper labels over a sea-green page, like a fisherman's notebook. */
:root {
  --sea: #1f5f6b;
  --sea-deep: #0f3a42;
  --paper: #f3ead7;
  --paper-2: #e9dec5;
  --ink: #3b2f25;
  --ink-soft: #7a6a55;
  --line: rgba(59, 47, 37, 0.16);
  --terra: #c8643b;
  --terra-dark: #93472a;
  --teal: #2f8f86;
  --teal-dark: #1f655f;
  --gold: #d9a441;
  --me: #3f9b5a;
  --red: #c4483f;
  --radius: 16px;
  --hand: "Patrick Hand", "Comic Sans MS", system-ui, sans-serif;
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
}

* { box-sizing: border-box; }
html { background: var(--sea-deep); }
html, body { margin: 0; min-height: 100%; }
body {
  background: radial-gradient(ellipse at 50% 0, #3c8a86 0, var(--sea) 420px, var(--sea-deep) 900px) no-repeat;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}
.hidden { display: none !important; }
.muted { color: var(--ink-soft); font-weight: 600; }
.center { text-align: center; }

.screen {
  max-width: 560px;
  margin: 0 auto;
  padding: max(20px, env(safe-area-inset-top)) 16px 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.panel {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.08), 0 10px 30px rgba(5, 25, 30, 0.35);
}
h2 { margin: 0 0 12px; font: 400 1.6rem/1.1 var(--hand); }
h3 { margin: 0 0 4px; font: 400 1.2rem/1.1 var(--hand); }

.hero-art {
  display: block;
  width: calc(100% + 40px);
  margin: -20px -20px -4px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(#7fb7b0, #d8c7a0);
}
.logo {
  margin: 0;
  font: 400 clamp(3rem, 13vw, 4.2rem)/1 var(--hand);
  text-align: center;
  color: var(--ink);
}
.logo span { color: var(--terra); }
.tagline { text-align: center; color: var(--ink-soft); margin: 4px 0 20px; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; font: 400 1.2rem var(--hand); }
input {
  font: inherit;
  font-family: "Nunito", system-ui, sans-serif;
  font-size: 1.1rem;
  padding: 12px 14px;
  border-radius: 12px;
  border: 2px solid var(--line);
  background: #fffaf0;
  color: var(--ink);
  width: 100%;
  min-width: 0;
}
input::placeholder { color: #b3a58e; }
input:focus { outline: none; border-color: var(--teal); }

.btn {
  font: 400 1.25rem/1 var(--hand);
  border: 0;
  border-radius: 12px;
  padding: 12px 18px;
  cursor: pointer;
  color: var(--paper);
  background: var(--ink-soft);
  transition: transform 0.06s, filter 0.15s;
  touch-action: manipulation;
}
.btn:active { transform: translateY(2px); }
.btn:disabled { filter: grayscale(0.8) opacity(0.55); cursor: not-allowed; }
.btn.primary { background: var(--terra); box-shadow: 0 4px 0 var(--terra-dark); }
.btn.secondary { background: var(--teal); box-shadow: 0 4px 0 var(--teal-dark); }
.btn.ghost { background: transparent; color: var(--ink-soft); border: 2px solid var(--line); }
.btn.big { width: 100%; font-size: 1.5rem; padding: 14px; }
.btn.small { padding: 8px 12px; font-size: 1.1rem; }
.leave.btn.ghost { color: var(--paper); border-color: rgba(243, 234, 215, 0.35); }

.divider { display: flex; align-items: center; gap: 10px; color: var(--ink-soft); margin: 18px 0 14px; font: 400 1.1rem var(--hand); }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.join-row { display: flex; gap: 10px; }
.join-row input { text-transform: uppercase; letter-spacing: 6px; font-weight: 800; text-align: center; }

.howto ul { padding-left: 20px; margin: 0 0 14px; line-height: 1.55; }
.controls { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.controls p { margin: 0; color: var(--ink-soft); font-size: 0.9rem; line-height: 1.5; }
@media (max-width: 420px) { .controls { grid-template-columns: 1fr; } }
kbd { background: var(--paper-2); border: 1px solid var(--line); border-radius: 5px; padding: 0 5px; font-size: 0.85em; color: var(--ink); }

.room-code { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.room-code .label { font: 400 1.3rem var(--hand); color: var(--ink-soft); }
.room-code strong { font: 400 3rem/1 var(--hand); letter-spacing: 8px; color: var(--terra); }
.hint { color: var(--ink-soft); font-size: 0.9rem; margin: 10px 0 0; }
.invite { display: flex; gap: 14px; align-items: center; margin-top: 12px; }
.invite .hint { margin: 0; }
.qr { width: 104px; height: 104px; flex: none; background: #fff; border-radius: 10px; padding: 4px; border: 2px solid var(--line); }
.qr svg { width: 100%; height: 100%; display: block; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.card {
  font: inherit;
  color: var(--ink);
  text-align: left;
  background: var(--paper-2);
  border: 3px solid transparent;
  border-radius: 14px;
  padding: 12px 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.card.selected { border-color: var(--terra); background: #f7e6d3; }
.card canvas { width: 76px; height: 76px; align-self: center; }
.card .name { font: 400 1.5rem/1 var(--hand); text-align: center; }
.card .role { font-size: 0.72rem; color: var(--ink-soft); text-align: center; text-transform: uppercase; letter-spacing: 1.5px; font-weight: 800; }
.card .desc { font-size: 0.78rem; color: var(--ink-soft); line-height: 1.35; min-height: 3em; }
.card .super { font: 400 1.1rem var(--hand); color: var(--terra); margin-top: 4px; }
.card .super-desc { min-height: 0; }
.stat { display: grid; grid-template-columns: 48px 1fr; align-items: center; gap: 6px; font-size: 0.7rem; color: var(--ink-soft); font-weight: 700; }
.bar { height: 6px; background: rgba(59, 47, 37, 0.12); border-radius: 3px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--teal); border-radius: 3px; }
@media (max-width: 420px) {
  .cards { gap: 6px; }
  .card { padding: 10px 6px; }
  .card .desc { display: none; }
}

.players { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.players li {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--paper-2);
  border-radius: 12px;
  padding: 8px 12px;
  font: 400 1.25rem var(--hand);
}
.players .dot { width: 24px; height: 24px; border-radius: 50%; flex: none; border: 3px solid rgba(59, 47, 37, 0.25); }
.players .who { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.players .tag { font: 800 0.7rem "Nunito", sans-serif; padding: 3px 8px; border-radius: 99px; background: rgba(59, 47, 37, 0.1); color: var(--ink-soft); letter-spacing: 0.5px; }
.players .tag.host { background: var(--gold); color: var(--ink); }
.players .tag.you { background: var(--teal); color: var(--paper); }
.players .tag.wins { background: rgba(200, 100, 59, 0.15); color: var(--terra-dark); }
.players li.offline { opacity: 0.5; }
.host-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.host-controls .big { grid-column: 1 / -1; }
.leave { align-self: center; }

/* ---------- Game ---------- */
#game { position: fixed; inset: 0; background: var(--sea-deep); overflow: hidden; color: var(--ink); }
#game canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
#canvas { touch-action: none; user-select: none; -webkit-user-select: none; }
#game canvas.gl { pointer-events: none; }
#hud { position: absolute; inset: 0; pointer-events: none; }
.hud-top {
  position: absolute;
  top: max(10px, env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.pill {
  background: var(--paper);
  color: var(--ink);
  padding: 4px 14px;
  border-radius: 10px;
  font: 400 1.25rem var(--hand);
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.pill:empty { display: none; }
.pill.danger { background: #b9e08f; color: #23401a; }
#killFeed {
  position: absolute;
  top: max(10px, env(safe-area-inset-top));
  right: max(10px, env(safe-area-inset-right));
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  font: 400 1.05rem var(--hand);
}
#killFeed div { background: var(--paper); padding: 2px 10px; border-radius: 8px; animation: fade 4s forwards; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2); }
@keyframes fade { 0%, 75% { opacity: 1; } 100% { opacity: 0; } }
#centerMsg {
  position: absolute;
  top: 36%;
  left: 0;
  right: 0;
  text-align: center;
  font: 400 clamp(3.5rem, 14vw, 7rem)/1 var(--hand);
  color: var(--paper);
  text-shadow: 0 4px 0 rgba(59, 47, 37, 0.6), 0 0 30px rgba(0, 0, 0, 0.3);
}
#superHint {
  position: absolute;
  bottom: max(64px, calc(env(safe-area-inset-bottom) + 56px));
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100% - 32px);
  text-align: center;
  font: 400 1.3rem var(--hand);
  color: var(--paper);
  background: var(--terra);
  padding: 4px 16px;
  border-radius: 10px;
  white-space: nowrap;
}
#superHint:not(:empty) { animation: pulse 0.8s infinite alternate; }
#superHint:empty { display: none; }
@keyframes pulse { from { opacity: 0.8; } to { opacity: 1; } }
#hudButtons {
  position: absolute;
  top: max(10px, env(safe-area-inset-top));
  left: max(10px, env(safe-area-inset-left));
  display: flex;
  gap: 8px;
  align-items: flex-start;
  pointer-events: auto;
}
.hud-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  background: var(--paper);
  font-size: 1.2rem;
  cursor: pointer;
  touch-action: manipulation;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
#emoteTray { display: flex; gap: 6px; background: var(--paper); padding: 6px; border-radius: 99px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25); }
#emoteTray button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: var(--paper-2);
  font: 400 1.2rem var(--hand);
  cursor: pointer;
  touch-action: manipulation;
}
#spectateMsg {
  position: absolute;
  bottom: max(16px, env(safe-area-inset-bottom));
  left: 0;
  right: 0;
  text-align: center;
}
#spectateMsg:not(:empty) span {
  display: inline-block;
  max-width: calc(100% - 32px);
  background: var(--paper);
  padding: 4px 14px;
  border-radius: 10px;
  font: 400 1.2rem var(--hand);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
@media (max-width: 700px) { #killFeed { top: 52px; } }

#results {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 40, 46, 0.55);
  padding: 16px;
}
.results-card {
  background: var(--paper);
  border-radius: 20px;
  padding: 24px;
  width: min(420px, 100%);
  max-height: 100%;
  overflow: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}
.results-card h2 { font-size: 2.8rem; text-align: center; margin: 0; color: var(--terra); }
.results-card > p { text-align: center; margin: 4px 0 16px; }
#resultList { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-direction: column; gap: 6px; }
#resultList li { display: flex; gap: 10px; align-items: center; background: var(--paper-2); padding: 6px 12px; border-radius: 10px; font: 400 1.25rem var(--hand); }
#resultList li.me { outline: 2px solid var(--teal); }
#resultList .rank { width: 30px; color: var(--terra); }
#resultList .who { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#resultList .wins { color: var(--terra-dark); font-size: 1rem; }

#net, #toast {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 16px;
  border-radius: 10px;
  font: 400 1.2rem var(--hand);
  z-index: 10;
  max-width: calc(100% - 32px);
  text-align: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}
#net { top: 12px; background: var(--red); color: var(--paper); }
#toast { bottom: 24px; background: var(--paper); color: var(--ink); }

/* ---------- Lobby: stage, modes, teams ---------- */
.lobby { max-width: 1120px; }
@media (min-width: 960px) {
  .lobby { display: grid; grid-template-columns: 1.15fr 1fr; align-items: start; }
  .lobby .stage-panel { grid-row: span 2; }
  .lobby .leave { grid-column: 1 / -1; justify-self: center; }
}
.lobby-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.lobby-head .room-code strong { font-size: 2.4rem; }
.stage-wrap {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 30%, #bfe0dc 0, #7fb7b0 45%, #3c8a86 100%);
  margin: 0 -4px 12px;
}
#stage { display: block; width: 100%; height: clamp(240px, 42vw, 380px); }
.stage-info {
  position: absolute;
  left: 14px;
  bottom: 12px;
  max-width: 55%;
  background: var(--paper);
  border-radius: 12px;
  padding: 8px 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}
.stage-name { font: 400 2rem/1 var(--hand); }
.stage-role { font-size: 0.7rem; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink-soft); }
.stage-desc { font-size: 0.8rem; color: var(--ink-soft); margin-top: 4px; }
.stage-super { font: 400 1.1rem var(--hand); color: var(--terra); margin-top: 4px; }
.stage-panel .cards .desc, .stage-panel .cards .super, .stage-panel .cards .super-desc { display: none; }
.stage-panel .card { padding: 8px 6px; align-items: center; }
.stage-panel .card canvas { width: 64px; height: 64px; }
.stage-panel .card .stat { width: 100%; }

.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mode {
  font: inherit;
  color: var(--ink);
  text-align: center;
  background: var(--paper-2);
  border: 3px solid transparent;
  border-radius: 14px;
  padding: 12px 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.mode:disabled { cursor: default; }
.mode.selected { border-color: var(--teal); background: #dcefe9; }
.mode .icon { font-size: 1.9rem; line-height: 1; }
.mode .name { font: 400 1.4rem/1 var(--hand); }
.mode .blurb { font-size: 0.72rem; color: var(--ink-soft); line-height: 1.3; }
@media (max-width: 420px) { .mode .blurb { display: none; } }

.teams { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.team h3 { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.team.blue h3 { color: #2f6fb0; }
.team.red h3 { color: #b0423a; }
.team .players { margin: 0; }
.team .btn.small { padding: 4px 10px; font-size: 1rem; }
@media (max-width: 520px) { .teams { grid-template-columns: 1fr; } }

/* ---------- Accounts, profile, badges ---------- */
.account-bar { background: var(--paper-2); border-radius: 12px; padding: 10px 12px; margin-bottom: 16px; }
.account-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 0.9rem; color: var(--ink-soft); }
.account-row span { flex: 1; min-width: 160px; }
.user-chip { font: 400 1.4rem var(--hand); color: var(--ink); }
.modal { position: fixed; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(10, 40, 46, 0.6); }
.modal-card { width: min(420px, 100%); display: flex; flex-direction: column; }
.modal-close { align-self: center; margin-top: 8px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 16px; }
.tab { font: 400 1.3rem var(--hand); border: 0; border-radius: 10px; padding: 8px; background: var(--paper-2); color: var(--ink-soft); cursor: pointer; }
.tab.selected { background: var(--teal); color: var(--paper); }
.error { color: var(--red); font-weight: 700; margin: 0 0 12px; }

.profile { max-width: 760px; }
.profile-head { display: flex; align-items: center; gap: 16px; }
.profile-title { flex: 1; display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.profile-title h1 { margin: 0; font: 400 2.6rem/1 var(--hand); }
.profile-trophies { font: 400 2rem var(--hand); color: var(--terra); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.stat-tile { background: var(--paper-2); border-radius: 12px; padding: 10px 12px; }
.stat-tile b { display: block; font: 400 1.9rem/1 var(--hand); color: var(--ink); }
.stat-tile span { font-size: 0.78rem; color: var(--ink-soft); font-weight: 700; }
.brawler-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.brawler-stat { background: var(--paper-2); border-radius: 12px; padding: 10px; text-align: center; }
.brawler-stat .bname { font: 400 1.5rem var(--hand); }
.brawler-stat .bline { font-size: 0.8rem; color: var(--ink-soft); font-weight: 700; }
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.badge { background: var(--paper-2); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 4px; position: relative; }
.badge .bicon { font-size: 1.9rem; line-height: 1; }
.badge .bname { font: 400 1.3rem/1.05 var(--hand); }
.badge .bdesc { font-size: 0.75rem; color: var(--ink-soft); line-height: 1.3; }
.badge.locked { opacity: 0.55; }
.badge.locked .bicon { filter: grayscale(1); }
.badge.earned { background: #f7e6d3; box-shadow: inset 0 0 0 2px var(--gold); }
.badge .bar { margin-top: 4px; }
.leaderboard { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.leaderboard li { display: flex; gap: 10px; align-items: center; background: var(--paper-2); border-radius: 10px; padding: 6px 12px; font: 400 1.25rem var(--hand); }
.leaderboard li.me { outline: 2px solid var(--teal); }
.leaderboard .pos { width: 32px; color: var(--terra); }
.leaderboard .who { flex: 1; }
.progress { background: var(--paper-2); border-radius: 12px; padding: 10px 12px; margin: 0 0 14px; text-align: center; }
.progress .delta { font: 400 1.8rem var(--hand); }
.progress .delta.up { color: var(--me); }
.progress .delta.down { color: var(--red); }
.progress .newbadge { font: 400 1.2rem var(--hand); color: var(--terra-dark); animation: pop 0.5s ease-out; }
@keyframes pop { from { transform: scale(0.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@media (max-width: 520px) { .brawler-stats { grid-template-columns: 1fr; } }

/* ---------- Leaving matches ---------- */
.ko-card {
  position: absolute;
  left: 50%;
  bottom: max(70px, calc(env(safe-area-inset-bottom) + 60px));
  transform: translateX(-50%);
  width: min(440px, calc(100% - 32px));
  background: var(--paper);
  border-radius: 16px;
  padding: 14px 16px;
  text-align: center;
  pointer-events: auto;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  animation: pop 0.35s ease-out;
}
.ko-title { font: 400 2.2rem/1 var(--hand); color: var(--terra); }
.ko-sub { color: var(--ink-soft); margin: 4px 0 12px; }
.ko-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ko-actions .btn { font-size: 1.15rem; padding: 10px; }
.match-banner {
  margin: 0;
  background: var(--gold);
  color: var(--ink);
  border-radius: 12px;
  padding: 10px 14px;
  font: 400 1.25rem var(--hand);
  text-align: center;
}
@media (min-width: 960px) { .lobby .match-banner { grid-column: 1 / -1; } }

/* Match twists */
.twist-head { margin-top: 18px; }
.modes.twists { grid-template-columns: repeat(5, 1fr); }
.modes.twists .mode .name { font-size: 1.15rem; }
@media (max-width: 700px) { .modes.twists { grid-template-columns: repeat(3, 1fr); } }
#twistBanner {
  position: absolute;
  top: calc(max(10px, env(safe-area-inset-top)) + 52px);
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100% - 32px);
  text-align: center;
  font: 400 1.35rem/1.2 var(--hand);
  color: var(--paper);
  background: rgba(59, 47, 37, 0.78);
  padding: 6px 18px;
  border-radius: 12px;
  pointer-events: none;
}
#twistBanner:empty { display: none; }
#centerMsg.callout { font-size: clamp(2.2rem, 8vw, 4rem); color: #ffcf7a; animation: pop 0.35s ease-out; }
@keyframes pop { from { transform: scale(1.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.card .super.gadget { color: var(--teal); }

/* MVP strip on the results card */
.mvp { display: flex; align-items: center; gap: 14px; margin: 4px auto 14px; padding: 10px 14px; border-radius: 14px; background: linear-gradient(135deg, #fff1c9, #f6dca0); box-shadow: inset 0 0 0 2px #e2b65a; max-width: 420px; }
#results .mvp canvas { position: static; inset: auto; display: block; width: 72px; height: 72px; border-radius: 12px; background: rgba(255, 255, 255, 0.6); flex: none; }
.mvp-info { flex: 1; min-width: 0; }
.mvp-ribbon { display: inline-block; font: 400 1rem var(--hand); background: #c8892c; color: #fff8e6; padding: 0 10px; border-radius: 8px; }
.mvp-name { font: 400 1.5rem/1.1 var(--hand); margin: 2px 0 4px; }
.mvp-stats { display: flex; gap: 14px; }
.mvp-stat { display: flex; flex-direction: column; line-height: 1.1; }
.mvp-stat b { font-size: 1.1rem; }
.mvp-stat span { font-size: 0.72rem; color: var(--ink-soft); }
/* Short phone screens: keep the twist banner clear of your own brawler (centre) and the buttons. */
@media (max-height: 520px) {
  #twistBanner { top: auto; bottom: max(78px, calc(env(safe-area-inset-bottom) + 70px)); font-size: 1rem; max-width: 52%; padding: 4px 12px; }
}

/* Ready check */
.ready-btn { display: block; width: 100%; margin-top: 12px; }
.ready-btn.is-ready { background: var(--teal); }
.players .tag.ready { background: #cfeedd; color: #1d6b45; }
.players .tag.waiting { background: rgba(0, 0, 0, 0.06); color: var(--ink-soft); }

/* Blender-rendered collectible icons used inline in text */
.ico { height: 1.2em; width: auto; vertical-align: -0.25em; display: inline-block; }
#centerMsg .ico { height: 0.9em; vertical-align: -0.1em; }
.mode .icon .ico { height: 1.9rem; vertical-align: 0; }
