@font-face {
  font-family: "ScreenSans";
  src: url("/player/screen-font.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; background: #050505; }
body { font-family: ScreenSans, Arial, Helvetica, sans-serif; color: #fff; }
.stage { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: hidden; background: #050505; transform-origin: top left; }

.video-idle { position: absolute; inset: 0; display: none; overflow: hidden; background: #050505; }
.video-idle.is-visible { display: block; }
.video-idle video {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  object-fit: cover;
  pointer-events: none;
}
.video-idle video.is-active { z-index: 1; opacity: 1; }
.video-idle video::-webkit-media-controls,
.video-idle video::-webkit-media-controls-enclosure,
.video-idle video::-webkit-media-controls-panel,
.video-idle video::-webkit-media-controls-start-playback-button,
.video-idle video::-webkit-media-controls-overlay-play-button {
  display: none !important;
  opacity: 0 !important;
  -webkit-appearance: none;
}

.idle {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #050505;
}
body.has-playlist .idle { display: none !important; }
.idle__mark {
  color: #f4ff3f;
  font-weight: 900;
  font-size: clamp(34px, 7vw, 140px);
  line-height: .75;
  letter-spacing: -.08em;
  text-align: center;
  opacity: .14;
}

.card {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: none;
  overflow: hidden;
  background: #6f37ff;
  color: #fff;
  padding: clamp(28px, 5vw, 128px);
}
.card.is-visible { display: block; }
.card__brand {
  position: relative;
  z-index: 2;
  color: #f4ff3f;
  font-weight: 900;
  font-size: clamp(25px, 4.1vw, 94px);
  letter-spacing: -.06em;
}
.card__content {
  position: absolute;
  z-index: 2;
  left: 8%;
  right: 8%;
  top: 48%;
  transform: translateY(-50%);
  text-align: center;
}
.card__eyebrow {
  margin-bottom: .55em;
  color: #f4ff3f;
  font-size: clamp(17px, 2.2vw, 52px);
  font-weight: 800;
  letter-spacing: .12em;
}
.card__name {
  margin: 0;
  font-size: clamp(52px, 10.5vw, 250px);
  line-height: .92;
  font-weight: 900;
  letter-spacing: -.07em;
  overflow-wrap: anywhere;
}
.card__message {
  max-width: 18em;
  margin: .65em auto 0;
  font-size: clamp(25px, 4.2vw, 94px);
  line-height: 1.05;
  font-weight: 650;
  overflow-wrap: anywhere;
}
.card__city {
  position: absolute;
  z-index: 2;
  right: 5%;
  bottom: 5%;
  padding: .38em .72em;
  border-radius: 999px;
  background: #f4ff3f;
  color: #171717;
  font-size: clamp(16px, 2vw, 48px);
  font-weight: 900;
}
.card__decor { position: absolute; z-index: 1; border-radius: 50%; background: #f4ff3f; }
.card__decor--one { width: 42vw; height: 42vw; right: -20vw; top: -18vw; }
.card__decor--two { width: 27vw; height: 27vw; left: -16vw; bottom: -12vw; background: #ff663d; }

.debug {
  position: absolute;
  z-index: 10;
  left: 8px;
  bottom: 8px;
  display: none;
  max-width: 80%;
  padding: 5px 8px;
  background: rgba(0,0,0,.75);
  color: #74ff74;
  font: 12px/1.3 monospace;
}
.debug.is-visible { display: block; }

body.idle-transparent, body.idle-transparent .idle { background: transparent; }
body.idle-transparent .idle__mark { display: none; }
body.idle-black .idle__mark { display: none; }

body.profile-roof .card { padding: 28px 52px; }
body.profile-roof, body.profile-roof .stage { background: #000; }
body.profile-roof .stage { width: 1320px; height: 360px; }
body.profile-roof .card__brand { font-size: 34px; }
body.profile-roof .card__content { top: 49%; }
body.profile-roof .card__eyebrow { margin-bottom: 8px; font-size: 22px; }
body.profile-roof .card__name { font-size: 86px; }
body.profile-roof .card__message { max-width: 21em; margin-top: 12px; font-size: 38px; }
body.profile-roof .card__city { right: 28px; bottom: 22px; font-size: 20px; }

@media (max-width: 300px) and (max-height: 300px) {
  .card { padding: 12px; }
  .card__brand { font-size: 14px; letter-spacing: -.04em; }
  .card__content { left: 7%; right: 7%; top: 47%; }
  .card__eyebrow { margin-bottom: 5px; font-size: 8px; letter-spacing: .08em; }
  .card__name { font-size: 28px; line-height: .9; }
  .card__message { margin-top: 8px; font-size: 13px; line-height: 1.05; }
  .card__city { right: 8px; bottom: 8px; padding: 3px 6px; font-size: 8px; }
  .debug { left: 3px; bottom: 3px; padding: 2px 3px; font-size: 6px; }
}
