/* Crown Coins Casino landing. Mobile first, one breakpoint: desktop from 1024px. */

@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/poppins-400-normal.woff2") format("woff2");
}

@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("../fonts/poppins-500-normal.woff2") format("woff2");
}

@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/poppins-700-normal.woff2") format("woff2");
}

@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url("../fonts/poppins-800-normal.woff2") format("woff2");
}

@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url("../fonts/poppins-900-normal.woff2") format("woff2");
}

/* ---------- Tokens & base ---------- */

.page-landing {
    --cc-font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;

    --cc-bg: #07000f;
    --cc-bg-2: #0d0019;
    --cc-surface: #120020;
    --cc-surface-2: #1a0030;
    --cc-border: rgba(255, 255, 255, 0.08);
    --cc-border-2: rgba(255, 255, 255, 0.18);

    --cc-text: #f6f6f8;
    --cc-muted: #9a9aa7;

    --cc-purple: #7c3aed;
    --cc-purple-dark: #5b21b6;
    --cc-purple-grad: linear-gradient(180deg, #9d5cf6 0%, #7c3aed 50%, #5b21b6 100%);
    --cc-green: #22c55e;
    --cc-green-grad: linear-gradient(180deg, #4ade80 0%, #22c55e 50%, #16a34a 100%);
    --cc-gold: #f59e0b;
    --cc-gold-grad: linear-gradient(180deg, #fde68a 0%, #fbbf24 38%, #d97706 100%);
    --cc-trust: #00b67a;

    --cc-gutter: 16px;
    --cc-container: 1240px;

    background: var(--cc-bg);
    color: var(--cc-text);
    font-family: var(--cc-font);
    line-height: 1.55;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Ctext x='10' y='30' font-size='22' fill='%23370066' opacity='0.5' transform='rotate(-15 10 30)'%3E%24%3C/text%3E%3Ctext x='70' y='60' font-size='18' fill='%23370066' opacity='0.4' transform='rotate(10 70 60)'%3E%E2%99%A5%3C/text%3E%3Ctext x='140' y='40' font-size='16' fill='%23370066' opacity='0.5' transform='rotate(-8 140 40)'%3E%23%3C/text%3E%3Ctext x='30' y='100' font-size='14' fill='%23370066' opacity='0.4' transform='rotate(20 30 100)'%3E%E2%98%85%3C/text%3E%3Ctext x='100' y='90' font-size='20' fill='%23370066' opacity='0.45' transform='rotate(-12 100 90)'%3E%24%3C/text%3E%3Ctext x='160' y='110' font-size='16' fill='%23370066' opacity='0.4' transform='rotate(15 160 110)'%3E%E2%99%A5%3C/text%3E%3Ctext x='50' y='150' font-size='18' fill='%23370066' opacity='0.45' transform='rotate(-5 50 150)'%3E%23%3C/text%3E%3Ctext x='120' y='160' font-size='14' fill='%23370066' opacity='0.4' transform='rotate(18 120 160)'%3E%E2%98%85%3C/text%3E%3Ctext x='10' y='180' font-size='22' fill='%23370066' opacity='0.5' transform='rotate(-10 10 180)'%3E%24%3C/text%3E%3Ctext x='170' y='190' font-size='16' fill='%23370066' opacity='0.4' transform='rotate(8 170 190)'%3E%E2%99%A5%3C/text%3E%3C/svg%3E");
}

.page-landing :focus-visible {
    outline: 2px solid var(--cc-purple);
    outline-offset: 3px;
}

.page-landing .site-main {
    overflow: hidden;
}

.lp-container {
    width: min(100% - 2 * var(--cc-gutter), var(--cc-container));
    margin-inline: auto;
}

.lp-accent {
    color: var(--cc-green);
}

@media (min-width: 1024px) {
    .page-landing {
        --cc-gutter: 40px;
        --cc-container: 1200px;
    }
}

/* ---------- Crown Coins logo mark ---------- */

.cc-logo-mark {
    flex: none;
    width: 54px;
    height: 34px;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

.lp-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--cc-text);
    text-decoration: none;
}

.lp-logo__word {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1;
}

.lp-logo__tld {
    color: var(--cc-muted);
    font-weight: 600;
}

@media (min-width: 1024px) {
    .cc-logo-mark {
        width: 68px;
        height: 44px;
    }

    .lp-logo__word {
        font-size: 20px;
    }
}

/* ---------- Buttons ---------- */

.lp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 22px;
    border: none;
    border-radius: 999px;
    font-family: var(--cc-font);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 0.15s ease, filter 0.15s ease, background-color 0.15s ease;
}

.lp-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.lp-btn:active {
    transform: translateY(1px);
}

.lp-btn[aria-busy] {
    opacity: 0.6;
    cursor: progress;
}

/* Header: Sign Up — teal/green outline */
.lp-btn--signup {
    border: 1.5px solid var(--cc-green);
    background: transparent;
    color: var(--cc-green);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.lp-btn--signup:hover {
    background: rgba(34, 197, 94, 0.1);
}

/* Header: Login — dark */
.lp-btn--login {
    border: 1.5px solid var(--cc-border-2);
    background: rgba(0, 0, 0, 0.5);
    color: var(--cc-text);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.lp-btn--login:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* Hero JOIN NOW — purple solid */
.lp-btn--join {
    height: 54px;
    padding: 0 48px;
    background: var(--cc-purple-grad);
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: 12px;
}

/* Play / Sign Up to Play — green solid */
.lp-btn--play {
    height: 52px;
    padding: 0 44px;
    background: var(--cc-green-grad);
    box-shadow: 0 10px 26px rgba(34, 197, 94, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 17px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-radius: 12px;
}

.lp-btn--wide {
    min-width: 240px;
}

/* Responsible Social Play — green outline */
.lp-btn--resp {
    height: 46px;
    padding: 0 24px;
    border: 2px solid var(--cc-green);
    background: transparent;
    color: var(--cc-green);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: 999px;
}

.lp-btn--resp:hover {
    background: rgba(34, 197, 94, 0.12);
}

@media (min-width: 1024px) {
    .lp-btn--join {
        height: 60px;
        font-size: 20px;
    }

    .lp-btn--play {
        height: 56px;
        font-size: 18px;
    }
}

/* ---------- Header ---------- */

.lp-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px var(--cc-gutter);
    transition: background 0.25s ease, box-shadow 0.25s ease, padding 0.25s ease;
}

.lp-header.is-stuck {
    padding-block: 8px;
    background: rgba(7, 0, 15, 0.92);
    box-shadow: 0 1px 0 var(--cc-border), 0 8px 24px rgba(0, 0, 0, 0.6);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.lp-header__actions {
    display: flex;
    gap: 10px;
}

.lp-header .lp-btn {
    height: 36px;
    padding: 0 16px;
    font-size: 11px;
}

@media (min-width: 1024px) {
    .lp-header {
        padding-block: 16px;
        padding-inline: max(var(--cc-gutter), calc((100% - var(--cc-container)) / 2));
    }

    .lp-header__actions {
        gap: 12px;
    }

    .lp-header .lp-btn {
        height: 40px;
        padding: 0 24px;
        font-size: 13px;
    }
}

/* ---------- Hero ---------- */

.lp-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 60px;
}

.lp-hero__bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.lp-hero__scrim {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.15) 50%, rgba(0, 0, 0, 0.55) 100%);
}

.lp-hero__body {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lp-hero__chars {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 640px;
    pointer-events: none;
    z-index: 1;
}

.lp-hero__chars img {
    width: 100%;
    height: auto;
    display: block;
}

.lp-hero__copy {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 var(--cc-gutter);
    margin-bottom: 140px;
}

.lp-hero__title {
    margin: 0 0 10px;
    font-weight: 900;
    line-height: 0.95;
    text-transform: uppercase;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
}

.lp-hero__title-num {
    display: block;
    font-size: clamp(32px, 9vw, 68px);
    letter-spacing: -0.01em;
    color: #fff;
}

.lp-hero__title-loc {
    display: block;
    font-size: clamp(28px, 8vw, 60px);
    letter-spacing: 0.02em;
    color: #fff;
}

.lp-hero__sub {
    margin: 12px 0 24px;
    font-size: clamp(14px, 4vw, 20px);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.lp-hero__cta {
    display: inline-flex;
}

@media (min-width: 768px) {
    .lp-hero {
        min-height: 540px;
    }

    .lp-hero__chars {
        max-width: 820px;
    }

    .lp-hero__copy {
        margin-bottom: 180px;
    }
}

@media (min-width: 1024px) {
    .lp-hero {
        min-height: 620px;
    }

    .lp-hero__chars {
        max-width: 1100px;
    }

    .lp-hero__copy {
        margin-bottom: 220px;
    }
}

/* ---------- Section head ---------- */

.lp-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.lp-section-head__title {
    margin: 0;
    font-size: clamp(18px, 4vw, 26px);
    font-weight: 800;
    text-align: center;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* ---------- Games row ---------- */

.lp-games {
    padding: 36px 0 32px;
}

.lp-games__row {
    display: flex;
    gap: 12px;
    margin: 0 auto;
    padding: 4px 0 8px;
    list-style: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.lp-games__row::-webkit-scrollbar {
    display: none;
}

.lp-games__item {
    flex: 0 0 auto;
    scroll-snap-align: start;
}

.lp-game {
    display: block;
    width: 150px;
    aspect-ratio: 208 / 321;
    overflow: hidden;
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s ease;
}

.lp-game img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    -webkit-user-drag: none;
}

.lp-game:hover,
.lp-game:focus-visible {
    transform: translateY(-5px);
}

.lp-game:focus-visible {
    outline: 2px solid var(--cc-purple);
    outline-offset: 2px;
}

.lp-games__footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding-top: 28px;
}

.lp-npn {
    margin: 0;
    font-size: clamp(32px, 9vw, 64px);
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
    line-height: 1;
    letter-spacing: -0.01em;
    color: #fff;
}

@media (min-width: 1024px) {
    .lp-games {
        padding: 56px 0 44px;
    }

    .lp-games__row {
        gap: 16px;
    }

    .lp-games__item {
        flex: 1 1 0;
    }

    .lp-game {
        width: 100%;
        border-radius: 16px;
    }
}

/* ---------- IT'S ALWAYS FREE section ---------- */

.lp-free {
    padding: 32px 0 48px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.lp-free__label {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--cc-muted);
}

.lp-free__title {
    margin: 0;
    font-size: clamp(28px, 8vw, 54px);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    line-height: 1;
}

.lp-free__accent {
    color: var(--cc-green);
}

.lp-free__divider {
    width: min(100%, 480px);
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--cc-green) 30%, var(--cc-green) 70%, transparent);
    border-radius: 2px;
    margin: 4px 0 8px;
}

.lp-free__visual {
    width: min(100%, 560px);
    margin-inline: auto;
    pointer-events: none;
}

.lp-free__visual img {
    width: 100%;
    height: auto;
    display: block;
}

.lp-btn--find {
    min-width: 280px;
}

@media (min-width: 1024px) {
    .lp-free {
        padding: 48px 0 64px;
    }
}

/* ---------- Trustpilot ---------- */

.lp-trust {
    padding: 30px 0 56px;
}

.lp-trust__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 14px;
    margin-bottom: 28px;
}

