/* Zodiac Knights v2 · Summon simulator */
.page-hero--summon { padding-bottom: clamp(1.25rem, 3vw, 2rem); }
.summon { padding-bottom: clamp(2.5rem, 6vw, 4rem); }

.banner-tabs { display: flex; gap: 0.5rem; overflow-x: auto; scrollbar-width: none; margin-bottom: 1rem; padding: 2px; }
.banner-tabs::-webkit-scrollbar { display: none; }
.banner-tab {
  flex: 1 0 auto; display: flex; align-items: center; gap: 0.7rem; min-height: 66px; padding: 0.5rem 1.1rem 0.5rem 0.55rem;
  border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--surface); color: var(--text-2); text-align: left;
  transition: border-color 0.2s, background-color 0.2s;
}
.banner-tab__img { width: 46px; height: 46px; border-radius: 50%; flex: none; }
.banner-tab__name { display: block; font-weight: 700; font-size: 0.95rem; color: var(--text-1); line-height: 1.2; }
.banner-tab__sub { display: block; font-size: 0.75rem; color: var(--text-3); white-space: nowrap; }
.banner-tab:hover { border-color: rgba(255, 255, 255, 0.3); }
.banner-tab[aria-selected="true"] { border-color: var(--gold-2); background: rgba(243, 186, 47, 0.08); box-shadow: inset 0 0 0 1px rgba(243, 186, 47, 0.4); }

/* Altar stage */
.altar {
  --accent: #10b981; --accent-a: rgba(16, 185, 129, 0.45);
  position: relative; isolation: isolate; overflow: hidden; display: grid; align-items: end;
  border-radius: var(--r-xl); box-shadow: 0 0 0 1px var(--line-gold), var(--shadow-lg);
}
.altar__bg { position: absolute; inset: 0; z-index: -3; }
.altar__bg picture, .altar__bg img { width: 100%; height: 100%; object-fit: cover; }
.altar::before {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(55% 40% at 50% 30%, var(--accent-a), transparent 70%),
    linear-gradient(180deg, rgba(3, 5, 12, 0.2) 0%, rgba(3, 5, 12, 0.3) 28%, rgba(3, 5, 12, 0.88) 48%, rgba(3, 5, 12, 0.97) 100%);
}
.altar__featured { position: relative; z-index: -1; width: min(80%, 380px); margin: 0.5rem auto -16%; pointer-events: none; }
.altar__hero { width: 100%; height: auto; filter: drop-shadow(0 22px 34px rgba(0, 0, 0, 0.6)); transition: opacity 0.3s, transform 0.5s var(--ease); }
.altar__hero.is-swapping { opacity: 0; transform: translateY(10px) scale(0.97); }
@media (prefers-reduced-motion: no-preference) { .altar__hero { animation: floaty 6s ease-in-out infinite; } }
@keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.altar__panel { position: relative; width: 100%; max-width: 560px; padding: clamp(1.25rem, 4vw, 2.5rem); padding-top: 0; }
.altar__kicker { font-size: var(--fs-12); font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--emerald); }
.altar__name { margin-top: 0.4rem; font-family: var(--font-display); font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.4rem); line-height: 1.1; }
.altar__desc { margin-top: 0.55rem; color: var(--text-2); font-size: 0.95rem; }
.altar__wallet { display: flex; align-items: center; gap: 0.75rem; margin-top: 1.2rem; flex-wrap: wrap; }
.wallet {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 40px; padding: 0 1rem 0 0.4rem; border-radius: var(--r-pill);
  background: rgba(3, 5, 12, 0.65); border: 1px solid var(--line-2); font-weight: 750; font-size: 1.05rem; color: var(--text-1); font-variant-numeric: tabular-nums;
}
.wallet img { width: 30px; height: 30px; }
.pity { display: grid; gap: 0.3rem; margin-top: 1.1rem; max-width: 380px; }
.pity__row { display: flex; justify-content: space-between; font-size: 0.82rem; color: var(--text-2); }
.pity__row strong { color: var(--text-1); font-variant-numeric: tabular-nums; }
.pity__bar { height: 5px; margin-bottom: 0.45rem; border-radius: 5px; overflow: hidden; background: rgba(255, 255, 255, 0.1); }
.pity__bar span { display: block; height: 100%; width: 0; border-radius: 5px; background: var(--grad-gold); transition: width 0.5s var(--ease); }
.pity__bar--div span { background: linear-gradient(90deg, #0bbf7c, var(--emerald)); }
.altar__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin-top: 1.25rem; }
.summon-btn img { width: 22px; height: 22px; }
.summon-btn[disabled] { opacity: 0.6; }
.altar__opts { display: flex; flex-wrap: wrap; gap: 0.75rem 1.4rem; margin-top: 1rem; }
.toggle { position: relative; display: inline-flex; align-items: center; gap: 0.6rem; min-height: 32px; font-size: 0.86rem; color: var(--text-2); cursor: pointer; }
.toggle input { position: absolute; opacity: 0; width: 38px; height: 22px; margin: 0; cursor: pointer; }
.toggle__ui { position: relative; width: 38px; height: 22px; border-radius: 22px; background: rgba(255, 255, 255, 0.16); transition: background-color 0.2s; flex: none; }
.toggle__ui::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform 0.2s var(--ease); }
.toggle input:checked + .toggle__ui { background: var(--emerald-2); }
.toggle input:checked + .toggle__ui::after { transform: translateX(16px); }
.toggle input:focus-visible + .toggle__ui { outline: 2px solid var(--emerald); outline-offset: 3px; }
@media (min-width: 900px) {
  .altar { min-height: 600px; align-items: center; }
  .altar::before {
    background:
      radial-gradient(40% 55% at 72% 50%, var(--accent-a), transparent 70%),
      linear-gradient(90deg, rgba(3, 5, 12, 0.94) 0%, rgba(3, 5, 12, 0.78) 38%, rgba(3, 5, 12, 0.15) 72%, rgba(3, 5, 12, 0.35) 100%);
  }
  .altar__featured { position: absolute; margin: 0; left: auto; right: 3%; top: 50%; width: min(46%, 560px); transform: translateY(-50%); }
  .altar__panel { padding: clamp(2rem, 4vw, 3rem); }
}

