/* ------------------------------------------------------------------ *
 * Layout and styling follow www.eclbet04.com/my. Every value below was
 * read off that page's computed styles at a 1440px viewport, so the
 * numbers are theirs, not approximations: 62px rail, 78px header,
 * 1300px container, 15px corners, #FABB2E accent, Rubik.
 * ------------------------------------------------------------------ */

:root {
    --ground: #18191A;      /* page background                       */
    --surface: #2D2E30;     /* header, rail, even table rows         */
    --surface-2: #333435;   /* table head                            */
    --surface-3: #343435;   /* boxed panels (currency rate)          */
    --row-odd: #19191A;
    --raise: #444447;       /* secondary buttons, chips              */
    --accent: #FABB2E;      /* the gold                              */
    --accent-ink: #000000;  /* text on gold                          */
    --ink: #FFFFFF;
    --ink-dim: #B2B2B2;
    --ink-head: #F5F5F5;
    --radius: 15px;
    --rail: 62px;
    --header-h: 78px;
    --container: 1300px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
    background: var(--ground);
    color: var(--ink);
    font-family: Rubik, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { margin: 0; font-weight: 600; }

/* The rail overlays the page's left edge and the container clears it with
   its own side margin — the same trick the reference uses, which is why its
   content sits 63px from the left rather than centred in what is left over. */
.container {
    width: var(--container);
    max-width: calc(100% - (var(--rail) * 2) - 1px);
    margin: 0 auto;
    padding: 0;
}

/* -------------------------------- icons ------------------------------- */

.ic {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    fill: none;
    display: inline-block;
    vertical-align: middle;
}

.ic--caret { width: 11px; height: 11px; }

/* ----------------------------- left rail ----------------------------- */

.rail {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--rail);
    height: 100vh;
    background: var(--surface);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 18px 0;
    z-index: 40;
    overflow-y: auto;
    scrollbar-width: none;
}

.rail::-webkit-scrollbar { display: none; }

.rail__btn {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--ink-dim);
    transition: background .15s ease, color .15s ease;
}

.rail__btn:hover {
    background: var(--raise);
    color: var(--ink);
}

.rail__divider {
    width: 24px;
    height: 1px;
    background: var(--raise);
    flex: 0 0 1px;
}

/* Flags are drawn with gradients rather than loaded as files, so the rail
   does not wait on artwork. Swap for <img> at 22x22 when you have them. */
.rail__flag {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    flex: 0 0 22px;
    border: 1px solid rgba(255, 255, 255, .18);
}

