.welcome-screen {
  position: fixed;
  z-index: 6;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: clamp(10px, 2vh, 20px) 22px;
  background:
    radial-gradient(ellipse at 15% 12%, #e9dec0 0, transparent 31%),
    radial-gradient(ellipse at 95% 92%, #dce6d8 0, transparent 30%),
    #f5f3ec;
}

.welcome-screen[hidden] {
  display: none;
}

.welcome-shell {
  width: min(1050px, 100%);
  max-height: 100%;
  box-sizing: border-box;
  padding: clamp(14px, 2.4vh, 25px) clamp(22px, 4vw, 46px) 12px;
  border: 1px solid #e4dfd0;
  border-radius: 12px;
  background: #fbfaf6;
  box-shadow: 0 24px 70px #24362a17;
}

.welcome-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #203b32;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
}

.welcome-music-toggle {
  min-height: 30px;
  margin-left: 0;
  padding: 0 10px;
  border: 1px solid #e4dfd0;
  border-radius: 99px;
  background: #fffefa;
  color: #627365;
  cursor: pointer;
  font: 600 8px 'DM Sans', sans-serif;
  letter-spacing: 0;
  white-space: nowrap;
}

.welcome-music-toggle[aria-pressed="false"] { color: #725e59; }
.welcome-audio-controls .music-next-button { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 26px; min-height: 32px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #73816f; cursor: pointer; }
.welcome-audio-controls .music-next-button:hover { color: #244b3e; background: #244b3e0c; }
.music-next-button:focus-visible, .music-next-setting:focus-visible { outline: 2px solid #8d7746; outline-offset: 2px; }
.music-next-setting { align-self: flex-end; margin: -3px 0 5px; padding: 3px 0; border: 0; background: transparent; color: #73816f; cursor: pointer; font: 500 11px 'DM Sans', sans-serif; }
.music-next-button:disabled, .music-next-setting:disabled { opacity: .35; cursor: default; }

.welcome-audio-controls {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.welcome-audio-button {
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid #d7c99f;
  border-radius: 99px;
  background: #f4f0e4;
  color: #526452;
  cursor: pointer;
  font: 700 8px 'DM Sans', sans-serif;
  letter-spacing: 0;
  white-space: nowrap;
}

.welcome-settings-open {
  border-color: #e4dfd0;
  background: #fffefa;
}

.welcome-brand small {
  display: block;
  margin-top: 4px;
  color: #92978d;
  font-size: 7px;
  letter-spacing: 1.5px;
}

.welcome-mark {
  display: grid;
  width: 37px;
  height: 37px;
  place-items: center;
  border: 1px solid #c9af75;
  border-radius: 50%;
  color: #ad8d47;
  font-size: 18px;
}

.welcome-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  align-items: center;
  gap: clamp(18px, 3vw, 42px);
  padding: clamp(14px, 2.3vh, 25px) 0 15px;
}

.welcome-story {
  position: relative;
  min-width: 0;
}

.welcome-kicker,
.welcome-start-heading > span {
  color: #8a8d7c;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.8px;
}

.welcome-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
}

.welcome-kicker span,
.welcome-online-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #77a17d;
}

.welcome-story h1 {
  margin: 10px 0 8px;
  color: #1e3930;
  font: 600 clamp(34px, 3.8vw, 46px)/1.02 'Playfair Display', Georgia, serif;
  letter-spacing: -1.6px;
}

.welcome-story h1 em {
  color: #b09250;
  font-weight: 500;
}

.welcome-story > p {
  max-width: 410px;
  margin: 0;
  color: #737e74;
  font: 400 11px/1.55 'DM Sans', sans-serif;
}

.welcome-art {
  position: relative;
  height: 82px;
  max-width: 390px;
  margin: 9px 0 2px;
  overflow: hidden;
  border-radius: 8px;
  background: radial-gradient(ellipse at 52% 50%, #28604f, #174536 72%, #123b31);
}

.welcome-art::before,
.welcome-art::after,
.welcome-art-ring {
  position: absolute;
  inset: 11px;
  border: 1px solid #dfcb8a27;
  border-radius: 48% / 45%;
  content: '';
}

.welcome-art::after {
  inset: 23px 38px;
  border-color: #ffffff12;
}

.welcome-art-ring {
  inset: 27px auto 27px 50%;
  width: 128px;
  transform: translateX(-50%);
  border-radius: 50%;
}

.welcome-playing-card {
  position: absolute;
  top: 50%;
  display: flex;
  width: 76px;
  height: 112px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid #e1d7b7;
  border-radius: 6px;
  background: linear-gradient(145deg, #fffef9, #ede7d6);
  box-shadow: 0 9px 22px #09221966, inset 0 0 0 3px #fff9;
  color: #65713e;
}

.welcome-playing-card small {
  position: absolute;
  top: 8px;
  left: 8px;
  font: 700 12px 'DM Sans', sans-serif;
}

.welcome-playing-card span {
  font: 30px 'Playfair Display', Georgia, serif;
}

.welcome-playing-card b {
  position: absolute;
  bottom: 8px;
  font: 700 6px 'DM Sans', sans-serif;
  letter-spacing: 1px;
}

.welcome-card-back {
  left: calc(50% - 56px);
  transform: translate(-50%, -50%) rotate(-12deg);
  border-color: #d2bd80;
  background: repeating-linear-gradient(45deg, #f6f1e2 0 4px, #e9e0c8 4px 5px);
  color: #a3874b;
  font: 28px 'Playfair Display', Georgia, serif;
}

.welcome-card-back small {
  inset: auto auto 13px;
  font-size: 5px;
  letter-spacing: 1px;
}

.welcome-card-face {
  z-index: 1;
  transform: translate(-50%, -50%) rotate(1deg);
}

.welcome-card-suit {
  left: calc(50% + 55px);
  transform: translate(-50%, -50%) rotate(12deg);
  color: #334b61;
}

.welcome-art-spark {
  position: absolute;
  color: #e5d39a;
  opacity: .8;
}

.welcome-spark-one {
  top: 27px;
  left: 23%;
  font-size: 18px;
}

.welcome-spark-two {
  right: 21%;
  bottom: 24px;
  font-size: 13px;
}

.welcome-promise {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #758176;
  font-size: 9px;
}

.welcome-promise span {
  color: #af9453;
}

.welcome-start {
  padding: 23px;
  border: 1px solid #e8e3d7;
  border-radius: 8px;
  background: #fffefa;
  box-shadow: 0 8px 28px #14261b0b;
}

.welcome-start-heading small {
  display: block;
  margin-top: 6px;
  color: #92988f;
  font-size: 10px;
}

.welcome-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin: 20px 0 14px;
}

.welcome-options label {
  color: #879087;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .4px;
}

.welcome-options select {
  display: block;
  width: 100%;
  min-width: 0;
  height: 35px;
  margin-top: 6px;
  padding: 0 8px;
  border: 1px solid #e2dfd5;
  border-radius: 4px;
  background: #fff;
  color: #344a3f;
  font: 500 10px 'DM Sans', sans-serif;
}

.welcome-primary,
.welcome-secondary {
  display: flex;
  width: 100%;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  border-radius: 5px;
  cursor: pointer;
  font: 700 11px 'DM Sans', sans-serif;
}

.welcome-primary {
  padding: 0 15px;
  border: 1px solid #173d34;
  background: linear-gradient(110deg, #214e40, #153b32);
  box-shadow: 0 5px 12px #173d3420;
  color: white;
}

.welcome-primary b {
  color: #e0c777;
  font-size: 19px;
  font-weight: 500;
}

.welcome-primary:hover {
  background: #285a49;
}

.welcome-secondary {
  justify-content: center;
  gap: 9px;
  margin-top: 8px;
  border: 1px solid #e1ddd2;
  background: #fffefa;
  color: #42584a;
}

.welcome-secondary:hover {
  border-color: #b8a66e;
  background: #fbf9f0;
}

.welcome-rules {
  display: block;
  margin: 13px auto 0;
  padding: 5px 8px;
  border: 0;
  background: transparent;
  color: #79847a;
  cursor: pointer;
  font: 600 9px 'DM Sans', sans-serif;
}

.welcome-rules span {
  margin-left: 4px;
  color: #aa9259;
}

.welcome-note {
  display: flex;
  gap: 9px;
  margin-top: 16px;
  padding: 10px;
  border-radius: 4px;
  background: #f0f1e9;
  color: #66756a;
}

.welcome-note > span {
  color: #a48a4c;
  font-size: 14px;
}

.welcome-note p {
  margin: 0;
  font-size: 9px;
  line-height: 1.5;
}

.welcome-footer {
  display: flex;
  justify-content: space-between;
  padding-top: 13px;
  border-top: 1px solid #ece9df;
  color: #a0a399;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 1.3px;
}

.welcome-dashboard {
  display: grid;
  grid-template-columns: minmax(170px, .78fr) minmax(210px, 1fr) minmax(290px, 1.35fr);
  gap: 9px;
  margin: 0 0 12px;
}

.welcome-dashboard-card {
  min-width: 0;
  padding: 12px;
  border: 1px solid #e8e3d7;
  border-radius: 7px;
  background: #fffefa;
  box-shadow: 0 5px 18px #14261b08;
}

.welcome-dashboard-heading {
  display: flex;
  min-height: 20px;
  align-items: center;
  justify-content: space-between;
  color: #858c7e;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1.2px;
}

.dashboard-account-indicator,
.dashboard-count {
  display: inline-grid;
  min-width: 22px;
  min-height: 22px;
  place-items: center;
  padding: 0 6px;
  border-radius: 20px;
  background: #eff1e9;
  color: #6d806d;
  font-size: 7px;
  letter-spacing: .4px;
}

.welcome-account-card h2 {
  margin: 19px 0 7px;
  color: #254338;
  font: 600 19px/1.2 'Playfair Display', Georgia, serif;
}

.welcome-account-card p,
.welcome-dashboard-caption {
  min-height: 30px;
  margin: 0;
  color: #7b8579;
  font: 400 9px/1.6 'DM Sans', sans-serif;
}

.dashboard-account-link {
  display: flex;
  width: 100%;
  justify-content: space-between;
  margin-top: 14px;
  padding: 9px 0 0;
  border: 0;
  border-top: 1px solid #efede5;
  background: transparent;
  color: #496657;
  cursor: pointer;
  font: 700 9px 'DM Sans', sans-serif;
  text-align: left;
}

.welcome-token-summary {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 8px 9px;
  border: 1px solid #e6dfca;
  border-radius: 5px;
  background: #f8f6ee;
  color: #42584a;
  cursor: pointer;
  text-align: left;
}

.welcome-token-mark { color: #a88947; font-size: 15px; }
.welcome-token-copy { flex: 1; min-width: 0; }
.welcome-token-copy strong,
.welcome-token-copy small { display: block; }
.welcome-token-copy strong { color: #31483a; font-size: 10px; }
.welcome-token-copy small { margin-top: 3px; color: #778276; font-size: 8px; font-variant-numeric: tabular-nums; }
.welcome-token-arrow { color: #a88947; font-size: 15px; }
.welcome-token-summary:hover { border-color: #c9b579; background: #f4f0e3; }

.dashboard-account-link span { color: #ac9051; }
.welcome-admin-dashboard { margin-top: 3px; padding-top: 3px; border-top: 0; }
.welcome-friends-card .welcome-dashboard-caption,
.welcome-public-card .welcome-dashboard-caption { min-height: 29px; margin-top: 4px; }

.dashboard-friend-form,
.dashboard-private-join {
  display: flex;
  gap: 6px;
  margin: 8px 0;
}

.dashboard-friend-form input,
.dashboard-private-join input {
  width: 100%;
  min-width: 0;
  height: 32px;
  padding: 0 9px;
  border: 1px solid #e5e2d8;
  border-radius: 4px;
  background: #fff;
  color: #344a3f;
  font: 500 9px 'DM Sans', sans-serif;
}

.dashboard-friend-form button,
.dashboard-private-join button {
  flex: 0 0 auto;
  min-width: 34px;
  border: 1px solid #244b3e;
  border-radius: 4px;
  background: #244b3e;
  color: #fff;
  cursor: pointer;
  font: 700 10px 'DM Sans', sans-serif;
}

.dashboard-friend-form button { font-size: 16px; }

.dashboard-friend-list,
.dashboard-public-list {
  display: grid;
  max-height: 112px;
  gap: 4px;
  overflow: hidden;
}

.dashboard-friend-list:empty { display: none; }
.dashboard-friend-list .lobby-empty,
.dashboard-public-list .lobby-empty { margin: 2px 0; font-size: 8px; line-height: 1.5; }
.dashboard-public-refresh-status { margin: -3px 0 2px; font-size: 7px; }

.dashboard-friend-list .friend-row {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 5px;
  padding: 5px 0;
  border-bottom: 1px solid #f0eee8;
}

.dashboard-friend-list .friend-row strong {
  flex: 1;
  overflow: hidden;
  color: #40574a;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-friend-list .friend-invite-button,
.dashboard-friend-list .friend-remove-button {
  padding: 4px 5px;
  border: 1px solid #e6e2d7;
  border-radius: 3px;
  background: #fff;
  color: #637466;
  cursor: pointer;
  font: 600 7px 'DM Sans', sans-serif;
}

.dashboard-friend-list .friend-retry-button { min-height: 22px; padding: 3px 6px; font-size: 7px; }

.dashboard-friend-list .friend-remove-button { display: block; }

.dashboard-refresh {
  width: 26px;
  height: 26px;
  border: 1px solid #e7e3d8;
  border-radius: 50%;
  background: #fff;
  color: #496657;
  cursor: pointer;
  font-size: 16px;
}

.dashboard-refresh.refreshing { animation: dashboard-spin .7s linear infinite; }
@keyframes dashboard-spin { to { transform: rotate(360deg); } }

.dashboard-public-list { max-height: 112px; margin: 5px 0 6px; }
.dashboard-public-list .public-room-card { gap: 6px; padding: 7px; }
.dashboard-public-list .public-room-details strong { font-size: 9px; }
.dashboard-public-list .public-room-details span { font-size: 7px; }
.dashboard-public-list .room-join-button { min-height: 27px; padding: 0 7px; font-size: 8px; }

.dashboard-private-join { margin: 7px 0 5px; }
.dashboard-private-join input { height: 30px; text-transform: uppercase; }
.dashboard-private-join button { padding: 0 10px; font-size: 8px; }

.dashboard-create-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.dashboard-create-actions button {
  flex: 1;
  min-width: 0;
  min-height: 28px;
  padding: 4px 6px;
  border: 1px solid #e4e0d4;
  border-radius: 4px;
  background: #faf9f4;
  color: #526657;
  cursor: pointer;
  font: 600 7px 'DM Sans', sans-serif;
}
.dashboard-create-actions .quick-match-action { flex-basis: 100%; min-height: 32px; border-color: #355842; background: #355842; color: #fff; }
.dashboard-create-actions .quick-match-action:hover { background: #284733; }
.dashboard-entry-note { margin: 5px 0 0; color: #748176; font-size: 7px; line-height: 1.4; }

.dashboard-error { min-height: 0; margin: 4px 0 0; color: #a85c4e; font-size: 8px; }
.dashboard-error:empty { display: none; }
.dashboard-more-link {
  justify-self: start;
  padding: 3px 0;
  border: 0;
  background: transparent;
  color: #8b7443;
  cursor: pointer;
  font: 700 8px 'DM Sans', sans-serif;
}
.welcome-dashboard :is(button, input):focus-visible { outline: 2px solid #9c8144; outline-offset: 2px; }

.welcome-screen button:focus-visible,
.welcome-screen select:focus-visible {
  outline: 2px solid #9c8144;
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .welcome-dashboard { grid-template-columns: 1fr 1fr; }
  .welcome-public-card { grid-column: 1 / -1; }
}

.chat-empty {
  margin: auto;
  max-width: 210px;
  color: #8b9388;
  font-size: 10px;
  line-height: 1.6;
  text-align: center;
}

.chat-status {
  min-height: 14px;
  margin: 0;
  padding: 0 10px;
  color: #a45c4c;
  font-size: 9px;
}

.chat-form button:disabled {
  cursor: wait;
  opacity: .55;
}

@media (max-width: 760px) {
  .welcome-screen {
    align-items: start;
    padding: 8px 10px;
  }

  .welcome-shell {
    padding: 10px 14px 8px;
  }

  .welcome-layout {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 8px 0 9px;
  }

  .welcome-dashboard { grid-template-columns: 1fr 1fr; }
  .welcome-public-card { grid-column: 1 / -1; }
  .welcome-public-card .dashboard-public-list { max-height: 180px; }

  .welcome-story h1 {
    margin: 4px 0 4px;
    font-size: clamp(28px, 7vw, 38px);
  }

  .welcome-story > p {
    max-width: 490px;
    font-size: 9px;
    line-height: 1.35;
  }

  .welcome-art {
    display: none;
  }

  .welcome-promise {
    margin-top: 5px;
    font-size: 7px;
  }

  .welcome-start {
    padding: 10px 12px;
  }

  .welcome-dashboard-card { padding: 9px; }

  .welcome-options {
    margin: 8px 0 7px;
  }

  .welcome-note {
    margin-top: 6px;
  }

  .welcome-footer {
    font-size: 6px;
    padding-top: 7px;
  }
}

@media (max-width: 560px) {
  .welcome-screen { padding: 6px 8px; }
  .welcome-shell { padding: 8px 10px 6px; }
  .welcome-brand { gap: 7px; font-size: 10px; }
  .welcome-mark { width: 28px; height: 28px; font-size: 14px; }
  .welcome-brand small { display: none; }
  .welcome-audio-controls { gap: 4px; }
  .welcome-audio-controls .welcome-music-toggle { display: grid; width: 27px; min-height: 27px; place-items: center; padding: 0; }
  .welcome-audio-controls .welcome-music-toggle span { display: none; }
  .welcome-audio-button { display: grid; width: 27px; min-height: 27px; place-items: center; padding: 0; }
  .welcome-audio-button span { display: none; }
  .welcome-settings-open::before { content: '⚙'; font-size: 13px; }
  .welcome-music-toggle::before { content: '♫'; font-size: 13px; }
  .welcome-layout { gap: 5px; padding: 6px 0 7px; }
  .welcome-story h1 { margin: 3px 0; font-size: clamp(25px, 8vw, 34px); }
  .welcome-story > p,
  .welcome-art,
  .welcome-promise,
  .welcome-loyalty-summary,
  .welcome-start-heading small,
  .welcome-note { display: none; }
  .welcome-start { padding: 8px 10px; }
  .welcome-start-heading > span { font-size: 8px; }
  .welcome-options { gap: 5px; margin: 6px 0; }
  .welcome-options label { font-size: 7px; }
  .welcome-options select { height: 30px; font-size: 9px; }
  .welcome-primary,
  .welcome-secondary { min-height: 36px; font-size: 9px; }
  .welcome-rules { margin-top: 5px; font-size: 8px; }
  .welcome-dashboard { grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 7px; }
  .welcome-dashboard-card { padding: 8px; }
  .welcome-public-card { grid-column: 1 / -1; }
  .welcome-dashboard-heading { min-height: 17px; font-size: 7px; }
  .dashboard-account-indicator,
  .dashboard-count { min-height: 18px; min-width: 18px; }
  .welcome-account-card h2 { margin: 5px 0 3px; font-size: 13px; }
  .welcome-account-card p,
  .welcome-dashboard-caption { min-height: 0; font-size: 7px; line-height: 1.35; }
  .dashboard-account-link { margin-top: 5px; padding-top: 5px; font-size: 7px; }
  .welcome-token-summary { gap: 5px; margin-top: 5px; padding: 6px; }
  .welcome-token-mark,
  .welcome-token-arrow { font-size: 12px; }
  .welcome-token-copy strong { font-size: 8px; }
  .welcome-token-copy small { margin-top: 2px; font-size: 7px; }
  .welcome-friends-card .welcome-dashboard-caption,
  .welcome-public-card .welcome-dashboard-caption { display: none; }
  .dashboard-friend-form { margin: 4px 0 2px; }
  .dashboard-friend-form input { height: 26px; padding-inline: 6px; font-size: 8px; }
  .dashboard-friend-form button { min-width: 27px; }
  .dashboard-friend-list { max-height: 48px; gap: 1px; }
  .dashboard-friend-list .friend-row { gap: 3px; padding: 2px 0; }
  .dashboard-friend-list .friend-row strong { font-size: 7px; }
  .dashboard-friend-list .friend-invite-button,
  .dashboard-friend-list .friend-remove-button { padding: 3px; font-size: 6px; }
  .dashboard-public-list { max-height: 58px; margin: 3px 0 4px; }
  .dashboard-public-list .public-room-card { gap: 4px; padding: 4px 6px; }
  .dashboard-public-list .public-room-details { gap: 1px; }
  .dashboard-public-list .public-room-details strong { font-size: 8px; }
  .dashboard-public-list .public-room-details span { font-size: 6px; }
  .dashboard-public-list .room-join-button { min-height: 24px; padding: 0 6px; font-size: 7px; }
  .dashboard-private-join { margin: 4px 0; }
  .dashboard-private-join input { height: 26px; font-size: 8px; }
  .dashboard-private-join button { padding-inline: 7px; font-size: 7px; }
  .dashboard-create-actions button { min-height: 24px; font-size: 7px; }
  .dashboard-error { font-size: 7px; }
  .welcome-footer { display: none; }
}

@media (max-width: 380px) {
  .welcome-screen {
    padding: 8px;
  }

  .welcome-shell {
    padding-inline: 14px;
  }

  .welcome-start {
    padding: 12px;
  }

  .welcome-footer span:last-child {
    letter-spacing: .6px;
  }
}

@media (max-height: 760px) and (max-width: 760px) {
  .welcome-loyalty-summary,
  .welcome-promise { display: none; }

  .welcome-screen {
    padding-block: 6px;
  }

  .welcome-brand small,
  .welcome-note {
    display: none;
  }

  .welcome-layout {
    gap: 4px;
    padding: 5px 0;
  }

  .welcome-story h1 {
    font-size: 25px;
  }

  .welcome-kicker,
  .welcome-rules { display: none; }

  .welcome-promise {
    margin-top: 5px;
  }

  .welcome-start {
    padding: 6px 9px;
  }
  .welcome-dashboard { margin-bottom: 4px; }
  .welcome-dashboard-card { padding: 6px; }
  .welcome-options select { height: 25px; }
  .welcome-primary,
  .welcome-secondary { min-height: 31px; }
  .dashboard-public-list { max-height: 48px; }
}

@media (max-height: 850px) and (min-width: 761px) {
  .welcome-screen { align-items: start; padding-block: 8px; }
  .welcome-shell { padding-block: 12px 8px; }
  .welcome-layout { gap: 20px; padding-block: 10px 8px; }
  .welcome-story h1 { font-size: 42px; }
  .welcome-art { height: 78px; margin-top: 6px; }
  .welcome-dashboard { margin-bottom: 7px; }
  .welcome-dashboard-card { padding: 9px; }
  .welcome-footer { padding-top: 7px; }
}

@media (max-height: 600px) and (max-width: 760px) {
  .welcome-screen { padding-block: 4px; }
  .welcome-shell { padding: 4px 8px 3px; }
  .welcome-story {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }
  .welcome-brand small,
  .welcome-footer { display: none; }
  .welcome-layout { gap: 0; padding: 0; }
  .welcome-start { padding: 4px 7px; }
  .welcome-options { gap: 4px; margin: 4px 0; }
  .welcome-options select { height: 25px; margin-top: 3px; }
  .welcome-primary,
  .welcome-secondary { min-height: 29px; margin-top: 4px; }
  .welcome-rules { display: none; }
  .welcome-dashboard { gap: 4px; margin: 0; }
  .welcome-dashboard-card { padding: 5px; }
  .welcome-dashboard-heading { min-height: 15px; }
  .welcome-account-card h2,
  .welcome-account-card p,
  .welcome-dashboard-caption,
  .dashboard-friend-help { display: none; }
  .dashboard-account-link { margin-top: 3px; padding-top: 3px; }
  .dashboard-friend-form { margin: 3px 0; }
  .dashboard-friend-list { max-height: 30px; }
  .dashboard-public-list { max-height: 32px; margin: 2px 0; }
  .dashboard-public-list .public-room-card { padding: 3px 5px; }
  .dashboard-private-join { margin: 3px 0; }
  .dashboard-private-join input,
  .dashboard-private-join button { height: 24px; min-height: 24px; }
  .dashboard-create-actions { gap: 3px; }
  .dashboard-create-actions button { min-height: 21px; padding: 2px 4px; }
  .dashboard-create-actions .quick-match-action { min-height: 24px; }
}

@media (max-height: 400px) and (max-width: 760px) {
  .welcome-start { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
  .welcome-start-heading,
  .welcome-options { display: none; }
  .welcome-primary,
  .welcome-secondary { min-height: 26px; margin: 0; padding-inline: 7px; font-size: 8px; }
}

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