:where(.zg-game-options:not(.zg-game-options--unstyled)) {
  --zg-options-overlay: rgba(7, 13, 28, 0.72);
  --zg-options-panel: linear-gradient(155deg, #17243e, #0c1427);
  --zg-options-row: rgba(255, 255, 255, 0.08);
  --zg-options-row-hover: rgba(255, 255, 255, 0.14);
  --zg-options-text: #f8fafc;
  --zg-options-muted: #aab8d1;
  --zg-options-accent: #66c7ff;
  --zg-options-border: rgba(102, 199, 255, 0.42);
  --zg-options-radius: 24px;
  position: absolute;
  inset: 0;
  z-index: 80;
  color: var(--zg-options-text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

:where(.zg-game-options--modal:not(.zg-game-options--unstyled)) {
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 56px);
  background: var(--zg-options-overlay);
  backdrop-filter: blur(8px);
}

:where(.zg-game-options--page:not(.zg-game-options--unstyled)) {
  position: relative;
  display: grid;
  place-items: center;
}

:where(.zg-game-options:not(.zg-game-options--unstyled)) .zg-game-options__panel {
  width: min(900px, 100%);
  max-height: 100%;
  overflow: auto;
  padding: clamp(22px, 4vw, 44px);
  border: 2px solid var(--zg-options-border);
  border-radius: var(--zg-options-radius);
  background: var(--zg-options-panel);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.48), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

:where(.zg-game-options:not(.zg-game-options--unstyled)) .zg-game-options__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: clamp(22px, 4vw, 40px);
}

:where(.zg-game-options:not(.zg-game-options--unstyled)) .zg-game-options__title,
:where(.zg-game-options:not(.zg-game-options--unstyled)) .zg-game-options__subtitle {
  margin: 0;
}

:where(.zg-game-options:not(.zg-game-options--unstyled)) .zg-game-options__title {
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

:where(.zg-game-options:not(.zg-game-options--unstyled)) .zg-game-options__subtitle {
  margin-top: 8px;
  color: var(--zg-options-muted);
  font-size: 14px;
}

:where(.zg-game-options:not(.zg-game-options--unstyled)) .zg-game-options__close {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--zg-options-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  cursor: pointer;
}

:where(.zg-game-options:not(.zg-game-options--unstyled)) .zg-game-options__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 34px);
}

:where(.zg-game-options:not(.zg-game-options--unstyled)) .zg-game-options__column {
  display: grid;
  align-content: start;
  gap: 12px;
}

:where(.zg-game-options:not(.zg-game-options--unstyled)) .zg-game-options__row {
  position: relative;
  width: 100%;
  min-height: 66px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border: 1px solid var(--zg-options-border);
  border-radius: 14px;
  background: var(--zg-options-row);
  color: var(--zg-options-text);
  font: inherit;
  text-align: left;
}

:where(.zg-game-options:not(.zg-game-options--unstyled)) button.zg-game-options__row {
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

:where(.zg-game-options:not(.zg-game-options--unstyled)) button.zg-game-options__row:hover:not(:disabled),
:where(.zg-game-options:not(.zg-game-options--unstyled)) button.zg-game-options__row:focus-visible:not(:disabled) {
  transform: translateY(-2px);
  border-color: var(--zg-options-accent);
  background: var(--zg-options-row-hover);
  outline: none;
}

:where(.zg-game-options:not(.zg-game-options--unstyled)) .zg-game-options__label {
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 750;
}

:where(.zg-game-options:not(.zg-game-options--unstyled)) .zg-game-options__value {
  color: var(--zg-options-accent);
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 850;
}

:where(.zg-game-options:not(.zg-game-options--unstyled)) .zg-game-options__description {
  position: absolute;
  left: 16px;
  right: 16px;
  top: auto;
  bottom: calc(100% + 7px);
  z-index: 3;
  display: none;
  padding: 8px 10px;
  border: 1px solid var(--zg-options-border);
  border-radius: 9px;
  background: #091225;
  color: var(--zg-options-muted);
  font-size: 12px;
  line-height: 1.3;
  pointer-events: none;
}

:where(.zg-game-options:not(.zg-game-options--unstyled)) .zg-game-options__row:hover .zg-game-options__description,
:where(.zg-game-options:not(.zg-game-options--unstyled)) .zg-game-options__row:focus-visible .zg-game-options__description {
  display: block;
}

:where(.zg-game-options:not(.zg-game-options--unstyled)) .zg-game-options__footer {
  display: flex;
  justify-content: center;
  margin-top: clamp(24px, 4vw, 42px);
}

:where(.zg-game-options:not(.zg-game-options--unstyled)) .zg-game-options__confirm {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 30px;
  border: 1px solid var(--zg-options-border);
  border-radius: 999px;
  background: var(--zg-options-accent);
  color: #071325;
  font: inherit;
  font-size: 18px;
  font-weight: 850;
  cursor: pointer;
}

@media (max-width: 720px) {
  :where(.zg-game-options:not(.zg-game-options--unstyled)) .zg-game-options__grid {
    grid-template-columns: 1fr;
  }

  :where(.zg-game-options--modal:not(.zg-game-options--unstyled)) {
    padding: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  :where(.zg-game-options:not(.zg-game-options--unstyled)) button.zg-game-options__row {
    transition: none;
  }
}
