:root {
  --phase-x: 50%;
  --text-weight: 400;
  --bg-color-1: #060907;
  --bg-color-2: #0f1712;
  --accent-glow: rgba(163, 230, 53, 0.18);
  --text-main: #ffffff;
  --text-sub: rgba(255, 255, 255, 0.4);
  --light-x: 50%;
  --light-y: 50%;
}

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

body {
  font-family: "Inter", sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  user-select: none;
  padding: 40px 80px;
  background: radial-gradient(
    circle at 75% 50%,
    var(--bg-color-2) 0%,
    var(--bg-color-1) 75%
  );
  color: var(--text-main);
}

/* --- HEADER --- */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.brand-logo {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.header-status {
  font-size: 0.75rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-sub);
  font-variant-numeric: tabular-nums;
}

/* --- AMBIENT LIGHT BACKDROP --- */
.ambient-glow {
  position: fixed;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
  top: 50%;
  right: 10%;
  transform: translate(15%, -50%);
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

/* --- MAIN SPLIT LAYOUT --- */
main {
  position: relative;
  z-index: 2;
  flex-grow: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  width: 100%;
  gap: 40px;
}

/* Left Hero Typography */
.hero-text-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 200px;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 4rem);
  text-transform: uppercase;
  letter-spacing: 10px;
  font-weight: var(--text-weight);
  color: var(--text-main);
  white-space: nowrap;
}

.coming-soon-wrapper {
  margin-top: 15px;
}

.coming-soon-text {
  font-size: clamp(1.2rem, 2.5vw, 2.2rem);
  text-transform: uppercase;
  letter-spacing: 8px;
  font-weight: var(--text-weight);
  color: var(--text-main);
  white-space: nowrap;
}

/* Right Visual Engine Container */
.visual-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  perspective: 1000px;
}

/* Outer Area Containing Reticle Frame + Bottom Game Controls */
.interactive-arena {
  position: relative;
  width: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 100px;
  cursor: pointer;
}

/* Architectural Frame around Main Mango */
.hud-frame {
  position: relative;
  width: 100%;
  height: 480px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  backdrop-filter: blur(4px);
}

.hud-reticle {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: rgba(255, 255, 255, 0.3);
  border-style: solid;
  pointer-events: none;
  z-index: 10;
}
.reticle-tl {
  top: 0;
  left: 0;
  border-width: 2px 0 0 2px;
}
.reticle-tr {
  top: 0;
  right: 0;
  border-width: 2px 2px 0 0;
}
.reticle-bl {
  bottom: 0;
  left: 0;
  border-width: 0 0 2px 2px;
}
.reticle-br {
  bottom: 0;
  right: 0;
  border-width: 0 2px 2px 0;
}

/* Main Mango Element */
.mango-wrapper {
  position: relative;
  width: 310px;
  height: 390px;
  transform-style: preserve-3d;
  will-change: transform;
  pointer-events: none;
  filter: drop-shadow(0 25px 35px rgba(0, 0, 0, 0.6));
  z-index: 2;
}

.mango-svg {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  backface-visibility: hidden;
}

.mango-unripe {
  z-index: 1;
}

.mango-ripe {
  z-index: 2;
  mask: linear-gradient(
    to right,
    #000 0%,
    #000 calc(var(--phase-x) - 10%),
    transparent calc(var(--phase-x) + 10%),
    transparent 100%
  );
  -webkit-mask: linear-gradient(
    to right,
    #000 0%,
    #000 calc(var(--phase-x) - 10%),
    transparent calc(var(--phase-x) + 10%),
    transparent 100%
  );
}

.mango-light-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
  mix-blend-mode: color-dodge;
  opacity: 0.5;
}

/* --- FALLING DROPS OVERLAY --- */
.game-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 20;
}

.mini-mango {
  position: absolute;
  width: 28px;
  height: 35px;
  pointer-events: none;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
  will-change: transform;
  top: 0;
  left: 0;
}

/* Bottom Controls & Basket Section */
.bottom-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  position: relative;
  height: 120px;
  pointer-events: none;
}

/* High-Performance Wireframe Basket */
.basket {
  position: absolute;
  top: 0;
  left: 0;
  width: 85px;
  height: 35px;
  pointer-events: none;
  z-index: 10;
  will-change: transform;
  transform: translate3d(177.5px, 0, 0); /* Initial center position */
}

.basket-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.basket-body {
  fill: rgba(255, 255, 255, 0.05);
  stroke: rgba(255, 255, 255, 0.4);
  stroke-width: 1.5;
  transition: stroke 0.15s ease, fill 0.15s ease, filter 0.15s ease;
}

.basket-caught .basket-body {
  stroke: #a3e635;
  fill: rgba(163, 230, 53, 0.25);
  filter: drop-shadow(0 0 12px rgba(163, 230, 53, 0.6));
}

/* Counter Display & Hint */
.counter-container {
  position: absolute;
  top: 55px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.counter-display {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--text-main);
  font-variant-numeric: tabular-nums;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 16px;
  border-radius: 20px;
  backdrop-filter: blur(8px);
  transition: transform 0.1s ease, border-color 0.15s ease, color 0.15s ease;
}

.counter-bump {
  transform: scale(1.1);
  border-color: rgba(163, 230, 53, 0.5);
  color: #a3e635;
}

.click-hint {
  font-size: 0.65rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-sub);
  font-weight: 500;
}

/* --- FOOTER --- */
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-sub);
  letter-spacing: 2px;
  text-transform: uppercase;
  z-index: 10;
}
