/* 메인 화면 — 게임형 레이아웃 (지오엑스 톤 유지) */

.start-screen {
  background: transparent;
}

.start-screen-bg {
  position: fixed;
  top: var(--site-header-height, 44px);
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
  min-height: calc(100dvh - var(--site-header-height, 44px));
  z-index: 0;
  pointer-events: none;
  background-color: #f2f2f7;
  background-image:
    radial-gradient(ellipse 110% 75% at 50% -15%, rgba(212, 168, 67, 0.16), transparent 52%),
    radial-gradient(ellipse 70% 55% at 95% 45%, rgba(74, 155, 110, 0.11), transparent 58%),
    radial-gradient(ellipse 75% 60% at 5% 85%, rgba(139, 94, 60, 0.09), transparent 55%),
    linear-gradient(180deg, #faf8f5 0%, #f3f2f8 30%, #f0f2f6 55%, #ecf2ee 100%);
}

.start-screen-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(212, 168, 67, 0.1) 0 1.5px, transparent 2px),
    radial-gradient(circle, rgba(74, 155, 110, 0.07) 0 1px, transparent 1.5px);
  background-size: 56px 56px, 80px 80px;
  background-position: 8px 16px, 40px 48px;
  opacity: 0.4;
}

.start-shell {
  width: min(100%, 520px);
  margin: 0 auto;
  font-size: 17px;
}

/* ── 상단 바 ── */
.start-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-bottom: 4px;
}

.start-topbar-brand {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-secondary);
  letter-spacing: -0.02em;
}

.start-topbar-brand::before {
  content: "GX";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5em;
  height: 1.5em;
  margin-right: 6px;
  border-radius: 6px;
  font-size: 0.58em;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(145deg, var(--geopus-brown), var(--geopus-brown-pressed));
  box-shadow: 0 2px 0 rgba(115, 78, 50, 0.25);
  vertical-align: middle;
}

.start-login-btn {
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(139, 94, 60, 0.22);
  background: rgba(255, 255, 255, 0.85);
  color: var(--geopus-brown);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 0 rgba(139, 94, 60, 0.08);
}

/* ── 히어로 (홈만) ── */
.start-header--game {
  padding-bottom: 6px;
  text-align: center;
}

.home-game-title {
  margin: 2px 0 10px;
}

