/* =========================================================
   CRYPTOGAMMON V2
   Styles exclusively for index2.php
   ========================================================= */

/* BASE */

:root {
    --bg: #061710;
    --bg-deep: #04120d;
    --panel: #10221a;
    --gold: #e3ae70;
    --gold-light: #f5cf92;
    --gold-dark: #a87945;
    --coral: #cb644a;
    --coral-hover: #e07756;
    --white: #f7f3eb;
    --muted: #b8c0b9;
    --border: rgba(219, 184, 127, .17);
    --serif: Georgia, "Times New Roman", serif;
    --sans: Georgia, "Times New Roman", serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 35px;
}

body.cg-v2 {
    margin: 0;
    min-width: 320px;
    background: var(--bg-deep);
    color: var(--white);
    font-family: var(--sans);
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

.cg-v2 a {
    color: inherit;
    text-decoration: none;
}

.cg-v2 button,
.cg-v2 select {
    font: inherit;
}

.cg-v2 button,
.cg-v2 a,
.cg-v2 select {
    -webkit-tap-highlight-color: transparent;
}

.cg-v2 a:focus-visible,
.cg-v2 button:focus-visible,
.cg-v2 select:focus-visible,
.cg-v2 input:focus-visible {
    outline: 2px solid var(--gold-light);
    outline-offset: 4px;
}

.cg-v2 img {
    max-width: 100%;
}

.cg-v2 h1,
.cg-v2 h2,
.cg-v2 h3,
.cg-v2 p {
    margin-top: 0;
}

.v2-container {
    width: min(1320px, calc(100% - 90px));
    margin-inline: auto;
}

.v2-eyebrow {
    font-family: var(--serif);
    color: var(--gold);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* =========================================================
   HEADER
   ========================================================= */

.v2-header {
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    z-index: 30;
}

.v2-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    min-height: 76px;
    padding: 10px 22px;
    border: 1px solid rgba(227, 174, 112, .13);
    border-radius: 24px;
    background: rgba(3, 18, 13, .80);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, .17);
}

.v2-brand {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.v2-brand img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid rgba(234, 182, 111, .5);
}

.v2-brand span {
    font-family: var(--serif);
    color: var(--gold-light);
    font-weight: 700;
    font-size: clamp(22px, 2vw, 30px);
    white-space: nowrap;
}

.v2-navigation {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(13px, 2.1vw, 32px);
}

.v2-navigation > a:not(.v2-header-play) {
    color: #eeeae0;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    transition: color .2s;
}

.v2-navigation > a:not(.v2-header-play):hover {
    color: var(--gold-light);
}

.language-select {
    max-width: 75px;
    padding: 8px 4px;
    color: #e9d6b5;
    background: transparent;
    border: 0;
    cursor: pointer;
    font-size: 12px;
}

.language-select option {
    color: #fff;
    background: #10251b;
}

.v2-header-play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 23px;
    padding: 13px 23px;
    min-height: 46px;
    border-radius: 30px;
    background: var(--coral);
    color: white;
    font-weight: 800;
    font-size: 13px;
    white-space: nowrap;
    transition: background .2s, transform .2s;
}

.v2-header-play:hover {
    background: var(--coral-hover);
    transform: translateY(-2px);
}

.v2-header-play span:last-child {
    font-size: 20px;
    font-weight: 400;
}

/* =========================================================
   HERO
   ========================================================= */

.v2-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding-top: clamp(145px, 15vw, 190px);
    background: #091b14;
}

.v2-hero-background,
.v2-hero-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: -1;
}

.v2-hero-background {
    /*
       Temporary background.
       Replace with the final backgammon photo later.
    */
    background:
        radial-gradient(
            ellipse 55% 70% at 92% 40%,
            rgba(160, 112, 62, .35),
            transparent 70%
        ),
        radial-gradient(
            ellipse 50% 85% at 40% -10%,
            rgba(37, 77, 49, .46),
            transparent 80%
        ),
        linear-gradient(
            115deg,
            #04110c 7%,
            #071a12 45%,
            #263121 75%,
            #55402b 100%
        );
}

.v2-hero-overlay {
    background:
        linear-gradient(
            90deg,
            rgba(2, 13, 9, .68) 0%,
            rgba(2, 13, 9, .35) 49%,
            transparent 100%
        ),
        linear-gradient(
            0deg,
            #061710 0%,
            transparent 47%
        );
}

.v2-hero > .v2-container {
    position: relative;
    z-index: 1;
}

.v2-hero-content {
    max-width: 650px;
    padding-left: 24px;
}

.v2-hero h1 {
    margin: 18px 0 20px;
    font-family: var(--serif);
    font-size: clamp(48px, 5.8vw, 84px);
    font-weight: 700;
    line-height: .99;
    letter-spacing: -2.5px;
    text-shadow: 0 3px 25px rgba(0, 0, 0, .3);
}

.v2-hero h1 span {
    display: block;
}

.v2-hero h1 .v2-gold {
    margin-top: 8px;
    color: var(--gold);
}

.v2-hero-description {
    max-width: 455px;
    color: #d5ddd7;
    font-size: clamp(14px, 1.3vw, 17px);
    line-height: 1.65;
}

.v2-hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 26px;
    margin-top: 29px;
}

.v2-button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    min-height: 56px;
    padding: 7px 8px 7px 28px;
    border: 0;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 800;
    transition: background .2s, transform .2s, box-shadow .2s;
}

