@font-face {
  font-family: 'Courier New';
  font-style: normal;
  font-weight: 400;
  font-display: swap; 
  src: url('/fonts/cour.ttf') format('truetype'); 
}

@media (pointer: coarse) {
  #custom-cursor {
    display: none;
  }
}

@media (max-width: 800px) {
  .glass-box__avatar {
    width: clamp(50%, 2vw, 74px); 
    height: auto; 
  }
}

@media (max-width: 450px) {
  .progress-container {
    display: none;
  }
}

@media (max-width: 340px) {
  .volume-control {
    display: none !important;
  }
  .glass-box__hero {
    flex-direction: column;
    gap: 0 !important;
    margin-bottom: -3rem !important;
  }
}

:root {
  --bg-left: hsla(260,40%,5%,1);
  --bg-right: hsla(260,40%,95%,1);
}

.enter-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.98);
  z-index: 1001;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.enter-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.enter-container {
  text-align: center;
  user-select: none;
}

#enter-text {
  font-family: Didot, "Didot LT STD", "Bodoni MT", "ltc-bodoni-175", "Hoefler Text", Garamond, "Times New Roman", serif;
  font-size: clamp(2rem, 8vw, 4rem);
  color: #fff;
  letter-spacing: 0.15em;
  margin: 0;
  animation: fadeInUp 1s ease 0.5s both;
  transition: all 0.3s ease;
}

#enter-text:hover {
  color: #ff53ff;
  text-shadow: 0 0 20px rgba(255, 83, 255, 0.5);
  letter-spacing: 0.2em;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

html, body {
  min-height: 100%;
  margin: 0;
  position: relative;
  background: linear-gradient(
    to right,
    var(--bg-left) 0%,
    var(--bg-left) 50%,
    var(--bg-right) 50%,
    var(--bg-right) 100%
  );
  cursor: none !important;
}

main {
  position: relative;
  min-height: 100vh;
  z-index: 2;
}

.glass-box {
  padding: 2rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  overflow: hidden;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.glass-box.visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}

.terminal-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  /*padding: 2rem;*/
  background: rgba(0, 0, 0, 0.96);
  z-index: 999;
  transition: opacity 0.5s ease;
}

.terminal-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.terminal-window {
  width: 100%;
  height: 100%;
  padding: 2rem 2.5rem;
  background: rgba(0, 0, 0);
  border-radius: 0;
  border: none;
  box-shadow: none;
}

.terminal-window::before {
  /*content: 'Terminal';*/
  display: block;
  color: rgba(158, 255, 255, 0.6);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.terminal-content {
  color: #d8f8ff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.5rem;
  line-height: 1.6;
  min-height: calc(100vh - 5rem);
  white-space: pre-wrap;
}

.terminal-line {
  display: block;
  white-space: pre;
}

.terminal-line.current::after {
  content: '';
  display: inline-block;
  width: 8px;
  height: 1em;
  margin-left: 4px;
  background: #9ef;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.terminal-overlay.hidden .terminal-line::after {
  display: none;
}

.terminal-header {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.terminal-dot {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  background: #ff5f56;
  box-shadow: 0.9rem 0 0 #ffbd2e, 1.8rem 0 0 #27c93f;
}

.terminal-content {
  color: #d8f8ff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.95rem;
  line-height: 1.6;
  min-height: 12rem;
  white-space: pre-wrap;
}

.terminal-line {
  display: block;
  white-space: pre;
}

.terminal-line.current::after {
  content: '';
  display: inline-block;
  width: 8px;
  height: 1em;
  margin-left: 4px;
  background: #9ef;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.terminal-overlay.hidden .terminal-line::after {
  display: none;
}

.glass-box::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,0.18), transparent 35%, rgba(255,255,255,0.06) 62%, transparent 100%);
}

.glass-box__content {
  position: relative;
  text-align: center;
  padding: 1rem 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: linear-gradient(90deg,rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 1) 50%, rgba(0, 0, 0, 1) 51%);
  background-clip: text;
  -webkit-background-clip: text; /* Safari compatibility */
  
  /* 3. Hide the original text fill to reveal the background */
  color: transparent;
}

.glass-box__hero {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin: auto 1.2rem;
  padding: 2rem 1rem;
  background: rgba(255, 255, 255, 0.005);
  border: none;
  mask: linear-gradient(0deg,rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.89) 15%, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 1) 85%, rgba(0, 0, 0, 0) 100%);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.glass-box__avatar {
  width: clamp(72px, 12vw, 110px);
  height: clamp(72px, 12vw, 110px);
  min-width: 72px;
  min-height: 72px;
  max-width: 110px;
  max-height: 110px;
  object-fit: cover;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.2);
}

