/* ============================================
   First Person Craps MX — style.css
   Design System 2026 · Deportech Mexico
   ============================================ */

/* ===== DESIGN TOKENS ===== */
:root {
    /* Casino Green Palette */
    --green: #00A86B;
    --green-dark: #007A4D;
    --green-deep: #003D26;
    --green-light: #00D68F;
    --green-glow: rgba(0, 168, 107, 0.4);

    /* Gold Palette */
    --gold: #FFD700;
    --gold-light: #FFE55C;
    --gold-dark: #B8960C;
    --gold-muted: rgba(255, 215, 0, 0.15);

    /* Red — casino accent */
    --red: #FF3B5C;
    --red-dark: #CC0033;

    /* Dark Backgrounds */
    --dark: #060D08;
    --dark-2: #0A120C;
    --dark-3: #0E1A10;
    --surface: #111D13;
    --surface-2: #162018;
    --border: rgba(0, 168, 107, 0.18);
    --border-gold: rgba(255, 215, 0, 0.2);

    /* Text */
    --text: #F0F7F2;
    --text-muted: #7A9B82;
    --text-dim: #4A6B52;

    /* Glows */
    --glow-green: 0 0 20px rgba(0, 168, 107, 0.5);
    --glow-gold: 0 0 20px rgba(255, 215, 0, 0.4);
    --glow-red: 0 0 20px rgba(255, 59, 92, 0.4);

    /* Radius */
    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    /* Transitions */
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--dark);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img,
video {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
}

/* ===== SKIP LINK ===== */
.skip-link {
    position: absolute;
    top: -50px;
    left: 6px;
    padding: 8px 16px;
    background: var(--gold);
    color: #000;
    font-weight: 700;
    border-radius: 4px;
    z-index: 9999;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 6px;
}

/* ===== ANIMATED BG ===== */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(0, 168, 107, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(0, 80, 40, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(6, 13, 8, 1) 0%, transparent 100%);
    background-color: var(--dark);
}

/* ===== PARTICLES CANVAS ===== */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* ===== HEADER / NAV ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(6, 13, 8, 0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.site-header.scrolled {
    background: rgba(6, 13, 8, 0.97);
    box-shadow: 0 4px 30px rgba(0, 168, 107, 0.15);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.nav-logo img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: drop-shadow(var(--glow-gold));
    border-radius: 8px;
}

.nav-logo-text {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gold), var(--gold-light), var(--green-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.nav-logo-sub {
    font-size: 0.58rem;
    font-weight: 400;
    color: var(--text-muted);
    -webkit-text-fill-color: var(--text-muted);
    display: block;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    gap: 2px;
    align-items: center;
}

.nav-menu a {
    display: block;
    padding: 8px 13px;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--gold);
    background: rgba(255, 215, 0, 0.06);
}

.nav-cta {
    background: linear-gradient(135deg, var(--green-dark), var(--green)) !important;
    color: #fff !important;
    box-shadow: var(--glow-green) !important;
    border-radius: var(--radius-sm);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 168, 107, 0.6) !important;
    color: var(--gold) !important;
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
    transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 24px 60px;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../images/hero.png') center/cover no-repeat;
    opacity: 0.12;
    z-index: 0;
}

.hero-container {
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 168, 107, 0.12);
    border: 1px solid rgba(0, 168, 107, 0.35);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--green-light);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero h1 {
    font-family: 'Cinzel', serif;
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero h1 .gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-light), var(--green-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.hero-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 36px;
    max-width: 480px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 32px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--green-dark), var(--green), var(--green-light));
    color: #001a0e;
    font-weight: 800;
    font-size: 1rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-shadow: var(--glow-green);
    transition: var(--transition);
    letter-spacing: 0.3px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 168, 107, 0.6);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 32px;
    border-radius: var(--radius);
    background: transparent;
    border: 1.5px solid var(--border-gold);
    color: var(--text);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    border-color: var(--gold);
    background: var(--gold-muted);
    color: var(--gold);
    transform: translateY(-2px);
}

.btn-roll {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 18px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-light));
    color: #001a0e;
    font-weight: 900;
    font-size: 1.2rem;
    border: none;
    cursor: pointer;
    box-shadow: var(--glow-gold);
    transition: var(--transition);
    letter-spacing: 0.5px;
}

.btn-roll:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 40px rgba(255, 215, 0, 0.7);
}

.btn-roll:active {
    transform: scale(0.97);
}

