/* =========================================
   홈 화면 (승요 지수 · 좌석 스탬프 · 친구 비교 · 직관 피드)
   ========================================= */
.home-stage[hidden],
.map-stage[hidden],
.header-stat[hidden],
.home-header-actions[hidden] {
  display: none !important;
}

.home-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.season-pill {
  font-size: 11px;
  font-weight: 700;
  color: var(--chrome-fg, var(--text-sub));
  background: var(--chrome-pill-bg, var(--primary-soft));
  padding: 5px 10px;
  border-radius: 999px;
  letter-spacing: -0.01em;
  transition: background 0.2s ease, color 0.2s ease;
}

.header-icon-btn {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--chrome-border, var(--border));
  background: var(--chrome-pill-bg, var(--surface));
  color: var(--chrome-fg, var(--text-main));
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.12s ease, color 0.2s ease, border-color 0.2s ease;
}

.header-icon-btn:hover {
  background: var(--primary-soft);
}

.header-icon-btn:active {
  transform: scale(0.94);
}

.notif-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #EF4444;
  border: 1.5px solid #FFFFFF;
}

.home-stage {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--bg-map);
  padding: 14px 16px 28px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.home-stage::-webkit-scrollbar {
  display: none;
}

.home-sections {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* 1. 승요 지수 히어로 카드 */
.home-hero-card {
  position: relative;
  --team-accent: #111111;
  --team-sub: #111111;
  background: #111111;
  color: #FFFFFF;
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 10px 28px rgba(17, 17, 17, 0.14);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.home-hero-card.is-themed {
  background:
    radial-gradient(circle at 86% 24%, color-mix(in srgb, var(--team-sub) 34%, transparent) 0%, transparent 52%),
    linear-gradient(135deg, var(--team-accent) 0%, color-mix(in srgb, var(--team-accent) 72%, #09090B) 62%, color-mix(in srgb, var(--team-sub) 30%, var(--team-accent)) 100%);
  box-shadow: 0 12px 30px color-mix(in srgb, var(--team-accent) 32%, rgba(17, 17, 17, 0.18));
}

.hero-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 2px;
}

.hero-title {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}

.team-picker-trigger {
  position: absolute;
  top: 18px;
  right: 22px;
  z-index: 2;
  border: none;
  background: transparent;
  padding: 0;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  cursor: pointer;
  font-family: inherit;
}

.team-picker-trigger:active .team-picker-circle {
  transform: scale(0.94);
}

.team-picker-prompt {
  font-size: 10.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.team-picker-trigger.is-selected .team-picker-prompt {
  display: none;
}

.team-picker-circle {
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: #3F3F46;
  border: 1.5px dashed #71717A;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.15s ease, width 0.2s ease, height 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.team-picker-trigger.is-selected .team-picker-circle {
  width: 82px;
  height: 82px;
  background: #FFFFFF;
  border: 2.5px solid var(--team-sub, #FFFFFF);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  padding: 6px;
}

.team-picker-circle img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.team-modal-overlay {
  align-items: center;
}

.team-modal-subtitle {
  margin: 0;
  padding: 0 18px 4px;
  font-size: 12px;
  color: var(--text-sub);
}

.team-picker-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 12px 18px 20px;
  overflow-y: auto;
}

.team-option-card {
  border: 1.5px solid var(--border);
  background: #FAFAFA;
  border-radius: 16px;
  padding: 12px 6px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.12s ease, border-color 0.15s ease, background 0.15s ease;
}

.team-option-card:active {
  transform: scale(0.95);
}

.team-option-card.is-active {
  border-color: var(--opt-color, #111111);
  background: #FFFFFF;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.team-option-logo {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.team-option-logo.is-undecided {
  background: #E4E4E7;
  border: 1.5px dashed #A1A1AA;
  color: #71717A;
  font-size: 16px;
  font-weight: 800;
}

.team-option-logo img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: block;
}

.team-option-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
  text-align: center;
  white-space: nowrap;
}

.hero-metric-row {
  display: flex;
  align-items: center;
  gap: 18px;
}

.donut-wrap {
  position: relative;
  width: 96px;
  height: 96px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.donut-svg {
  width: 96px;
  height: 96px;
  transform: rotate(-90deg);
  display: block;
}

.donut-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 8;
}

.donut-progress {
  fill: none;
  stroke: #22C55E;
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
}

.donut-percent {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: #FFFFFF;
}

.donut-record {
  margin-top: 2px;
  font-size: 10px;
  font-weight: 500;
  color: #A1A1AA;
}

.hero-stats-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-status-pill {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: #4ADE80;
  background: rgba(34, 197, 94, 0.14);
  padding: 4px 9px;
  border-radius: 999px;
}

.hero-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #22C55E;
}

.hero-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding-top: 2px;
}

.hero-mini-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.hero-mini-item + .hero-mini-item {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  padding-left: 8px;
}

.hero-mini-label {
  font-size: 10px;
  color: #A1A1AA;
}

.hero-mini-value {
  font-size: 12px;
  font-weight: 700;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.hero-btn {
  height: 40px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: transform 0.12s ease, opacity 0.15s ease, background 0.15s ease;
}

.hero-btn:active {
  transform: scale(0.97);
}

.hero-btn-primary {
  border: none;
  background: #FFFFFF;
  color: #111111;
}

.hero-btn-primary:hover {
  background: #F4F4F5;
}

.hero-btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #FFFFFF;
}

.hero-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* 2 & 3. 공통 홈 카드 */
.home-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
}

