:root {
    --bg-main: #17192a;
    --bg-dark: #0b0d18;
    --panel: #f2e7c9;
    --panel-light: #fff7df;
    --panel-shadow: #b69f70;
    --ink: #1f2433;
    --muted: #6d5f46;
    --green: #2d8a4e;
    --red: #b93535;
    --blue: #2b5c99;
    --purple: #7d3f98;
    --orange: #c7781f;
    --border-dark: #1e2230;
    --border-light: #fff1c5;
    --terminal: #0c2015;
    --terminal-text: #8dffb1;
    --ad-border: rgba(255, 241, 197, 0.18);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    padding: 24px;
    color: var(--ink);
    font-family: 'VT323', monospace;
    text-align: center;
    background:
        radial-gradient(circle at top, rgba(255, 224, 140, 0.10), transparent 28%),
        linear-gradient(135deg, rgba(255,255,255,0.035) 25%, transparent 25%) 0 0 / 18px 18px,
        linear-gradient(225deg, rgba(255,255,255,0.025) 25%, transparent 25%) 0 0 / 18px 18px,
        var(--bg-main);
    display: flex;
    flex-direction: column;
    align-items: center;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(rgba(255,255,255,0.035) 50%, rgba(0,0,0,0.035) 50%);
    background-size: 100% 4px;
    opacity: 0.35;
    z-index: 0;
}

.retro-page-grid {
    width: 100%;
    max-width: 1310px;
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 270px minmax(320px, 720px) 270px;
    gap: 20px;
    align-items: start;
    justify-content: center;
}

