/* ═══════════════════════════════════════
   BASE STYLES
═══════════════════════════════════════ */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  height: 100%;
}

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--txt);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.mono {
  font-family: 'JetBrains Mono', monospace;
}

input, select, textarea, button {
  font-family: inherit;
}

/* ─── Animations ─── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes pop {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .45; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes shimmer {
  to { background-position: 200% center; }
}

@keyframes loadBar {
  from { width: 0; }
  to { width: 100%; }
}

/* ─── Splash Screen ─── */
#splash {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #0F0D0A 0%, #1A1712 50%, #2A2620 100%);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  animation: fadeOut 0.5s ease 2.8s forwards;
}

@keyframes fadeOut {
  to {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
  }
}

.splash-bg-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(0deg, rgba(193, 122, 36, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(193, 122, 36, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.5;
}

.splash-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(193, 122, 36, 0.2), transparent);
  transform: translate(-50%, -50%);
  filter: blur(60px);
  animation: splashPulse 3s ease-in-out infinite;
}

@keyframes splashPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.2); }
}

.splash-logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  position: relative;
  z-index: 1;
  animation: splashIn 0.6s 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes splashIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.splash-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.splash-icon svg {
  width: 56px;
  height: 56px;
}

.splash-title-wrap {
  text-align: center;
}

.splash-title {
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #F0C060, #C17A24, #E8A84A);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 6px;
}

.splash-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.splash-divider {
  width: 48px;
  height: 1.5px;
  margin: 4px auto 0;
  background: linear-gradient(90deg, transparent, rgba(193, 122, 36, 0.6), transparent);
}

.splash-tagline {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 0.04em;
  margin-top: 6px;
}

.splash-bottom {
  position: absolute;
  bottom: 48px;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  animation: splashIn 0.7s 0.35s cubic-bezier(0.34, 1.4, 0.64, 1) both;
}

.splash-bar-wrap {
  width: 140px;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
}

.splash-bar {
  height: 100%;
  background: linear-gradient(90deg, #C17A24, #E8A84A);
  border-radius: 2px;
  animation: loadBar 1.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.splash-dn-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.splash-dn-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: splashIn 0.5s 1.6s both;
}

/* ─── Placeholder ─── */
.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--txt3);
  font-size: 14px;
}

/* ─── Scrollbar ─── */
.scroll {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  min-height: 0;
  overscroll-behavior: contain;
}

.scroll::-webkit-scrollbar {
  width: 4px;
}

.scroll::-webkit-scrollbar-track {
  background: transparent;
}

.scroll::-webkit-scrollbar-thumb {
  background: var(--bdr);
  border-radius: 2px;
}