.btn-roll:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ===== HERO VISUAL — CRAPS MINI TABLE ===== */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.craps-preview {
    background: linear-gradient(145deg, var(--surface), var(--surface-2));
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-xl);
    padding: 28px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7), var(--glow-green);
    width: 100%;
    max-width: 420px;
}

.craps-preview-header {
    text-align: center;
    margin-bottom: 20px;
}

.craps-preview-header h3 {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    color: var(--gold);
    margin-bottom: 6px;
}

.rtp-badge {
    display: inline-block;
    background: rgba(0, 168, 107, 0.15);
    border: 1px solid rgba(0, 168, 107, 0.4);
    color: var(--green-light);
    padding: 3px 12px;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 700;
}

.mini-dice-area {
    display: flex;
    justify-content: center;
    gap: 24px;
    padding: 24px 0;
    position: relative;
}

.mini-die {
    width: 72px;
    height: 72px;
    background: linear-gradient(145deg, #fff, #e8e8e8);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 0 2px rgba(255, 215, 0, 0.3);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 3px;
    padding: 8px;
    transition: transform 0.3s ease;
}

.mini-die.rolling {
    animation: dieRoll 0.5s ease-in-out;
}

@keyframes dieRoll {
    0% {
        transform: rotate(0deg) scale(1);
    }

    25% {
        transform: rotate(180deg) scale(0.8);
    }

    50% {
        transform: rotate(360deg) scale(1.1);
    }

    75% {
        transform: rotate(540deg) scale(0.9);
    }

    100% {
        transform: rotate(720deg) scale(1);
    }
}

.die-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #1a0a00;
    margin: auto;
}

.die-dot.hidden {
    background: transparent;
}

.mini-total {
    text-align: center;
    margin-bottom: 20px;
    font-family: 'Cinzel', serif;
}

.mini-total .total-num {
    font-size: 2.5rem;
    font-weight: 900;
    display: block;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.mini-total .total-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.mini-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.mini-stat {
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 10px 4px;
}

.mini-stat .val {
    display: block;
    font-weight: 800;
    font-size: 1rem;
    color: var(--gold);
}

.mini-stat .lbl {
    display: block;
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

/* ===== STATS STRIP ===== */
.stats-strip {
    background: linear-gradient(90deg, var(--dark-2), var(--surface), var(--dark-2));
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
    overflow: hidden;
}

.stats-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 8px 24px;
    border-right: 1px solid var(--border);
}

.stat-item:last-child {
    border-right: none;
}

.stat-item .num {
    display: block;
    font-weight: 900;
    font-size: 1.8rem;
    font-family: 'Cinzel', serif;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-item .label {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 3px;
}

/* ===== SECTIONS ===== */
.section {
    padding: 80px 0;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-eyebrow {
    display: inline-block;
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--green-light);
    margin-bottom: 12px;
}

.section-header h2 {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-header p {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== CARDS ===== */
.card {
    background: linear-gradient(145deg, var(--surface), var(--dark-3));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--green), transparent);
    opacity: 0;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 168, 107, 0.35);
    box-shadow: var(--glow-green);
}

.card:hover::before {
    opacity: 1;
}

/* ===== FEATURES GRID ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.feature-card {
    background: linear-gradient(145deg, var(--surface), var(--dark-3));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-gold);
    box-shadow: var(--glow-gold);
}

.feature-card:hover::after {
    opacity: 1;
}

.feature-icon {
    font-size: 2.2rem;
    display: block;
    margin-bottom: 14px;
}

.feature-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ===== GRIDS ===== */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ===== TABLES ===== */
.table-wrap {
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

caption {
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gold);
    padding: 14px 16px;
    text-align: left;
    background: rgba(255, 215, 0, 0.04);
    border-bottom: 1px solid var(--border);
    letter-spacing: 0.5px;
}

thead th {
    background: linear-gradient(135deg, var(--surface), var(--surface-2));
    padding: 13px 16px;
    text-align: left;
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--green-light);
    border-bottom: 1px solid var(--border);
}

tbody tr {
    border-bottom: 1px solid rgba(0, 168, 107, 0.12);
    transition: background 0.2s;
}

tbody tr:last-child {
    border-bottom: none;
}

tbody tr:hover {
    background: rgba(0, 168, 107, 0.08);
}

tbody td {
    padding: 12px 16px;
    color: var(--text);
    vertical-align: middle;
}

tbody td .highlight {
    color: var(--gold);
    font-weight: 700;
}

.tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 600;
}

.tag-green {
    background: rgba(0, 168, 107, 0.15);
    color: var(--green-light);
    border: 1px solid rgba(0, 168, 107, 0.3);
}

