/* ═══════════════════════════════════════════
   CASINO — Velvet Room
   Theatrical luxury · Deep crimson & gold
═══════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
    html { scroll-behavior: auto; }
}

:root {
    --bg:       #080608;
    --bg-1:     #120a0e;
    --bg-2:     #1c1016;
    --bg-3:     #28141e;
    --crimson:  #a01830;
    --crimson-2:#d42040;
    --crimson-dim: rgba(160,24,48,0.1);
    --gold:     #c9a03c;
    --gold-2:   #e8c060;
    --gold-dim: rgba(201,160,60,0.1);
    --purple:   #6a1a50;
    --purple-dim: rgba(106,26,80,0.08);
    --border:   rgba(160,24,48,0.1);
    --border-h: rgba(201,160,60,0.2);
    --text:     #f0e8e4;
    --text-2:   rgba(240,232,228,0.5);
    --text-3:   rgba(240,232,228,0.18);
    --display:  'Catamaran', 'Cabin', system-ui, sans-serif;
    --serif:    'Playfair Display', Georgia, serif;
    --mono:     'JetBrains Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--display);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* velvet curtain texture overlay */
body::before {
    content: '';
    position: fixed; inset: 0;
    background: 
        linear-gradient(90deg, transparent 0%, rgba(160,24,48,0.02) 50%, transparent 100%);
    pointer-events: none; z-index: 0;
}

/* ═══ SUITS BG ═══ */
.suits-bg {
    position: fixed; inset: 0;
    pointer-events: none; z-index: 0; overflow: hidden;
}
.suit-particle {
    position: absolute;
    font-family: serif;
    opacity: 0;
    animation: suitFloat linear infinite;
    pointer-events: none;
    will-change: transform, opacity;
    color: var(--gold);
}
@keyframes suitFloat {
    0%   { transform: translateY(100vh) rotate(0deg) scale(0.6); opacity: 0; }
    10%  { opacity: 0.04; }
    40%  { opacity: 0.06; transform: translateY(40vh) rotate(120deg) scale(1); }
    80%  { opacity: 0.02; }
    100% { transform: translateY(-10vh) rotate(240deg) scale(0.5); opacity: 0; }
}

/* ═══ INTRO ═══ */
#intro {
    position: fixed; inset: 0; z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    background: #000;
    transition: opacity 0.6s ease;
}
#intro.out { opacity: 0; pointer-events: none; }
.intro-inner { text-align: center; }

.intro-suit {
    font-size: 64px; line-height: 1;
    color: var(--crimson-2);
    margin-bottom: 20px;
    opacity: 0; transform: rotate(-90deg) scale(0.3);
    animation: suitIntro 0.8s ease 0.2s forwards;
    text-shadow: 0 0 40px rgba(160,24,48,0.3);
}
@keyframes suitIntro { to { opacity: 1; transform: rotate(0) scale(1); } }

.intro-title {
    font-family: var(--display);
    font-size: clamp(40px, 10vw, 76px);
    font-weight: 900; letter-spacing: 12px;
    text-transform: uppercase; line-height: 1;
    opacity: 0; transform: translateY(16px);
    animation: introFade 0.7s ease 0.6s forwards;
}
.intro-title span { color: var(--crimson-2); text-shadow: 0 0 30px rgba(160,24,48,0.3); }
@keyframes introFade { to { opacity: 1; transform: translateY(0); } }

.intro-suit-two {
    margin-top: 20px;
    font-family: serif; font-size: 28px; letter-spacing: 10px;
    opacity: 0; animation: introFade 0.6s ease 0.9s forwards;
}
.intro-suit-two span:nth-child(odd) { color: var(--crimson-2); }
.intro-suit-two span:nth-child(even) { color: var(--gold); }

/* ═══ NAV ═══ */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 40px;
    transition: background 0.3s, padding 0.3s, border-color 0.3s;
    border-bottom: 1px solid transparent;
}
.nav.scrolled {
    background: rgba(8,6,8,0.92);
    padding: 14px 40px;
    backdrop-filter: blur(16px);
    border-color: var(--border);
}
.nav-back {
    display: flex; align-items: center; gap: 6px;
    font-family: var(--mono); font-size: 8px; letter-spacing: 2px;
    text-transform: uppercase; color: var(--text-3); text-decoration: none;
    transition: color 0.2s;
}
.nav-back:hover { color: var(--gold); }
.nav-logo {
    font-family: var(--display); font-size: 18px; font-weight: 900;
    letter-spacing: 6px; text-transform: uppercase;
}
.nav-logo span { color: var(--crimson-2); }
.nav-tag {
    font-family: var(--mono); font-size: 8px; letter-spacing: 2px;
    text-transform: uppercase; color: var(--text-3);
}

