/* ============================================================
   Limbo - pixel-identical WBET Originals arcade limbo
   values mirrored from nexusrivo.wo3yulsti.com/limbo
   ============================================================ */
.lb-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;
}

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

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

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

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

.lb-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);
}
.lb-betlabel .lb-bal { text-transform: none; letter-spacing: normal; }

.lb-inputrow { display: flex; align-items: stretch; gap: 4px; }
.lb-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;
}
.lb-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;
}
.lb-mini:hover { filter: brightness(1.25); }

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

.lb-wrapinput { position: relative; display: block; }
.lb-wrapinput .lb-input { padding-right: 36px; }
.lb-suffix {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 12px;
    font-weight: 700;
    color: var(--rb-text-faint);
}

.lb-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lb-stat { border-radius: 8px; background: var(--rb-bg); padding: 8px; }
.lb-stat.span2 { grid-column: span 2 / span 2; }
.lb-statlabel {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--rb-text-faint);
    margin-bottom: 2px;
}
.lb-statval {
    display: block;
    font-size: 13px;
    font-weight: 900;
    color: var(--rb-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lb-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;
}
.lb-goldbtn:hover { filter: brightness(1.08); }
.lb-goldbtn:disabled { opacity: 0.5; cursor: not-allowed; }

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

.lb-arena { position: relative; overflow: hidden; border-radius: 10px; min-height: min(62vh, 470px); }
.lb-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;
}
.lb-arena-tint { position: absolute; inset: 0; pointer-events: none; background: rgba(6, 10, 18, 0.44); }
.lb-history {
    position: absolute;
    right: 12px;
    top: 12px;
    z-index: 30;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 4px;
    pointer-events: none;
}
.lb-vela {
    border-radius: 10px;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 900;
    text-transform: capitalize;
}
.lb-vela.win { background: #14be7d; color: #04231a; }
.lb-vela.lose { background: rgba(7, 5, 19, 0.82); color: rgba(226, 238, 255, 0.72); }
.lb-arena-inner { position: relative; }
.lb-stage {
    display: flex;
    min-height: min(62vh, 470px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 24px 12px;
}

.lb-mult {
    display: block;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    color: rgba(226, 238, 255, 0.75);
    font-size: clamp(38px, 10vw, 72px);
    transition: color 0.3s;
}
.lb-mult.win { color: var(--rb-gold); }
.lb-mult.lose { color: #ff5a5a; }

.lb-runner {
    height: 150px;
    width: auto;
    object-fit: contain;
    opacity: 0.55;
    transition: opacity 0.3s;
}
@media (min-width: 640px) { .lb-runner { height: 190px; } }
.lb-runner.flying { opacity: 1; }

.lb-pills {
    display: flex;
    gap: 8px;
    border-radius: 26px;
    background: rgba(7, 5, 19, 0.8);
    padding: 8px;
    margin: 0 auto;
    width: fit-content;
}
.lb-pill {
    display: flex;
    min-width: 92px;
    flex-direction: column;
    align-items: center;
    border-radius: 22px;
    background: rgba(22, 25, 40, 0.9);
    padding: 8px 16px;
}
.lb-pill-label { font-size: 11px; color: rgba(226, 238, 255, 0.55); }
.lb-pill-val { font-size: 13px; font-weight: 700; color: rgba(226, 238, 255, 0.95); }
.lb-pill-val.hit { color: var(--rb-gold); }
.lb-pill-val.miss { color: #ff5a5a; }

/* ---- provably fair accordion (same as dice2/wheel) ---- */
.lb-fair { margin-top: 12px; border-radius: 14px; background: var(--rb-card-deep); }
.lb-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; }
.lb-fair-title { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--rb-text); }
.lb-fair-title svg { color: var(--rb-gold); }
.lb-fair-chevron { color: var(--rb-text-faint); transition: transform 0.2s; }
.lb-fair-chevron.open { transform: rotate(180deg); }
.lb-fair-body { display: none; flex-direction: column; gap: 12px; border-top: 1px solid var(--rb-border); padding: 16px; }
.lb-fair-body.open { display: flex; }
.lb-fair-desc { margin: 0; font-size: 12px; line-height: 1.625; color: var(--rb-text-soft); }
.lb-fair-box { display: flex; flex-direction: column; gap: 4px; }
.lb-fair-boxlabel { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--rb-text-faint); }
.lb-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; }
.lb-fair-value.strong { font-family: inherit; font-weight: 600; }
.lb-fair-attach { display: flex; gap: 8px; }
.lb-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; }
.lb-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; }
.lb-fair-btn:hover { filter: brightness(1.25); }
.lb-fair-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.lb-fair-btn.shrink { flex-shrink: 0; padding: 0 16px; }
.lb-fair-btn.full { width: 100%; }