.home-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.home-card-title {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.home-card-subpill {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-sub);
  background: var(--primary-soft);
  padding: 4px 9px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #22C55E;
}

/* 좌석 스탬프 그리드 */
.stamp-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 8px;
}

.stamp-item {
  border: none;
  background: transparent;
  padding: 2px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.12s ease;
}

.stamp-item:active {
  transform: scale(0.94);
}

.stamp-badge {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, filter 0.15s ease, opacity 0.15s ease;
}

.stamp-badge svg {
  width: 52px;
  height: 52px;
  display: block;
}

.stamp-item:not(.is-collected) .stamp-badge svg {
  filter: grayscale(0.85) saturate(0.25) brightness(1.06);
  opacity: 0.36;
}

.stamp-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: -0.02em;
}

.stamp-item.is-collected .stamp-name {
  color: var(--text-main);
}

.stamp-count {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: -3px;
}

.stamp-item.is-collected .stamp-count {
  color: var(--text-sub);
}

/* 친구 직관 비교 (승요 배틀) */
.battle-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.battle-player {
  display: flex;
  align-items: center;
  gap: 10px;
}

.battle-player.is-friend {
  justify-content: flex-end;
  text-align: right;
}

.battle-avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
}

.battle-avatar.is-me {
  background: #111111;
  color: #FFFFFF;
}

.battle-avatar.is-friend {
  background: var(--primary-soft);
  color: var(--text-main);
  border: 1px solid var(--border);
}

.battle-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.battle-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-sub);
}

.battle-count {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.battle-rate {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-sub);
}

.battle-vs {
  font-size: 10px;
  font-weight: 800;
  color: var(--text-muted);
  background: var(--primary-soft);
  padding: 4px 8px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.battle-bar-track {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: #E4E4E7;
  overflow: hidden;
  display: flex;
  margin-bottom: 10px;
}

.battle-bar-me {
  height: 100%;
  background: #111111;
  border-radius: 999px;
  transition: width 0.35s ease;
}

.battle-summary {
  margin: 0;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-sub);
  text-align: center;
  background: var(--bg-map);
  padding: 7px 10px;
  border-radius: 10px;
}

/* 4. 그날, 그 자리의 잠실 (피드) */
.home-feed-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.section-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 2px 0;
}

.section-title {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.section-link-btn {
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-sub);
  cursor: pointer;
  padding: 4px 2px;
  transition: color 0.15s ease;
}

.section-link-btn:hover {
  color: var(--text-main);
}

.home-feed-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.feed-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.feed-thumb-btn {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border: none;
  padding: 0;
  background: #111111;
  cursor: pointer;
  overflow: hidden;
  display: block;
}

.feed-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.feed-thumb-btn:hover img {
  transform: scale(1.03);
}

.feed-date-chip {
  position: absolute;
  top: 7px;
  left: 7px;
  font-size: 10px;
  font-weight: 700;
  color: #FFFFFF;
  background: rgba(17, 17, 17, 0.72);
  backdrop-filter: blur(4px);
  padding: 2px 7px;
  border-radius: 999px;
}

.feed-body {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.feed-zone-btn {
  border: none;
  background: transparent;
  padding: 0;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--text-main);
  cursor: pointer;
  text-align: left;
}

.feed-zone-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  flex-shrink: 0;
}

.feed-seat {
  font-size: 11px;
  color: var(--text-sub);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feed-footer {
  margin-top: auto;
  padding-top: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.feed-user {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feed-like-btn {
  border: none;
  background: var(--primary-soft);
  color: var(--text-sub);
  font-family: inherit;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease, transform 0.12s ease;
}

.feed-like-btn:active {
  transform: scale(0.92);
}

.feed-like-btn.is-liked {
  background: #FEE2E2;
  color: #DC2626;
}

/* 5. 잠실 메모리얼 3D 타임캡슐 배너 */
.memorial-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, #18181B 0%, #27272A 100%);
  color: #FFFFFF;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.memorial-banner:active {
  transform: scale(0.985);
}

.memorial-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #A1A1AA;
  margin-bottom: 3px;
}

.memorial-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.02em;
}

.memorial-arrow {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #FFFFFF;
  flex-shrink: 0;
}
