:root {
  --bg1: #030014;
  --bg2: #050022;
  --bg3: #0b042c;

  --card-border: rgba(196, 116, 255, 0.8);
  --card-glow: rgba(129, 140, 248, 0.4);

  --accent: #a855f7;
  --accent-2: #38bdf8;

  --text-main: #f9f5ff;
  --text-muted: #9ca3af;

  --radius: 26px;

  --page-pad-x: clamp(14px, 3vw, 32px);
  --page-pad-top: clamp(22px, 4vw, 40px);
  --page-pad-bottom: clamp(20px, 10vh, 120px);

  --content-max: 1180px;

  --slider-visible: 3;

  --main-card-w: clamp(200px, 22vw, 280px);
  --main-card-font: clamp(15px, 1.6vw, 18px);

  --slider-card-w: clamp(200px, 20vw, 260px);
  --slider-card-h: clamp(170px, 18vw, 200px);
  --slider-gap: clamp(18px, 3vw, 40px);
  --slider-pad: clamp(16px, 3vw, 40px);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  background: var(--bg1);
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;

  background: radial-gradient(circle at top, #471494 0, transparent 40%),
    radial-gradient(circle at 20% 80%, #04405c 0, transparent 45%),
    radial-gradient(circle at 80% 80%, #680f37 0, transparent 45%),
    linear-gradient(160deg, var(--bg1), var(--bg2), var(--bg3));

  background-repeat: no-repeat;
  background-size: 100% 100%;

  transform: translateZ(0);
  will-change: transform;
}

.bg-space-layer {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}

.bg-space-object {
  position: absolute;
  width: clamp(36px, 6vw, 80px);
  opacity: 0.9;
  filter: drop-shadow(0 0 10px rgba(148, 163, 184, 0.8));
  will-change: transform;
}

main {
  flex: 1;
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding-top: 0 !important;
  padding: 0 var(--page-pad-x) 0;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(18px, 1vw, 32px);
  flex: 1 0 auto;
  position: relative;
  z-index: 1;
}
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.logo {
  display: flex;
  padding-top: 20px;
  padding-bottom: 20px;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 40px;
  gap: 50px;
}
.logo-placeholder {
  height: 60px;
  margin-bottom: 12px;
}
.logo-title {
  font-size: clamp(34px, 6vw, 56px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
}
.logo-image {
  width: clamp(290px, 14vw, 290px);
  height: auto;
  display: block;

  filter: drop-shadow(0 0 14px rgba(168, 85, 247, 0.6))
    drop-shadow(0 0 26px rgba(56, 189, 248, 0.35));

  user-select: none;
  pointer-events: none;
}

.logo-subtitle {
  font-size: clamp(13px, 1.6vw, 15px);
  opacity: 0.85;
  margin-top: 10px;
  color: white;
}

.cards-row {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(16px, 3vw, 32px);
}

.award-card {
  width: var(--main-card-w);
  aspect-ratio: 1 / 1;
  height: auto;

  border-radius: var(--radius);
  border: 1px solid var(--card-border);

  background: radial-gradient(
      circle at top left,
      rgba(248, 250, 252, 0.08),
      transparent 55%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(56, 189, 248, 0.08),
      transparent 55%
    ),
    rgba(15, 23, 42, 0.9);

  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.8), 0 22px 60px rgba(15, 23, 42, 0.9),
    0 0 55px var(--card-glow);

  color: var(--text-main);

  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-align: center;

  padding: clamp(16px, 2.4vw, 24px);
  font-weight: 600;
  font-size: var(--main-card-font);

  cursor: pointer;
  position: relative;
  overflow: hidden;

  transition: transform 0.2s cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 0.2s ease-out, border-color 0.2s ease-out,
    background 0.2s ease-out;

  animation: cardFloat 7s ease-in-out infinite alternate;
}

.award-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(
    circle at 0% 0%,
    rgba(244, 114, 182, 0.35),
    transparent 55%
  );
  opacity: 0;
  mix-blend-mode: screen;
  transition: opacity 0.25s ease-out, transform 0.25s ease-out;
}

.award-card span {
  position: relative;
  z-index: 1;
}

.award-card:hover {
  animation: none;
  transform: translateY(-10px) scale(1.04) rotate3d(1, -1, 0, 4deg);
  border-color: #e879f9;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.95),
    0 0 70px rgba(244, 114, 182, 0.8);
}

.award-card:hover::before {
  opacity: 1;
  transform: translate3d(10px, -10px, 0);
}

.section-title {
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 600;
  text-align: center;
  color: white;
}

.section-caption {
  font-size: clamp(12px, 1.6vw, 13px);
  text-align: center;
  color: var(--text-muted);
  margin-top: 4px;
  margin-bottom: 0;
}

.slider {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;

  gap: clamp(14px, 3vw, 30px);
  margin-top: clamp(8px, 2vw, 10px);
}

.slider-arrow {
  flex: 0 0 auto;
  position: relative;
  width: clamp(44px, 6vw, 56px);
  height: clamp(44px, 6vw, 56px);
  border-radius: 999px;

  border: 1px solid rgba(148, 163, 184, 0.6);
  background: radial-gradient(
      circle at 30% 20%,
      rgba(248, 250, 252, 0.18),
      transparent 55%
    ),
    radial-gradient(
      circle at 70% 80%,
      rgba(129, 140, 248, 0.25),
      transparent 60%
    ),
    rgba(15, 23, 42, 0.96);

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  overflow: hidden;

  transition: background 0.2s ease-out, border-color 0.2s ease-out,
    box-shadow 0.2s ease-out, transform 0.2s ease-out;
}

.slider-arrow-svg {
  width: clamp(20px, 3.5vw, 24px);
  height: clamp(20px, 3.5vw, 24px);
  stroke: #e5e7eb;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  transition: stroke 0.2s ease-out, transform 0.2s ease-out;
}

.slider-arrow-svg--left {
  transform: scaleX(-1);
}

.slider-arrow:hover {
  border-color: #e879f9;
  box-shadow: 0 0 20px rgba(244, 114, 182, 0.7),
    0 0 32px rgba(56, 189, 248, 0.6);
  transform: translateY(-1px);
}

.slider-arrow:hover .slider-arrow-svg--right {
  transform: translateX(2px);
}
.slider-arrow:hover .slider-arrow-svg--left {
  transform: scaleX(-1) translateX(2px);
}

.slider-viewport {
  overflow: hidden;
  padding: var(--slider-pad);
  box-sizing: content-box;
  max-width: 100%;
}

.slider-track {
  display: flex;
  gap: var(--slider-gap);
  transition: transform 0.24s ease-out;
}

.slider-card {
  width: var(--slider-card-w);
  height: var(--slider-card-h);
  border-radius: var(--radius);

  border: 1px solid rgba(148, 163, 184, 0.7);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  color: var(--text-main);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-align: center;

  padding: 16px;
  font-weight: 500;
  font-size: clamp(14px, 1.8vw, 16px);

  cursor: pointer;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;

  transform: translateZ(0);
  will-change: box-shadow, border-color;

  transition: border-color 0.22s ease-out, box-shadow 0.22s ease-out;
}
.card-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}
.slider-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;

  background: linear-gradient(
    to top,
    rgba(3, 4, 18, 0.75),
    rgba(3, 4, 18, 0.35),
    rgba(3, 4, 18, 0.1)
  );

  opacity: 0.8;
  transition: opacity 0.22s ease-out;
}

