/* style.css — Particle Carousel */

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

html, body {
  height: 100%;
  overflow: hidden;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: #0a0d14;
  color: #fff;
}

/* ── Canvas ──────────────────────────────────────────────── */
#pc-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  cursor: grab;
}

#pc-canvas:active {
  cursor: grabbing;
}

/* ── Captcha overlay ─────────────────────────────────────── */
#pc-captcha {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  pointer-events: none;
}

.pc-captcha-box {
  pointer-events: auto;
  background: rgba(20, 24, 40, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 2.4rem 3rem;
  text-align: center;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.55);
  max-width: 380px;
  width: 90vw;
}

.pc-captcha-box h2 {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #c8d0e8;
  margin-bottom: 0.5rem;
}

.pc-captcha-box p {
  font-size: 0.85rem;
  color: #7a849e;
  margin-bottom: 1.6rem;
  line-height: 1.5;
}

/* Fake puzzle grid */
.pc-captcha-puzzle {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 1.4rem;
}

.pc-puzzle-tile {
  aspect-ratio: 1;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  user-select: none;
}

.pc-puzzle-tile:hover {
  background: rgba(255, 255, 255, 0.12);
}

.pc-puzzle-tile.selected {
  border-color: #1db954;
  background: rgba(29, 185, 84, 0.18);
}

#pc-captcha-btn {
  display: inline-block;
  padding: 0.65rem 2.4rem;
  background: linear-gradient(135deg, #1db954 0%, #158a3e 100%);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: opacity 0.18s, transform 0.12s;
}

#pc-captcha-btn:hover {
  opacity: 0.9;
  transform: scale(1.04);
}

#pc-captcha-btn:active {
  transform: scale(0.97);
}

/* ── Carousel UI ──────────────────────────────────────────── */
#pc-ui {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 1.8rem 1.2rem;
}

/* Platform label */
#pc-platform-label {
  font-size: clamp(1.4rem, 5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.7);
  pointer-events: none;
  margin-top: 1.2rem;
}

/* Visit link */
#pc-link {
  pointer-events: auto;
  display: inline-block;
  padding: 0.6rem 2.2rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 50px;
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  transition: background 0.2s, border-color 0.2s, transform 0.12s;
  backdrop-filter: blur(6px);
  background: rgba(255, 255, 255, 0.06);
}

#pc-link:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.6);
  transform: scale(1.04);
}

/* Bottom bar: dots + arrows */
.pc-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
}

/* Dot indicators */
.pc-dots {
  display: flex;
  gap: 8px;
}

.pc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transition: background 0.3s, transform 0.2s;
}

.pc-dot.active {
  background: #fff;
  transform: scale(1.4);
}

/* Arrow buttons */
.pc-arrows {
  display: flex;
  gap: 1.6rem;
  pointer-events: auto;
}

.pc-arrow {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s, transform 0.12s;
  backdrop-filter: blur(6px);
}

.pc-arrow:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: scale(1.1);
}

.pc-arrow:active {
  transform: scale(0.93);
}

/* ── Hint bar ─────────────────────────────────────────────── */
#pc-hint {
  position: fixed;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.28);
  letter-spacing: 0.06em;
  pointer-events: none;
  z-index: 6;
  white-space: nowrap;
}

/* ── Drop overlay ─────────────────────────────────────────── */
#pc-drop-msg {
  position: fixed;
  inset: 0;
  background: rgba(10, 13, 20, 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.7);
  z-index: 20;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  letter-spacing: 0.1em;
}

body.dragging #pc-drop-msg {
  opacity: 1;
}
