@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;600;700&family=Outfit:wght@300;400;600&display=swap');

/* 1. Variables */
:root {
    --bg-primary: #1a120b;
    --bg-secondary: #2b1d13;
    
    --okt-gold: #fbbf24;
    --okt-amber: #fb923c;
    --fest-red: #b91c1c;
    --cream-white: #fef3c7;
    --rustic-brown: #78350f;
    
    --text-primary: #fff7ed;
    --text-secondary: #fde68a;
    --text-muted: #a16207;
    
    --glow-gold: rgba(251,191,36,0.45);
    --glow-amber: rgba(251,146,60,0.35);
    --glow-red: rgba(185,28,28,0.35);
    
    --glass-wood: rgba(255,255,255,0.05);
    --glass-blur: blur(14px);
    
    --grad-golden-beer: linear-gradient(135deg, var(--okt-gold), var(--okt-amber));
    --grad-festive: linear-gradient(135deg, var(--fest-red), var(--okt-gold));
    --grad-tavern: linear-gradient(135deg, var(--rustic-brown), var(--okt-amber));
    
    --font-heading: 'Lora', serif;
    --font-body: 'Outfit', sans-serif;
    
    --container-max: 1280px;
    --radius-btn: 12px;
    --radius-card: 16px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 2. Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/rustic-wood-texture.jpg') center/cover;
    opacity: 0.03;
    pointer-events: none;
    z-index: -1;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--cream-white);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* 3. Layout */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
}

.section {
    padding: 80px 0;
}

/* 4. Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(43, 29, 19, 0.85);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid rgba(251, 191, 36, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5), 0 0 15px var(--glow-amber);
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 24px;
    color: var(--okt-gold);
    text-shadow: 0 0 10px var(--glow-gold);
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--text-primary);
    font-weight: 600;
    position: relative;
    padding: 8px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--grad-golden-beer);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--text-secondary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
    box-shadow: 0 0 8px var(--glow-gold);
}

.mobile-toggle {
    display: none;
    font-size: 28px;
    color: var(--okt-gold);
    cursor: pointer;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--bg-secondary);
        flex-direction: column;
        padding: 24px;
        border-bottom: 2px solid var(--okt-gold);
        box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    }
    .nav-links.active {
        display: flex;
    }
    .mobile-toggle {
        display: block;
    }
}

/* 5. Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
    background: linear-gradient(to right, rgba(26, 18, 11, 0.95) 0%, rgba(43, 29, 19, 0.6) 100%),
                url('images/oktoberfest-festival-tent-golden-lights.jpg') center/cover no-repeat;
    animation: bgZoom 20s infinite alternate;
}

.hero-content {
    max-width: 650px;
    position: relative;
    z-index: 2;
    animation: fadeIn 1s ease-out forwards;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 24px;
    background: var(--grad-golden-beer);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 40px var(--glow-gold);
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-weight: 300;
}

.hero-legal {
    margin-top: 32px;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-left: 3px solid var(--okt-amber);
    padding-left: 16px;
    background: rgba(0,0,0,0.3);
    padding: 12px 16px;
    border-radius: 0 var(--radius-btn) var(--radius-btn) 0;
}

.lantern-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--glow-gold) 0%, transparent 70%);
    top: 20%;
    left: 10%;
    pointer-events: none;
    animation: flicker 4s infinite alternate;
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1.1rem; }
}

/* 6. Game Section */
.game-section {
    background: var(--bg-secondary);
    position: relative;
    padding: 100px 0;
    border-top: 1px solid rgba(251, 146, 60, 0.2);
    border-bottom: 1px solid rgba(251, 146, 60, 0.2);
}

.game-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at center, var(--glow-amber) 0%, transparent 60%);
    opacity: 0.3;
    pointer-events: none;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 16px;
    color: var(--okt-gold);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 48px;
    font-size: 1.1rem;
}

.game-container {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--bg-primary);
    padding: 12px;
    border-radius: var(--radius-card);
    border: 2px solid rgba(251, 191, 36, 0.4);
    box-shadow: 0 20px 50px rgba(0,0,0,0.8), 0 0 30px var(--glow-gold);
    position: relative;
}

.game-frame {
    width: 100%;
    min-height: 500px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-primary);
    display: flex;
}

