/* ===== ガチャ(リクルートバンク) ===== */
.gc-root { display: flex; flex-direction: column; gap: 11px; padding-bottom: 12px; }

/* バナー切替タブ(セグメント) */
.gc-tabs { display: flex; gap: 6px; background: rgba(255, 255, 255, 0.05); padding: 4px; border-radius: 13px; border: 1px solid var(--border, rgba(255,255,255,.08)); }
.gc-tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 0;
  padding: 7px 6px; border: none; border-radius: 10px; cursor: pointer;
  background: transparent; color: var(--text-dim, #9aa0b5); font-weight: 900;
}
.gc-tab.is-active {
  background: linear-gradient(160deg, rgba(96, 50, 158, 0.95), rgba(44, 28, 86, 0.95));
  color: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255,255,255,.12);
}
.gc-tab:disabled { opacity: 0.6; cursor: default; }
.gc-tab-main { font-size: 14px; letter-spacing: 0.02em; }
.gc-tab-sub { font-size: 9.5px; opacity: 0.7; letter-spacing: 0.06em; }

/* ヒーロー */
.gc-hero {
  position: relative; padding: 12px 15px; border-radius: 16px;
  background: linear-gradient(150deg, rgba(60, 32, 96, 0.92), rgba(15, 20, 42, 0.94));
  border: 1px solid var(--border-glow, rgba(120, 90, 220, 0.4));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.gc-kicker { font-size: 9.5px; font-weight: 900; letter-spacing: 0.22em; color: #c9a8ff; }
.gc-hero h1 { font-size: 19px; font-weight: 900; margin: 1px 0 3px; }
.gc-hero p { font-size: 11.5px; color: var(--text-dim); line-height: 1.45; }
.gc-wallet { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 12px; font-weight: 800; }
.gc-wallet .gc-medal { font-size: 18px; font-weight: 900; color: #f5d77a; }

/* バナー */
.gc-banner {
  position: relative; height: 100px; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--border); background: rgba(10, 14, 30, 0.6);
  display: flex; align-items: center; justify-content: center;
}
.gc-banner .gc-banner-img, .gc-banner .gc-banner-img img { width: 100%; height: 100%; }
.gc-banner .gc-banner-img img { object-fit: cover; }
.gc-banner .asset-fallback { font-size: 56px; }
.gc-banner-label {
  position: absolute; left: 14px; bottom: 12px; display: flex; flex-direction: column;
  font-size: 10px; font-weight: 900; letter-spacing: 0.2em; color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}
.gc-banner-label b { font-size: 18px; letter-spacing: 0.04em; }

/* 天井ゲージ */
.gc-pity-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; }
.gc-pity-top { display: flex; justify-content: space-between; font-size: 11px; font-weight: 800; margin-bottom: 4px; }
.gc-pity-remain { color: var(--text-dim); }
.gc-pity.is-ssr .gc-pity-remain { color: #f5b301; }
.gc-pity-track { height: 7px; border-radius: 99px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.gc-pity-track i { display: block; height: 100%; border-radius: inherit; transition: width 0.4s ease; }
.gc-pity.is-sr .gc-pity-track i { background: linear-gradient(90deg, #6d4bd6, #a855f7); }
.gc-pity.is-ssr .gc-pity-track i { background: linear-gradient(90deg, #c98b1c, #f5b301); }

/* 抽選ボタン */
.gc-draw-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gc-draw-btn {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-height: 72px; padding: 10px; border-radius: 14px; cursor: pointer;
  border: 1px solid var(--border-glow, rgba(120, 90, 220, 0.5));
  background: linear-gradient(160deg, rgba(40, 28, 72, 0.9), rgba(20, 24, 48, 0.95));
  color: #fff; font-weight: 900;
}
.gc-draw-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.gc-draw-btn .gc-draw-main { font-size: 17px; }
.gc-draw-btn .gc-draw-cost { font-size: 11px; color: #f5d77a; font-weight: 800; }
.gc-draw-ten {
  background: linear-gradient(135deg, #7b3ff2, #b15cff 55%, #5a8cff);
  border-color: rgba(190, 150, 255, 0.75);
  box-shadow: 0 6px 18px rgba(123, 63, 242, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.gc-draw-ten .gc-draw-main { font-size: 18px; }
.gc-draw-ten .gc-draw-cost { color: #ffe9a8; }
.gc-draw-free { grid-column: 1 / -1; background: linear-gradient(160deg, rgba(20, 88, 96, 0.95), rgba(16, 50, 64, 0.95)); border-color: rgba(80, 220, 220, 0.5); }
.gc-draw-tag {
  position: absolute; top: -8px; right: 8px; font-size: 9px; font-weight: 900; letter-spacing: 0.04em;
  padding: 2px 7px; border-radius: 99px; color: #fff; background: var(--grad-cta, linear-gradient(90deg, #3970ff, #28d8d8));
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* 排出率 */
.gc-rates { display: flex; flex-wrap: wrap; gap: 10px 14px; justify-content: center; font-size: 11px; font-weight: 800; }
.gc-rate b { margin-right: 4px; }

/* 図鑑 */
.gc-dex-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.gc-dex-head h2 { font-size: 16px; font-weight: 900; }
.gc-dex-count { font-size: 12px; color: var(--text-dim); font-weight: 800; }
.gc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 380px) { .gc-grid { grid-template-columns: repeat(2, 1fr); } }

.gc-card {
  position: relative; display: flex; flex-direction: column; gap: 6px; padding: 9px;
  border-radius: 14px; background: rgba(14, 18, 36, 0.85);
  border: 1px solid color-mix(in srgb, var(--rc, #fff) 45%, transparent);
  box-shadow: inset 0 0 14px color-mix(in srgb, var(--rc, #fff) 12%, transparent);
}
.gc-card.is-locked { opacity: 0.78; border-color: var(--border); box-shadow: none; }
.gc-card-art {
  position: relative; aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--rc, #fff) 22%, transparent), rgba(0, 0, 0, 0.25));
}
.gc-card-art .asset, .gc-card-art .gc-art-img, .gc-card-art img { width: 100%; height: 100%; }
.gc-card-art img { object-fit: contain; }
.gc-card-art .asset-fallback { font-size: 34px; }
.gc-silhouette { font-size: 38px; font-weight: 900; color: rgba(255, 255, 255, 0.18); }
.gc-card.is-locked .gc-card-art { filter: grayscale(1) brightness(0.4); }
.gc-card.is-skill .gc-card-art { aspect-ratio: 3 / 2; }

.gc-card-head { position: absolute; top: 13px; left: 13px; right: 13px; display: flex; justify-content: space-between; pointer-events: none; }
.gc-rarity-badge {
  font-size: 10px; font-weight: 900; padding: 1px 7px; border-radius: 6px; color: #fff;
  background: var(--rc, #888); box-shadow: 0 1px 6px color-mix(in srgb, var(--rc, #000) 60%, transparent);
}
.gc-kind-badge { font-size: 9px; font-weight: 800; padding: 1px 6px; border-radius: 6px; color: var(--text-dim); background: rgba(0, 0, 0, 0.55); }

.gc-card-name { font-size: 12px; font-weight: 800; text-align: center; }
.gc-card-status { font-size: 11px; text-align: center; color: var(--text-dim); }
.gc-card-lv { font-size: 13px; font-weight: 900; text-align: center; }
.gc-card-lv small { font-size: 10px; color: var(--text-dim); font-weight: 700; }
.gc-piece { display: flex; flex-direction: column; gap: 3px; }
.gc-piece-track { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.gc-piece-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, color-mix(in srgb, var(--rc, #fff) 60%, #fff), var(--rc, #fff)); transition: width 0.4s ease; }
.gc-piece-text { font-size: 10px; text-align: center; color: var(--text-dim); font-weight: 700; }
.gc-piece-short { font-size: 9.5px; text-align: center; color: var(--text-dim); }
.gc-levelup {
  margin-top: 2px; padding: 6px; border-radius: 9px; cursor: pointer; font-size: 11px; font-weight: 900; color: #fff;
  border: none; background: var(--grad-cta, linear-gradient(90deg, #3970ff, #28d8d8));
}
.gc-levelup:disabled { opacity: 0.5; cursor: not-allowed; }

/* ===== 抽選結果リール ===== */
.gc-reveal-overlay { z-index: 200; }
.gc-reveal {
  position: relative; width: min(94vw, 460px); max-height: 88vh; overflow: auto;
  padding: 20px 16px 16px; border-radius: 20px; text-align: center;
  background: linear-gradient(165deg, rgba(20, 16, 40, 0.97), rgba(8, 10, 24, 0.98));
  border: 1px solid var(--border-glow, rgba(120, 90, 220, 0.5));
}
.gc-reveal.best-SR { box-shadow: 0 0 40px rgba(168, 85, 247, 0.4); }
.gc-reveal.best-SSR { box-shadow: 0 0 60px rgba(245, 179, 1, 0.5); }
.gc-reveal-title { font-size: 18px; font-weight: 900; margin-bottom: 14px; letter-spacing: 0.04em; }
.gc-reveal.best-SSR .gc-reveal-title { color: #f5b301; text-shadow: 0 0 16px rgba(245, 179, 1, 0.7); }
.gc-reveal.best-SR .gc-reveal-title { color: #c9a0ff; }
.gc-fx { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; border-radius: 20px; }
.gc-fx canvas { pointer-events: none; }

.gc-reveal-grid { position: relative; z-index: 1; display: grid; gap: 8px; margin-bottom: 16px; }
.gc-reveal-grid.is-single { grid-template-columns: 1fr; place-items: center; }
.gc-reveal-grid.is-single .gc-roll { width: min(60%, 200px); }
.gc-reveal-grid.is-multi { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 420px) { .gc-reveal-grid.is-multi { grid-template-columns: repeat(4, 1fr); } }

.gc-roll {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 4px;
  border-radius: 11px; background: rgba(12, 16, 34, 0.9);
  border: 1px solid color-mix(in srgb, var(--rc, #fff) 55%, transparent);
  opacity: 0; transform: scale(0.6);
  animation: gc-pop 0.45s cubic-bezier(0.2, 1.4, 0.5, 1) forwards;
}
.gc-roll-glow {
  position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  box-shadow: 0 0 14px color-mix(in srgb, var(--rc, #fff) 70%, transparent), inset 0 0 10px color-mix(in srgb, var(--rc, #fff) 30%, transparent);
}
.gc-roll.rarity-SSR { animation-duration: 0.6s; }
.gc-roll.rarity-SSR .gc-roll-glow { box-shadow: 0 0 26px var(--rc), inset 0 0 16px color-mix(in srgb, var(--rc) 45%, transparent); }
.gc-roll-art { width: 100%; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; }
.gc-roll-art .asset, .gc-roll-art img { width: 100%; height: 100%; object-fit: contain; }
.gc-roll-art .asset-fallback { font-size: 28px; }
.gc-roll.is-skill .gc-roll-art { aspect-ratio: 3 / 2; }
.gc-roll-rarity { font-size: 9px; font-weight: 900; padding: 0 6px; border-radius: 5px; color: #fff; background: var(--rc, #888); }
.gc-roll-name { font-size: 9.5px; font-weight: 700; line-height: 1.1; text-align: center; }
.gc-roll-tag { font-size: 9px; font-weight: 900; color: var(--rc, #fff); }
.gc-roll.is-new .gc-roll-tag { color: #6ee7a8; }

@keyframes gc-pop { to { opacity: 1; transform: scale(1); } }

/* ===== bottom-nav 7タブ調整 ===== */
#bottom-nav a { font-size: 9px; gap: 1px; }
#bottom-nav .nav-icon { font-size: 18px; }

@media (prefers-reduced-motion: reduce) {
  .gc-roll { animation-duration: 0.01s; }
}

/* ===== 部隊グレード制(20変種)図鑑グループ ===== */
.gc-dex-group { margin-bottom: 14px; }
.gc-dex-group-head { display: flex; align-items: center; justify-content: space-between; margin: 0 0 7px; }
.gc-dex-group-name { font-size: 13px; font-weight: 900; }
.gc-dex-group-count { font-size: 11px; font-weight: 800; color: var(--text-dim); }
.gc-dex-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.gc-card-base { font-size: 9.5px; color: var(--text-dim); }
.gc-roll-base { font-size: 12px; color: var(--text-dim); margin-bottom: 2px; }
.gc-rate-note { font-size: 10.5px; color: var(--text-dim); margin-top: 8px; line-height: 1.5; }

/* ===== ショップ(バンク選択ランディング) ===== */
.shop-cards { display: flex; flex-direction: column; gap: 12px; }
.shop-card {
  position: relative; display: flex; align-items: stretch; overflow: hidden; min-height: 116px;
  border-radius: 16px; text-decoration: none; color: #fff;
  border: 1px solid var(--border-glow, rgba(120, 90, 220, 0.5));
  background: linear-gradient(160deg, rgba(40, 28, 72, 0.92), rgba(18, 22, 44, 0.95));
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}
.shop-card.is-skill {
  background: linear-gradient(160deg, rgba(20, 60, 86, 0.92), rgba(16, 28, 52, 0.95));
  border-color: rgba(80, 200, 220, 0.5);
}
.shop-card-art { flex: 0 0 38%; overflow: hidden; background: rgba(0, 0, 0, 0.25); display: flex; align-items: center; justify-content: center; }
.shop-card-art .shop-card-img, .shop-card-art .shop-card-img img { width: 100%; height: 100%; }
.shop-card-art .shop-card-img img { object-fit: cover; }
.shop-card-art .asset-fallback { font-size: 46px; }
.shop-card-body { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 3px; padding: 14px; }
.shop-card-kicker { font-size: 9.5px; font-weight: 900; letter-spacing: 0.18em; color: #c9a8ff; }
.shop-card.is-skill .shop-card-kicker { color: #7fe9ff; }
.shop-card-body h2 { font-size: 18px; font-weight: 900; }
.shop-card-body p { font-size: 11px; color: var(--text-dim, #9aa0b5); line-height: 1.4; }
.shop-card-arrow { display: flex; align-items: center; padding-right: 14px; font-size: 26px; font-weight: 900; color: var(--text-dim, #9aa0b5); }

/* ガチャ画面: ショップへ戻る */
.gc-back {
  display: inline-flex; align-items: center; align-self: flex-start; gap: 2px;
  font-size: 12px; font-weight: 800; color: var(--text-dim, #9aa0b5); text-decoration: none; padding: 2px 0;
}
.gc-back:hover { color: var(--cyan, #28d8d8); }
