:root {
    --bg-color: #F6F3EC;
    --surface-color: #FFFFFF;
    --royal-blue: #163C73;
    --gold: #D4AF37;
    --parchment: #EFE2BF;
    --brass: #B8872A;
    --text-color: #2B2B2B;
    --muted-color: #707070;
    
    --font-heading: 'Georgia', serif;
    --font-body: 'Arial', sans-serif;
}

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

html {
    scroll-padding-top: 70px; /* Aligns smooth scroll appropriately with the sticky header */
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .logo {
    font-family: var(--font-heading);
    color: var(--royal-blue);
    font-weight: normal;
}

/* Typography */
h1 { font-size: 3rem; margin-bottom: 1rem; }
h2 { font-size: 2.2rem; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.8rem; }
p { margin-bottom: 1rem; }
.mt-30 { margin-top: 30px; }

/* Buttons */
.btn-gold {
    display: inline-block;
    background-color: var(--gold);
    color: var(--surface-color);
    padding: 12px 30px;
    border: none;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    cursor: pointer;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}
.btn-gold:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}
.btn-muted {
    display: inline-block;
    background-color: transparent;
    color: var(--muted-color);
    padding: 12px 30px;
    border: 1px solid var(--muted-color);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    cursor: pointer;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.25s ease;
}
.btn-muted:hover {
    color: var(--text-color);
    border-color: var(--text-color);
}

/* Top Legal Disclaimer */
.top-disclaimer {
    background-color: #111;
    color: #ccc;
    text-align: center;
    padding: 10px 15px;
    font-size: 0.85rem;
    font-family: var(--font-body);
    font-weight: bold;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1002;
    border-bottom: 1px solid #333;
}

/* Floating Navigation Bar */
.royal-nav {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background-color: var(--royal-blue);
    border-bottom: 3px solid var(--gold);
    z-index: 1000;
}

.nav-container {
    max-width: 1600px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.25s ease;
}
.logo:hover {
    opacity: 0.9;
}
.royal-nav .logo img {
    height: 50px;
    width: auto;
    display: block;
}

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

.nav-links a {
    color: var(--surface-color);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    transition: color 0.25s ease;
}

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

.play-now-btn {
    padding: 8px 24px;
    font-size: 1rem;
}

/* Images */
.royal-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    max-height: 360px;
    object-fit: cover;
    border: 4px solid var(--gold);
    border-radius: 4px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* Strategy Table Section */
.strategy-table {
    padding: 60px 40px;
    max-width: 1600px;
    margin: 0 auto;
}

.table-surface {
    background-color: var(--surface-color);
    background-image: linear-gradient(45deg, rgba(239, 226, 191, 0.2) 25%, transparent 25%, transparent 75%, rgba(239, 226, 191, 0.2) 75%, rgba(239, 226, 191, 0.2)), linear-gradient(45deg, rgba(239, 226, 191, 0.2) 25%, transparent 25%, transparent 75%, rgba(239, 226, 191, 0.2) 75%, rgba(239, 226, 191, 0.2));
    background-size: 40px 40px;
    background-position: 0 0, 20px 20px;
    border: 12px solid var(--brass);
    padding: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    box-shadow: inset 0 0 50px rgba(0,0,0,0.05), 0 20px 40px rgba(0,0,0,0.1);
}

.table-content {
    flex: 1;
    max-width: 600px;
}

.table-content h1 {
    font-size: 3.5rem;
    color: var(--text-color);
    text-shadow: 1px 1px 0px rgba(255,255,255,0.8);
}

.table-content p {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 30px;
    font-family: var(--font-heading);
}

.table-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
}

