:root {
    --bg-base: #0D1014;
    --surface-main: #1B2028;
    --glass-panel: rgba(255, 255, 255, 0.06);
    --royal-gold: #D4AF37;
    --deep-navy: #1E3A5F;
    --marble-white: #F5F5F0;
    --bronze-accent: #A97142;
    --text-primary: #FFFFFF;
    --text-secondary: #D1D5DB;
    --text-muted: #94A3B8;
    --frame-walnut: #2E1B0F;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --border-radius-lg: 22px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

section[id] {
    scroll-margin-top: 115px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    color: var(--text-primary);
}

a {
    text-decoration: none;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--royal-gold);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

.fade-in {
    animation: fadeIn 1s ease forwards;
}

/* HEADER */
.header-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.top-disclaimer {
    background: var(--surface-main);
    color: var(--text-muted);
    font-size: 0.75rem;
    text-align: center;
    padding: 8px 5%;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.royal-header {
    position: relative;
    width: 100%;
    height: 75px;
    background: var(--glass-panel);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    transition: background 0.3s ease;
}

.royal-header .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--royal-gold);
    letter-spacing: 1px;
}

.royal-header .logo-crest {
    width: 32px;
    height: 32px;
    fill: var(--royal-gold);
}

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

.nav-links a {
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.btn-gold {
    background: linear-gradient(135deg, var(--royal-gold), var(--bronze-accent));
    color: var(--bg-base);
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: 600;
    font-family: var(--font-body);
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    color: var(--bg-base);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: 500;
    border: 1px solid var(--text-secondary);
    transition: all 0.3s ease;
}

.btn-outline:hover {
    border-color: var(--royal-gold);
    color: var(--royal-gold);
}

/* THE GRAND FOYER */
.foyer {
    min-height: 100vh;
    padding: 140px 5% 60px;
    position: relative;
    background-image: linear-gradient(to right, rgba(13, 16, 20, 0.85) 0%, rgba(13, 16, 20, 0.5) 100%), url('images/golden-castle-with-a-marble-courtyard-decorative-fountains-a.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
}

.foyer-container {
    display: flex;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    gap: 40px;
}

.foyer-left {
    width: 35%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.foyer-left h2 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 24px;
    background: linear-gradient(to right, var(--marble-white), var(--royal-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.foyer-left p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.foyer-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.trust-badges {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.badge {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.badge svg {
    width: 20px;
    height: 20px;
    fill: var(--royal-gold);
}

.foyer-right {
    width: 65%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.game-frame-wrapper {
    width: 100%;
    max-width: 1100px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.game-frame {
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--bg-base);
    border-radius: var(--border-radius-lg);
    padding: 12px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    background: linear-gradient(145deg, var(--frame-walnut), #110A05);
    border: 2px solid var(--royal-gold);
}

.game-frame::before {
    content: '';
    position: absolute;
    top: 4px; left: 4px; right: 4px; bottom: 4px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 18px;
    pointer-events: none;
}

.game-frame iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
    background: var(--bg-base);
}

.game-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.control-btn {
    background: var(--glass-panel);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-secondary);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.control-btn:hover {
    background: rgba(255,255,255,0.1);
    color: var(--marble-white);
    border-color: var(--royal-gold);
}

/* THE ROYAL ARENA */
.royal-arena {
    padding: 80px 5%;
    background: var(--surface-main);
}

.ribbons-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ribbon {
    display: flex;
    align-items: center;
    padding: 30px 40px;
    background: var(--bg-base);
    transition: transform 0.3s ease, background 0.3s ease;
    border-left: 4px solid transparent;
}

.ribbon:hover {
    background: rgba(212, 175, 55, 0.03);
    border-left-color: var(--royal-gold);
    transform: translateX(10px);
}

.ribbon-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 40px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    color: var(--royal-gold);
}

.ribbon-content h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
    color: var(--marble-white);
}

.ribbon-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* THE HALL OF HONOR */
.hall-of-honor {
    padding: 120px 5%;
    background: var(--bg-base);
    position: relative;
}

.hall-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hall-article h2 {
    font-size: 3rem;
    margin-bottom: 30px;
    color: var(--royal-gold);
}

.hall-article p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-family: var(--font-heading);
}

.hall-article p.body-text {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-muted);
}

.hall-image {
    margin-top: 40px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    border: 2px solid rgba(212, 175, 55, 0.5);
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.25);
}

.hall-image img {
    transition: transform 0.8s ease, filter 0.4s ease;
    filter: brightness(1.15) contrast(1.1);
    width: 100%;
}

.hall-image:hover img {
    transform: scale(1.05);
    filter: brightness(1.25) contrast(1.15);
}

.hall-image::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    box-shadow: inset 0 0 20px rgba(255,255,255,0.1);
    pointer-events: none;
}

.specs-panel {
    background: var(--surface-main);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 50px;
    border-radius: 8px;
    position: relative;
}

.specs-panel::before {
    content: '';
    position: absolute;
    top: 20px; left: 20px; right: 20px; bottom: 20px;
    border: 1px dashed rgba(212, 175, 55, 0.2);
    pointer-events: none;
}

.specs-title {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 40px;
    text-align: center;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.spec-item:last-child {
    border-bottom: none;
}

.spec-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.spec-value {
    color: var(--royal-gold);
    font-weight: 500;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    text-align: right;
}

/* THE TREASURY */
.treasury {
    padding: 120px 0;
    background: var(--surface-main);
}

.treasury-panel {
    display: flex;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto 120px;
    padding: 0 5%;
    gap: 60px;
}

.treasury-panel.reverse {
    flex-direction: row-reverse;
}

.treasury-panel.center {
    flex-direction: column;
    text-align: center;
    margin-bottom: 0;
    max-width: 800px;
}

.treasury-content {
    flex: 1;
}

.treasury-content h3 {
    font-size: 2.5rem;
    margin-bottom: 24px;
    color: var(--marble-white);
}

.treasury-content p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

.treasury-img-wrapper {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid rgba(212, 175, 55, 0.5);
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.25);
}

.treasury-img-wrapper img {
    transition: transform 0.8s ease, filter 0.4s ease;
    filter: brightness(1.15) contrast(1.1);
    width: 100%;
}

.treasury-panel:hover .treasury-img-wrapper img {
    transform: scale(1.03);
    filter: brightness(1.25) contrast(1.15);
}

.dec-illustration {
    width: 60px;
    height: 60px;
    margin: 0 auto 30px;
    opacity: 0.8;
}

.dec-illustration svg {
    fill: none;
    stroke: var(--royal-gold);
    stroke-width: 1;
}

/* THE ROYAL OFFICE */
.royal-office {
    padding: 120px 5%;
    background: var(--bg-base);
}

.office-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.support-info h2 {
    font-size: 2.5rem;
    color: var(--royal-gold);
    margin-bottom: 40px;
}

.info-block {
    margin-bottom: 40px;
}

.info-block h4 {
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.info-block p {
    font-size: 1.1rem;
    color: var(--marble-white);
}

.faq-list {
    list-style: none;
    margin-top: 30px;
}

.faq-list li {
    padding: 20px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
}

.faq-list li::before {
    content: '—';
    color: var(--royal-gold);
    margin-right: 15px;
}

.contact-form {
    background: var(--glass-panel);
    padding: 50px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
}

.form-group {
    margin-bottom: 24px;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 16px;
    border-radius: 4px;
    color: var(--text-primary);
    font-family: var(--font-body);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--royal-gold);
}

.form-group textarea {
    height: 150px;
    resize: none;
}

.btn-submit {
    width: 100%;
    padding: 18px;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

/* FOOTER */
.site-footer {
    position: relative;
    padding: 60px 5% 40px;
    background-image: linear-gradient(to top, rgba(13, 16, 20, 0.95) 20%, rgba(13, 16, 20, 0.6) 100%), url('images/golden-castle-with-a-marble-courtyard-decorative-fountains-a.png');
    background-size: cover;
    background-position: center;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto 40px;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--marble-white);
}

.footer-logo svg {
    width: 28px;
    height: 28px;
    fill: var(--marble-white);
}

.footer-nav {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-nav a {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-nav a:hover {
    color: var(--marble-white);
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.notices {
    display: flex;
    align-items: center;
    gap: 20px;
}

.badge-18 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--text-muted);
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: bold;
    color: var(--text-muted);
}

.notice-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    max-width: 400px;
}

.copyright {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* LEGAL PAGES */
.legal-page {
    padding: 180px 5% 80px;
    max-width: 1000px;
    margin: 0 auto;
    min-height: 80vh;
}

.legal-page h1 {
    font-size: 3rem;
    color: var(--royal-gold);
    margin-bottom: 20px;
}

.legal-date {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 60px;
    display: block;
}

.legal-content h2 {
    font-size: 1.8rem;
    margin: 40px 0 20px;
    color: var(--marble-white);
}

.legal-content p {
    margin-bottom: 20px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.legal-content ul {
    margin: 20px 0 20px 40px;
    color: var(--text-secondary);
}

.legal-content li {
    margin-bottom: 10px;
}

/* RESPONSIVE DESIGN */
.hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--marble-white);
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 1024px) {
    .foyer-container,
    .hall-container,
    .office-container {
        grid-template-columns: 1fr;
        flex-direction: column-reverse;
        gap: 60px;
    }
    
    .foyer-left, .foyer-right {
        width: 100%;
    }

    .treasury-panel, .treasury-panel.reverse {
        flex-direction: column;
        text-align: center;
    }
    
    .nav-links, .royal-header .btn-gold {
        display: none;
    }
    
    .hamburger {
        display: block;
    }
    
    .spec-item {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .spec-value {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .foyer {
        padding-top: 130px;
    }
    
    .foyer-left h2 {
        font-size: 2.5rem;
        text-align: center;
    }
    
    .foyer-left p {
        text-align: center;
    }
    
    .foyer-actions {
        justify-content: center;
    }
    
    .hall-article h2, .treasury-content h3, .support-info h2 {
        font-size: 2rem;
    }
    
    .ribbon {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }
    
    .ribbon-icon {
        margin: 0 0 20px 0;
    }
    
    .footer-top {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-nav {
        justify-content: center;
    }
    
    .notices {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
}