.rail__flag--my { background: linear-gradient(180deg, #CC0001 0 33%, #FFF 33% 66%, #010066 66% 100%); }
.rail__flag--sg { background: linear-gradient(180deg, #ED2939 0 50%, #FFF 50% 100%); }
.rail__flag--vn { background: #DA251D; }

/* ------------------------------ header ------------------------------ */

/* Full width and fixed, exactly as the reference: the bar runs behind the
   rail (same colour, so the seam is invisible) and its inner row is the
   ordinary 1300px container. */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-h);
    background: var(--surface);
    z-index: 30;
}

.header__inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.header__left {
    display: flex;
    align-items: center;
    height: 100%;
}

.header__logo {
    width: 145px;
    height: 51px;
    margin-right: 22px;
    flex: 0 0 145px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 700;
    letter-spacing: .04em;
}

.header__logo img {
    display: block;
    max-width: 100%;
    max-height: 51px;
    object-fit: contain;
}

.nav { display: flex; align-items: center; height: 100%; }

.nav__item {
    position: relative;
    height: var(--header-h);
    display: flex;
    align-items: center;
    padding: 0 14px;
    font-size: 15px;
    color: var(--ink);
    cursor: pointer;
    white-space: nowrap;
}

.nav__item > span { display: inline-flex; align-items: center; gap: 6px; }
.nav__item:hover { color: var(--accent); }
.nav__item:hover .ic--caret { transform: rotate(180deg); }
.ic--caret { transition: transform .15s ease; }

.nav__menu {
    position: absolute;
    top: var(--header-h);
    left: 0;
    min-width: 214px;
    background: var(--surface);
    border-radius: 0 0 var(--radius) var(--radius);
    padding: 8px 0;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .15s ease, transform .15s ease, visibility .15s;
}

/* The Function menu has fourteen entries; two columns keeps it on screen. */
.nav__menu--wide {
    min-width: 400px;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.nav__item:hover .nav__menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav__menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    font-size: 14px;
    color: var(--ink-dim);
}

.nav__menu a:hover {
    background: var(--raise);
    color: var(--ink);
}

.nav__menu .ic { width: 18px; height: 18px; }

.header__right { display: flex; align-items: center; gap: 16px; }

.header__chat {
    width: 27px;
    height: 29px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
}

.header__chat .ic { width: 22px; height: 22px; }

.header__auth { display: flex; align-items: center; gap: 14px; }

.quest {
    position: relative;
    width: 156px;
    height: 41px;
    border-radius: var(--radius);
    background: linear-gradient(90deg, #17A398 0%, #0E7C74 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
}

.quest__live {
    position: absolute;
    top: -8px;
    right: 10px;
    background: #E13D3D;
    color: #fff;
    font-size: 10px;
    line-height: 1;
    padding: 3px 6px;
    border-radius: 6px;
}

.quest__coin { width: 22px; height: 22px; color: var(--accent); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
}

.btn-primary {
    width: 123px;
    height: 41px;
    background: var(--accent);
    color: var(--accent-ink);
    font-weight: 500;
}

.btn-primary:hover { filter: brightness(1.07); }

.header__login { font-size: 14px; color: var(--ink); padding: 0 8px; }
.header__login:hover { color: var(--accent); }

/* ------------------------------ sections ---------------------------- */

/* Header is fixed, so the body starts below it — their first section top
   lands at 112px, i.e. 78 + 34. */
.body-wrap { padding-top: calc(var(--header-h) + 34px); }

.section { margin-bottom: 60px; }

.section__title {
    font-size: 20px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 16px;
}

/* ------------------------------- banner ----------------------------- */

.banner {
    position: relative;
    height: 320px;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 20px;
}

.banner__track { display: flex; height: 100%; transition: transform .45s ease; }
.banner__slide { flex: 0 0 100%; height: 100%; }

.banner__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .45);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 0;
    font-size: 16px;
    z-index: 2;
}

.banner__arrow--prev { left: 14px; }
.banner__arrow--next { right: 14px; }
.banner__arrow:hover { background: rgba(0, 0, 0, .7); }

.banner__dots {
    position: absolute;
    bottom: 12px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 7px;
    z-index: 2;
}

.banner__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .45);
    cursor: pointer;
    border: 0;
    padding: 0;
    transition: width .2s ease, background .2s ease;
}

.banner__dot.is-active { background: var(--accent); width: 20px; border-radius: 4px; }

/* --------------------------- feature tiles -------------------------- */

.home-intro {
    max-width: 860px;
    margin: 10px 0 26px;
}

.home-intro__eyebrow {
    display: block;
    color: var(--accent);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.home-intro h1 { margin: 0 0 10px; font-size: 32px; line-height: 1.2; }
.home-intro p { margin: 0; color: var(--ink-dim); line-height: 1.7; }

.tiles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 65px;
}

.tile {
    position: relative;
    height: 70px;
    border-radius: var(--radius);
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--ink);
    overflow: hidden;
}

.tile__art {
    position: absolute;
    inset: 0 0 0 auto;
    width: 92px;
    height: 100%;
    object-fit: cover;
    opacity: .32;
    pointer-events: none;
}

.tile__left,
.tile__cta { position: relative; z-index: 1; }

