* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --x: 0px;
  --y: 0px;
}

@font-face {
  font-family: "CinzelDecorative";
  src: url("assets/Font/CinzelDecorative-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "MedievalSharp";
  src: url("assets/Font/MedievalSharp-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

body {
  font-family: "CinzelDecorative", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  cursor: none;
  background: radial-gradient(circle at center, #0b0015 0%, #130022 80%);
  color: #fff;
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
  padding-bottom: env(safe-area-inset-bottom);
}
body.hide-native-cursor { cursor: none; }

.text {
  font-size: 2.3rem;
  font-family: "MedievalSharp";
  filter:drop-shadow(0 0 8px rgba(255, 150, 0, 0.8));
  display: inline-block;
  will-change: transform;
  animation-name: float-word;
  animation-duration: 4s;
  animation-delay: 0s;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
  animation-direction: alternate;
  transform-origin: center;
}
@keyframes float-word {
  from { transform: translate3d(0,0,0) rotate(0deg); }
  to   { transform: translate3d(var(--dx,0px), var(--dy,0px), 0) rotate(var(--rot,0deg)); }
}
@media (prefers-reduced-motion: reduce) {
  .text { animation: none !important; transform: none !important; }
}

.allcontent {
  background: url(assets/bg-placeholder.png) center/cover no-repeat;
  position: fixed;
  height: 100dvh;
  width: 100dvw;
  border: 5px solid rgba(122,92,8,1);
  outline: 30px solid rgba(122,92,8,1);
  border-radius: 2%;
  z-index: 1;
  overflow: hidden;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: fit-content;
  padding: 2%;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-img {
  width: 7vw;
  max-height: 200px;
  overflow: auto;
  transition: transform 0.3s ease;
}
.logo-img:hover {
  filter: drop-shadow(0 0 8px rgba(255, 150, 0, 0.8));
  transform: scale(1.3);
  cursor: none;
}
.logo-img:focus {
  outline: 3px solid rgba(255,145,0,0.95);
  outline-offset: 4px;
  border-radius: 8px;
}

.hero {
  position: relative;
  top: -5%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  perspective: 1200px;
}

.scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  transform-style: preserve-3d;
  pointer-events: none;
}

.castle {
  position: absolute;
  max-width: 680px;
  margin: -1%;
  bottom: -3%;
  right: -4%;
  width: 55vw;
  transform: translate3d(var(--x), var(--y), 0);
  z-index: 5;
  filter: drop-shadow(0 0 40px rgba(255, 200, 100, 0.2));
  will-change: transform;
}

.insta-btn {
  position: absolute;
  margin: 20px;
  bottom: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 20;
  padding: 10px 22px;
  font-size: 1rem;
  border-radius: 30px;
}

.insta-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  pointer-events: none;
}

.insta-text {
  display: inline;
}

.content {
  position: relative;
  z-index: 10;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.8rem;
}

.main-logo {
  width: min(780px, 60vw);
  transition: transform 0.4s ease, filter 0.4s ease;
  filter: drop-shadow(0 0 12px rgba(255, 150, 0, 0.7))
          drop-shadow(0 0 40px rgba(255, 100, 0, 1));
  user-select: none;
}

.main-logo:hover {
  transform: scale(1.15) rotate(-1deg);
  filter: drop-shadow(0 0 40px rgba(255, 170, 0, 1))
          drop-shadow(0 0 80px rgba(255, 90, 0, 0.9));
}

.buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 30px;
  background: linear-gradient(90deg, #ff3d00, #ff9100);
  color: #fff;
  font-weight: bolder;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.btn:hover {
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 0 25px rgba(255, 109, 0, 0.7);
  cursor: none;
}

.btn:focus {
  outline: 3px solid rgba(255,145,0,0.95);
  outline-offset: 4px;
  border-radius: 24px;
}

.regi-btn {
  font-size: large;
  padding: 20px;
  height: fit-content;
  margin-right: 10px;
}
.regi-btn:hover {
  transform:  scale(1.1);
  transition: transform 0.2s ease;
  outline: 3px solid rgba(255,145,0,0.95);
  outline-offset: 4px;
  border-radius: 24px;
}

.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  display: none; 
  will-change: transform;
}

.custom-cursor.cursor-missing {
  background: transparent;
  width: 12px;
  height: 12px;
}

.custom-cursor.cursor-missing::before{
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(255,200,120,0.9);
  pointer-events: none;
}

.site-wide {
  width: 40px;
  height: 40px;
  background: transparent;
  border: none; 
}

.cursor-img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: translate(-50%, -50%);
  pointer-events: none;
  will-change: transform;
}

.video-modal { display: none; position: fixed; inset: 0; z-index: 999; }
.video-modal.open { display: block; }
.video-backdrop { position: absolute; inset: 0; background: rgba(9, 36, 51, 0.432); backdrop-filter: blur(4px); }
.video-container {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  width: min(1100px, 92vw);
  max-height: 82vh;
  background: rgba(6,6,10,0.9);
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 10px 40px rgba(9, 36, 51, 0.432);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
#modalVideo {
  width: 100%;
  height: auto;
  max-height: calc(82vh - 72px);
  background: rgba(9, 36, 51, 0.432);
  border-radius: 8px;
  display: block;
}
.video-controls {
  display: flex;
  padding: 0px 8px;
  padding-bottom: 15px;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
}
.video-controls button {
  background: linear-gradient(90deg,#ff7a18,#ffb03b);
  border: none;
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: larger;
}
.video-controls button[disabled] {
  opacity: 0.45;
}
.video-info {
  color: #ffdca3;
  font-size: 0.95rem;
  text-align: left;
  padding: 4px 6px;
}


@media(max-width: 768px) {
  .header {
    padding: 1% 3%;
    padding-top: 2%;
    transition: ease-in-out;
    filter: drop-shadow(0 0 9px rgba(133, 82, 16, 1));
    background:  rgba(9, 36, 51, 0.432);
  }
  .allcontent{
    position: relative;
  }
  .insta-btn {
    padding: 14px 14px;
    border-radius: 40px;
    bottom: 10px;
  }
  .insta-text {display: none;}
  .insta-icon {
    width: 26px;
    height: 26px;
  }
  
  .regi-btn {
    height: fit-content;
    padding: 6px 12px;
  }
  .text{
    font-size: 1.4rem;
    font-family: MedievalSharp;    
  }
  .logo-img {
  width: 9vw;}
  .main-logo { width: 78vw; }
  .castle { 
    width: 85vw;
    /* right: -15px;
    bottom: 5px; */
    transform: translate3d(0, 0, 0);
  }
  .video-container { width: 96vw; padding: 8px; }
  .video-controls { justify-content: space-between; }
}