.slider-card:hover::after {
  opacity: 1;
}

.slider-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(
      circle at 0% 100%,
      rgba(56, 189, 248, 0.45),
      transparent 55%
    ),
    radial-gradient(
      circle at 100% 0%,
      rgba(244, 114, 182, 0.35),
      transparent 55%
    );
  opacity: 0;
  mix-blend-mode: normal;
  transition: opacity 0.25s ease-out;
}

.slider-card:hover {
  border-color: #60a5fa;
  box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.5),
    0 0 36px rgba(96, 165, 250, 0.45);
}
.slider-card:hover::before {
  opacity: 1;
}

@keyframes cardFloat {
  0% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-4px) scale(1.01);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

.made-by {
  margin-top: auto;
  padding: 15px 10px 28px;

  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.65;
  color: #e5e7eb;
  text-shadow: 0 0 10px rgba(148, 163, 184, 0.6);
  text-align: center;
}
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 4, 18, 0.82);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10;
  padding: 18px;
}

.modal-overlay.modal-overlay--visible {
  display: flex;
}

.modal {
  position: relative;
  max-width: 420px;
  width: 100%;
  border-radius: 24px;
  padding: 26px 24px 22px;
  background: radial-gradient(
      circle at top left,
      rgba(129, 140, 248, 0.25),
      transparent 60%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(236, 72, 153, 0.25),
      transparent 60%
    ),
    rgba(15, 23, 42, 0.97);
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.9),
    0 0 60px rgba(56, 189, 248, 0.4);
  border: 1px solid rgba(148, 163, 184, 0.7);
  color: var(--text-main);

  max-height: min(620px, calc(100vh - 36px));
  overflow: auto;
}

