*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: hidden; scroll-behavior: smooth; }
body { overflow-x: hidden; max-width: 100vw; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, a, span, li { word-break: break-word; overflow-wrap: break-word; max-width: 100%; }

:root {
    --hh: 80px;
    --p1: #F5EFE6; /* Lightest background, paper */
    --p2: #E3DCCF; /* Secondary light background, soft contrast */
    --p3: #BFA896; /* Mid-tone, warm accent */
    --p4: #7D5A47; /* Darker accent, earthy */
    --p5: #4A3026; /* Darkest text/elements */
    --accent: #E8B446; /* Golden accent for interactive elements/highlights */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Open Sans', sans-serif;
    --max-w: 1200px;
    --br: 8px;
}

body {
    font-family: var(--font-body);
    color: var(--p5);
    background-color: var(--p1);
    line-height: 1.6;
    padding-top: var(--hh);
}

/* Containers */
.t1m {
    max-width: var(--max-w);
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

/* Headings */
.j1n {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: var(--p5);
    margin-bottom: 20px;
    line-height: 1.1;
}
.c3b {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    color: var(--p5);
    margin-bottom: 20px;
    line-height: 1.2;
}
.d8j {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    color: var(--p4);
    margin-bottom: 15px;
    line-height: 1.3;
}
.w5c, .u6e {
    font-size: clamp(1rem, 2vw, 1.15rem);
    margin-bottom: 15px;
}

/* Images */
.w7q {
    position: relative;
    overflow: hidden;
    border-radius: var(--br);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}
.p5q {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.w7q:hover .p5q {
    transform: scale(1.05);
}

/* Buttons */
.v3r, .i2g {
    display: inline-block;
    padding: 14px 28px;
    border-radius: var(--br);
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}
.v3r {
    background-color: var(--accent);
    color: var(--p5);
    border: 2px solid var(--accent);
    box-shadow: 0 4px 15px rgba(232, 180, 70, 0.4);
}
.v3r:hover {
    background-color: var(--p5);
    color: var(--accent);
    border-color: var(--p5);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}
.i2g {
    background-color: transparent;
    color: var(--p4);
    border: 2px solid var(--p4);
}
.i2g:hover {
    background-color: var(--p4);
    color: var(--p1);
    box-shadow: 0 4px 15px rgba(125, 90, 71, 0.3);
}

/* Header */
.adk {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--p2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    height: var(--hh);
    display: flex;
    align-items: center;
}
.r2s {
    max-width: var(--max-w);
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.k3f {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--p5);
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
}
.j7m {
    margin-right: 10px;
    fill: var(--accent);
}
.g4l {
    color: var(--p5);
}
.e9x {
    display: flex;
    gap: 30px;
}
.y1p {
    text-decoration: none;
    color: var(--p4);
    font-weight: 600;
    position: relative;
}
.y1p::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s ease;
}
.y1p:hover::after {
    width: 100%;
}
.h8t {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    padding: 0;
    width: 30px;
    height: 24px;
    justify-content: center;
}
.q9s {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--p5);
    border-radius: 2px;
    transition: all 0.3s ease;
}
.z6v {
    display: none; /* Hidden on desktop by default */
}

/* Sections */
.s1a {
    padding: 100px 0;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.s1a.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero */
.x7f {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-image: url('img/pic-8.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    color: var(--p1);
    text-align: center;
}
.x7f::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(74, 48, 38, 0.7), rgba(74, 48, 38, 0.9));
    z-index: 1;
}
.d9z {
    position: relative;
    z-index: 2;
    max-width: var(--max-w);
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}
.m4r {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 40px;
    border-radius: var(--br);
    max-width: 800px;
    margin: 0 auto;
    color: var(--p1);
}
.m4r .j1n, .m4r .w5c {
    color: var(--p1);
}
.k0p {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}
.k0p .v3r {
    color: var(--p5);
    background-color: var(--accent);
    border-color: var(--accent);
}
.k0p .v3r:hover {
    color: var(--accent);
    background-color: var(--p5);
}
.k0p .i2g {
    color: var(--p1);
    border-color: var(--p1);
}
.k0p .i2g:hover {
    color: var(--p5);
    background-color: var(--p1);
}

/* Split Section (Option B) */
.v8b {
    background-color: var(--p1);
    display: flex;
    align-items: center;
}
.n2y {
    display: grid;
    grid-template-columns: 55fr 45fr;
    gap: 60px;
    max-width: var(--max-w);
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    align-items: center;
}
.o7a {
    padding-right: 20px;
}
.o7a .c3b {
    margin-bottom: 25px;
}
.o7a .u6e {
    margin-bottom: 30px;
}
.f0p {
    position: relative;
    overflow: hidden;
    min-height: 600px;
    border-radius: var(--br);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}
.f0p .p5q {
    position: absolute;
    inset: 0;
    object-fit: cover;
}

/* How it works grid */
.j4l {
    background-color: var(--p2);
    text-align: center;
}
.j4l .u6e {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
}
.e6r {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.h0w {
    background-color: var(--p1);
    padding: 30px;
    border-radius: var(--br);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.h0w .w7q {
    margin-bottom: 20px;
    width: 100%;
    max-width: 400px; /* Constrain image width in card */
    height: 250px;
}
.h0w .d8j {
    color: var(--accent);
    margin-bottom: 10px;
}

/* Stats Section */
.g5j {
    background-color: var(--p4);
    color: var(--p1);
    text-align: center;
}
.g5j .c3b, .g5j .u6e {
    color: var(--p1);
}
.z9c {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-top: 50px;
}
.o1b {
    padding: 20px;
    border-radius: var(--br);
    background-color: rgba(255, 255, 255, 0.1);
}
.p2n {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 10px;
}
.o1b .u6e {
    margin-bottom: 0;
    font-weight: 300;
    color: var(--p1);
    opacity: 0.8;
}

/* Testimonials */
.b2m {
    background-color: var(--p1);
    text-align: center;
}
.n8k {
    background-color: var(--p2);
    padding: 30px;
    border-radius: var(--br);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: left;
    position: relative;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.n8k::before {
    content: '"';
    font-family: var(--font-heading);
    font-size: 5rem;
    color: var(--p3);
    position: absolute;
    top: 10px;
    left: 20px;
    line-height: 1;
    opacity: 0.3;
    z-index: 0;
}
.n8k .u6e {
    position: relative;
    z-index: 1;
    font-style: italic;
    color: var(--p5);
    margin-bottom: 20px;
}
.g7h {
    display: block;
    font-weight: 600;
    color: var(--p4);
    text-align: right;
    font-size: 0.95rem;
}

/* FAQ */
.i0c {
    background-color: var(--p2);
    text-align: center;
}
.i0c .c3b {
    margin-bottom: 40px;
}
.l3e {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}
.x4k {
    margin-bottom: 15px;
    border: 1px solid var(--p3);
    border-radius: var(--br);
    overflow: hidden;
    background-color: var(--p1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.x4k.is-open {
    border-color: var(--accent);
}
.p6v {
    width: 100%;
    display: block;
    text-align: left;
    padding: 20px 25px;
    background-color: var(--p1);
    border: none;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--p5);
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    position: relative;
}
.p6v:hover {
    background-color: var(--p2);
    color: var(--p4);
}
.p6v::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    line-height: 1;
    transition: transform 0.3s ease;
}
.x4k.is-open .p6v::after {
    transform: translateY(-50%) rotate(45deg);
}
.a8o {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    padding: 0 25px;
}
.x4k.is-open .a8o {
    padding: 15px 25px 25px;
}
.a8o p {
    color: var(--p5);
}

/* Blog Cards */
.z5x {
    background-color: var(--p1);
    text-align: center;
}
.f7j {
    background-color: var(--p2);
    padding: 20px;
    border-radius: var(--br);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: left;
    display: flex;
    flex-direction: column;
}
.f7j .w7q {
    margin-bottom: 20px;
}
.f7j .d8j {
    margin-bottom: 10px;
    color: var(--p4);
}
.f7j .u6e {
    font-size: 0.95rem;
    margin-bottom: 0;
    color: var(--p5);
    flex-grow: 1;
}

/* CTA Banner */
.w1x {
    background-image: url('img/pic-9.jpg');
    background-size: cover;
    background-position: center;
    text-align: center;
    position: relative;
    color: var(--p1);
    padding: 80px 0;
}
.w1x::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(74, 48, 38, 0.75);
    z-index: 1;
}
.a6p {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}
.a6p .c3b, .a6p .u6e {
    color: var(--p1);
}
.a6p .v3r {
    margin-top: 30px;
    min-width: 200px;
    color: var(--p5);
    background-color: var(--accent);
    border-color: var(--accent);
}
.a6p .v3r:hover {
    color: var(--accent);
    background-color: var(--p1);
    border-color: var(--p1);
}

/* Game Section */
.p0v {
    background-color: var(--p2);
    text-align: center;
}
.o9p {
    background-color: var(--p1);
    border-radius: var(--br);
    padding: 40px;
    max-width: 600px;
    margin: 40px auto 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 2px solid var(--p3);
}
.j5a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 15px;
    background-color: var(--p4);
    color: var(--p1);
    border-radius: var(--br);
}
.a1c {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
}
.y7r {
    color: var(--accent);
}
.refill-button {
    background-color: var(--accent);
    color: var(--p5);
    border: none;
    padding: 8px 15px;
    border-radius: var(--br);
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}
.refill-button:hover {
    background-color: #f0c266;
}
.c7x {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}
.w6z {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--p5);
}
.m1q {
    width: 120px;
    padding: 10px 15px;
    border: 2px solid var(--p3);
    border-radius: var(--br);
    font-size: 1.1rem;
    text-align: center;
    background-color: var(--p1);
    color: var(--p5);
    -moz-appearance: textfield;
}
.m1q::-webkit-outer-spin-button, .m1q::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.m1q:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(232, 180, 70, 0.3);
}
.v3r:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
}
.r0l {
    margin-bottom: 25px;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--p5);
    min-height: 25px;
}
.d5u {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}
.p9x {
    width: 100px;
    height: 120px;
    background-color: var(--p4);
    border: 4px solid var(--p5);
    border-radius: var(--br);
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5), 0 5px 15px rgba(0,0,0,0.3);
}
.r1f {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    font-family: var(--font-heading);
    color: var(--accent);
    text-shadow: 0 0 10px rgba(232, 180, 70, 0.7);
    font-weight: bold;
    background-color: var(--p4);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.p9x::before, .p9x::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 30px;
    z-index: 1;
}
.p9x::before {
    top: 0;
    background: linear-gradient(to bottom, var(--p4) 0%, rgba(74, 48, 38, 0) 100%);
}
.p9x::after {
    bottom: 0;
    background: linear-gradient(to top, var(--p4) 0%, rgba(74, 48, 38, 0) 100%);
}

