/* ============================================================
   Classic Slots - pixel-identical WBET Originals arcade
   values mirrored from nexusrivo.wo3yulsti.com/classic-slots
   ============================================================ */
.cs-root {
    --rb-card-deep: #191939;
    --rb-card-sunken: #12142E;
    --rb-bg: #090C1D;
    --rb-text: #ffffff;
    --rb-text-soft: rgba(191, 191, 191, 0.82);
    --rb-text-faint: rgba(160, 160, 160, 0.55);
    --rb-gold: #01e0a3;
    --rb-gold-deep: #04241b;
    --rb-border: rgba(1, 224, 163, 0.18);
    --rb-button-gradient: linear-gradient(420deg, rgb(0 255 142) 0%, #01e0a3 49%, #00aa6d 49%, #00aa6d 100%);
    --rb-button-box: #3a6d5f 0 -3px 0 0 inset, rgb(47 255 186) 0 2px 0 0 inset;
    background: var(--rb-bg);
    color: var(--rb-text);
    font-family: 'Inter', 'Exo 2', system-ui, sans-serif;
}

.cs-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 8px 0;
}
@media (min-width: 640px) { .cs-wrap { padding: 8px; } }

.cs-title {
    margin: 0 0 12px;
    padding-left: 4px;
    font-size: 19px;
    font-weight: 900;
    color: var(--rb-text);
}

.cs-grid { display: grid; gap: 12px; }
@media (min-width: 1024px) { .cs-grid { grid-template-columns: 320px minmax(0, 1fr); } }

.cs-left { order: 2; border-radius: 14px; background: var(--rb-card-deep); padding: 16px; }
@media (min-width: 1024px) { .cs-left { order: 1; } }
.cs-stack { display: flex; flex-direction: column; gap: 12px; }

.cs-betlabel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--rb-text-faint);
}
.cs-betlabel .cs-bal { text-transform: none; letter-spacing: normal; }

.cs-inputrow { display: flex; align-items: stretch; gap: 4px; }
.cs-input {
    flex: 1;
    min-width: 0;
    height: 44px;
    border: none;
    border-radius: 8px;
    background: var(--rb-bg);
    padding: 0 12px;
    font-size: 14px;
    font-weight: 700;
    color: var(--rb-text);
    outline: none;
    font-family: inherit;
}
.cs-mini {
    flex-shrink: 0;
    height: 44px;
    border: none;
    border-radius: 8px;
    background: var(--rb-bg);
    padding: 0 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--rb-text-soft);
    cursor: pointer;
    transition: filter 0.15s;
    font-family: inherit;
}
.cs-mini:hover { filter: brightness(1.25); }

.cs-fieldlabel {
    display: block;
    margin-bottom: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--rb-text-faint);
}

.cs-paytable { display: flex; flex-direction: column; gap: 4px; }
.cs-payrow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 8px;
    background: var(--rb-bg);
    padding: 6px 8px;
}
.cs-paysyms { display: flex; align-items: center; gap: 6px; }
.cs-paysyms img { height: 20px; width: 20px; object-fit: contain; }
.cs-payname { font-size: 11px; font-weight: 700; color: var(--rb-text-soft); }
.cs-payval { font-size: 12px; font-weight: 900; color: var(--rb-gold); }
.cs-payval.plain { color: var(--rb-text); }

.cs-maxprize { border-radius: 8px; background: var(--rb-bg); padding: 8px; }
.cs-maxlabel {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--rb-text-faint);
    margin-bottom: 2px;
}
.cs-maxval { display: block; font-size: 13px; font-weight: 900; color: var(--rb-text); }

.cs-desc { margin: 0; font-size: 11px; line-height: 1.6; color: var(--rb-text-faint); }

.cs-goldbtn {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 10px;
    background: var(--rb-button-gradient);
    box-shadow: var(--rb-button-box);
    color: var(--rb-gold-deep);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: opacity 0.15s, filter 0.15s;
    font-family: inherit;
}
.cs-goldbtn:hover { filter: brightness(1.08); }
.cs-goldbtn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---- board ---- */
.cs-board { order: 1; min-width: 0; border-radius: 14px; background: var(--rb-card-sunken); padding: 12px; }
@media (min-width: 640px) { .cs-board { padding: 16px; } }
@media (min-width: 1024px) { .cs-board { order: 2; } }