.home-game-title__main {
  margin: 0;
  font-size: clamp(1.65rem, 6.5vw, 2.05rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
  background: linear-gradient(180deg, #a8723f 0%, var(--geopus-brown) 45%, #6b4528 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 8px rgba(212, 168, 67, 0.35));
}

.home-game-title__sub {
  margin: 6px 0 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}

.home-stats-pill {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 10px;
  margin: 0 auto 4px;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(212, 168, 67, 0.55);
  background: rgba(255, 255, 255, 0.72);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.8) inset,
    0 4px 14px rgba(139, 94, 60, 0.1);
  font-size: 0.72rem;
  backdrop-filter: blur(6px);
}

.home-stats-pill .visitor-stats-label {
  color: var(--geopus-brown);
  font-weight: 800;
  letter-spacing: 0.06em;
}

.home-stats-pill .visitor-stats-value {
  color: var(--geopus-gold);
  font-weight: 900;
}

.home-stats-pill .visitor-stats-sep {
  color: var(--geopus-brown-soft);
}

/* ── 홈 탭 내비 (Training · Game) ── */

.start-home-tabs {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin: 4px 0 16px;
  padding: 0 2px;
  position: relative;
  z-index: 2;
}

.start-home-tab {
  flex: 1;
  max-width: 148px;
  padding: 10px 8px;
  border: 1.5px solid rgba(139, 94, 60, 0.22);
  border-radius: var(--radius-pill, 980px);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--geopus-brown);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.start-home-tab:hover {
  background: rgba(255, 255, 255, 0.92);
}

.start-home-tab.is-active {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(212, 168, 67, 0.5);
  box-shadow:
    0 2px 12px rgba(180, 130, 40, 0.16),
    0 0 0 1px rgba(255, 255, 255, 0.7) inset;
  color: #6b4528;
}

.start-home-panels {
  position: relative;
  z-index: 2;
  overflow: hidden;
  touch-action: pan-y pinch-zoom;
}

.start-home-panels__track {
  display: flex;
  width: 100%;
  transition: transform 0.38s cubic-bezier(0.32, 0.72, 0, 1);
  will-change: transform;
}

.start-home-panels__track.is-dragging {
  transition: none;
}

.start-home-panel {
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

@media (prefers-reduced-motion: reduce) {
  .start-home-panels__track {
    transition: none;
  }
}

/* ── 랭킹 탭 ── */

.home-ranking-intro {
  margin: 0 0 12px;
  padding: 10px 14px;
  border-radius: var(--radius-game, 18px);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(139, 94, 60, 0.14);
}

.home-ranking-list {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.home-ranking-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-game, 18px);
  background: linear-gradient(165deg, #fff 0%, #faf8f5 100%);
  border: 1px solid rgba(139, 94, 60, 0.14);
  box-shadow: 0 2px 10px rgba(139, 94, 60, 0.08);
}

.home-ranking-item__name {
  font-size: 0.9rem;
  font-weight: 900;
  color: var(--text-primary);
}

.home-ranking-item__score {
  font-size: 1rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: #6b4528;
}

.home-ranking-item__score--empty {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.home-ranking-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-game, 18px);
  background: linear-gradient(165deg, #fff8eb 0%, #fff 55%);
  border: 1.5px solid rgba(212, 168, 67, 0.38);
  box-shadow: 0 2px 12px rgba(180, 130, 40, 0.12);
}

.home-ranking-total__label {
  font-size: 0.88rem;
  font-weight: 900;
  color: #6b4528;
}

.home-ranking-total__score {
  font-size: 1.25rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: #6b4528;
}

/* ── 오늘의 지리 훈련 (상세 스타일은 mission-draw.css) ── */

.start-mode-section {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.start-mode-section--game {
  margin-top: 18px;
}

.start-mode-heading {
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  text-align: center;
}

.start-mode-heading__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 18px;
  border-radius: var(--radius-pill, 980px);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: var(--geopus-brown);
  background: rgba(255, 255, 255, 0.9);
  border: 1.5px solid rgba(139, 94, 60, 0.22);
  box-shadow:
    0 2px 10px rgba(139, 94, 60, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.65) inset;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.start-mode-section--game .start-mode-heading__badge {
  color: #6b4528;
  border-color: rgba(212, 168, 67, 0.42);
  box-shadow:
    0 2px 12px rgba(180, 130, 40, 0.14),
    0 0 0 1px rgba(255, 255, 255, 0.7) inset;
}

.start-mode-heading::before {
  content: none;
}

/* ── Training — 2열 정사각형 카드 ── */
.training-square-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
}

.training-square-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  aspect-ratio: 1;
  width: 100%;
  padding: 14px 10px;
  border: none;
  border-radius: var(--radius-game, 18px);
  background: linear-gradient(165deg, #fff 0%, #faf8f5 100%);
  box-shadow: var(--shadow-game);
  border-bottom: 3px solid rgba(115, 78, 50, 0.2);
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-align: center;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.training-square-card:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 rgba(139, 94, 60, 0.18);
}

.training-square-card--explore {
  box-shadow: var(--shadow-game);
}

.training-square-card--concept {
  box-shadow: var(--shadow-game-green);
  border-bottom-color: rgba(61, 133, 92, 0.28);
}

.training-square-card--climate {
  box-shadow: 0 4px 0 rgba(217, 119, 6, 0.22), var(--shadow-soft, 0 2px 8px rgba(15, 23, 42, 0.08));
  border-bottom-color: rgba(217, 119, 6, 0.32);
  background: linear-gradient(165deg, #fff 0%, #fffaf3 100%);
}

.training-square-card--climate .training-square-card__icon-wrap {
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.14);
}

.training-square-card--landform {
  box-shadow: 0 4px 0 rgba(99, 102, 241, 0.2), var(--shadow-soft, 0 2px 8px rgba(15, 23, 42, 0.08));
  border-bottom-color: rgba(99, 102, 241, 0.28);
  background: linear-gradient(165deg, #fff 0%, #f6f7ff 100%);
}

.training-square-card--landform .training-square-card__icon-wrap {
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.12);
}

.training-square-card__icon-wrap {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 2px 8px rgba(139, 94, 60, 0.1);
}

.training-square-card__icon {
  width: 62px;
  height: 62px;
  object-fit: contain;
}

.training-square-card__title {
  font-size: clamp(0.88rem, 3.6vw, 0.98rem);
  font-weight: 900;
  line-height: 1.25;
  color: var(--text-primary);
}

.training-square-card__desc {
  font-size: clamp(0.66rem, 2.8vw, 0.74rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── 게임 모드 — 세로 긴 카드 리스트 ── */
#startGameMenu.mode-list--game {
  margin-bottom: 8px;
}

.mode-list--game .mode-list-card--survival {
  border-left: none;
  box-shadow: var(--shadow-game-green);
  border-bottom-color: rgba(61, 133, 92, 0.28);
}

#startGameMenu .mode-list-card__desc {
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: unset;
}

/* ── 게임 모드 캐러셀 (레거시 — 미사용 시 유지) ── */
.game-carousel {
  --slide-w: min(62vw, 188px);
  position: relative;
  z-index: 2;
  display: grid;
  gap: 12px;
  margin-bottom: 8px;
}

.game-carousel__stage {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 6px;
}

.game-carousel__viewport {
  container-type: inline-size;
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
  min-width: 0;
  min-height: calc(var(--slide-w) + 24px);
  scroll-padding-inline: calc((100% - var(--slide-w)) / 2);
  mask-image: linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%);
}

.game-carousel__viewport::-webkit-scrollbar {
  display: none;
}

.game-carousel__viewport.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  scroll-behavior: auto;
  user-select: none;
}