/* Gradients copied off their four cards, angles and stops included. */
.tile--number   { background: linear-gradient(91.55deg, #289D82 14.12%, #2779D9 138.72%); }
.tile--ranking  { background: linear-gradient(91.86deg, #FFA469 14.04%, #F8D82E 106.97%); }
.tile--predict  { background: linear-gradient(90.21deg, #FF6489 0.04%, #CC3633 97.87%); }
.tile--achieve  { background: linear-gradient(90.21deg, #8C5FFA 0.04%, #4139D2 97.87%); }

.tile__left { display: flex; align-items: center; gap: 10px; min-width: 0; }

.tile__icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .22);
    flex: 0 0 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.tile__icon .ic { width: 22px; height: 22px; }

.tile__name { font-size: 15px; font-weight: 600; line-height: 1.2; }

.tile__cta {
    flex: 0 0 auto;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    font-size: 12px;
    padding: 7px 12px;
    border-radius: 9px;
    white-space: nowrap;
}

/* --------------------------- provider strip ------------------------- */

.providers {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.providers::-webkit-scrollbar { display: none; }

.provider {
    flex: 0 0 200px;
    height: 84px;
    border-radius: var(--radius);
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-dim);
    font-size: 13px;
}

.provider__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

/* ---------------------------- bet table ----------------------------- */

.tabs {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 37px;
    margin-bottom: 16px;
}

.tab {
    height: 37px;
    padding: 0 22px;
    border-radius: var(--radius);
    background: var(--raise);
    color: var(--ink);
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    border: 0;
    cursor: pointer;
    font-family: inherit;
}

.tab.is-active { background: var(--accent); color: var(--accent-ink); font-weight: 500; }

.tabs__more { margin-left: auto; font-size: 14px; color: var(--ink); }
.tabs__more:hover { color: var(--accent); }

.table-wrap { border-radius: var(--radius); overflow: hidden; }

table.bet {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

table.bet thead th {
    background: var(--surface-2);
    color: var(--ink);
    font-weight: 600;
    height: 44px;
    text-align: left;
    padding: 0 16px;
    white-space: nowrap;
}

.bet-col-1 { width: 260px; }
.bet-col-2 { width: 280px; }
.bet-col-3 { width: 200px; }

table.bet tbody td {
    height: 44px;
    padding: 0 16px;
    color: var(--ink);
    white-space: nowrap;
}

/* Their rows alternate #19191A / #2D2E30 rather than using a tint. */
table.bet tbody tr:nth-child(odd)  { background: var(--row-odd); }
table.bet tbody tr:nth-child(even) { background: var(--surface); }

.bet__game { display: flex; align-items: center; gap: 10px; }

.bet__game-icon {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    background: var(--raise);
    flex: 0 0 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-dim);
}

.bet__game-icon .ic { width: 16px; height: 16px; }

.bet__nick--hot { color: var(--accent); }
.bet__amount { text-align: right; }

/* --- currency rate, a hover tooltip on the Amount column like theirs --- */

.tip { position: relative; display: inline-flex; vertical-align: middle; margin-left: 6px; }

.tip__icon { width: 14px; height: 14px; color: var(--ink-dim); cursor: pointer; }

.tip__box {
    position: absolute;
    top: 20px;
    right: 0;
    width: 234px;
    background: var(--surface-3);
    border-radius: var(--radius);
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    text-align: left;
    font-weight: 400;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity .15s ease, transform .15s ease, visibility .15s;
    z-index: 20;
}

.tip:hover .tip__box { opacity: 1; visibility: visible; transform: translateY(0); }

.tip__title { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.tip__note { font-size: 12px; color: var(--ink-dim); margin-bottom: 10px; line-height: 1.5; white-space: normal; }

.tip__row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.tip__row:last-child { border-bottom: 0; }

/* ----------------------------- sponsors ----------------------------- */

.sponsor {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    align-items: stretch;
}

.sponsor__media {
    position: relative;
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    min-height: 321px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.sponsor__media-image {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 321px;
    object-fit: cover;
}

.sponsor__play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: rgba(250, 187, 46, .92);
    color: #111;
    display: grid;
    place-items: center;
    padding-left: 4px;
    font-size: 24px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .45);
}

.sponsor__side { display: flex; flex-direction: column; gap: 10px; }

.sponsor__kicker { font-size: 13px; color: var(--ink-dim); }
.sponsor__title { font-size: 22px; font-weight: 600; }
.sponsor__name { font-size: 15px; color: var(--accent); }
.sponsor__copy { font-size: 13px; line-height: 1.7; color: var(--ink-dim); margin: 0; }
.sponsor__portrait { width: 120px; height: 120px; border-radius: 12px; overflow: hidden; }
.sponsor__portrait img { display: block; width: 100%; height: 100%; object-fit: contain; }
.sponsor__followers { font-size: 14px; color: var(--accent); margin-top: auto; }

/* ---------------------------- app download -------------------------- */

.download {
    height: 340px;
    border-radius: var(--radius);
    background: var(--surface);
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
}

.download__copy {
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
}

.download__kicker {
    font-size: 12px;
    letter-spacing: .12em;
    color: var(--ink-dim);
    text-transform: uppercase;
}

.download__title { font-size: 34px; font-weight: 700; line-height: 1.15; }
.download__text { font-size: 14px; color: var(--ink-dim); line-height: 1.7; margin: 0; }
.download__btns { display: flex; gap: 12px; margin-top: 8px; }

.download__btn {
    height: 44px;
    padding: 0 20px;
    border-radius: 11px;
    background: var(--accent);
    color: var(--accent-ink);
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.download__btn .ic { width: 18px; height: 18px; }

.download__store {
    display: block;
    height: 44px;
}

.download__store img {
    display: block;
    width: auto;
    height: 100%;
}

.download__art {
    background: linear-gradient(120deg, #F8A82E 0%, #FBD24B 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.download__art img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* -------------------------- copied source pages -------------------- */

.source-page { padding: 0 0 60px; }

.source-page__banner {
    display: block;
    height: 320px;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 32px;
    background: var(--surface);
}

.source-page__banner img { display: block; width: 100%; height: 100%; object-fit: cover; }

.source-page__header { max-width: 760px; margin: 0 0 32px; }
.source-page__eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 600; }
.source-page__header h1 { margin: 8px 0 10px; font-size: 34px; line-height: 1.15; }
.source-page__header p { margin: 0; color: var(--ink-dim); line-height: 1.7; }
.source-page__section { margin-top: 36px; }
.source-page__section h2, .source-document h2 { margin: 0 0 16px; font-size: 20px; }

.source-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.source-card { display: block; overflow: hidden; border-radius: var(--radius); background: var(--surface); transition: transform .2s ease, box-shadow .2s ease; }
.source-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0,0,0,.28); }
.source-card img { display: block; width: 100%; height: 160px; object-fit: cover; }
.source-card__body { min-height: 58px; padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.source-card__body strong { font-size: 14px; }
.source-card__body em { color: var(--accent); font-size: 12px; font-style: normal; white-space: nowrap; }
.source-cards--promotions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.source-cards--promotions .source-card img { height: 180px; }

.source-document { max-width: 940px; padding: 30px; border-radius: var(--radius); background: var(--surface); }
.source-document section + section { margin-top: 30px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.08); }
.source-document p { color: var(--ink-dim); line-height: 1.8; margin: 0 0 10px; }

.source-empty { min-height: 150px; border-radius: var(--radius); background: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; color: var(--ink-dim); }

.ranking-card { background: var(--surface); border-radius: var(--radius); overflow: hidden; max-width: 900px; }
.ranking-card__tabs { display: flex; gap: 8px; padding: 14px; border-bottom: 1px solid rgba(255,255,255,.08); }
.ranking-card__tabs span { padding: 8px 16px; border-radius: 9px; color: var(--ink-dim); }
.ranking-card__tabs .is-active { background: var(--accent); color: var(--accent-ink); }
.ranking-row { display: grid; grid-template-columns: 60px 1fr auto; gap: 16px; align-items: center; min-height: 58px; padding: 0 18px; border-bottom: 1px solid rgba(255,255,255,.06); color: var(--ink); }
.ranking-row strong { color: var(--accent); }
.ranking-row em { color: var(--ink-dim); font-style: normal; font-size: 12px; }

@media (max-width: 900px) {
    .source-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
    .source-page__banner { height: 180px; margin-bottom: 24px; }
    .source-page__header h1 { font-size: 28px; }
    .home-intro h1 { font-size: 25px; }
    .source-cards, .source-cards--promotions { grid-template-columns: 1fr; }
    .source-card img, .source-cards--promotions .source-card img { height: auto; aspect-ratio: 2.35 / 1; }
    .source-document { padding: 22px 18px; }
}

/* ------------------------------ footer ------------------------------ */

.footer-divider { height: 2px; background: var(--surface); }

.footer {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 34px 0;
    flex-wrap: wrap;
}

.footer__block { min-width: 74px; }

.footer__head { font-size: 12px; color: var(--ink-head); margin-bottom: 12px; }

.footer__link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--ink-dim);
    line-height: 17px;
    margin-bottom: 9px;
}

.footer__link .ic { width: 15px; height: 15px; }

a.footer__link:hover { color: var(--accent); }

.footer__socials { display: flex; gap: 10px; margin-top: 4px; }

.footer__social {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--raise);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-dim);
}

.footer__social .ic { width: 16px; height: 16px; }
.footer__social:hover { background: var(--accent); color: var(--accent-ink); }

.legal { padding: 26px 0 40px; font-size: 13px; color: var(--ink-dim); line-height: 1.8; }
.legal p { margin: 0 0 6px; }
.legal__copy { margin-top: 12px; }

/* --------------------------- live chat tab -------------------------- */

.livechat {
    position: fixed;
    right: 24px;
    bottom: 0;
    width: 255px;
    height: 50px;
    background: var(--accent);
    color: var(--accent-ink);
    border-radius: 8px 8px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    z-index: 50;
}

.livechat .ic { width: 24px; height: 24px; }

/* -------------------------- grey placeholders ----------------------- *
 * Every image slot is a sized grey block with its intended dimensions
 * printed in it, so the layout holds its real proportions until the
 * artwork is dropped in. Replace .ph with an <img> at the same size.
 * ------------------------------------------------------------------- */

.ph {
    width: 100%;
    height: 100%;
    background: #3A3B3D;
    background-image:
        repeating-linear-gradient(45deg,
            rgba(255, 255, 255, .035) 0 10px,
            transparent 10px 20px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8A8B8D;
    font-size: 12px;
    letter-spacing: .04em;
    text-align: center;
    border-radius: inherit;
}

.ph--logo { border-radius: 8px; font-size: 11px; }
.ph--light { background: rgba(0, 0, 0, .18); color: rgba(0, 0, 0, .55); background-image: none; }

/* ------------------------------------------------------------------ *
 * Mobile chrome. The reference serves a different layout under 768px:
 * a dismissible app strip, a 56px bar with a centred logo, a peeking
 * 247x251 carousel, an eight-tile category grid and a 59px tab bar.
 * These blocks are hidden on desktop and take over below the
 * breakpoint, which is why they are grouped rather than scattered.
 * ------------------------------------------------------------------ */

.m-only { display: none; }

/* --- app download strip (375x82) --- */

.app-strip {
    position: relative;
    height: 82px;
    background: var(--ground);
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    color: var(--ink);
}

body.app-strip-hidden .app-strip { display: none; }

.app-strip__close {
    width: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-dim);
    flex: 0 0 25px;
}

.app-strip__close .ic { width: 12px; height: 12px; }

.app-strip__logo { width: 50px; height: 50px; flex: 0 0 50px; border-radius: 12px; overflow: hidden; }
.app-strip__logo img { display: block; width: 100%; height: 100%; padding: 8px 4px; object-fit: contain; background: #18191A; }

.app-strip__desc { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.app-strip__line { font-size: 12px; line-height: 14px; color: var(--ink-dim); }
.app-strip__line--1 { color: var(--ink); font-weight: 600; }
.app-strip__stars { font-size: 12px; line-height: 16px; color: var(--accent); }
.app-strip__stars em { color: var(--ink-dim); font-style: normal; }

.app-strip__get {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.app-strip__get .ic { width: 26px; height: 26px; }

/* --- mobile header (375x56) --- */

.m-header {
    position: relative;
    height: 56px;
    background: #242526;
    align-items: center;
}

.m-header__burger {
    width: 64px;
    height: 56px;
    background: none;
    border: 0;
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex: 0 0 64px;
}

.m-header__burger .ic { width: 32px; height: 24px; }

.m-header__logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 128px;
    height: 52px;
}

.m-header__logo img { display: block; width: 100%; height: 100%; object-fit: contain; }

.m-header__account {
    width: 50px;
    height: 56px;
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    flex: 0 0 50px;
}

/* --- slide-out drawer (270 wide) --- */

.drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 270px;
    height: 100vh;
    background: #242526;
    z-index: 70;
    padding: 18px 0 40px;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform .25s ease;
    display: none;
}

body.drawer-open .drawer { transform: translateX(0); }

.drawer__scrim {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    z-index: 60;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s;
    display: none;
}

body.drawer-open .drawer__scrim { opacity: 1; visibility: visible; }

.drawer__group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 500;
    color: var(--ink);
    cursor: pointer;
}

.drawer__group-head .ic--caret { transition: transform .2s ease; }
.drawer__group.is-open .drawer__group-head .ic--caret { transform: rotate(180deg); }

.drawer__group-body { display: none; padding-bottom: 6px; }
.drawer__group.is-open .drawer__group-body { display: block; }

.drawer__group-body a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px 10px 28px;
    font-size: 14px;
    color: var(--ink-dim);
}

.drawer__group-body a:active { background: var(--raise); color: var(--ink); }
.drawer__group-body .ic { width: 18px; height: 18px; }

.drawer__section { padding: 16px 20px; border-top: 1px solid rgba(255, 255, 255, .07); margin-top: 8px; }
.drawer__head { font-size: 12px; color: var(--ink-head); margin-bottom: 12px; }
.drawer__regions { display: flex; gap: 12px; }
.drawer__socials { display: flex; gap: 10px; }

/* --- category grid (8 tiles, 4 per row) --- */

.cats { padding: 22px 0; }

.cats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    row-gap: 14px;
    padding: 0 16px;
}

.cat { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--ink); }
.cat__icon { display: flex; align-items: center; justify-content: center; height: 24px; color: var(--ink); }
.cat__icon .ic { width: 24px; height: 24px; }
.cat__label { font-size: 11px; color: var(--ink-dim); text-align: center; line-height: 13px; }

