html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: 'Dongle', sans-serif;
  background: #050816;
}

body {
  min-height: 100vh;
}

:root {
  --color-bg1: rgb(108, 0, 162);
  --color-bg2: rgb(0, 17, 82);
  --color1: 18, 113, 255;
  --color2: 221, 74, 255;
  --color3: 100, 220, 255;
  --color4: 200, 50, 50;
  --color5: 180, 180, 50;
  --color-interactive: 140, 100, 255;
  --circle-size: 80%;
  --blend-mode: hard-light;
  --blur-strength: 40px;
  --duration-g1: 30s;
  --duration-g2: 20s;
  --duration-g3: 40s;
  --duration-g4: 40s;
  --duration-g5: 20s;
  --panel-surface: rgba(7, 10, 24, 0.78);
  --panel-border: rgba(255, 255, 255, 0.16);
  --panel-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --panel-text: rgba(255, 255, 255, 0.92);
  --panel-muted: rgba(255, 255, 255, 0.66);
}

* {
  box-sizing: border-box;
}

.text-container {
  z-index: 100;
  width: 100vw;
  height: 100vh;
  display: flex;
  position: absolute;
  top: 0;
  left: 0;
  justify-content: center;
  align-items: center;
  font-size: 96px;
  color: white;
  opacity: 0.8;
  user-select: none;
  pointer-events: none;
  text-shadow: 1px 1px rgba(0, 0, 0, 0.1);
  letter-spacing: 0.04em;
}

.text-container[hidden] {
  display: none;
}

@keyframes moveInCircle {
  0% {
    transform: rotate(0deg);
  }

  50% {
    transform: rotate(180deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes moveVertical {
  0% {
    transform: translateY(-50%);
  }

  50% {
    transform: translateY(50%);
  }

  100% {
    transform: translateY(-50%);
  }
}

@keyframes moveHorizontal {
  0% {
    transform: translateX(-50%) translateY(-10%);
  }

  50% {
    transform: translateX(50%) translateY(10%);
  }

  100% {
    transform: translateX(-50%) translateY(-10%);
  }
}

.gradient-bg {
  position: relative;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: linear-gradient(40deg, var(--color-bg1), var(--color-bg2));
}

.gradient-bg svg {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
}

.gradient-bg .gradients-container {
  width: 100%;
  height: 100%;
  filter: url(#goo) blur(var(--blur-strength));
}

.gradient-bg .g1,
.gradient-bg .g2,
.gradient-bg .g3,
.gradient-bg .g4,
.gradient-bg .g5,
.gradient-bg .interactive {
  position: absolute;
  mix-blend-mode: var(--blend-mode);
}

.gradient-bg .g1 {
  width: var(--circle-size);
  height: var(--circle-size);
  top: calc(50% - var(--circle-size) / 2);
  left: calc(50% - var(--circle-size) / 2);
  opacity: 1;
  transform-origin: center center;
  animation: moveVertical var(--duration-g1) ease infinite;
  background: radial-gradient(circle at center, rgba(var(--color1), 0.8) 0, rgba(var(--color1), 0) 50%) no-repeat;
}

.gradient-bg .g2 {
  width: var(--circle-size);
  height: var(--circle-size);
  top: calc(50% - var(--circle-size) / 2);
  left: calc(50% - var(--circle-size) / 2);
  opacity: 1;
  transform-origin: calc(50% - 400px);
  animation: moveInCircle var(--duration-g2) reverse infinite;
  background: radial-gradient(circle at center, rgba(var(--color2), 0.8) 0, rgba(var(--color2), 0) 50%) no-repeat;
}

.gradient-bg .g3 {
  width: var(--circle-size);
  height: var(--circle-size);
  top: calc(50% - var(--circle-size) / 2 + 200px);
  left: calc(50% - var(--circle-size) / 2 - 500px);
  opacity: 1;
  transform-origin: calc(50% + 400px);
  animation: moveInCircle var(--duration-g3) linear infinite;
  background: radial-gradient(circle at center, rgba(var(--color3), 0.8) 0, rgba(var(--color3), 0) 50%) no-repeat;
}

.gradient-bg .g4 {
  width: var(--circle-size);
  height: var(--circle-size);
  top: calc(50% - var(--circle-size) / 2);
  left: calc(50% - var(--circle-size) / 2);
  opacity: 0.7;
  transform-origin: calc(50% - 200px);
  animation: moveHorizontal var(--duration-g4) ease infinite;
  background: radial-gradient(circle at center, rgba(var(--color4), 0.8) 0, rgba(var(--color4), 0) 50%) no-repeat;
}

.gradient-bg .g5 {
  width: calc(var(--circle-size) * 2);
  height: calc(var(--circle-size) * 2);
  top: calc(50% - var(--circle-size));
  left: calc(50% - var(--circle-size));
  opacity: 1;
  transform-origin: calc(50% - 800px) calc(50% + 200px);
  animation: moveInCircle var(--duration-g5) ease infinite;
  background: radial-gradient(circle at center, rgba(var(--color5), 0.8) 0, rgba(var(--color5), 0) 50%) no-repeat;
}

.gradient-bg .interactive {
  width: 100%;
  height: 100%;
  top: -50%;
  left: -50%;
  opacity: 0.7;
  background: radial-gradient(circle at center, rgba(var(--color-interactive), 0.8) 0, rgba(var(--color-interactive), 0) 50%) no-repeat;
}

.panel-toggle {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 350;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 10px 18px;
  font: 700 24px/1 'Dongle', sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--panel-text);
  background: rgba(5, 8, 22, 0.68);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(14px);
  cursor: pointer;
}

.panel-toggle:hover {
  background: rgba(5, 8, 22, 0.84);
}

.admin-panel {
  position: fixed;
  top: 70px;
  right: 18px;
  z-index: 300;
  width: min(360px, calc(100vw - 36px));
  max-height: calc(100vh - 88px);
  overflow: auto;
  padding: 18px;
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  color: var(--panel-text);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0)),
    var(--panel-surface);
  box-shadow: var(--panel-shadow);
  backdrop-filter: blur(18px);
  transform: translateX(0);
  transition: transform 180ms ease, opacity 180ms ease;
}

.admin-panel[data-open='false'] {
  transform: translateX(calc(100% + 24px));
  opacity: 0;
  pointer-events: none;
}

.admin-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.admin-panel__eyebrow {
  margin: 0;
  font-size: 24px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--panel-muted);
}

