/* Start Screen */
.screen-start {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-2xl) var(--space-lg);
  height: 100dvh;
  overflow-y: auto;
}

.screen-start__title {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-secondary);
  text-align: center;
  margin-bottom: var(--space-xs);
}

.screen-start__subtitle {
  font-size: var(--font-size-base);
  color: var(--color-text-light);
  text-align: center;
  margin-bottom: var(--space-md);
}

.screen-start__hero {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: var(--border-radius);
  margin-bottom: var(--space-md);
}

.screen-start__label {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-md);
}

.screen-start__travelers {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  width: 100%;
}

.screen-start__footer {
  margin-top: auto;
  padding-top: var(--space-xl);
}

/* Gameplay Screen */
.screen-gameplay {
  display: flex;
  flex-direction: column;
  height: 100dvh;
}

.screen-gameplay .map-wrapper {
  position: relative;
  flex: 1;
  min-height: 35vh;
  display: flex;
  flex-direction: column;
}

.screen-gameplay .map-view {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  justify-content: center;
  padding: var(--space-sm) 0;
}

.screen-gameplay .map-svg {
  width: 100%;
  height: auto;
}

.screen-gameplay .action-panel {
  flex-shrink: 1;
  max-height: var(--action-panel-height);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--color-bg);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-bottom: env(safe-area-inset-bottom, 0);
}

/* End Screen */
.screen-end {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-2xl) var(--space-lg);
  height: 100dvh;
  overflow-y: auto;
  text-align: center;
}

.screen-end__title {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-sm);
}

.screen-end__title--win {
  color: var(--color-accent);
}

.screen-end__title--loss {
  color: var(--color-danger);
}

.screen-end__stats {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  width: 100%;
  margin-bottom: var(--space-lg);
}

.screen-end__stat {
  display: flex;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-md);
  background: var(--color-surface);
  border-radius: var(--border-radius-sm);
}

.screen-end__badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
  margin-bottom: var(--space-lg);
}

.screen-end__reaction {
  font-size: var(--font-size-lg);
  font-style: italic;
  color: var(--color-text-light);
  margin-bottom: var(--space-xl);
}

.screen-end__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  width: 100%;
  margin-top: auto;
}

/* Summit hero (win screen) */
.summit-hero {
  margin-bottom: var(--space-md);
}

.summit-hero__emoji {
  font-size: 3rem;
  margin-bottom: var(--space-sm);
}

.summit-hero__title {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-accent);
  margin-bottom: var(--space-xs);
}

.summit-hero__subtitle {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  margin-bottom: 2px;
}

.summit-hero__date {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
}

/* Summit info card */
.summit-info {
  width: 100%;
  background: linear-gradient(135deg, #FF6B35, #FF8F5E);
  color: white;
  border-radius: var(--border-radius);
  padding: var(--space-md);
  margin-bottom: var(--space-lg);
  text-align: center;
}

.summit-info__tagline {
  font-size: var(--font-size-sm);
  font-style: italic;
  opacity: 0.9;
  margin-bottom: var(--space-md);
  line-height: 1.4;
}

.summit-info__themes {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.summit-info__theme {
  background: rgba(255, 255, 255, 0.2);
  padding: var(--space-xs) var(--space-sm);
  border-radius: 999px;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
}

.summit-info__desc {
  font-size: var(--font-size-sm);
  line-height: 1.4;
  opacity: 0.95;
  margin-bottom: var(--space-sm);
}

.summit-info__link {
  display: inline-block;
  color: white;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  text-decoration: underline;
  opacity: 0.9;
}