.tag-gold {
    background: rgba(255, 215, 0, 0.10);
    color: var(--gold);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.tag-red {
    background: rgba(255, 59, 92, 0.15);
    color: var(--red);
    border: 1px solid rgba(255, 59, 92, 0.3);
}

.tag-purple {
    background: rgba(147, 51, 234, 0.15);
    color: #BF5FFF;
    border: 1px solid rgba(147, 51, 234, 0.3);
}

/* ===== CHARTS ===== */
.chart-container {
    background: linear-gradient(145deg, var(--surface), var(--dark-3));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
}

.chart-title {
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    color: var(--gold);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.bar-chart {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bar-label {
    width: 150px;
    font-size: 0.8rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

.bar-track {
    flex: 1;
    height: 30px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 8px;
    display: flex;
    align-items: center;
    padding-left: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #000;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.bar-fill.green {
    background: linear-gradient(90deg, var(--green-dark), var(--green));
    color: #fff;
}

.bar-fill.gold {
    background: linear-gradient(90deg, var(--gold-dark), var(--gold));
    color: #000;
}

.bar-fill.red {
    background: linear-gradient(90deg, var(--red-dark), var(--red));
    color: #fff;
}

.bar-fill.blue {
    background: linear-gradient(90deg, #0044CC, #4499FF);
    color: #fff;
}

.bar-value {
    width: 48px;
    text-align: right;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gold);
    flex-shrink: 0;
}

/* ===== FAQ ===== */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: linear-gradient(145deg, var(--surface), var(--dark-3));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: rgba(0, 168, 107, 0.3);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    transition: var(--transition);
    gap: 16px;
}

.faq-question:hover {
    color: var(--gold);
}

.faq-icon {
    color: var(--green);
    font-size: 1.4rem;
    flex-shrink: 0;
    transition: var(--transition);
    font-weight: 300;
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
    color: var(--gold);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.faq-answer-inner {
    padding: 0 22px 18px;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.faq-question[aria-expanded="true"]~.faq-answer {
    max-height: 400px;
}

/* ===== CASINO CARDS ===== */
.casinos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.casino-card {
    background: linear-gradient(145deg, var(--surface), var(--dark-3));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.casino-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 215, 0, 0.4);
    box-shadow: var(--glow-gold);
}

.casino-header {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 20px 20px 16px;
    border-bottom: 1px solid var(--border);
}

.casino-icon {
    font-size: 2rem;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--surface-2), var(--dark-2));
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.casino-name {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text);
    margin-bottom: 4px;
}

.casino-rating {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.casino-body {
    padding: 16px 20px 20px;
}

.bonus-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.bonus-value {
    font-weight: 700;
    color: var(--gold);
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.casino-features {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.feature-tag {
    background: rgba(0, 168, 107, 0.1);
    border: 1px solid rgba(0, 168, 107, 0.25);
    color: var(--text-muted);
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 500;
}

.casino-cta {
    display: block;
    text-align: center;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--green-dark), var(--green));
    color: #001a0e;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    transition: var(--transition);
}

.casino-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-green);
}

/* ===== PAGE HEADER ===== */
.page-header {
    padding: 100px 0 48px;
    background: linear-gradient(180deg, rgba(0, 168, 107, 0.08) 0%, transparent 100%);
    border-bottom: 1px solid var(--border);
}

.page-header h1 {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    margin: 12px 0;
    line-height: 1.2;
}

.page-header p {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 640px;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
    margin-bottom: 8px;
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.breadcrumb-list a {
    color: var(--text-muted);
    transition: color 0.2s;
}

.breadcrumb-list a:hover {
    color: var(--gold);
}

.breadcrumb-list .sep {
    margin: 0 4px;
    opacity: 0.5;
}

.breadcrumb-list .current {
    color: var(--green-light);
    font-weight: 500;
}

/* ===== PROMO BANNER ===== */
.promo-banner {
    background: linear-gradient(135deg, var(--green-deep), var(--surface-2), rgba(255, 215, 0, 0.06));
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-xl);
    padding: 52px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.promo-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(0, 168, 107, 0.1) 0%, transparent 70%);
}

.promo-banner>* {
    position: relative;
    z-index: 1;
}

.promo-banner h2 {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    margin-bottom: 12px;
}

.promo-banner p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 28px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== SEO CONTENT ===== */
.seo-content {
    padding: 60px 0;
}

.seo-article h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 32px 0 12px;
    color: var(--text);
}

.seo-article h2:first-child {
    margin-top: 0;
}