/* ═══ HERO ═══ */
.hero {
    min-height: 100vh;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    text-align: center;
    padding: 120px 40px 80px;
    position: relative; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 50% 40% at 50% 50%, rgba(160,24,48,0.06) 0%, transparent 60%),
        radial-gradient(ellipse 30% 30% at 30% 40%, rgba(201,160,60,0.03) 0%, transparent 50%),
        radial-gradient(ellipse 30% 30% at 70% 60%, rgba(201,160,60,0.03) 0%, transparent 50%);
    pointer-events: none;
}
.hero::after {
    content: ''; position: absolute;
    top: 0; left: 10%; right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--crimson-2), var(--gold), var(--crimson-2), transparent);
    opacity: 0.2;
}

.hero-suit {
    font-family: serif; font-size: 72px; line-height: 1;
    color: var(--crimson-2); margin-bottom: 16px;
    opacity: 0; animation: heroSuitIn 0.8s ease 0.2s forwards;
    text-shadow: 0 0 60px rgba(160,24,48,0.2);
}
@keyframes heroSuitIn {
    from { opacity: 0; transform: scale(0.3) rotate(-30deg); }
    to   { opacity: 1; transform: scale(1) rotate(0); }
}

.hero-title {
    font-family: var(--display);
    font-size: clamp(64px, 15vw, 160px);
    font-weight: 900; letter-spacing: 12px;
    line-height: 0.9; text-transform: uppercase;
    opacity: 0; transform: translateY(20px);
    animation: heroTitleIn 0.8s ease 0.5s forwards;
}
.hero-title span { color: var(--crimson-2); text-shadow: 0 0 60px rgba(160,24,48,0.25); }
@keyframes heroTitleIn { to { opacity: 1; transform: translateY(0); } }

.hero-rule {
    display: flex; align-items: center; gap: 16px;
    margin: 20px auto;
    opacity: 0; animation: heroFade 0.6s ease 0.8s forwards;
}
.hero-rule-line { width: 60px; height: 1px; }
.hero-rule-line:first-child { background: linear-gradient(90deg, transparent, var(--gold)); }
.hero-rule-line:last-child { background: linear-gradient(270deg, transparent, var(--gold)); }
.hero-rule-diamond {
    width: 8px; height: 8px;
    background: var(--gold); transform: rotate(45deg);
    box-shadow: 0 0 12px rgba(201,160,60,0.3);
}
@keyframes heroFade { to { opacity: 1; } }

.hero-sub {
    font-family: var(--display);
    font-size: clamp(13px, 2vw, 20px);
    font-weight: 300; letter-spacing: 10px; text-transform: uppercase;
    color: var(--text-2);
    opacity: 0; animation: heroFade 0.6s ease 1s forwards;
}

.hero-scroll {
    position: absolute; bottom: 40px;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    font-family: var(--mono); font-size: 7px; letter-spacing: 4px;
    text-transform: uppercase; color: var(--text-3);
    opacity: 0; animation: heroFade 0.5s ease 1.2s forwards;
}
.hero-scroll-line {
    width: 1px; height: 24px;
    background: var(--text-3);
    animation: scrollPulse 2.5s ease-in-out infinite;
}
@keyframes scrollPulse {
    0%, 100% { transform: scaleY(1); opacity: 1; }
    50% { transform: scaleY(0.3); opacity: 0.2; }
}

/* ═══ SECTION ═══ */
.section {
    padding: 100px 40px;
    max-width: 1100px; margin: 0 auto;
    position: relative; z-index: 1;
}
.section-header {
    display: flex; align-items: center; gap: 16px;
    margin-bottom: 48px;
}
.section-num {
    font-family: var(--mono); font-size: 10px;
    color: var(--gold); letter-spacing: 2px;
}
.section-line { flex: 1; height: 1px; background: linear-gradient(90deg, var(--border), transparent); }
.section-title {
    font-family: var(--display); font-size: 28px; font-weight: 800;
    letter-spacing: 5px; text-transform: uppercase; white-space: nowrap;
}
.section-title span { color: var(--crimson-2); }

/* ═══ GAMES ═══ */
.games-grid {
    display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1px;
    background: var(--border);
}
.game-card {
    background: var(--bg-1);
    padding: 40px 32px 36px;
    text-align: center;
    transition: background 0.3s;
    position: relative; overflow: hidden;
    display: flex; flex-direction: column; align-items: center;
}
.game-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    transform: scaleX(0); transition: transform 0.4s ease;
}
.game-card:hover::before { transform: scaleX(1); }
.game-card:hover { background: var(--bg-2); }
.game-suit {
    font-size: 34px; margin-bottom: 14px; line-height: 1;
    transition: transform 0.3s ease;
}
.game-card:hover .game-suit { transform: scale(1.15); }
.game-card:nth-child(odd) .game-suit { filter: drop-shadow(0 0 8px rgba(201,160,60,0.2)); }
.game-card:nth-child(even) .game-suit { color: var(--crimson-2); filter: drop-shadow(0 0 8px rgba(160,24,48,0.2)); }

