/* ==========================================================================
   EloBoostEU rank boost studio.
   A scoped premium layer for the rank configurator. Everything here is built
   from the master tokens in eloboosteu.css (:root) so the studio stays in step
   with the rest of the site; only studio-specific geometry and the competitive
   tier tones are defined locally.
   ========================================================================== */

.bs {
    --bs-slot: 116px;
    --bs-emblem: 94px;
    /* Height of everything stacked above the carousel inside a rank column, so the connector between
       "current" and "desired" can line up with the emblems instead of the column's own centre. */
    --bs-carousel-offset: 81px;
    --bs-panel: linear-gradient(162deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012) 62%);
    --bs-panel-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 24px 60px -44px rgba(0, 0, 0, .95);
    --bs-inset: rgba(0, 0, 0, .32);
    --bs-ease: cubic-bezier(.22, .68, .24, 1);
    --bs-tone: var(--accent);
    /* Competitive tier tones — used only for restrained lighting around a selected rank. */
    --bs-tone-iron: #9a9088;
    --bs-tone-bronze: #c07a4c;
    --bs-tone-silver: #b6c4d4;
    --bs-tone-gold: #e6b34a;
    --bs-tone-platinum: #4fd0c4;
    --bs-tone-emerald: #2fd18d;
    --bs-tone-diamond: #6cc8ff;
    --bs-tone-ascendant: #4fd39a;
    --bs-tone-master: #b07de8;
    --bs-tone-grandmaster: #e5556f;
    --bs-tone-immortal: #e0455f;
    --bs-tone-challenger: #f0c95e;
    --bs-tone-radiant: #f5e6a8;
    /* Counter-Strike 2 Competitive. Each skill group is its own tier, so each needs its own tone;
       they are grouped by family so a rank lights in the colour of its own emblem. */
    --bs-tone-silver-i: #9fa8b2;
    --bs-tone-silver-ii: #9fa8b2;
    --bs-tone-silver-iii: #9fa8b2;
    --bs-tone-silver-iv: #9fa8b2;
    --bs-tone-silver-elite: #a8b4c0;
    --bs-tone-silver-elite-master: #a8b4c0;
    --bs-tone-gold-nova-i: #d8a24a;
    --bs-tone-gold-nova-ii: #d8a24a;
    --bs-tone-gold-nova-iii: #d8a24a;
    --bs-tone-gold-nova-master: #e0ad55;
    --bs-tone-master-guardian-i: #7fa6d8;
    --bs-tone-master-guardian-ii: #7fa6d8;
    --bs-tone-master-guardian-elite: #8fb4e2;
    --bs-tone-distinguished-master-guardian: #b9a0e8;
    --bs-tone-legendary-eagle: #d6b25e;
    --bs-tone-legendary-eagle-master: #d6b25e;
    --bs-tone-supreme-master-first-class: #e2607a;
    --bs-tone-the-global-elite: #f0c95e;
    /* FACEIT levels carry their colour inside the official icon; the tone follows the same ramp. */
    --bs-tone-level-1: #eeeeee;
    --bs-tone-level-2: #4dd35a;
    --bs-tone-level-3: #4dd35a;
    --bs-tone-level-4: #ffd23f;
    --bs-tone-level-5: #ffd23f;
    --bs-tone-level-6: #ffd23f;
    --bs-tone-level-7: #ffa93f;
    --bs-tone-level-8: #ffa93f;
    --bs-tone-level-9: #ff7a3f;
    --bs-tone-level-10: #ff3f3f;
    /* CS2 Premier CS Rating bands. These are Valve's own seven rating colours, not a house palette —
       grey, light blue, blue, purple, pink, red, gold — so a Premier rung reads on the site exactly
       as it reads in game. */
    --bs-tone-grey: #b0c3d9;
    --bs-tone-light-blue: #5e98d9;
    --bs-tone-blue: #4b69ff;
    --bs-tone-purple: #8847ff;
    --bs-tone-pink: #d32ce6;
    --bs-tone-red: #eb4b4b;
    position: relative;
    color: var(--text);
}

