/* Europa777 sections ported from the owner design (gold on navy). */

html,
body.c7-redesign {
    overflow-x: clip;
}

body.c7-redesign .c7-header__menu {
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
}

body.c7-redesign .c7-header::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    background: linear-gradient(90deg, #0b2a6f 0 34%, var(--a7-red) 34% 43.4%, #fff 43.4% 52.8%, var(--a7-red) 52.8% 62.2%, #fff 62.2% 71.6%, var(--a7-red) 71.6% 81%, #fff 81% 90.4%, var(--a7-red) 90.4%);
    pointer-events: none;
}

body.c7-redesign .c7-header {
    background: rgba(4, 17, 46, 0.94);
}

/* Five-item trust strip */
body.c7-redesign .eu-trust {
    max-width: 1360px;
    width: 100%;
    min-width: 0;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
}

/* Home sections after the hero pick up a 48px margin (56px from 900px) from
   `.c7-content:has(> #c7Hero) > * + *`. A script sits between the hero and this
   strip, so the old hug rule for `#c7Hero + .c7-trust` never matched. The lobby
   file has no margin here; the strip's 14px row padding is the only space. */
body.c7-redesign .c7-content:has(> #c7Hero) > .eu-trust {
    margin-top: 0;
    padding-top: 0;
}


body.c7-redesign .eu-trust__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px 28px;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 14px 4px;
    border-bottom: 1px solid var(--a7-surface-2);
}

body.c7-redesign .eu-trust__row::-webkit-scrollbar { display: none; }

body.c7-redesign .eu-trust__row span {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 600;
    color: var(--a7-text-2);
}

body.c7-redesign .eu-trust__row i {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    background: var(--a7-red);
    -webkit-mask: var(--eu-icon) center / contain no-repeat;
    mask: var(--eu-icon) center / contain no-repeat;
}

/* Grand Tour welcome */
body.c7-redesign .eu-tour {
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: var(--c7-section) 0 0;
    padding: 0;
    box-sizing: border-box;
}

body.c7-redesign .eu-tour__panel {
    position: relative;
    width: 100%;
    min-width: 0;
    border-radius: 9px;
    overflow: hidden;
    border: 1px solid rgba(255, 204, 0, 0.28);
    background: #061433;
    padding: 26px 20px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

body.c7-redesign .eu-tour__bg {
    position: absolute;
    inset: 0;
    background: url("../img/eu/welcome-bg-2.webp") center 62% / cover no-repeat;
    opacity: 0.28;
    pointer-events: none;
}

body.c7-redesign .eu-tour__head,
body.c7-redesign .eu-tour__stops {
    position: relative;
}

body.c7-redesign .eu-kicker {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 13px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--a7-red-text);
}

body.c7-redesign .eu-tour__title {
    margin: 10px 0 0;
    font-size: clamp(28px, 2.6vw, 38px);
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: -0.02em;
}

body.c7-redesign .eu-tour__title b { color: var(--a7-red-text); font-weight: 900; }

body.c7-redesign .eu-tour__sub {
    margin: 8px 0 0;
    color: var(--a7-muted);
    font-weight: 700;
}

body.c7-redesign .eu-tour__lead {
    margin: 6px 0 0;
    max-width: 640px;
    color: var(--a7-text-2);
    line-height: 1.5;
}

body.c7-redesign .eu-tour__links {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    align-items: center;
}

body.c7-redesign .eu-tour__links a { min-height: 44px; display: inline-flex; align-items: center; font-weight: 800; }

body.c7-redesign .eu-tour__stops {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    padding-top: 14px;
}

