.shell-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-page);
}

.shell-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--border-light);
}

.shell-header-inner {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 18px 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

.shell-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: start;
}

.shell-brand-mark {
  color: var(--character-accent);
  font-size: 1.15rem;
  line-height: 1;
}

.shell-brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.shell-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-self: center;
}

.shell-nav-link {
  padding: 10px 14px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.shell-nav-link:hover {
  color: var(--text-primary);
}

.shell-nav-link.is-active {
  color: var(--character-accent);
  font-weight: 600;
  border-bottom-color: var(--character-accent);
}

.shell-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
}

.shell-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--text-muted);
  cursor: not-allowed;
  opacity: 0.7;
}

.shell-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.shell-btn-primary {
  background: var(--character-accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(236, 72, 153, 0.35);
}

.shell-btn-primary:disabled {
  opacity: 0.72;
  cursor: not-allowed;
}

.shell-main {
  flex: 1;
}

.shell-content {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 32px 24px 0;
}

.shell-footer {
  margin-top: 0;
  border-top: 1px solid var(--border-light);
  background: var(--bg-page);
  padding: 32px 24px 28px;
}

.shell-footer-inner {
  max-width: var(--shell-max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}

.shell-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.shell-footer-name {
  margin: 0;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.shell-footer-links {
  display: flex;
  gap: 20px;
}

.shell-footer-link {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.shell-footer-link.is-disabled {
  opacity: 0.55;
  cursor: default;
}

.shell-footer-social {
  display: flex;
  gap: 10px;
}

.shell-social-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bg-soft);
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--text-soft);
}

.shell-footer-copy {
  max-width: var(--shell-max);
  margin: 20px auto 0;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-soft);
}

@media (max-width: 960px) {
  .shell-header-inner {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    padding: 14px 16px;
  }

  .shell-brand {
    grid-column: 1;
  }

  .shell-header-actions {
    grid-column: 2;
    grid-row: 1;
  }

  .shell-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: stretch;
    overflow-x: auto;
    padding-top: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .shell-nav-link {
    flex-shrink: 0;
    padding: 8px 12px;
    font-size: 0.85rem;
  }

  .shell-icon-btn {
    display: none;
  }

  .shell-btn-primary {
    padding: 8px 14px;
    font-size: 0.8rem;
  }

  .shell-content {
    padding: 24px 16px 0;
  }
}

/* World hub (future multi-character entry) */
.world-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
}

.world-kicker {
  margin: 0 0 8px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

.world-title {
  margin: 0 0 12px;
  font-size: clamp(2rem, 8vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.world-lead {
  margin: 0 0 32px;
  max-width: 36ch;
  color: var(--text-muted);
}

.world-residents {
  display: grid;
  gap: 16px;
  width: min(100%, 360px);
}

.world-resident-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  text-align: left;
  transition: transform 0.15s, box-shadow 0.15s;
}

.world-resident-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.world-resident-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.world-resident-text h2 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}

.world-resident-text p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.world-resident-badge {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--character-accent);
  background: var(--character-accent-soft);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.world-future {
  margin-top: 28px;
  font-size: 0.8rem;
  color: var(--text-soft);
}
