.club91cp-prediction-shell {
    min-width: 0;
    padding: 1.15rem;
    border: 1px solid var(--club91cp-border);
    border-radius: var(--club91cp-radius-lg);
    background:
        radial-gradient(circle at 90% 0, rgba(0,212,255,.14), transparent 20rem),
        linear-gradient(145deg, rgba(108,77,255,.14), transparent 52%),
        var(--club91cp-surface);
    box-shadow: var(--club91cp-shadow);
}

.club91cp-prediction-topline {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem 1rem;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.club91cp-ist-clock {
    color: var(--club91cp-accent);
    font-variant-numeric: tabular-nums;
    font-weight: 900;
}

.club91cp-prediction-status {
    color: var(--club91cp-muted);
    font-size: .86rem;
}

.club91cp-prediction-core {
    display: grid;
    gap: .8rem;
    grid-template-columns: minmax(0,1fr);
}

.club91cp-prediction-metric {
    min-width: 0;
    padding: .9rem;
    border: 1px solid var(--club91cp-border);
    border-radius: 12px;
    background: rgba(5,7,19,.62);
}

.club91cp-prediction-label {
    display: block;
    margin-bottom: .28rem;
    color: var(--club91cp-muted);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.club91cp-prediction-value {
    display: block;
    min-width: 0;
    color: #fff;
    font-size: clamp(1.05rem, 4vw, 1.45rem);
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

.club91cp-countdown {
    color: var(--club91cp-accent);
    font-size: clamp(1.5rem, 8vw, 2.6rem);
}

.club91cp-reference-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin-top: .15rem;
}

.club91cp-number-ball {
    display: inline-grid;
    width: 2.3rem;
    height: 2.3rem;
    place-content: center;
    border: 1px solid var(--club91cp-border);
    border-radius: 50%;
    color: #fff;
    background: var(--club91cp-card);
    font-weight: 900;
}

.club91cp-reference-colour {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}

.club91cp-reference-colour::before {
    content: "";
    width: .75rem;
    height: .75rem;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 4px rgba(255,255,255,.05);
}

.club91cp-reference-colour[data-colour="Red"] { color: #FF4D6D; }
.club91cp-reference-colour[data-colour="Green"] { color: #18D27A; }
.club91cp-reference-colour[data-colour="Violet"] { color: #A77BFF; }

.club91cp-prediction-note {
    margin-top: 1rem;
    padding: .85rem 1rem;
    border: 1px solid rgba(255,138,0,.28);
    border-radius: 12px;
    color: #D9DFE8;
    background: rgba(255,138,0,.065);
    font-size: .9rem;
}

.club91cp-period-tabs {
    display: grid;
    gap: .65rem;
    grid-template-columns: minmax(0,1fr);
}

.club91cp-period-tab {
    display: block;
    padding: .9rem;
    border: 1px solid var(--club91cp-border);
    border-radius: 12px;
    color: var(--club91cp-text);
    background: var(--club91cp-card);
    text-decoration: none;
}

.club91cp-period-tab[aria-current="page"] {
    border-color: var(--club91cp-primary);
    background: rgba(108,77,255,.17);
}

.club91cp-reference-history {
    width: 100%;
    overflow-x: auto;
    margin-top: 1rem;
}

.club91cp-reference-history table {
    width: 100%;
    min-width: 650px;
    border-collapse: collapse;
    border: 1px solid var(--club91cp-border);
    background: var(--club91cp-surface);
}

.club91cp-reference-history th,
.club91cp-reference-history td {
    padding: .7rem .75rem;
    border-bottom: 1px solid var(--club91cp-border);
    text-align: left;
    font-size: .9rem;
}

.club91cp-reference-history th {
    color: #fff;
    background: rgba(108,77,255,.10);
}

.club91cp-reference-history td {
    color: #C8D2E6;
}

.club91cp-history-empty {
    color: var(--club91cp-muted);
}

@media (min-width: 520px) {
    .club91cp-prediction-core { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .club91cp-period-tabs { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (min-width: 768px) {
    .club91cp-prediction-core { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (min-width: 1024px) {
    .club91cp-prediction-shell { padding: 1.4rem; }
    .club91cp-prediction-core {
        grid-template-columns: minmax(0,1.35fr) repeat(2,minmax(0,1fr));
    }
    .club91cp-period-tabs { grid-template-columns: repeat(4,minmax(0,1fr)); }
}

@media (max-width: 639px) {
    .club91cp-prediction-shell { padding: .9rem; }
    .club91cp-prediction-core,
    .club91cp-period-tabs { grid-template-columns: minmax(0,1fr); }
    .club91cp-prediction-value { max-width: 100%; }
}