/* --- bottom tab bar (375x59) --- */

.m-tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 59px;
    background: #242526;
    z-index: 45;
    display: none;
    align-items: center;
    justify-content: space-around;
    padding: 0 18px;
    border-top: 1px solid rgba(255, 255, 255, .06);
}

.m-tabbar__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--ink-dim);
    flex: 1 1 0;
}

.m-tabbar__item .ic { width: 20px; height: 20px; }
.m-tabbar__item.is-active { color: var(--accent); }

/* ----------------------------- responsive --------------------------- */

@media (max-width: 1360px) {
    .container { max-width: calc(100% - var(--rail) - 32px); margin-left: calc(var(--rail) + 16px); }
}

@media (max-width: 1100px) {
    .sponsor { grid-template-columns: 1fr; }
    .tiles { grid-template-columns: repeat(2, 1fr); }
    .download { grid-template-columns: 1fr; height: auto; }
    .download__art { min-height: 200px; }
    .nav__menu--wide { min-width: 300px; grid-template-columns: 1fr; max-height: 60vh; overflow-y: auto; }
}

@media (max-width: 767px) {
    .m-only { display: flex; }
    .cats.m-only { display: block; }
    .drawer, .drawer__scrim, .m-tabbar { display: flex; }
    .drawer { display: block; }

    /* Desktop chrome steps aside for the mobile bar and tab bar. */
    .rail { display: none; }
    .header { display: none; }
    .livechat { display: none; }

    .container { width: 100%; max-width: 100%; margin: 0; padding: 0 16px; }

    /* No fixed header to clear any more, and the tab bar needs room at the
       bottom so the last section is not sitting underneath it. */
    .body-wrap { padding-top: 0; padding-bottom: 59px; }

    /* Full-bleed banner with the peeking neighbours the reference shows. */
    .banner {
        height: 261px;
        border-radius: 0;
        margin: 0 -16px 0;
        padding-top: 10px;
        overflow: hidden;
    }

    .banner__track { column-gap: 10px; padding-left: calc((100vw - 247px) / 2); }

    .banner__slide {
        flex: 0 0 247px;
        height: 251px;
        border-radius: var(--radius);
        overflow: hidden;
        opacity: .5;
        transition: opacity .3s ease;
    }

    .banner__slide.is-active { opacity: 1; }
    .banner__arrow { display: none; }
    .banner__dots { bottom: 0; }

    .tiles { grid-template-columns: 1fr; gap: 12px; margin-bottom: 40px; }
    .tile { padding: 0 16px; }

    .section { margin-bottom: 40px; }

    .download__copy { padding: 28px; }
    .download__title { font-size: 26px; }

    .table-wrap { overflow-x: auto; }
    table.bet { min-width: 640px; }
    .tip__box { right: auto; left: 0; }

    .footer { flex-direction: column; gap: 22px; }
}

