/* ═══════════════════════════════════════════
   CHICKEN ROAD CASINOS — Global Stylesheet
   Theme: orange/yellow/dark — crash game
═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;900&family=Space+Mono:wght@400;700&display=swap');

:root {
    --orange: #FF6B1A;
    --gold: #FFB800;
    --red: #E63946;
    --dark: #0D0A00;
    --dark2: #1A1200;
    --dark3: #251C00;
    --card: #1F1700;
    --border: rgba(255, 184, 0, .18);
    --text: #F5E6C8;
    --muted: rgba(245, 230, 200, .55);
    --radius: 12px;
    --shadow: 0 8px 32px rgba(255, 107, 26, .18);
    --font: 'Outfit', sans-serif;
    --mono: 'Space Mono', monospace;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--dark);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    color: var(--gold);
    text-decoration: none;
}

a:hover {
    color: var(--orange);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

strong {
    color: var(--gold);
}

/* ── SKIP LINK ── */
.skip-link {
    position: absolute;
    left: -9999px;
}

.skip-link:focus {
    left: 12px;
    top: 12px;
    z-index: 9999;
    padding: 8px 16px;
    background: var(--orange);
    color: #fff;
    border-radius: 6px;
}

/* ── CONTAINER ── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ════════════════════════════════════
   HEADER
════════════════════════════════════ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 500;
    background: rgba(13, 10, 0, .95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 14px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-icon {
    font-size: 28px;
}

.logo-text {
    font-size: 20px;
    font-weight: 900;
    color: var(--text);
    letter-spacing: -.3px;
}

.logo-text strong {
    color: var(--orange);
}

.main-nav {
    display: flex;
    gap: 6px;
    margin-left: auto;
}

.main-nav a {
    color: rgba(245, 230, 200, .75);
    font-size: 14px;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 8px;
    transition: all .2s;
}

.main-nav a:hover {
    color: var(--gold);
    background: rgba(255, 184, 0, .08);
}

/* ── Lang Switcher ── */
.lang-switcher {
    position: relative;
    z-index: 200;
}

.lang-btn {
    background: rgba(255, 184, 0, .08);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 7px 13px;
    border-radius: 8px;
    cursor: pointer;
    font: 600 14px var(--font);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background .2s;
    white-space: nowrap;
}

.lang-btn:hover {
    background: rgba(255, 184, 0, .15);
}

.lang-arrow {
    font-size: 11px;
    opacity: .7;
    transition: transform .2s;
}

.lang-btn[aria-expanded="true"] .lang-arrow {
    transform: rotate(180deg);
}

.lang-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #1A1200;
    border: 1px solid rgba(255, 184, 0, .3);
    border-radius: 10px;
    min-width: 185px;
    padding: 6px 0;
    box-shadow: 0 12px 36px rgba(0, 0, 0, .6);
    display: none;
    flex-direction: column;
}

.lang-menu.open {
    display: flex;
}