/* Results */
.results { margin-top: 1.5rem; scroll-margin-top: calc(var(--header-h) + 1rem); }
.results__empty { padding: 1.4rem 1.25rem; border-radius: var(--r-lg); border: 1px dashed var(--line-2); text-align: center; color: var(--text-3); font-size: 0.95rem; }
.results__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1rem; margin-bottom: 1rem; }
.results__title { font-family: var(--font-display); font-size: var(--fs-h3); }
.results__title small { display: block; margin-top: 0.2rem; font-family: var(--font-sans); font-size: 0.85rem; font-weight: 500; color: var(--text-3); letter-spacing: 0; }
.results__again { display: flex; gap: 0.5rem; }
.pull-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.65rem; perspective: 1200px; }
@media (min-width: 560px) { .pull-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.pull-grid--single { grid-template-columns: minmax(0, 270px) !important; justify-content: center; }
.pull-card {
  --i: 0;
  position: relative; isolation: isolate; display: block; aspect-ratio: 320 / 440; overflow: hidden; border-radius: 14px;
  color: var(--text-1); text-decoration: none; background: #0a0f1f;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 14px 30px -18px rgba(0, 0, 0, 0.9);
  animation: cardIn 0.6s var(--ease) both; animation-delay: calc(var(--i) * 75ms);
  transition: transform 0.25s var(--ease);
}
.pull-card:hover { transform: translateY(-3px); color: #fff; }
.pull-card__bg, .pull-card__frame { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pull-card__bg { z-index: -2; }
.pull-card__frame { z-index: 2; pointer-events: none; opacity: 0.95; }
.pull-card__art { position: absolute; z-index: -1; left: 50%; top: 4%; width: 112%; max-width: none; transform: translateX(-50%); filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.5)); }
.pull-card__body { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; padding: 1.6rem 0.6rem 0.75rem; text-align: center; background: linear-gradient(180deg, transparent, rgba(3, 5, 12, 0.92) 55%); }
.pull-card__name { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(0.92rem, 0.8rem + 0.4vw, 1.08rem); line-height: 1.1; }
.pull-card__tier { display: block; margin-top: 0.2rem; font-size: 0.64rem; font-weight: 750; letter-spacing: 0.16em; text-transform: uppercase; }
.pull-card--Bronze .pull-card__tier { color: #e3a26f; }
.pull-card--Silver .pull-card__tier { color: #dde5f3; }
.pull-card--Gold { box-shadow: 0 0 0 1px var(--gold-2), 0 0 34px -8px rgba(243, 186, 47, 0.75); }
.pull-card--Gold .pull-card__tier { color: var(--gold-1); }
.pull-card--Divine { box-shadow: 0 0 0 1px var(--emerald), 0 0 44px -6px rgba(16, 232, 152, 0.8); }
.pull-card--Divine .pull-card__tier { color: var(--emerald); }
.pull-card--Gold::after, .pull-card--Divine::after {
  content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.35) 48%, transparent 66%);
  transform: translateX(-120%); animation: shine 2.6s var(--ease) 0.6s 2;
}
.pull-card__new {
  position: absolute; z-index: 5; top: 0.5rem; right: 0.5rem; padding: 0.18rem 0.45rem; border-radius: 6px;
  font-size: 0.6rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); background: var(--gold-1);
}
@keyframes cardIn { from { opacity: 0; transform: translateY(16px) rotateY(75deg) scale(0.92); } to { opacity: 1; transform: none; } }
@keyframes shine { to { transform: translateX(120%); } }
.flash { position: fixed; inset: 0; z-index: 110; pointer-events: none; animation: flash 1s ease-out forwards; }
.flash--Divine { background: radial-gradient(circle at 50% 45%, rgba(190, 255, 230, 0.95), rgba(16, 232, 152, 0.35) 40%, transparent 70%); }
.flash--Gold { background: radial-gradient(circle at 50% 45%, rgba(255, 245, 200, 0.9), rgba(243, 186, 47, 0.3) 40%, transparent 70%); }
@keyframes flash { from { opacity: 1; } to { opacity: 0; } }

