/* ===========================
   Global / Reset
   =========================== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #0D0020;
  -webkit-tap-highlight-color: transparent;
}

/* Safe area for sticky bar on iPhone */
.pb-safe {
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* ===========================
   Steam CTA Button
   =========================== */
.steam-btn {
  background: linear-gradient(135deg, #7C3AED 0%, #EC4899 100%);
  color: #fff;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: opacity 0.2s, transform 0.15s;
}

.steam-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 60%);
  pointer-events: none;
}

.steam-btn:active {
  opacity: 0.85;
  transform: scale(0.98);
}

/* ===========================
   Feature cards
   =========================== */
.feature-card {
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.25);
  transition: background 0.2s;
}

.feature-card:hover {
  background: rgba(124, 58, 237, 0.22);
}

/* ===========================
   Badge cards
   =========================== */
.badge-card {
  background: rgba(243, 232, 255, 0.06);
  border: 1px solid rgba(243, 232, 255, 0.12);
}

/* ===========================
   Screenshot scroll
   =========================== */
.screenshot-scroll {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.screenshot-scroll::-webkit-scrollbar {
  display: none;
}

.screenshot-thumb {
  width: 260px;
  height: auto;
  object-fit: cover;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.2s, border-color 0.2s;
}

.screenshot-thumb:active {
  transform: scale(0.97);
}

/* ===========================
   Character cards
   =========================== */
.char-card {
  border: 1px solid rgba(236, 72, 153, 0.2);
  transition: transform 0.2s;
}

.char-card:active {
  transform: scale(0.97);
}

/* ===========================
   Fade-in on scroll
   =========================== */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   Lightbox
   =========================== */
#lightbox {
  cursor: zoom-out;
  animation: fadeIn 0.15s ease;
}

#lightbox.hidden {
  display: none;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ===========================
   Logo glow
   =========================== */
@keyframes glowPulse {
  0%, 100% { filter: drop-shadow(0 4px 24px rgba(236, 72, 153, 0.6)); }
  50%       { filter: drop-shadow(0 4px 40px rgba(236, 72, 153, 1)); }
}

.logo-glow {
  animation: glowPulse 3s ease-in-out infinite;
}

/* ===========================
   Tag pills (genre / feature)
   =========================== */
.tag-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 9999px;
  padding: 3px 10px;
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
}

/* ===========================
   Section label
   =========================== */
.section-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #F472B6;
  margin-bottom: 0.4rem;
}

/* ===========================
   Game system cards
   =========================== */
.system-card {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.12) 0%, rgba(244, 114, 182, 0.08) 100%);
  border: 1px solid rgba(139, 92, 246, 0.3);
}

/* Flow step chips */
.flow-step {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 0.5rem;
  padding: 4px 8px;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.85);
}

/* Stress bar */
.stress-bar {
  background: linear-gradient(90deg, #22c55e 0%, #eab308 50%, #ef4444 100%);
  transition: width 0.6s ease;
}

/* Random tag chips */
.rand-tag {
  background: rgba(139, 92, 246, 0.2);
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: 9999px;
  padding: 2px 8px;
  font-size: 0.65rem;
  font-weight: 700;
  color: #E9D5FF;
}

/* ===========================
   Volume cards
   =========================== */
.volume-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===========================
   Scrollable rows (char / screenshot)
   =========================== */
.char-card {
  border: 1px solid rgba(244, 114, 182, 0.25);
  transition: transform 0.2s;
}

.char-card:active {
  transform: scale(0.97);
}
