:root {
  --paper: #f3f0e8;
  --paper-deep: #e8e3d7;
  --ink: #15191d;
  --muted: #676b6c;
  --line: #cbc5b7;
  --white: #fffefa;
  --red: #e94b35;
  --red-soft: #f8d8d0;
  --blue: #126d83;
  --blue-soft: #cce7e9;
  --green: #238552;
  --yellow: #f0bc3c;
  --shadow: 8px 8px 0 #15191d;
}

* { box-sizing: border-box; }

html {
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Noto Sans SC", sans-serif;
  background:
    linear-gradient(rgba(21, 25, 29, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 25, 29, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 28px 28px;
  overflow-x: hidden;
}

button, input { min-width: 0; max-width: 100%; font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

.fairness-watermark-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.fairness-watermark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 160vw;
  display: grid;
  gap: 110px;
  color: rgba(233, 75, 53, 0.075);
  font-size: clamp(42px, 6vw, 82px);
  font-weight: 900;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  transform: translate(-50%, -50%) rotate(-12deg);
}

.site-shell {
  position: relative;
  z-index: 1;
  min-width: 0;
  width: min(1180px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.topbar {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--ink);
}

.brand {
  border: 0;
  padding: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 22px;
  font-weight: 900;
  cursor: pointer;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--ink);
  transform: rotate(-4deg);
}

.brand-mark svg { width: 20px; }

.connection {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.connection-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 4px rgba(240, 188, 60, 0.18);
}

.connection.is-online .connection-dot { background: var(--green); box-shadow: 0 0 0 4px rgba(35, 133, 82, 0.15); }
.connection.is-offline .connection-dot { background: var(--red); box-shadow: 0 0 0 4px rgba(233, 75, 53, 0.15); }

.banter-strip {
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
  border-bottom: 2px solid var(--ink);
}

.banter-track {
  width: max-content;
  min-width: 100%;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 48px;
  padding: 0 24px;
}

.banter-track span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.banter-track span:nth-child(3n + 1) { color: #ffd45c; }
.banter-track span:nth-child(3n + 2) { color: #bfe7e8; }
.banter-track span:nth-child(3n) { color: #ffc8be; }
.banter-track svg { width: 15px; height: 15px; }
.banter-track span[aria-hidden="true"] { display: none; }

main {
  width: 100%;
  min-width: 0;
  flex: 1;
}

.entry-view {
  width: 100%;
  min-width: 0;
  min-height: calc(100vh - 152px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  align-items: center;
  gap: clamp(48px, 8vw, 116px);
  padding: 64px 0 76px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--red);
  font-family: "Space Grotesk", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.entry-copy h1,
.room-heading h1 {
  margin: 0;
  font-size: clamp(54px, 7vw, 92px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: 0;
}

.entry-copy,
.entry-panel {
  min-width: 0;
  max-width: 100%;
}

.entry-copy h1 span { color: var(--blue); }

.entry-note {
  max-width: 480px;
  margin: 26px 0 36px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.team-preview {
  width: min(490px, 100%);
  min-height: 116px;
  display: grid;
  grid-template-columns: 1fr 58px 1fr;
  border: 2px solid var(--ink);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.preview-side {
  min-width: 0;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.preview-side span { font-weight: 800; }
.preview-side strong { font-family: "Space Grotesk", sans-serif; font-size: 38px; }
.preview-red { background: var(--red-soft); }
.preview-red strong { color: var(--red); }
.preview-blue { background: var(--blue-soft); }
.preview-blue strong { color: var(--blue); }
.preview-divider { display: grid; place-items: center; color: var(--white); background: var(--ink); }
.preview-divider svg { width: 25px; height: 25px; }

.entry-panel {
  padding: clamp(28px, 4vw, 48px);
  background: var(--white);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow);
}

.mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 34px;
  border-bottom: 2px solid var(--line);
}

.mode-tab {
  position: relative;
  border: 0;
  padding: 0 6px 14px;
  color: var(--muted);
  background: transparent;
  font-weight: 800;
  cursor: pointer;
}

.mode-tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 4px;
  background: transparent;
}

.mode-tab.is-active { color: var(--ink); }
.mode-tab.is-active::after { background: var(--red); }

.field-label {
  display: block;
  margin: 0 0 9px;
  font-size: 13px;
  font-weight: 800;
}

.input-wrap {
  height: 54px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border: 2px solid var(--ink);
  background: var(--paper);
}

.input-wrap:focus-within { background: var(--white); box-shadow: 4px 4px 0 var(--yellow); }
.input-wrap svg { width: 19px; color: var(--muted); }
.input-wrap input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; font-weight: 700; }
.input-wrap input::placeholder { color: #97958e; }
.code-input input { font-family: "Space Grotesk", sans-serif; font-size: 18px; letter-spacing: 3px; text-transform: uppercase; }

.primary-button,
.ready-button,
.icon-button {
  border: 2px solid var(--ink);
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.primary-button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  color: var(--white);
  background: var(--ink);
  box-shadow: 5px 5px 0 var(--red);
  font-weight: 900;
}

.primary-button:not(:disabled):hover,
.ready-button:hover,
.icon-button:hover { transform: translate(-2px, -2px); }
.primary-button:not(:disabled):active,
.ready-button:active,
.icon-button:active { transform: translate(1px, 1px); box-shadow: none; }
.primary-button:disabled { color: #96958f; background: var(--paper-deep); border-color: var(--line); box-shadow: none; cursor: not-allowed; }
.primary-button svg { width: 19px; }
.entry-submit { width: 100%; }
.form-error { min-height: 22px; margin: 18px 0 -8px; color: var(--red); font-size: 13px; font-weight: 700; text-align: center; }

.room-view { width: 100%; min-width: 0; padding: 52px 0 72px; }
.room-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 38px; }
.room-heading h1 { font-size: clamp(38px, 5vw, 62px); }
.room-heading h1 span { color: var(--blue); font-family: "Space Grotesk", sans-serif; }
.room-actions { display: flex; gap: 12px; }

.icon-button {
  position: relative;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--white);
  box-shadow: 4px 4px 0 var(--ink);
}

.icon-button svg { width: 20px; }
.icon-button::after {
  content: attr(data-tooltip);
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  width: max-content;
  max-width: 150px;
  padding: 6px 9px;
  color: var(--white);
  background: var(--ink);
  font-size: 11px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: 140ms ease;
}
.icon-button:hover::after { opacity: 1; transform: translateY(0); }

.lobby-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.roster-section { min-width: 0; border-top: 2px solid var(--ink); }
.section-heading { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); }
.section-heading .section-kicker { margin-bottom: 3px; color: var(--muted); }
.section-heading h2 { margin: 0; font-size: 24px; }
.count-badge { padding: 6px 10px; color: var(--white); background: var(--ink); font-family: "Space Grotesk", sans-serif; font-size: 12px; font-weight: 700; }

.player-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.player-item {
  min-width: 0;
  min-height: 86px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.player-item:nth-child(odd) { border-right: 1px solid var(--line); }
.player-item.is-offline { opacity: 0.5; }
.avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--ink);
  font-weight: 900;
}
.player-item.is-ready .avatar { background: var(--green); }
.player-name { min-width: 0; }
.player-name strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.player-name span { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; }
.player-state { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 12px; font-weight: 700; }
.player-state svg { width: 15px; }
.is-ready .player-state { color: var(--green); }
.empty-lobby { grid-column: 1 / -1; padding: 56px 20px; color: var(--muted); text-align: center; border-bottom: 1px solid var(--line); }

.control-panel {
  position: sticky;
  top: 24px;
  padding: 32px 28px;
  background: var(--white);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow);
  text-align: center;
}
.readiness-ring {
  --progress: 0deg;
  width: 138px;
  height: 138px;
  margin: 0 auto 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--green) var(--progress), var(--paper-deep) 0);
}
.readiness-ring::before { content: ""; grid-area: 1 / 1; width: 112px; height: 112px; border-radius: 50%; background: var(--white); }
.readiness-ring > div { z-index: 1; grid-area: 1 / 1; }
.readiness-ring strong { display: block; font-family: "Space Grotesk", sans-serif; font-size: 29px; }
.readiness-ring span { display: block; margin-top: -3px; color: var(--muted); font-size: 12px; }
.control-status strong { font-size: 18px; }
.control-status p { min-height: 42px; margin: 7px 0 20px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.ready-button { width: 100%; min-height: 50px; display: flex; align-items: center; justify-content: center; gap: 9px; margin-bottom: 13px; background: var(--white); font-weight: 900; }
.ready-button svg { width: 18px; fill: transparent; }
.ready-button.is-ready { color: var(--white); background: var(--green); }
.ready-button.is-ready svg { fill: currentColor; }
.start-button { width: 100%; box-shadow: 5px 5px 0 var(--blue); }
.host-note { min-height: 18px; margin: 18px 0 0; color: var(--muted); font-size: 11px; }

.result-view { animation: rise 420ms ease both; }
.result-banner { margin: -10px 0 28px; display: flex; align-items: baseline; justify-content: space-between; border-bottom: 2px solid var(--ink); }
.result-banner span { font-weight: 800; }
.result-banner strong { color: var(--red); font-size: clamp(42px, 6vw, 76px); line-height: 1.1; }
.teams-grid { display: grid; grid-template-columns: minmax(0, 1fr) 70px minmax(0, 1fr); align-items: center; }
.team { min-width: 0; border: 2px solid var(--ink); background: var(--white); box-shadow: var(--shadow); }
.team-red { box-shadow: 8px 8px 0 var(--red); }
.team-blue { box-shadow: 8px 8px 0 var(--blue); }
.team-heading { min-height: 104px; display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 15px; padding: 18px 22px; border-bottom: 2px solid var(--ink); }
.team-symbol { width: 50px; height: 50px; display: grid; place-items: center; color: var(--white); }
.team-symbol svg { width: 25px; }
.team-red .team-symbol { background: var(--red); }
.team-blue .team-symbol { background: var(--blue); }
.team-heading small { color: var(--muted); font-family: "Space Grotesk", sans-serif; font-size: 10px; font-weight: 700; letter-spacing: 1px; }
.team-heading h2 { margin: 0; font-size: 25px; }
.team-heading > strong { font-family: "Space Grotesk", sans-serif; font-size: 13px; }
.team-member { min-height: 66px; display: flex; align-items: center; gap: 14px; padding: 12px 22px; border-bottom: 1px solid var(--line); animation: memberIn 360ms ease both; }
.team-member:last-child { border-bottom: 0; }
.team-member span { width: 30px; height: 30px; display: grid; place-items: center; color: var(--white); font-family: "Space Grotesk", sans-serif; font-size: 12px; font-weight: 700; background: var(--ink); }
.team-member strong { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vanguard-badge { flex: 0 0 auto; padding: 5px 8px; color: var(--white); font-size: 11px; font-style: normal; font-weight: 900; line-height: 1; white-space: nowrap; }
.team-red .vanguard-badge { background: var(--red); }
.team-blue .vanguard-badge { background: var(--blue); }
.versus { width: 70px; height: 70px; z-index: 1; display: grid; place-items: center; color: var(--white); background: var(--ink); border: 4px solid var(--paper); border-radius: 50%; font-family: "Space Grotesk", sans-serif; font-size: 20px; font-weight: 700; }
.reset-button { min-width: 210px; margin: 38px auto 0; display: flex; box-shadow: 5px 5px 0 var(--yellow); }
.result-view > .host-note { text-align: center; }

footer { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--muted); border-top: 1px solid var(--line); font-size: 11px; font-weight: 700; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 20;
  max-width: min(420px, calc(100% - 32px));
  padding: 12px 18px;
  color: var(--white);
  background: var(--ink);
  border: 2px solid var(--white);
  box-shadow: 5px 5px 0 rgba(21, 25, 29, 0.28);
  font-size: 13px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: 180ms ease;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

.draw-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px minmax(0, 1fr);
  color: var(--white);
  background: var(--ink);
  overflow: hidden;
  isolation: isolate;
}

.draw-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent 0 5px, rgba(255, 255, 255, 0.035) 5px 6px);
  animation: scanlines 350ms linear infinite;
}

