/* Golden Starline — player UI */

.sl-hero {
    background: linear-gradient(135deg, #1a1200 0%, #2d2208 40%, #4a3a0f 100%);
    border: 1px solid rgba(212, 160, 23, 0.35);
    border-radius: 1rem;
    padding: 1.25rem 1rem;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}

.sl-hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 60%;
    height: 120%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.sl-hero-tag {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #f5d76e;
    background: rgba(212, 160, 23, 0.2);
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    margin-bottom: 0.5rem;
}

.sl-hero h2 {
    margin: 0 0 0.35rem;
    font-size: 1.45rem;
    color: #fff8e7;
}

.sl-hero p {
    margin: 0 0 0.85rem;
    font-size: 0.88rem;
    color: rgba(255, 248, 231, 0.75);
}

.sl-countdown {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.sl-countdown-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 248, 231, 0.6);
}

.sl-countdown-timer {
    font-variant-numeric: tabular-nums;
    font-size: 1.35rem;
    font-weight: 700;
    color: #ffd700;
}

.sl-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px #22c55e;
    animation: sl-pulse 1.4s ease-in-out infinite;
}

@keyframes sl-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

.sl-rates-strip {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    margin-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
}

.sl-rate-chip {
    flex: 0 0 auto;
    font-size: 0.72rem;
    padding: 0.35rem 0.6rem;
    border-radius: 0.5rem;
    background: rgba(212, 160, 23, 0.12);
    border: 1px solid rgba(212, 160, 23, 0.25);
    color: var(--text-muted);
    white-space: nowrap;
}

.sl-rate-chip strong {
    color: #f5d76e;
}

.sl-slot-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    width: 100%;
}

.sl-slot-card {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    width: 100%;
    padding: 0.8rem 0.85rem;
    border-radius: 0.75rem;
    background: var(--card, #151f33);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.sl-slot-card.sl-slot-active {
    border-color: rgba(212, 160, 23, 0.55);
    box-shadow: 0 0 0 1px rgba(212, 160, 23, 0.2), 0 4px 20px rgba(212, 160, 23, 0.08);
}

/* Row 1: time (left) + result (right, prominent) */
.sl-slot-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-width: 0;
}

.sl-slot-time {
    flex: 0 0 auto;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--muted, #94a3b8);
    line-height: 1.2;
    white-space: nowrap;
}

.sl-slot-result {
    flex: 1 1 auto;
    min-width: 0;
    text-align: right;
    font-size: 1.4rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.08em;
    color: #ffd700;
    white-space: nowrap;
    line-height: 1.1;
    text-shadow: 0 0 14px rgba(255, 215, 0, 0.25);
}

.sl-slot-result.pending {
    font-size: 1.25rem;
    color: rgba(148, 163, 184, 0.85);
    text-shadow: none;
    letter-spacing: 0.12em;
}

/* Row 2: compact badge + action button */
.sl-slot-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    min-width: 0;
    padding-top: 0.45rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.sl-badge {
    flex: 0 0 auto;
    display: inline-block;
    width: auto;
    max-width: calc(100% - 5.5rem);
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.22rem 0.5rem;
    border-radius: 0.35rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.sl-badge-live {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
}

.sl-badge-lock {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
}

.sl-badge-wait {
    background: rgba(96, 165, 250, 0.15);
    color: #60a5fa;
}

.sl-badge-done {
    background: rgba(148, 163, 184, 0.15);
    color: #94a3b8;
}

.sl-play-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.85rem;
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: 0.45rem;
    background: linear-gradient(135deg, #d4a017, #b8860b);
    color: #1a1200;
    text-decoration: none;
    border: none;
    white-space: nowrap;
    line-height: 1.2;
    min-width: 4.25rem;
}

.sl-play-btn-login {
    min-width: 4.5rem;
}

.sl-play-btn.disabled {
    opacity: 0.45;
    pointer-events: none;
}

@media (min-width: 541px) {
    .sl-slot-result {
        font-size: 1.5rem;
    }

    .sl-slot-result.pending {
        font-size: 1.35rem;
    }

    .sl-slot-time {
        font-size: 0.85rem;
    }
}

.sl-actions-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.sl-rates-page-card {
    border-color: rgba(212, 160, 23, 0.35);
    background: linear-gradient(180deg, rgba(212, 160, 23, 0.06), transparent);
}

/* Play page */
.sl-play-header {
    background: linear-gradient(135deg, #1a1200, #2d2208);
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(212, 160, 23, 0.3);
}

.sl-game-tabs {
    display: flex;
    gap: 0.35rem;
    overflow-x: auto;
    margin-bottom: 1rem;
    padding-bottom: 0.25rem;
}

.sl-game-tab {
    flex: 0 0 auto;
    padding: 0.45rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 0.5rem;
    text-decoration: none;
    color: var(--text-muted);
    border: 1px solid var(--border);
    background: var(--card-bg);
}

.sl-game-tab.active {
    background: rgba(212, 160, 23, 0.2);
    border-color: rgba(212, 160, 23, 0.45);
    color: #f5d76e;
}

/* Panel chart */
.sl-chart-wrap {
    overflow-x: auto;
    margin-top: 0.75rem;
}

.sl-chart-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.72rem;
}

.sl-chart-table th,
.sl-chart-table td {
    border: 1px solid var(--border);
    padding: 0.35rem 0.3rem;
    text-align: center;
    white-space: nowrap;
}

.sl-chart-table th {
    background: rgba(212, 160, 23, 0.1);
    color: #f5d76e;
    font-weight: 600;
}

.sl-chart-table td:first-child {
    text-align: left;
    font-weight: 600;
    position: sticky;
    left: 0;
    background: var(--card-bg);
    z-index: 1;
}