.lp-trust__brand {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 18px;
    font-weight: 700;
}

.lp-trust__pilot {
    display: inline-flex;
    color: var(--cc-trust);
}

.lp-trust__stars {
    display: inline-flex;
    gap: 3px;
}

.lp-trust__stars i {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    background: var(--cc-trust);
    color: #fff;
    font-style: normal;
}

.lp-trust__score {
    font-size: 14px;
    color: var(--cc-muted);
}

.lp-trust__score strong {
    color: var(--cc-text);
}

.lp-trust__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lp-review {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px 18px;
    border: 1px solid var(--cc-border);
    border-radius: 16px;
    background: var(--cc-surface);
}

.lp-review__stars {
    display: flex;
    gap: 2px;
    color: var(--cc-trust);
}

.lp-review__stars svg {
    width: 16px;
    height: 16px;
}

.lp-review__quote {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #e4e4ea;
}

.lp-review__meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin: auto 0 0;
}

.lp-review__name {
    font-size: 14px;
    font-weight: 700;
}

.lp-review__src {
    font-size: 12px;
    color: var(--cc-muted);
}

.lp-trust__cta {
    display: flex;
    margin: 32px auto 0;
}

@media (min-width: 768px) {
    .lp-trust__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .lp-trust {
        padding: 40px 0 72px;
    }

    .lp-review__quote {
        font-size: 15px;
    }
}

