/* Shared look for every event: tokens follow the host site, so overlays read as part of the page. */

:root[data-ne-site="youtube"] {
  --ne-surface: #212121;
  --ne-surface-raised: #282828;
  --ne-fill: rgb(255 255 255 / 0.1);
  --ne-fill-hover: rgb(255 255 255 / 0.2);
  --ne-text: #f1f1f1;
  --ne-text-secondary: #aaa;
  --ne-accent: #f1f1f1;
  --ne-on-accent: #0f0f0f;
  --ne-brand: #f00;
  --ne-radius: 12px;
  --ne-radius-control: 18px;
  --ne-control-height: 36px;
  --ne-font: Roboto, Arial, sans-serif;
  --ne-font-display: "YouTube Sans", Roboto, sans-serif;
}

:root[data-ne-site="twitch"] {
  --ne-surface: #18181b;
  --ne-surface-raised: #1f1f23;
  --ne-fill: rgb(83 83 95 / 0.38);
  --ne-fill-hover: rgb(83 83 95 / 0.55);
  --ne-text: #efeff1;
  --ne-text-secondary: #adadb8;
  --ne-accent: #9147ff;
  --ne-on-accent: #fff;
  --ne-brand: #9147ff;
  --ne-radius: 8px;
  --ne-radius-control: 4px;
  --ne-control-height: 30px;
  --ne-font: Inter, Roobert, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ne-font-display: Roobert, Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

:root {
  --ne-ease-out: cubic-bezier(0.2, 0, 0, 1);
}

.ne-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: var(--ne-control-height);
  padding: 0 16px;
  border: 0;
  border-radius: var(--ne-radius-control);
  background: var(--ne-fill);
  color: var(--ne-text);
  font: 500 14px/20px var(--ne-font);
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 150ms var(--ne-ease-out),
    filter 150ms var(--ne-ease-out),
    transform 120ms var(--ne-ease-out);
  -webkit-tap-highlight-color: transparent;
}

.ne-button:hover {
  background: var(--ne-fill-hover);
}

.ne-button:active {
  transform: scale(0.97);
}

.ne-button:focus-visible {
  outline: 2px solid var(--ne-text);
  outline-offset: 2px;
}

.ne-button[data-variant="primary"] {
  background: var(--ne-accent);
  color: var(--ne-on-accent);
}

.ne-button[data-variant="primary"]:hover {
  filter: brightness(0.9);
}

.ne-button[disabled] {
  opacity: 0.5;
  pointer-events: none;
}

/* Dialog */

.ne-dialog {
  box-sizing: border-box;
  width: min(480px, calc(100vw - 32px));
  max-height: calc(100dvh - 48px);
  margin: auto;
  padding: 24px;
  border: 0;
  border-radius: var(--ne-radius);
  background: var(--ne-surface);
  color: var(--ne-text);
  font: 400 14px/20px var(--ne-font);
  overflow: auto;
  overscroll-behavior: contain;
  opacity: 0;
  transform: scale(0.96);
  transition:
    opacity 130ms var(--ne-ease-out),
    transform 130ms var(--ne-ease-out);
}

.ne-dialog[data-size="wide"] {
  width: min(960px, calc(100vw - 32px));
}

.ne-dialog[data-size="plain"] {
  width: auto;
  max-width: calc(100vw - 32px);
  padding: 0;
  background: transparent;
  overflow: visible;
}

.ne-dialog::backdrop {
  background: rgb(0 0 0 / 0);
  transition: background-color 130ms var(--ne-ease-out);
}

.ne-dialog[data-open] {
  opacity: 1;
  transform: none;
  transition-duration: 200ms;
}

.ne-dialog[data-open]::backdrop {
  background: rgb(0 0 0 / 0.6);
  transition-duration: 200ms;
}

.ne-dialog-title {
  margin: 0 40px 16px 0;
  font: 700 20px/28px var(--ne-font-display);
  letter-spacing: 0;
}

/* Above full-bleed content, which comes later in the dialog and would otherwise cover it. */
.ne-dialog-close {
  position: absolute;
  z-index: 10;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ne-text);
  cursor: pointer;
  transition: background-color 150ms var(--ne-ease-out);
}

.ne-dialog-close:hover {
  background: var(--ne-fill);
}