.seo-article h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 22px 0 8px;
    color: var(--green-light);
}

.seo-article p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.85;
    margin-bottom: 14px;
}

.seo-article ul,
.seo-article ol {
    padding-left: 20px;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 2;
    margin-bottom: 14px;
}

.text-link {
    color: var(--gold);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(255, 215, 0, 0.3);
}

.text-link:hover {
    text-decoration-color: var(--gold);
}

/* ===== SEO NEWS LINKS ===== */
.seo-news-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0;
}

.seo-news-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 0.88rem;
    transition: var(--transition);
}

.seo-news-links a:hover {
    border-color: var(--green);
    color: var(--gold);
    background: rgba(0, 168, 107, 0.06);
}

/* ===== RELATED PAGES ===== */
.related-pages {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.page-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
    font-size: 0.82rem;
    transition: var(--transition);
}

.page-link:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: var(--gold-muted);
}

.page-link span {
    font-weight: 600;
    color: var(--text);
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--dark-2);
    border-top: 1px solid var(--border);
    padding: 56px 0 0;
}

.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 14px;
    line-height: 1.7;
}

.footer-col h4 {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--gold);
    margin-bottom: 16px;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col ul a {
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: color 0.2s;
}

.footer-col ul a:hover {
    color: var(--gold);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 20px 24px;
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-legal {
    font-size: 0.78rem;
    color: var(--text-dim);
}

.footer-dev {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-dev a {
    color: var(--green-light);
    font-weight: 600;
}

.footer-dev a:hover {
    color: var(--gold);
}

.responsible-strip {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.74rem;
    color: var(--text-muted);
    background: rgba(255, 59, 92, 0.06);
    border: 1px solid rgba(255, 59, 92, 0.2);
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    margin-top: 14px;
}

/* ===== DEMO PAGE ===== */
.demo-wrapper {
    min-height: 100vh;
    padding: 90px 0 60px;
    background: radial-gradient(ellipse at 50% 30%, rgba(0, 168, 107, 0.1) 0%, transparent 60%);
}

.demo-layout {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    align-items: start;
}

.craps-table-area {
    background: linear-gradient(145deg, var(--surface), var(--dark-2));
    border: 2px solid var(--border-gold);
    border-radius: var(--radius-xl);
    min-height: 560px;
    position: relative;
    overflow: hidden;
}

.craps-table-bg {
    position: absolute;
    inset: 0;
    background: url('../images/demo-bg.png') center/cover no-repeat;
    opacity: 0.25;
}

.craps-table-inner {
    position: relative;
    z-index: 1;
    padding: 32px;
}

.craps-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.craps-title-bar {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    color: var(--gold);
}

.point-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.4);
    padding: 8px 16px;
    border-radius: 100px;
    border: 1px solid var(--border-gold);
}

.point-num {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--gold);
}

.point-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Dice in demo */
.dice-stage {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 40px 0;
    min-height: 170px;
    align-items: center;
}

.die-3d {
    width: 100px;
    height: 100px;
    background: linear-gradient(145deg, #ffffff, #cccccc);
    border-radius: 16px;
    box-shadow:
        0 0 0 3px rgba(255, 215, 0, 0.5),
        0 12px 40px rgba(0, 0, 0, 0.6),
        inset 0 2px 4px rgba(255, 255, 255, 0.9);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 4px;
    padding: 12px;
    transition: var(--transition);
    position: relative;
    cursor: default;
}

.die-3d.win-glow {
    box-shadow: 0 0 0 3px var(--gold), 0 0 30px rgba(255, 215, 0, 0.6), 0 12px 40px rgba(0, 0, 0, 0.6);
}

.die-3d.lose-glow {
    box-shadow: 0 0 0 3px var(--red), 0 0 30px rgba(255, 59, 92, 0.6), 0 12px 40px rgba(0, 0, 0, 0.6);
}

.dot-3d {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #4a2200, #1a0a00);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
    margin: auto;
}

.dot-3d.hidden {
    background: transparent;
    box-shadow: none;
}

.shake {
    animation: shake 0.6s ease-in-out;
}

@keyframes shake {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    10% {
        transform: translate(-8px, -8px) rotate(-10deg);
    }

    20% {
        transform: translate(8px, -8px) rotate(10deg);
    }

    30% {
        transform: translate(-8px, 8px) rotate(-5deg);
    }

    40% {
        transform: translate(8px, 8px) rotate(5deg);
    }

    50% {
        transform: translate(-4px, -4px) rotate(-8deg);
    }

    60% {
        transform: translate(4px, 4px) rotate(8deg);
    }

    70% {
        transform: translate(-4px, 4px) rotate(-3deg);
    }

    80% {
        transform: translate(4px, -4px) rotate(3deg);
    }

    90% {
        transform: translate(-2px, 2px) rotate(0deg);
    }
}

/* Bet zones on the table */
.bet-zones {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 16px;
}

.bet-zone {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 168, 107, 0.3);
    border-radius: 10px;
    padding: 10px 8px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.bet-zone:hover {
    border-color: var(--gold);
    background: rgba(255, 215, 0, 0.08);
}

.bet-zone.active-bet {
    border-color: var(--green);
    background: rgba(0, 168, 107, 0.15);
}

.bet-zone-name {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 3px;
}

.bet-zone-odds {
    font-size: 0.8rem;
    color: var(--green-light);
    font-weight: 600;
    display: block;
}

.bet-chip-on {
    position: absolute;
    top: -10px;
    right: -8px;
    background: var(--gold);
    color: #000;
    font-size: 0.65rem;
    font-weight: 900;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    display: none;
}

.bet-zone.active-bet .bet-chip-on {
    display: flex;
}

/* Demo controls */
.demo-controls {
    background: linear-gradient(145deg, var(--surface), var(--dark-3));
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-xl);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 100px;
}

