#app > .heist-shell,
#app .online-game-panel > .heist-shell {
  position: relative;
  isolation: isolate;
  height: 100%;
  padding: 0;
  overflow: hidden;
  background: #101e30;
  color: #fff4dd;
}
#app .heist-shell .arcade-main { height: 100%; padding: 0; }
#app .heist-shell :is(.game-title-row, .scoreboard, .arcade-controls, .fullscreen-button, .brand-mark, .brand-dot) { display: none; }
#app .heist-shell .site-header {
  position: absolute;
  inset: max(8px, env(safe-area-inset-top)) auto auto max(10px, env(safe-area-inset-left));
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  z-index: 5;
}
#app .heist-shell .brand-button {
  font-size: 0;
  width: 44px;
  min-width: 44px;
  height: 44px;
}
#app .heist-shell .brand-button::before { content: '⌂'; font: 26px Georgia, serif; }
#app .heist-shell :is(.brand-button, .pause-game) {
  border: 1px solid #ae9d78;
  border-radius: 24px;
  background: #13243beb;
  color: #fff4dd;
}
#app .heist-shell .pause-game {
  position: absolute;
  right: max(10px, env(safe-area-inset-right));
  top: max(8px, env(safe-area-inset-top));
  min-height: 44px;
  padding: 0 12px;
  z-index: 5;
}
#app .heist-shell .arcade-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: #101e30;
}
.heist-board { position: absolute; inset: 0; }
.heist-board canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.heist-heading {
  position: absolute;
  top: max(12px, env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 170px);
  text-align: center;
  padding: 5px 12px 7px;
  border-radius: 15px;
  background: #13243be8;
}
.heist-heading strong { display: block; font: 600 clamp(13px, 2.5vw, 26px) Georgia, serif; }
.heist-heading small { display: block; margin-top: 3px; font-size: 11px; }
.heist-seat {
  position: absolute;
  display: grid;
  align-content: center;
  justify-items: center;
  width: clamp(84px, 22vmin, 158px);
  min-height: 74px;
  padding: 4px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: var(--seat);
  font: 700 clamp(11px, 1.65vmin, 15px)/1.3 system-ui;
  text-align: center;
  touch-action: none;
}
/* Include the tilted fingers and cuff beyond the transparent button box. */
button.heist-seat::before {
  content: '';
  position: absolute;
  inset: -7px -11px;
}
.heist-hand {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1.19;
}
.heist-seat-label {
  position: relative;
  background: #142439ef;
  color: var(--seat);
  padding: 4px 7px;
  border-radius: 10px;
  white-space: nowrap;
}
.heist-seat:is(.near-left, .far-left) {
  left: max(env(safe-area-inset-left), calc(50% - clamp(138px, 38vmin, 278px)));
}
.heist-seat:is(.near-right, .far-right) {
  right: max(env(safe-area-inset-right), calc(50% - clamp(138px, 38vmin, 278px)));
}
.heist-seat:is(.near-left, .near-right) { top: calc(54% + clamp(24px, 8vmin, 66px)); }
.heist-seat:is(.far-left, .far-right) {
  top: max(calc(env(safe-area-inset-top) + 52px), calc(54% - clamp(110px, 29vmin, 210px)));
}
.heist-seat.is-frozen .heist-seat-label { color: #d4ecff; }
.heist-seat.is-early:not(.is-frozen) .heist-seat-label { color: #fff4dd; }
.heist-seat:is(.is-winner, .is-held) .heist-seat-label { background: var(--seat); color: #13243b; }
.heist-seat:focus-visible { outline: 3px solid white; outline-offset: 3px; }
#app .heist-shell .arcade-status {
  position: absolute;
  left: 50%;
  bottom: max(22px, calc(env(safe-area-inset-bottom) + 10px));
  transform: translateX(-50%);
  width: max-content;
  max-width: min(45%, 280px);
  padding: 7px 12px;
  border-radius: 16px;
  background: #142439f2;
  color: #fff4dd;
  text-align: center;
  font: 650 clamp(12px, 1.65vw, 18px)/1.3 system-ui;
}
#app .heist-shell [data-heist-phase="open"] .arcade-status { background: #f6df9e; color: #182333; }
#app .heist-shell .arcade-overlay { z-index: 8; }
.heist-freeze-mark {
  display: none;
  position: absolute;
  top: 24%;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  background: #172a40;
  color: #d4ecff;
  font: 700 22px/28px system-ui;
  pointer-events: none;
}
.heist-seat.is-frozen .heist-freeze-mark { display: block; }
.heist-mute {
  position: absolute;
  z-index: 4;
  left: max(64px, calc(env(safe-area-inset-left) + 52px));
  top: max(8px, env(safe-area-inset-top));
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid #ae9d78;
  border-radius: 24px;
  background: #13243beb;
  color: #fff4dd;
  font: 600 11px system-ui;
}
@media (max-aspect-ratio: 1/1) {
  .heist-mute {
    left: max(10px, env(safe-area-inset-left));
    top: max(56px, calc(env(safe-area-inset-top) + 48px));
  }
}

.heist-seat.is-penalized .heist-seat-label {
  background: #801a30;
  color: #fff4dd;
}