.ne-dialog[data-size="plain"] .ne-dialog-close {
  position: fixed;
  top: 16px;
  right: 16px;
  background: rgb(0 0 0 / 0.5);
  backdrop-filter: blur(8px);
}

@media (max-width: 600px) {
  .ne-dialog:not([data-size="plain"]) {
    width: 100vw;
    max-width: 100vw;
    max-height: 90dvh;
    margin: auto 0 0;
    padding: 20px 16px calc(16px + env(safe-area-inset-bottom));
    border-radius: var(--ne-radius) var(--ne-radius) 0 0;
    transform: translateY(24px);
  }

  .ne-dialog:not([data-size="plain"])[data-open] {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ne-button,
  .ne-dialog,
  .ne-dialog::backdrop {
    transition: none;
  }
}

.ne-bait-shield {
  position: absolute;
  z-index: 19;
  inset: 0;
  cursor: pointer;
}

.ne-bait {
  position: absolute;
  z-index: 20;
  top: 9%;
  left: 7%;
  width: clamp(200px, 62%, 360px);
  rotate: -4deg;
  cursor: pointer;
  filter: drop-shadow(0 1px 2px rgb(0 0 0 / 0.8));
}

.ne-ds-cat-window {
  position: absolute;
  z-index: 4;
  overflow: hidden;
  pointer-events: none;
}

.ne-ds-cat {
  position: absolute;
}

.ne-ds-cat-body {
  display: block;
  width: 100%;
  height: 100%;
  animation:
    ne-ds-cat-in 1100ms cubic-bezier(0.2, 0, 0, 1) var(--delay) backwards,
    ne-ds-cat-breathe 2600ms ease-in-out infinite alternate;
  transform-origin: 50% 100%;
  will-change: transform;
}

@keyframes ne-ds-cat-in {
  from {
    translate: 0 102%;
  }
}

@keyframes ne-ds-cat-breathe {
  to {
    transform: scale(1.015, 1.03);
  }
}

.ne-ds-cat[data-leaving] .ne-ds-cat-body {
  translate: 0 104%;
  transition: translate 600ms cubic-bezier(0.5, 0, 0.9, 0.4);
}


@font-face {
  font-family: "NE PT Serif";
  src: url("/events/deepins-screamer/serif-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "NE PT Serif";
  src: url("/events/deepins-screamer/serif-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+2000-206F;
}

.ne-ds {
  position: fixed;
  inset: 0;
  z-index: 2147482000;
  overflow: hidden;
  color: #fff;
  font: 400 14px/20px var(--ne-font);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.ne-ds[data-scene="scream"] {
  cursor: none;
}

.ne-ds [hidden] {
  display: none;
}

.ne-ds-close {
  position: absolute;
  z-index: 30;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 9000px;
  background: rgb(0 0 0 / 0.55);
  color: #fff;
  cursor: pointer;
  transition:
    opacity 250ms var(--ne-ease-out),
    background-color 150ms var(--ne-ease-out);
}

.ne-ds-close:hover {
  background: rgb(0 0 0 / 0.8);
}

.ne-ds:is([data-scene="intro"], [data-scene="scream"]) .ne-ds-close {
  opacity: 0;
}

.ne-ds .ne-ds-close:hover {
  opacity: 1;
}

.ne-ds-dancers {
  position: fixed;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

body > .ne-ds-dancers {
  z-index: 1500;
}

.ne-ds-title {
  display: grid;
  place-items: center;
  padding: 0 5vw;
}

.ne-ds-title-text {
  margin: 0;
  padding: 0;
  color: #efe9e6;
  font: 400 clamp(32px, 5.6vw, 92px) / 1.15 "NE PT Serif", serif;
  text-align: center;
  text-wrap: balance;
}

.ne-ds-over {
  position: absolute;
  z-index: 5;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 0 5vw;
  pointer-events: none;
  text-shadow: 0 2px 6px #000, 0 0 28px #000;
}

.ne-ds-scream {
  position: absolute;
  inset: 0;
  z-index: 21;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ne-ds-black {
  position: absolute;
  inset: 0;
  z-index: 20;
  background: #000;
}

.ne-ds[data-scene="leaving"] {
  pointer-events: none;
  animation: ne-ds-out 500ms var(--ne-ease-out) both;
}

@keyframes ne-ds-out {
  to {
    opacity: 0;
  }
}
