/* 기능 설명: 메이플 레코드 "나는 언제 먹을까?" (/Ash/2/) 전면 개편 스타일시트
   - 심플하고 직관적인 다크 미니멀 UI/UX
   - 전 영역 SVG 아이콘 정렬, 캐릭터 아바타 250% 확대, 전 섹션 우측 끝선 칼정렬 */

.epic-page-shell {
  padding-top: 22px;
  padding-bottom: 48px;
}

.epic-hero-section,
.epic-search-card,
.epic-profile-banner,
.epic-summary-grid,
.epic-filter-toolbar,
.epic-api-warning-banner,
.epic-trophy-grid {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* 공통 SVG 아이콘 규격 */
.epic-svg-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

/* 1. 상단 페이지 타이틀 */
.epic-page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 16px;
}

.epic-header-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.epic-eyebrow {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #ff8c5a;
}

.epic-page-title {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 900;
  color: #f8fafc;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.epic-page-subtitle {
  margin: 0;
  font-size: 0.84rem;
  color: #8b949e;
  line-height: 1.45;
}

/* 2. 상단 와이드 캐릭터 검색 카드 */
.epic-search-card {
  background: #131722;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
}

.epic-wide-search-form {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
}

.epic-wide-input-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
}

.wide-search-icon {
  position: absolute;
  left: 14px;
  width: 16px;
  height: 16px;
  color: #64748b;
  pointer-events: none;
}

.epic-wide-char-input {
  width: 100%;
  box-sizing: border-box;
  background: #0c1018;
  border: 1px solid #242d40;
  color: #f8fafc;
  padding: 11px 16px 11px 40px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.epic-wide-char-input::placeholder {
  color: #64748b;
  font-weight: 500;
}

.epic-wide-char-input:focus {
  border-color: #f0883e;
  box-shadow: 0 0 0 3px rgba(240, 136, 62, 0.15);
}

.epic-wide-btn-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-epic-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(180deg, #ff7b54 0%, #f0643b 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 160, 122, 0.32);
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 12px rgba(240, 100, 59, 0.25);
}

.btn-epic-primary:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.btn-epic-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #1a202e;
  color: #cbd5e1;
  border: 1px solid #2b354a;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: all 0.15s ease;
}

.btn-epic-secondary:hover {
  background: #232b3d;
  color: #ffffff;
  border-color: #3f4e6d;
}

.btn-epic-secondary.is-spinning svg {
  animation: epicSpin 0.7s linear infinite;
}

@keyframes epicSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* 연동 캐릭터 알약 리스트 */
.epic-linked-chars-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 11px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.epic-selector-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.79rem;
  font-weight: 700;
  color: #8b949e;
  white-space: nowrap;
}

.epic-selector-label .label-icon {
  width: 14px;
  height: 14px;
  color: #64748b;
}

.epic-char-pills-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.epic-char-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #0e131d;
  color: #cbd5e1;
  border: 1px solid #232c3f;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.79rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.epic-char-pill .pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #475569;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.epic-char-pill:hover {
  border-color: #3b4a68;
  color: #ffffff;
  background: #161c2a;
}

.epic-char-pill.active {
  border-color: rgba(240, 136, 62, 0.55);
  background: rgba(240, 136, 62, 0.14);
  color: #ff9f68;
}

.epic-char-pill.active .pill-dot {
  background: #ff8c5a;
  box-shadow: 0 0 8px rgba(255, 140, 90, 0.8);
}

/* 3. 캐릭터 프로필 & 기원일 + 도감 달성률 배너 */
.epic-profile-banner {
  background: linear-gradient(135deg, #161b28 0%, #121620 60%, #181725 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 16px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.epic-profile-left {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
  flex: 1;
}

/* 캐릭터 아바타 250% 확대 프레임 */
.epic-avatar-frame {
  width: 96px;
  height: 96px;
  background: radial-gradient(circle at 50% 60%, #1f293d 0%, #0c1018 100%);
  border: 1px solid #2a354b;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.epic-char-avatar-img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  transform: scale(2.5);
  transform-origin: center 56%;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: pixelated;
  pointer-events: none;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.55));
}

.epic-char-avatar-img[src$="logo.png"] {
  transform: scale(1);
  transform-origin: center center;
}

.epic-char-meta-col {
  min-width: 0;
}

.epic-char-badge-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 7px;
}

