@font-face {
  font-family: "Kyrilla";
  src: url("fonts/KyrillaSansSerif-Black.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  cursor: url("cursor/Arrow.cur"), default;
}

body {
  background: #000;
  color: #fff;
}

a,
button,
.enter-overlay,
.link,
.link img {
  cursor: url("cursor/Hand.cur"), pointer;
}

a:active,
button:active,
.enter-overlay:active,
.link:active,
.link:active img {
  cursor: url("cursor/Alternate Select.cur"), pointer;
}

input,
textarea,
select {
  cursor: url("cursor/Text.cur"), text;
}

body.is-busy,
body.is-busy * {
  cursor: url("cursor/Working.cur"), wait;
}

progress,
[role="progressbar"] {
  cursor: url("cursor/Busy.cur"), progress;
}

.help,
[title]:not(a):not(button):not(.link) {
  cursor: url("cursor/Help.cur"), help;
}

.crosshair,
[data-cursor="crosshair"] {
  cursor: url("cursor/Crosshair.cur"), crosshair;
}

.pen,
[data-cursor="pen"] {
  cursor: url("cursor/Pen.cur"), default;
}

.move,
[data-cursor="move"] {
  cursor: url("cursor/SizeAll.cur"), move;
}

.resize-ew,
[data-cursor="ew-resize"] {
  cursor: url("cursor/SizeE-W.cur"), ew-resize;
}

.resize-ns,
[data-cursor="ns-resize"] {
  cursor: url("cursor/SizeN-S.cur"), ns-resize;
}

.resize-nesw,
[data-cursor="nesw-resize"] {
  cursor: url("cursor/SizeNE-SW.cur"), nesw-resize;
}

.resize-nwse,
[data-cursor="nwse-resize"] {
  cursor: url("cursor/SizeNW-SE.cur"), nwse-resize;
}

body.is-locked {
  overflow: hidden;
}

body.is-locked .stage {
  pointer-events: none;
}

.audio-controls {
  position: fixed;
  top: clamp(0.75rem, 2.5vw, 1.25rem);
  left: clamp(0.75rem, 2.5vw, 1.25rem);
  z-index: 150;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.audio-controls__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 0.85rem;
  line-height: 1;
}

.audio-controls__volume {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.6rem;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.45);
}

.audio-controls__label {
  font-family: "Kyrilla", system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: #fff;
  user-select: none;
}

.audio-controls__slider {
  width: clamp(4.5rem, 14vw, 7rem);
  height: 4px;
  margin: 0;
  accent-color: #fff;
  cursor: url("cursor/Hand.cur"), pointer;
}

.enter-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: none;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  transition: opacity 0.45s ease;
}

.enter-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.enter-overlay__text {
  font-family: "Kyrilla", system-ui, sans-serif;
  font-size: clamp(1.25rem, 4vw, 2rem);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  user-select: none;
}

.bg-text {
  position: absolute;
  inset: 13%;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.bg-text__label {
  margin: 0;
  font-family: "Kyrilla", system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.04em;
  white-space: nowrap;
  color: #111;
  transform-origin: center center;
  user-select: none;
}

.stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 100dvh;
  padding: clamp(1.5rem, 4vw, 3rem);
  background: #000;
}

.stage__fire {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: url("images/border.gif") center / cover no-repeat;
  pointer-events: none;
}

.stage__hexagon {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: clamp(14rem, 42vw, 26rem);
  height: clamp(14rem, 42vw, 26rem);
  margin: 0;
  padding: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.stage__hexagon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.6;
  mix-blend-mode: screen;
  transform-origin: center center;
  animation: hexagon-spin 24s linear infinite;
}

@keyframes hexagon-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.stage__content {
  position: relative;
  z-index: 3;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 6vh, 3.5rem);
}

.title {
  margin: 0;
  font-family: "Kyrilla", system-ui, sans-serif;
  font-size: clamp(4.5rem, 14vw, 9rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: 0.02em;
  color: #fff;
  user-select: none;
}

.links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 3vw, 1.75rem);
}

.link {
  display: block;
  line-height: 0;
  text-decoration: none;
  transition: transform 0.15s ease;
}

button.link {
  border: none;
  padding: 0;
  background: none;
  font: inherit;
  color: inherit;
}

.link:hover {
  transform: translateY(-3px);
}

.link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
  border-radius: 4px;
}

.link img {
  display: block;
  width: auto;
  height: auto;
  max-width: none;
}

.copy-toast {
  position: fixed;
  bottom: clamp(1.5rem, 4vh, 2.5rem);
  left: 50%;
  z-index: 100;
  margin: 0;
  padding: 0.75rem 1.5rem;
  font-family: system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  color: #000;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateX(-50%) translateY(0.75rem);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
  pointer-events: none;
}

.copy-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