.game-card h3 {
    font-family: var(--display); font-size: 18px; font-weight: 700;
    letter-spacing: 3px; text-transform: uppercase; margin-bottom: 8px;
}
.game-card h3 span { color: var(--crimson-2); }
.game-card p { font-size: 12px; color: var(--text-2); line-height: 1.6; max-width: 260px; }
.game-odds {
    display: inline-block; margin-top: 14px;
    font-family: var(--mono); font-size: 9px; letter-spacing: 1px;
    padding: 4px 12px; background: var(--crimson-dim);
    color: var(--crimson-2);
}

/* ═══ RULES ═══ */
.rules-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
    background: var(--border);
}
.rule-item {
    background: var(--bg-1); padding: 28px;
    display: flex; align-items: flex-start; gap: 16px;
    transition: background 0.2s;
}
.rule-item:hover { background: var(--bg-2); }
.rule-num {
    font-family: var(--serif); font-size: 20px; font-weight: 400;
    color: var(--gold); line-height: 1.4; min-width: 30px; opacity: 0.5;
}
.rule-item p { font-size: 13px; color: var(--text-2); line-height: 1.6; }
.rule-item p strong { color: var(--text); font-weight: 600; }

/* ═══ VIP ═══ */
.vip-card {
    padding: 60px 48px; text-align: center;
    position: relative; overflow: hidden;
    border: 1px solid var(--gold);
    background: var(--bg-1);
}
.vip-card::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(160,24,48,0.03) 0%, transparent 70%);
    pointer-events: none;
}
.vip-card::after {
    content: '♦'; position: absolute;
    top: -30px; right: -20px;
    font-family: serif; font-size: 140px;
    color: var(--crimson-dim); line-height: 1;
    pointer-events: none; opacity: 0.15;
}
.vip-icon {
    font-size: 40px; margin-bottom: 16px; display: block;
    color: var(--gold); animation: vipFloat 4s ease-in-out infinite;
}
@keyframes vipFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.vip-card h3 {
    font-family: var(--display); font-size: 24px; font-weight: 800;
    letter-spacing: 5px; text-transform: uppercase; margin-bottom: 12px;
}
.vip-card h3 span { color: var(--gold); }
.vip-card p {
    font-size: 13px; color: var(--text-2);
    max-width: 520px; margin: 0 auto 24px; line-height: 1.7;
}
.vip-btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 32px; background: transparent;
    border: 1px solid var(--gold); color: var(--gold);
    font-family: var(--mono); font-size: 9px; letter-spacing: 2px;
    text-transform: uppercase; text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.vip-btn:hover { background: var(--gold); color: var(--bg); }

/* ═══ FOOTER ═══ */
.footer {
    border-top: 1px solid var(--border);
    padding: 48px 40px; text-align: center;
    position: relative; z-index: 1;
}
.footer-suits { font-family: serif; font-size: 18px; letter-spacing: 12px; margin-bottom: 10px; }
.footer-suits span:nth-child(odd) { color: var(--crimson-2); }
.footer-suits span:nth-child(even) { color: var(--gold); }
.footer p {
    font-size: 10px; color: var(--text-3);
    font-family: var(--mono); letter-spacing: 2px; text-transform: uppercase;
}

/* ═══ SCROLL REVEAL ═══ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 768px) {
    .nav { padding: 16px 24px; }
    .nav.scrolled { padding: 12px 24px; }
    .nav-logo { font-size: 15px; letter-spacing: 4px; }
    .hero { padding: 100px 24px 60px; }
    .hero-title { letter-spacing: 8px; }
    .hero-sub { letter-spacing: 6px; }
    .section { padding: 64px 24px; }
    .section-title { font-size: 22px; letter-spacing: 3px; }
    .games-grid { grid-template-columns: 1fr 1fr; }
    .rules-grid { grid-template-columns: 1fr; }
    .game-card { padding: 32px 24px 28px; }
    .rule-item { padding: 24px 20px; }
    .vip-card { padding: 40px 24px; }
    .vip-card h3 { font-size: 20px; }
    .footer { padding: 40px 24px; }
}
@media (max-width: 480px) {
    .games-grid { grid-template-columns: 1fr; }
    .hero-title { letter-spacing: 4px; font-size: clamp(48px, 20vw, 64px); }
    .hero-sub { letter-spacing: 4px; }
    .section-title { font-size: 18px; }
    .vip-card { padding: 32px 20px; }
    .vip-card h3 { font-size: 16px; }
}
