/* waiting.css: retained cascade position */ /* Approved portrait waiting room, reusing the shop background and plaque. */
body[data-screen='waiting']:before {
  background: #0b121b var(--art-shop-background) center/cover no-repeat;
}
body[data-screen='waiting']:after {
  background: linear-gradient(180deg, #04080e0a, #04080e20 65%, #04080e9c);
}
.screen-waiting {
  --waiting-margin: clamp(20px, 3vw, 58px);
}
.waiting-header {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(240px, 1.8fr) auto;
  align-items: start;
  gap: 24px;
  padding: 24px var(--waiting-margin) 26px;
  position: relative;
  z-index: 3;
}
.waiting-privacy {
  align-self: start;
  margin-top: 8px;
  font-size: 14px;
  color: #e3c992;
  white-space: nowrap;
}
.waiting-heading {
  min-width: 0;
  text-align: center;
}
.waiting-heading h1 {
  font:
    700 clamp(28px, 2.7vw, 46px) / 1.35 'Noto Serif KR',
    Batang,
    serif;
  letter-spacing: 1px;
  color: #f6e6c5;
  overflow-wrap: anywhere;
  text-shadow: 0 2px 5px #000;
}
.waiting-heading .bot-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px 16px;
  flex-wrap: wrap;
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: #e2d1ae;
}
.waiting-heading .bot-notice strong {
  color: #e2d1ae;
  font-weight: 500;
}
.waiting-count {
  font-size: 17px;
  color: #f1dec0;
  white-space: nowrap;
}
.waiting-tools,
.waiting-utility {
  display: flex;
  align-items: center;
  gap: 16px;
}
.waiting-tools .invite-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 12px;
  margin: 0;
  min-height: 49px;
  border: 1px solid #bd9a5a;
  border-radius: 2px;
  background: #080f18db;
  box-shadow: inset 0 0 0 3px #b58a3d16;
  white-space: nowrap;
}
.waiting-tools .invite-strip > span {
  font-size: 12px;
  color: #e4d0aa;
}
.waiting-tools .invite-strip strong {
  font:
    700 21px/1.2 Georgia,
    serif;
  color: #f8e4b8;
  letter-spacing: 2px;
  margin-left: 10px;
  user-select: all;
}
.waiting-tools .invite-strip .quiet {
  min-height: 34px;
  padding: 5px 12px;
  border: 1px solid #8e7449;
  border-radius: 2px;
  color: #edd6a8;
  font-size: 13px;
}
.waiting-utility {
  --settings-size: 58px;
  gap: 16px;
}
.waiting-utility .lobby-tools {
  position: static;
}
.waiting-leave {
  min-height: 46px;
  padding: 9px 20px;
  font-size: 15px;
  background: #0c121ae8;
  border-color: #ba965b;
  border-radius: 2px;
}
.screen-waiting #main {
  max-width: none;
  padding: 0 var(--waiting-margin) 18px;
  display: flex;
  flex-direction: column;
}
.screen-waiting #main > .banner {
  position: relative;
  z-index: 4;
  max-width: 1450px;
  width: 100%;
  margin: 0 auto 16px;
}
.screen-waiting .waiting-seats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  align-items: stretch;
}
.screen-waiting .waiting-seats[data-capacity='2'] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 880px;
}
.screen-waiting .waiting-seats[data-capacity='3'] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 1240px;
}
.screen-waiting .seat {
  height: clamp(420px, calc(100dvh - 344px), 660px);
  min-height: 0;
  padding: 0;
  border: 1px solid #bf9a57;
  border-radius: 0;
  overflow: hidden;
  background: linear-gradient(150deg, #121d26c9, #080e14ed);
  box-shadow:
    inset 0 0 0 3px #101311,
    inset 0 0 0 4px #8b714783,
    0 10px 20px #0004;
  isolation: isolate;
}
.screen-waiting .seat:before,
.screen-waiting .seat:after {
  content: '';
  position: absolute;
  z-index: 4;
  pointer-events: none;
  width: 21px;
  height: 21px;
  border: 4px double #e9bd6e;
}
.screen-waiting .seat:before {
  left: 5px;
  top: 5px;
  border-right: 0;
  border-bottom: 0;
}
.screen-waiting .seat:after {
  right: 5px;
  bottom: 5px;
  border-left: 0;
  border-top: 0;
}
.screen-waiting .seat.ready {
  border-color: #c8aa6e;
  box-shadow:
    inset 0 0 0 3px #0a1515,
    inset 0 0 0 4px #8b714783,
    0 10px 20px #0004;
}
.screen-waiting .seat-label {
  position: absolute;
  top: 14px;
  left: 18px;
  right: 18px;
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  z-index: 3;
}
.screen-waiting .seat-label > span:first-child {
  margin-right: 0;
}
.screen-waiting .host-tag,
.screen-waiting .mine-tag,
.screen-waiting .bot-badge {
  padding: 4px 12px;
  line-height: 1.5;
  border: 1px solid #9d804c;
  border-radius: 2px;
  background: #151513e8;
  color: #edcc8e;
  font-size: 12px;
  font-weight: 700;
}
.screen-waiting .host-tag {
  background: linear-gradient(125deg, #d1a259, #efd49c);
  color: #241d12;
  border-color: #d2aa67;
}
.screen-waiting .mine-tag {
  background: #143c3ee6;
  color: #d4ebe0;
}
.screen-waiting .bot-badge {
  color: #e6ce9d;
}
.waiting-portrait {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.screen-waiting .seat-art {
  position: absolute;
  max-width: none;
  max-height: none;
  width: 212%;
  height: auto;
  left: -60%;
  top: 5%;
  margin: 0;
  object-fit: contain;
  object-position: center top;
  filter: drop-shadow(0 4px 8px #0005);
}
.screen-waiting .seat-art[data-character='black_fan_01'] {
  left: -56%;
  top: 6%;
}
.screen-waiting .seat-art[data-character='knight'] {
  left: -52%;
  top: 6%;
}
.screen-waiting .seat-art[data-character='archer'] {
  left: -58%;
}
.screen-waiting .seat.offline .seat-art {
  filter: saturate(0.3) brightness(0.6);
}
.waiting-portrait .image-fallback {
  position: absolute;
  inset: 22% 12% 35%;
  display: grid;
  place-items: center;
  padding: 12px;
  border: 1px solid #806e4a;
  border-radius: 3px;
  background: #172029e0;
  text-align: center;
}
.waiting-seat-info {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 70px 22px 18px;
  background: linear-gradient(transparent, #090e15df 25%, #090e15fa 65%);
  text-align: center;
}
.screen-waiting .seat h2 {
  font:
    700 clamp(22px, 1.9vw, 32px) / 1.3 'Noto Serif KR',
    Batang,
    serif;
  letter-spacing: 0.3px;
  color: #f4dfb6;
  overflow-wrap: anywhere;
}
.screen-waiting .seat .waiting-character-name {
  margin: 7px 0 12px;
  font:
    400 clamp(12px, 1.1vw, 17px) / 1.4 'Noto Serif KR',
    Batang,
    serif;
  color: #dfcdad;
}
.seat-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 29px;
}
.screen-waiting .seat .status-tag {
  display: inline;
  margin: 0;
  font-size: clamp(14px, 1.25vw, 20px);
  line-height: 1.4;
  color: #e5bc72;
}
.screen-waiting .seat.ready .status-tag {
  color: #81ddd0;
}
.readiness-mark {
  position: relative;
  display: inline-flex;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #e4b966;
  box-shadow: 0 0 8px #d2a75633;
  flex: none;
}
.ready .readiness-mark,
.all-ready .readiness-mark {
  width: 22px;
  height: 22px;
  background: #70d4c5;
  box-shadow: 0 0 10px #64c7b62e;
}
.ready .readiness-mark:after,
.all-ready .readiness-mark:after {
  content: '';
  position: absolute;
  left: 6px;
  top: 4px;
  width: 7px;
  height: 11px;
  transform: rotate(40deg);
  border: solid #092b2a;
  border-width: 0 3px 3px 0;
}
.seat-actions {
  display: flex;
  justify-content: center;
  min-height: 38px;
  margin-top: 13px;
}
.screen-waiting .seat-actions button {
  min-height: 38px;
  padding: 6px 12px;
  min-width: 0;
  width: 85%;
  background: #0c131ad9;
  border: 1px solid #a48750;
  border-radius: 2px;
  color: #ead6ae;
  font-size: 13px;
}
.screen-waiting .seat.vacant {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-style: solid;
  background: linear-gradient(140deg, #111e25cc, #080e16f2);
  padding: 22px;
  text-align: center;
}
.vacant-mark {
  color: #25343b;
  position: absolute;
  top: 12%;
  left: 15%;
  right: 15%;
  height: 43%;
  pointer-events: none;
  opacity: 0.7;
}
.vacant-mark .ui-icon {
  width: 100%;
  height: 100%;
  stroke-width: 1;
  filter: drop-shadow(0 3px 5px #000);
}
.screen-waiting .seat.vacant h3 {
  position: relative;
  margin: 20% 0 12px;
  font:
    700 27px/1.3 'Noto Serif KR',
    Batang,
    serif;
  color: #ead6b2;
}
.screen-waiting .seat.vacant p {
  position: relative;
  margin: 0 0 28px;
  color: #cfc5b3;
  font-size: 15px;
}
.screen-waiting .seat.vacant button {
  position: relative;
  min-height: 44px;
  width: 90%;
  padding: 10px;
  background: #0b151de8;
  border-color: #b08f54;
  color: #f0dab0;
  border-radius: 2px;
}
.screen-waiting .seat.vacant small {
  display: block;
  margin-top: 12px;
  color: #c2b79e;
  font-size: 12px;
  line-height: 1.5;
}
.waiting-footer {
  position: relative;
  z-index: 5;
  margin-top: auto;
  padding: 20px 0 2px;
  text-align: center;
}
.waiting-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 30px;
  margin: 0 auto 14px;
  color: #eed8ae;
  font-size: clamp(16px, 1.3vw, 21px);
  line-height: 1.5;
  font-weight: 600;
}
.waiting-summary .readiness-mark {
  flex-shrink: 0;
}
.waiting-summary > span:last-child {
  overflow-wrap: anywhere;
}
.screen-waiting .waiting-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  margin: 0;
}
.screen-waiting .waiting-actions button {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(240px, 22vw, 360px);
  min-width: 0;
  min-height: 64px;
  aspect-ratio: 4.5/1;
  padding: 10px 24px;
  color: #f5dfb7;
  font:
    700 clamp(22px, 2vw, 31px) / 1.3 'Noto Serif KR',
    Batang,
    serif;
  text-shadow: 0 2px 3px #000;
}
.waiting-plaque {
  border: 1px solid #ba9454;
  background: linear-gradient(135deg, #245254, #09272c);
}
.waiting-plaque > .button-art {
  display: none;
  position: absolute;
  z-index: -1;
  pointer-events: none;
  left: -1.4925373134%;
  top: -41.2213740458%;
  width: 102.8917910448%;
  height: 181.4249363868%;
  max-width: none;
}
.waiting-plaque.art-ready {
  border: 0;
  background: none;
}
.waiting-plaque.art-ready > .button-art {
  display: block;
}
.screen-waiting .waiting-actions .waiting-secondary {
  width: clamp(200px, 18vw, 290px);
  aspect-ratio: 4.2/1;
  min-height: 59px;
  border: 1px solid #b99a60;
  border-radius: 2px;
  background: linear-gradient(135deg, #252729, #0b131c);
  box-shadow:
    inset 0 0 0 3px #0c1016,
    inset 0 0 0 4px #9578449c;
}
.screen-waiting .waiting-actions button:disabled {
  opacity: 1;
  color: #aaa89b;
}
.waiting-plaque:disabled > .button-art {
  filter: saturate(0.1) brightness(0.65);
}
.waiting-help {
  color: #b8b1a2;
  font-size: 11px;
  line-height: 1.6;
  margin: 14px 0 0;
}
@media (min-width: 901px) and (max-width: 1250px) {
  .waiting-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px 20px;
    padding-top: 18px;
    padding-bottom: 22px;
  }
  .waiting-privacy {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
    font-size: 12px;
  }
  .waiting-heading {
    grid-column: 1;
    grid-row: 2;
    text-align: left;
  }
  .waiting-heading h1 {
    font-size: 30px;
  }
  .waiting-heading .bot-notice {
    justify-content: flex-start;
    margin-top: 8px;
    font-size: 11px;
  }
  .waiting-tools {
    grid-column: 2;
    grid-row: 1/3;
    align-self: center;
    gap: 12px;
  }
  .waiting-utility {
    --settings-size: 50px;
    gap: 10px;
  }
  .screen-waiting .waiting-seats {
    gap: 14px;
  }
  .waiting-seat-info {
    padding: 60px 12px 16px;
  }
  .screen-waiting .seat-actions button {
    width: 95%;
    font-size: 12px;
  }
  .screen-waiting .seat-label {
    left: 12px;
    top: 12px;
    right: 12px;
  }
  .screen-waiting .seat-label > span {
    font-size: 10px;
    padding: 3px 7px;
  }
}
@media (min-width: 901px) and (max-height: 820px) {
  .waiting-header {
    padding-top: 14px;
    padding-bottom: 18px;
    gap: 14px;
  }
  .waiting-heading h1 {
    font-size: 32px;
  }
  .waiting-heading .bot-notice {
    font-size: 12px;
    margin-top: 7px;
  }
  .waiting-count {
    font-size: 15px;
  }
  .waiting-utility {
    --settings-size: 48px;
    gap: 12px;
  }
  .waiting-tools {
    gap: 12px;
  }
  .waiting-tools .invite-strip {
    min-height: 44px;
    padding: 4px 10px;
  }
  .waiting-tools .invite-strip strong {
    font-size: 19px;
  }
  .waiting-leave {
    min-height: 42px;
    font-size: 13px;
    padding: 8px 16px;
  }
  .screen-waiting .seat {
    height: clamp(340px, calc(100dvh - 265px), 560px);
  }
  .screen-waiting .seat h2 {
    font-size: 24px;
  }
  .screen-waiting .seat .waiting-character-name {
    font-size: 14px;
    margin: 5px 0 8px;
  }
  .screen-waiting .seat .status-tag {
    font-size: 16px;
  }
  .waiting-seat-info {
    padding-top: 50px;
    padding-bottom: 15px;
  }
  .seat-actions {
    margin-top: 10px;
  }
  .waiting-footer {
    padding-top: 14px;
  }
  .waiting-summary {
    font-size: 16px;
    min-height: 26px;
    margin-bottom: 9px;
  }
  .waiting-help {
    margin-top: 9px;
  }
  .screen-waiting .waiting-actions button {
    min-height: 56px;
    width: 270px;
    font-size: 24px;
    aspect-ratio: 4.8/1;
  }
  .screen-waiting .waiting-actions .waiting-secondary {
    width: 230px;
    min-height: 53px;
  }
}
@media (max-width: 900px) {
  .screen-waiting {
    --waiting-margin: 18px;
    --waiting-footer-space: 186px;
  }
  .waiting-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px 12px;
    padding: 16px var(--waiting-margin) 20px;
  }
  .waiting-privacy {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    font-size: 13px;
    margin: 0;
  }
  .waiting-heading {
    grid-column: 1/-1;
    grid-row: 2;
    text-align: left;
  }
  .waiting-heading h1 {
    font-size: 30px;
  }
  .waiting-heading .bot-notice {
    justify-content: flex-start;
    gap: 8px 14px;
    margin: 8px 0 0;
    font-size: 12px;
  }
  .waiting-count {
    font-size: 16px;
  }
  .waiting-tools {
    display: contents;
  }
  .waiting-tools .invite-strip {
    grid-column: 1/-1;
    grid-row: 3;
    justify-self: start;
    gap: 16px;
    min-height: 44px;
    padding: 5px 12px;
  }
  .waiting-tools .invite-strip > span {
    font-size: 12px;
  }
  .waiting-tools .invite-strip strong {
    font-size: 22px;
    letter-spacing: 2px;
  }
  .waiting-utility {
    grid-column: 2;
    grid-row: 1;
    --settings-size: 44px;
    gap: 12px;
  }
  .waiting-leave {
    min-height: 42px;
    font-size: 13px;
    padding: 8px 14px;
  }
  .screen-waiting #main {
    padding-bottom: calc(var(--waiting-footer-space) + env(safe-area-inset-bottom));
    scroll-padding-bottom: calc(var(--waiting-footer-space) + 12px);
  }
  .screen-waiting .waiting-seats,
  .screen-waiting .waiting-seats[data-capacity='2'],
  .screen-waiting .waiting-seats[data-capacity='3'] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 720px;
    gap: 14px;
  }
  .screen-waiting .seat {
    height: clamp(310px, 60vw, 500px);
    scroll-margin-bottom: calc(var(--waiting-footer-space) + 14px);
  }
  .screen-waiting .seat-label {
    top: 10px;
    left: 12px;
    right: 12px;
    gap: 5px;
  }
  .screen-waiting .seat-label > span {
    padding: 3px 8px;
    font-size: 11px;
  }
  .screen-waiting .seat-art {
    top: 8%;
    width: 220%;
    left: -64%;
  }
  .screen-waiting .seat-art[data-character='black_fan_01'] {
    top: 9%;
    left: -60%;
  }
  .screen-waiting .seat-art[data-character='knight'] {
    top: 9%;
    left: -56%;
  }
  .screen-waiting .seat-art[data-character='archer'] {
    left: -62%;
  }
  .waiting-seat-info {
    padding: 50px 12px 14px;
  }
  .screen-waiting .seat h2 {
    font-size: 24px;
  }
  .screen-waiting .seat .waiting-character-name {
    font-size: 13px;
    margin: 6px 0 10px;
  }
  .screen-waiting .seat .status-tag {
    font-size: 15px;
  }
  .screen-waiting .seat-actions button {
    width: 100%;
    font-size: 12px;
    min-height: 40px;
    padding: 5px 7px;
  }
  .seat-actions {
    min-height: 40px;
    margin-top: 10px;
  }
  .screen-waiting .seat.vacant {
    padding: 16px;
  }
  .screen-waiting .seat.vacant h3 {
    font-size: 24px;
  }
  .screen-waiting .seat.vacant p {
    font-size: 13px;
    margin-bottom: 20px;
  }
  .screen-waiting .seat.vacant small {
    font-size: 11px;
  }
  .screen-waiting .seat.vacant button {
    width: 100%;
  }
  .waiting-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    padding: 14px max(18px, env(safe-area-inset-right)) calc(14px + env(safe-area-inset-bottom))
      max(18px, env(safe-area-inset-left));
    background: linear-gradient(#10171ef5, #0a1017fc);
    border-top: 1px solid #8e7449a6;
    box-shadow: 0 -8px 24px #0006;
    backdrop-filter: blur(10px);
  }
  .waiting-summary {
    font-size: 15px;
    min-height: 26px;
    margin-bottom: 12px;
    gap: 9px;
  }
  .waiting-summary .readiness-mark {
    width: 12px;
    height: 12px;
  }
  .all-ready .waiting-summary .readiness-mark {
    width: 20px;
    height: 20px;
  }
  .all-ready .waiting-summary .readiness-mark:after {
    left: 5px;
    top: 3px;
  }
  .screen-waiting .waiting-actions {
    gap: 12px;
  }
  .screen-waiting .waiting-actions button,
  .screen-waiting .waiting-actions .waiting-secondary {
    width: min(46%, 300px);
    min-height: 52px;
    aspect-ratio: auto;
    font-size: 23px;
    padding: 9px 12px;
  }
  .waiting-help {
    font-size: 10px;
    margin-top: 11px;
  }
  body[data-screen='waiting'] #toast {
    bottom: calc(var(--waiting-footer-space, 186px) + env(safe-area-inset-bottom));
  }
}
@media (max-width: 480px) {
  .screen-waiting {
    --waiting-margin: 12px;
  }
  .waiting-header {
    gap: 11px 10px;
    padding-top: 12px;
    padding-bottom: 16px;
  }
  .waiting-heading h1 {
    font-size: 25px;
  }
  .waiting-heading .bot-notice {
    font-size: 11px;
    gap: 7px 10px;
  }
  .waiting-count {
    font-size: 14px;
  }
  .waiting-privacy {
    font-size: 12px;
  }
  .waiting-utility {
    --settings-size: 40px;
    gap: 10px;
  }
  .waiting-leave {
    min-height: 40px;
    padding: 8px 12px;
    font-size: 12px;
  }
  .waiting-tools .invite-strip {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }
  .waiting-tools .invite-strip strong {
    font-size: 20px;
  }
  .screen-waiting .waiting-seats,
  .screen-waiting .waiting-seats[data-capacity='2'],
  .screen-waiting .waiting-seats[data-capacity='3'] {
    gap: 10px;
  }
  .screen-waiting .seat {
    height: 330px;
  }
  .screen-waiting .seat-label {
    top: 9px;
    left: 9px;
    right: 9px;
    gap: 4px;
  }
  .screen-waiting .seat-label > span {
    font-size: 10px;
    padding: 3px 7px;
  }
  .screen-waiting .waiting-seats[data-capacity='2'] .seat {
    height: max(330px, calc(100dvh - 390px));
  }
  .screen-waiting .seat-art {
    top: 12%;
    width: 245%;
    left: -78%;
  }
  .screen-waiting .seat-art[data-character='black_fan_01'] {
    top: 13%;
    left: -73%;
  }
  .screen-waiting .seat-art[data-character='knight'] {
    top: 13%;
    left: -67%;
  }
  .screen-waiting .seat-art[data-character='archer'] {
    left: -76%;
  }
  .waiting-seat-info {
    padding: 40px 9px 12px;
  }
  .screen-waiting .seat h2 {
    font-size: 21px;
    line-height: 1.35;
  }
  .screen-waiting .seat .waiting-character-name {
    font-size: 11px;
    margin: 5px 0 8px;
  }
  .screen-waiting .seat .status-tag {
    font-size: 13px;
  }
  .seat-status {
    gap: 6px;
    min-height: 24px;
  }
  .readiness-mark {
    width: 10px;
    height: 10px;
  }
  .ready .readiness-mark {
    width: 18px;
    height: 18px;
  }
  .ready .readiness-mark:after {
    left: 5px;
    top: 3px;
    width: 6px;
    height: 9px;
    border-width: 0 2px 2px 0;
  }
  .screen-waiting .seat-actions button {
    font-size: 11px;
    white-space: normal;
    line-height: 1.4;
  }
  .screen-waiting .seat.vacant {
    padding: 12px;
  }
  .screen-waiting .seat.vacant h3 {
    font-size: 21px;
  }
  .screen-waiting .seat.vacant p {
    font-size: 12px;
  }
  .screen-waiting .seat.vacant button {
    font-size: 12px;
  }
  .screen-waiting .seat.vacant small {
    font-size: 10px;
  }
  .waiting-summary {
    font-size: 13px;
  }
  .screen-waiting .waiting-actions button,
  .screen-waiting .waiting-actions .waiting-secondary {
    font-size: 20px;
    min-height: 50px;
  }
}
@media (max-width: 900px) and (max-height: 480px) {
  .screen-waiting {
    --waiting-footer-space: 146px;
  }
  .waiting-footer {
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .waiting-summary {
    margin-bottom: 5px;
    min-height: 22px;
    font-size: 13px;
  }
  .waiting-help {
    margin-top: 6px;
  }
  .screen-waiting .waiting-actions button,
  .screen-waiting .waiting-actions .waiting-secondary {
    min-height: 44px;
    font-size: 20px;
  }
}
/* Let the seats absorb changes in title/header height on ordinary desktop screens. */
@media (min-width: 901px) and (min-height: 700px) {
  .screen-waiting {
    height: 100dvh;
  }
  .screen-waiting #main {
    min-height: 0;
  }
  .screen-waiting .waiting-seats {
    flex: 1;
    min-height: 340px;
    max-height: 660px;
  }
  .screen-waiting .seat {
    height: 100%;
  }
  .waiting-footer {
    flex-shrink: 0;
  }
}
