.arcade-topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.arcade-fullscreen-button {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 243, 207, 0.24);
  border-radius: 12px;
  color: inherit;
  background: rgba(7, 16, 15, 0.76);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  font: 800 0.82rem/1 system-ui, sans-serif;
  letter-spacing: 0;
  white-space: nowrap;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease, transform 150ms ease;
}

button[data-arcade-fullscreen] {
  min-width: 44px;
  min-height: 44px;
}

.arcade-fullscreen-button:hover:not(:disabled),
.arcade-fullscreen-button:focus-visible {
  border-color: #54f3c2;
  color: #54f3c2;
  background: rgba(84, 243, 194, 0.1);
}

.arcade-fullscreen-button:focus-visible {
  outline: 3px solid #c8ff36;
  outline-offset: 3px;
}

.arcade-fullscreen-button[aria-pressed="true"] {
  border-color: #ffc856;
  color: #ffc856;
}

.arcade-fullscreen-button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.arcade-fullscreen-icon {
  display: inline-grid;
  width: 1.25em;
  place-items: center;
  font-size: 1.2rem;
  line-height: 1;
}

html:fullscreen,
html:-webkit-full-screen,
html:fullscreen body,
html:-webkit-full-screen body,
html.arcade-pseudo-fullscreen,
html.arcade-pseudo-fullscreen body {
  width: 100%;
  min-height: 100%;
  background: #07100f;
}

html:fullscreen .game-shell,
html:-webkit-full-screen .game-shell,
html.arcade-pseudo-fullscreen .game-shell {
  width: 100%;
  max-width: none;
  min-height: 100dvh;
}

html.arcade-pseudo-fullscreen,
html.arcade-pseudo-fullscreen body {
  height: 100%;
  overflow: auto;
}

html.arcade-pseudo-fullscreen body {
  position: fixed;
  z-index: 2147483647;
  inset: 0;
}

@media (max-width: 620px) {
  .arcade-fullscreen-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .arcade-fullscreen-button {
    transition: none;
  }
}
