* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: #f4f7ff;
    background:
        radial-gradient(circle at 16% 0%, rgba(0, 245, 220, 0.16), transparent 30%),
        radial-gradient(circle at 92% 9%, rgba(160, 78, 255, 0.22), transparent 34%),
        linear-gradient(180deg, #050914 0%, #06101e 52%, #030710 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

.eggy-pool-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    min-height: 72px;
    padding: 14px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    border-bottom: 1px solid rgba(0, 245, 220, 0.16);
    background: rgba(5, 9, 20, 0.88);
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 30px rgba(0,0,0,.34);
}

.eggy-pool-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: #16ffe3;
    font-size: 25px;
    font-weight: 1000;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-shadow: 0 0 18px rgba(0, 245, 220, .34);
}

.eggy-pool-brand strong {
    color: #5ee9ff;
}

.brand-glow-ball {
    width: 48px;
    height: 48px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    background:
        radial-gradient(circle at 38% 34%, #fff 0 8%, #151928 9% 42%, #05070d 43% 100%);
    border: 3px solid rgba(150, 80, 255, .85);
    box-shadow:
        0 0 18px rgba(0,245,220,.30),
        0 0 24px rgba(151,83,255,.45);
}

.eggy-pool-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.eggy-pool-nav a {
    padding: 12px 18px;
    border-radius: 13px;
    background: linear-gradient(180deg, rgba(29, 36, 54, .96), rgba(14, 19, 31, .96));
    border: 1px solid rgba(255,255,255,.10);
    color: #fff;
    font-size: 14px;
    font-weight: 850;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 6px 18px rgba(0,0,0,.24);
    transition: .18s ease;
}

.eggy-pool-nav a:hover,
.eggy-pool-nav a.active {
    border-color: rgba(0, 245, 220, .38);
    box-shadow: 0 0 18px rgba(0,245,220,.16), inset 0 1px 0 rgba(255,255,255,.08);
    transform: translateY(-1px);
}

.eggy-pool-nav .nav-register {
    background: linear-gradient(135deg, #15f4e8, #8e2eff);
}

.eggy-pool-page {
    width: min(1180px, calc(100% - 28px));
    margin: 0 auto;
    padding: 34px 0 44px;
}

.eggy-pool-hero {
    min-height: 520px;
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 480px;
    align-items: center;
    gap: 20px;
    padding: 58px;
    border-radius: 30px;
    border: 1px solid rgba(0, 235, 255, .46);
    background:
        radial-gradient(circle at 82% 38%, rgba(143, 63, 255, .30), transparent 28%),
        radial-gradient(circle at 68% 70%, rgba(0, 245, 220, .13), transparent 24%),
        linear-gradient(90deg, rgba(5, 18, 34, .96), rgba(8, 14, 30, .94) 58%, rgba(27, 12, 62, .95));
    box-shadow:
        0 0 0 1px rgba(151, 83, 255, .24),
        0 0 36px rgba(0, 245, 220, .18),
        0 0 48px rgba(151, 83, 255, .18),
        0 22px 48px rgba(0,0,0,.52),
        inset 0 1px 0 rgba(255,255,255,.08);
}

.eggy-pool-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(3,9,18,.08), transparent 50%, rgba(120, 50, 255, .12)),
        radial-gradient(circle at 80% 55%, rgba(0,0,0,.38) 0 82px, transparent 84px),
        radial-gradient(circle at 63% 77%, rgba(215,225,255,.48) 0 33px, transparent 35px);
    pointer-events: none;
}

.hero-copy,
.hero-visual {
    position: relative;
    z-index: 2;
}

.hero-pill {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    margin-bottom: 18px;
    border-radius: 999px;
    color: #15ffe3;
    font-size: 13px;
    font-weight: 950;
    letter-spacing: .06em;
    text-transform: uppercase;
    border: 1px solid rgba(0,245,220,.54);
    background: rgba(0,245,220,.06);
    box-shadow: 0 0 18px rgba(0,245,220,.13);
}

.hero-pill span {
    width: 9px;
    height: 9px;
    border-radius: 99px;
    border: 2px solid #15ffe3;
    box-shadow: 0 0 12px rgba(0,245,220,.62);
}

.eggy-pool-hero h1 {
    max-width: 650px;
    margin: 0 0 18px;
    font-size: clamp(58px, 8vw, 94px);
    line-height: .88;
    font-weight: 1000;
    letter-spacing: -.06em;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 0 36px rgba(0,245,220,.22);
}