/* Slot Game Styles */
.slot-machine {
    width: 100%;
    background: var(--bg-primary);
    background-image: radial-gradient(circle at center, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
    position: relative;
}

.slot-header {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 500px;
    margin-bottom: 30px;
    align-items: center;
}

.slot-header h3 {
    color: var(--okt-gold);
    font-size: 1.8rem;
    margin: 0;
    text-shadow: 0 0 10px var(--glow-gold);
}

.balance {
    font-size: 1.2rem;
    color: var(--cream-white);
    background: rgba(0,0,0,0.6);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid var(--okt-gold);
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}

.balance span {
    color: var(--okt-gold);
    font-weight: 700;
}

.reels {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    background: var(--rustic-brown);
    padding: 24px;
    border-radius: 12px;
    border: 4px solid #3d1c04;
    box-shadow: inset 0 0 30px rgba(0,0,0,0.9), 0 10px 20px rgba(0,0,0,0.5);
}

.reel {
    width: 110px;
    height: 130px;
    background: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 70px;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.4);
    border: 2px solid #b45309;
    overflow: hidden;
    position: relative;
}

.reel-inner {
    line-height: 1;
    transition: transform 0.05s linear;
}

.slot-controls {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
}

.btn-spin {
    font-size: 1.5rem;
    padding: 16px 48px;
    box-shadow: 0 0 20px var(--glow-gold);
}

.btn-spin:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.slot-message {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--cream-white);
    height: 35px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    transition: color 0.3s;
    text-align: center;
}

@media (max-width: 768px) {
    .game-frame {
        min-height: 400px;
    }
    .reels {
        gap: 12px;
        padding: 16px;
    }
    .reel {
        width: 80px;
        height: 100px;
        font-size: 50px;
    }
    .slot-header {
        flex-direction: column;
        gap: 16px;
        margin-bottom: 24px;
    }
    .btn-spin {
        padding: 12px 32px;
        font-size: 1.2rem;
    }
}

/* 7. Cards / Features */
.features-section {
    background: var(--bg-primary);
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.feature-card {
    background: var(--glass-wood);
    border: 1px solid rgba(251, 191, 36, 0.1);
    border-radius: var(--radius-card);
    padding: 24px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--okt-gold);
    box-shadow: 0 10px 30px var(--glow-amber);
    background: rgba(255,255,255,0.08);
}

.feature-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 24px;
    border: 1px solid rgba(0,0,0,0.5);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--cream-white);
}

.feature-card p {
    color: var(--text-muted);
}

/* 8. Footer */
.footer {
    background: #0f0a06;
    padding: 60px 0 24px;
    border-top: 2px solid var(--rustic-brown);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    color: var(--okt-gold);
    font-size: 1.8rem;
    margin-bottom: 16px;
}

.footer-brand p {
    color: var(--text-muted);
}

.footer-links h4 {
    color: var(--cream-white);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: var(--text-secondary);
}

.footer-links ul li a:hover {
    color: var(--okt-gold);
    padding-left: 8px;
}

.footer-legal {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-legal p {
    margin-bottom: 8px;
}

.disclaimer-box {
    border: 1px solid var(--fest-red);
    background: rgba(185, 28, 28, 0.1);
    padding: 16px;
    border-radius: 8px;
    margin-top: 16px;
    color: var(--cream-white);
    text-align: center;
}

/* 9. Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bgZoom {
    0% { background-size: 100%; }
    100% { background-size: 110%; }
}

@keyframes flicker {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.05); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.particles {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 1;
    background-image: radial-gradient(var(--okt-gold) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.1;
    animation: float 10s infinite linear;
}

/* 10. Utilities & Button System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: var(--radius-btn);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--grad-golden-beer);
    color: #1a120b;
    box-shadow: 0 4px 15px var(--glow-amber);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px var(--glow-gold);
    color: #000;
}

.btn-primary:active {
    transform: translateY(1px);
}

.btn-secondary {
    background: transparent;
    color: var(--okt-gold);
    border: 2px solid var(--okt-gold);
}

.btn-secondary:hover {
    background: rgba(251, 191, 36, 0.1);
    box-shadow: 0 0 15px var(--glow-gold);
}

/* Internal Page Headers */
.page-header {
    padding: 160px 0 80px;
    background: var(--grad-tavern);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 40px;
    background: linear-gradient(to top, var(--bg-primary), transparent);
}

.content-box {
    background: var(--glass-wood);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: var(--radius-card);
    padding: 40px;
    margin: -40px auto 80px;
    position: relative;
    z-index: 10;
    max-width: 900px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

/* Contact Form */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    padding: 16px;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--rustic-brown);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-body);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--okt-gold);
    box-shadow: 0 0 10px var(--glow-amber);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.inner-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: var(--radius-card);
    margin-bottom: 32px;
    border: 2px solid var(--rustic-brown);
}