body {
    font-family: 'Georgia', serif;
    background-color: #0d0d0d;
    background-image: radial-gradient(circle at center, rgba(26, 26, 26, 0.9) 0%, rgba(13, 13, 13, 1) 100%);
    color: #eee;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    overflow-x: hidden;
    perspective: 1000px;
}

h1, h2 {
    color: #ffcc00;
    text-shadow: 0 0 8px rgba(255, 204, 0, 0.8), 0 0 15px rgba(255, 204, 0, 0.6);
}

.controls {
    margin-bottom: 30px;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.controls label {
    font-size: 1.2em;
}

.controls select,
.controls button {
    padding: 10px 15px;
    font-size: 1em;
    border: 2px solid #ffcc00;
    border-radius: 5px;
    background-color: #222;
    color: #eee;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    box-shadow: 0 0 5px rgba(255, 204, 0, 0.3);
}

.controls button:hover {
    background-color: #ffcc00;
    color: #1a1a1a;
    border-color: #eee;
    box-shadow: 0 0 10px rgba(255, 204, 0, 0.6);
}

#show-all-interpretations-button {
    padding: 10px 15px;
    font-size: 1em;
    border: 2px solid #ffcc00;
    border-radius: 5px;
    background-color: #222;
    color: #eee;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    box-shadow: 0 0 5px rgba(255, 204, 0, 0.3);
}

#show-all-interpretations-button:hover {
    background-color: #ffcc00;
    color: #1a1a1a;
    border-color: #eee;
    box-shadow: 0 0 10px rgba(255, 204, 0, 0.6);
}

.answer-area {
    margin-bottom: 30px; 
    text-align: center;
    min-height: 100px;
}

.answer-area h2 {
    margin: 10px 0;
}

#current-question {
    color: #ccc;
    font-style: italic;
}

#current-answer {
    color: #fff;
    font-weight: normal;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.5);
}

#a2-interpretation {
    color: #99ff99;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(153, 255, 153, 0.7);
}

.board-container {
    width: 95vmin;
    max-width: 800px;
    aspect-ratio: 1 / 1;
    position: relative;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
    transform: rotateX(10deg) rotateY(5deg);
}

.board {
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(25,15,5,0.9) 0%, rgba(10,5,0,1) 100%), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%"><rect width="100%" height="100%" fill="#3A1F0C"/><circle cx="50%" cy="50%" r="45%" stroke="#6F3A18" stroke-width="30" fill="none"/></svg>');
    background-size: cover;
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 30px rgba(100, 255, 100, 0.5), 0 0 60px rgba(150, 50, 255, 0.4), inset 0 0 40px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    filter: saturate(1.1) contrast(1.1);
    animation: eerie-pulse-filter 6s infinite ease-in-out alternate;
    transform: translateZ(0);
}

@keyframes eerie-pulse-filter {
    0% {
        filter: saturate(1.1) contrast(1.1) hue-rotate(0deg);
    }
    100% {
        filter: saturate(1.2) contrast(1.2) hue-rotate(5deg);
    }
}

.word, .char {
    position: absolute;
    font-size: 2em;
    font-weight: bold;
    color: #ffcc00;
    text-shadow: 0 0 8px rgba(255, 204, 0, 0.8);
    transform: translate(-50%, -50%) translateZ(1px); 
    z-index: 5;
    font-family: 'Special Elite', cursive; 
}

.word.yes { top: 18%; left: 25%; }
.word.no { top: 18%; left: 75%; }
.word.goodbye { bottom: 15%; left: 50%; }

.letters, .numbers {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 5;
}