.eggy-pool-hero h1 em {
    display: block;
    font-style: normal;
    color: #19efe8;
    background: linear-gradient(135deg, #19efe8, #994cff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.eggy-pool-hero p {
    max-width: 570px;
    margin: 0 0 28px;
    color: rgba(245,249,255,.88);
    font-size: 17px;
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.btn-primary,
.btn-secondary,
.final-cta a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 54px;
    padding: 0 28px;
    border-radius: 13px;
    font-size: 14px;
    font-weight: 1000;
    text-transform: uppercase;
    border: 1px solid rgba(255,255,255,.12);
    transition: .18s ease;
}

.btn-primary,
.final-cta a {
    color: #06101e;
    background: linear-gradient(135deg, #15f4e8, #9437ff);
    box-shadow: 0 0 28px rgba(0,245,220,.25), 0 0 32px rgba(93,49,255,.24);
}

.btn-primary span,
.final-cta a span {
    width: 28px;
    height: 28px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255,255,255,.75);
}

.btn-secondary {
    color: #fff;
    background: linear-gradient(180deg, rgba(25,30,50,.94), rgba(13,17,31,.94));
}

.btn-primary:hover,
.btn-secondary:hover,
.final-cta a:hover {
    transform: translateY(-2px);
}

.fair-play-strip {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border-radius: 9px;
    color: #cde0ff;
    background: rgba(4, 12, 24, .72);
    border: 1px solid rgba(0, 245, 220, .18);
}

.hero-visual {
    height: 360px;
}

.eight-ball {
    position: absolute;
    right: 26px;
    top: 36px;
    width: 210px;
    height: 210px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #111;
    font-size: 72px;
    font-weight: 1000;
    background:
        radial-gradient(circle at 36% 30%, rgba(255,255,255,.9), transparent 13%),
        radial-gradient(circle at 50% 45%, #f4f6ff 0 24%, transparent 25%),
        radial-gradient(circle at 50% 50%, #05070e 0, #141b30 55%, #020309 100%);
    box-shadow:
        inset -28px -30px 42px rgba(0,0,0,.72),
        0 0 42px rgba(56, 120, 255, .46),
        0 0 58px rgba(160, 75, 255, .28);
}

.cue-ball {
    position: absolute;
    left: 86px;
    bottom: 74px;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: radial-gradient(circle at 34% 28%, #fff, #cbd4e9 58%, #6d7892 100%);
    box-shadow: 0 0 35px rgba(0,245,220,.26);
}

.cue-stick {
    position: absolute;
    left: 180px;
    bottom: 50px;
    width: 260px;
    height: 18px;
    border-radius: 999px;
    transform: rotate(-18deg);
    transform-origin: left center;
    background: linear-gradient(90deg, #4d240e, #d19b57, #f6dcc0);
    box-shadow: 0 0 16px rgba(255,255,255,.10);
}

.laser {
    position: absolute;
    left: 150px;
    bottom: 120px;
    width: 400px;
    height: 5px;
    border-radius: 999px;
    transform: rotate(-18deg);
    transform-origin: left center;
    background: #14f4ff;
    box-shadow: 0 0 14px #14f4ff, 0 0 28px rgba(20,244,255,.58);
}

.laser-two {
    bottom: 104px;
    opacity: .6;
}

.guest-flow-card,
.stats-strip,
.feature-grid article,
.preview-section,
.game-mode-grid,
.rewards-banner,
.final-cta,
.eggy-pool-footer {
    border: 1px solid rgba(0, 245, 220, .18);
    background: linear-gradient(180deg, rgba(16, 24, 42, .82), rgba(7, 12, 24, .82));
    box-shadow: 0 14px 34px rgba(0,0,0,.30), inset 0 1px 0 rgba(255,255,255,.05);
}

.guest-flow-card {
    margin-top: 22px;
    padding: 18px;
    border-radius: 22px;
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: center;
    gap: 16px;
}

.guest-step {
    min-height: 112px;
    padding: 18px;
    border-radius: 16px;
    background: rgba(7,12,24,.66);
    border: 1px solid rgba(130, 95, 255, .20);
}

.guest-step span {
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    margin-bottom: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, #15f4e8, #9437ff);
    font-weight: 1000;
}

.guest-step h3,
.feature-grid h3 {
    margin: 0 0 8px;
}

.guest-step p,
.feature-grid p {
    margin: 0;
    color: #cdd9ee;
    line-height: 1.55;
}

.guest-arrow {
    color: #19efe8;
    font-size: 26px;
    text-shadow: 0 0 20px rgba(0,245,220,.52);
}

.stats-strip {
    margin-top: 22px;
    padding: 22px;
    border-radius: 18px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: hidden;
}

.stats-strip div {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 8px 14px;
    align-items: center;
    padding: 0 18px;
    border-right: 1px solid rgba(255,255,255,.08);
}

.stats-strip div:last-child {
    border-right: 0;
}

.stat-icon {
    grid-row: span 2;
    font-size: 32px;
}

.stats-strip strong {
    font-size: 30px;
}

.stats-strip small {
    color: #cbd8ee;
    text-transform: uppercase;
    font-weight: 800;
}

.feature-grid {
    margin-top: 22px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.feature-grid article {
    padding: 24px;
    border-radius: 16px;
}

.feature-icon {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    margin-bottom: 14px;
    border-radius: 50%;
    font-size: 28px;
    background: rgba(0,245,220,.08);
    border: 1px solid rgba(0,245,220,.28);
    box-shadow: 0 0 20px rgba(0,245,220,.12);
}

.preview-section {
    margin-top: 22px;
    padding: 18px;
    border-radius: 18px;
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(280px, .8fr);
    gap: 18px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: #84a8ff;
    font-size: 13px;
    font-weight: 1000;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.section-title span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #15f4e8;
    box-shadow: 0 0 12px rgba(0,245,220,.72);
}

.mini-table {
    position: relative;
    height: 280px;
    border-radius: 20px;
    overflow: hidden;
    background:
        linear-gradient(90deg, #5b321a, #8a5a2d, #5b321a);
    border: 8px solid #3c2112;
    box-shadow: inset 0 0 0 20px #149361, 0 0 28px rgba(0,245,220,.12);
}

.mini-table::before {
    content: "";
    position: absolute;
    inset: 28px;
    border: 2px dashed rgba(255, 220, 110, .5);
}

.pocket {
    position: absolute;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #000;
    border: 3px solid #c49b42;
    z-index: 2;
}

.tl { left: 18px; top: 18px; }
.tr { right: 18px; top: 18px; }
.bl { left: 18px; bottom: 18px; }
.br { right: 18px; bottom: 18px; }

.aim-line {
    position: absolute;
    left: 138px;
    top: 170px;
    width: 340px;
    height: 3px;
    transform-origin: left center;
    background: #18f5ef;
    box-shadow: 0 0 12px #18f5ef;
}

.aim-line.one { transform: rotate(-34deg); }
.aim-line.two { transform: rotate(34deg); opacity: .58; }

.table-cue-ball {
    position: absolute;
    left: 118px;
    top: 160px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
}

.table-cue {
    position: absolute;
    left: 24px;
    top: 186px;
    width: 140px;
    height: 10px;
    transform: rotate(-20deg);
    background: linear-gradient(90deg, #563014, #f0c781);
    border-radius: 999px;
}

.rack {
    position: absolute;
    right: 96px;
    top: 130px;
    width: 92px;
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
}

.rack span {
    width: 15px;
    height: 15px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 7px;
    font-weight: 900;
    background: linear-gradient(135deg, #ffcc4d, #ff3366);
    color: #fff;
}

.live-table-row {
    display: grid;
    grid-template-columns: 1fr 44px 60px;
    gap: 8px;
    align-items: center;
    padding: 13px 0;
    border-bottom: 1px solid rgba(255,255,255,.07);
}

.live-table-row b {
    grid-column: 1;
}

.live-table-row span {
    grid-column: 1;
    color: #aebdda;
    font-size: 13px;
}

.live-table-row em {
    grid-column: 2;
    grid-row: 1 / span 2;
    font-style: normal;
    color: #d7e6ff;
}

.live-table-row a {
    grid-column: 3;
    grid-row: 1 / span 2;
    padding: 8px 12px;
    border-radius: 9px;
    color: #19efe8;
    border: 1px solid rgba(0,245,220,.20);
    text-align: center;
    font-size: 12px;
    font-weight: 1000;
}

.game-mode-grid {
    margin-top: 22px;
    padding: 18px;
    border-radius: 18px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

.mode-card {
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    text-align: center;
    border-radius: 15px;
    background: rgba(7,12,24,.66);
    border: 1px solid rgba(255,255,255,.09);
    transition: .18s ease;
}

.mode-card strong {
    text-transform: uppercase;
    font-size: 19px;
}

.mode-card span {
    color: #b8c7dd;
}

.mode-card:hover,
.mode-card.active {
    border-color: rgba(0,245,220,.58);
    box-shadow: 0 0 24px rgba(0,245,220,.15);
    transform: translateY(-2px);
}

.rewards-banner {
    margin-top: 22px;
    padding: 28px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    background:
        radial-gradient(circle at 92% 44%, rgba(255, 205, 48, .20), transparent 18%),
        linear-gradient(90deg, rgba(18, 24, 44, .94), rgba(46, 17, 82, .94));
}

.rewards-banner h2,
.final-cta h2 {
    margin: 0 0 8px;
    text-transform: uppercase;
}

.rewards-banner p,
.final-cta p {
    margin: 0;
    color: #cdd9ee;
}

.reward-items {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.reward-items span {
    padding: 14px 16px;
    border-radius: 13px;
    background: rgba(5,10,20,.54);
    border: 1px solid rgba(255,255,255,.09);
    font-weight: 850;
}

.final-cta {
    margin-top: 22px;
    padding: 34px;
    border-radius: 18px;
    text-align: center;
    background:
        radial-gradient(circle at 10% 50%, rgba(0,105,255,.28), transparent 22%),
        radial-gradient(circle at 90% 50%, rgba(155,75,255,.30), transparent 22%),
        linear-gradient(180deg, rgba(14,22,40,.94), rgba(7,12,22,.94));
}

.final-cta h2 {
    font-size: 34px;
    letter-spacing: .06em;
    background: linear-gradient(135deg, #19efe8, #994cff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.final-cta a {
    margin-top: 18px;
}

.eggy-pool-footer {
    width: min(1180px, calc(100% - 28px));
    margin: 0 auto 28px;
    padding: 22px;
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    color: #aebdda;
}

.eggy-pool-footer strong {
    color: #16ffe3;
}

@media (max-width: 980px) {
    .eggy-pool-topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .eggy-pool-hero {
        grid-template-columns: 1fr;
        padding: 34px;
    }

    .hero-visual {
        height: 280px;
    }

    .stats-strip,
    .feature-grid,
    .preview-section,
    .game-mode-grid,
    .guest-flow-card {
        grid-template-columns: 1fr;
    }

    .guest-arrow {
        transform: rotate(90deg);
        text-align: center;
    }

    .stats-strip div {
        border-right: 0;
        border-bottom: 1px solid rgba(255,255,255,.07);
        padding: 14px;
    }
}

@media (max-width: 640px) {
    .eggy-pool-page {
        width: min(100% - 16px, 1180px);
        padding-top: 18px;
    }

    .eggy-pool-hero {
        padding: 24px 18px;
        border-radius: 22px;
        min-height: auto;
    }

    .eggy-pool-hero h1 {
        font-size: 50px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }

    .hero-visual {
        display: none;
    }

    .rewards-banner,
    .eggy-pool-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}


.guest-xp-warning {
    width: fit-content;
    margin-top: 14px;
    padding: 12px 16px;
    border-radius: 12px;
    color: #ffe9a8;
    font-size: 14px;
    font-weight: 800;
    background: rgba(255, 196, 0, 0.08);
    border: 1px solid rgba(255, 196, 0, 0.22);
    box-shadow: 0 0 18px rgba(255, 196, 0, 0.08);
}

.guest-xp-warning strong {
    color: #fff1c4;
}


/* =========================================================
   Variant A compact landing refinements
   ========================================================= */

.eggy-pool-hero {
    min-height: 380px;
    grid-template-columns: minmax(0, 1fr) 380px;
    padding: 42px 52px;
}

.eggy-pool-hero h1 {
    font-size: clamp(48px, 6vw, 76px);
}

.hero-visual {
    height: 285px;
}

.eight-ball {
    width: 170px;
    height: 170px;
    right: 34px;
    top: 28px;
    font-size: 58px;
}

.cue-ball {
    width: 72px;
    height: 72px;
    left: 70px;
    bottom: 58px;
}

.cue-stick {
    left: 145px;
    bottom: 48px;
    width: 230px;
}

.laser {
    left: 120px;
    bottom: 98px;
    width: 330px;
}

.guest-flow-card.variant-a-flow {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    padding: 14px;
}

.guest-flow-card.variant-a-flow .guest-step {
    min-height: 95px;
    padding: 15px;
}

.guest-flow-card.variant-a-flow .guest-step span {
    width: 30px;
    height: 30px;
    margin-bottom: 8px;
}

.guest-flow-card.variant-a-flow .guest-step h3 {
    font-size: 15px;
}

.guest-flow-card.variant-a-flow .guest-step p {
    font-size: 13px;
}

.btn-primary {
    min-width: 190px;
}

@media (max-width: 980px) {
    .eggy-pool-hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .guest-flow-card.variant-a-flow {
        grid-template-columns: 1fr;
    }
}