.lang-opt {
    padding: 9px 16px;
    color: var(--muted);
    text-decoration: none;
    font: 400 14px var(--font);
    transition: background .15s, color .15s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-opt:hover {
    background: rgba(255, 184, 0, .12);
    color: var(--text);
}

.lang-opt.active {
    color: var(--gold);
    font-weight: 600;
}

.cta-btn {
    background: linear-gradient(135deg, var(--orange), #FF3D00);
    color: #fff;
    font: 700 14px var(--font);
    padding: 9px 20px;
    border-radius: 10px;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(255, 107, 26, .4);
    transition: transform .2s, box-shadow .2s;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 107, 26, .55);
    color: #fff;
}

/* ════════════════════════════════════
   HERO
════════════════════════════════════ */
.hero {
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse at 60% 50%, #2D1500 0%, var(--dark) 70%);
    padding: 80px 0;
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.flame {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    animation: flamepulse 3s ease-in-out infinite;
}

.flame-1 {
    width: 400px;
    height: 400px;
    background: rgba(255, 107, 26, .15);
    top: -100px;
    left: 50%;
}

.flame-2 {
    width: 300px;
    height: 300px;
    background: rgba(255, 184, 0, .1);
    bottom: -50px;
    right: 10%;
    animation-delay: 1.5s;
}

@keyframes flamepulse {

    0%,
    100% {
        opacity: .6;
        transform: scale(1)
    }

    50% {
        opacity: 1;
        transform: scale(1.15)
    }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
}

.hero-text {}

.badge-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.badge {
    background: rgba(255, 184, 0, .12);
    border: 1px solid rgba(255, 184, 0, .3);
    color: var(--gold);
    font: 700 13px var(--font);
    padding: 5px 12px;
    border-radius: 20px;
}

.badge-red {
    background: rgba(230, 57, 70, .15);
    border-color: rgba(230, 57, 70, .35);
    color: #FF6B7A;
}

.badge-green {
    background: rgba(0, 200, 100, .12);
    border-color: rgba(0, 200, 100, .3);
    color: #00D464;
}

.hero h1 {
    font-size: clamp(36px, 5vw, 60px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero h1 span {
    color: var(--orange);
}

.hero-sub {
    font-size: 17px;
    color: var(--muted);
    max-width: 460px;
    margin-bottom: 32px;
}

.btn-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--orange), #FF3D00);
    color: #fff;
    font: 700 16px var(--font);
    padding: 14px 28px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(255, 107, 26, .45);
    transition: all .2s;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(255, 107, 26, .6);
    color: #fff;
}

.btn-outline {
    border: 2px solid var(--gold);
    color: var(--gold);
    font: 700 16px var(--font);
    padding: 12px 26px;
    border-radius: 12px;
    transition: all .2s;
}

.btn-outline:hover {
    background: var(--gold);
    color: var(--dark);
}

.hero-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(255, 107, 26, .3);
}

/* ════════════════════════════════════
   SECTIONS
════════════════════════════════════ */
section {
    padding: 80px 0;
}

section+section {
    border-top: 1px solid var(--border);
}

.section-label {
    font: 700 12px var(--font);
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(28px, 3.5vw, 42px);
    font-weight: 900;
    margin-bottom: 16px;
}

.section-sub {
    color: var(--muted);
    font-size: 16px;
    max-width: 600px;
    margin-bottom: 48px;
}

/* ── STAT CARDS ── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    text-align: center;
    transition: transform .2s, box-shadow .2s;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.stat-num {
    font: 900 42px var(--mono);
    color: var(--gold);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-lbl {
    font-size: 14px;
    color: var(--muted);
}

/* ── TABLES ── */
.table-wrap {
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-bottom: 32px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead th {
    background: rgba(255, 107, 26, .12);
    color: var(--gold);
    font: 700 13px var(--font);
    padding: 14px 18px;
    text-align: left;
    letter-spacing: .5px;
    white-space: nowrap;
}

tbody tr {
    border-top: 1px solid rgba(255, 184, 0, .06);
}

tbody tr:hover {
    background: rgba(255, 184, 0, .04);
}

tbody td {
    padding: 13px 18px;
    font-size: 14px;
    color: var(--text);
}

.td-num {
    font-family: var(--mono);
    color: var(--gold);
    font-weight: 700;
}

.td-green {
    color: #00D464;
    font-weight: 600;
}

.td-red {
    color: #FF6B7A;
    font-weight: 600;
}

.td-badge {
    display: inline-flex;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.badge-hot {
    background: rgba(255, 107, 26, .2);
    color: var(--orange);
}

.badge-safe {
    background: rgba(0, 212, 100, .15);
    color: #00D464;
}

/* ── CHART BARS ── */
.chart-bar-wrap {
    margin-bottom: 32px;
}

.bar-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.bar-label {
    min-width: 90px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
}

.bar-track {
    flex: 1;
    height: 28px;
    background: rgba(255, 255, 255, .04);
    border-radius: 6px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 6px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    font: 700 12px var(--mono);
    color: #fff;
    background: linear-gradient(90deg, var(--orange), var(--gold));
    transition: width 1.2s cubic-bezier(.4, 0, .2, 1);
}

.bar-fill.safe {
    background: linear-gradient(90deg, #00A550, #00D464);
}

.bar-fill.risky {
    background: linear-gradient(90deg, #B02020, var(--red));
}

/* ── DEMO SECTION ── */
#demo {
    background: radial-gradient(ellipse at center, #1F0D00 0%, var(--dark) 80%);
}

.demo-wrapper {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}

.demo-screen {
    position: relative;
    height: auto;
    background: #0D0500;
    overflow: hidden;
}

#crashCanvas {
    display: block;
    width: 100%;
    height: auto;
}

.multiplier-display {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font: 900 60px var(--mono);
    color: #fff;
    text-shadow: 0 0 30px rgba(255, 184, 0, .8), 0 0 8px rgba(255, 107, 26, .6);
    pointer-events: none;
    z-index: 10;
    white-space: nowrap;
}

.crash-overlay,
.cashout-overlay,
.waiting-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 20;
    gap: 6px;
}

.crash-overlay {
    background: rgba(180, 0, 0, .85);
}

.cashout-overlay {
    background: rgba(0, 120, 50, .85);
}

.waiting-overlay {
    background: rgba(0, 0, 0, .7);
}

.overlay-title {
    font: 900 28px var(--font);
    color: #fff;
}

.overlay-sub {
    font: 400 15px var(--font);
    color: rgba(255, 255, 255, .8);
}

.demo-controls {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    flex-wrap: wrap;
    background: rgba(255, 184, 0, .04);
}

.balance-box {
    font: 700 16px var(--mono);
    color: var(--gold);
    margin-right: auto;
}

.bet-input {
    background: rgba(255, 255, 255, .06);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 10px 16px;
    border-radius: 8px;
    font: 600 15px var(--font);
    width: 120px;
}

.btn-start,
.btn-cashout {
    padding: 11px 24px;
    border-radius: 10px;
    font: 700 15px var(--font);
    cursor: pointer;
    border: none;
    transition: all .2s;
}

.btn-start {
    background: linear-gradient(135deg, var(--orange), #FF3D00);
    color: #fff;
}

.btn-start:hover:not(:disabled) {
    transform: translateY(-2px);
}

.btn-cashout {
    background: linear-gradient(135deg, #00A550, #00D464);
    color: #fff;
}

.btn-start:disabled,
.btn-cashout:disabled {
    opacity: .4;
    cursor: default;
}

.demo-history {
    display: flex;
    gap: 6px;
    align-items: center;
    padding: 12px 20px;
    border-top: 1px solid var(--border);
}

.hist-label {
    font-size: 12px;
    color: var(--muted);
    margin-right: 6px;
    white-space: nowrap;
}

.hist-item {
    font: 700 12px var(--mono);
    padding: 4px 10px;
    border-radius: 20px;
}

.hist-win {
    background: rgba(0, 212, 100, .15);
    color: #00D464;
}

.hist-lose {
    background: rgba(230, 57, 70, .15);
    color: #FF6B7A;
}

/* ── STRATEGY GRID ── */
.strategy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.strategy-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: transform .2s;
}

.strategy-card:hover {
    transform: translateY(-4px);
}

.strat-icon {
    font-size: 36px;
    margin-bottom: 14px;
}

.strat-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--gold);
}

.strat-text {
    font-size: 14px;
    color: var(--muted);
}

/* ── FAQ ── */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.faq-q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    cursor: pointer;
    font: 700 16px var(--font);
    background: none;
    border: none;
    color: var(--text);
    width: 100%;
    text-align: left;
    transition: color .2s;
}

.faq-q:hover {
    color: var(--gold);
}

.faq-q::after {
    content: '+';
    font-size: 22px;
    color: var(--orange);
    transition: transform .2s;
    flex-shrink: 0;
    margin-left: 12px;
}

.faq-item.active .faq-q::after {
    transform: rotate(45deg);
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
}

.faq-item.active .faq-a {
    max-height: 500px;
}

.faq-a p {
    padding: 0 24px 20px;
    font-size: 15px;
    color: var(--muted);
}

/* ── CTA BANNER ── */
.cta-banner-section {
    background: linear-gradient(135deg, #1F0D00, #2D1500);
}

.cta-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}

.cta-banner h2 {
    font-size: clamp(26px, 3vw, 40px);
    font-weight: 900;
}

.cta-banner p {
    font-size: 16px;
    color: var(--muted);
    margin-top: 8px;
}

.cta-banner-btns {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* ── FOOTER ── */
.site-footer {
    background: #0A0800;
    border-top: 1px solid var(--border);
    padding: 48px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.footer-desc {
    font-size: 14px;
    color: var(--muted);
    max-width: 320px;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 14px;
    letter-spacing: .5px;
}

.footer-col a {
    display: block;
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 8px;
    transition: color .15s;
}

.footer-col a:hover {
    color: var(--text);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-disclaimer {
    max-width: 700px;
    font-size: 12px;
    color: rgba(245, 230, 200, .35);
    line-height: 1.6;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero-image {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

@media (max-width: 540px) {
    .main-nav {
        display: none;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}