.glass-box__content h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 700;
  text-transform: uppercase;
  text-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.glass-box__content p {
  margin: 0 auto;
  max-width: 36rem;
  font-size: 1rem;
  line-height: 1.8;
}

.icon-row {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid transparent;
  border-image-source: linear-gradient(90deg,rgba(255, 255, 255, 1) 0%, rgba(0, 0, 0, 1) 80%);
  border-image-slice: 1;
}

.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
}

.icon-link:hover {
  transform: scale(1.2) rotate(10deg);
  filter: brightness(1.3);
}

.icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: invert(1) brightness(1);
  mix-blend-mode: lighten;
  transition: filter 0.3s ease;
}

.audio-player {
  width: 100%;
  max-width: 280px;
  height: 32px;
  accent-color: #3c48fa;
}

.audio-player::-webkit-media-controls-panel {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

.audio-player::-webkit-media-controls-play-button,
.audio-player::-webkit-media-controls-mute-button,
.audio-player::-webkit-media-controls-volume-slider {
  filter: invert(1);
}

.audio-player::-webkit-media-controls-timeline {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.audio-player::-moz-media-controls {
  color-scheme: dark;
}

.custom-player {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem;
  width: 100%;
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
}

.player-btn {
  background: none;
  border: none;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
  transition: all 0.2s ease;
  padding: 0;
}

.player-btn:hover {
  color: #000000;
  transform: scale(1.15);
  filter: drop-shadow(0 0 8px rgba(60, 72, 250, 0.4));
}

.player-btn svg {
  width: 100%;
  height: 100%;
}

.player-btn.hidden {
  display: none;
}

.player-info {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  justify-content: center;
  width: 100%;
}

.time {
  font-size: 1rem;
  font-family: 'Courier New', monospace;
  min-width: 32px;
  text-align: center;
  flex-shrink: 0;
}

.info-text {
  font-size: 1rem;
  min-width: 32px;
  text-align: left;
  font-family: 'Courier New', monospace;
}

.progress-container {
  flex: 1;
  min-width: 80px;
  max-width: 150px;
}

.progress-bar {
  position: relative;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  transition: height 0.2s ease;
  overflow: visible;
}

.progress-bar:hover {
  height: 6px;
}

.progress-fill {
  height: 100%;
  background: #ffffff;
  border-radius: 2px;
  width: 0%;
  transition: width 0.1s linear;
  position: relative;
}

.progress-thumb {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
  left: 0%;
}

.progress-bar:hover .progress-thumb {
  opacity: 1;
}

.volume-control {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.volume-icon {
  width: 16px;
  height: 16px;
  color: #000000;
  flex-shrink: 0;
}

.volume-slider {
  width: 60px;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  outline: none;
}

.volume-slider::-webkit-slider-track {
  background: rgba(255, 255, 255, 0.15);
  height: 4px;
  border-radius: 2px;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 10px;
  height: 10px;
  background: #000000;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(60, 72, 250, 0.5);
  transition: all 0.2s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
  width: 12px;
  height: 12px;
  box-shadow: 0 0 12px rgba(60, 72, 250, 0.8);
}

.volume-slider::-moz-range-track {
  background: rgba(0, 0, 0, 0.15);
  height: 4px;
  border-radius: 2px;
  border: none;
}

.volume-slider::-moz-range-thumb {
  width: 10px;
  height: 10px;
  background: #000000;
  border-radius: 50%;
  border: none;
  box-shadow: 0 0 6px rgba(60, 72, 250, 0.5);
  transition: all 0.2s ease;
}

.volume-slider::-moz-range-thumb:hover {
  width: 12px;
  height: 12px;
  box-shadow: 0 0 12px rgba(60, 72, 250, 0.8);
}

.discord {
  text-shadow: 0 0 12px rgba(0, 0, 0, 1);
}

#custom-cursor {
  z-index: 99999;
  max-width: 32px;
  max-height: 32px;
  pointer-events: none !important;
  transform-origin: 100% 50%;
}

#custom-cursor.click {
  transform: scale(0.8);
}

#custom-cursor.hovered {
  transform: scale(1.5);
}

a:hover, img:hover, button:hover, input:hover, svg:hover, div:hover, p:hover {
  cursor: none !important;
}