.epic-world-badge {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.28);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 9px;
  border-radius: 6px;
}

.epic-class-badge,
.epic-level-badge {
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 6px;
}

.epic-char-main-name {
  font-size: 1.5rem;
  font-weight: 900;
  margin: 0 0 8px 0;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.epic-char-create-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.82rem;
  color: #94a3b8;
}

.epic-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.epic-meta-chip .epic-svg-icon {
  width: 14px;
  height: 14px;
  color: #64748b;
}

.epic-meta-chip strong {
  color: #e2e8f0;
  font-variant-numeric: tabular-nums;
}

.epic-divider {
  color: #3b465e;
}

/* 우측 기원일 카운터 + 프로그레스 카드 */
.epic-drought-counter-box {
  background: rgba(11, 15, 24, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px 20px;
  min-width: 276px;
  box-sizing: border-box;
}

.drought-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.drought-counter-top-label {
  font-size: 0.74rem;
  font-weight: 700;
  color: #94a3b8;
}

.drought-progress-pill {
  font-size: 0.7rem;
  font-weight: 800;
  color: #34d399;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.26);
  padding: 2px 8px;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}

.drought-counter-main {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 5px;
}

.drought-days-big {
  font-size: 2.2rem;
  font-weight: 900;
  color: #fb7185;
  line-height: 1.08;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.drought-days-unit {
  font-size: 0.96rem;
  font-weight: 800;
  color: #fda4af;
}

.drought-counter-sub {
  display: block;
  text-align: right;
  font-size: 0.73rem;
  color: #64748b;
  margin-top: 4px;
}

.epic-progress-track {
  width: 100%;
  height: 5px;
  background: #1a2130;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 10px;
}

.epic-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #34d399 0%, #38bdf8 100%);
  border-radius: 999px;
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

/* 4. 보스 전리품 4대 요약 KPI 카드 */
.epic-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
  align-items: stretch;
}

.epic-stat-card {
  appearance: none;
  -webkit-appearance: none;
  text-align: left;
  font-family: inherit;
  background: #131722;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 16px 18px;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  box-sizing: border-box;
}

.epic-stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.16);
  background: #171c29;
}

.epic-stat-card.card-unachieved.active-card {
  border-color: rgba(251, 113, 133, 0.45);
  box-shadow: 0 0 0 1px rgba(251, 113, 133, 0.16), 0 8px 20px rgba(0, 0, 0, 0.22);
}

.epic-stat-card.card-achieved.active-card {
  border-color: rgba(52, 211, 153, 0.45);
  box-shadow: 0 0 0 1px rgba(52, 211, 153, 0.16), 0 8px 20px rgba(0, 0, 0, 0.22);
}

.epic-stat-card.card-pitched.active-card {
  border-color: rgba(192, 132, 252, 0.45);
  box-shadow: 0 0 0 1px rgba(192, 132, 252, 0.16), 0 8px 20px rgba(0, 0, 0, 0.22);
}

.epic-stat-card.card-special.active-card {
  border-color: rgba(251, 191, 36, 0.45);
  box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.16), 0 8px 20px rgba(0, 0, 0, 0.22);
}

.stat-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 12px;
  width: 100%;
}

