/* ═══════════════════════════════════════
   YIANNIS KOROLYOV — style.css
   ═══════════════════════════════════════ */

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

:root {
  --black: #000;
  --white: #fff;
  --off: #eaeaea;
  --grey: #555;
  --accent: #ff5e00;
  --accent-dim: rgba(255, 94, 0, 0.15);
  --accent-glow: rgba(255, 94, 0, 0.06);
  --sans: -apple-system, 'SF Pro Display', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --mono: 'Space Mono', 'SF Mono', monospace;
}

html { font-size: 16px; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--sans);
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

::selection { background: var(--accent-dim); color: var(--white); }

/* ── GRAIN ── */
.grain {
  position: fixed; inset: 0; z-index: 9998;
  pointer-events: none; opacity: 0.035;
  mix-blend-mode: overlay;
}
.grain svg { width: 100%; height: 100%; }

/* ── BOOT ── */
.boot {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--black);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 20px;
  transition: opacity 0.8s cubic-bezier(.4,0,.2,1), visibility 0.8s;
}
.boot.done { opacity: 0; visibility: hidden; pointer-events: none; }
.boot-mark {
  font-family: var(--sans);
  font-weight: 700; font-size: 20px;
  letter-spacing: 0.5em; color: var(--white);
  opacity: 0; animation: bootFade 0.5s ease 0.15s forwards;
}
.boot-track {
  width: 180px; height: 2px;
  background: rgba(255,255,255,0.06);
  overflow: hidden; border-radius: 1px;
}
.boot-fill {
  height: 100%; width: 0%;
  background: var(--accent);
  border-radius: 1px;
  transition: width 0.12s ease;
}
@keyframes bootFade { to { opacity: 1; } }

/* ── TOP STRIP ── */
.strip {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; justify-content: center;
  align-items: center; gap: 14px;
  padding: 8px 12px;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-family: var(--mono);
  font-size: 8px; letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  opacity: 0; transition: opacity 0.8s ease 0.4s;
}
.strip.visible { opacity: 1; }
.strip .sep { color: rgba(255,255,255,0.06); }

/* ── GLOBE ── */
#globeCanvas {
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1; pointer-events: none;
  opacity: 0; transition: opacity 1.4s ease 0.4s;
}
#globeCanvas.visible { opacity: 1; }

/* ── HERO ── */
.hero {
  position: relative; z-index: 10;
  min-height: 100dvh;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  padding: 60px 16px 160px;
  opacity: 0;
  transition: opacity 1s cubic-bezier(.4,0,.2,1) 0.2s;
}
.hero.visible { opacity: 1; }

.hero-tag {
  font-family: var(--mono);
  font-size: 8px; letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.18);
  margin-bottom: 18px;
  opacity: 0; transform: translateY(6px);
  animation: slideUp 0.7s ease 1.1s forwards;
}

.hero-name {
  font-family: var(--sans);
  font-weight: 800; text-transform: uppercase;
  line-height: 0.88; letter-spacing: -0.04em;
  color: var(--white); text-align: center;
  white-space: nowrap; position: relative;
}
.hero-name span { display: block; }

/* subtle accent glow behind name */
.hero-name::after {
  content: ''; position: absolute;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 120%; height: 200%;
  background: radial-gradient(ellipse at center, var(--accent-glow) 0%, transparent 60%);
  pointer-events: none; z-index: -1;
  animation: pulseGlow 4s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }
}

.hero-role {
  font-family: var(--mono);
  font-size: 9px; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--grey);
  margin-top: 24px;
  opacity: 0; transform: translateY(6px);
  animation: slideUp 0.7s ease 1.4s forwards;
}

.hero-line {
  width: 1px; height: 28px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  margin: 24px 0;
  opacity: 0; animation: slideUp 0.7s ease 1.55s forwards;
}

/* ── INSTAGRAM (prominent) ── */
.ig-section {
  display: flex; flex-direction: column;
  align-items: center; gap: 8px;
  opacity: 0; transform: translateY(6px);
  animation: slideUp 0.7s ease 1.7s forwards;
}

.ig-note {
  font-family: var(--mono);
  font-size: 8px; letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
}

.hero-ig {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--white); text-decoration: none;
  padding: 12px 28px;
  border: 1px solid var(--accent);
  border-radius: 100px;
  transition: all 0.35s cubic-bezier(.4,0,.2,1);
  position: relative;
  overflow: hidden;
}
.hero-ig::before {
  content: ''; position: absolute; inset: 0;
  background: var(--accent);
  opacity: 0; transition: opacity 0.35s ease;
}
.hero-ig:hover::before, .hero-ig:active::before { opacity: 0.12; }
.hero-ig:hover, .hero-ig:active {
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-dim);
}
.hero-ig span { position: relative; z-index: 1; }
.hero-ig .arr {
  font-size: 13px; position: relative; z-index: 1;
  transition: transform 0.3s ease;
}
.hero-ig:hover .arr { transform: translate(2px, -2px); }

@keyframes slideUp { to { opacity: 1; transform: translateY(0); } }

/* ── accent dot pulse by IG ── */
.ig-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
  animation: dotPulse 2s ease-in-out infinite;
  margin-right: 6px;
}
@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