.v2-button-primary {
    background: var(--coral);
    color: #fff;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .15);
}

.v2-button-primary:hover {
    background: var(--coral-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, .25);
}

.v2-button-arrow {
    display: grid;
    place-items: center;
    width: 37px;
    height: 37px;
    flex: 0 0 37px;
    color: #263129;
    background: #f5f3ed;
    border-radius: 50%;
    font-size: 20px;
    font-weight: 400;
}

.v2-button-how {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-size: 13px;
    font-weight: 800;
    transition: color .2s;
}

.v2-button-how:hover {
    color: var(--gold-light);
}

.v2-play-symbol {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--gold-dark);
    color: var(--gold);
    font-size: 12px;
}

/* HOW IT WORKS — heading hierarchy */
.v2-how .v2-eyebrow {
    font-family: var(--serif);
    font-size: 48px;
    line-height: 1.15;
    letter-spacing: 0;
    color: var(--gold-light);
}

.v2-how .v2-section-heading h2 {
    margin-top: 14px;
    font-size: 22px;
    line-height: 1.4;
    letter-spacing: 0;
    color: #fff;
}

@media (max-width: 767px) {
    .v2-how .v2-eyebrow {
        font-size: 34px;
    }

    .v2-how .v2-section-heading h2 {
        font-size: 19px;
    }
}

/* HERO THREE FEATURES */

.v2-hero-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: clamp(70px, 8vw, 110px);
    padding: 32px 0 38px;
    border-top: 1px solid rgba(218, 183, 132, .24);
    background: linear-gradient(
        180deg,
        rgba(3, 19, 13, .10),
        rgba(3, 19, 13, .50)
    );
}

.v2-hero-feature {
    display: flex;
    align-items: center;
    gap: 22px;
    min-width: 0;
    padding: 6px 27px;
}

.v2-hero-feature:first-child {
    padding-left: 20px;
}

.v2-hero-feature + .v2-hero-feature {
    border-left: 1px solid rgba(214, 181, 124, .17);
}

.v2-feature-icon {
    width: 77px;
    height: 77px;
    flex: 0 0 77px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--gold-light);
    font-size: 34px;
    background: radial-gradient(
        circle at 40% 25%,
        rgba(58, 82, 64, .42),
        rgba(5, 26, 18, .92)
    );
    border: 1px solid rgba(229, 184, 116, .18);
}

.v2-icon-wallet span {
    transform: rotate(-10deg);
}

.v2-hero-feature h3 {
    margin-bottom: 5px;
    font-family: var(--serif);
    font-size: clamp(16px, 1.55vw, 22px);
    line-height: 1.2;
}

.v2-hero-feature p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.5;
}

/* =========================================================
   HOW IT WORKS
   ========================================================= */

.v2-how {
    position: relative;
    overflow: hidden;
    padding: 76px 0 38px;
    background:
        radial-gradient(
            ellipse 60% 50% at 95% 10%,
            rgba(94, 79, 46, .20),
            transparent 80%
        ),
        linear-gradient(145deg, #071b13, #0c2218 60%, #061710);
    border-top: 1px solid rgba(229, 190, 123, .08);
}

.v2-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 35px;
    padding: 0 23px;
    margin-bottom: 30px;
}

.v2-section-heading h2 {
    max-width: 830px;
    margin: 14px 0 0;
    font-family: var(--serif);
    font-size: clamp(34px, 4.2vw, 60px);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -1.5px;
}

.v2-section-subtitle {
    max-width: 280px;
    margin-bottom: 5px;
    color: #c3c9c0;
    font-size: 14px;
    line-height: 1.55;
}

/* FOUR CARDS */

.v2-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.v2-step-card {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 340px;
    padding: 24px 24px 27px;
    border: 1px solid rgba(221, 196, 147, .16);
    border-radius: 15px;
    background:
        radial-gradient(
            ellipse at 55% 40%,
            rgba(51, 67, 47, .24),
            transparent 70%
        ),
        linear-gradient(160deg, rgba(27, 42, 31, .80), rgba(8, 27, 19, .90));
    box-shadow: inset 0 0 35px rgba(255, 255, 255, .015);
    transition: transform .25s, border-color .25s, box-shadow .25s;
}

.v2-step-card:hover {
    transform: translateY(-5px);
    border-color: rgba(226, 175, 112, .45);
    box-shadow: 0 20px 32px rgba(0, 0, 0, .16);
}

.v2-step-card:not(:last-child)::after {
    content: "›";
    position: absolute;
    right: -17px;
    top: 36%;
    z-index: 5;
    color: #e9bc79;
    font-family: var(--serif);
    font-size: 35px;
    line-height: 1;
    text-shadow: 0 3px 5px #03110b;
}

.v2-step-number {
    position: absolute;
    top: 17px;
    left: 17px;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 43px;
    height: 43px;
    border-radius: 50%;
    border: 1px solid rgba(225, 193, 140, .2);
    background: rgba(112, 132, 105, .16);
    color: #f3dfbc;
    font-family: var(--serif);
    font-size: 15px;
    font-weight: 700;
}

.v2-step-visual {
    position: relative;
    height: 170px;
    flex: 0 0 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 13px 0 12px;
    perspective: 450px;
}

.v2-step-image-slot {
    position: relative;
    width: 170px;
    height: 155px;
    filter: drop-shadow(0 15px 10px rgba(0, 0, 0, .40));
}