.credits-display {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
}

.credits-display .cr-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 4px;
    display: block;
}

.credits-display .cr-val {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    font-weight: 900;
    color: var(--gold);
    display: block;
    line-height: 1;
}

.credits-display .cr-sub {
    font-size: 0.7rem;
    color: var(--text-dim);
    margin-top: 4px;
    display: block;
}

.bet-control {}

.bet-control label {
    font-size: 0.78rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.bet-row {
    display: flex;
    gap: 6px;
    align-items: center;
}

.bet-val {
    flex: 1;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gold);
    text-align: center;
}

.bet-btn {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid var(--border-gold);
    color: var(--gold);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    font-weight: 700;
}

.bet-btn:hover {
    background: rgba(255, 215, 0, 0.2);
    transform: scale(1.05);
}

.bet-presets {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.bet-preset {
    flex: 1;
    min-width: 40px;
    padding: 6px 4px;
    text-align: center;
    background: rgba(0, 168, 107, 0.1);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--green-light);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.bet-preset:hover {
    background: rgba(0, 168, 107, 0.2);
    border-color: var(--green);
}

.result-display {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    text-align: center;
    min-height: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.result-text {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 700;
}

.result-text.win {
    color: var(--green-light);
}

.result-text.lose {
    color: var(--red);
}

.result-text.neutral {
    color: var(--text-muted);
}

.result-sub {
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-top: 4px;
}

/* Roll history */
.roll-history {}

.roll-history-title {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.history-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-height: 80px;
    overflow-y: auto;
}

.h-chip {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
    border: 2px solid;
}

.h-chip.natural {
    background: rgba(0, 168, 107, 0.2);
    border-color: var(--green);
    color: var(--green-light);
}

.h-chip.craps-out {
    background: rgba(255, 59, 92, 0.2);
    border-color: var(--red);
    color: var(--red);
}

.h-chip.point {
    background: rgba(255, 215, 0, 0.15);
    border-color: var(--gold);
    color: var(--gold);
}

.reset-btn {
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 0.8rem;
    padding: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.reset-btn:hover {
    border-color: var(--red);
    color: var(--red);
}

/* ===== UTILITY ===== */
.mt-16 {
    margin-top: 16px;
}

.mt-24 {
    margin-top: 24px;
}

.mb-32 {
    margin-bottom: 32px;
}

.text-center {
    text-align: center;
}

.gold {
    color: var(--gold);
}

.green {
    color: var(--green-light);
}

/* ===== MOBILE NAV ===== */
@media (max-width: 1024px) {
    .nav-hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(6, 13, 8, 0.98);
        flex-direction: column;
        padding: 32px 24px;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        height: calc(100vh - 72px);
        justify-content: flex-start;
        gap: 8px;
    }

    .nav-menu.open {
        transform: translateX(0);
    }

    .nav-menu a {
        font-size: 1.1rem;
        padding: 14px 18px;
    }

    .hero-container {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        display: none;
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .demo-layout {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 90px 0 40px;
    }

    .bet-zones {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .related-pages {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 90px 16px 50px;
    }

    .craps-table-inner {
        padding: 20px 16px;
    }

    .dice-stage {
        gap: 20px;
    }

    .die-3d {
        width: 80px;
        height: 80px;
    }
}