/* Game Area Grid */
.war-room-grid {
    max-width: 1600px;
    margin: 60px auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

/* Battle Notes (Left) */
.battle-notes {
    width: 260px;
    background-color: var(--parchment);
    padding: 40px 30px;
    position: relative;
    box-shadow: 2px 5px 15px rgba(0,0,0,0.1);
    font-family: var(--font-heading);
    border-left: 5px solid var(--royal-blue);
}

.battle-notes .pin {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background-color: #333;
    border-radius: 50%;
    box-shadow: inset -2px -2px 4px rgba(0,0,0,0.5), 2px 2px 4px rgba(0,0,0,0.2);
}

.notes-list {
    list-style: none;
    margin-top: 20px;
}

.notes-list li {
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(184, 135, 42, 0.3);
    padding-bottom: 10px;
    color: var(--text-color);
}
.notes-list li strong {
    display: block;
    color: var(--royal-blue);
    font-size: 1.1rem;
}

/* Center Game */
.game-center {
    width: 1020px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.game-frame-wrapper {
    width: 1020px;
    background-color: var(--surface-color);
    padding: 15px;
    border-radius: 25px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.game-frame {
    width: 100%;
    height: 574px; /* Approx 16:9 for 1020 width */
    background-color: #000;
    border: 4px solid var(--gold);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.velvet-corner {
    position: absolute;
    width: 40px;
    height: 40px;
    background-color: var(--royal-blue);
    border: 2px solid var(--gold);
    z-index: 2;
}
/* Cut corners to make triangle shapes */
.velvet-corner.top-left { top: -20px; left: -20px; transform: rotate(45deg); }
.velvet-corner.top-right { top: -20px; right: -20px; transform: rotate(45deg); }
.velvet-corner.bottom-left { bottom: -20px; left: -20px; transform: rotate(45deg); }
.velvet-corner.bottom-right { bottom: -20px; right: -20px; transform: rotate(45deg); }

.game-frame iframe {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    border: none;
}

.game-controls {
    margin-top: 30px;
    display: flex;
    gap: 20px;
    justify-content: center;
    width: 100%;
}

/* Royal Compass (Right) */
.royal-compass {
    width: 260px;
    background-color: var(--brass);
    padding: 10px;
    border: 4px solid var(--gold);
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5), 0 10px 20px rgba(0,0,0,0.2);
}

.compass-engraving {
    border: 2px solid rgba(255,255,255,0.2);
    padding: 30px 20px;
    text-align: center;
    height: 100%;
}

.compass-engraving h2 {
    color: var(--surface-color);
    font-size: 1.6rem;
    border-bottom: 2px solid var(--gold);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.data-row {
    margin-bottom: 15px;
    color: var(--surface-color);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.data-row span {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--parchment);
    margin-bottom: 4px;
}
.data-row strong {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: normal;
}

/* War Planning Corridor */
.planning-corridor {
    background-color: var(--surface-color);
    padding: 80px 40px;
    border-top: 2px solid var(--brass);
    border-bottom: 2px solid var(--brass);
}

.corridor-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    position: relative;
}

.brass-line {
    position: absolute;
    top: 35px;
    left: 10%;
    right: 10%;
    height: 4px;
    background-color: var(--brass);
    z-index: 1;
}

.station {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 22%;
    background: var(--surface-color);
    padding: 0 10px;
}

.station-icon {
    width: 70px;
    height: 70px;
    background-color: var(--royal-blue);
    color: var(--gold);
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 4px solid var(--gold);
    margin: 0 auto 20px auto;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

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

/* Commander Office */
.commander-office {
    max-width: 1600px;
    margin: 80px auto;
    padding: 0 40px;
}

.office-header h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
}
.office-header h2::after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background-color: var(--gold);
    margin: 15px auto 0;
}

.office-grid {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.office-decor, .office-support, .office-form {
    flex: 1;
    background-color: var(--surface-color);
    padding: 40px;
    border-radius: 4px;
    border-top: 4px solid var(--royal-blue);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.office-decor {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border: none;
    box-shadow: none;
}

.support-email {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-color);
    letter-spacing: 1px;
}

.faq-list {
    list-style: none;
}
.faq-list li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed var(--muted-color);
}
.faq-list li:last-child {
    border: none;
}

.royal-form .form-group {
    margin-bottom: 20px;
}
.royal-form label {
    display: block;
    font-family: var(--font-heading);
    margin-bottom: 8px;
    color: var(--royal-blue);
}
.royal-form input, .royal-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--brass);
    background-color: var(--bg-color);
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
}
.royal-form input:focus, .royal-form textarea:focus {
    border-color: var(--royal-blue);
}
.royal-form button {
    width: 100%;
}

/* Footer */
.royal-footer {
    background-color: var(--royal-blue);
    color: var(--surface-color);
    padding: 60px 40px 30px;
    border-top: 4px solid var(--gold);
}

