.strike {
  --strike-bordo-rgb: var(--mob-magenta-rgb, 255, 56, 219);
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-top) + 100);
  overflow: hidden;
  background: var(--ink-900, #06060B);
  touch-action: none;
  overscroll-behavior: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

.strike:has(.strike__tela[data-tema="halloween"]) {
  --strike-bordo-rgb: 255, 122, 26;
  background: #0B0414;
}

.strike[hidden] {
  display: none;
}

html.is-strike,
html.is-strike body {
  overflow: hidden;
  overscroll-behavior: none;
}

.strike__tela {
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: pointer;
}

.strike[data-stato="menu"] .strike__tela,
.strike[data-stato="pausa"] .strike__tela,
.strike[data-stato="lobby"] .strike__tela,
.strike[data-stato="fine"] .strike__tela {
  cursor: default;
}

.strike__comandi {
  position: absolute;
  inset: 0;
  z-index: calc(var(--z-top) + 101);
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 8px;
  padding: calc(14px + env(safe-area-inset-top, 0px)) calc(16px + env(safe-area-inset-right, 0px)) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
  pointer-events: none;
}

.strike__tasto {
  pointer-events: auto;
  display: inline-grid;
  place-items: center;
  box-sizing: border-box;
  min-width: 72px;
  height: 36px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid rgba(var(--strike-bordo-rgb), .5);
  border-radius: 999px;
  background: rgba(var(--ink-900-rgb, 6, 6, 11), .86);
  box-shadow: 0 0 18px -8px rgba(var(--strike-bordo-rgb), .8);
  color: #fff;
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
  transition: border-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.strike__tasto:hover,
.strike__tasto:focus-visible {
  border-color: rgba(var(--strike-bordo-rgb), .95);
  box-shadow: 0 0 20px -4px rgba(var(--strike-bordo-rgb), .9);
  outline: none;
}

.strike__tasto:active {
  transform: scale(.95);
}

.strike__tasto--audio[aria-pressed="true"],
.strike__tasto--muto[aria-pressed="true"] {
  border-color: rgba(255, 255, 255, .25);
  color: rgba(255, 255, 255, .55);
  text-decoration: line-through;
}

.strike__tasto--pausa {
  display: none;
}

.strike[data-stato="pronto"] .strike__tasto--pausa,
.strike[data-stato="carica"] .strike__tasto--pausa,
.strike[data-stato="corsa"] .strike__tasto--pausa,
.strike[data-stato="pausa"] .strike__tasto--pausa {
  display: inline-grid;
}

.strike[data-rete="1"] .strike__tasto--pausa {
  display: none;
}

.strike.is-tocco .strike__comandi {
  padding-top: calc(12px + env(safe-area-inset-top, 0px));
  padding-right: calc(12px + env(safe-area-inset-right, 0px));
}

.strike.is-tocco .strike__tasto {
  min-width: 64px;
  height: 44px;
  padding: 0 12px;
  font-size: .8rem;
}

@media (hover: none) and (pointer: coarse) {
  .strike__comandi {
    padding-top: calc(12px + env(safe-area-inset-top, 0px));
    padding-right: calc(12px + env(safe-area-inset-right, 0px));
  }

  .strike__tasto {
    min-width: 64px;
    height: 44px;
    padding: 0 12px;
    font-size: .8rem;
  }
}

@media (max-width: 640px) {
  .strike[data-stato="menu"] .strike__comandi,
  .strike[data-stato="fine"] .strike__comandi {
    display: none;
  }
}

.strike[data-stato="lobby"] .strike__comandi {
  display: none;
}

.strike > :not(.strike__tela):not(.strike__comandi) {
  z-index: calc(var(--z-top) + 102);
}

@media (prefers-reduced-motion: reduce) {
  .strike__tasto {
    transition: none;
  }

  .strike__tasto:active {
    transform: none;
  }
}