body.c7-redesign .eu-stop {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

body.c7-redesign .eu-stop__dot {
    width: 16px;
    height: 16px;
    margin-left: 16px;
    border-radius: 50%;
    background: var(--a7-red);
    border: 3px solid #061433;
    box-shadow: 0 0 0 2px var(--a7-red);
}

body.c7-redesign .eu-stop:not(.is-on) .eu-stop__dot {
    background: #0A1F5C;
    box-shadow: 0 0 0 2px rgba(255, 204, 0, 0.5);
}

body.c7-redesign .eu-stop__card {
    border-radius: 8px;
    background: rgba(10, 31, 92, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.14);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

body.c7-redesign .eu-stop.is-on .eu-stop__card {
    background: linear-gradient(180deg, #0E2C7A, #0A1F5C);
    border-color: var(--a7-red);
    box-shadow: 0 0 0 4px rgba(255, 204, 0, 0.12), 0 14px 36px rgba(0, 0, 0, 0.4);
}

body.c7-redesign .eu-stop__top {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 14px 16px 0;
    font-size: 12px;
    letter-spacing: 0.16em;
    color: var(--a7-muted);
}

body.c7-redesign .eu-stop.is-on .eu-stop__top { color: var(--a7-red-text); }

body.c7-redesign .eu-stop__flag {
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--a7-red);
    color: var(--a7-on-accent);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

body.c7-redesign .eu-stop__city {
    margin: 4px 16px 0;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.1;
}

body.c7-redesign .eu-stop__dep {
    margin: 4px 16px 0;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

body.c7-redesign .eu-stop__fox {
    display: none;
}

body.c7-redesign .eu-stop__amt {
    margin: 14px 16px 0;
    padding-top: 14px;
    border-top: 2px dashed rgba(255, 255, 255, 0.16);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

body.c7-redesign .eu-stop__amt strong {
    font-size: 46px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--a7-red-text);
}

body.c7-redesign .eu-stop.is-on .eu-stop__amt strong { font-size: 58px; }

body.c7-redesign .eu-stop__amt em { font-style: normal; font-weight: 900; color: #fff; }

body.c7-redesign .eu-stop__amt small { color: var(--a7-muted); }

body.c7-redesign .eu-stop__go,
body.c7-redesign .eu-stop__note {
    margin: 14px 16px 16px;
    min-height: 50px;
}

body.c7-redesign .eu-stop__go {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    border: 0;
    background: var(--a7-red);
    color: var(--a7-on-accent);
    font-weight: 900;
    font-size: 15px;
    text-decoration: none;
    cursor: pointer;
}

body.c7-redesign .eu-stop__note {
    display: flex;
    align-items: center;
    color: var(--a7-muted);
    font-size: 13px;
}

/* Jackpot fox */
body.c7-redesign .eu-jack {
    max-width: 1360px;
    margin: 0 auto;
    padding: 40px 16px 0;
    box-sizing: border-box;
}

body.c7-redesign .eu-jack__box {
    position: relative;
    border-radius: 9px;
    overflow: hidden;
    border: 1px solid rgba(255, 204, 0, 0.3);
    background: #061433;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    min-height: 420px;
}

body.c7-redesign .eu-jack__art {
    position: relative;
    min-height: 100%;
    background: url("../img/eu/jackpot-fox-2.webp") 50% 22% / cover no-repeat;
}

body.c7-redesign .eu-jack__art::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(6, 20, 51, 0) 60%, #061433 100%);
}

body.c7-redesign .eu-jack__copy {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    padding: 32px 28px 28px 12px;
    min-width: 0;
}

body.c7-redesign .eu-jack__digits {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-end;
    gap: 4px;
    overflow: hidden;
}

body.c7-redesign .eu-jack__digits b,
body.c7-redesign .eu-jack__digits span {
    display: grid;
    place-items: center;
    font-weight: 900;
    line-height: 1;
    color: var(--a7-red-text);
    font-variant-numeric: tabular-nums;
}

body.c7-redesign .eu-jack__digits b {
    width: 1.15em;
    height: 1.45em;
    border-radius: 5px;
    background: linear-gradient(180deg, #0E2C7A 0%, #0A1F5C 50%, #081a4e 50%, #0A1F5C 100%);
    border: 1px solid rgba(255, 204, 0, 0.35);
    font-size: clamp(22px, 2.4vw, 40px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 6px 14px rgba(0, 0, 0, 0.35);
}

/* Jackpot games: the shared game card (c7-tile), four in a row next to the fox;
   the full six once the box stacks, then one swipeable row on phones. */
body.c7-redesign .eu-jack__games {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
body.c7-redesign .eu-jack__games .c7-tile { min-width: 0; }
@media (min-width: 1024px) {
    body.c7-redesign .eu-jack__games .c7-tile:nth-child(n+5) { display: none; }
}

body.c7-redesign .eu-wins-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 204, 0, 0.12);
    border: 1px solid rgba(255, 204, 0, 0.4);
    font-size: 12px;
    font-weight: 900;
    color: var(--a7-red-2);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
body.c7-redesign .eu-wins-tag i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--a7-muted-2);
}

/* Sidebar groups */
body.c7-redesign .eu-side-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin: 8px 0 12px;
}

body.c7-redesign .eu-side-switch a {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    border: 1px solid var(--a7-surface-2);
    background: var(--a7-navy);
    color: var(--a7-text-2);
    font-weight: 800;
    text-decoration: none;
}

body.c7-redesign .eu-side-switch a[aria-current="true"] {
    background: linear-gradient(180deg, var(--a7-red-hi), var(--a7-red));
    color: var(--a7-on-accent);
    border-color: var(--a7-red);
}

body.c7-redesign .eu-acc {
    border-radius: 6px;
    margin-bottom: 2px;
}

body.c7-redesign .eu-acc > summary {
    list-style: none;
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 10px;
    cursor: pointer;
    font-weight: 700;
    color: var(--a7-text-2);
}

body.c7-redesign .eu-acc > summary::-webkit-details-marker { display: none; }

body.c7-redesign .eu-acc[open] > summary {
    background: var(--a7-surface-2);
    color: var(--a7-text);
    font-weight: 800;
}

body.c7-redesign .eu-acc__subs {
    display: flex;
    flex-direction: column;
    padding: 4px 8px 8px 36px;
}

body.c7-redesign .eu-acc__subs a {
    min-height: 44px;
    display: flex;
    align-items: center;
    color: var(--a7-text-2);
    text-decoration: none;
    font-weight: 600;
}

body.c7-redesign .c7-nav a { min-height: 44px; height: auto; }

/* Reload cards: day artwork across the top, copy underneath */
body.c7-redesign .b7-reload__card {
    display: flex;
    flex-direction: column;
    min-height: 0;
    background:
        linear-gradient(180deg, rgba(0, 10, 43, 0.2) 0%, rgba(0, 10, 43, 0) 28%, var(--a7-navy-deep) 62%),
        var(--b7-img) var(--b7-pos, center) / cover no-repeat;
    background-color: var(--a7-navy-deep);
}
body.c7-redesign .b7-reload__card::before { display: none; }

/* Premium promo cards and how-to steps */
body.c7-redesign .eu-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

body.c7-redesign .eu-steps li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--a7-text-2);
    font-size: 14px;
}

body.c7-redesign .eu-steps b {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--a7-surface);
    border: 1px solid var(--a7-line);
    color: var(--a7-red-text);
    font-size: 12px;
}