.r1f.win-flash {
    animation: winGlow 0.8s forwards;
}
.r1f.lose-flash {
    animation: loseShake 0.5s forwards;
}

@keyframes winGlow {
    0% { box-shadow: 0 0 0px var(--accent); }
    50% { box-shadow: 0 0 25px var(--accent); }
    100% { box-shadow: 0 0 0px var(--accent); }
}

@keyframes loseShake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); background-color: #b74d4d; }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(0); background-color: var(--p4); }
}

.o8s {
    margin-top: 40px;
    font-size: 0.85rem;
    color: var(--p4);
    opacity: 0.7;
}

/* Footer */
.y3c {
    background-color: var(--p5);
    color: var(--p1);
    padding-top: 60px;
    font-size: 0.9rem;
}
.q8p {
    max-width: var(--max-w);
    width: 100%;
    margin: 0 auto;
    padding: 0 20px 40px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.m6x .k3f {
    color: var(--p1);
    margin-bottom: 15px;
}
.m6x .j7m {
    fill: var(--accent);
}
.m6x .g4l {
    color: var(--p1);
}
.m6x .u6e {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
}
.l4n h3 {
    color: var(--accent);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 20px;
}
.j9k {
    display: block;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
    transition: color 0.3s ease;
}
.j9k:hover {
    color: var(--p1);
}
.l4n .u6e {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
}
.s0t {
    padding: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
}
.s0t .u6e {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.5);
}

