/* ========================================
   HOME — Splash, Auth, Onboarding, Home Screen, Sessions
   Card Game Minimal Edition
   ======================================== */

/* ===== SPLASH ===== */
#splash {
  align-items: center;
  justify-content: center;
  gap: 28px;
  background: var(--bg);
  z-index: 100;
}
#splash::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, var(--accent-1-glow) 0%, transparent 70%);
  top: 22%;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

/* Card deck logo — stacked cards */
#splash .logo-mark {
  width: 80px;
  height: 80px;
  border-radius: var(--radius);
  background: var(--card-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  animation: float 3s ease-in-out infinite;
  box-shadow: var(--card-shadow-lg);
  border: 1px solid var(--card-border);
  position: relative;
}
/* Stacked card layers behind logo */
#splash .logo-mark::before,
#splash .logo-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  z-index: -1;
}
#splash .logo-mark::before {
  transform: rotate(-4deg) translate(-2px, 3px);
  opacity: 0.6;
}
#splash .logo-mark::after {
  transform: rotate(3deg) translate(2px, 5px);
  opacity: 0.35;
}

#splash .logo-text {
  font-size: 42px;
  letter-spacing: -2px;
  font-weight: 800;
}
#splash .tagline {
  color: var(--text-dim);
  font-size: 14px;
  letter-spacing: 1px;
  margin-top: -12px;
  text-transform: lowercase;
}
#splash .splash-cta {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  padding: 0 40px;
}

/* ===== AUTH ===== */
#auth {
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 40px 32px;
  text-align: center;
}
#auth .logo-mark {
  margin-bottom: 8px;
}
#auth .btn {
  margin-top: 16px;
}

/* Auth multi-step */
.auth-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  animation: authStepIn 0.3s ease forwards;
}
@keyframes authStepIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.auth-greeting strong {
  color: var(--accent-1);
}

/* ===== GUEST AUTH ===== */
#guestAuth {
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 40px 32px;
  text-align: center;
}
.invite-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  border-radius: 100px;
  background: var(--accent-1-bg);
  color: var(--accent-1);
  font-size: 13px;
  font-weight: 600;
  font-family: "DM Sans", sans-serif;
  letter-spacing: 0.3px;
  margin-bottom: 12px;
  border: 1px solid var(--accent-1-border);
  animation: authStepIn 0.4s ease forwards;
}
#guestAuth .btn {
  margin-top: 16px;
}

/* Save account modal inputs */
#saveAccountModal .auth-input {
  text-align: left;
}

/* ===== ONBOARDING ===== */
#onboarding {
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 40px 32px;
}
.onboarding-slides {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 100%;
}
.onboarding-slide {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: translateY(20px);
  animation: slideUp 0.5s ease forwards;
  /* Card-like container */
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 24px 20px;
  box-shadow: var(--card-shadow);
}
.onboarding-slide:nth-child(1) {
  animation-delay: 0.1s;
}
.onboarding-slide:nth-child(2) {
  animation-delay: 0.3s;
}
.onboarding-slide:nth-child(3) {
  animation-delay: 0.5s;
}
.onboarding-slide .slide-emoji {
  font-size: 36px;
  margin-bottom: 2px;
}
.onboarding-slide .slide-title {
  font-size: 16px;
  font-weight: 700;
}
.onboarding-slide .slide-desc {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
}
.step-dots {
  display: flex;
  gap: 6px;
}
.step-dots .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-dim);
  transition: all 0.3s;
}
.step-dots .dot.on {
  width: 20px;
  border-radius: 3px;
  background: var(--accent-1);
}

/* ===== HOME SCREEN ===== */
#home {
  padding-bottom: 0;
}
.home-header {
  padding: 24px 24px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.home-header .home-brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.home-header h1 {
  font-size: 28px;
  letter-spacing: -1px;
}
.home-header .home-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.home-header .avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}
.section-label {
  padding: 20px 24px 12px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-dim);
  font-family: "Syne", sans-serif;
}

/* Tabs */
.home-tabs {
  display: flex;
  gap: 6px;
  padding: 0 24px 4px;
}
.home-tab {
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  background: var(--surface);
  color: var(--text-dim);
  transition: all 0.2s;
  font-family: "DM Sans", sans-serif;
}
.home-tab:active {
  transform: scale(0.96);
}
.home-tab.active {
  background: var(--accent-1);
  color: #fff;
}

/* FAB — solid card feel */
.fab-wrap {
  padding: 0 24px;
  margin-top: 20px;
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fab {
  width: 100%;
  background: var(--accent-1);
  border: none;
  color: white;
  height: 52px;
  border-radius: var(--radius);
  font-size: 15px;
  font-family: "Syne", sans-serif;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 2px 12px var(--accent-1-glow);
  transition: all 0.2s;
}
.fab:active {
  transform: scale(0.97);
}

/* ===== SESSION CARDS — Like mini playing cards ===== */
.session-card {
  margin: 0 24px 10px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: all 0.2s;
}
.session-card:active {
  transform: scale(0.98);
}
.session-card .s-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  background: var(--surface);
}
.session-card .s-info {
  flex: 1;
  min-width: 0;
}
.session-card .s-title {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.session-card .s-sub {
  font-size: 12px;
  color: var(--text-dim);
}
.session-card .s-badge {
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.badge-reveal {
  background: rgba(132, 204, 22, 0.1);
  color: var(--lime);
}
.badge-waiting {
  background: rgba(249, 115, 22, 0.1);
  color: var(--orange);
}
.badge-progress {
  background: var(--accent-1-bg);
  color: var(--accent-1);
}
.badge-done {
  background: var(--surface);
  color: var(--text-dim);
}

/* Show more pagination */
.show-more-btn {
  width: calc(100% - 48px);
  padding: 14px;
  margin: 8px 24px 16px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s;
}
.show-more-btn:active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

/* Swipe-to-delete */
.session-card-wrap {
  position: relative;
  overflow: hidden;
  margin: 0 24px 10px;
  border-radius: var(--radius);
}
.session-card-wrap .session-card {
  margin: 0;
  position: relative;
  z-index: 1;
  background: var(--card-bg);
  transition: transform 0.25s ease;
}
.session-card-wrap.swiped .session-card {
  transform: translateX(-80px);
}
.session-card-wrap .delete-btn {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 80px;
  background: #ef4444;
  border: none;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  z-index: 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.session-card-wrap.swiped .delete-btn {
  opacity: 1;
}
.session-card-wrap.removing {
  max-height: 80px;
  animation: slideRemove 0.3s ease forwards;
}
