@font-face {
    font-family: 'Halbfette Secession';
    src: url('../fonts/HalbfetteSecession.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #111111;
    color: #e4e4e7;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

.font-halbfette {
    font-family: 'Halbfette Secession', 'Arial Black', sans-serif;
}

.accent-color {
    color: #d3bc8d;
}

.bg-accent {
    background-color: #d3bc8d;
}

.border-accent {
    border-color: #d3bc8d;
}

::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #18181b; 
}
::-webkit-scrollbar-thumb {
    background: #d3bc8d;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #bca776; 
}

#interactive-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; 
}

.logo-img {
    max-height: 50px;
}

.fleur-de-lis-emoji { 
    color: #d3bc8d; 
}

.game-link-container {
    display: flex;
    justify-content: center;
    padding: 1rem 0;
}

.game-link, .header-nav-link {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem; 
    border: 1px solid #d3bc8d; 
    background-color: rgba(211, 188, 141, 0.1); 
    color: #d3bc8d; 
    text-decoration: none;
    transition: background-color 0.3s ease-in-out, border-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

.game-link:hover, .header-nav-link:hover {
    background-color: #d3bc8d; 
    border-color: #d3bc8d; 
    color: #111111; 
}

.game-link-emoji { 
    margin-right: 0.5rem;
    font-size: 1.25rem; 
}

.content-wrapper, .policy-content-wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center; 
    justify-content: center; 
    text-align: center; 
    padding-top: 120px; 
    padding-bottom: 2rem;
    padding-left: 1rem;
    padding-right: 1rem;
    z-index: 1;
    width: 100%;
    box-sizing: border-box;
}

.policy-content { 
    max-width: 48rem; 
    margin-left: auto;
    margin-right: auto;
    padding: 1.5rem; 
    background-color: rgba(39, 39, 42, 0.8); 
    border-radius: 0.5rem; 
    border: 1px solid #404040; 
    text-align: left; 
}
.policy-content h1 {
    text-align: center; 
}


.policy-content h2 {
    font-size: 1.5rem; 
    line-height: 2rem;
    font-weight: bold;
    margin-top: 2rem; 
    margin-bottom: 1rem; 
    color: #e4e4e7; 
}
.policy-content h3 {
    font-size: 1.25rem; 
    line-height: 1.75rem;
    font-weight: bold;
    margin-top: 1.5rem; 
    margin-bottom: 0.75rem; 
    color: #d4d4d8; 
}

.policy-content p, .policy-content li {
    margin-bottom: 1rem; 
    line-height: 1.75; 
    color: #a1a1aa; 
}

.policy-content ul {
    list-style-type: disc;
    padding-left: 1.5rem; 
}

.policy-content strong {
    font-weight: 600; 
    color: #d4d4d8; 
}

.policy-content a {
    color: #d3bc8d; 
    text-decoration: underline;
}

.policy-content a:hover {
    color: #bca776; 
}

.service-icon-circle {
    transition: border-color 0.3s ease-in-out, transform 0.3s ease-in-out, border-width 0.3s ease-in-out;
}
.service-icon-circle:hover {
    transform: scale(1.05); 
}

input[type="text"], input[type="email"], input[type="tel"], textarea, select {
    color: #f4f4f5; 
}

select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%23a1a1aa' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.validation-error {
    color: #f87171; 
    font-size: 0.75rem; 
    margin-top: 0.25rem; 
}

.game-canvas {
    display: block;
    margin: 0 auto;
    background-color: #FFFFFF;
    border: 2px solid #d3bc8d;
    border-radius: 8px;
    touch-action: none;
}
.game-ui-button { 
    background-color: #d3bc8d;
    color: #000000;
    font-weight: bold; 
    padding: 10px 20px;
    border-radius: 8px; 
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s, color 0.3s;
    border: 1px solid #000000; 
    margin-top: 10px; 
    margin-left: 5px; 
    margin-right: 5px; 
}
.game-ui-button:hover {
    background-color: #bca776;
}
.play-again-button-style {
    background-color: #404040 !important; 
    color: #d3bc8d !important;
    border-color: #d3bc8d !important;
}
.play-again-button-style:hover {
    background-color: #52525b !important; 
}

.game-container-wrapper { 
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; 
    flex-grow: 1;
    padding-top: 120px; 
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 20px;
    box-sizing: border-box;
}
.game-content-holder { 
    width: 100%;
    max-width: 500px; 
    text-align: center;
}
.text-gold { 
    color: #d3bc8d; 
}
.text-light-grey {
    color: #e4e4e7; 
}
.text-error-red {
    color: #f87171; 
}
.prominent-instructions {
    font-size: 1.1rem; 
    color: #d3bc8d; 
    font-weight: bold;
}

.music-player-section {
    margin-top: 30px;
    padding: 15px 20px;
    background-color: #27272a; 
    border-radius: 12px;
    border: 1px solid #d3bc8d; 
    text-align: center;
}
.music-button-style {
    background-color: #d3bc8d;
    color: #000000;
    font-weight: bold;
    padding: 10px 20px; 
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
    border: 1px solid #000000;
    margin: 5px auto 10px auto;
    display: block; 
    width: fit-content; 
    font-size: 1rem; 
}
.music-button-style:hover {
    background-color: #bca776;
}
.music-button-style:active {
    transform: scale(0.95);
}
.music-status {
    font-size: 0.9rem;
    color: #a1a1aa; 
}
.controls-flex-container { 
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; 
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(211, 188, 141, 0.3), 0 0 10px rgba(211, 188, 141, 0.2);
    }
    50% {
        box-shadow: 0 0 15px rgba(211, 188, 141, 0.5), 0 0 25px rgba(211, 188, 141, 0.4);
    }
}
.btn-pulse-glow {
    animation: pulse-glow 2.5s infinite ease-in-out;
}

#mobile-menu {
    max-width: 280px; 
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transform: translateY(-10px);
    transition-property: opacity, max-height, transform;
    transition-duration: 0.3s; 
    transition-timing-function: ease-in-out;
}
#mobile-menu.menu-open {
    opacity: 1;
    max-height: 220px; 
    transform: translateY(0);
}

#game-state-ui {
    min-height: 160px; /* Adjusted min-height */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; 
    width: 100%; 
    margin-top: 1rem; 
    margin-bottom: 1rem;
    position: relative; /* Ensures children are positioned relative to this */
}

/* Container for the elements that will be centered and toggled */
#gameActionArea {
    /* This div will be centered by its parent #game-state-ui */
    /* Its children (instructions, score, button) will stack vertically */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hidden {
    display: none !important;
}