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

:root { 
    --heat-color: #0d9488; /* Teal starting color */
    --stone-950: #0c0a09; 
}
body { 
    font-family: 'Inter', sans-serif; 
    background: var(--stone-950); 
    color: #e7e5e4; 
    overflow: hidden; 
    transition: background 1.5s ease;
}
.serif { font-family: 'Playfair Display', serif; }
.glass { 
    background: rgba(255, 255, 255, 0.03); 
    backdrop-filter: blur(15px); 
    border: 1px solid rgba(255, 255, 255, 0.1); 
    box-shadow: 0 0 20px -5px var(--heat-color);
    transition: box-shadow 1s ease;
}

#board-container {
    display: grid; grid-template-columns: repeat(10, 1fr); grid-template-rows: repeat(10, 1fr);
    gap: 2px; width: 98vw; height: 98vw; max-width: 600px; max-height: 600px;
    position: relative;
}

.space {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px; display: flex; align-items: center; justify-content: center;
    font-size: 6px; text-transform: uppercase; text-align: center;
    padding: 2px; letter-spacing: 0.02em; word-break: break-word; line-height: 1;
}

.corner { border: 1px solid var(--heat-color); color: var(--heat-color); font-weight: bold; }

#center-stage {
    grid-area: 2 / 2 / 10 / 10;
    display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 10;
}

.token {
    position: absolute; width: 12px; height: 12px; border-radius: 50%;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 50; border: 1.5px solid white; pointer-events: none;
}

.dice { width: 50px; height: 50px; background: white; border-radius: 10px; display: grid; grid-template-columns: repeat(3, 1fr); padding: 8px; gap: 3px; }
.dot { background: #1c1917; border-radius: 50%; opacity: 0; }
.dot.active { opacity: 1; }
.rolling { animation: roll 0.2s infinite linear; }
@keyframes roll { 0% { transform: rotate(0); } 100% { transform: rotate(360deg); } }

.card-inner { transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); transform-style: preserve-3d; cursor: pointer; }
.flipped { transform: rotateY(180deg); }
.card-face { backface-visibility: hidden; position: absolute; width: 100%; height: 100%; border-radius: 1rem; }
.card-back { transform: rotateY(180deg); background: white; color: black; padding: 1.2rem; display: flex; flex-direction: column; justify-content: space-between; text-align: center; }

#wildcard-alert { animation: slideIn 0.5s ease; border: 2px solid #fbbf24; }
@keyframes slideIn { from { transform: translateY(-100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* Memento Styling */
.memento-stat { border-bottom: 1px solid rgba(255,255,255,0.1); padding: 10px 0; display: flex; justify-content: space-between; font-size: 12px; }