.modal-title {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 8px;
  text-align: center;
}

.modal-description {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 18px;
}

.modal-label {
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
}

.modal-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.8);
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-main);
  font-size: 14px;
  outline: none;
  transition: border-color 0.18s ease-out, box-shadow 0.18s ease-out,
    background 0.18s ease-out;
}

.modal-input::placeholder {
  color: rgba(148, 163, 184, 0.8);
}

.modal-input:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.7);
  background: rgba(15, 23, 42, 1);
}

.modal-submit {
  margin-top: 14px;
  width: 100%;
  padding: 10px 14px;
  border-radius: 999px;
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  color: white;
  background: linear-gradient(120deg, #a855f7, #ec4899, #38bdf8);
  background-size: 200% 200%;
  transition: opacity 0.18s ease-out, transform 0.16s ease-out,
    box-shadow 0.18s ease-out, filter 0.18s ease-out,
    background-position 0.6s ease-out;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.9),
    0 0 30px rgba(236, 72, 153, 0.65);
}

.modal-submit:hover:not(:disabled) {
  background-position: 100% 0;
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 1), 0 0 36px rgba(236, 72, 153, 0.85);
}

.modal-submit:disabled {
  opacity: 0.5;
  cursor: default;
  box-shadow: none;
  filter: grayscale(0.2);
}

.modal-hint {
  margin-top: 10px;
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: transparent;
  color: #9ca3af;
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color 0.18s ease-out, transform 0.18s ease-out;
}
.modal-close:hover {
  color: #e5e7eb;
  transform: scale(1.05);
}

.intro-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 4, 18, 0.9);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 20;
  padding: 18px;
}

.intro-overlay.intro-overlay--visible {
  display: flex;
}

.intro-modal {
  max-width: 420px;
  width: 100%;
  border-radius: 24px;
  padding: 26px 24px 22px;
  background: radial-gradient(
      circle at top left,
      rgba(59, 130, 246, 0.3),
      transparent 60%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(236, 72, 153, 0.3),
      transparent 60%
    ),
    rgba(15, 23, 42, 0.97);
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.95),
    0 0 72px rgba(59, 130, 246, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.9);
  color: var(--text-main);
  text-align: center;
  position: relative;

  max-height: min(620px, calc(100vh - 36px));
  overflow: auto;
}

.intro-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 10px;
}

.intro-text {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 18px;
}