/* ------------------------------------------------------------------ *
 * Content pages: About, Terms, Betting Rules, FAQ.
 * Measured off /my/about, /my/tnc, /my/bettingrule and /my/gettingstart
 * at 1440px — 64/120 page padding, 20px white headings, 16px #B2B2B2
 * body, 52px between blocks, accordion rows 20px tall with a #333 rule.
 * ------------------------------------------------------------------ */

.general-page { padding: 64px 0 120px; }

.page-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--ink);
    padding-bottom: 24px;
    margin: 0;
}

.desc { padding-bottom: 52px; }

.desc p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--ink-dim);
    margin: 0;
    padding-bottom: 21px;
}

.desc p:last-child { padding-bottom: 0; }

.desc a, .accordion__body a { color: var(--accent); }
.desc a:hover, .accordion__body a:hover { text-decoration: underline; }

/* ----------------------------- accordion ---------------------------- */

.accordion__item { border-bottom: 1px solid #333; }

.accordion__head {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 0;
    background: none;
    border: 0;
    font-family: inherit;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--ink);
    text-align: left;
    cursor: pointer;
}

.accordion__head:hover { color: var(--accent); }

.accordion__caret {
    width: 11px;
    height: 11px;
    flex: 0 0 11px;
    transform: rotate(-90deg);
    transition: transform .2s ease;
}

