.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* Header - full width */
.app-header {
  padding: 12px 24px;
  background: var(--color-surface);
  box-shadow: 0 2px 12px rgba(107,156,196,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.app-logo {
  cursor: pointer;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-img {
  height: 36px;
  width: auto;
}

/* Learn / Practice tabs */
.nav-center {
  display: flex;
  background: var(--color-bg);
  border-radius: 25px;
  padding: 3px;
}

.nav-tab {
  padding: 8px 22px;
  border-radius: 22px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
}

.nav-tab.active {
  background: var(--color-surface);
  color: var(--color-primary);
  box-shadow: 0 2px 8px rgba(107,156,196,0.1);
}

.nav-tab:hover:not(.active):not(.disabled) {
  color: var(--color-primary);
}

.nav-tab.disabled {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.breadcrumb-separator {
  color: var(--color-text-light);
}

.breadcrumb a {
  color: var(--color-text-muted);
}

.breadcrumb a:hover {
  color: var(--color-primary);
}

/* Main content */
main {
  padding: var(--spacing-xl) 0 var(--spacing-2xl);
}

/* Views */
.view {
  display: none;
}

.view.active {
  display: block;
}

/* Footer */
.app-footer {
  text-align: center;
  padding: var(--spacing-xl) 0;
  color: var(--color-text-light);
  font-size: 0.8rem;
  border-top: 1px solid var(--color-border-light);
}

/* Welcome page */
#view-welcome {
  position: relative;
  overflow: hidden;
}

.hero-scene {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.hero-abstract {
  position: absolute;
  top: -40px;
  right: -60px;
  width: 320px;
  opacity: 0.12;
  animation: heroSpin 40s linear infinite;
}

.hero-float {
  position: absolute;
  width: 60px;
  opacity: 0;
  animation: heroFloatIn 0.8s ease-out forwards, heroBob 4s ease-in-out infinite;
  filter: drop-shadow(2px 4px 8px rgba(0,0,0,0.1));
}

.hero-float-scissors { top: 8%; left: 5%; width: 55px; animation-delay: 0.2s, 0.2s; mix-blend-mode: multiply; }
.hero-float-tape { top: 15%; right: 8%; width: 60px; animation-delay: 0.4s, 0.4s; mix-blend-mode: multiply; }
.hero-float-pencils { top: 55%; left: 3%; width: 50px; animation-delay: 0.6s, 0.6s; }
.hero-float-sticky { bottom: 20%; right: 5%; width: 55px; animation-delay: 0.8s, 0.8s; }
.hero-float-bulb { top: 5%; left: 45%; width: 48px; animation-delay: 0.3s, 0.3s; }
.hero-float-clips { bottom: 15%; left: 10%; width: 50px; animation-delay: 1s, 1s; mix-blend-mode: multiply; }
.hero-float-markers { top: 40%; right: 3%; width: 48px; animation-delay: 0.5s, 0.5s; }
.hero-float-coin { bottom: 30%; right: 15%; width: 40px; animation-delay: 0.7s, 0.7s; }

.welcome-content {
  text-align: center;
  padding: var(--spacing-2xl) 0;
  position: relative;
  z-index: 1;
}

.hero-character-wrap {
  margin-bottom: var(--spacing-lg);
  animation: heroCharacterIn 1s ease-out 0.1s both;
}

.hero-character {
  width: 180px;
  height: auto;
  filter: drop-shadow(4px 6px 12px rgba(0,0,0,0.12));
}

.hero-video-wrap {
  margin-bottom: var(--spacing-lg);
  animation: heroCharacterIn 1s ease-out 0.1s both;
}

.hero-video {
  width: 100%;
  max-width: 100%;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(107,156,196,0.15);
}

.welcome-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: var(--spacing-lg);
  color: var(--color-text);
  animation: heroTextIn 0.7s ease-out 0.3s both;
}

.welcome-description {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--spacing-md);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  animation: heroTextIn 0.7s ease-out 0.5s both;
}

.welcome-who {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: var(--spacing-xl);
  animation: heroTextIn 0.7s ease-out 0.65s both;
}

.welcome-cta {
  font-size: 1.1rem;
  animation: heroCTAIn 0.8s ease-out 0.8s both;
}

/* Responsive */
@media (max-width: 480px) {
  .container {
    padding: 0 var(--spacing-sm);
  }

  main {
    padding: var(--spacing-lg) 0;
  }

  .hero-character {
    width: 130px;
  }

  .hero-float {
    width: 40px !important;
  }

  .hero-abstract {
    width: 200px;
  }
}