/* Legal Page Specific Styling */
.b5g {
    background-image: url('img/pic-10.jpg');
    min-height: 40vh;
    padding: 80px 0;
    text-align: center;
}
.b5g::before {
    background: linear-gradient(to bottom, rgba(40, 26, 20, 0.85), rgba(40, 26, 20, 0.95));
}
.b5g .j1n, .b5g .w5c {
    color: var(--p1);
}
.t6r, .f2c, .j8o {
    background-color: var(--p1);
    color: var(--p5);
    padding: 80px 0;
}
.t6r h2, .f2c h2, .j8o h2 {
    color: var(--p5);
    margin-bottom: 40px;
}
.t6r h3, .f2c h3, .j8o h3 {
    color: var(--p4);
    margin-top: 30px;
    margin-bottom: 15px;
}
.t6r p, .f2c p, .j8o p {
    color: var(--p5);
    margin-bottom: 20px;
}
.g1d {
    height: 1px;
    background-color: var(--p3);
    margin: 40px 0;
    opacity: 0.5;
}

/* Mobile Styles */
@media (max-width: 768px) {
    :root {
        --hh: 60px;
    }
    body {
        padding-top: var(--hh);
    }
    .r2s {
        padding: 0 16px;
    }
    .e9x {
        display: none;
    }
    .h8t {
        display: flex;
    }
    .z6v {
        position: fixed;
        top: var(--hh);
        left: 0;
        width: 100%;
        flex-direction: column;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out;
        z-index: 999;
        background-color: var(--p2);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        align-items: center;
        padding: 0;
    }
    .z6v.is-open {
        max-height: 100vh;
        padding: 20px 0;
    }
    .z6v .y1p {
        padding: 15px 20px;
        width: 100%;
        text-align: center;
        color: var(--p5);
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
    .z6v .y1p:last-child {
        border-bottom: none;
    }
    .z6v .y1p::after {
        display: none;
    }
    .h8t.is-open .q9s:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .h8t.is-open .q9s:nth-child(2) {
        opacity: 0;
    }
    .h8t.is-open .q9s:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .s1a {
        padding: 60px 0;
    }
    .t1m, .n2y {
        padding: 0 20px;
    }

    .x7f {
        min-height: 60vh;
    }
    .m4r {
        padding: 30px 20px;
    }
    .k0p {
        flex-direction: column;
        gap: 15px;
    }

    .n2y {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .o7a {
        padding-right: 0;
    }
    .f0p {
        min-height: 320px;
        max-height: 400px;
    }

    .e6r, .z9c, .q8p {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .j5a {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    .c7x {
        flex-direction: column;
    }

    .d5u {
        flex-wrap: wrap;
        gap: 15px;
    }
    .p9x {
        width: 80px;
        height: 100px;
    }
    .r1f {
        font-size: 2.5rem;
    }

    .b5g {
        padding: 60px 0;
    }

    h1, h2, h3 {
        hyphens: auto;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }
    .s1a {
        padding: 40px 0;
    }
    .t1m, .n2y {
        padding: 0 16px;
    }
    .v3r, .i2g {
        width: 100%;
        display: block;
        padding: 12px 20px;
        font-size: 0.95rem;
    }
    .m4r {
        padding: 25px 15px;
    }
    .d5u {
        gap: 10px;
    }
    .p9x {
        width: 70px;
        height: 90px;
    }
    .r1f {
        font-size: 2rem;
    }
    .q8p {
        padding-bottom: 20px;
    }
    .s0t {
        padding: 15px;
    }
    .l4n h3 {
        margin-top: 30px;
    }
}