.accordion__item.is-open > .accordion__head .accordion__caret { transform: rotate(0deg); }
.accordion__item.is-open > .accordion__head { color: var(--accent); }

.accordion__body {
    display: none;
    /* Matches the reference: the gap sits above the revealed text. */
    padding: 24px 0 0 32px;
    font-size: 16px;
    line-height: 1.7;
    color: var(--ink-dim);
}

.accordion__item.is-open > .accordion__body { display: block; }

.accordion__body p { margin: 0 0 14px; }
.accordion__body p:last-child { margin-bottom: 0; }

.accordion__body ul { list-style: disc; padding-left: 20px; margin: 0; }
.accordion__body li { margin-bottom: 12px; }
.accordion__body li:last-child { margin-bottom: 0; }
.accordion__body ul ul { margin-top: 12px; list-style: circle; }
.accordion__body strong { color: var(--ink); font-weight: 500; }

/* ------------------------- about: contact strip --------------------- */

.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 325px);
    padding-top: 28px;
    align-items: start;
}

.contact-col__title {
    font-size: 14px;
    color: var(--ink-dim);
    padding-bottom: 26px;
    margin: 0;
}

.contact-col__body p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    margin: 0 0 10px;
}

.contact-col__body--inline { display: flex; gap: 10px; }