.game-carousel__track {
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  min-height: calc(var(--slide-w) + 24px);
  padding-block: 12px;
}

.game-carousel__spacer {
  flex: 0 0 calc((100cqw - var(--slide-w)) / 2);
  width: calc((100cqw - var(--slide-w)) / 2);
  flex-shrink: 0;
}

.game-square-card {
  flex: 0 0 var(--slide-w);
  width: var(--slide-w);
  aspect-ratio: 1;
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 12px;
  border: none;
  border-radius: 18px;
  background: linear-gradient(165deg, #fff 0%, #faf8f5 100%);
  box-shadow: var(--shadow-game);
  border-bottom: 3px solid rgba(115, 78, 50, 0.2);
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-align: center;
  transform: scale(var(--card-scale, 0.88));
  opacity: var(--card-opacity, 0.45);
  transition:
    transform 0.45s var(--ease-spring, cubic-bezier(0.34, 1.4, 0.64, 1)),
    opacity 0.45s ease,
    box-shadow 0.35s ease;
  will-change: transform, opacity;
  -webkit-tap-highlight-color: transparent;
}

.game-square-card.is-active {
  box-shadow: var(--shadow-game-gold);
  border-bottom-color: rgba(180, 130, 40, 0.32);
  pointer-events: auto;
}

.game-square-card:active:not([aria-disabled="true"]) {
  transform: scale(calc(var(--card-scale, 1) * 0.97));
}

.game-square-card--escape {
  border-left: 3px solid var(--geopus-gold);
}

.game-square-card--soon {
  opacity: var(--card-opacity, 0.45);
  cursor: default;
  pointer-events: none;
  border-left: 3px solid var(--geopus-brown-soft);
}

.game-square-card[aria-disabled="true"] {
  pointer-events: none;
}

.game-square-card__icon-wrap {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 2px 8px rgba(139, 94, 60, 0.1);
}

.game-square-card__icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.game-square-card__title {
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1.25;
  color: var(--text-primary);
}

.game-square-card__desc {
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-secondary);
}

.game-square-card__badge {
  display: inline-block;
  margin-left: 4px;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 800;
  vertical-align: middle;
  color: var(--text-secondary);
  background: var(--bg-soft);
}

.game-carousel__btn {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: 1.5px solid rgba(139, 94, 60, 0.16);
  color: var(--geopus-brown);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(139, 94, 60, 0.12);
  transition: background 0.2s ease, transform 0.15s ease;
}