.intro-connect-btn {
  margin-top: 4px;
  width: 100%;
  padding: 11px 16px;
  border-radius: 999px;
  border: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(120deg, #5865f2, #3b82f6);
  background-size: 200% 200%;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.95),
    0 0 32px rgba(88, 101, 242, 0.8);
  transition: background-position 0.5s ease-out, transform 0.16s ease-out,
    box-shadow 0.18s ease-out, opacity 0.18s ease-out;
}

.intro-connect-btn:hover {
  background-position: 100% 0;
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 1), 0 0 40px rgba(88, 101, 242, 0.95);
}

.intro-hint {
  margin-top: 10px;
  font-size: 11px;
  color: var(--text-muted);
}

.bg-corner-image {
  position: fixed;
  right: 20px;
  bottom: 20px;
  rotate: 10deg;
  width: 420px;
  height: 420px;
  background-image: url(/images/re-tree.0376247fc6f5a8cb44aa.gif);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: right bottom;

  pointer-events: none;
  z-index: 0;
  opacity: 0.9;
}
.bg-corner-left {
  width: 220px;
  height: 220px;
  left: 20px;
  rotate: -10deg;
  right: auto;
  bottom: 10px;
  background-image: url(/images/podarki.5ad791b7750266bb4268.png);
  background-position: bottom left;
}
#snow-canvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  width: 100%;
  height: 100%;
}

.award-card,
.slider-card {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.award-card::after,
.slider-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(3, 4, 18, 0.75),
    rgba(3, 4, 18, 0.35),
    rgba(3, 4, 18, 0.15)
  );
  z-index: 0;
}
.award-card span,
.slider-card span {
  position: relative;
  z-index: 1;
}
.slider-card span {
  z-index: 2;
  display: inline-block;
  padding: 4px 8px;
}

.discord-float-btn {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 30;

  padding: 10px 16px;
  border-radius: 999px;
  border: none;

  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: white;

  background: linear-gradient(120deg, #5865f2, #3b82f6);
  background-size: 200% 200%;

  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.9),
    0 0 24px rgba(88, 101, 242, 0.8);

  transition: background-position 0.5s ease, transform 0.15s ease,
    box-shadow 0.2s ease, opacity 0.2s ease;
}

.discord-float-btn:hover {
  background-position: 100% 0;
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 1), 0 0 36px rgba(88, 101, 242, 0.95);
}

.intro-close {
  position: absolute;
  top: 10px;
  right: 12px;

  border: none;
  background: transparent;
  color: #9ca3af;
  font-size: 20px;
  cursor: pointer;

  transition: color 0.2s ease, transform 0.2s ease;
}

.intro-close:hover {
  color: #e5e7eb;
  transform: scale(1.1);
}

@keyframes snowFall {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 0 100vh;
  }
}
@keyframes snowFall {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 50px 100vh;
  }
}

@media (max-width: 560px) {
  :root {
    --slider-visible: 1;
    --content-max: 640px;
  }
  .bg-space-object {
    opacity: 0.55;
    width: clamp(28px, 8vw, 52px);
    filter: drop-shadow(0 0 8px rgba(148, 163, 184, 0.6));
  }
  .award-card:hover {
    transform: translateY(-6px) scale(1.02);
    rotate: none;
  }
}

@media (min-width: 561px) and (max-width: 980px) {
  :root {
    --slider-visible: 2;
  }
}

@media (min-width: 1200px) {
  .slider {
    gap: 34px;
  }
}
@media (max-width: 1200px) {
  .bg-corner-image {
    width: 260px;
    height: 260px;
    opacity: 0.8;
    right: 5px;
    bottom: 10px;
  }
  .bg-corner-left {
    width: 180px;
    height: 180px;
    opacity: 0.8;
  }
}
@media (max-width: 768px) {
  .bg-corner-image {
    width: 200px;
    height: 200px;
    opacity: 0.6;
    right: 5px;
    bottom: 10px;
  }
  .bg-corner-left {
    width: 100px;
    height: 100px;
    opacity: 0.6;
  }
}
#discordInput {
  color: rgba(148, 163, 184, 0.8);
}

