body {
  overscroll-behavior: none;
  touch-action: none;
  margin: 0;
  padding: 0;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  background-image: url('./background_kodo.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  -webkit-background-size: cover;
  min-height: 100vh;
}

/* iOS Safari specific fix */
@supports (-webkit-touch-callout: none) {
  body {
    background-attachment: scroll;
    height: 100vh;
    overflow: hidden;
  }
}

/* Add background image as element */
.background-image {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  pointer-events: none;
}

canvas {
  position: fixed;
  top: -10px;
  left: -10px;
  mix-blend-mode: soft-light;
}

.logo-container {
  position: fixed;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 10;
  
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.logo-wrapper {
  width: 100px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-image {
  max-width: 150px;
  max-height: 50px;
  width: auto;
  height: auto;
  opacity: 0.8;
  filter: brightness(0) invert(1);
}

.text-container {
  position: fixed;
  bottom: 50px;
  left: 5%;
  width: 90%;

  font-family: "new-spirit", serif;
  font-weight: 400;
  font-style: normal;
  font-size: 18px;
  opacity: 0.8;
  color: white;
  text-align: center;

  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.logo-svg {
  width: 50%;
  height: 50%;
  filter: brightness(0) invert(1) opacity(0.6) blur(0.5px);
}

.touch-indicator {
  position: fixed;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: opacity 0.1s;
  z-index: 1000;
}

.dg.main {
  display: none;
}

/* Status Banner */
.status-banner {
  position: fixed;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  
  /* White frosted background */
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  
  /* Rounded rectangle with 6px corners */
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  
  /* Link styling */
  text-decoration: none;
  cursor: pointer;
  
  /* Prevent text selection */
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  
  /* Add smooth transition for background */
  transition: background-color 0.3s ease;
}

.status-banner:hover {
  background-color: rgba(255, 255, 255, 0.25);
}

.status-banner:hover .status-text {
  color: #666;
}

.status-banner:hover .status-dot {
  background-color: #666;
}

.status-text {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 1px;
  color: white;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #00ff88;
  
  /* Glowing effect */
  box-shadow: 
    0 0 8px #00ff88,
    0 0 16px rgba(0, 255, 136, 0.6),
    0 0 24px rgba(0, 255, 136, 0.3);
  
  /* Subtle pulsing animation */
  animation: statusGlow 2s ease-in-out infinite alternate;
  transition: background-color 0.3s ease;
}

@keyframes statusGlow {
  from {
    box-shadow: 
      0 0 8px #00ff88,
      0 0 16px rgba(0, 255, 136, 0.6),
      0 0 24px rgba(0, 255, 136, 0.3);
  }
  to {
    box-shadow: 
      0 0 12px #00ff88,
      0 0 24px rgba(0, 255, 136, 0.8),
      0 0 36px rgba(0, 255, 136, 0.5);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .brand-image {
    max-width: 150px;
    max-height: 45px;
  }
  
  .status-banner {
    top: 30px;
    padding: 6px 10px;
    gap: 10px;
  }
  
  .status-text {
    font-size: 9px;
  }
  
  .status-dot {
    width: 6px;
    height: 6px;
  }
}

/* iOS Safari specific fixes for full-screen experience */
@supports (-webkit-touch-callout: none) {
  body {
    /* Use dynamic viewport height that adjusts to browser UI */
    min-height: 100dvh; /* Dynamic viewport height */
    height: 100dvh;
    
    /* Prevent overscroll */
    position: fixed;
    width: 100%;
    overflow: hidden;
  }
  
  /* Ensure content fits within safe areas */
  .logo-container,
  .text-container {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
  
  .status-banner {
    /* Position below notch */
    top: max(30px, env(safe-area-inset-top, 30px));
  }
  
  .text-container {
    /* Position above home indicator */
    bottom: max(50px, env(safe-area-inset-bottom, 50px));
  }
}

/* Alternative: Use viewport units that exclude browser UI */
@media screen and (max-width: 768px) {
  body {
    height: 100vh; /* Fallback */
    height: 100dvh; /* Dynamic viewport height (excludes browser UI when hidden) */
  }
} 