/* --------------------------- FAQ: sidebar --------------------------- */

.general-page--sidebar { display: flex; align-items: flex-start; }

.side-nav {
    width: 280px;
    flex: 0 0 280px;
    padding-right: 100px;
}

.side-nav__title { padding-bottom: 24px; }

.side-nav__item {
    display: block;
    width: 180px;
    font-size: 16px;
    color: var(--ink-dim);
    padding: 24px 0;
}

/* The first entry sits straight under the heading, so it carries no top
   padding — same as the reference. */
.side-nav__item:first-of-type { padding-top: 0; }

.side-nav__item:hover { color: var(--ink); }
.side-nav__item.is-active { color: var(--accent); }

.side-panels { flex: 1 1 auto; min-width: 0; }
.side-panel { display: none; }
.side-panel.is-active { display: block; }

@media (max-width: 767px) {
    .general-page { padding: 28px 0 60px; }

    .general-page--sidebar { display: block; }

    .side-nav {
        width: 100%;
        flex: none;
        padding-right: 0;
        display: flex;
        gap: 8px;
        overflow-x: auto;
        flex-wrap: nowrap;
        scrollbar-width: none;
        padding-bottom: 20px;
    }

    .side-nav::-webkit-scrollbar { display: none; }

    /* The heading cannot sit inside a horizontal scroller on a phone. */
    .side-nav__title { display: none; }

    .side-nav__item {
        width: auto;
        flex: 0 0 auto;
        padding: 9px 16px;
        background: var(--raise);
        border-radius: var(--radius);
        font-size: 14px;
        white-space: nowrap;
    }

    .side-nav__item.is-active { background: var(--accent); color: var(--accent-ink); }

    .contact-grid { grid-template-columns: 1fr; gap: 28px; }
    .accordion__body { padding-left: 4px; }
}