.letters .char:nth-child(1) { top: 30%; left: 15%; }
.letters .char:nth-child(2) { top: 28%; left: 20%; }
.letters .char:nth-child(3) { top: 27%; left: 25%; }
.letters .char:nth-child(4) { top: 26%; left: 30%; }
.letters .char:nth-child(5) { top: 26%; left: 35%; }
.letters .char:nth-child(6) { top: 27%; left: 40%; }
.letters .char:nth-child(7) { top: 28%; left: 45%; }
.letters .char:nth-child(8) { top: 30%; left: 50%; }
.letters .char:nth-child(9) { top: 30%; left: 55%; }
.letters .char:nth-child(10) { top: 28%; left: 60%; }
.letters .char:nth-child(11) { top: 27%; left: 65%; }
.letters .char:nth-child(12) { top: 26%; left: 70%; }
.letters .char:nth-child(13) { top: 26%; left: 75%; }
.letters .char:nth-child(14) { top: 27%; left: 80%; }
.letters .char:nth-child(15) { top: 28%; left: 85%; }
.letters .char:nth-child(16) { top: 30%; left: 88%; }
.letters .char:nth-child(17) { top: 35%; left: 15%; }
.letters .char:nth-child(18) { top: 33%; left: 20%; }
.letters .char:nth-child(19) { top: 31%; left: 25%; }
.letters .char:nth-child(20) { top: 30%; left: 30%; }
.letters .char:nth-child(21) { top: 30%; left: 70%; }
.letters .char:nth-child(22) { top: 31%; left: 75%; }
.letters .char:nth-child(23) { top: 33%; left: 80%; }
.letters .char:nth-child(24) { top: 35%; left: 85%; }
.letters .char:nth-child(25) { top: 37%; left: 50%; }
.letters .char:nth-child(26) { top: 35%; left: 40%; }

.numbers .char:nth-child(1) { top: 50%; left: 25%; }
.numbers .char:nth-child(2) { top: 48%; left: 30%; }
.numbers .char:nth-child(3) { top: 46%; left: 35%; }
.numbers .char:nth-child(4) { top: 45%; left: 40%; }
.numbers .char:nth-child(5) { top: 45%; left: 45%; }
.numbers .char:nth-child(6) { top: 45%; left: 55%; }
.numbers .char:nth-child(7) { top: 45%; left: 60%; }
.numbers .char:nth-child(8) { top: 46%; left: 65%; }
.numbers .char:nth-child(9) { top: 48%; left: 70%; }
.numbers .char:nth-child(10) { top: 50%; left: 75%; }

.planchette {
    position: absolute;
    width: 15%;
    height: 15%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateZ(10px); 
    cursor: pointer;
    transition: top 1.2s cubic-bezier(0.4, 0, 0.2, 1), left 1.2s cubic-bezier(0.4, 0, 0.2, 1), transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

.planchette svg {
    width: 100%;
    height: 100%;
    fill: rgba(0,0,0,0.6);
    stroke: #eee;
    stroke-width: 2;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

.planchette circle {
    fill: rgba(255,255,255,0.8);
}

.spirit-hologram {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%; 
    height: 100%;
    transform: translate(-50%, -50%) translateZ(-50px); 
    background: radial-gradient(ellipse at center, rgba(150, 255, 170, 0.6) 0%, rgba(120, 200, 140, 0.3) 70%, rgba(120, 200, 140, 0.05) 100%);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    filter: blur(50px) saturate(1.5); 
    opacity: 0.8; 
    pointer-events: none;
    z-index: 0; 
    animation: spirit-pulse 4s infinite ease-in-out alternate, spirit-move-across 12s infinite ease-in-out alternate; 
    box-shadow: 0 0 150px rgba(120, 255, 140, 1); 
}

@keyframes spirit-pulse {
    0% {
        opacity: 0.7;
        transform: translate(-50%, -50%) translateZ(-50px) scale(1); 
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) translateZ(-50px) scale(1.1); 
        border-radius: 70% 30% 40% 60% / 30% 60% 40% 70%;
    }
    100% {
        opacity: 0.7;
        transform: translate(-50%, -50%) translateZ(-50px) scale(1); 
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
}

@keyframes spirit-move-across {
    0% {
        transform: translate(-50%, -50%) translateZ(-50px) translateX(-35%); 
    }
    100% {
        transform: translate(-50%, -50%) translateZ(-50px) translateX(35%); 
    }
}