.draw-side {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 32px;
  overflow: hidden;
}

.draw-side::before {
  content: "";
  position: absolute;
  inset: -30%;
  z-index: -1;
  background: repeating-linear-gradient(115deg, transparent 0 28px, rgba(255, 255, 255, 0.07) 28px 31px);
  animation: battleStripes 900ms linear infinite;
}

.draw-red { background: var(--red); animation: redCharge 420ms ease-out both; }
.draw-blue { background: var(--blue); animation: blueCharge 420ms ease-out both; }
.draw-side small { font-family: "Space Grotesk", sans-serif; font-size: 13px; font-weight: 700; letter-spacing: 2px; }
.draw-side strong {
  width: 100%;
  min-height: 76px;
  display: grid;
  place-items: center;
  overflow: hidden;
  font-size: 34px;
  font-weight: 900;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.draw-side strong.is-changing { animation: nameFlicker 100ms ease both; }

.draw-center {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  color: var(--white);
  background: var(--ink);
  border-right: 4px solid var(--white);
  border-left: 4px solid var(--white);
  box-shadow: 0 0 55px rgba(0, 0, 0, 0.45);
}

.draw-spinner {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border: 3px solid rgba(255, 255, 255, 0.25);
  border-top-color: var(--yellow);
  border-radius: 50%;
  animation: drawSpin 650ms linear infinite;
}

.draw-spinner svg { width: 36px; height: 36px; animation: drawCounterSpin 650ms linear infinite; }
.draw-center p { margin: 0; font-size: 17px; font-weight: 900; text-align: center; }
.draw-pulse { display: flex; gap: 7px; }
.draw-pulse span { width: 8px; height: 8px; background: var(--white); animation: pulseDot 700ms ease-in-out infinite alternate; }
.draw-pulse span:nth-child(2) { animation-delay: 140ms; }
.draw-pulse span:nth-child(3) { animation-delay: 280ms; }

.draw-overlay.is-locked { animation: lockFlash 600ms ease both; }
.draw-overlay.is-locked .draw-spinner { border-color: var(--yellow); animation: lockStamp 420ms ease both; }
.draw-overlay.is-locked .draw-spinner svg { animation: none; }
.draw-overlay.is-locked .draw-side::before,
.draw-overlay.is-locked .draw-pulse span { animation-play-state: paused; }

body.is-drawing { overflow: hidden; }

[hidden] { display: none !important; }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes memberIn { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: translateX(0); } }
@keyframes redCharge { from { transform: translateX(-100%); } to { transform: translateX(0); } }
@keyframes blueCharge { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes battleStripes { from { transform: translateX(-30px); } to { transform: translateX(30px); } }
@keyframes scanlines { from { transform: translateY(0); } to { transform: translateY(6px); } }
@keyframes drawSpin { to { transform: rotate(360deg); } }
@keyframes drawCounterSpin { to { transform: rotate(-360deg); } }
@keyframes nameFlicker { from { opacity: 0.25; transform: scale(0.94); } to { opacity: 1; transform: scale(1); } }
@keyframes pulseDot { from { opacity: 0.25; transform: translateY(0); } to { opacity: 1; transform: translateY(-5px); } }
@keyframes lockFlash { 0%, 100% { filter: brightness(1); } 35% { filter: brightness(1.75); } }
@keyframes lockStamp { from { transform: scale(1.6) rotate(-20deg); } to { transform: scale(1) rotate(0); } }

@media (max-width: 860px) {
  .entry-view { grid-template-columns: minmax(0, 1fr); gap: 44px; align-items: start; padding-top: 48px; }
  .entry-copy { text-align: center; }
  .entry-note, .team-preview { margin-left: auto; margin-right: auto; }
  .entry-panel { width: min(540px, 100%); margin: 0 auto; }
  .lobby-layout { grid-template-columns: 1fr; }
  .control-panel { position: static; display: grid; grid-template-columns: 128px 1fr; align-items: center; gap: 0 22px; text-align: left; }
  .readiness-ring { grid-row: 1 / 5; width: 120px; height: 120px; margin: 0; }
  .readiness-ring::before { width: 96px; height: 96px; }
  .ready-button, .start-button { margin-top: 8px; }
  .host-note { text-align: center; }
  .teams-grid { grid-template-columns: 1fr; gap: 28px; }
  .versus { width: 58px; height: 58px; margin: -43px auto; }
}

@media (max-width: 560px) {
  .site-shell { width: min(100% - 24px, 1180px); }
  .topbar { min-height: 70px; }
  .brand { font-size: 19px; }
  .brand-mark { width: 34px; height: 34px; }
  .connection span:last-child { display: none; }
  .fairness-watermark {
    width: 180vw;
    gap: 130px;
    color: rgba(233, 75, 53, 0.105);
    font-size: 25px;
    transform: translate(-50%, -50%) rotate(-15deg);
  }
  .banter-track {
    justify-content: flex-start;
    gap: 44px;
    animation: banterScroll 18s linear infinite;
  }
  .banter-track span[aria-hidden="true"] { display: inline-flex; }
  .entry-view { min-height: auto; padding: 36px 0 56px; gap: 34px; }
  .entry-copy h1 { font-size: 40px; line-height: 1.14; }
  .entry-note { margin-top: 18px; margin-bottom: 26px; font-size: 14px; }
  .team-preview { min-height: 88px; grid-template-columns: 1fr 46px 1fr; box-shadow: 5px 5px 0 var(--ink); }
  .preview-side { padding: 15px 12px; gap: 8px; }
  .preview-side span { font-size: 13px; }
  .preview-side strong { font-size: 27px; }
  .entry-panel { padding: 26px 20px; box-shadow: 5px 5px 0 var(--ink); }
  .room-view { padding: 34px 0 54px; }
  .room-heading { align-items: center; margin-bottom: 28px; }
  .room-heading h1 { font-size: 31px; }
  .room-heading .eyebrow { margin-bottom: 7px; }
  .icon-button { width: 42px; height: 42px; box-shadow: 3px 3px 0 var(--ink); }
  .player-grid { grid-template-columns: 1fr; }
  .player-item:nth-child(odd) { border-right: 0; }
  .player-item { min-height: 76px; padding-left: 8px; padding-right: 8px; }
  .control-panel { display: block; padding: 26px 20px; text-align: center; box-shadow: 5px 5px 0 var(--ink); }
  .readiness-ring { width: 116px; height: 116px; margin: 0 auto 20px; }
  .control-status p { min-height: 0; }
  .result-banner { margin-top: 0; }
  .result-banner strong { font-size: 46px; }
  .team { box-shadow: 5px 5px 0 var(--ink); }
  .team-red { box-shadow: 5px 5px 0 var(--red); }
  .team-blue { box-shadow: 5px 5px 0 var(--blue); }
  .team-heading { min-height: 88px; grid-template-columns: 44px 1fr auto; padding: 14px; }
  .team-symbol { width: 42px; height: 42px; }
  .team-member { min-height: 58px; padding: 10px 16px; }
  footer { min-height: 56px; }
  .draw-overlay { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) 154px minmax(0, 1fr); }
  .draw-side { padding: 22px 16px; }
  .draw-side strong { min-height: 52px; font-size: 27px; }
  .draw-center { border: 0; border-top: 4px solid var(--white); border-bottom: 4px solid var(--white); }
  .draw-spinner { width: 66px; height: 66px; }
  .draw-spinner svg { width: 28px; height: 28px; }
  .draw-center p { font-size: 15px; }
}

@media (max-width: 380px) {
  .room-heading { align-items: flex-start; flex-wrap: wrap; }
  .room-heading > div:first-child { min-width: 0; flex: 1; }
  .room-actions { flex: 0 0 auto; margin-left: auto; }
  .room-heading h1 { font-size: 28px; }
  .team-heading h2 { font-size: 22px; }
}

@keyframes banterScroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 22px)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