.adsterra-top {
    width: 100%;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.adsterra-bottom {
    width: 100%;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    overflow: hidden;
}


.page-shell {
    width: 100%;
    max-width: 720px;
    position: relative;
    z-index: 1;
}

.ad-rail {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding-top: 152px;
}

.sponsor-box {
    width: 256px;
    height: 200px;
    min-height: 200px;
    max-width: 100%;
    background: linear-gradient(180deg, rgba(32, 38, 61, 0.92), rgba(12, 16, 30, 0.92));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 14px;
    font-weight: bold;
    overflow: hidden;
    box-shadow:
        inset 2px 2px 0 rgba(255,255,255,0.05),
        inset -2px -2px 0 rgba(0,0,0,0.35),
        0 12px 26px rgba(0,0,0,0.35);
    padding: 0;
    text-align: center;
    margin: 0 auto;
}

h1 {
    margin: 0 0 14px;
    padding: 13px 14px 10px;
    font-family: 'Press Start 2P', cursive;
    font-size: clamp(15px, 3.2vw, 22px);
    line-height: 1.45;
    color: #ffe6a6;
    background: linear-gradient(180deg, #3d4163 0%, #22263d 100%);
    border: 3px solid #0b0d18;
    outline: 2px solid #d5bd78;
    box-shadow: 5px 5px 0 rgba(0,0,0,0.45);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 2px 2px 0 #000;
}

.subtitle-window {
    margin: 0 auto 24px;
    background: var(--panel);
    border: 3px solid var(--border-dark);
    box-shadow:
        inset 3px 3px 0 var(--border-light),
        inset -3px -3px 0 var(--panel-shadow),
        6px 6px 0 rgba(0,0,0,0.4);
    padding: 0;
    overflow: hidden;
}

.window-title {
    margin: 0;
    padding: 12px 16px;
    background: linear-gradient(90deg, var(--blue), var(--purple));
    color: #fff7df;
    font-family: 'Press Start 2P', cursive;
    font-size: 11px;
    line-height: 1.5;
    text-align: left;
    text-shadow: 2px 2px 0 #000;
    border-bottom: 3px solid var(--border-dark);
}

.subtitle-content {
    padding: 16px;
}

.claim-line {
    font-size: 25px;
    line-height: 1.4;
}

.claim-line strong {
    color: var(--purple);
    font-weight: normal;
}

.daily-left {
    display: inline-block;
    margin-top: 10px;
    padding: 6px 12px;
    font-size: 20px;
    background: var(--terminal);
    color: var(--terminal-text);
    border: 2px solid #274c35;
    box-shadow: inset 2px 2px 0 #000;
}

.daily-left.danger {
    color: #ff9a9a;
    border-color: #633030;
}

.retro-container {
    width: 100%;
    background: var(--panel);
    border: 3px solid var(--border-dark);
    box-shadow:
        inset 4px 4px 0 var(--border-light),
        inset -4px -4px 0 var(--panel-shadow),
        8px 8px 0 rgba(0,0,0,0.42);
    padding: 24px;
    margin-bottom: 40px;
    text-align: left;
}

.section-box {
    background: var(--panel-light);
    border: 2px solid var(--border-dark);
    box-shadow:
        inset 2px 2px 0 #fff,
        inset -2px -2px 0 #d0bc8c;
    padding: 18px;
    margin-bottom: 20px;
}

.step-title {
    display: block;
    width: fit-content;
    margin: 0 auto 14px auto;
    padding: 7px 14px;
    background: #22263d;
    color: #ffe6a6;
    font-family: 'Press Start 2P', cursive;
    font-size: 11px;
    line-height: 1.5;
    text-shadow: 2px 2px 0 #000;
    border: 2px solid #111421;
    text-align: center;
}

.retro-text {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 24px;
    line-height: 1.25;
    text-align: center;
}

.retro-text b {
    color: var(--orange);
    font-weight: normal;
}

.btn-retro {
    display: inline-block;
    width: 100%;
    margin: 0;
    padding: 15px 18px;
    background: #f6d77b;
    color: #1d2130;
    border: 3px solid #1d2130;
    box-shadow:
        inset 3px 3px 0 #fff2ba,
        inset -3px -3px 0 #b7852e,
        4px 4px 0 rgba(0,0,0,0.35);
    cursor: pointer;
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
    text-transform: uppercase;
    text-decoration: none;
}

.btn-retro.magenta {
    background: #c276c9;
    color: #fff7df;
    border-color: #23162a;
    box-shadow:
        inset 3px 3px 0 #e9a8ee,
        inset -3px -3px 0 #713177,
        4px 4px 0 rgba(0,0,0,0.35);
    text-shadow: 2px 2px 0 #3c1742;
}

.input-retro {
    width: 100%;
    margin-bottom: 18px;
    padding: 14px;
    background: #fffbe9;
    border: 3px solid #1d2130;
    box-shadow:
        inset 3px 3px 0 #d2c69a,
        inset -2px -2px 0 #ffffff;
    color: #1d2130;
    font-family: 'VT323', monospace;
    font-size: 26px;
    text-align: center;
    outline: none;
}


.captcha-container {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 0 0 18px 0;
    padding: 12px;
    background: #d8c797;
    border: 2px dashed #76613a;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: visible !important;
}


.cf-turnstile, 
.cf-turnstile iframe,
.captcha-container > div {
    margin: 0 auto !important;
    float: none !important;
    clear: both !important;
    display: inline-block !important;
}

.divider {
    height: 12px;
    margin: 22px 0;
    background: repeating-linear-gradient(90deg, #22263d 0 14px, #d5bd78 14px 28px);
    border: 2px solid #111421;
}

#messageBox {
    min-height: 30px;
    margin-top: 18px;
    padding: 10px;
    font-size: 24px;
    line-height: 1.25;
    text-align: center;
    color: var(--ink);
}

.success { color: var(--green); }
.error { color: var(--red); }

.info-message {
    margin-bottom: 18px;
    padding: 12px;
    background: #fffbe9;
    border: 2px solid #1d2130;
    font-size: 22px;
    line-height: 1.25;
    text-align: center;
}

.bonus-active {
    margin: 8px 0 4px;
    padding: 14px;
    background: #dff0c2;
    color: var(--green);
    border: 3px solid var(--green);
    box-shadow:
        inset 3px 3px 0 #f4ffd8,
        inset -3px -3px 0 #8ab464;
    font-family: 'Press Start 2P', cursive;
    font-size: 13px;
    line-height: 1.7;
    text-align: center;
}

.footer-note {
    margin-top: 16px;
    color: #d8c797;
    font-size: 18px;
    text-align: center;
}

/* ------------------------------------------------------------------------- */
/* MOBIL 
/* ------------------------------------------------------------------------- */
@media (max-width: 1180px) {
    .retro-page-grid {
        max-width: 720px;
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .page-shell { order: 1; }
    .ad-rail.left { order: 2; }
    .ad-rail.right { order: 3; }
    .ad-rail {
        width: 100%;
        padding-top: 0;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(256px, 1fr));
        justify-items: center;
        gap: 16px;
    }
    .sponsor-box.skyscraper { display: none; }
}

@media (max-width: 560px) {
    body {
        padding: 14px;
    }

    h1 {
        font-size: 14px;
        padding: 12px 10px 9px;
    }


    .retro-container {
        padding: 12px 8px;
    }

    .section-box {
        padding: 12px 6px;
    }

    .captcha-container {
        padding: 12px 2px; 
    }

    .claim-line {
        font-size: 22px;
    }

    .btn-retro {
        font-size: 10px;
    }

    .step-title {
        font-size: 10px;
        margin: 0 auto 14px auto !important;
    }
}


@media (max-width: 375px) {
    .retro-container, .section-box {
        padding: 8px 4px !important;
    }
    .captcha-container {
        padding: 10px 0 !important;
    }

    .cf-turnstile {
        transform: scale(0.94);
        transform-origin: center center;
    }
}