@font-face {
  font-family: 'Inter Display';
  font-weight: 500;
  font-style: normal;
  src: url('assets/fonts/InterDisplay-Medium.ttf');
}

@font-face {
  font-family: 'Inter Display';
  font-weight: 600;
  font-style: normal;
  src: url('assets/fonts/InterDisplay-SemiBold.ttf');
}

@font-face {
  font-family: 'PPFragment';
  font-weight: 400;
  font-style: normal;
  src: url('assets/fonts/PPFragment-SansRegular.otf') format('opentype');
}

@font-face {
  font-family: 'PPFragment';
  font-weight: 800;
  font-style: normal;
  src: url('assets/fonts/PPFragment-SansExtraBold.otf') format('opentype');
}

@font-face {
  font-family: 'Reaver';
  font-weight: 300;
  font-style: normal;
  src: url('assets/fonts/reaver-light.otf') format('opentype');
}

@font-face {
  font-family: 'Reaver';
  font-weight: 400;
  font-style: normal;
  src: url('assets/fonts/reaver-regular.otf') format('opentype');
}

@font-face {
  font-family: 'Reaver';
  font-weight: 600;
  font-style: normal;
  src: url('assets/fonts/reaver-semibold.otf') format('opentype');
}

@font-face {
  font-family: 'Reaver';
  font-weight: 700;
  font-style: normal;
  src: url('assets/fonts/reaver-bold.otf') format('opentype');
}

