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

:root {
    /* Color System */
    --bg-primary: #0B1220;
    --bg-secondary: #182236;
    --surface: rgba(255, 255, 255, 0.05);
    --surface-hover: rgba(255, 255, 255, 0.08);
    --royal-gold: #D4AF37;
    --royal-gold-dim: #a6892b;
    --deep-sapphire: #284B8C;
    --royal-crimson: #7B2232;
    --ancient-silver: #BFC7D5;
    --dark-stone: #3A465B;
    --text-primary: #F8F8F4;
    --text-secondary: #D7D9DE;
    --text-muted: #A4ACB8;

    /* Layout & Spacing */
    --max-width: 1280px;
    --spacing-desktop: 120px;
    --spacing-tablet: 80px;
    --spacing-mobile: 60px;
    --border-radius-btn: 18px;
    --border-radius-card: 24px;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .cinematic-text {
    font-family: 'Cinzel', serif;
    font-weight: 600;
    color: var(--royal-gold);
    line-height: 1.2;
}

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

a:hover {
    color: var(--text-primary);
}

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

ul {
    list-style: none;
}

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

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

.grid-12 {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
}

section {
    padding: var(--spacing-desktop) 0;
}

@media (max-width: 1024px) {
    section { padding: var(--spacing-tablet) 0; }
}

@media (max-width: 768px) {
    section { padding: var(--spacing-mobile) 0; }
    .grid-12 { grid-template-columns: 1fr; }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: var(--border-radius-btn);
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--royal-gold), var(--royal-gold-dim));
    color: var(--bg-primary);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ebd173, var(--royal-gold));
    color: var(--bg-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
}

.btn-primary:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.2);
}

.btn-secondary {
    background: var(--surface);
    color: var(--royal-gold);
    border: 1px solid var(--royal-gold);
}

.btn-secondary:hover {
    background: var(--royal-gold);
    color: var(--bg-primary);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(11, 18, 32, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--surface);
    display: flex;
    flex-direction: column;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--royal-gold);
}

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

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

.nav-links a {
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.mobile-menu-btn {
    display: none;
    color: var(--royal-gold);
    font-size: 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
}

@media (max-width: 900px) {
    .nav-links { display: none; }
    .header-cta { display: none; }
    .mobile-menu-btn { display: block; }
}

/* Compliance Badges */
.compliance-banner {
    background: transparent;
    border-bottom: 1px solid var(--surface);
    color: var(--text-secondary);
    text-align: center;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    width: 100%;
}

.compliance-panel {
    background: var(--surface);
    border: 1px solid var(--dark-stone);
    border-radius: var(--border-radius-card);
    padding: 24px;
    margin: 32px 0;
    display: flex;
    align-items: center;
    gap: 20px;
}

.compliance-panel .icon {
    font-size: 2.5rem;
    color: var(--ancient-silver);
}

.compliance-text p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.age-badge {
    display: inline-block;
    border: 2px solid var(--text-primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    line-height: 36px;
    text-align: center;
    font-weight: 700;
    font-size: 14px;
    margin-right: 12px;
}

/* Hero Section */
.hero {
    position: relative;
    padding-top: 180px;
    padding-bottom: var(--spacing-desktop);
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: var(--bg-primary);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/page-background-medieval-castle.jpg') center/cover no-repeat;
    opacity: 0.3;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, var(--bg-primary) 0%, transparent 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    grid-column: 1 / 8;
}

.hero-visual {
    position: relative;
    z-index: 2;
    grid-column: 8 / 13;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 24px;
    text-shadow: 2px 4px 10px rgba(0,0,0,0.5);
}

.hero-desc {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-ctas {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

@media (max-width: 1024px) {
    .hero-content { grid-column: 1 / -1; text-align: center; }
    .hero-visual { display: none; }
    .hero-desc { margin: 0 auto 40px auto; }
    .hero-ctas { justify-content: center; }
}

@media (max-width: 768px) {
    .hero-title { font-size: 2.8rem; }
}

/* Game Showcase */
.showcase {
    background: var(--bg-secondary);
    position: relative;
}

.showcase::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--royal-gold), transparent);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.game-container {
    background: var(--bg-primary);
    border: 2px solid var(--dark-stone);
    border-radius: var(--border-radius-card);
    padding: 12px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    max-width: 1000px;
    margin: 0 auto;
}

.game-container::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    border: 1px solid var(--royal-gold);
    border-radius: var(--border-radius-card);
    pointer-events: none;
    opacity: 0.3;
}

.iframe-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #000;
}

.iframe-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.game-info {
    text-align: center;
    margin-top: 32px;
}

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

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

.feature-card {
    background: var(--surface);
    border: 1px solid var(--dark-stone);
    border-radius: var(--border-radius-card);
    padding: 40px 32px;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--royal-gold-dim);
    background: var(--surface-hover);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 24px;
}

.feature-card h3 {
    margin-bottom: 16px;
    font-size: 1.4rem;
}

/* Content Pages (About, Terms, etc.) */
.page-header {
    padding-top: 180px;
    padding-bottom: 60px;
    background: var(--bg-secondary);
    text-align: center;
    border-bottom: 1px solid var(--dark-stone);
}

.page-header h1 {
    font-size: 3rem;
}

.content-section {
    max-width: 800px;
    margin: 0 auto;
}

.content-section h2 {
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 2rem;
}

.content-section h3 {
    margin-top: 30px;
    margin-bottom: 16px;
    font-size: 1.4rem;
    color: var(--text-primary);
}

.content-section p {
    margin-bottom: 24px;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.content-section ul {
    list-style: disc;
    padding-left: 24px;
    margin-bottom: 24px;
    color: var(--text-secondary);
}

.content-section li {
    margin-bottom: 12px;
}

/* Contact Form */
.contact-form {
    background: var(--surface);
    padding: 40px;
    border-radius: var(--border-radius-card);
    border: 1px solid var(--dark-stone);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--royal-gold);
    font-family: 'Cinzel', serif;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px;
    background: var(--bg-primary);
    border: 1px solid var(--dark-stone);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
}

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

/* Footer */
footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--dark-stone);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    gap: 40px;
    margin-bottom: 60px;
}

@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; }
}

.footer-col h4 {
    color: var(--text-primary);
    margin-bottom: 24px;
    font-size: 1.2rem;
}

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

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

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

.footer-compliance-box {
    background: var(--bg-primary);
    border: 1px solid var(--dark-stone);
    padding: 20px;
    border-radius: 12px;
}

.footer-compliance-box p {
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.footer-compliance-box p:last-child {
    margin-bottom: 0;
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--dark-stone);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--surface);
    border-radius: 50%;
    color: var(--text-primary);
}

.social-links a:hover {
    background: var(--royal-gold);
    color: var(--bg-primary);
}