.cs-arena { position: relative; overflow: hidden; border-radius: 10px; min-height: min(62vh, 470px); }
.cs-arena-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: url('/assets/originals/board-bg.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.cs-arena-tint { position: absolute; inset: 0; pointer-events: none; background: rgba(6, 10, 18, 0.5); }
.cs-history {
    position: absolute;
    right: 12px;
    top: 12px;
    z-index: 30;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 4px;
    pointer-events: none;
}
.cs-vela {
    border-radius: 10px;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 900;
    text-transform: capitalize;
}
.cs-vela.win { background: #14be7d; color: #04231a; }
.cs-vela.lose { background: rgba(7, 5, 19, 0.82); color: rgba(226, 238, 255, 0.72); }
.cs-arena-inner { position: relative; }
.cs-stage {
    display: grid;
    min-height: min(62vh, 470px);
    place-items: center;
    padding: 24px 12px;
}

.cs-machine { position: relative; margin: 0 auto; width: fit-content; }
.cs-bamboo {
    position: absolute;
    z-index: 0;
    width: 104px;
    opacity: 0.9;
    pointer-events: none;
}
.cs-bamboo.tl { left: -36px; top: -32px; transform: rotate(180deg); }
.cs-bamboo.br { bottom: -32px; right: -36px; }

.cs-frame {
    position: relative;
    z-index: 10;
    display: flex;
    gap: 8px;
    border-radius: 18px;
    background: rgba(39, 43, 63, 0.92);
    padding: 12px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09);
}
@media (min-width: 640px) { .cs-frame { gap: 16px; } }

.cs-reel {
    position: relative;
    overflow: hidden;
    width: 84px;
    height: 252px;
    border: 3px solid rgb(39, 43, 63);
    border-radius: 14px;
    background: rgba(4, 8, 14, 0.94);
    transition: border-color 0.3s;
}
@media (min-width: 768px) { .cs-reel { border-width: 5px; } }
.cs-reel.hit { border-color: var(--rb-gold); }

.cs-strip {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    transform: translateY(0px);
    transition: none;
}
.cs-strip.spinning { transition: transform 1100ms cubic-bezier(0.2, 0.7, 0.3, 1); }
.cs-sym {
    display: grid;
    place-items: center;
    height: 84px;
}
.cs-sym img { height: 62%; width: auto; object-fit: contain; }

.cs-payline {
    position: absolute;
    left: 0;
    right: 0;
    top: 84px;
    height: 84px;
    pointer-events: none;
    box-shadow: rgba(255, 255, 255, 0.07) 0px 0px 0px 1px inset;
}

.cs-result {
    margin: 28px 0 0;
    text-align: center;
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(226, 238, 255, 0.5);
}
.cs-result.three { color: var(--rb-gold); }
.cs-result.pair { color: rgba(226, 238, 255, 0.85); }
.cs-result.none { color: rgba(226, 238, 255, 0.5); }

/* ---- provably fair accordion ---- */
.cs-fair { margin-top: 12px; border-radius: 14px; background: var(--rb-card-deep); }
.cs-fair-head { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 8px; border: none; background: transparent; padding: 12px 16px; text-align: left; cursor: pointer; font-family: inherit; }
.cs-fair-title { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--rb-text); }
.cs-fair-title svg { color: var(--rb-gold); }
.cs-fair-chevron { color: var(--rb-text-faint); transition: transform 0.2s; }
.cs-fair-chevron.open { transform: rotate(180deg); }
.cs-fair-body { display: none; flex-direction: column; gap: 12px; border-top: 1px solid var(--rb-border); padding: 16px; }
.cs-fair-body.open { display: flex; }
.cs-fair-desc { margin: 0; font-size: 12px; line-height: 1.625; color: var(--rb-text-soft); }
.cs-fair-box { display: flex; flex-direction: column; gap: 4px; }
.cs-fair-boxlabel { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--rb-text-faint); }
.cs-fair-value { overflow-x: auto; word-break: break-all; border-radius: 6px; background: var(--rb-bg); padding: 6px 8px; font-size: 11px; color: var(--rb-text-soft); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.cs-fair-value.strong { font-family: inherit; font-weight: 600; }
.cs-fair-attach { display: flex; gap: 8px; }
.cs-fair-input { flex: 1; min-width: 0; height: 40px; border: none; border-radius: 8px; background: var(--rb-bg); padding: 0 12px; font-size: 12px; font-weight: 600; color: var(--rb-text); outline: none; font-family: inherit; }
.cs-fair-btn { display: flex; align-items: center; justify-content: center; gap: 6px; height: 40px; border-radius: 10px; border: 1px solid var(--rb-border); background: var(--rb-bg); color: var(--rb-text); font-size: 12px; font-weight: 900; text-transform: uppercase; cursor: pointer; transition: filter 0.15s; font-family: inherit; fill: none; }
.cs-fair-btn:hover { filter: brightness(1.25); }
.cs-fair-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.cs-fair-btn.shrink { flex-shrink: 0; padding: 0 16px; }
.cs-fair-btn.full { width: 100%; }