/* Session stats */
.session {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.75rem; margin-top: 1.25rem; padding: 1rem 1.25rem;
  border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line);
}
.session__stat span { display: block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
.session__stat strong { font-size: 1.25rem; color: var(--text-1); font-variant-numeric: tabular-nums; }
.session__stat--div span { color: var(--emerald); }
.session__stat--gold span { color: var(--gold-2); }
.session .btn { margin-left: auto; }

/* Rates + rules */
.rates-grid { display: grid; gap: clamp(1.75rem, 4vw, 3rem); align-items: start; }
@media (min-width: 900px) { .rates-grid { grid-template-columns: 1fr 1fr; } }
.rate-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.rate-table th, .rate-table td { padding: 0.95rem 0.6rem; text-align: left; border-bottom: 1px solid var(--line-2); }
.rate-table thead th { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
.rate-table tbody th { color: var(--text-1); font-weight: 650; }
.rate-table td { color: var(--text-1); }
.tier-dot { display: inline-block; width: 10px; height: 10px; margin-right: 0.65rem; border-radius: 50%; vertical-align: 1px; }
.tier-dot--divine { background: var(--emerald); box-shadow: 0 0 10px rgba(16, 232, 152, 0.7); }
.tier-dot--gold { background: var(--gold-2); box-shadow: 0 0 10px rgba(243, 186, 47, 0.6); }
.tier-dot--silver { background: #d4dceb; }
.tier-dot--bronze { background: #cf8a52; }
.rules { list-style: none; padding: 0; display: grid; gap: 1.1rem; }
.rules li { display: grid; grid-template-columns: 24px 1fr; gap: 0.8rem; color: var(--text-2); }
.rules svg { width: 22px; height: 22px; color: var(--gold-2); margin-top: 2px; }
.rules strong { color: var(--text-1); }

/* Cutscene overlay */
.cutscene { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; background: #000; }
.cutscene video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.cutscene__skip { position: absolute; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom)); background: rgba(0, 0, 0, 0.55); }
