@import url('https://fonts.googleapis.com/css2?family=Kreon:wght@400;500;700&display=swap');

/* =========================================
   1. GLOBAL OVERRIDES (THE THEME)
   ========================================= */
.game-page-wrapper {
    /* Replace global colors with Spire colors */
    --red: #ff6565;
    --green: #7fff00;
    --yellow: #f6c043;
    --blue: #87ceeb;
    --purple: #c18cff;
    
    font-family: 'Kreon', serif;
    font-size: 1.4rem;
    line-height: 1.6;
}

.title { color: var(--yellow); }

/* =========================================
   2. EVENT COMPONENTS
   ========================================= */
.sts-event-quote {
    font-size: 1.4rem;
    font-style: italic;
    margin-bottom: 25px;
    text-shadow: 0 0 4px rgba(126, 201, 255, 0.3);
}

.sts-event-option {
    margin-top: 20px;
    padding: 18px 24px;
    border-radius: 8px;
    background: linear-gradient(180deg, #2a3a40, #1c2b30);
    border: 1px solid #3f5a63;
    width: 100%;
    max-width: 500px;
    box-sizing: border-box;
}

.sts-option-title {
    color: var(--yellow);
    font-size: 1.4rem;
    margin-bottom: 8px;
    font-weight: bold;
}

/* =========================================
   3. CARD COMPONENTS
   ========================================= */
.sts-card-display {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 25px 0;
    justify-content: center;
}

.sts-card {
    background: #1a1a1a;
    width: 100%;
    max-width: 260px;
    padding: 8px;
    border-radius: 8px; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    text-align: center;
    display: flex; 
    flex-direction: column;
    box-sizing: border-box;
}

.sts-card-inner {
    border: 3px solid #888; 
    flex-grow: 1; 
    padding: 15px 10px;
    position: relative;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

/* Card Types & Rarities */
.sts-card.power .sts-card-inner { border-radius: 15px; }
.sts-card.skill .sts-card-inner { border-radius: 4px; }
.sts-card.attack .sts-card-inner { border-radius: 4px; }

.sts-card.rare .sts-card-inner { border-color: var(--yellow); }
.sts-card.uncommon .sts-card-inner { border-color: var(--blue); }
.sts-card.common .sts-card-inner { border-color: #95a5a6; }
.sts-card.event .sts-card-inner { border-color: var(--green); }
.sts-card.ancient .sts-card-inner { border-color: #2c3e50; background: #000; }

/* Card Details */
.sts-card-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    position: relative;
}

.sts-energy {
    position: absolute;
    left: -5px;
    top: -5px;
    background: var(--green);
    color: #111;
    font-weight: bold;
    font-size: 1.2em;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #111;
}

.sts-card-title { font-size: 1.2em; font-weight: bold; color: #eee; }
.sts-card-type-banner {
    font-size: 0.8em;
    text-transform: uppercase;
    background: #333;
    display: inline-block;
    padding: 2px 10px;
    border-radius: 4px;
    margin: 0 auto 15px auto;
    color: #ccc;
}

.sts-card-text { flex-grow: 1; font-size: 1.05em; line-height: 1.4; margin-bottom: 15px; }
.sts-card-footer { font-size: 0.8em; color: #888; text-transform: uppercase; letter-spacing: 1px; }

.sts-card-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
    padding: 0 10px;
}

.sts-card-arrow .material-symbols-outlined {
    font-size: 3.5em;
    color: var(--green);
    margin-top: -5px;
    transition: transform 0.2s ease;
}

@media (max-width: 650px) {
    .sts-card-arrow { flex-direction: row; gap: 15px; margin: 10px 0; }
    .sts-card-arrow .material-symbols-outlined { transform: rotate(90deg); margin-top: 0; }
}