/* ---------- Footer ---------- */

.lp-footer {
    border-top: 1px solid var(--cc-border);
    background: var(--cc-bg-2);
}

.lp-footer__inner {
    width: min(100% - 2 * var(--cc-gutter), 1200px);
    margin-inline: auto;
    padding: 36px 0 36px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.lp-footer__brand {
    display: flex;
    justify-content: center;
}

.lp-logo--footer .cc-logo-mark {
    width: 56px;
    height: 36px;
}

.lp-logo--footer .lp-logo__word {
    font-size: 15px;
}

.lp-footer__resp {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
    border: 1px solid var(--cc-border);
    border-radius: 16px;
    background: var(--cc-surface);
}

.lp-footer__resp-text p {
    margin: 0;
    font-weight: 600;
    font-size: 15px;
}

.lp-footer__resp-sub {
    color: var(--cc-muted);
    font-size: 13px !important;
    font-weight: 400 !important;
    margin-top: 4px;
}

.lp-footer__resp-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.lp-age {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1.5px solid var(--cc-border-2);
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
    flex: none;
}

.lp-footer__npn {
    margin: 0;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--cc-muted);
    text-align: center;
}

.lp-footer__legal-row {
    text-align: center;
}

.lp-footer__legal-bold {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
}

.lp-footer__cols {
    border-top: 1px solid var(--cc-border);
    padding-top: 20px;
}

.lp-footer__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 20px;
}

.lp-footer__links a {
    color: var(--cc-muted);
    font-size: 13px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.lp-footer__links a:hover {
    color: var(--cc-text);
}

.lp-footer__legal {
    padding-top: 16px;
    border-top: 1px solid var(--cc-border);
    font-size: 11px;
    line-height: 1.6;
    color: var(--cc-muted);
}

.lp-footer__legal p {
    margin: 0;
}

@media (min-width: 768px) {
    .lp-footer__resp {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

/* ---------- Misc ---------- */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* 404 page: no hero under the header. */
.page-not-found .lp-header {
    position: relative;
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
    .lp-btn {
        transition: none;
    }
}
