.madnet-ski-game {
  --ski-ink: #101010;
  --ski-body: #3b3b3b;
  --ski-muted: #777777;
  --ski-line: #e1e1e1;
  --ski-grey: #f5f5f5;
  --ski-snow: #fbfbfb;
  --ski-white: #ffffff;
  --ski-slope: #b8dcec;
  position: relative;
  width: 100%;
  min-height: 340px;
  max-height: 680px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--ski-line);
  border-radius: 8px;
  background: var(--ski-snow);
  isolation: isolate;
}

.madnet-ski-game::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  width: 72px;
  height: 6px;
  background: var(--ski-slope);
  pointer-events: none;
}

.madnet-ski-game__preview,
.madnet-ski-game__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.madnet-ski-game__preview {
  display: block;
  object-fit: contain;
  object-position: center;
  padding: clamp(10px, 1.5vw, 22px);
  background: var(--ski-snow);
}

.madnet-ski-game__start {
  position: absolute !important;
  z-index: 3 !important;
  left: 50% !important;
  top: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 158px !important;
  min-height: 54px !important;
  padding: 17px 28px !important;
  transform: translate(-50%, -50%) !important;
  border: 2px solid var(--ski-ink) !important;
  border-radius: 0 !important;
  background: var(--ski-ink) !important;
  color: var(--ski-white) !important;
  font-family: "Syne", Arial, sans-serif !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1.5 !important;
  letter-spacing: -0.02em !important;
  text-transform: uppercase !important;
  text-indent: 0 !important;
  text-shadow: none !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  cursor: pointer !important;
  box-shadow: none !important;
  transition: color .3s ease-out, background-color .3s ease-out !important;
}


.madnet-ski-game__start:hover {
  background: var(--ski-ink) !important;
  color: var(--ski-white) !important;
}

.madnet-ski-game__start:focus-visible {
  outline: 2px solid var(--ski-ink) !important;
  outline-offset: 4px !important;
}

.madnet-ski-game__start:disabled {
  cursor: wait !important;
  opacity: .72;
}

.madnet-ski-game__start::before,
.madnet-ski-game__start::after {
  content: none !important;
  display: none !important;
}

.madnet-ski-game.is-loaded::before,
.madnet-ski-game.is-loaded .madnet-ski-game__preview,
.madnet-ski-game.is-loaded .madnet-ski-game__start {
  display: none;
}

@media (max-width: 680px) {
  .madnet-ski-game {
    height: clamp(430px, 58svh, 520px) !important;
    min-height: 430px;
    max-height: 520px !important;
    aspect-ratio: auto !important;
    border-radius: 8px;
  }

  .madnet-ski-game__preview {
    padding: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .madnet-ski-game__start {
    transition: none !important;
  }
}