/* ── GAME HINT ── */
.game-hint {
  position: fixed; bottom: 20px;
  left: 50%; transform: translateX(-50%);
  z-index: 200;
  font-family: var(--mono);
  font-size: 9px; letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0; transition: opacity 0.8s ease 2.5s;
  cursor: pointer; padding: 10px 20px;
  border: 1px solid rgba(255, 94, 0, 0.2);
  border-radius: 100px;
  -webkit-tap-highlight-color: transparent;
  animation: hintPulse 2.5s ease-in-out infinite;
  animation-delay: 3s;
}
.game-hint.visible { opacity: 1; }
.game-hint:active {
  background: rgba(255, 94, 0, 0.08);
  border-color: var(--accent);
}
@keyframes hintPulse {
  0%, 100% { border-color: rgba(255,94,0,0.15); box-shadow: none; }
  50% { border-color: rgba(255,94,0,0.4); box-shadow: 0 0 16px rgba(255,94,0,0.08); }
}

/* ── GAME OVERLAY ── */
.game-overlay {
  position: fixed; inset: 0; z-index: 5000;
  background: rgba(0,0,0,0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: none; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 16px;
  -webkit-tap-highlight-color: transparent;
}
.game-overlay.open { display: flex; }

.game-close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: 1px solid rgba(255,255,255,0.08);
  border-radius: 100px;
  color: rgba(255,255,255,0.3);
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.12em; cursor: pointer;
  padding: 8px 16px; text-transform: uppercase;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.game-close:active, .game-close:hover {
  color: var(--white);
  border-color: rgba(255,255,255,0.2);
}

.game-hud {
  display: flex; gap: 24px; margin-bottom: 12px;
  font-family: var(--mono); font-size: 9px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}
.game-hud span em {
  font-style: normal; color: var(--off);
}

#gameCanvas {
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px; display: block;
  max-width: 100%; touch-action: none;
  background: rgba(255,255,255,0.015);
}

.game-msg {
  margin-top: 12px;
  font-family: var(--mono); font-size: 9px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.2);
  text-align: center;
}

/* reward tiers display */
.game-rewards {
  display: flex; gap: 16px;
  margin-top: 10px;
  font-family: var(--mono); font-size: 8px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.15);
}
.game-rewards .tier {
  display: flex; align-items: center; gap: 4px;
}
.game-rewards .tier-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(255,255,255,0.12);
  flex-shrink: 0;
}
.game-rewards .tier.unlocked .tier-dot { background: var(--accent); }
.game-rewards .tier.unlocked { color: var(--accent); }

.game-tap {
  position: absolute; inset: 60px 0 0 0;
  z-index: 5001; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* ── PRIZE MODAL ── */
.prize-backdrop {
  position: fixed; inset: 0; z-index: 6000;
  background: rgba(0,0,0,0.94);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  display: none; align-items: center;
  justify-content: center; padding: 20px;
}
.prize-backdrop.open { display: flex; }

.prize-box {
  text-align: center; padding: 36px 24px;
  border: 1px solid rgba(255, 94, 0, 0.2);
  border-radius: 20px;
  background: rgba(255,94,0,0.03);
  max-width: 360px; width: 100%;
  animation: prizeIn 0.5s cubic-bezier(.4,0,.2,1);
}
@keyframes prizeIn {
  from { opacity: 0; transform: scale(0.9) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.prize-box .prize-icon {
  font-size: 36px; margin-bottom: 12px;
  display: block;
}

.prize-box h2 {
  font-family: var(--sans); font-weight: 700;
  font-size: 18px; letter-spacing: 0.08em;
  text-transform: uppercase; margin-bottom: 4px;
  color: var(--white);
}
.prize-box .prize-tier-name {
  font-family: var(--mono); font-size: 9px;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}
.prize-box p {
  font-family: var(--mono); font-size: 9px;
  letter-spacing: 0.1em; color: var(--grey);
  line-height: 1.7; margin-bottom: 20px;
}
.prize-code {
  display: inline-block;
  font-family: var(--mono); font-size: 15px;
  letter-spacing: 0.3em; color: var(--accent);
  padding: 14px 24px;
  border: 1px solid rgba(255,94,0,0.25);
  border-radius: 10px;
  background: rgba(255,94,0,0.05);
  margin-bottom: 14px;
  user-select: all; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: all 0.2s;
}
.prize-code:active {
  background: rgba(255,94,0,0.12);
}
.prize-sub {
  font-family: var(--mono); font-size: 7px;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(255,255,255,0.18);
}
.prize-close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: 1px solid rgba(255,255,255,0.08);
  border-radius: 100px;
  color: rgba(255,255,255,0.3);
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.12em; cursor: pointer;
  padding: 8px 16px; text-transform: uppercase;
  transition: all 0.2s;
}
.prize-close:active, .prize-close:hover {
  color: var(--white);
  border-color: rgba(255,255,255,0.2);
}

/* ── FLOATING ACCENTS (front page decoration) ── */
.accent-line {
  position: fixed; z-index: 5;
  background: var(--accent);
  opacity: 0.04;
  pointer-events: none;
}
.accent-line--l {
  left: 0; top: 30%; width: 1px; height: 20%;
  animation: accentDrift 6s ease-in-out infinite;
}
.accent-line--r {
  right: 0; bottom: 25%; width: 1px; height: 15%;
  animation: accentDrift 6s ease-in-out 3s infinite;
}
@keyframes accentDrift {
  0%, 100% { opacity: 0.03; height: 15%; }
  50% { opacity: 0.07; height: 22%; }
}

/* ── DESKTOP TWEAKS ── */
@media (min-width: 769px) {
  .strip { gap: 24px; font-size: 9px; letter-spacing: 0.15em; padding: 10px 20px; }
  .hero { padding: 80px 24px 160px; }
  .hero-tag { font-size: 9px; }
  .hero-role { font-size: 10px; letter-spacing: 0.3em; }
  .hero-ig { font-size: 12px; padding: 14px 32px; }
  .game-hint { font-size: 9px; bottom: 24px; }
  .game-rewards { gap: 20px; font-size: 9px; }
}