.stat-card-title-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.stat-icon-badge {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon-badge .epic-svg-icon {
  width: 15px;
  height: 15px;
}

.icon-rose { background: rgba(244, 63, 94, 0.14); color: #fb7185; }
.icon-emerald { background: rgba(52, 211, 153, 0.14); color: #34d399; }
.icon-purple { background: rgba(192, 132, 252, 0.14); color: #c084fc; }
.icon-amber { background: rgba(251, 191, 36, 0.14); color: #fbbf24; }

.stat-card-label {
  font-size: 0.81rem;
  font-weight: 800;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.02em;
}

.stat-card-pill {
  font-size: 0.66rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.pill-red { background: rgba(244, 63, 94, 0.14); color: #fb7185; }
.pill-green { background: rgba(52, 211, 153, 0.14); color: #34d399; }
.pill-purple { background: rgba(192, 132, 252, 0.14); color: #c084fc; }
.pill-amber { background: rgba(251, 191, 36, 0.14); color: #fbbf24; }

.stat-card-value {
  display: block;
  font-size: 1.65rem;
  font-weight: 900;
  margin-bottom: 5px;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}

.stat-card-desc {
  font-size: 0.74rem;
  color: #64748b;
  line-height: 1.38;
  word-break: keep-all;
}

.text-sky { color: #38bdf8; }
.text-rose { color: #fb7185; }
.text-emerald { color: #34d399; }
.text-purple { color: #c084fc; }
.text-amber { color: #fbbf24; }

/* 5. 슬림 통합 필터 & 검색 툴바 */
.epic-filter-toolbar {
  background: #131722;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 16px;
}

.epic-filter-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.epic-status-toggle-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #0c1018;
  border: 1px solid #1e2636;
  padding: 4px;
  border-radius: 10px;
  flex-wrap: wrap;
}

.btn-epic-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: #8b949e;
  border: 1px solid transparent;
  padding: 7px 13px;
  border-radius: 7px;
  font-size: 0.81rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-epic-status .epic-svg-icon {
  width: 14px;
  height: 14px;
}

.btn-epic-status .tab-count-chip {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  font-variant-numeric: tabular-nums;
}

.btn-epic-status:hover {
  color: #e2e8f0;
}

.btn-epic-status.active[data-status="unachieved"] {
  background: rgba(244, 63, 94, 0.15);
  color: #fb7185;
  border-color: rgba(244, 63, 94, 0.32);
}

.btn-epic-status.active[data-status="achieved"] {
  background: rgba(52, 211, 153, 0.15);
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.32);
}

.btn-epic-status.active[data-status="all"] {
  background: #1e2638;
  color: #ffffff;
  border-color: #33415c;
}

.epic-toolbar-right-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  justify-content: flex-end;
  min-width: 280px;
  flex-wrap: wrap;
}

.btn-epic-tool {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #181e2c;
  border: 1px solid #283348;
  color: #cbd5e1;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.btn-epic-tool .epic-svg-icon {
  width: 14px;
  height: 14px;
  color: #94a3b8;
}

.btn-epic-tool:hover {
  background: #222a3d;
  color: #ffffff;
  border-color: #3f4f6f;
}

.epic-search-box {
  position: relative;
  flex: 1;
  max-width: 250px;
  min-width: 170px;
  display: flex;
  align-items: center;
}

.item-search-icon {
  position: absolute;
  left: 11px;
  width: 14px;
  height: 14px;
  color: #64748b;
  pointer-events: none;
}

.epic-search-input {
  width: 100%;
  box-sizing: border-box;
  background: #0c1018;
  border: 1px solid #242d40;
  color: #ffffff;
  padding: 8px 12px 8px 32px;
  border-radius: 8px;
  font-size: 0.82rem;
  outline: none;
  transition: border-color 0.18s ease;
}

.epic-search-input::placeholder {
  color: #64748b;
}

.epic-search-input:focus {
  border-color: #f0883e;
}

/* 하단 세부 카테고리 행 */
.epic-filter-row-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 11px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.epic-category-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.btn-epic-cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: #8b949e;
  border: 1px solid transparent;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-epic-cat .cat-cnt-num {
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.btn-epic-cat:hover {
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.04);
}

.btn-epic-cat.active {
  background: rgba(240, 136, 62, 0.14);
  color: #ff9f68;
  border-color: rgba(240, 136, 62, 0.34);
}

.btn-epic-cat.active .cat-cnt-num {
  color: #ff9f68;
}

.epic-visible-summary {
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 600;
  white-space: nowrap;
}

.epic-visible-summary strong {
  color: #e2e8f0;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* API 미등록 안내 배너 */
.epic-api-warning-banner {
  background: rgba(250, 204, 21, 0.06);
  border: 1px solid rgba(250, 204, 21, 0.25);
  border-radius: 12px;
  padding: 13px 18px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.warning-banner-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.warning-icon-box {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(250, 204, 21, 0.14);
  color: #facc15;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.warning-banner-left strong {
  display: block;
  color: #fde047;
  font-size: 0.85rem;
  margin-bottom: 2px;
}

.warning-banner-left p {
  margin: 0;
  color: #94a3b8;
  font-size: 0.78rem;
}

.btn-banner-link {
  padding: 8px 13px;
  font-size: 0.79rem;
}

/* 6. 보스 전리품 2열 카드 그리드 */
.epic-trophy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.epic-trophy-card {
  background: #131722;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 15px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  transition: transform 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
  position: relative;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.epic-trophy-card:hover {
  background: #181d2b;
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.epic-trophy-card.is-achieved {
  border-color: rgba(52, 211, 153, 0.24);
  background: linear-gradient(90deg, #131722 0%, rgba(16, 46, 39, 0.34) 100%);
}

.trophy-card-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1 1 0%;
  overflow: hidden;
}

.trophy-icon-slot {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: #0c1018;
  border: 1px solid #232c40;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trophy-icon-slot.grade-legendary {
  border-color: rgba(74, 222, 128, 0.34);
  box-shadow: inset 0 0 12px rgba(74, 222, 128, 0.08);
}

.trophy-icon-slot.grade-unique {
  border-color: rgba(250, 204, 21, 0.34);
  box-shadow: inset 0 0 12px rgba(250, 204, 21, 0.08);
}

.trophy-item-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: pixelated;
}

.trophy-info-col {
  min-width: 0;
  flex: 1 1 0%;
  overflow: hidden;
}

.trophy-meta-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 5px;
}

.badge-grade-legendary {
  background: rgba(34, 197, 94, 0.13);
  color: #4ade80;
  font-size: 0.67rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 5px;
}

.badge-grade-unique {
  background: rgba(250, 204, 21, 0.13);
  color: #facc15;
  font-size: 0.67rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 5px;
}

.badge-boss-tag {
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  font-size: 0.69rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
}

.badge-cat-tag {
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 600;
}

.trophy-achieve-title {
  display: block;
  font-size: 0.92rem;
  font-weight: 800;
  color: #f1f5f9;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.015em;
}

.trophy-achieve-desc {
  display: block;
  font-size: 0.77rem;
  color: #8b949e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 우측 상태 박스 */
.trophy-card-right {
  text-align: right;
  flex-shrink: 0;
}

.drought-status-box {
  background: #0c1018;
  border: 1px solid rgba(244, 63, 94, 0.28);
  border-radius: 10px;
  padding: 8px 13px;
  min-width: 132px;
  box-sizing: border-box;
  text-align: center;
}

.drought-days-text {
  display: block;
  font-size: 0.96rem;
  font-weight: 900;
  color: #fb7185;
  font-variant-numeric: tabular-nums;
}

.drought-sub-caption {
  display: block;
  font-size: 0.67rem;
  color: #94a3b8;
  margin-top: 2px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.achieved-status-box {
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.28);
  border-radius: 10px;
  padding: 8px 13px;
  min-width: 132px;
  box-sizing: border-box;
  text-align: center;
}

.achieved-done-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 0.85rem;
  font-weight: 800;
  color: #34d399;
}

.achieved-done-text .epic-svg-icon {
  width: 14px;
  height: 14px;
}

.achieved-sub-caption {
  display: block;
  font-size: 0.67rem;
  color: #6ee7b7;
  margin-top: 2px;
  white-space: nowrap;
}

/* 빈 상태 & 로딩 스켈레톤 */
.epic-empty-box {
  grid-column: 1 / -1;
  background: #131722;
  border: 1px dashed #2a3449;
  border-radius: 14px;
  padding: 52px 20px;
  text-align: center;
  color: #94a3b8;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.epic-empty-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(52, 211, 153, 0.12);
  color: #34d399;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.epic-empty-icon svg {
  width: 22px;
  height: 22px;
}

.epic-empty-box h3 {
  color: #f8fafc;
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
}

.epic-empty-box p {
  margin: 0;
  font-size: 0.84rem;
  color: #8b949e;
}

/* 반응형 미디어 쿼리 */
@media (max-width: 1120px) {
  .epic-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .epic-trophy-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .epic-page-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .epic-wide-search-form {
    flex-direction: column;
    align-items: stretch;
  }
  .epic-wide-btn-group {
    width: 100%;
  }
  .epic-wide-btn-group button {
    flex: 1;
  }
  .epic-summary-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .epic-profile-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
  }
  .epic-drought-counter-box {
    width: 100%;
    min-width: 0;
  }
  .drought-counter-main {
    justify-content: flex-start;
  }
  .drought-counter-sub {
    text-align: left;
  }
  .epic-toolbar-right-group {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
  }
  .epic-search-box {
    max-width: none;
  }
  .epic-trophy-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .trophy-card-right {
    width: 100%;
  }
  .drought-status-box,
  .achieved-status-box {
    width: 100%;
  }
}