.v2-step-image-slot::before,
.v2-step-image-slot::after {
    content: "";
    position: absolute;
    display: block;
}

/* Temporary CSS coin illustration */

.v2-step-visual-coins .v2-step-image-slot::before {
    width: 108px;
    height: 108px;
    left: 31px;
    top: 12px;
    border-radius: 50%;
    border: 7px ridge #d58a3f;
    background:
        radial-gradient(
            circle at 33% 26%,
            #ffdf9c,
            #db9345 38%,
            #8c481d 78%,
            #e4a15b
        );
    box-shadow:
        0 7px 0 #8a481d,
        0 11px 0 #e5a253,
        0 16px 0 #84421c,
        0 20px 0 #b86f32;
}

.v2-step-visual-coins .v2-step-image-slot::after {
    content: "CBG";
    left: 31px;
    top: 12px;
    width: 108px;
    height: 108px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #633414;
    font: bold 24px var(--serif);
    text-shadow: 0 1px rgba(255, 224, 160, .6);
}

/* Temporary checker illustration */

.v2-step-visual-checkers .v2-step-image-slot::before,
.v2-step-visual-checkers .v2-step-image-slot::after {
    width: 89px;
    height: 89px;
    border-radius: 50%;
    transform: rotateX(54deg) rotateZ(-15deg);
}