.admin-panel__title {
  margin: 0;
  font-size: 38px;
  line-height: 0.95;
}

.admin-panel__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.admin-panel__action {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 8px 14px;
  font: 700 22px/1 'Dongle', sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--panel-text);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.admin-panel__form {
  display: grid;
  gap: 14px;
}

.admin-panel__section {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
}

.admin-panel__section h2 {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.admin-field {
  display: grid;
  gap: 6px;
  font-size: 24px;
  color: var(--panel-muted);
}

.admin-field--full {
  grid-column: 1 / -1;
}

.admin-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.16);
}

.admin-field span {
  display: block;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.admin-field input,
.admin-field select,
.admin-field output {
  width: 100%;
}

.admin-field input[type='text'],
.admin-field select {
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  outline: none;
  font: 700 24px/1 'Dongle', sans-serif;
  color: var(--panel-text);
  background: rgba(0, 0, 0, 0.22);
}

.admin-field input[type='color'] {
  min-height: 42px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.22);
  cursor: pointer;
}

.admin-field input[type='range'] {
  accent-color: white;
}

.admin-toggle input[type='checkbox'] {
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: white;
}

.admin-field output {
  font-size: 22px;
  color: var(--panel-text);
}

@media (max-width: 720px) {
  .panel-toggle {
    top: 12px;
    right: 12px;
  }

  .admin-panel {
    top: 56px;
    right: 12px;
    width: calc(100vw - 24px);
    max-height: calc(100vh - 68px);
    border-radius: 20px;
  }

  .admin-grid {
    grid-template-columns: 1fr;
  }
}
