/* ============================================================
   virtualitoy® — styles.css
   Fonts: Rubik 700 (logo only) · Inter 800 (all copy)
   ============================================================ */

/* ── CSS VARIABLES ── */
:root {
  --pink:          #FF1B8D;
  --pink-dim:      rgba(255,27,141,0.12);
  --pink-border:   rgba(255,27,141,0.25);
  --purple:        #c84bff;
  --purple-dim:    rgba(155,75,255,0.12);
  --purple-border: rgba(155,75,255,0.25);
  --cyan:          #00d4ff;
  --cyan-dim:      rgba(0,212,255,0.1);
  --cyan-border:   rgba(0,212,255,0.2);
  --gold:          #FFD700;
  --gold-dim:      rgba(255,215,0,0.1);
  --gold-border:   rgba(255,215,0,0.2);
  --bg:            #080808;
  --bg3:           #161616;
  --border:        rgba(255,255,255,0.07);
  --text:          #ffffff;
  --text-dim:      rgba(255,255,255,0.65);
  --text-faint:    rgba(255,255,255,0.38);
  --sys:           'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --rubik:         'Rubik', 'Inter', sans-serif;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ── BODY ── */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sys);
  min-height: 100vh;
  overflow-x: hidden;
}

/* subtle ambient glow background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(255,27,141,0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(155,75,255,0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 60% 80%, rgba(0,212,255,0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* ── UTILITY ── */
.pink { color: var(--pink); }
.gray { color: #777777; }

/* ============================================================
   NAV
   ============================================================ */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8,8,8,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 56px;
}

