/* ============ Mythic Raffle tab ============ */

.raffle-layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 1100px;
}

/* Prize showcase */
.raffle-prize-card {
    display: flex;
    gap: 28px;
    padding: 24px;
    background: linear-gradient(135deg, rgba(255, 161, 87, 0.08), rgba(20, 30, 48, 0.9));
    border: 1px solid rgba(255, 161, 87, 0.35);
    border-radius: 16px;
    box-shadow: 0 0 40px rgba(255, 161, 87, 0.08);
}

.raffle-prize-art {
    flex: 0 0 auto;
}

.raffle-prize-art img {
    width: 240px;
    height: 240px;
    object-fit: contain;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.25);
    box-shadow: 0 0 24px rgba(255, 161, 87, 0.25);
}

.raffle-prize-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
    min-width: 0;
}

.raffle-prize-info h2 {
    margin: 0;
    font-size: 30px;
}

.mythic-badge {
    align-self: flex-start;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #1a1206;
    background: linear-gradient(90deg, #ffd93d, #ffa157);
    box-shadow: 0 0 14px rgba(255, 161, 87, 0.5);
}

.raffle-prize-flavor {
    margin: 0;
    color: var(--text-dim, #94a3b8);
    font-style: italic;
    line-height: 1.5;
}

.raffle-prize-stats {
    display: flex;
    gap: 14px;
}

.prize-stat {
    padding: 6px 14px;
    border-radius: 8px;
    background: rgba(255, 161, 87, 0.12);
    border: 1px solid rgba(255, 161, 87, 0.3);
    font-weight: 700;
    font-size: 18px;
    color: #ffd9ad;
}

.prize-stat small {
    font-size: 11px;
    color: var(--text-dim, #94a3b8);
    margin-left: 3px;
}

.raffle-prize-note {
    margin: 0;
    font-size: 12px;
    color: var(--text-dim, #94a3b8);
}

/* Status row */
.raffle-status-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}

.raffle-stat-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 18px;
    background: rgba(20, 30, 48, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
}

.raffle-stat-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dim, #94a3b8);
}

.raffle-stat-value {
    font-size: 24px;
    font-weight: 800;
    color: #ffd9ad;
}

/* Winner banner */
.raffle-winner-banner {
    padding: 18px 22px;
    border-radius: 12px;
    background: rgba(255, 161, 87, 0.1);
    border: 1px solid rgba(255, 161, 87, 0.4);
    font-size: 16px;
}

.raffle-won {
    font-size: 20px;
    font-weight: 800;
    color: #ffd93d;
    text-shadow: 0 0 18px rgba(255, 217, 61, 0.5);
}

/* Entry section */
.raffle-entry-section {
    background: rgba(20, 30, 48, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 20px;
}

.raffle-entry-header h3 {
    margin: 0 0 6px;
}

.raffle-entry-header p {
    margin: 0 0 16px;
    color: var(--text-dim, #94a3b8);
    font-size: 14px;
}

.raffle-entry-header strong {
    color: #fca5a5;
}

.raffle-salmon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 12px;
    max-height: 420px;
    overflow-y: auto;
    padding: 4px;
}

.raffle-grid-empty {
    grid-column: 1 / -1;
    padding: 32px;
    text-align: center;
    color: var(--text-dim, #94a3b8);
}

.raffle-salmon-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 8px;
    background: rgba(0, 0, 0, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.15s, transform 0.1s;
    user-select: none;
}

.raffle-salmon-card:hover {
    border-color: rgba(255, 161, 87, 0.5);
    transform: translateY(-2px);
}

.raffle-salmon-card.selected {
    border-color: #ffa157;
    background: rgba(255, 161, 87, 0.12);
    box-shadow: 0 0 12px rgba(255, 161, 87, 0.3);
}

.raffle-salmon-art {
    width: 72px;
    height: 72px;
}

.raffle-salmon-art svg,
.raffle-salmon-art img {
    width: 100%;
    height: 100%;
}

.raffle-salmon-id {
    font-weight: 700;
    font-size: 13px;
}

.raffle-salmon-rarity {
    font-size: 11px;
    color: var(--text-dim, #94a3b8);
}

.raffle-salmon-stats {
    display: flex;
    gap: 7px;
    font-size: 11px;
    color: var(--text-dim, #94a3b8);
    white-space: nowrap;
}

.raffle-salmon-rarity.rarity-legendary { color: #ffa157; }
.raffle-salmon-rarity.rarity-epic { color: #ff6bcd; }
.raffle-salmon-rarity.rarity-rare { color: #6bcfff; }

.raffle-entry-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    margin-top: 16px;
}

.raffle-selected-count {
    color: var(--text-dim, #94a3b8);
    font-size: 14px;
}

.raffle-burn-btn {
    min-width: 200px;
}

@media (max-width: 720px) {
    .raffle-prize-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .raffle-prize-info {
        align-items: center;
    }

    .mythic-badge {
        align-self: center;
    }
}

/* ============ Raffle #2 (ROE burn) ============ */

.raffle-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 161, 87, 0.4), transparent);
    margin: 8px 0;
}

.roe-raffle-entry-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.roe-raffle-qty {
    display: flex;
    align-items: center;
    gap: 6px;
}

.roe-qty-btn {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.25);
    color: var(--text-main, #e2e8f0);
    font-size: 18px;
    cursor: pointer;
}

.roe-qty-btn:hover {
    border-color: rgba(255, 161, 87, 0.5);
}

.roe-raffle-qty input {
    width: 90px;
    height: 38px;
    text-align: center;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.25);
    color: var(--text-main, #e2e8f0);
    font-size: 16px;
    font-weight: 700;
}

.roe-raffle-cost {
    font-weight: 700;
    color: #ffd9ad;
    min-width: 120px;
}

.roe-raffle-balance {
    margin: 10px 0 0;
    font-size: 13px;
    color: var(--text-dim, #94a3b8);
}
