/* =====================================================================
   SOUL SHOP — minimalist post-rebirth setup window.
   Matches the game's pattern: sans-serif (inherited Inter), teal titles,
   gold values, gray descriptions, flat dark cards. Centered layout,
   SVG soul-orb icon. Scoped to #soulShop.
   ===================================================================== */

#soulShop {
    --ss-teal:  #4ecdc4;
    --ss-gold:  #ffd700;
    --ss-line:  rgba(255, 255, 255, 0.08);
    --ss-text:  #e6eeed;
    --ss-dim:   #9aa3a1;

    padding: 4px 4px 32px;
}

/* ---------------------------------------------------------------------
   SETUP BANNER (Confirm & Begin)
   --------------------------------------------------------------------- */
.ss-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 4px 0 22px;
    padding: 14px 18px;
    border-radius: 8px;
    border: 1px solid rgba(78, 205, 196, 0.25);
    background: rgba(0, 0, 0, 0.3);
}
.ss-rune { flex-shrink: 0; width: 40px; height: 40px; display: grid; place-items: center; }
.ss-rune svg { width: 40px; height: 40px; overflow: visible; }
.ss-rune .ss-orbit { transform-origin: 24px 24px; animation: ssSpin 10s linear infinite; }
@keyframes ssSpin { to { transform: rotate(360deg); } }

.ss-banner-body { min-width: 0; }
.ss-banner-eyebrow {
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ss-gold);
    font-weight: 700;
}
.ss-banner-title { font-size: 0.9rem; color: var(--ss-text); font-weight: 600; margin-top: 2px; }
.ss-banner-hint  { font-size: 0.68rem; color: var(--ss-dim); margin-top: 2px; }

.ss-confirm {
    margin-left: auto;
    flex-shrink: 0;
    cursor: pointer;
    padding: 9px 24px;
    border-radius: 6px;
    white-space: nowrap;
    font-weight: 700;
    font-size: 0.85rem;
    color: #04211f;
    border: none;
    background: var(--ss-teal);
    transition: background 0.15s;
}
.ss-confirm:hover { background: #5fd8cf; }

/* ---------------------------------------------------------------------
   HERO — centered identity + soul power meters
   --------------------------------------------------------------------- */
.ss-hero { text-align: center; margin-bottom: 22px; }
.ss-hero-eyebrow {
    font-size: 0.65rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ss-gold);
    opacity: 0.85;
}
.ss-hero-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--ss-teal);
    margin: 2px 0 0;
}

.ss-meters {
    display: inline-flex;
    align-items: stretch;
    margin-top: 12px;
    padding: 8px 4px;
    border-radius: 8px;
    border: 1px solid var(--ss-line);
    background: rgba(0, 0, 0, 0.25);
}
.ss-meter { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 2px 22px; }
.ss-meter-label {
    font-size: 0.58rem; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--ss-dim); font-weight: 700;
}
.ss-meter-value {
    display: flex; align-items: center; gap: 6px;
    font-size: 1.1rem; font-weight: 700; line-height: 1;
    font-variant-numeric: tabular-nums;
}
.ss-meter--avail .ss-meter-value { color: var(--ss-teal); }
.ss-meter--total .ss-meter-value { color: var(--ss-gold); }
.ss-meter-value::before {
    content: ""; width: 7px; height: 7px; border-radius: 50%;
    background: currentColor; box-shadow: 0 0 6px currentColor; flex-shrink: 0;
}
.ss-meter-div { width: 1px; align-self: stretch; margin: 2px 0; background: var(--ss-line); }

/* ---------------------------------------------------------------------
   ITEM GRID + CARDS
   --------------------------------------------------------------------- */
.ss-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
    max-width: 720px;
    margin: 0 auto;
}

.ss-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 18px;
    border-radius: 8px;
    border: 1px solid var(--ss-line);
    background: rgba(255, 255, 255, 0.04);
    transition: border-color 0.2s ease, transform 0.2s ease;
}
.ss-card:hover { border-color: var(--ss-teal); transform: translateY(-2px); }

.ss-card-head {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
    margin-bottom: 8px;
}
.ss-card-title { font-size: 1.1rem; font-weight: 700; color: var(--ss-teal); }
.ss-badge {
    flex-shrink: 0;
    font-size: 0.58rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
    padding: 3px 8px; border-radius: 999px; white-space: nowrap;
    color: var(--ss-teal);
    border: 1px solid rgba(78, 205, 196, 0.3);
    background: rgba(78, 205, 196, 0.07);
}
.ss-badge--infinite {
    color: var(--ss-gold);
    border-color: rgba(255, 215, 0, 0.3);
    background: rgba(255, 215, 0, 0.07);
}

.ss-card-desc { font-size: 0.85rem; line-height: 1.5; color: var(--ss-dim); margin-bottom: 14px; flex: 1; }

.ss-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.ss-cost { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.ss-cost-amount {
    display: flex; align-items: center; gap: 6px;
    font-size: 1rem; font-weight: 700; color: var(--ss-gold); line-height: 1;
    font-variant-numeric: tabular-nums;
}
.ss-cost-amount::before {
    content: ""; width: 7px; height: 7px; border-radius: 50%;
    background: var(--ss-gold); box-shadow: 0 0 6px rgba(255, 215, 0, 0.7); flex-shrink: 0;
}
.ss-cost-label {
    font-size: 0.58rem; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--ss-dim); margin-left: 13px;
}

.ss-buy {
    flex-shrink: 0;
    cursor: pointer;
    padding: 9px 22px;
    border-radius: 6px;
    font-weight: 700; font-size: 0.85rem;
    color: #04211f; border: none;
    background: var(--ss-teal);
    transition: background 0.15s;
}
.ss-buy:hover:not(:disabled) { background: #5fd8cf; }
.ss-buy:disabled {
    cursor: not-allowed; color: #6a7370;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.ss-card-note {
    font-size: 0.74rem; color: #8be9fd;
    margin-top: 10px; padding-top: 10px;
    border-top: 1px dashed rgba(139, 233, 253, 0.2);
}

/* Sealed / fully purchased state */
.ss-card.is-sealed { border-color: rgba(120, 220, 150, 0.22); }
.ss-sealed-tag {
    display: flex; align-items: center; gap: 6px;
    font-size: 0.82rem; font-weight: 700; letter-spacing: 0.05em; color: #6ee7a0;
}
.ss-sealed-tag::before {
    content: ""; width: 14px; height: 14px; flex-shrink: 0; background: currentColor;
    -webkit-mask: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E");
    mask: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E");
}

/* ---------------------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------------------- */
@media (max-width: 640px) {
    .ss-banner { flex-wrap: wrap; gap: 12px; }
    .ss-confirm { margin-left: 0; width: 100%; }
    .ss-grid { grid-template-columns: 1fr; }
}