/* -------------------- responsible gaming (own page) ----------------- *
 * Plain prose rather than an accordion: this is a page someone should be
 * able to read top to bottom without clicking anything open.
 * ------------------------------------------------------------------- */

.page-sub {
    font-size: 17px;
    font-weight: 600;
    color: var(--ink);
    margin: 0;
    padding-bottom: 16px;
}

.rg-list {
    list-style: disc;
    padding-left: 20px;
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
    color: var(--ink-dim);
}

.rg-list li { margin-bottom: 14px; }
.rg-list li:last-child { margin-bottom: 0; }
.rg-list strong { color: var(--ink); font-weight: 500; }

/* The self-check list reads as things to tick off, so it drops the disc
   and uses a marker that does not look like a bullet point of advice. */
.rg-list--check { list-style: none; padding-left: 0; }

.rg-list--check li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
}

.rg-list--check li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 14px;
    height: 14px;
    border: 1.5px solid var(--raise);
    border-radius: 4px;
}

.callout {
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    padding: 24px 28px;
    margin-bottom: 52px;
}

.callout p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--ink-dim);
    margin: 0 0 16px;
}

.callout .rg-list { margin-bottom: 16px; }

.callout__note {
    font-size: 14px;
    color: var(--ink-dim);
    opacity: .8;
    margin: 0;
}

.rg-closing { padding-bottom: 0; }

@media (max-width: 767px) {
    .callout { padding: 20px; }
    .page-sub { font-size: 16px; }
}
