.os-game-surface,
.os-game-frames,
.os-arena {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  position: relative;
}
.os-game-surface {
  background: #101527;
}
.os-game-cell {
  position: absolute;
  overflow: hidden;
  background: radial-gradient(ellipse at center, #26334d, #101527 75%);
}
.os-game-cell iframe {
  position: absolute;
  display: block;
  border: 0;
}
.os-game-view-name {
  position: absolute;
  top: max(6px, 1vmin);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  max-width: 85%;
  padding: 0.3em 0.7em;
  border: 1px solid #2229;
  border-radius: 999px;
  color: #111;
  font-size: max(14px, 1.5vmin);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  box-shadow: 1px 2px 3px #0005;
}
.os-remote-view-note {
  display: grid;
  place-items: center;
  height: 100%;
  margin: 0;
  padding: 8vmin;
  color: #fff;
  text-align: center;
  font-size: max(20px, 3vmin);
  line-height: 1.5;
}
.os-game-menu {
  position: absolute;
  top: max(8px, 1.5vmin);
  right: max(8px, 1.5vmin);
  z-index: 4;
  min-height: max(36px, 4vmin);
  padding: 0.4em 0.9em;
  color: #fff;
  background: #112449d9;
  border: 1px solid #ffffff70;
  border-radius: 5px;
  font-size: max(16px, 1.5vmin);
  box-shadow: 1px 2px 4px #0005;
}
.os-game-menu:hover {
  background: #1f4a8b;
}
.os-game-paused {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: #0a102e88;
  color: white;
  display: grid;
  place-items: center;
  font-size: max(30px, 7vmin);
  font-weight: 700;
  pointer-events: none;
  text-shadow: 2px 3px #000;
}
.os-game-shield {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: transparent;
}
.os-game-edge {
  position: absolute;
  z-index: 990;
  bottom: 0;
  left: 0;
  right: 0;
  height: 8px;
}
#os[data-game-open="true"]:not([data-game-taskbar="true"]) .os-taskbar {
  transform: translateY(115%);
  pointer-events: none;
}
#os[data-game-open="true"] .os-taskbar {
  transition: transform 120ms;
}
.os-arena-canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.os-arena-hud {
  position: absolute;
  top: max(12px, 2vmin);
  left: max(12px, 2vmin);
  right: max(12px, 2vmin);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1vmin;
  padding-right: max(120px, 14vmin);
  pointer-events: none;
}
.os-arena-heading {
  display: flex;
  align-items: baseline;
  gap: 1.2vmin;
  flex-wrap: wrap;
  color: #182947;
}
.os-arena-heading strong {
  font-size: max(22px, 3.2vmin);
  text-shadow: 0 1px #fff;
}
.os-arena-heading span {
  font-size: max(16px, 1.5vmin);
  background: #ffffffc9;
  border-radius: 4px;
  padding: 0.2em 0.5em;
}
.os-arena-timer {
  padding: 0.3em 0.6em;
  font-size: max(20px, 3vmin);
  color: #182947;
  border-radius: 5px;
  background: #ffffffdc;
  align-self: start;
  white-space: nowrap;
}
.os-arena-scores {
  grid-column: 1 / -1;
  display: flex;
  gap: 1vmin;
  flex-wrap: wrap;
}
.os-arena-score {
  display: flex;
  gap: 1.2em;
  align-items: center;
  padding: 0.4em 0.7em;
  color: #111;
  background: #fffffff0;
  border: 2px solid var(--seat);
  border-radius: 999px;
  font-size: max(16px, 1.5vmin);
  min-width: 0;
  max-width: 100%;
  box-shadow: 1px 2px 3px #0002;
}
.os-arena-score span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.os-arena-instruction {
  position: absolute;
  bottom: max(12px, 2vmin);
  left: 50%;
  transform: translateX(-50%);
  max-width: 80%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2em;
  padding: 0.7em 1.2em;
  color: #182947;
  background: #ffffffdf;
  border: 1px solid #ffffff;
  border-radius: 8px;
  text-align: center;
  pointer-events: none;
  font-size: max(16px, 1.5vmin);
  box-shadow: 1px 2px 6px #0003;
}
.os-arena-instruction strong {
  font-size: max(18px, 2vmin);
}
.os-arena-instruction p {
  margin: 0.2em 0 0;
}
.os-arena-countdown {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: white;
  font-size: max(80px, 22vmin);
  font-weight: 700;
  text-shadow:
    0 6px #183f7b,
    0 0 30px #183f7b;
  pointer-events: none;
}
.os-loading {
  display: flex;
  flex-direction: column;
  gap: calc(10 * var(--px));
}
.os-loading-art {
  height: calc(60 * var(--px));
  background: var(--bg);
  border-radius: 4px;
  overflow: hidden;
}
.os-loading-art svg {
  width: 100%;
  height: 100%;
  display: block;
}
.os-loading h2 {
  font-size: calc(20 * var(--px));
  line-height: 1.3;
  margin: 0;
  color: #18448d;
}
.os-loading p {
  font-size: calc(14 * var(--px));
  margin: 0;
}
.os-loading-progress {
  position: relative;
  overflow: hidden;
  height: calc(18 * var(--px));
  border: 1px solid #456b99;
  border-radius: 3px;
  background: #fff;
}
.os-loading-progress span {
  position: absolute;
  width: 25%;
  height: 100%;
  background: repeating-linear-gradient(
    90deg,
    #3f8af0 0,
    #3f8af0 20%,
    #bad7ff 20%,
    #bad7ff 25%
  );
  animation: os-loading 1.2s linear infinite;
}
@keyframes os-loading {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(400%);
  }
}
.os-loading-actions {
  display: flex;
  justify-content: flex-end;
  gap: calc(10 * var(--px));
}
.os-window-body.os-results-body {
  padding: 0;
  overflow: hidden;
}
.os-results {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}
.os-results-scroll {
  padding: calc(18 * var(--px));
  overflow: auto;
  overscroll-behavior: contain;
  flex: 1;
  min-height: 0;
  background: linear-gradient(#fffdf0, #fff);
}
.os-results h2 {
  margin: 0 0 calc(6 * var(--px));
  font-size: calc(28 * var(--px));
  color: #144c9e;
  line-height: 1.2;
}
.os-result-subtitle {
  margin: 0 0 calc(14 * var(--px));
  font-size: calc(16 * var(--px));
}
.os-result-rankings {
  list-style: none;
  padding: 0;
  margin: 0;
}
.os-result-rankings li {
  display: flex;
  align-items: center;
  gap: calc(12 * var(--px));
  padding: calc(10 * var(--px)) 0;
  border-bottom: 1px solid #d8dfeb;
  min-width: 0;
}
.os-result-rankings li[data-outcome="forfeit"],
.os-result-rankings li[data-outcome="removed"] {
  color: #64646e;
}
.os-result-seat {
  flex: none;
  font-size: calc(28 * var(--px));
  color: var(--seat);
  text-shadow:
    0 1px #333,
    1px 0 #333,
    0 -1px #333,
    -1px 0 #333;
}
.os-result-name {
  flex: 1;
  min-width: 0;
}
.os-result-name strong {
  display: block;
  font-size: calc(18 * var(--px));
  overflow-wrap: anywhere;
}
.os-result-name small {
  display: block;
  color: #4a4a58;
  font-size: calc(14 * var(--px));
  line-height: 1.4;
}
.os-result-score {
  flex: none;
  text-align: right;
  max-width: 40%;
  overflow-wrap: anywhere;
}
.os-result-score strong {
  display: block;
  font-size: calc(22 * var(--px));
}
.os-result-score small {
  display: block;
  font-size: calc(14 * var(--px));
}
.os-result-standings,
.os-result-verification,
.os-result-countdown {
  margin: calc(12 * var(--px)) 0 0;
  font-size: calc(14 * var(--px));
  line-height: 1.5;
}
.os-result-verification {
  padding: calc(8 * var(--px));
  background: #eaf3ff;
  border: 1px solid #b5cdea;
}
.os-result-countdown {
  color: #375570;
}
.os-result-actions {
  flex: none;
  padding: calc(10 * var(--px));
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(8 * var(--px));
  border-top: 1px solid #bbb;
}
.os-result-actions .xp-button {
  padding-left: calc(10 * var(--px));
  padding-right: calc(10 * var(--px));
}
.os-result-start-reason {
  margin: 0;
  padding: calc(8 * var(--px)) calc(12 * var(--px));
  font-size: calc(14 * var(--px));
  background: #fff6d5;
}
@media (max-height: 500px) {
  .os-arena-instruction {
    padding: 0.4em 0.7em;
  }
  .os-arena-instruction p {
    display: none;
  }
  .os-arena-heading span {
    display: none;
  }
}
@media (max-width: 600px) {
  .os-arena-hud {
    grid-template-columns: 1fr;
    padding-right: 0;
  }
  .os-arena-heading {
    padding-right: 120px;
  }
  .os-arena-timer {
    justify-self: start;
  }
  .os-arena-instruction {
    max-width: 95%;
    width: max-content;
  }
}

@media (max-height: 520px) {
  .os-arena-instruction {
    max-width: calc(100% - 24px);
    width: max-content;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.2em 0.6em;
    padding: 0.35em 0.7em;
  }
  .os-arena-hud {
    gap: 4px;
  }
  .os-arena-score {
    padding: 0.2em 0.5em;
  }
}