.bs *, .bs *::before, .bs *::after { box-sizing: border-box; }

/* ------------------------------------------------------------------- header */

.bs-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 26px; margin-bottom: 20px; }
.bs-head-copy { min-width: 0; }
.bs-eyebrow { display: block; margin-bottom: 9px; color: var(--accent); font-size: .58rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
.bs-head h2 { margin: 0 0 6px; font-size: clamp(1.35rem, 2.4vw, 1.8rem); letter-spacing: -.02em; }
.bs-head p { margin: 0; max-width: 54ch; color: var(--muted); font-size: .72rem; line-height: 1.6; }

.bs-gamebar { flex: 0 0 auto; display: inline-flex; gap: 3px; padding: 4px; border: 1px solid var(--border); border-radius: 999px; background: var(--bs-inset); }
.bs-gametab { padding: 9px 18px; border: 0; border-radius: 999px; background: none; color: var(--muted); font: inherit; font-size: .72rem; font-weight: 650; white-space: nowrap; cursor: pointer; transition: color .2s ease, background .24s var(--bs-ease); }
.bs-gametab:hover { color: var(--text); }
.bs-gametab.is-active { color: #04120c; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 10px 22px -14px var(--accent); }

/* ------------------------------------------------------------------- layout */

.bs-layout { display: grid; grid-template-columns: minmax(0, 1fr) 348px; align-items: start; gap: 18px; }
.bs-config { display: grid; gap: 14px; min-width: 0; }

.bs-panel { min-width: 0; padding: 22px; border: 1px solid var(--border); border-radius: 18px; background: var(--bs-panel), rgba(13, 17, 18, .72); box-shadow: var(--bs-panel-shadow); }
.bs-panel-head { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 18px; }
.bs-panel-copy { flex: 1 1 0; min-width: 0; }
.bs-panel-head h3 { margin: 0 0 3px; font-size: .95rem; letter-spacing: -.01em; }
.bs-panel-head p { margin: 0; color: var(--muted); font-size: .65rem; line-height: 1.5; }
.bs-step { flex: 0 0 30px; width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid rgba(52, 232, 164, .3); border-radius: 9px; background: rgba(52, 232, 164, .09); color: var(--accent); font-size: .58rem; font-weight: 800; letter-spacing: .04em; }

/* -------------------------------------------------------------- rank route */

.bs-route { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: start; gap: 12px; }

.bs-rankcol {
    display: grid; justify-items: center; gap: 15px; min-width: 0; padding: 18px 12px 20px;
    border: 1px solid var(--border); border-radius: 16px;
    background: rgba(255, 255, 255, .015);
    background: radial-gradient(125% 88% at 50% -10%, color-mix(in srgb, var(--bs-tone) 13%, transparent), transparent 62%), rgba(255, 255, 255, .015);
    transition: background .35s ease;
}

.bs-rankcol-head { display: grid; justify-items: center; gap: 8px; }
.bs-stage-label { color: var(--muted); font-size: .56rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
.bs-rankpill {
    padding: 7px 17px; border: 1px solid var(--border-strong); border-radius: 999px;
    border-color: color-mix(in srgb, var(--bs-tone) 38%, transparent);
    background: color-mix(in srgb, var(--bs-tone) 11%, transparent);
    color: #fff; font-size: .76rem; font-weight: 700; white-space: nowrap;
    transition: border-color .3s ease, background .3s ease;
}

.bs-carousel { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 4px; width: 100%; border-radius: 16px; }
/* The viewport is masked, which would clip its own focus ring, so the ring is drawn on the wrapper. */
.bs-carousel:has(.bs-viewport:focus-visible) { box-shadow: 0 0 0 2px var(--accent-2); }
/* The edge mask turns the carousel's hard clip into a fade, so a partly visible neighbouring rank
   reads as "there is more this way" instead of a cut-off emblem. */
.bs-viewport { position: relative; height: calc(var(--bs-emblem) + 44px); overflow: hidden; border-radius: 14px; outline: none; touch-action: pan-y; -webkit-mask-image: linear-gradient(90deg, transparent, #000 13%, #000 87%, transparent); mask-image: linear-gradient(90deg, transparent, #000 13%, #000 87%, transparent); }
.bs-track { position: relative; left: 50%; display: flex; align-items: center; height: 100%; transform: translateX(calc(-1 * (var(--bs-index, 0) + .5) * var(--bs-slot))); transition: transform .4s var(--bs-ease); will-change: transform; }

.bs-rank {
    flex: 0 0 var(--bs-slot); display: grid; justify-items: center; gap: 7px; padding: 0;
    border: 0; background: none; color: inherit; font: inherit; cursor: pointer;
    transition: transform .4s var(--bs-ease), opacity .3s ease, filter .3s ease;
}
.bs-rank-art { position: relative; display: grid; place-items: center; width: var(--bs-emblem); height: var(--bs-emblem); }
.bs-rank-art::before {
    content: ""; position: absolute; inset: -14%; border-radius: 50%; opacity: 0;
    background: radial-gradient(circle, color-mix(in srgb, var(--bs-tone) 40%, transparent), transparent 66%);
    transition: opacity .34s ease;
}
.bs-rank-art img { position: relative; width: 100%; height: 100%; object-fit: contain; }
.bs-emblem-fallback { position: relative; display: grid; place-items: center; width: 74%; height: 74%; border-radius: 22%; background: linear-gradient(150deg, color-mix(in srgb, var(--bs-tone) 65%, transparent), rgba(255, 255, 255, .04)); color: #fff; font-size: 1.1rem; font-weight: 800; }
/* CS2 Premier: the rung's CS Rating on its own tier colour, which is how the game itself shows it.
   The plate, border and lighting stay EloBoostEU's; only the colour comes from Valve. */
.bs-emblem-rating { position: relative; display: grid; place-items: center; width: 82%; height: 82%; padding: 0 .3em; border: 1px solid color-mix(in srgb, var(--bs-tone) 55%, transparent); border-radius: 18%; background: linear-gradient(150deg, color-mix(in srgb, var(--bs-tone) 34%, transparent), rgba(255, 255, 255, .03)); box-shadow: inset 0 0 18px color-mix(in srgb, var(--bs-tone) 22%, transparent); color: #fff; font-size: .74rem; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: .01em; line-height: 1; text-shadow: 0 1px 6px rgba(0, 0, 0, .55); }
/* Only the centred rank is labelled — neighbour labels would be clipped by the viewport edge. */
.bs-rank-name { max-width: 100%; overflow: hidden; color: var(--muted); font-size: .58rem; font-weight: 650; letter-spacing: .13em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; opacity: 0; transition: color .3s ease, opacity .3s ease; }

.bs-rank[data-distance="0"] { transform: scale(1); opacity: 1; z-index: 3; }
.bs-rank[data-distance="0"] .bs-rank-art::before { opacity: .5; }
.bs-rank[data-distance="0"] .bs-rank-name { color: #fff; opacity: 1; }
.bs-rank[data-distance="1"] { transform: scale(.64); opacity: .48; filter: grayscale(.4); z-index: 2; }
.bs-rank[data-distance="2"] { transform: scale(.46); opacity: .17; filter: grayscale(.75); z-index: 1; }
.bs-rank[data-distance="3"], .bs-rank[data-distance="4"] { transform: scale(.4); opacity: 0; pointer-events: none; }
.bs-rank[data-distance="1"]:hover, .bs-rank[data-distance="2"]:hover { opacity: .8; filter: none; }

.bs-arrow { flex: 0 0 auto; width: 33px; height: 33px; display: grid; place-items: center; border: 1px solid var(--border-strong); border-radius: 50%; background: rgba(255, 255, 255, .03); color: var(--muted); cursor: pointer; transition: color .18s ease, border-color .18s ease, background .18s ease, transform .18s ease; }
.bs-arrow:hover { color: #fff; border-color: color-mix(in srgb, var(--bs-tone) 52%, transparent); background: color-mix(in srgb, var(--bs-tone) 15%, transparent); transform: translateY(-1px); }
.bs-arrow:active { transform: translateY(0) scale(.94); }
.bs-arrow svg, .bs-div-arrow svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }

.bs-divisions { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 7px; width: 100%; max-width: 254px; }
/* Ladders with no divisions at all (CS2 skill groups, FACEIT levels) drop the rail entirely. */
.bs-divisions.is-empty { display: none; }
.bs-div-arrow { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 9px; background: rgba(255, 255, 255, .02); color: var(--muted); cursor: pointer; transition: color .18s ease, border-color .18s ease; }
.bs-div-arrow:hover { color: #fff; border-color: var(--border-strong); }
.bs-div-rail { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); padding: 4px; border: 1px solid var(--border); border-radius: 12px; background: var(--bs-inset); }
.bs-div-thumb {
    position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / var(--bs-div-count, 1));
    border: 1px solid color-mix(in srgb, var(--bs-tone) 44%, transparent); border-radius: 9px;
    background: linear-gradient(150deg, color-mix(in srgb, var(--bs-tone) 32%, transparent), color-mix(in srgb, var(--bs-tone) 10%, transparent));
    transform: translateX(calc(var(--bs-div-index, 0) * 100%));
    transition: transform .28s var(--bs-ease), border-color .3s ease, background .3s ease;
}
.bs-div { position: relative; z-index: 1; padding: 8px 2px; border: 0; background: none; color: var(--muted); font: inherit; font-size: .72rem; font-weight: 650; cursor: pointer; transition: color .2s ease; }
.bs-div:hover { color: var(--text); }
.bs-div.is-active { color: #fff; }

.bs-points { display: grid; gap: 9px; width: 100%; max-width: 254px; transition: opacity .25s ease; }
.bs-points.is-locked { opacity: .38; pointer-events: none; }
.bs-points-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bs-points-head strong { color: var(--muted); font-size: .55rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.bs-points-head output { min-width: 36px; padding: 3px 8px; border-radius: 7px; background: color-mix(in srgb, var(--bs-tone) 16%, transparent); color: #fff; font-size: .66rem; font-weight: 700; font-variant-numeric: tabular-nums; text-align: center; transition: background .3s ease; }
.bs-points input { width: 100%; height: 5px; margin: 5px 0; appearance: none; border-radius: 99px; background: linear-gradient(90deg, var(--bs-tone) var(--bs-fill, 0%), rgba(255, 255, 255, .09) var(--bs-fill, 0%)); cursor: pointer; }
.bs-points input::-webkit-slider-thumb { width: 16px; height: 16px; appearance: none; border: 3px solid color-mix(in srgb, var(--bs-tone) 85%, #000); border-radius: 50%; background: #fff; box-shadow: 0 2px 9px rgba(0, 0, 0, .55); cursor: pointer; transition: transform .16s ease; }
.bs-points input:hover::-webkit-slider-thumb, .bs-points input:focus-visible::-webkit-slider-thumb { transform: scale(1.14); }
.bs-points input::-moz-range-thumb { width: 13px; height: 13px; border: 3px solid color-mix(in srgb, var(--bs-tone) 85%, #000); border-radius: 50%; background: #fff; cursor: pointer; }

.bs-link { position: relative; align-self: start; width: 76px; height: 1px; margin-top: calc(var(--bs-carousel-offset) + (var(--bs-emblem) + 44px) / 2); background: linear-gradient(90deg, transparent, var(--border-strong) 20%, var(--border-strong) 76%, transparent); }
.bs-link i { position: absolute; top: 50%; left: 3px; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: bs-travel 3s var(--bs-ease) infinite; }
.bs-link em { position: absolute; top: 50%; right: 0; width: 7px; height: 7px; margin-top: -4px; border-top: 1.4px solid var(--border-strong); border-right: 1.4px solid var(--border-strong); transform: rotate(45deg); }
@keyframes bs-travel { 0% { left: 3px; opacity: 0; } 18% { opacity: 1; } 82% { opacity: 1; } 100% { left: calc(100% - 10px); opacity: 0; } }

/* -------------------------------------------------------- service & server */

.bs-services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.bs-service { display: grid; gap: 4px; min-width: 0; padding: 13px 14px; border: 1px solid var(--border); border-radius: 13px; background: rgba(255, 255, 255, .02); color: inherit; font: inherit; text-align: left; cursor: pointer; transition: border-color .2s ease, background .24s ease, transform .2s ease; }
.bs-service:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.bs-service strong { font-size: .75rem; }
.bs-service small { display: -webkit-box; overflow: hidden; color: var(--muted); font-size: .61rem; line-height: 1.45; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.bs-service.is-active { border-color: color-mix(in srgb, var(--accent) 52%, transparent); background: linear-gradient(150deg, rgba(52, 232, 164, .13), rgba(52, 232, 164, .025)); }
.bs-service.is-active strong { color: #fff; }

.bs-selects { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.bs-select { position: relative; display: grid; gap: 7px; min-width: 0; }
.bs-select > span { color: var(--muted); font-size: .55rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.bs-select select { width: 100%; min-height: 46px; padding: 0 38px 0 14px; appearance: none; border: 1px solid var(--border); border-radius: 12px; background: var(--bs-inset); color: var(--text); font: inherit; font-size: .74rem; cursor: pointer; transition: border-color .18s ease, background .18s ease; }
.bs-select select:hover { border-color: var(--border-strong); }
.bs-select select:focus-visible { outline: none; border-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.bs-select::after { content: ""; position: absolute; right: 16px; bottom: 20px; width: 7px; height: 7px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); pointer-events: none; }

/* ----------------------------------------------------------------- options */

.bs-segment { position: relative; flex: 0 0 auto; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); padding: 4px; border: 1px solid var(--border); border-radius: 999px; background: var(--bs-inset); }
.bs-segment-thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 2); border-radius: 999px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 8px 20px -12px var(--accent); transform: translateX(calc(var(--bs-mode-index, 0) * 100%)); transition: transform .28s var(--bs-ease); }
.bs-segment button { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: 0; padding: 8px 17px; overflow: hidden; border: 0; background: none; color: var(--muted); font: inherit; font-size: .72rem; font-weight: 650; white-space: nowrap; cursor: pointer; transition: color .22s ease; }
.bs-segment button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bs-segment button:hover { color: var(--text); }
.bs-segment button.is-active { color: #04120c; }
.bs-segment button[data-price]::after { content: attr(data-price); font-size: .6rem; font-weight: 700; opacity: .72; }

.bs-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.bs-option { min-width: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 14px; background: rgba(255, 255, 255, .02); transition: border-color .22s ease, background .26s ease; }
.bs-option:hover { border-color: var(--border-strong); }
.bs-option.is-on { border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: linear-gradient(150deg, rgba(52, 232, 164, .1), rgba(52, 232, 164, .018)); }
.bs-option-main { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 14px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.bs-option-icon { flex: 0 0 34px; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 10px; background: rgba(255, 255, 255, .03); color: var(--muted); transition: color .22s ease, border-color .22s ease, background .22s ease; }
.bs-option-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.bs-option.is-on .bs-option-icon { border-color: color-mix(in srgb, var(--accent) 40%, transparent); background: rgba(52, 232, 164, .13); color: var(--accent); }
.bs-option-copy { flex: 1 1 auto; min-width: 0; }
.bs-option-copy strong { display: block; font-size: .73rem; }
.bs-option-copy small { display: block; margin-top: 3px; color: var(--muted); font-size: .59rem; line-height: 1.45; }
.bs-option-price { flex: 0 0 auto; color: #fff; font-size: .68rem; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bs-option-price.is-free { color: var(--accent); font-size: .58rem; letter-spacing: .12em; text-transform: uppercase; }
.bs-option-switch { position: relative; flex: 0 0 38px; width: 38px; height: 21px; border-radius: 99px; background: rgba(255, 255, 255, .1); transition: background .24s ease; }
.bs-option-switch i { position: absolute; top: 3px; left: 3px; width: 15px; height: 15px; border-radius: 50%; background: #99a2a4; transition: transform .26s cubic-bezier(.34, 1.4, .5, 1), background .24s ease; }
.bs-option.is-on .bs-option-switch { background: var(--accent); }
.bs-option.is-on .bs-option-switch i { background: #04120c; transform: translateX(17px); }
.bs-option-extra { display: grid; max-height: 0; padding: 0 14px; opacity: 0; transition: max-height .3s var(--bs-ease), opacity .22s ease, padding .3s var(--bs-ease); }
.bs-option.is-on .bs-option-extra { max-height: 90px; padding: 0 14px 14px; opacity: 1; }
.bs-option-extra select, .bs-option-extra input { width: 100%; min-height: 40px; padding: 0 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--bs-inset); color: var(--text); font: inherit; font-size: .72rem; }
.bs-option-extra input::placeholder { color: rgba(142, 154, 157, .7); }
.bs-option.is-unavailable { opacity: .4; }
.bs-option.is-unavailable .bs-option-main { cursor: not-allowed; }
.bs-option.is-unavailable .bs-option-price { color: var(--muted); font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; }
.bs-option.is-pending .bs-option-price { color: var(--warning); }

/* ----------------------------------------------------------------- summary */

.bs-summary { position: sticky; top: 92px; min-width: 0; }
.bs-summary-inner { display: grid; gap: 14px; padding: 20px; border: 1px solid var(--border-strong); border-radius: 18px; background: linear-gradient(168deg, rgba(24, 31, 32, .97), rgba(11, 15, 16, .99)); box-shadow: 0 34px 74px -46px #000; }
.bs-summary-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bs-live { display: inline-flex; align-items: center; gap: 7px; color: var(--accent); font-size: .58rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.bs-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 9px var(--accent); animation: bs-pulse 2s ease-in-out infinite; }
.bs-summary-head small { min-width: 0; overflow: hidden; color: var(--muted); font-size: .58rem; text-overflow: ellipsis; white-space: nowrap; }
@keyframes bs-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.8); } }

.bs-route-summary { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; padding: 15px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.bs-route-summary figure { display: grid; justify-items: center; gap: 8px; margin: 0; min-width: 0; }
.bs-route-summary img { width: 46px; height: 46px; object-fit: contain; filter: drop-shadow(0 5px 14px color-mix(in srgb, var(--bs-tone) 42%, transparent)); }
.bs-route-summary figcaption { color: var(--text); font-size: .65rem; font-weight: 650; text-align: center; }
.bs-route-arrow { display: grid; place-items: center; }
.bs-route-arrow i { position: relative; display: block; width: 26px; height: 1px; background: linear-gradient(90deg, transparent, var(--accent)); }
.bs-route-arrow i::after { content: ""; position: absolute; top: -3px; right: 0; width: 6px; height: 6px; border-top: 1.4px solid var(--accent); border-right: 1.4px solid var(--accent); transform: rotate(45deg); }

.bs-lines { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px 14px; margin: 0; }
.bs-lines dt { color: var(--muted); font-size: .65rem; }
.bs-lines dd { margin: 0; color: var(--text); font-size: .67rem; font-variant-numeric: tabular-nums; text-align: right; }
.bs-lines dd.is-discount { color: var(--accent); }

.bs-eta { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 14px; border: 1px solid var(--border); border-radius: 12px; background: rgba(255, 255, 255, .02); }
.bs-eta span { color: var(--muted); font-size: .62rem; }
.bs-eta strong { color: #fff; font-size: .68rem; }

.bs-coupon { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.bs-coupon input { min-height: 42px; padding: 0 13px; border: 1px solid var(--border); border-radius: 11px; background: var(--bs-inset); color: var(--text); font: inherit; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }
.bs-coupon input::placeholder { letter-spacing: .04em; text-transform: none; color: rgba(142, 154, 157, .7); }
.bs-coupon button { padding: 0 16px; border: 1px solid var(--border-strong); border-radius: 11px; background: rgba(255, 255, 255, .04); color: var(--text); font: inherit; font-size: .68rem; font-weight: 650; cursor: pointer; transition: border-color .18s ease, background .18s ease; }
.bs-coupon button:hover { border-color: color-mix(in srgb, var(--accent) 50%, transparent); background: rgba(52, 232, 164, .1); }

.bs-total { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; }
.bs-total-copy span { display: block; color: var(--text); font-size: .7rem; font-weight: 600; }
.bs-total-copy small { display: block; margin-top: 3px; color: var(--muted); font-size: .53rem; }
.bs-total-value { min-width: 0; text-align: right; }
.bs-total-value s { display: block; color: var(--muted); font-size: .66rem; }
.bs-total-value strong { display: block; color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.05rem); font-variant-numeric: tabular-nums; letter-spacing: -.04em; line-height: 1.05; }
.bs-total-value strong.is-changed { animation: bs-price .36s var(--bs-ease); }
@keyframes bs-price { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.bs-error { margin: 0; padding: 10px 13px; border: 1px solid rgba(255, 95, 120, .34); border-radius: 11px; background: rgba(255, 95, 120, .09); color: #ffb0be; font-size: .65rem; line-height: 1.5; }

.bs-cta { display: inline-flex; align-items: center; justify-content: center; gap: 9px; width: 100%; min-height: 52px; border: 0; border-radius: 13px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #04120c; font: inherit; font-size: .82rem; font-weight: 750; cursor: pointer; box-shadow: 0 18px 36px -20px var(--accent); transition: transform .2s ease, box-shadow .24s ease, opacity .2s ease; }
.bs-cta svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.bs-cta:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 22px 42px -18px var(--accent); }
.bs-cta:disabled { opacity: .42; box-shadow: none; cursor: not-allowed; }

.bs-assurances { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.bs-assurances li { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .58rem; }
.bs-assurances svg { flex: 0 0 12px; width: 12px; height: 12px; fill: none; stroke: var(--accent); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

.bs.is-busy .bs-total-value strong, .bs.is-busy .bs-lines, .bs.is-busy .bs-eta strong, .bs.is-busy .bs-option-price { opacity: .4; transition: opacity .2s ease; }

/* -------------------------------------------------------------- mobile dock */

.bs-dock { display: none; }
.bs-noscript { margin: 16px 0 0; color: var(--muted); font-size: .7rem; }
.bs-unavailable { padding: 26px; }
.bs-unavailable h2 { margin: 0 0 8px; font-size: 1.1rem; }
.bs-unavailable p { margin: 0; color: var(--muted); font-size: .72rem; }

/* ------------------------------------------------------------- responsive */

@media (max-width: 1240px) {
    .bs { --bs-slot: 94px; --bs-emblem: 76px; }
    .bs-layout { grid-template-columns: minmax(0, 1fr) 318px; }
}

@media (max-width: 1080px) {
    .bs { --bs-slot: 86px; --bs-emblem: 68px; }
    .bs-services { grid-template-columns: 1fr; }
    .bs-panel { padding: 18px; }
}

@media (max-width: 960px) {
    .bs { --bs-slot: 104px; --bs-emblem: 86px; }
    .bs-head { align-items: flex-start; flex-direction: column; gap: 16px; }
    /* The tab row grows with the catalog and its labels cannot wrap, so past three games it pushed
       the whole document sideways. Scroll the bar itself instead. */
    .bs-head > * { min-width: 0; max-width: 100%; }
    .bs-gamebar { display: flex; width: 100%; max-width: 100%; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
    .bs-gamebar::-webkit-scrollbar { display: none; }
    .bs-layout { grid-template-columns: minmax(0, 1fr); }
    .bs-services { grid-template-columns: repeat(3, minmax(0, 1fr)); }

    .bs-summary { position: fixed; inset: auto 0 0 0; z-index: 81; max-height: 84vh; overflow-y: auto; overscroll-behavior: contain; transform: translateY(103%); transition: transform .34s var(--bs-ease); }
    .bs-summary-inner { border-radius: 20px 20px 0 0; padding-bottom: 92px; }
    .bs.is-summary-open .bs-summary { transform: none; }
    .bs.is-summary-open::before { content: ""; position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, .58); }

    .bs-dock { position: fixed; inset: auto 0 0 0; z-index: 82; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border-strong); background: rgba(8, 11, 13, .94); backdrop-filter: blur(14px); }
    .bs-dock[hidden] { display: none; }
    .bs-dock-toggle { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px; min-width: 0; padding: 4px 2px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
    .bs-dock-route { min-width: 0; overflow: hidden; color: var(--muted); font-size: .62rem; text-overflow: ellipsis; white-space: nowrap; }
    .bs-dock-price { display: grid; justify-items: end; }
    .bs-dock-price s { color: var(--muted); font-size: .55rem; }
    .bs-dock-price strong { color: #fff; font-size: 1.02rem; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
    .bs-dock-toggle svg { width: 15px; height: 15px; fill: none; stroke: var(--muted); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .26s var(--bs-ease); }
    .bs.is-summary-open .bs-dock-toggle svg { transform: rotate(180deg); }
    .bs-dock-cta { width: auto; min-height: 44px; padding: 0 20px; font-size: .76rem; }
}

@media (max-width: 720px) {
    .bs { --bs-slot: 96px; --bs-emblem: 78px; }
    .bs-panel { padding: 16px; }
    .bs-route { grid-template-columns: minmax(0, 1fr); gap: 8px; }
    .bs-link { justify-self: center; width: 1px; height: 40px; margin: 0; background: linear-gradient(180deg, transparent, var(--border-strong) 22%, var(--border-strong) 74%, transparent); }
    .bs-link i { top: 3px; left: 50%; margin: 0 0 0 -2.5px; animation-name: bs-travel-y; }
    .bs-link em { top: auto; right: auto; bottom: 0; left: 50%; margin: 0 0 0 -4px; transform: rotate(135deg); }
    @keyframes bs-travel-y { 0% { top: 3px; opacity: 0; } 18% { opacity: 1; } 82% { opacity: 1; } 100% { top: calc(100% - 10px); opacity: 0; } }
    .bs-services { grid-template-columns: 1fr; }
    .bs-selects { grid-template-columns: 1fr; }
    .bs-options { grid-template-columns: 1fr; }
    .bs-panel-head { flex-wrap: wrap; }
    .bs-segment { flex: 1 1 100%; width: auto; margin-top: 10px; }
    .bs-segment button { padding: 9px 8px; }
    .bs-gametab { padding: 10px 12px; }
}

@media (max-width: 420px) {
    .bs { --bs-slot: 86px; --bs-emblem: 70px; }
    .bs-panel { padding: 14px; }
    .bs-option-main { gap: 10px; padding: 12px 11px; }
    .bs-option-icon { flex-basis: 30px; width: 30px; height: 30px; }
}