.game-carousel__btn:active {
  transform: scale(0.94);
}

.game-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.game-carousel__dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(139, 94, 60, 0.22);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.game-carousel__dot.is-active {
  background: var(--geopus-brown);
  transform: scale(1.25);
}

@media (max-width: 480px) {
  .game-carousel__stage {
    display: block;
    position: relative;
  }

  .game-carousel__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    width: 30px;
    height: 30px;
    font-size: 1.1rem;
  }

  .game-carousel__btn[data-game-carousel-prev] {
    left: 2px;
  }

  .game-carousel__btn[data-game-carousel-next] {
    right: 2px;
  }

  .game-carousel__btn:active {
    transform: translateY(-50%) scale(0.94);
  }
}

.start-header {
  padding-bottom: 14px;
}

.start-hero {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 12px;
}

.start-hero-scene-wrap {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 1;
  border-radius: 16px;
  overflow: hidden;
  border: 1.5px solid var(--geopus-brown-soft);
  box-shadow: var(--shadow-game);
  line-height: 0;
}

.start-hero-scene-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.start-hero-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.start-hero-geopus {
  width: 76px;
  height: 76px;
  object-fit: contain;
  flex-shrink: 0;
}

.start-hero-bubble {
  flex: 1;
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff;
  border: 1.5px solid var(--geopus-green-soft);
  border-left: 3px solid var(--geopus-green);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-primary);
  animation: startHeroBubbleIn 0.45s ease both;
}

@keyframes startHeroBubbleIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .start-hero-bubble { animation: none; }
}

.start-hero-bubble strong {
  color: var(--geopus-brown);
  font-weight: 800;
}

.start-header .copyright-header,
.start-header .title-section-emojis,
.start-header .visitor-stats-inline:not(.home-stats-pill) {
  display: none;
}

/* ── 홈: 모드 리스트 ── */
.start-view[hidden] {
  display: none !important;
}

.start-view--home {
  overflow: visible;
}

.mode-list--game {
  gap: 12px;
}

.mode-list--game .mode-list-card {
  min-height: 64px;
  padding: 14px 16px;
  border-radius: var(--radius-game);
  border: none;
  border-bottom: 3px solid rgba(115, 78, 50, 0.2);
  box-shadow: var(--shadow-game);
  background: linear-gradient(180deg, #fff 0%, #faf8f5 100%);
}

.mode-list--game .mode-list-card:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 rgba(139, 94, 60, 0.18);
}

.mode-list--game .mode-list-card--map {
  border-left: none;
  box-shadow: var(--shadow-game);
}

.mode-list--game .mode-list-card--bell {
  border-left: none;
  box-shadow: var(--shadow-game-gold);
  border-bottom-color: rgba(180, 130, 40, 0.28);
}

.mode-list--game .mode-list-card--escape {
  border-left: none;
}

.mode-list--game .mode-list-card--soon {
  border-left: none;
  opacity: 0.72;
  cursor: default;
  pointer-events: none;
  border-bottom-color: rgba(139, 94, 60, 0.12);
}

.mode-list--game .mode-list-card__stage {
  min-width: 28px;
  height: 28px;
  border-radius: 9px;
  font-size: 0.78rem;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.12);
}

.mode-list--game .mode-list-card__title {
  font-size: 1.02rem;
}

.mode-list-card__badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  vertical-align: middle;
  color: var(--text-secondary);
  background: var(--bg-soft);
}

.mode-list--game .mode-list-card__arrow {
  color: var(--geopus-brown-soft);
  font-weight: 700;
}

.mode-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.mode-list-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 76px;
  padding: 12px 14px;
  border-radius: 15px;
  border: 1.5px solid var(--separator);
  background: #fff;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.05);
  cursor: pointer;
  text-align: left;
  font-family: var(--font);
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.mode-list-card:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

.mode-list-card__stage {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 7px;
  font-size: 0.7rem;
  font-weight: 900;
  color: #fff;
  background: var(--geopus-brown);
}

.mode-list-card--bell .mode-list-card__stage {
  background: var(--geopus-gold);
  color: #5c3d10;
}