.footer-container {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-brand .logo img {
    height: 60px;
    width: auto;
    margin-bottom: 15px;
    display: block;
}
.copyright {
    color: rgba(255,255,255,0.6);
}

.footer-links h4 {
    color: var(--gold);
    margin-bottom: 20px;
    font-size: 1.2rem;
}
.footer-links ul {
    list-style: none;
}
.footer-links li {
    margin-bottom: 10px;
}
.footer-links a {
    color: var(--surface-color);
    text-decoration: none;
    transition: color 0.25s ease;
}
.footer-links a:hover {
    color: var(--gold);
}

.footer-notices {
    max-width: 400px;
}
.age-badge {
    display: inline-block;
    border: 2px solid var(--surface-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    line-height: 36px;
    text-align: center;
    font-weight: bold;
    margin-bottom: 15px;
}
.footer-notices p {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

/* ---------------------------------------------------
   COOKIE POLICY BANNER (POPUP MODAL)
   --------------------------------------------------- */
.cookie-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.75); /* overlay */
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.cookie-banner.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.cookie-banner-content {
    background-color: var(--surface-color);
    max-width: 550px;
    width: 90%;
    border-radius: 8px;
    border: 4px solid var(--gold);
    padding: 40px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
    position: relative;
    transform: translateY(0) scale(1);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.cookie-banner.hidden .cookie-banner-content {
    transform: translateY(20px) scale(0.95);
}

.cookie-banner-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.cookie-banner .cookie-icon {
    font-size: 3.5rem;
    line-height: 1;
}

.cookie-banner .cookie-title {
    color: var(--royal-blue);
    margin-bottom: 10px;
    font-size: 2rem;
    font-family: var(--font-heading);
}

.cookie-banner .cookie-desc {
    color: var(--text-color);
    margin-bottom: 0;
    font-size: 1.1rem;
    line-height: 1.6;
}

.cookie-banner .cookie-desc a {
    color: var(--royal-blue);
    font-weight: bold;
    text-decoration: underline;
}

.cookie-banner .cookie-desc a:hover {
    color: var(--gold);
    text-decoration: none;
}

.cookie-banner .cookie-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: 100%;
}

.cookie-banner .cookie-actions button {
    flex: 1;
    max-width: 200px;
}

.cookie-banner .btn-muted {
    border-color: var(--muted-color);
    color: var(--text-color);
}

.cookie-banner .btn-muted:hover {
    background-color: rgba(0,0,0,0.05);
    border-color: var(--text-color);
}

.cookie-banner .cookie-close-x {
    position: absolute;
    top: 15px;
    right: 20px;
    background: transparent;
    color: var(--muted-color);
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    margin-left: 0;
    transition: color 0.25s, transform 0.25s;
    font-family: var(--font-body);
}

.cookie-banner .cookie-close-x:hover {
    color: var(--royal-blue);
    transform: scale(1.1);
}

@media (max-width: 900px) {
    .cookie-banner-content {
        padding: 30px 20px;
    }
    .cookie-banner .cookie-actions {
        flex-direction: column;
    }
    .cookie-banner .cookie-actions button {
        max-width: 100%;
    }
}

/* ---------------------------------------------------
   LEGAL PAGES GENERAL
   --------------------------------------------------- */
.legal-page {
    max-width: 1000px;
    margin: 100px auto;
    padding: 60px;
    background-color: var(--surface-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-top: 6px solid var(--royal-blue);
}

.legal-header {
    text-align: center;
    margin-bottom: 50px;
}

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

.legal-content h2 {
    margin-top: 40px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--brass);
}

.return-home {
    display: inline-block;
    margin: 30px 0;
}

/* ---------------------------------------------------
   COOKIE POLICY RECIPE BOOK
   --------------------------------------------------- */
.recipe-book-wrapper {
    background: url('images/premium-medieval-museum-hall.jpg') center/cover no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    padding: 100px 40px;
}

.recipe-book {
    max-width: 1100px;
    margin: 0 auto;
    background-color: var(--parchment);
    padding: 60px 80px;
    border-radius: 5px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.4), inset 0 0 80px rgba(184, 135, 42, 0.2);
    position: relative;
    color: #4A3018; /* Chocolate brown text */
}

/* The Spine */
.recipe-book::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 6px;
    transform: translateX(-50%);
    background: linear-gradient(to right, rgba(0,0,0,0.1), rgba(0,0,0,0.05) 50%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0.1));
}

.recipe-book-content {
    column-count: 2;
    column-gap: 100px;
    column-rule: 1px solid rgba(184, 135, 42, 0.3);
}

.recipe-book h1, .recipe-book h2 {
    color: #3B2110;
    font-family: var(--font-heading);
}

.recipe-book h1 {
    column-span: all;
    text-align: center;
    margin-bottom: 40px;
    font-size: 3.5rem;
    border-bottom: 2px solid #3B2110;
    padding-bottom: 20px;
}

.recipe-book h2 {
    margin-top: 30px;
    font-size: 1.8rem;
}

.recipe-book p, .recipe-book ul {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    line-height: 1.8;
}
.recipe-book ul {
    margin-left: 20px;
    margin-bottom: 20px;
}
.cookie-illustration {
    text-align: center;
    font-size: 80px;
    margin: 20px 0;
    column-span: all;
}

/* Responsive adjustments */
@media (max-width: 1400px) {
    .war-room-grid { flex-wrap: wrap; justify-content: center; }
    .game-center { order: -1; margin-bottom: 40px; width: 100%; max-width: 1020px; }
    .battle-notes, .royal-compass { width: calc(50% - 20px); }
    .corridor-container { flex-wrap: wrap; gap: 40px; }
    .station { width: 45%; }
    .brass-line { display: none; }
}
@media (max-width: 900px) {
    .table-surface, .office-grid { flex-direction: column; }
    .battle-notes, .royal-compass { width: 100%; }
    .station { width: 100%; }
    .recipe-book-content { column-count: 1; }
    .recipe-book::before { display: none; }
    .game-frame { height: 400px; }
}