/* ══════════════════════════════════════════
   카드 상점 (Shop Screen)
══════════════════════════════════════════ */

/* 탭 */
.shop-tabs {
  display: flex; width: 100%; flex-shrink: 0;
  border-bottom: 2px solid #21262d;
}
.shop-tab {
  flex: 1; padding: 17px 8px; font-size: 16px; font-weight: bold;
  min-height: 56px; border: none; background: #0d1117;
  color: #8b949e; cursor: pointer; transition: .2s;
  border-bottom: 3px solid transparent;
}
.shop-tab.active { color: #e6edf3; border-bottom-color: #58a6ff; background: #161b22; }
.shop-tab:hover:not(.active) { color: #c9d1d9; background: #161b22; }

/* 섹션 공통 */
.shop-section {
  flex: 1; overflow-y: auto; padding: 12px;
  display: flex; flex-direction: column; gap: 10px;
}

/* ── 팩 목록 ── */
.shop-pack-list { display: flex; flex-direction: column; gap: 10px; }

.shop-pack-item {
  display: flex; flex-direction: row; align-items: stretch;
  min-height: 110px; border-radius: 12px; overflow: hidden;
  border: 1.5px solid #30363d; background: #161b22;
  cursor: pointer; transition: .2s;
}
.shop-pack-item:active { transform: scale(0.98); }
.shop-pack-item.common   { border-color: #555555; }
.shop-pack-item.uncommon { border-color: #3fb95066; }
.shop-pack-item.rare     { border-color: #58a6ff66; box-shadow: 0 0 8px #58a6ff22; }

.shop-pack-img-wrap {
  width: 90px; flex-shrink: 0; position: relative; overflow: hidden;
}
.shop-pack-img {
  width: 100%; height: 100%; object-fit: cover; object-position: center; display: block;
}
.shop-pack-img-overlay { position: absolute; inset: 0; opacity: 0.3; }
.common-overlay   { background: linear-gradient(180deg, #555, #222); }
.uncommon-overlay { background: linear-gradient(180deg, #1a6b2a, #0d3a15); }
.rare-overlay     { background: linear-gradient(180deg, #1a3a8b, #0d1a4a); }

.shop-pack-details {
  flex: 1; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px;
}
.shop-pack-grade-badge {
  font-size: 10px; font-weight: bold; letter-spacing: 1px;
}
.badge-common   { color: #8b949e; }
.badge-uncommon { color: #3fb950; }
.badge-rare     { color: #58a6ff; }
.badge-legacy   { color: #d29922; }

.shop-pack-name { font-size: 15px; font-weight: bold; color: #e6edf3; }
.shop-pack-desc { font-size: 11px; color: #8b949e; }
.shop-pack-price {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 2px;
}
.price-gold    { font-size: 12px; font-weight: bold; color: #d29922; }
.price-diamond { font-size: 12px; font-weight: bold; color: #58a6ff; }

.shop-pack-btn {
  margin-top: auto; padding: 5px 14px; border-radius: 20px;
  border: none; font-size: 12px; font-weight: bold; cursor: pointer;
  align-self: flex-start; pointer-events: none;
}
.btn-common   { background: #2a2a2a; color: #aaa;     border: 1px solid #555; }
.btn-uncommon { background: #0d2a15; color: #3fb950;  border: 1px solid #3fb950; }
.btn-rare     { background: #0d1a38; color: #58a6ff;  border: 1px solid #58a6ff; }

/* ── 카드 구매 섹션 ── */
.shop-buy-timer-row {
  text-align: center; font-size: 11px; color: #8b949e; padding: 4px 0 8px; flex-shrink: 0;
}
.shop-buy-grid { display: flex; flex-direction: column; gap: 8px; }

.shop-buy-row {
  display: flex; flex-direction: row; min-height: 160px;
  border-radius: 10px; border: 1.5px solid #30363d;
  background: #161b22; overflow: hidden; cursor: pointer; transition: .2s;
}
.shop-buy-row:active:not(.sold-out) { transform: scale(0.98); }
.shop-buy-row.sold-out { opacity: 0.5; cursor: default; }

.shop-buy-info {
  flex: 1; display: flex; flex-direction: column;
  padding: 10px 12px; gap: 4px; overflow: hidden;
}
.buy-info-name {
  font-size: 14px; font-weight: bold; color: #e6edf3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.buy-info-meta { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.buy-grade-badge {
  font-size: 10px; font-weight: bold; padding: 1px 6px;
  border-radius: 8px; border: 1px solid;
}
.buy-type-label { font-size: 10px; color: #8b949e; }
.buy-info-effect {
  font-size: 10px; color: #8b949e; line-height: 1.4;
  overflow: hidden; display: -webkit-box;
  -webkit-line-clamp: 3; -webkit-box-orient: vertical;
}
.buy-info-stat { font-size: 11px; color: #c9d1d9; }
.buy-info-price { margin-top: auto; font-size: 12px; line-height: 1.8; }
.shop-price-gold    { font-weight: bold; color: #d29922; }
.shop-price-diamond { font-weight: bold; color: #58a6ff; }

/* SOLD OUT 오버레이 */
.buy-sold-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0.65);
  display: flex; align-items: center; justify-content: center; z-index: 2;
}
.buy-sold-text {
  color: #f85149; font-weight: bold; font-size: 14px;
  letter-spacing: 2px; text-align: center; line-height: 1.3;
  text-shadow: 0 0 10px #f8514988;
}

/* ── 팩 오픈 오버레이 ── */
/* 손패 카드(hand-card 75×122)를 한 줄에 5장씩 가로 정렬, 화면 좁으면 자동 wrap */
.pack-reveal-grid {
  display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: center; align-items: flex-start;
  width: 100%; max-width: 460px; margin: 0 auto;
}
.pack-reveal-grid .hand-card {
  flex: 0 0 auto;        /* 손패 카드 고정 사이즈 유지 */
  cursor: default;
}
.pack-reveal-card-anim {
  animation: revealPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}
@keyframes revealPop {
  from { transform: scale(0.7); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}
.pack-reveal-grade-badge {
  position: absolute; top: 8px; left: 8px;
  font-size: 10px; font-weight: bold; padding: 2px 8px;
  border-radius: 10px; border: 1px solid; z-index: 5;
}
.grade-badge-common   { color: #aaa;    border-color: #555;    background: #1a1a1a; }
.grade-badge-uncommon { color: #3fb950; border-color: #3fb950; background: #0d2010; }
.grade-badge-rare     { color: #58a6ff; border-color: #58a6ff; background: #0d1a30; }
.grade-badge-legacy   { color: #d29922; border-color: #d29922; background: #1a1200; }

/* ── 모달 공통 ── */
.shop-modal-box {
  background: #161b22; border: 1px solid #30363d; border-radius: 14px;
  padding: 22px; min-width: 260px; max-width: 320px; width: 90%; text-align: center;
}

/* ── 토스트 ── */
.shop-toast {
  position: fixed; bottom: 80px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #21262d; color: #e6edf3; border: 1px solid #30363d;
  border-radius: 20px; padding: 8px 20px; font-size: 13px;
  opacity: 0; transition: .3s; z-index: 9999;
  white-space: nowrap; pointer-events: none;
}
.shop-toast.show    { opacity: 1; transform: translateX(-50%) translateY(0); }
.shop-toast.error   { border-color: #f85149; color: #f85149; }
.shop-toast.success { border-color: #3fb950; color: #3fb950; }

/* ── SCREENS ── */
.screen { display: none; width: 100%; min-height: 100vh; }
.screen.active { display: flex; }

/* MENU SCREEN */
#screen-menu {
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 30px;
  background: rgba(13, 17, 23, 0.3);
  padding: 20px;
  padding-bottom: 90px;
  text-align: center;
  position: relative;
}
.menu-currency-hud {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
  background: rgba(13,17,23,0.75);
  border: 1px solid #30363d;
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: bold;
  z-index: 10;
  backdrop-filter: blur(4px);
}
.menu-currency-hud .currency-gold    { color: #d29922; }
.menu-currency-hud .currency-diamond { color: #58a6ff; }
.menu-title {
  font-family: 'Nanum Pen Script', cursive;
  font-size: 14vw;
  font-weight: 400;
  background: linear-gradient(135deg, #ffffff, #ffd700, #ff8c00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 2px;
  filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.9));
  line-height: 1.1;
  white-space: nowrap;
}
.menu-subtitle {
  font-size: 4.2vw;
  color: #ffd700;
  margin-bottom: 0;
  letter-spacing: 1.2px;
  text-shadow: 1px 2px 4px rgba(0,0,0,0.9);
  font-weight: bold;
  opacity: 0.9;
}
.menu-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 260px;
  margin-bottom: 20px;
}
.menu-btn {
  padding: 14px 24px; border-radius: 10px; border: 1px solid #30363d;
  background: #161b22; color: #e6edf3; font-size: 15px; font-weight: bold;
  cursor: pointer; text-align: left; transition: all 0.2s;
  display: flex; align-items: center; gap: 12px;
}
.menu-btn:hover { background: #21262d; border-color: #58a6ff; transform: translateX(4px); box-shadow: 0 0 16px #58a6ff22; }
.menu-btn .btn-icon { font-size: 20px; width: 28px; text-align: center; }
.menu-btn .btn-label { flex: 1; }
.menu-btn .btn-arrow { color: #30363d; font-size: 18px; }
.menu-btn:hover .btn-arrow { color: #58a6ff; }

/* SUBSCREEN SHARED */
.subscreen {
  flex-direction: column;
  background: rgba(13, 17, 23, 0.6);
  backdrop-filter: blur(8px);
  padding: 20px;
  overflow-y: auto;
}
.subscreen-header {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px; padding-bottom: 12px;
  border-bottom: 1px solid #21262d;
}
.subscreen-title { font-size: 20px; font-weight: bold; color: #e6edf3; flex: 1; }
.back-btn {
  padding: 6px 14px; border-radius: 8px; border: 1px solid #30363d;
  background: #161b22; color: #8b949e; font-size: 12px; cursor: pointer;
  transition: all 0.15s;
}
.back-btn:hover { background: #21262d; color: #e6edf3; border-color: #58a6ff; }

/* CARD BROWSER */
#screen-cards { flex-wrap: wrap; }
.card-browser-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  padding: 8px 4px 16px;
  justify-items: center;
}
/* deck-builder-grid now inherits card-hscroll-container styles */
#deck-builder-grid {
  display: flex !important;
  flex-direction: row;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  align-items: flex-start;
  align-content: unset;
}
.card-browser-filter {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px;
}
.filter-btn {
  padding: 4px 8px; border-radius: 16px; border: 1px solid #30363d;
  background: #161b22; color: #8b949e; font-size: 10px; cursor: pointer; transition: all 0.15s;
}
.filter-btn.active { background: #1f6feb; color: white; border-color: #58a6ff; }

/* DECK BUILDER — vertical full-viewport layout */
#screen-deck {
  height: 100vh; max-height: 100vh; overflow: hidden;
  flex-direction: column; padding: 0;
}
#screen-deck .subscreen-header {
  flex-shrink: 0; margin-bottom: 0; padding: 10px 12px;
  justify-content: space-between; flex-wrap: nowrap; gap: 8px;
}
.deck-header-filter {
  display: flex; gap: 4px; align-items: center; flex-shrink: 0;
}
.deck-section {
  flex: 1; min-height: 0; display: flex; flex-direction: column;
  padding: 6px 10px 4px; border-bottom: 1px solid #21262d;
}
.deck-section-header {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 6px; flex-shrink: 0;
}
.deck-section-label {
  font-size: 11px; font-weight: bold; color: #8b949e; letter-spacing: 1px;
}
/* 정렬 버튼 행 */
.deck-sort-row {
  display: flex; align-items: center; gap: 4px; flex-wrap: nowrap;
  padding: 4px 10px; flex-shrink: 0;
  border-bottom: 1px solid #21262d; background: #0d1117;
}
.sort-btn {
  padding: 3px 8px; border-radius: 12px; border: 1px solid #30363d;
  background: #161b22; color: #8b949e; font-size: 10px; cursor: pointer;
  transition: all 0.15s; white-space: nowrap;
}
.sort-btn.active { background: #1f6feb; color: white; border-color: #58a6ff; }
/* Horizontal scrollable card strip */
.card-hscroll-container {
  display: flex; flex-direction: row; gap: 8px;
  overflow-x: auto; overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  flex: 1; align-items: flex-start;
  padding-bottom: 4px;
}
.card-hscroll-container::-webkit-scrollbar { height: 3px; }
.card-hscroll-container::-webkit-scrollbar-track { background: #0d1117; }
.card-hscroll-container::-webkit-scrollbar-thumb { background: #30363d; border-radius: 2px; }
.card-hscroll-container .card {
  flex-shrink: 0;
  scroll-snap-align: start;
}
/* card-tile 변형이 아닌 일반 .card 만 명시적 크기 — tile 은 aspect-ratio로 자동 계산 */
.card-hscroll-container .card:not(.card-tile):not(.hand-card) {
  width: calc(((100vw - 28px) / 2 - 4px) * 0.8);
  height: calc(((100vw - 28px) / 2 - 4px) * 1.5 * 0.8);
  min-height: unset;
}
/* Bottom action bar */
.deck-bottom-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 10px; flex-shrink: 0;
  background: rgba(13,17,23,0.95); border-top: 1px solid #21262d;
}
.deck-bottom-bar .deck-name-input { flex: 1; min-width: 0; width: auto; }
.deck-bottom-bar .btn { white-space: nowrap; font-size: 11px; padding: 6px 10px; }
/* Saved decks modal overlay */
.saved-decks-modal {
  position: fixed; inset: 0; background: rgba(0,0,0,0.7);
  display: flex; align-items: flex-end; justify-content: center;
  z-index: 1000;
}
.saved-decks-modal-inner {
  background: #161b22; border: 1px solid #30363d; border-radius: 12px 12px 0 0;
  width: 100%; max-width: 480px; padding: 16px; max-height: 60vh;
  display: flex; flex-direction: column; gap: 10px;
}
.saved-decks-modal-title {
  font-size: 14px; font-weight: bold; color: #e6edf3;
  display: flex; justify-content: space-between; align-items: center;
}
.saved-decks-modal-list { overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.deck-count-badge {
  background: #21262d; border-radius: 16px; padding: 3px 10px;
  font-size: 11px; font-weight: bold;
}
.deck-count-badge.valid { color: #3fb950; }
.deck-count-badge.invalid { color: #f85149; }
.deck-name-input {
  background: #0d1117; border: 1px solid #30363d; border-radius: 6px;
  color: #e6edf3; padding: 6px 10px; font-size: 13px; width: 100%;
}
.deck-name-input:focus { outline: none; border-color: #58a6ff; }
.saved-decks-list { display: flex; flex-direction: column; gap: 6px; }
.saved-deck-item {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px;
  background: #0d1117; border-radius: 8px; border: 1px solid #30363d;
  cursor: pointer; transition: all 0.15s; font-size: 12px;
}
.saved-deck-item:hover { border-color: #58a6ff; background: #0d1f36; }
.saved-deck-item.selected { border-color: #3fb950; background: #0e1a12; }
.saved-deck-item .deck-del { margin-left: auto; color: #f85149; cursor: pointer; opacity: 0.5; }
.saved-deck-item .deck-del:hover { opacity: 1; }
/* card in builder — add on-hover glow */
.card.in-deck { box-shadow: 0 0 8px #3fb95066; }
.card.maxed  { opacity: 0.45; }
/* deck card count badge overlay */
.deck-card-count-badge {
  position: absolute; bottom: 3px; left: 3px;
  background: rgba(20,20,20,0.85); color: #e6edf3; border-radius: 8px;
  padding: 1px 5px; font-size: 9px; font-weight: bold;
  display: flex; align-items: center; justify-content: center; z-index: 10;
  border: 1px solid rgba(255,255,255,0.15);
}

/* ── 재화 HUD ── */
.currency-hud {
  display: flex; gap: 10px; align-items: center; justify-content: flex-end;
  padding: 6px 14px; font-size: 13px; font-weight: bold;
  background: rgba(0,0,0,0.45); border-radius: 20px;
  backdrop-filter: blur(4px);
}
.menu-currency-hud {
  position: absolute; top: 14px; right: 14px; z-index: 10;
}
.currency-gold    { color: #f0c040; display: flex; align-items: center; gap: 4px; }
.currency-diamond { color: #60cfff; display: flex; align-items: center; gap: 4px; }

/* 게임 결과 보상 알림 */
.reward-notice {
  margin-top: 12px; padding: 8px 14px;
  background: rgba(255,215,0,0.12); border: 1px solid rgba(255,215,0,0.3);
  border-radius: 10px; color: #f0d060; font-weight: bold; font-size: 14px;
}

/* DIFFICULTY SCREEN */
#screen-settings { flex-direction: column; max-width: 600px; margin: 0 auto; }
.difficulty-cards { display: flex; gap: 12px; flex-wrap: wrap; }
.diff-card {
  flex: 1; min-width: 160px; background: #161b22; border: 2px solid #30363d;
  border-radius: 12px; padding: 20px 16px; cursor: pointer; transition: all 0.2s;
  text-align: center;
}
.diff-card:hover { transform: translateY(-3px); }
.diff-card.selected { border-color: #3fb950; background: #0e1a12; }
.diff-card .diff-icon { font-size: 36px; margin-bottom: 8px; }
.diff-card .diff-name { font-size: 16px; font-weight: bold; margin-bottom: 6px; }
.diff-card .diff-desc { font-size: 11px; color: #8b949e; line-height: 1.5; }

/* GAME START DECK PICKER */
#deck-picker-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.85);
  z-index: 200; justify-content: center; align-items: center;
}
#deck-picker-overlay.show { display: flex; }
.deck-picker-modal {
  background: #161b22; border: 2px solid #58a6ff; border-radius: 14px;
  padding: 24px; min-width: 340px; max-width: 500px; width: 90%;
}
.deck-picker-modal h2 { font-size: 18px; margin-bottom: 14px; color: #58a6ff; }
.deck-picker-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; max-height: 300px; overflow-y: auto; }
.deck-pick-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  background: #0d1117; border-radius: 8px; border: 1px solid #30363d;
  cursor: pointer; transition: all 0.15s; font-size: 13px;
}
.deck-pick-item:hover { border-color: #58a6ff; background: #0d1f36; }
.deck-pick-item.selected { border-color: #3fb950; background: #0e1a12; }

/* NEW CARD FORM */
.form-field { display: flex; flex-direction: column; gap: 4px; }
.form-label { font-size: 11px; color: #8b949e; font-weight: bold; }
.form-input {
  background: #0d1117; border: 1px solid #30363d; border-radius: 6px;
  color: #e6edf3; padding: 6px 10px; font-size: 13px; width: 100%;
}
.form-input:focus { outline: none; border-color: #58a6ff; }
.cost-input {
  background: #0d1117; border: 1px solid #30363d; border-radius: 6px;
  color: #e6edf3; padding: 4px 6px; font-size: 13px; width: 44px; text-align: center;
}
.cost-input:focus { outline: none; border-color: #58a6ff; }
.color-check {
  display: flex; align-items: center; gap: 4px; cursor: pointer;
  font-size: 12px; color: #e6edf3; user-select: none;
  background: #21262d; border-radius: 6px; padding: 3px 8px; border: 1px solid #30363d;
}
.color-check input { accent-color: #58a6ff; }
select.form-input { cursor: pointer; }

/* custom card badge */
.custom-badge {
  font-size: 7px; background: #1f6feb22; border: 1px solid #1f6feb;
  border-radius: 3px; padding: 1px 3px; color: #58a6ff;
  text-align: center; margin-top: 1px;
}

/* card browser: 이제 .card-big 사용 (이전 .card 오버라이드 불필요) */
#screen-cards .card { cursor: default; }

/* ── 덱 빌더 / 빌더 덱 리스트 카드 (.card-tile 사용) ──
   - card-tile 클래스가 내부 레이아웃·폰트 비율을 모두 담당하므로
     여기서는 외곽 폭만 지정 (aspect-ratio: 75/122 가 높이를 자동 계산).
   - 보유 카드 그리드: 화면 폭 기준 2장 가로
   - 빌더 덱 리스트:   3장 가로 */
#deck-builder-grid .card.card-tile {
  width: calc(((100vw - 28px) / 2 - 4px) * 0.8);
  flex-shrink: 0;
}
#builder-deck-list .card.card-tile {
  width: calc(((100vw - 28px) / 3 - 6px) * 0.8);
  flex-shrink: 0;
}
#deck-builder-grid .card:hover,
#builder-deck-list .card:hover { transform: translateY(-2px); }
#deck-builder-grid .keyword-badge,
#builder-deck-list .keyword-badge { display: none; }

/* ══════════════════════════════════════════
   CARD SHOP (카드 상점)
══════════════════════════════════════════ */

/* ── 탭 버튼 (크게, 화면 가득) ── */
.shop-tabs {
  display: flex;
  border-bottom: 2px solid #30363d;
  flex-shrink: 0;
}
.shop-tab {
  flex: 1;
  padding: 17px 8px;
  background: #0d1117;
  border: none;
  color: #8b949e;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: color 0.15s, background 0.15s;
  min-height: 56px;
}
.shop-tab.active {
  color: #e6edf3;
  background: #161b22;
  border-bottom: 3px solid #58a6ff;
}
.shop-tab:active { background: #21262d; }

/* 섹션 공통 */
.shop-section {
  flex: 1;
  overflow-y: auto;
  padding: 12px 14px;
}

/* ═══════════════════════════
   팩 뽑기 섹션 (가로 레이아웃)
═══════════════════════════ */
.shop-pack-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* 팩 아이템 — 가로 레이아웃 */
.shop-pack-item {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0;
  background: #161b22;
  border: 2px solid #30363d;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.1s;
  min-height: 110px;
}
.shop-pack-item:active { transform: scale(0.985); }
.shop-pack-item.common   { border-color: #444; }
.shop-pack-item.uncommon { border-color: #2a5a2a; }
.shop-pack-item.rare     { border-color: #1a3a6a; box-shadow: 0 0 10px #58a6ff18; }

/* 팩 이미지 (왼쪽) */
.shop-pack-img-wrap {
  position: relative;
  width: 90px;
  flex-shrink: 0;
  overflow: hidden;
}
.shop-pack-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.shop-pack-img-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.common-overlay   { background: linear-gradient(135deg, rgba(80,80,80,0.25), transparent); }
.uncommon-overlay { background: linear-gradient(135deg, rgba(63,185,80,0.2), transparent); }
.rare-overlay     { background: linear-gradient(135deg, rgba(88,166,255,0.25), transparent); }

/* 팩 상세 (오른쪽) */
.shop-pack-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px 14px;
  gap: 4px;
}

.shop-pack-grade-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: bold;
  padding: 1px 7px;
  border-radius: 8px;
  align-self: flex-start;
}
.badge-common   { color: #aaa;    background: #2a2a2a; border: 1px solid #555; }
.badge-uncommon { color: #3fb950; background: #162016; border: 1px solid #3fb950; }
.badge-rare     { color: #58a6ff; background: #0f1e30; border: 1px solid #58a6ff; }

.shop-pack-name {
  font-size: 17px;
  font-weight: bold;
  color: #e6edf3;
  margin: 1px 0;
}
.shop-pack-desc {
  font-size: 11px;
  color: #8b949e;
  margin-bottom: 4px;
}
.shop-pack-price {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.shop-pack-price .price-gold    { font-size: 13px; font-weight: bold; color: #d29922; }
.shop-pack-price .price-diamond { font-size: 13px; font-weight: bold; color: #58a6ff; }

.shop-pack-btn {
  align-self: flex-start;
  padding: 7px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  transition: opacity 0.15s;
  pointer-events: none; /* 클릭은 부모 div가 처리 */
  color: #ffffff !important; /* 모든 팩 등급에서 흰색 글자로 통일 (가독성) */
}
.btn-common   { background: #3a3a3a; border-color: #666; }
.btn-uncommon { background: #162016; border-color: #3fb950; }
.btn-rare     { background: #0f1e30; border-color: #58a6ff; }

/* ═══════════════════════════
   카드 구매 섹션 (가로 행 레이아웃)
═══════════════════════════ */
.shop-buy-timer-row {
  text-align: center;
  font-size: 11px;
  color: #8b949e;
  padding: 4px 0 10px;
}

/* 전체 그리드: 3행 세로 배치, 화면 채움 */
.shop-buy-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* 각 카드 행 */
.shop-buy-row {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0;
  background: #161b22;
  border: 2px solid #30363d;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s;
  min-height: 140px;
}
.shop-buy-row:not(.sold-out):active { transform: scale(0.985); }
.shop-buy-row.sold-out { cursor: default; opacity: 0.6; filter: grayscale(0.5); }

/* 왼쪽: 카드 미리보기 */
.shop-buy-preview {
  width: 110px;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
  background: #0d1117;
}

/* card-big(280×400) → 0.393배 → 110×157px */
.shop-buy-card-scaler {
  width: 280px;
  height: 400px;
  transform: scale(0.393);
  transform-origin: top left;
  pointer-events: none;
}

/* SOLD OUT 오버레이 */
.buy-sold-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}
.buy-sold-text {
  font-size: 13px;
  font-weight: bold;
  color: #f85149;
  text-align: center;
  letter-spacing: 1px;
  border: 2px solid #f85149;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(0,0,0,0.6);
  text-shadow: 0 0 6px #f85149;
  line-height: 1.3;
}

/* 오른쪽: 정보 패널 */
.shop-buy-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 10px 12px;
  gap: 3px;
  min-width: 0;
}

.buy-info-name {
  font-size: 14px;
  font-weight: bold;
  color: #e6edf3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.buy-info-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.buy-grade-badge {
  font-size: 9px;
  font-weight: bold;
  padding: 1px 6px;
  border-radius: 6px;
  border: 1px solid;
  background: rgba(0,0,0,0.3);
}

.buy-type-label {
  font-size: 10px;
  color: #8b949e;
}

.buy-info-effect {
  font-size: 10px;
  color: #8b949e;
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.buy-info-stat {
  font-size: 11px;
  color: #8b949e;
  letter-spacing: 1px;
}

.buy-info-price {
  margin-top: 4px;
  font-size: 13px;
  font-weight: bold;
  line-height: 1.5;
}
.shop-price-gold    { color: #d29922; }
.shop-price-diamond { color: #58a6ff; }

/* ── 팩 오픈 오버레이 (손패 카드 hand-card 75×122 기준) ── */
.pack-reveal-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: flex-start;
  max-width: 460px;
  width: 100%;
  margin: 0 auto;
}
.pack-reveal-grid .hand-card {
  flex: 0 0 auto;
  cursor: default;
}

.pack-reveal-grade-badge {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 8px;
  z-index: 10;
  white-space: nowrap;
  pointer-events: none;
}
.grade-badge-common   { background: #2a2a2a; color: #aaa; }
.grade-badge-uncommon { background: #162016; color: #3fb950; }
.grade-badge-rare     { background: #0f1e30; color: #58a6ff; }
.grade-badge-legacy   { background: #2a1a00; color: #d29922; }

@keyframes shopCardReveal {
  from { opacity: 0; transform: scale(0.7) translateY(18px); }
  to   { opacity: 1; transform: scale(1)   translateY(0);    }
}
.pack-reveal-card-anim {
  animation: shopCardReveal 0.38s ease-out forwards;
}

/* ════════════════════════════════════════════════════════════════
   팩 오픈: 등급별 슬롯 + 중앙 reveal 스테이지 + 반짝 효과
════════════════════════════════════════════════════════════════ */

/* 슬롯 영역 ── Legacy 위 → Common 아래 4행 */
.pack-reveal-slots {
  width: 100%; max-width: 460px;
  display: flex; flex-direction: column; gap: 6px;
  margin: 0 auto 8px;
}
.pack-slot-row {
  display: flex; align-items: center;
  background: rgba(13,17,23,0.55);
  border: 1px solid #30363d;
  border-radius: 10px;
  padding: 6px 8px;
  min-height: 78px;
}
.pack-slot-row[data-grade="legacy"]   { border-color: #d29922; box-shadow: inset 0 0 12px rgba(210,153,34,0.18); }
.pack-slot-row[data-grade="rare"]     { border-color: #58a6ff; box-shadow: inset 0 0 12px rgba(88,166,255,0.18); }
.pack-slot-row[data-grade="uncommon"] { border-color: #3fb950; }
.pack-slot-row[data-grade="common"]   { border-color: #555;    }

.pack-slot-label {
  flex: 0 0 70px;
  font-size: 11px; font-weight: bold;
  text-align: center; letter-spacing: 0.5px;
  padding: 4px 0;
  border-radius: 6px;
  margin-right: 6px;
}
.slot-label-legacy   { color: #d29922; background: rgba(210,153,34,0.12); }
.slot-label-rare     { color: #58a6ff; background: rgba(88,166,255,0.12); }
.slot-label-uncommon { color: #3fb950; background: rgba(63,185,80,0.12); }
.slot-label-common   { color: #aaa;    background: rgba(170,170,170,0.10); }

.pack-slot-cards {
  flex: 1 1 auto;
  display: flex; flex-wrap: wrap; gap: 6px;
  align-items: center; justify-content: flex-start;
  min-height: 70px;
}
.pack-slot-cards .hand-card { flex: 0 0 auto; cursor: default; }

/* 슬롯에 안착한 카드의 등급별 영구 글로우 (Legacy/Rare 만) */
.slot-card-legacy {
  box-shadow:
    0 0 10px rgba(210,153,34,0.85),
    0 0 18px rgba(210,153,34,0.55);
  border-radius: 6px;
  animation: legacyPulse 1.8s ease-in-out infinite;
}
.slot-card-rare {
  box-shadow:
    0 0 8px rgba(88,166,255,0.80),
    0 0 16px rgba(88,166,255,0.50);
  border-radius: 6px;
  animation: rarePulse 1.8s ease-in-out infinite;
}
@keyframes legacyPulse {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(210,153,34,0.6)); }
  50%      { filter: drop-shadow(0 0 10px rgba(255,200,80,1)); }
}
@keyframes rarePulse {
  0%, 100% { filter: drop-shadow(0 0 3px rgba(88,166,255,0.6)); }
  50%      { filter: drop-shadow(0 0 9px rgba(150,200,255,1)); }
}

/* 슬롯 카드에서 안착 직후 튀어오르는 미세 애니메이션 */
@keyframes slotLand {
  0%   { transform: scale(0.4); opacity: 0; }
  60%  { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1);   opacity: 1; }
}
.slot-card-land {
  animation: slotLand 0.32s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* ── 중앙 reveal 스테이지 ── */
.pack-reveal-stage {
  position: relative;
  width: 100%; max-width: 460px;
  height: 200px;
  display: flex; align-items: center; justify-content: center;
  margin: 4px auto 6px;
  pointer-events: none;
}
.stage-card-wrap {
  position: relative;
  transform-origin: center center;
  will-change: transform, opacity;
}
.stage-card-wrap .hand-card {
  transform: scale(1.55);          /* 손패 75×122 → 약 116×190 */
  transform-origin: center center;
}

/* 스테이지 등장 애니메이션 */
@keyframes stagePop {
  0%   { transform: scale(0.5) rotateY(180deg); opacity: 0; }
  60%  { transform: scale(1.15) rotateY(0deg);  opacity: 1; }
  100% { transform: scale(1) rotateY(0deg);     opacity: 1; }
}
.stage-card-pop { animation: stagePop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both; }

/* 스테이지 → 슬롯 이동 (JS가 translate/scale 값을 인라인 변수로 설정) */
@keyframes stageFly {
  from {
    transform: translate(0,0) scale(1);
    opacity: 1;
  }
  to {
    transform: translate(var(--fly-x, 0), var(--fly-y, 0)) scale(var(--fly-scale, 0.6));
    opacity: 0.6;
  }
}
.stage-card-fly {
  animation: stageFly 0.42s cubic-bezier(0.55, 0.06, 0.68, 0.19) forwards;
}

/* ── 반짝 두 번 플래시 (Legacy / Rare 전용) ── */
.stage-flash {
  position: absolute; inset: 0;
  border-radius: 14px;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at center,
    rgba(255,255,255,0.85) 0%,
    rgba(255,230,150,0.55) 30%,
    rgba(255,200,80,0.0) 70%);
  z-index: 5;
}
.stage-flash.rare-tint {
  background: radial-gradient(circle at center,
    rgba(255,255,255,0.85) 0%,
    rgba(180,220,255,0.55) 30%,
    rgba(88,166,255,0.0) 70%);
}
@keyframes flashBurst {
  0%   { opacity: 0;   transform: scale(0.6); }
  40%  { opacity: 1;   transform: scale(1.05); }
  100% { opacity: 0;   transform: scale(1.4); }
}
.stage-flash.burst-1 { animation: flashBurst 0.32s ease-out both;            }
.stage-flash.burst-2 { animation: flashBurst 0.32s ease-out 0.20s both;       }

/* 스테이지 카드 자체에 흔들/빛 효과 (Legacy/Rare) */
@keyframes cardShimmer {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(255,220,120,0.6)); }
  50%      { filter: drop-shadow(0 0 16px rgba(255,240,180,1)); }
}
.stage-card-shimmer-legacy {
  animation: cardShimmer 0.52s ease-in-out 2;
}
@keyframes cardShimmerRare {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(120,180,255,0.6)); }
  50%      { filter: drop-shadow(0 0 16px rgba(200,225,255,1)); }
}
.stage-card-shimmer-rare {
  animation: cardShimmerRare 0.52s ease-in-out 2;
}

/* 좁은 화면에서 슬롯 라벨 축소 */
@media (max-width: 360px) {
  .pack-slot-label { flex: 0 0 56px; font-size: 10px; }
  .pack-reveal-stage { height: 180px; }
  .stage-card-wrap .hand-card { transform: scale(1.35); }
}

/* ── 공통 모달 박스 ── */
.shop-modal-box {
  background: #161b22;
  border: 2px solid #30363d;
  border-radius: 14px;
  padding: 24px 28px;
  max-width: 300px;
  width: 90vw;
  text-align: center;
}

/* ── 토스트 알림 ── */
.shop-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(70px);
  background: #21262d;
  color: #e6edf3;
  padding: 10px 24px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: bold;
  z-index: 9999;
  transition: transform 0.28s ease;
  border: 1px solid #30363d;
  white-space: nowrap;
  pointer-events: none;
}
.shop-toast.show  { transform: translateX(-50%) translateY(0); }
.shop-toast.success { border-color: #3fb950; color: #3fb950; }
.shop-toast.error   { border-color: #f85149; color: #f85149; }
.shop-toast.info    { border-color: #58a6ff; color: #58a6ff; }

/* ── 상점 헤더 재화 HUD ── */
.shop-currency-hud {
  display: flex; gap: 8px; align-items: center;
  background: rgba(13,17,23,0.7); border: 1px solid #30363d;
  border-radius: 16px; padding: 4px 10px; flex-shrink: 0;
}
.shop-currency-hud .currency-gold    { color: #d29922; font-size: 12px; font-weight: bold; }
.shop-currency-hud .currency-diamond { color: #58a6ff; font-size: 12px; font-weight: bold; }


/* ═══════════════════════════════════════════════════════════
   출석 보상 / 광고 보상 좌상단 아이콘
═══════════════════════════════════════════════════════════ */
.daily-bonus-icons {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: row;
  gap: 8px;
  z-index: 10;
}
.daily-bonus-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: rgba(13,17,23,0.78);
  border: 1.5px solid #30363d;
  color: #e6edf3;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 4px;
  backdrop-filter: blur(4px);
  transition: transform 0.12s, border-color 0.2s, opacity 0.2s;
}
.daily-bonus-icon:active { transform: scale(0.92); }
.daily-bonus-icon .dbi-emoji { font-size: 22px; line-height: 1; }
.daily-bonus-icon .dbi-label { font-size: 10px; color: #c9d1d9; }
.daily-bonus-icon.claimed { opacity: 0.45; border-color: #21262d; }
#att-icon-btn:not(.claimed) { border-color: #d29922; box-shadow: 0 0 8px rgba(210,153,34,0.35); }
#daily-ad-icon-btn:not(.claimed) { border-color: #58a6ff; box-shadow: 0 0 8px rgba(88,166,255,0.35); }

/* ═══════════════════════════════════════════════════════════
   출석 보상 모달 — 7일 그리드
═══════════════════════════════════════════════════════════ */
.att-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.att-grid .att-cell:nth-child(7) { grid-column: span 1; }
.att-cell {
  position: relative;
  background: #0d1117;
  border: 1.5px solid #30363d;
  border-radius: 10px;
  padding: 8px 4px;
  text-align: center;
  font-size: 11px;
}
.att-cell .att-day   { color: #8b949e; font-size: 10px; margin-bottom: 4px; }
.att-cell .att-icon  { font-size: 22px; margin-bottom: 4px; display: flex; align-items: center; justify-content: center; height: 36px; }
.att-cell .att-icon .att-icon-img { width: 38px; height: 38px; object-fit: contain; image-rendering: -webkit-optimize-contrast; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.45)); }
.att-cell .att-label { color: #c9d1d9; font-size: 10px; line-height: 1.2; min-height: 24px; }
.att-cell.att-today {
  border-color: #d29922;
  box-shadow: 0 0 10px rgba(210,153,34,0.45);
  background: linear-gradient(180deg, #1a1408, #0d1117);
}
.att-cell.att-claimed {
  opacity: 0.55;
  border-color: #3fb950;
}
.att-cell .att-check {
  position: absolute;
  top: 4px;
  right: 6px;
  color: #3fb950;
  font-weight: bold;
  font-size: 14px;
}
.att-claim-btn {
  background: linear-gradient(180deg, #d29922, #b07c12);
  color: #fff;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  padding: 10px 24px;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(210,153,34,0.4);
}
.att-claim-btn:disabled {
  background: #30363d;
  color: #8b949e;
  cursor: not-allowed;
  box-shadow: none;
}

/* ═══════════════════════════════════════════════════════════
   카드 구매 즉시 갱신 버튼 (광고 시청)
═══════════════════════════════════════════════════════════ */
.shop-refresh-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: -4px 0 8px;
  flex-shrink: 0;
}
.shop-refresh-btn {
  background: linear-gradient(180deg, #58a6ff, #1f6feb);
  color: #fff;
  font-weight: bold;
  border: none;
  border-radius: 18px;
  padding: 6px 16px;
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 5px rgba(31,111,235,0.4);
}
.shop-refresh-btn:active { transform: scale(0.97); }

/* ══════════════════════════════════════════
   카드 합성 섹션 (Synthesis)
══════════════════════════════════════════ */

/* 등급 탭 (Common / Uncommon / Rare) */
/* ══════════════════════════════════════════
   카드 합성 섹션 (Synthesis) — 재설계 v2
══════════════════════════════════════════ */

/* 등급 탭: Common / Uncommon 만, 작게 */
.synth-tier-row {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
  justify-content: center;
}
.synth-tier-btn {
  flex: 0 1 130px;
  padding: 6px 10px;
  background: #161b22;
  border: 1.5px solid #30363d;
  border-radius: 20px;
  color: #8b949e;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.synth-tier-btn.tier-common.active   { border-color: #aaaaaa; color: #e6edf3; background: #1c1f24; }
.synth-tier-btn.tier-uncommon.active { border-color: #3fb950; color: #3fb950; background: #0f1a10; }
.synth-tier-btn:active { transform: scale(0.97); }

/* 비용 + 합성 버튼 바 (슬롯 위) */
.synth-cost-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 8px;
  padding: 9px 12px;
  margin-bottom: 12px;
}
.synth-cost-text {
  flex: 1;
  color: #e6edf3;
  font-size: 13px;
}
.synth-go-btn {
  padding: 8px 18px;
  border-radius: 8px;
  border: 1px solid #d29922;
  background: linear-gradient(135deg, #d29922, #a16800);
  color: #fff;
  font-weight: bold;
  font-size: 13px;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
}
.synth-go-btn:active:not(:disabled) { transform: scale(0.97); }
.synth-go-btn:disabled {
  background: #30363d;
  border-color: #30363d;
  color: #8b949e;
  cursor: not-allowed;
}
.synth-clear-btn {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #30363d;
  background: #21262d;
  color: #c9d1d9;
  font-size: 12px;
  cursor: pointer;
}
.synth-clear-btn:active { transform: scale(0.97); }

/* 슬롯 — hand-card 크기 (배틀 카드 크기, 75×122) 를 담는 큼직한 박스 */
.synth-slot-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-bottom: 14px;
  padding: 8px 0;
}
.synth-slot-big {
  width: 95px;
  height: 145px;
  background: #0d1117;
  border: 2px dashed #30363d;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}
.synth-slot-big.filled {
  border-style: solid;
  border-color: #58a6ff;
}
.synth-slot-big .card.hand-card {
  cursor: default;
}
.synth-slot-placeholder {
  font-size: 40px;
  color: #30363d;
  font-weight: bold;
}
.synth-slot-remove {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #f85149;
  color: #fff;
  border: 2px solid #0d1117;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}
.synth-slot-sep {
  font-size: 22px;
  color: #d29922;
  font-weight: bold;
  padding: 0 4px;
  flex-shrink: 0;
}

/* 보유 카드 헤더 */
.synth-inventory-header {
  font-size: 13px;
  color: #c9d1d9;
  margin-bottom: 6px;
  padding: 4px 4px;
  border-bottom: 1px solid #30363d;
}

/* 보유 카드 그리드 — 높이 제한, 2.5줄 정도만 보이게 */
.synth-inventory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
  gap: 8px;
  padding: 6px 2px 16px;
  max-height: 330px;       /* ≒ 카드 2장(110px) × 2.5 + 헤더 여유 */
  overflow-y: auto;
  background: rgba(13, 17, 23, 0.4);
  border: 1px solid #21262d;
  border-radius: 8px;
}
.synth-inv-item {
  position: relative;
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 8px;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.1s;
}
.synth-inv-item:active { transform: scale(0.96); }
.synth-inv-item:hover { border-color: #58a6ff; }
.synth-inv-item.depleted {
  opacity: 0.4;
  pointer-events: none;
}
.synth-inv-count {
  position: absolute;
  bottom: 2px;
  right: 4px;
  background: rgba(13, 17, 23, 0.9);
  color: #d29922;
  font-size: 12px;
  font-weight: bold;
  padding: 1px 6px;
  border-radius: 6px;
  border: 1px solid #d29922;
  z-index: 2;
}