.mode-list-card--dojo .mode-list-card__stage {
  background: var(--geopus-green);
}

.mode-list-card--escape .mode-list-card__stage {
  background: linear-gradient(180deg, var(--geopus-brown), #6b4528);
}

.mode-list-card__icon {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.mode-list-card__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.mode-list-card__title {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-primary);
}

.mode-list-card__desc {
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mode-list-card__arrow {
  font-size: 1.35rem;
  font-weight: 300;
  line-height: 1;
  color: var(--text-tertiary);
}

.mode-list-card--map { border-left: 3px solid var(--geopus-brown); }
.mode-list-card--bell { border-left: 3px solid var(--geopus-gold); }
.mode-list-card--dojo { border-left: 3px solid var(--geopus-green); }
.mode-list-card--escape { border-left: 3px solid var(--geopus-gold); }
.mode-list-card--explore { border-left: 3px solid var(--geopus-green); }
.mode-list-card--concept { border-left: 3px solid var(--geopus-green); }
.mode-list-card--survival { border-left: 3px solid var(--geopus-green); }

/* ── 설정 페이지 (전체 화면 전환) ── */
.start-view--setup {
  display: flex;
  flex-direction: column;
  min-height: min(100dvh - 80px, 720px);
  animation: setupPageIn 0.28s ease both;
}

@keyframes setupPageIn {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .start-view--setup { animation: none; }
}

.mode-setup-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1.5px solid var(--geopus-brown-soft);
}

.mode-setup-back {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--separator);
  border-radius: 10px;
  background: #fff;
  color: var(--geopus-brown);
  font-size: 1.5rem;
  line-height: 1;
  font-weight: 300;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 2px 0;
}

.mode-setup-topbar__titles {
  min-width: 0;
}

.mode-setup-topbar__stage {
  display: block;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--geopus-gold);
}

.mode-setup-topbar__name {
  margin: 2px 0 0;
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.mode-setup-guide {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--geopus-green-soft);
  border: 1px solid rgba(74, 155, 110, 0.2);
}

.mode-setup-guide__geopus {
  width: 58px;
  height: 58px;
  object-fit: contain;
  flex-shrink: 0;
}

.mode-setup-guide__bubble {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-primary);
}

.mode-setup-scroll {
  flex: 1;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: var(--space-md);
}

.mode-setup-page {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mode-setup-page[hidden] {
  display: none !important;
}

.mode-setup-page .blank-quiz-setup-panel,
.mode-setup-page .goldenbell-setup-panel,
.mode-setup-page .dojo-mission-panel {
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  gap: 10px;
}

.mode-setup-page .setup-banner {
  border-radius: 12px;
  padding: 14px;
  box-shadow: none;
  border: 1px solid var(--separator);
}

.mode-setup-page .setup-banner-start {
  position: sticky;
  bottom: 0;
  background: #fff;
  border: none;
  padding: 8px 0 0;
  box-shadow: 0 -8px 16px rgba(255, 255, 255, 0.9);
}

.mode-setup-page .start-btn {
  border-radius: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  background: linear-gradient(180deg, var(--geopus-brown) 0%, var(--geopus-brown-pressed) 100%);
  box-shadow: 0 4px 0 rgba(115, 78, 50, 0.35);
  border: none;
}

.mode-setup-page .start-btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 rgba(115, 78, 50, 0.35);
}

/* ── 푸터 ── */
.start-footer {
  margin-top: var(--space-md);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--separator);
  text-align: center;
}

.start-footer .copyright-header-line {
  font-size: 0.65rem;
  color: var(--text-tertiary);
}

.start-footer .visitor-stats-inline {
  margin-top: 4px;
  justify-content: center;
  font-size: 0.68rem;
}

.start-header .copyright-header,
.start-header .title-section-emojis,
.start-header .visitor-stats-inline:not(.home-stats-pill) {
  display: none;
}

@media (min-width: 768px) {
  .start-shell {
    width: min(100%, 580px);
    font-size: 18px;
  }

  .start-hero-geopus {
    width: 88px;
    height: 88px;
  }

  .start-hero-bubble {
    font-size: 15px;
    padding: 14px 16px;
  }
}