@font-face {
  font-family: 'Reaver';
  font-weight: 900;
  font-style: normal;
  src: url('assets/fonts/reaver-black.otf') format('opentype');
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul[role='list'],
ol[role='list'] {
  list-style: none;
}

html:focus-within {
  scroll-behavior: smooth;
}

body {
  background: linear-gradient(180deg, #000000, #102f53);
  min-height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  text-rendering: geometricPrecision;
  line-height: 1.5;
}

.background {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.right-bar,
.left-bar {
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
}

.left-bar {
  background: url('/assets/left-bar.png') no-repeat;
  background-size: contain;
  background-position-x: left;
}

.right-bar {
  background: url('/assets/right-bar.png') no-repeat;
  background-size: contain;
  background-position-x: right;
}

.noise-texture {
  background: url('/assets/noise-texture.webp') repeat;
  background-size: 10%;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 15;
  mix-blend-mode: overlay;
  opacity: 0.2;
  pointer-events: none;
}

.stars-texture {
  background: url('/assets/stars-texture.jpg') no-repeat;
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 14;
  mix-blend-mode: lighten;
  opacity: 0.2;
  pointer-events: none;
}

.clouds-left,
.clouds-right {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 13;
  pointer-events: none;
}

.clouds-mid {
  background: url('/assets/clouds-mid.png') no-repeat;
  background-size: contain;
  background-position: center;
  position: absolute;
  width: 1176px;
  height: 421px;
  top: 0;
  left: 0;
  transform: translate(-34%, -36%);
  z-index: 13;
  pointer-events: none;
}

.clouds-left {
  background: url('/assets/clouds-left.png') no-repeat;
  background-size: contain;
  background-position-x: left;
}

.clouds-right {
  background: url('/assets/clouds-right.png') no-repeat;
  background-size: contain;
  background-position-x: right;
}

.clouds-bg {
  background: url(/assets/clouds-bg.png) no-repeat;
  position: absolute;
  background-position-x: 60%;
  background-position-y: 50%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9;
  pointer-events: none;
}

.bg-image {
  background: url('/assets/bg2.png') no-repeat;
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  mix-blend-mode: plus-lighter;
  filter: blur(0.5px);
  position: relative;
  z-index: 1;
  opacity: 0.5;
  height: 100dvh;
}

.bottom-left-star {
  background: url('/assets/bottom-left-star.png') no-repeat;
  width: 329px;
  height: 204px;
  position: fixed;
  bottom: 0;
  transform: translate(150px, 0%);
  z-index: 2;
}

.bottom-right-star {
  background: url('/assets/bottom-right-star.png') no-repeat;
  width: 287px;
  height: 243px;
  position: fixed;
  bottom: 0;
  right: 0;
  transform: translate(-85px, -85px);
  z-index: 2;
}

.left-star {
  background: url('/assets/left-star.png') no-repeat;
  width: 196px;
  height: 166px;
  position: absolute;
  top: 4px;
  left: -64px;
  transform: translate(-100%, 0%);
  z-index: 2;
}

.frame-star {
  background: url('/assets/form-star.png') no-repeat;
  width: 204px;
  height: 203px;
  position: absolute;
  top: 114px;
  right: -202px;
  z-index: 3;
}

.bottom-gradient {
  mix-blend-mode: color-burn;
  opacity: 0.8;
  background: linear-gradient(180deg, rgba(4, 10, 15, 0) 0%, #040a0f 100%);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
}

.top-gradient {
  background: linear-gradient(
    180deg,
    #000000 0%,
    rgba(0, 0, 0, 0.991615) 11.79%,
    rgba(0, 0, 0, 0.967585) 21.38%,
    rgba(0, 0, 0, 0.9296) 29.12%,
    rgba(0, 0, 0, 0.879348) 35.34%,
    rgba(0, 0, 0, 0.818519) 40.37%,
    rgba(0, 0, 0, 0.7488) 44.56%,
    rgba(0, 0, 0, 0.671881) 48.24%,
    rgba(0, 0, 0, 0.589452) 51.76%,
    rgba(0, 0, 0, 0.5032) 55.44%,
    rgba(0, 0, 0, 0.414815) 59.63%,
    rgba(0, 0, 0, 0.325985) 64.66%,
    rgba(0, 0, 0, 0.2384) 70.88%,
    rgba(0, 0, 0, 0.153748) 78.62%,
    rgba(0, 0, 0, 0.0737185) 88.21%,
    rgba(0, 0, 0, 0) 100%
  );
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  height: 30%;
  z-index: 2;
}

a:not([class]) {
  text-decoration-skip-ink: auto;
}

img,
picture {
  max-width: 100%;
  display: block;
}

input,
button,
textarea,
select {
  font: inherit;
}

@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
}

.event-title,
.event-subtitle {
  font-family: 'Reaver', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #c9e2fe;
}

.event-title {
  font-size: 22px;
  line-height: auto;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.event-subtitle {
  font-size: 16px;
  line-height: 22px;
  font-weight: 600;
  letter-spacing: 0.26em;
}

.team-spirit-container {
  display: flex;
  flex-direction: column;
  font-weight: 600;
  text-align: center;
  justify-content: space-between;
  min-height: 100svh;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  flex: 1;
  width: 100%;
  align-items: center;
  justify-content: center;
}

@media (max-width: 991px) {
  .content-wrapper {
    max-width: 100%;
    padding: 0 20px;
  }
}

.main-content {
  position: relative;
  display: flex;
  max-width: inherit;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.upload-section {
  position: relative;
  z-index: 1;
  background: url('/assets/upload-bg.png') bottom no-repeat;
  align-items: center;
  border-radius: 12px;
  display: flex;
  font-size: 24px;
  font-weight: 500;
  height: 548px;
  aspect-ratio: 1;
  justify-content: center;
  padding: 80px 60px;
  width: 100%;
}

.upload-button {
  top: -5px;
  position: relative;
  z-index: 2;
  height: 86px;
  width: 548px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.button-frame {
  pointer-events: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('/assets/button-bg.png') center no-repeat;
  z-index: 0;
}

.upload-content {
  display: flex;
  width: 290px;
  max-width: 100%;
  flex-direction: column;
  align-items: center;
  gap: 80px;
}

.upload-text {
  font-size: 30px;
  color: #fff;
  font-family: 'Inter Display', sans-serif;
  font-weight: 500;
  line-height: 36px;
  align-self: stretch;
  cursor: pointer;
}

#nickname {
  border-radius: 12px;
  background: #000;
  font-weight: 500;
  color: white;
  text-align: center;
  inset: 0;
  border: 1px solid rgba(201, 226, 254, 1);
}

#nickname:focus-visible,
#nickname:focus {
  outline: 0;
}

.upload-icon {
  color: #c3c2a3;
  font-family: Inter Display, sans-serif;
  line-height: 100%;
  margin-top: 50px;
}

@media (max-width: 991px) {
  .upload-icon {
    margin-top: 40px;
  }
}

.btn {
  cursor: pointer;
  width: 100%;
  font: 18px/160% Reaver, sans-serif;
  font-weight: bold;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
  background: url('/assets/button.png') center no-repeat;
  margin-top: 20px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 2px;
  height: 64px;
  width: 544px;
  border: none;
  cursor: pointer;
}

.btn:hover,
.btn:active {
  background: url('/assets/button-hover.png') center no-repeat;
}

@media (max-width: 991px) {
  .btn {
    max-width: 100%;
  }
}

.footer-text {
  z-index: 13;
  color: #c9e2fe;
  font: 11px/160% Inter Display, sans-serif;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  align-self: center;
  padding: 20px 0;
  position: fixed;
  bottom: 0;
}

.hidden {
  display: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#frame {
  position: absolute;
  inset: 0;
  padding: 40px;
}

canvas {
  position: fixed;
  top: -9999px;
  left: -9999px;
  visibility: hidden;
}

@media (orientation: landscape) and (max-width: 1279px) {
  .bottom-left-star,
  .bottom-right-star {
    display: none;
  }
  .clouds-left {
    transform: translate(-15%, 0);
  }
  .clouds-right {
    transform: translate(10%, 0);
  }
}

@media (orientation: landscape) and (max-height: 800px) {
  .content-wrapper {
    padding: 0px;
  }
  .main-content {
    top: -20px;
    scale: 0.8;
  }
}

@media (orientation: landscape) and (max-height: 599px) {
  .content-wrapper {
    padding: 0px;
  }
  .main-content {
    transform: translate(0, -15%);
    scale: 0.6;
  }
}

@media (orientation: landscape) and (max-height: 460px) {
  .content-wrapper {
    padding: 0px;
  }
  .main-content {
    transform: translate(0, -45%);
    scale: 0.4;
  }
}

@media (orientation: portrait) and (max-width: 768px) {
  .main-content {
    top: -40px;
    scale: 0.8;
  }
}

@media (orientation: portrait) and (max-width: 1279px) {
  .clouds-left,
  .clouds-right,
  .bottom-left-star,
  .bottom-right-star,
  .left-bar,
  .right-bar {
    display: none;
  }
}

@media (orientation: portrait) and (max-width: 568px) {
  .content-wrapper {
    justify-content: center;
  }
  .upload-section {
    width: auto;
    max-width: max-content;
  }
  .main-content {
    scale: 0.6;
    top: 0;
    margin: inherit;
    max-width: none;
  }
  .left-star {
    display: none;
  }
  .frame-star {
    position: fixed;
  }
}

/* @media (orientation: portrait) and (max-width: 800px) {
  .clouds-left,
  .clouds-right,
  .bottom-left-star,
  .bottom-right-star,
  .left-bar,
  .right-bar {
    display: none;
  }
} */
