/* ==================================================================
   BASE  (page-wide defaults)
   ================================================================== */

:root {
  color-scheme: dark;
  box-sizing: border-box;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #000;
  -webkit-user-select: none;
  user-select: none;
  color: #fff;
  font-family: system-ui,"Segoe UI",sans-serif;
  overflow-x: hidden;
}

img {
  -webkit-user-drag: none;
  user-select: none;
}

*,
*::before,
*::after {
  cursor: none!important;
}

/* ==================================================================
   BACKGROUND  (canvas is created by js/script.js, section 2)
   ================================================================== */

#background-container {
  position: fixed;
  inset: 0;
  z-index: -1;
}

#background-container canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* ==================================================================
   NAVIGATION BAR  (top pills)
   TIP: bar colour = .pill-nav background,  active dot colour = .pill.is-active::after
   ================================================================== */

#pill-nav-container {
  position: fixed;
  top: calc(env(safe-area-inset-top,0px) + 14px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
}

.pill-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  background: rgba(15,10,5,.75);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.pill-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.pill-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pill-list {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pill {
  position: relative;
  display: flex;
  overflow: hidden;
  align-items: center;
  height: 40px;
  padding: 0 20px;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  background: rgba(255,255,255,.1);
}

.pill.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e6992f;
  transform: translateX(-50%);
}

.hover-circle {
  position: absolute;
  left: 50%;
  bottom: 0;
  border-radius: 50%;
  background: #fff;
  pointer-events: none;
}

.label-stack {
  position: relative;
  display: inline-block;
  z-index: 2;
}

.pill-label-hover {
  position: absolute;
  left: 0;
  top: 0;
  color: #000;
  opacity: 0;
}

/* ==================================================================
   HOME PAGE  (curved text, logo, title, bio)
   TIP: curved text size = --loop-font-size (inside .curved-loop-svg)
   ================================================================== */

.view-section {
  position: relative;
  min-height: 100vh;
}

#home-view {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 90px 20px 60px;
}

#curved-loop-container {
  position: absolute;
  top: 60px;
  left: 0;
  width: 100%;
  height: 60vh;
  overflow: hidden;
  pointer-events: none;
}

.curved-loop-svg {
  --loop-spread: 4000;
  --loop-curve-height: 500;
  --loop-font-size: 60px; /* [EDIT] curved text size */
  --loop-text-spacing: 2px;
  width: 100%;
  height: 100%;
  pointer-events: auto;
  cursor: grab;
  user-select: none;
}

.content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: 20vh;
}

h1 {
  margin: 0;
  font-size: clamp(2.4rem,7vw,4.5rem);
  text-shadow: 0 4px 0 #000;
}

.links-container {
  display: none; /* [EDIT] links are hidden: change to  flex  to show them */
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  height: 56px;
  padding: 0 14px;
  border-radius: 14px;
  background: rgba(0,0,0,.6);
  border: 2px solid rgba(255,255,255,.3);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.social-link img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.text-block {
  max-width: 640px;
  font-size: 1.15rem;
  line-height: 1.6;
  padding: 18px 22px;
  border-radius: 14px;
  background: rgba(0,0,0,.6);
}

/* ==================================================================
   IN GAME PICTURES  (gallery tiles)
   ================================================================== */

.fanart-container {
  padding: 80px 20px 60px;
  max-width: 1700px;
  margin: 0 auto;
}

.masonry-grid {
  position: relative;
  width: 100%;
}

.masonry-item {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity .4s;
}

.masonry-img-container {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  background: linear-gradient(135deg,#7a3b0c,#2a1405);
  min-height: 80px;
}

.masonry-img-container img {
  display: block;
  width: 100%;
  height: auto;
}

.masonry-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 20px 12px 10px;
  background: linear-gradient(transparent,rgba(0,0,0,.85));
  opacity: 0;
  transition: opacity .25s;
}

.masonry-img-container:hover .masonry-overlay {
  opacity: 1;
}

/* ==================================================================
   YOUTUBE  (card stack, tab hidden for now)
   ================================================================== */

#youtube-view {
  align-items: center;
  justify-content: center;
  height: 100vh;
  overflow: hidden;
}

.card-swap-container {
  position: relative;
  perspective: 900px;
  transform-style: preserve-3d;
  cursor: grab;
}

.card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

.card-content img.thumb {
  background: linear-gradient(135deg,#7a3b0c,#2a1405);
}

/* ==================================================================
   PICTURE POP-UP
   ================================================================== */

#fanart-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,.82);
  align-items: center;
  justify-content: center;
  display: none;
  opacity: 0;
}

#fanart-card {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 16px;
  overflow: hidden;
  background: #222;
  transition: transform .1s;
  box-shadow: 0 20px 60px #000;
  color: #fff;
  font-weight: 700;
  padding: 0;
}

#fanart-card img {
  display: block;
  max-width: 90vw;
  max-height: 80vh;
}

#fanart-card div {
  padding: 10px 14px;
  background: #111;
}

/* ==================================================================
   MUSIC SLIDER  (bottom-left)
   ================================================================== */

#music-control-container {
  position: fixed;
  left: 16px;
  bottom: calc(env(safe-area-inset-bottom,0px) + 16px);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 200px;
}

.track-title {
  font-size: 12px;
  opacity: .8;
}

.slider-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.slider-root {
  flex: 1;
  padding: 8px 0;
  cursor: pointer;
}

.slider-track-wrapper {
  height: 6px;
}

.slider-track {
  height: 100%;
  background: rgba(255,255,255,.3);
  border-radius: 99px;
  overflow: hidden;
}

.slider-range {
  height: 100%;
  background: #fff;
}

.value-indicator {
  margin: 0;
  font-size: 12px;
  text-align: center;
  opacity: 0;
}

/* ==================================================================
   CUSTOM CURSOR  (spinning target)
   ================================================================== */

.target-cursor-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  pointer-events: none;
}

.target-cursor-dot {
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff;
}

.target-cursor-corner {
  position: absolute;
  left: 0;
  top: 0;
  width: 12px;
  height: 12px;
  border: 3px solid #fff;
}

.corner-tl {
  border-right: 0;
  border-bottom: 0;
}

.corner-tr {
  border-left: 0;
  border-bottom: 0;
}

.corner-br {
  border-left: 0;
  border-top: 0;
}

.corner-bl {
  border-right: 0;
  border-top: 0;
}

/* ==================================================================
   CENTER LOGO
   TIP: size = width on #logo-stage,  roundness = border-radius on #hero-logo
   ================================================================== */

#logo-stage {
  perspective: 800px;
  width: clamp(140px,24vh,240px);
  aspect-ratio: 1;
  cursor: none;
}

#hero-logo {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 14%;
  overflow: hidden;
  box-shadow: 0 18px 36px rgba(0,0,0,.6);
  transition: box-shadow .25s;
  will-change: transform;
}

#hero-logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

#hero-logo .shine {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: soft-light;
  transition: opacity .25s;
  background: radial-gradient(circle at var(--mx,50%) var(--my,50%),rgba(255,255,255,.95),transparent 55%);
}