/* nav logo — Rubik only */
.nav-logo {
  font-family: var(--rubik);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 0.03em;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: flex-start;
  padding-top: 5px;
}
.nav-logo .i-wrap { position: relative; display: inline-block; }
.nav-logo .i-star {
  position: absolute;
  left: 50%;
  bottom: calc(62% + 5px);
  display: block;
  line-height: 0;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.nav-logo .i-star.visible { opacity: 1; }
.nav-logo sup {
  font-size: 9px;
  font-weight: 300;
  color: rgba(255,255,255,0.4);
  margin-left: 1px;
  align-self: flex-start;
  margin-top: 3px;
}

/* nav letter reveal */
.nav-logo .nl {
  display: inline-block;
  opacity: 0;
  font-weight: 700;
  transform: translateY(6px);
  transition: opacity 0.1s ease, transform 0.1s ease;
}
.nav-logo .nl.visible { opacity: 1; transform: translateY(0); }
.nav-logo .nav-reg { opacity: 0; transition: opacity 0.2s ease; }
.nav-logo .nav-reg.visible { opacity: 1; }

/* nav star animations */
@keyframes navstarspin { 0% { transform: translateX(-50%) rotate(0deg); } 100% { transform: translateX(-50%) rotate(360deg); } }
@keyframes navstarloop { 0% { transform: translateX(-50%) rotate(0deg); } 100% { transform: translateX(-50%) rotate(360deg); } }
.nav-logo .i-star.spin      { animation: navstarspin 0.7s cubic-bezier(0.4,0,0.2,1) forwards; }
.nav-logo .i-star.spin-loop { animation: navstarloop 4s linear infinite; }

/* nav links */
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-family: var(--sys);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.cta {
  color: var(--pink);
  border: 1px solid var(--pink-border);
  padding: 6px 16px;
  border-radius: 20px;
  transition: background 0.2s, color 0.2s;
}
.nav-links a.cta:hover { background: var(--pink); color: #fff; }

/* ============================================================
   HERO BAND
   ============================================================ */
.hero-band {
  text-align: center;
  padding: 28px 20px 20px;
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

/* hero logo — Rubik only */
.hero-logo {
  font-family: var(--rubik);
  font-weight: 700;
  font-size: clamp(34px, 5.6vw, 58px);
  letter-spacing: 0.03em;
  line-height: 1;
  color: var(--text);
  display: inline-flex;
  align-items: flex-end;
}
.hero-logo .i-wrap { position: relative; display: inline-block; }
.hero-logo .i-star {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(62% + 10px);
  display: block;
  line-height: 0;
}
.hero-logo sup {
  font-family: var(--rubik);
  font-size: clamp(13px, 1.8vw, 20px);
  font-weight: 300;
  color: rgba(255,255,255,0.4);
  align-self: flex-start;
  margin-top: 8px;
  margin-left: 2px;
}

/* hero letter reveal */
.hero-logo .hl {
  display: inline-block;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.12s ease, transform 0.12s ease;
}
.hero-logo .hl.visible { opacity: 1; transform: translateY(0); }
.hero-logo .i-star { opacity: 0; transition: opacity 0.2s ease; }
.hero-logo .i-star.visible { opacity: 1; }
.hero-logo sup { opacity: 0; transition: opacity 0.3s ease; }
.hero-logo sup.visible { opacity: 1; }

/* hero star spin */
@keyframes herostarspin { 0% { transform: translateX(-50%) rotate(0deg); } 100% { transform: translateX(-50%) rotate(360deg); } }
.hero-logo .i-star.spin { animation: herostarspin 0.8s cubic-bezier(0.4,0,0.2,1) forwards; }

/* hero tagline */
.hero-tagline {
  font-family: var(--sys);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-top: 8px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.hero-tagline.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   MAIN GRID
   ============================================================ */
.main-grid {
  display: grid;
  grid-template-columns: 1fr 600px 1fr;
  gap: 16px;
  padding: 20px 24px 32px;
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
}

.col { display: flex; flex-direction: column; gap: 12px; }

/* ── CARDS ── */
.card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  transition: border-color 0.2s;
}
.card:hover { border-color: rgba(255,255,255,0.14); }

.card-label {
  font-family: var(--sys);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 8px;
}

/* OG headline */
.og-card .headline {
  font-family: var(--sys);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.35;
  color: rgba(255,255,255,0.88);
}
.og-card .body {
  font-family: var(--sys);
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.7;
  margin-top: 8px;
}

/* stat card */
.stat-card .stat {
  font-family: var(--sys);
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  color: var(--text);
}
.stat-card .stat-sub {
  font-family: var(--sys);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: 4px;
}

/* share pills */
.share-row { display: flex; gap: 7px; flex-wrap: wrap; }
.share-pill {
  font-family: var(--sys);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}
.share-pill:hover { background: var(--pink); border-color: var(--pink); color: #fff; }

/* ============================================================
   GAME WINDOW
   ============================================================ */
.game-col { display: flex; flex-direction: column; gap: 10px; }

.game-window {
  background: linear-gradient(168deg, #2d0a40 0%, #1c0a30 40%, #0e0520 100%);
  border-radius: 14px;
  border: 1px solid rgba(180,0,255,0.22);
  height: 768px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.3s, transform 0.3s;
}
.game-window:hover { border-color: rgba(255,27,141,0.5); transform: translateY(-2px); }
.game-window::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(255,27,141,0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 80%, rgba(155,75,255,0.1) 0%, transparent 50%);
}

/* floating gem decorations */
.gem { position: absolute; border-radius: 2px; transform: rotate(45deg); }
@keyframes float { 0%,100% { transform: rotate(45deg) translateY(0); } 50% { transform: rotate(45deg) translateY(-5px); } }
.gem                { animation: float 3s ease-in-out infinite; }
.gem:nth-child(2)   { animation-delay: 0.5s; }
.gem:nth-child(3)   { animation-delay: 1s; }
.gem:nth-child(4)   { animation-delay: 1.5s; }
.gem:nth-child(5)   { animation-delay: 0.8s; }

.game-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.now-playing      { font-family: var(--sys); font-size: 9px; letter-spacing: 0.25em; text-transform: uppercase; color: rgba(255,255,255,0.3); }
.game-emoji-wrap  { font-size: 52px; line-height: 1; filter: drop-shadow(0 0 20px rgba(255,27,141,0.4)); }
.game-title-text  { font-family: var(--sys); font-size: 16px; font-weight: 700; color: #fff; letter-spacing: 0.04em; }
.game-sub         { font-family: var(--sys); font-size: 10px; color: rgba(255,255,255,0.3); letter-spacing: 0.08em; }

.play-btn {
  font-family: var(--sys);
  background: var(--pink);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 10px 28px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  margin-top: 6px;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 20px rgba(255,27,141,0.35);
}
.play-btn:hover  { transform: scale(1.05); box-shadow: 0 6px 28px rgba(255,27,141,0.5); }
.play-btn:active { transform: scale(0.98); }

.game-footer-note {
  font-family: var(--sys);
  position: absolute;
  bottom: 12px;
  font-size: 9px;
  color: rgba(255,255,255,0.2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 2;
}

/* ============================================================
   RIGHT COL
   ============================================================ */
.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  margin-top: 4px;
}
.screenshot-thumb {
  aspect-ratio: 1;
  border-radius: 6px;
  background: linear-gradient(135deg, #2a0a3a, #1a1060);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
  overflow: hidden;
  background-size: 105% !important;
  background-position: center !important;
}
.screenshot-thumb:hover { transform: scale(1.06); border-color: var(--pink-border); }

.rating-row  { display: flex; align-items: center; gap: 12px; }
.rating-big  { font-family: var(--sys); font-size: 42px; font-weight: 800; color: var(--text); line-height: 1; }
.stars       { color: #FFD700; font-size: 14px; letter-spacing: 2px; }
.rating-sub  { font-family: var(--sys); font-size: 9px; color: var(--text-faint); letter-spacing: 0.1em; margin-top: 2px; text-transform: uppercase; }

.coming-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.coming-pill  { font-family: var(--sys); border-radius: 20px; padding: 5px 12px; font-size: 10px; font-weight: 500; letter-spacing: 0.04em; cursor: pointer; transition: opacity 0.2s; }
.coming-pill:hover { opacity: 0.8; }

/* ============================================================
   GALLERY FEED
   ============================================================ */
.feed-section {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 20px 0 28px;
  overflow: hidden;
}
.feed-label {
  font-family: var(--sys);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
  text-align: center;
  margin-bottom: 14px;
}
.feed-track {
  display: flex;
  gap: 10px;
  animation: scrollfeed 22s linear infinite;
  width: max-content;
}
.feed-track:hover { animation-play-state: paused; }
@keyframes scrollfeed { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.feed-thumb {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  background: linear-gradient(135deg, #2a0a3a, #1a1060);
  border: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
  cursor: pointer;
  transition: border-color 0.2s;
}
.feed-thumb:hover { border-color: var(--pink-border); }



/* ============================================================
   SCROLLING GEMS
   ============================================================ */

.feed-thumb img {
  width: 80%;
  height: 80%;
  object-fit: contain;
  border-radius: 10px;
  display: block;
}

/* ============================================================
   PREVENT THEFT
   ============================================================ */

.feed-thumb img {
  -webkit-user-drag: none;
  pointer-events: none;
}

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

.screenshot-thumb {
  pointer-events: all;
  cursor: pointer;
}


/* ============================================================
   FOOTER
   ============================================================ */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-logo {
  font-family: var(--sys);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-faint);
  letter-spacing: 0.15em;
}
.footer-logo sup {
  font-size: 7px;
  color: rgba(255,255,255,0.25);
  font-weight: 300;
}
.footer-tag {
  font-family: var(--sys);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-faint);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.footer-copy {
  font-family: var(--sys);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-faint);
  letter-spacing: 0.15em;
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
#lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}
#lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  cursor: pointer;
  animation: lbfadein 0.2s ease;
}
#lightbox-box {
  position: relative;
  z-index: 1001;
  animation: lbpopup 0.25s cubic-bezier(0.34,1.56,0.64,1);
}
#lightbox-img {
  display: block;
  width: 512px;
  height: 512px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6);
}
#lightbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, transform 0.15s;
  z-index: 1002;
  line-height: 1;
}
#lightbox-close:hover { background: rgba(0,0,0,0.9); transform: scale(1.15); }
@keyframes lbfadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes lbpopup  { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: scale(1); } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .main-grid { grid-template-columns: 1fr; padding: 16px; }
  .game-col { width: 100%; }
  .game-window {
    height: auto;
    aspect-ratio: 600 / 768;
    padding-bottom: 0;
  }
  nav { padding: 0 16px; }
  .nav-links a:not(.cta) { display: none; }
  footer { flex-direction: column; gap: 8px; text-align: center; }
}