/* ═══════════════════════════════════════════════════════════
   ECLYSS WEB — RESET + BASE
   ═══════════════════════════════════════════════════════════ */

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

html {
  height: 100%;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  height: 100%;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: var(--text-md);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
}

#app {
  height: 100%;
  display: flex;
  flex-direction: column;
}

a { color: var(--text-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

img, video { max-width: 100%; display: block; }

ul, ol { list-style: none; }

/* ── Utility classes ─────────────────────────────────────── */
.hidden      { display: none !important; }
.invisible   { visibility: hidden !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.flex        { display: flex; }
.flex-col    { display: flex; flex-direction: column; }
.flex-1      { flex: 1; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-xs      { gap: var(--sp-xs); }
.gap-sm      { gap: var(--sp-sm); }
.gap-md      { gap: var(--sp-md); }

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.text-secondary { color: var(--text-secondary); }
.text-tertiary  { color: var(--text-tertiary); }
.text-accent    { color: var(--text-accent); }
.text-success   { color: var(--success); }
.text-error     { color: var(--error); }
.text-sm        { font-size: var(--text-sm); }
.text-xs        { font-size: var(--text-xs); }
.font-medium    { font-weight: 500; }
.font-semibold  { font-weight: 600; }
.font-bold      { font-weight: 700; }

/* ── Splash screen ───────────────────────────────────────── */
.splash {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  gap: var(--sp-md);
  animation: fadeIn 0.4s ease;
}

.splash__logo {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 800;
  color: white;
  box-shadow: var(--shadow-purple);
  animation: scaleIn 0.5s cubic-bezier(0.34,1.56,0.64,1);
}

.splash__name {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.splash__loader {
  width: 120px;
  height: 2px;
  background: var(--border-default);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-top: var(--sp-lg);
}

.splash__bar {
  height: 100%;
  background: var(--gradient-h);
  border-radius: var(--radius-full);
  animation: loadBar 1.2s ease-in-out infinite;
}

@keyframes loadBar {
  0%   { width: 0%; margin-left: 0%; }
  50%  { width: 70%; margin-left: 15%; }
  100% { width: 0%; margin-left: 100%; }
}