body.c7-redesign .eu-premium {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

body.c7-redesign .eu-premium a {
    position: relative;
    min-height: 220px;
    border-radius: 9px;
    overflow: hidden;
    background: var(--a7-navy) center / cover no-repeat;
    border: 1px solid var(--a7-surface-2);
    color: var(--a7-text);
    text-decoration: none;
    display: flex;
    align-items: flex-end;
}

body.c7-redesign .eu-premium a span {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 22px;
    max-width: 460px;
}

body.c7-redesign .eu-premium a::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--a7-navy) 0%, rgba(8, 25, 63, 0.92) 48%, rgba(8, 25, 63, 0.15) 100%);
}

body.c7-redesign .eu-premium small {
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--a7-red-text);
}

body.c7-redesign .eu-premium strong { font-size: clamp(26px, 3vw, 34px); line-height: 0.95; }

body.c7-redesign .b7-vtable th:nth-child(4),
body.c7-redesign .b7-vtable td:nth-child(4) { white-space: nowrap; }

/* Help centre */
body.c7-redesign .eu-doc h2 {
    display: flex;
    gap: 12px;
    align-items: baseline;
    font-size: 22px;
    font-weight: 900;
}

body.c7-redesign .eu-doc section {
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--a7-surface-2);
}

body.c7-redesign .eu-doc p,
body.c7-redesign .eu-doc li { color: var(--a7-text-2); line-height: 1.7; }