.v2-step-visual-checkers .v2-step-image-slot::before {
    left: 7px;
    top: 25px;
    border: 8px ridge #d4b78b;
    background: radial-gradient(circle, #fff0cc, #ad8660);
    box-shadow: 0 14px 0 #8c6d50, 0 20px 15px #0006;
}

.v2-step-visual-checkers .v2-step-image-slot::after {
    left: 79px;
    top: 51px;
    border: 8px ridge #343637;
    background: radial-gradient(circle, #4b4d4b, #070a09);
    box-shadow: 0 13px 0 #111, 0 20px 15px #0008;
}

/* Temporary dice illustration */

.v2-step-visual-dice .v2-step-image-slot::before,
.v2-step-visual-dice .v2-step-image-slot::after {
    width: 85px;
    height: 85px;
    border-radius: 15px;
    transform: rotate(-15deg);
}

.v2-step-visual-dice .v2-step-image-slot::before {
    left: 11px;
    top: 46px;
    border: 5px solid #e0c9a8;
    background:
        radial-gradient(circle at 25% 25%, #633a25 0 5px, transparent 6px),
        radial-gradient(circle at 75% 25%, #633a25 0 5px, transparent 6px),
        radial-gradient(circle at 50% 50%, #633a25 0 5px, transparent 6px),
        radial-gradient(circle at 25% 75%, #633a25 0 5px, transparent 6px),
        radial-gradient(circle at 75% 75%, #633a25 0 5px, transparent 6px),
        linear-gradient(135deg, #fff4d9, #c7a17b);
    box-shadow: 7px 9px 0 #927459;
}

.v2-step-visual-dice .v2-step-image-slot::after {
    left: 83px;
    top: 24px;
    border: 5px solid #4b301f;
    transform: rotate(15deg);
    background:
        radial-gradient(circle at 25% 25%, #dda05b 0 5px, transparent 6px),
        radial-gradient(circle at 75% 25%, #dda05b 0 5px, transparent 6px),
        radial-gradient(circle at 50% 50%, #dda05b 0 5px, transparent 6px),
        radial-gradient(circle at 25% 75%, #dda05b 0 5px, transparent 6px),
        radial-gradient(circle at 75% 75%, #dda05b 0 5px, transparent 6px),
        linear-gradient(135deg, #48301f, #080706);
    box-shadow: 7px 9px 0 #100c09;
}

/* Temporary wallet illustration */

.v2-step-visual-withdraw .v2-step-image-slot::before {
    left: 16px;
    top: 39px;
    width: 142px;
    height: 94px;
    border-radius: 12px;
    border: 2px solid #9e693d;
    background:
        repeating-linear-gradient(
            0deg,
            transparent 0 3px,
            rgba(255, 255, 255, .025) 4px
        ),
        linear-gradient(135deg, #292722, #090b09);
    box-shadow: inset 0 0 15px #0009, 7px 10px 12px #0007;
    transform: rotate(4deg);
}

.v2-step-visual-withdraw .v2-step-image-slot::after {
    content: "CBG";
    left: 58px;
    top: 8px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    border: 5px ridge #bd813b;
    background: radial-gradient(circle at 30% 20%, #ffd49a, #a95f27 80%);
    color: #613414;
    font: bold 16px var(--serif);
    transform: rotate(9deg);
    z-index: -1;
}

.v2-step-card h3 {
    margin: auto 0 10px;
    font-family: var(--serif);
    font-size: clamp(18px, 1.6vw, 23px);
    line-height: 1.2;
    color: #f8f3e9;
}

.v2-step-card p {
    margin: 0;
    color: #c5ccc5;
    font-size: 13px;
    line-height: 1.57;
}

/* =========================================================
   CBG TOKEN
   ========================================================= */

.v2-token-section {
    padding: 5px 0 29px;
    background: linear-gradient(
        180deg,
        #061710 0%,
        #061710 15%,
        #071b13 100%
    );
}

.v2-token-card {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    min-height: 325px;
    padding: 35px 40px;
    overflow: hidden;
    border: 1px solid rgba(222, 181, 124, .30);
    border-radius: 17px;
    background: #0b241a;
}

.v2-token-background {
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(
            120deg,
            rgba(1, 15, 11, .80) 0%,
            rgba(3, 26, 18, .38) 54%,
            rgba(1, 15, 11, .65) 100%
        ),
        repeating-linear-gradient(
            153deg,
            transparent 0 85px,
            rgba(210, 230, 199, .07) 86px,
            transparent 89px,
            transparent 170px
        ),
        radial-gradient(
            ellipse at 61% 76%,
            rgba(90, 112, 74, .46),
            transparent 65%
        ),
        #0a2b20;
}

.v2-token-content {
    position: relative;
    z-index: 2;
    width: 43%;
    max-width: 465px;
}

.v2-token-content h2 {
    margin: 14px 0 15px;
    font-family: var(--serif);
    font-size: clamp(26px, 2.7vw, 39px);
    line-height: 1.08;
}

.v2-token-content p {
    max-width: 430px;
    color: #c6d0c6;
    line-height: 1.6;
}

.v2-token-content p.cg-token-description {
    font-size: 16px;
}

.v2-token-content p.cg-token-notice {
    font-size: 12px;
    opacity: .72;
}

.v2-token-content .v2-button {
    margin-top: 2px;
    min-height: 49px;
    padding-left: 24px;
    font-size: 13px;
}

.v2-token-content .v2-button-arrow {
    width: 33px;
    height: 33px;
    flex-basis: 33px;
}

.v2-token-illustration {
    position: absolute;
    z-index: 1;
    left: 55%;
    top: 50%;
    width: clamp(150px, 21vw, 285px);
    aspect-ratio: 1;
    transform: translate(-50%, -45%);
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(215, 149, 67, .20),
        transparent 70%
    );
    filter: drop-shadow(0 18px 16px rgba(0, 0, 0, .45));
}

.v2-token-illustration img {
    display: block;
    width: 84%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid rgba(239, 173, 87, .45);
    box-shadow: 0 0 0 9px rgba(150, 92, 35, .12);
}

.v2-token-benefits {
    position: relative;
    z-index: 2;
    width: 24%;
    margin-left: auto;
    border: 1px solid rgba(206, 191, 152, .13);
    border-radius: 13px;
    overflow: hidden;
    background: rgba(4, 21, 15, .49);
    backdrop-filter: blur(10px);
}

.v2-token-benefit {
    display: flex;
    align-items: center;
    gap: 17px;
    min-height: 78px;
    padding: 12px 15px;
    color: #eeeae0;
    font-size: 13px;
    line-height: 1.35;
}

.v2-token-benefit + .v2-token-benefit {
    border-top: 1px solid rgba(223, 195, 144, .15);
}

.v2-benefit-icon {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(224, 180, 107, .20);
    border-radius: 50%;
    color: var(--gold-light);
    background: rgba(8, 30, 22, .8);
    font-size: 28px;
}

/* =========================================================
   TRUST STRIP
   ========================================================= */

.v2-trust {
    border-top: 1px solid rgba(222, 184, 126, .13);
    border-bottom: 1px solid rgba(222, 184, 126, .13);
    background: #071b13;
}

.v2-trust-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 26px 0;
}

.v2-trust-item {
    display: flex;
    align-items: center;
    gap: 19px;
    min-width: 0;
    padding: 0 28px;
}

.v2-trust-item:first-child {
    padding-left: 9px;
}

.v2-trust-item + .v2-trust-item {
    border-left: 1px solid rgba(224, 191, 137, .14);
}

.v2-trust-icon {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    flex: 0 0 62px;
    border: 1px solid rgba(235, 192, 122, .49);
    border-radius: 50%;
    color: var(--gold-light);
    font-size: 29px;
}

.v2-trust-item h3 {
    margin: 0 0 4px;
    font-size: 13px;
    font-weight: 800;
}

.v2-trust-item p {
    margin: 0;
    color: #aebcb0;
    font-size: 12px;
}

/* =========================================================
   FOOTER
   ========================================================= */

.v2-footer {
    background: linear-gradient(180deg, #061b12, #04150e);
}

.v2-footer-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    min-height: 102px;
    padding: 22px 0;
    border-bottom: 1px solid rgba(220, 184, 123, .13);
}

.v2-footer-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.v2-footer-brand img {
    width: 54px;
    height: 54px;
    object-fit: cover;
    border-radius: 50%;
    border: none;
}

.v2-footer-brand div {
    display: flex;
    flex-direction: column;
}

.v2-footer-brand strong {
    color: var(--gold);
    font-family: var(--serif);
    font-size: 20px;
}

.v2-footer-brand span {
    color: #9ca99d;
    font-size: 12px;
}

.v2-footer-links {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: clamp(13px, 2vw, 30px);
}

.v2-footer-links a {
    color: #e6cda8;
    font-size: 12px;
    transition: color .2s;
}

.v2-footer-links a:hover {
    color: #fff;
}

.v2-footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 17px 0 22px;
    color: #7e9083;
    font-size: 12px;
}

/* =========================================================
   VISITOR CONSENT
   Required by existing app2.js
   ========================================================= */

.hidden,
.visitor-gate.hidden {
    display: none !important;
}

.visitor-gate {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 8, 5, .88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.visitor-gate-card {
    width: min(100%, 480px);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 36px;
    border: 1px solid rgba(224, 179, 112, .35);
    border-radius: 22px;
    background: linear-gradient(150deg, #11291d, #071810);
    box-shadow: 0 30px 100px rgba(0, 0, 0, .6);
    text-align: center;
}

.visitor-gate-card > img {
    display: block;
    width: 70px;
    height: 70px;
    object-fit: cover;
    margin: 0 auto 17px;
    border-radius: 50%;
}

.visitor-gate-card h2 {
    font-family: var(--serif);
    font-size: 27px;
    line-height: 1.2;
    margin-bottom: 12px;
}

.visitor-gate-card p {
    color: #c4cec3;
    font-size: 14px;
    line-height: 1.6;
}

.gate-legal {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
    color: var(--gold);
    font-size: 12px;
}

.gate-legal a:hover {
    text-decoration: underline;
}

.gate-check {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
    color: #e7e9e0;
    font-size: 14px;
    cursor: pointer;
}

.gate-check input {
    width: 18px;
    height: 18px;
    accent-color: var(--coral);
}

#gateContinue {
    width: 100%;
    min-height: 49px;
    padding: 12px 20px;
    border: 0;
    border-radius: 30px;
    background: var(--coral);
    color: white;
    font-weight: 800;
    cursor: pointer;
}

#gateContinue:hover:not(:disabled) {
    background: var(--coral-hover);
}

#gateContinue:disabled {
    opacity: .45;
    cursor: not-allowed;
}

/* =========================================================
   RESPONSIVE: SMALL DESKTOP / TABLET
   ========================================================= */

@media (max-width: 1100px) {

    .v2-container {
        width: calc(100% - 64px);
    }

    .v2-header-inner {
        padding-inline: 17px;
    }

    .v2-brand {
        gap: 10px;
    }

    .v2-brand span {
        font-size: 23px;
    }

    .v2-navigation {
        gap: 15px;
    }

    .v2-hero-feature {
        gap: 14px;
        padding-inline: 16px;
    }

    .v2-feature-icon {
        width: 64px;
        height: 64px;
        flex-basis: 64px;
    }

    .v2-steps {
        gap: 16px;
    }

    .v2-step-card {
        padding: 21px 17px;
    }

    .v2-token-benefit {
        gap: 10px;
        padding-inline: 10px;
        font-size: 12px;
    }

    .v2-benefit-icon {
        width: 43px;
        height: 43px;
        flex-basis: 43px;
    }

    .v2-trust-item {
        padding-inline: 18px;
    }
}

/* =========================================================
   RESPONSIVE: TABLET
   ========================================================= */

@media (max-width: 850px) {

    .v2-header {
        top: 12px;
    }

    .v2-header-inner {
        flex-wrap: wrap;
        justify-content: center;
        gap: 9px 20px;
        padding: 12px;
        border-radius: 18px;
    }

    .v2-navigation {
        justify-content: center;
        flex-wrap: wrap;
    }

    .v2-hero {
        padding-top: 180px;
    }

    .v2-hero-content {
        padding-left: 0;
    }

    .v2-hero-features {
        margin-top: 75px;
    }

    .v2-hero-feature {
        flex-direction: column;
        align-items: flex-start;
    }

    .v2-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .v2-step-card {
        min-height: 330px;
    }

    .v2-step-card:nth-child(2)::after {
        display: none;
    }

    .v2-token-card {
        padding: 30px;
    }

    .v2-token-content {
        width: 49%;
    }

    .v2-token-illustration {
        left: 61%;
        width: 175px;
    }

    .v2-token-benefits {
        width: 25%;
    }

    .v2-trust-grid {
        gap: 15px;
    }

    .v2-trust-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .v2-footer-main {
        flex-direction: column;
        align-items: flex-start;
    }

    .v2-footer-links {
        justify-content: flex-start;
    }
}

/* =========================================================
   RESPONSIVE: MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .v2-container {
        width: calc(100% - 36px);
    }

    .v2-header {
        position: relative;
        top: auto;
        padding: 10px 0;
        background: #061710;
    }

    .v2-header-inner {
        width: calc(100% - 20px);
        border-radius: 16px;
        gap: 12px;
    }

    .v2-brand img {
        width: 39px;
        height: 39px;
    }

    .v2-brand span {
        font-size: 24px;
    }

    .v2-navigation {
        width: 100%;
        gap: 10px 15px;
    }

    .v2-navigation > a:not(.v2-header-play) {
        font-size: 12px;
    }

    .v2-header-play {
        min-height: 39px;
        padding: 8px 15px;
        gap: 10px;
    }

    .language-select {
        max-width: 65px;
    }

    .v2-hero {
        padding-top: 70px;
    }

    .v2-hero-content {
        padding-inline: 5px;
    }

    .v2-eyebrow {
        font-size: 10px;
        letter-spacing: 2.2px;
    }

    .v2-hero h1 {
        font-size: clamp(42px, 10.5vw, 62px);
        letter-spacing: -1.8px;
    }

    .v2-hero-description {
        font-size: 14px;
    }

    .v2-hero-actions {
        gap: 20px;
    }

    .v2-button {
        min-height: 50px;
        padding-left: 20px;
        gap: 15px;
    }

    .v2-hero-features {
        grid-template-columns: 1fr;
        margin-top: 65px;
        padding: 15px 0;
    }

    .v2-hero-feature,
    .v2-hero-feature:first-child {
        flex-direction: row;
        align-items: center;
        padding: 18px 10px;
    }

    .v2-hero-feature + .v2-hero-feature {
        border-left: 0;
        border-top: 1px solid var(--border);
    }

    .v2-feature-icon {
        width: 62px;
        height: 62px;
        flex-basis: 62px;
    }

    .v2-hero-feature h3 {
        font-size: 19px;
    }

    .v2-how {
        padding-top: 52px;
    }

    .v2-section-heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
        padding: 0 4px;
    }

    .v2-section-heading h2 {
        font-size: clamp(31px, 8vw, 43px);
        letter-spacing: -1px;
    }

    .v2-section-heading h2 br {
        display: none;
    }

    .v2-section-subtitle {
        max-width: 100%;
    }

    .v2-steps {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .v2-step-card {
        min-height: 315px;
        padding: 23px;
    }

    .v2-step-card::after,
    .v2-step-card:not(:last-child)::after {
        display: none;
    }

    .v2-step-visual {
        margin-top: 5px;
        height: 155px;
        flex-basis: 155px;
    }

    .v2-step-card h3 {
        font-size: 23px;
    }

    .v2-step-card p {
        font-size: 14px;
    }

    .v2-token-section {
        padding-top: 15px;
    }

    .v2-token-card {
        display: block;
        min-height: unset;
        padding: 28px 23px;
    }

    .v2-token-content {
        width: 100%;
        max-width: none;
    }

    .v2-token-content h2 {
        font-size: 31px;
    }

    .v2-token-content h2 br {
        display: none;
    }

    .v2-token-content p {
        font-size: 14px;
    }

    .v2-token-illustration {
        position: relative;
        left: auto;
        top: auto;
        width: 180px;
        margin: 24px auto;
        transform: none;
    }

    .v2-token-benefits {
        width: 100%;
        margin: 25px 0 0;
    }

    .v2-token-benefit {
        min-height: 65px;
    }

    .v2-trust-grid {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 15px 0;
    }

    .v2-trust-item,
    .v2-trust-item:first-child {
        flex-direction: row;
        align-items: center;
        padding: 18px 6px;
    }

    .v2-trust-item + .v2-trust-item {
        border-left: 0;
        border-top: 1px solid var(--border);
    }

    .v2-trust-icon {
        width: 52px;
        height: 52px;
        flex-basis: 52px;
    }

    .v2-footer-main {
        gap: 22px;
    }

    .v2-footer-links {
        gap: 13px 20px;
    }

    .v2-footer-bottom {
        font-size: 11px;
    }

    .visitor-gate-card {
        padding: 26px 19px;
    }
}

/* =========================================================
   VERY SMALL SCREENS
   ========================================================= */

@media (max-width: 370px) {

    .v2-brand span {
        font-size: 21px;
    }

    .v2-navigation {
        gap: 8px 10px;
    }

    .v2-hero h1 {
        font-size: 39px;
    }

    .v2-hero-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .v2-step-card {
        padding-inline: 18px;
    }
}

/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}

/* RTL LANGUAGE SUPPORT */

[dir="rtl"] .v2-hero-content,
[dir="rtl"] .v2-section-heading,
[dir="rtl"] .v2-step-card,
[dir="rtl"] .v2-token-content {
    text-align: right;
}

[dir="rtl"] .v2-step-number {
    left: auto;
    right: 17px;
}

[dir="rtl"] .v2-token-benefits {
    margin-left: 0;
    margin-right: auto;
}

[dir="rtl"] .v2-step-card:not(:last-child)::after {
    right: auto;
    left: -17px;
    transform: rotate(180deg);
}


/* ===== CBG REAL BANNER V2 ===== */

.v2-token-background {
    background:
        linear-gradient(
            90deg,
            rgba(2, 15, 11, .88) 0%,
            rgba(2, 15, 11, .66) 31%,
            rgba(2, 15, 11, .08) 49%,
            rgba(2, 15, 11, .08) 69%,
            rgba(2, 15, 11, .48) 100%
        ),
        url("/assets/img/cbg-banner.png") center center / cover no-repeat;
}

/* Coins are already part of the background image */

.v2-token-illustration {
    display: none;
}

/* Mobile */

@media (max-width: 600px) {
    .v2-token-background {
        background:
            linear-gradient(
                180deg,
                rgba(2, 15, 11, .84),
                rgba(2, 15, 11, .53) 50%,
                rgba(2, 15, 11, .87)
            ),
            url("/assets/img/cbg-banner.png") 60% center / cover no-repeat;
    }
}


/* ===== V2 OPTIMIZED STEP IMAGES ===== */

.v2-step-visual .v2-step-image-slot {
    width: 100%;
    height: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.v2-step-visual .v2-step-image-slot::before,
.v2-step-visual .v2-step-image-slot::after {
    display: none;
}

.v2-step-visual-coins .v2-step-image-slot {
    background-image: url("/assets/img/step1-money.webp");
}

.v2-step-visual-checkers .v2-step-image-slot {
    background-image: url("/assets/img/step2.webp");
}

.v2-step-visual-dice .v2-step-image-slot {
    background-image: url("/assets/img/step3-win.webp");
}

.v2-step-visual-withdraw .v2-step-image-slot {
    background-image: url("/assets/img/step4-withdraw.webp");
}


/* ===== V2 FEATURE IMAGES ===== */

.v2-feature-icon {
    position: relative;
    overflow: hidden;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 78%;
}

.v2-feature-icon span {
    display: none;
}

.v2-icon-wallet {
    background-image: url("/assets/img/feature-wallet.webp");
}

.v2-icon-dice {
    background-image: url("/assets/img/feature-game.webp");
}

.v2-icon-trophy {
    background-image: url("/assets/img/feature-win.webp");
}


/* ===== V2 FEATURE ICON FIX ===== */

.v2-feature-icon {
    background-color: transparent;
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    border: none;
    box-shadow: none;
}

.v2-feature-icon span {
    display: none !important;
}

.v2-icon-wallet {
    background-image: url("/assets/img/feature-wallet.webp");
}

.v2-icon-dice {
    background-image: url("/assets/img/feature-game.webp");
}

.v2-icon-trophy {
    background-image: url("/assets/img/feature-win.webp");
}


/* ===== V2 HERO BACKGROUND IMAGE ===== */

.v2-hero-background {
    background-image: url("/assets/img/cbg_bg.png");
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}


/* ===== V2 HERO TEMPLATE ALIGNMENT ===== */

/* Transparent navigation */

.v2-header-inner {
    background: rgba(5, 21, 15, 0.62);
    border-color: rgba(222, 183, 120, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Wider title area */

@media (min-width: 851px) {

    .v2-hero-content {
        max-width: 900px;
    }

    .v2-hero h1 {
        font-size: clamp(48px, 4.7vw, 76px);
        letter-spacing: -2px;
        line-height: 1.04;
    }

    .v2-hero h1 span {
        white-space: nowrap;
    }

    .v2-hero-description {
        max-width: 690px;
        text-align: justify;
        text-align-last: left;
    }

    .v2-hero-notice {
        max-width: 690px;
        margin-top: 14px;
        padding: 11px 14px;
        border-left: 3px solid var(--gold);
        background: rgba(190, 139, 72, .10);
        color: #f0d4a4;
        font-size: clamp(13px, 1.15vw, 15px);
        line-height: 1.55;
    }
}

/* Dark overlay behind hero text */

.v2-hero-overlay {
    background:
        linear-gradient(
            90deg,
            rgba(0, 8, 5, 0.83) 0%,
            rgba(0, 9, 6, 0.70) 24%,
            rgba(0, 10, 7, 0.35) 47%,
            transparent 74%
        ),
        linear-gradient(
            0deg,
            #061710 0%,
            transparent 30%
        );
}

/* Keep mobile title responsive */

@media (max-width: 850px) {

    .v2-hero h1 span {
        white-space: normal;
    }

}


/* ===== V2 HERO FINAL GRADIENT ===== */

/* Glass-like transparent navigation */

.v2-header-inner {
    background: rgba(3, 15, 11, 0.16);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* Near-black text area with smooth fade toward the board */

.v2-hero-overlay {
    background:
        linear-gradient(
            90deg,
            rgba(0, 5, 3, 0.97) 0%,
            rgba(0, 5, 3, 0.96) 10%,
            rgba(0, 5, 3, 0.90) 20%,
            rgba(0, 5, 3, 0.72) 29%,
            rgba(0, 5, 3, 0.40) 39%,
            rgba(0, 5, 3, 0.10) 52%,
            transparent 66%
        ),
        linear-gradient(
            0deg,
            #061710 0%,
            rgba(6, 23, 16, 0.20) 12%,
            transparent 34%
        );
}



/* ===== V2 HERO OVERLAY AND FEATURES CORRECTION ===== */

/* Dark background behind the heading, extending farther right */

.v2-hero-overlay {
    background:
        linear-gradient(
            90deg,
            rgba(0, 7, 5, 0.98) 0%,
            rgba(0, 7, 5, 0.97) 12%,
            rgba(0, 7, 5, 0.94) 24%,
            rgba(0, 7, 5, 0.84) 35%,
            rgba(0, 7, 5, 0.60) 46%,
            rgba(0, 7, 5, 0.27) 59%,
            rgba(0, 7, 5, 0.00) 78%
        ),
        linear-gradient(
            0deg,
            rgba(4, 18, 12, 0.85) 0%,
            rgba(4, 18, 12, 0.15) 19%,
            transparent 38%
        );
}

/* Separate semi-transparent panel behind all three features */

.v2-hero-features {
    background: rgba(3, 22, 15, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-top: 1px solid rgba(218, 183, 132, 0.24);
}



/* ===== V2 SECTION TRANSITION AND CARD PROPORTIONS ===== */

/* Smooth transition from the backgammon photo */

.v2-hero {
    background-color: #071b13;
}

.v2-hero-overlay {
    background:
        linear-gradient(
            90deg,
            rgba(0, 7, 5, 0.98) 0%,
            rgba(0, 7, 5, 0.96) 26%,
            rgba(0, 7, 5, 0.84) 48%,
            rgba(0, 7, 5, 0.46) 66%,
            rgba(0, 7, 5, 0.12) 82%,
            transparent 96%
        ),
        linear-gradient(
            0deg,
            #071b13 0%,
            rgba(7, 27, 19, 0.88) 5%,
            rgba(7, 27, 19, 0.48) 13%,
            transparent 31%
        );
}

/* Smooth overlap between hero and how section */

.v2-how {
    margin-top: 0;
    padding-top: 76px;
    position: relative;
    z-index: auto;
    border-top: none;
    background: linear-gradient(
        180deg,
        #071b13 0%,
        #0c2218 55%,
        #061710 100%
    );
}

/* Taller cards, like the reference template */

@media (min-width: 851px) {

    .v2-step-card {
        min-height: 405px;
        padding: 24px 24px 28px;
    }

    .v2-step-visual {
        height: 205px;
        flex-basis: 205px;
        margin: 15px 0 22px;
    }

    .v2-step-card h3 {
        margin-top: auto;
    }
}

/* Preserve comfortable proportions on smaller screens */

@media (min-width: 601px) and (max-width: 850px) {

    .v2-step-card {
        min-height: 380px;
    }

    .v2-step-visual {
        height: 190px;
        flex-basis: 190px;
    }
}


/* ===== V2 HERO BOTTOM FADE ===== */

.v2-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 420px;
    z-index: 0;
    pointer-events: none;

    background: linear-gradient(
        to bottom,
        rgba(7, 27, 19, 0) 0%,
        rgba(7, 27, 19, 0.12) 20%,
        rgba(7, 27, 19, 0.35) 43%,
        rgba(7, 27, 19, 0.72) 70%,
        #071b13 100%
    );
}



/* ===== V2 FINAL SIX ICONS ===== */

.v2-benefit-icon,
.v2-trust-icon {
    overflow: visible;
    background: transparent;
    border: none;
    color: inherit;
}

.v2-benefit-icon img,
.v2-trust-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}


/* ===== SHARED AUTH AND LEGAL COMPATIBILITY ===== */

/* Variables required by auth.css and legal pages */

:root {
    --text: #f7f3eb;
    --line: rgba(227, 174, 112, .17);
    --accent: #cb644a;
    --accent2: #e3ae70;
}

/* Shared page layout — excludes the new homepage */

body:not(.cg-v2) {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(
            ellipse at 75% 15%,
            rgba(43, 79, 53, .18),
            transparent 60%
        ),
        #061710;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.55;
}

body:not(.cg-v2) a {
    color: inherit;
}

/* Authentication and legal header */

body:not(.cg-v2) .site-header {
    width: min(calc(100% - 64px), 1320px);
    min-height: 92px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    border-bottom: 1px solid var(--line);
}

body:not(.cg-v2) .brand {
    display: flex;
    align-items: center;
    gap: 13px;
    color: var(--gold-light);
    text-decoration: none;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: .12em;
}

body:not(.cg-v2) .brand img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

body:not(.cg-v2) .site-header nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

body:not(.cg-v2) .site-header nav a {
    color: #d6d9d0;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

body:not(.cg-v2) .site-header nav a:hover {
    color: var(--gold-light);
}

body:not(.cg-v2) .site-header .header-play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 43px;
    padding: 0 20px;
    border-radius: 30px;
    color: white;
    background: var(--coral);
}

body:not(.cg-v2) .site-header .header-play:hover {
    background: var(--coral-hover);
}

/* Auth headings and submit button */

body:not(.cg-v2) .eyebrow {
    margin-bottom: 14px;
    color: var(--gold);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

body:not(.cg-v2) .primary-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 54px;
    padding: 10px 20px;
    border: 0;
    border-radius: 30px;
    color: white;
    background: var(--coral);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

body:not(.cg-v2) .primary-action:hover {
    background: var(--coral-hover);
}

/* Legal documents */

.legal-page {
    width: min(calc(100% - 64px), 960px);
    margin: auto;
    padding: 80px 0 110px;
}

.legal-heading {
    padding-bottom: 44px;
    border-bottom: 1px solid var(--line);
}

.legal-heading > span {
    color: var(--gold);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .18em;
}

.legal-heading h1 {
    margin: 14px 0 0;
    font-family: var(--serif);
    font-size: clamp(46px, 6vw, 78px);
    line-height: 1.05;
}

.legal-heading p {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.legal-content {
    max-width: 780px;
    padding-top: 20px;
}

.legal-content section {
    padding: 34px 0;
    border-bottom: 1px solid var(--line);
}

.legal-content section:last-child {
    border-bottom: 0;
}

.legal-content h2 {
    margin: 0 0 17px;
    font-family: var(--serif);
    font-size: 24px;
}

.legal-content h3 {
    margin: 25px 0 8px;
    font-size: 15px;
}

.legal-content p,
.legal-content li {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.75;
}

.legal-content p {
    margin: 0 0 15px;
}

.legal-content ul {
    margin: 0;
    padding-left: 21px;
}

.legal-content a {
    color: var(--gold);
}

/* Legacy footer, if present */

body:not(.cg-v2) .site-footer {
    width: min(calc(100% - 64px), 1320px);
    margin: auto;
    padding: 35px 0;
    border-top: 1px solid var(--line);
}

body:not(.cg-v2) .footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: var(--muted);
    font-size: 12px;
}

/* Responsive */

@media (max-width: 760px) {
    body:not(.cg-v2) .site-header {
        width: calc(100% - 28px);
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
        padding: 15px 0;
    }

    body:not(.cg-v2) .site-header nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .legal-page {
        width: calc(100% - 28px);
        padding: 52px 0 72px;
    }

    .legal-heading h1 {
        font-size: 44px;
    }

    .legal-content section {
        padding: 27px 0;
    }
}



.cg-deposit-wallet-note {
    display: block;
    margin-top: 8px;
    font-size: 9px;
    line-height: 1.5;
    opacity: .65;
}