body.c7-redesign .eu-doc ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }

body.c7-redesign .eu-doc li { display: flex; gap: 12px; }

body.c7-redesign .eu-payfacts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

body.c7-redesign .eu-payfacts div,
body.c7-redesign .eu-about-stats div {
    padding: 18px 16px;
    border-radius: 10px;
    background: var(--a7-navy-deep);
    border: 1px solid var(--a7-surface-2);
}

body.c7-redesign .eu-payfacts strong,
body.c7-redesign .eu-about-stats strong {
    display: block;
    color: var(--a7-red-text);
    font-size: 24px;
    font-weight: 900;
}

body.c7-redesign .eu-about-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

body.c7-redesign .eu-paylogos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}

body.c7-redesign .eu-paylogos span {
    height: 64px;
    border-radius: 8px;
    background: #0b1d45;
    border: 1px solid var(--a7-surface-2);
    display: grid;
    place-items: center;
    padding: 10px;
}

body.c7-redesign .eu-paylogos img { max-width: 100%; max-height: 36px; object-fit: contain; }

@media (max-width: 1023.98px) {
    body.c7-redesign .eu-jack__box { grid-template-columns: 1fr; min-height: 0; }
    body.c7-redesign .eu-jack__art { min-height: 240px; }
    body.c7-redesign .eu-jack__art::after {
        background: linear-gradient(180deg, rgba(6, 20, 51, 0) 55%, #061433 100%);
    }
    body.c7-redesign .eu-jack__copy { padding: 8px 16px 24px; }
    body.c7-redesign .eu-jack__games { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    body.c7-redesign .eu-premium { grid-template-columns: 1fr; }
    body.c7-redesign .eu-premium a::after {
        background: linear-gradient(180deg, rgba(8, 25, 63, 0) 30%, var(--a7-navy) 78%);
    }
}

@media (max-width: 899.98px) {
    body.c7-redesign .eu-tour__stops {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }
    body.c7-redesign .eu-stop { flex: 0 0 78%; scroll-snap-align: start; }
    body.c7-redesign .eu-jack__games {
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: 42%;
        overflow-x: auto;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
    }
    body.c7-redesign .eu-jack__games .c7-tile { scroll-snap-align: start; }
    body.c7-redesign .eu-stop__fox { display: block; width: 100%; height: 150px; object-fit: contain; object-position: right bottom; }
    body.c7-redesign .eu-payfacts,
    body.c7-redesign .eu-about-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
    body.c7-redesign .eu-tour__phone-only { display: none; }
}

/* Phones: the jackpot fox is ~240px tall here, so a 880px copy is enough (181 KB → 99 KB). */
@media (max-width: 599.98px) {
    body.c7-redesign .eu-jack__art { background-image: url("../img/eu/jackpot-fox-2-sm.webp"); }
}

/* Below-the-fold home sections tagged data-eu-lazybg hold back their background art (tour, VIP, jackpot fox,
   daily map, reload days, sports, club, phone) until they come within ~1 screen; the head script in
   layout/app adds .eu-near. Without IntersectionObserver html never gets .eu-lazybg and everything loads as before. */
html.eu-lazybg body.c7-redesign [data-eu-lazybg]:not(.eu-near),
html.eu-lazybg body.c7-redesign [data-eu-lazybg]:not(.eu-near)::before,
html.eu-lazybg body.c7-redesign [data-eu-lazybg]:not(.eu-near)::after,
html.eu-lazybg body.c7-redesign [data-eu-lazybg]:not(.eu-near) *,
html.eu-lazybg body.c7-redesign [data-eu-lazybg]:not(.eu-near) *::before,
html.eu-lazybg body.c7-redesign [data-eu-lazybg]:not(.eu-near) *::after {
    background-image: none !important;
}
