:root {
    --bg-color: #0a0a0c;
    --accent-color: #d4af37; /* Gold */
    --text-main: #e0e0e0;
    --text-dim: #a0a0a0;
    --card-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-display: 'Bodoni Moda', serif;
    --font-body: 'Noto Sans JP', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.container {
    width: 100%;
    max-width: 800px;
    padding: 4rem 2rem;
    text-align: center;
    z-index: 1;
}

/* Game area centering */
#game-area {
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-bottom: 2rem;
}

/* Guide Section */
.guide-section {
    margin-top: 2rem;
    text-align: left;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out;
}

.guide-section h2 {
    font-family: var(--font-display);
    color: var(--accent-color);
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    letter-spacing: 0.1rem;
}

.guide-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.guide-item h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    border-left: 2px solid var(--accent-color);
    padding-left: 0.8rem;
}

.guide-item p {
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--text-dim);
}

.guide-item ul {
    list-style: none;
    padding: 0;
}

.guide-item li {
    font-size: 0.9rem;
    line-height: 2;
    color: var(--text-dim);
    position: relative;
    padding-left: 1.2rem;
}

.guide-item li::before {
    content: '・';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

footer {
    position: relative;
    padding: 4rem 0 2rem;
    font-size: 0.7rem;
    color: var(--text-dim);
    letter-spacing: 0.05rem;
    text-align: center;
    width: 100%;
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .guide-grid {
        grid-template-columns: 1fr;
    }
    .guide-section {
        padding: 2rem;
    }
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, #1a1a2e 0%, #0a0a0c 100%);
    z-index: -1;
}

.background-overlay::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('https://www.transparenttextures.com/patterns/stardust.png');
    opacity: 0.2;
    pointer-events: none;
}

.container {
    width: 100%;
    max-width: 600px;
    padding: 2rem;
    text-align: center;
    z-index: 1;
}

header {
    margin-bottom: 3rem;
    animation: fadeInDown 1s ease-out;
}

header h1 {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 300;
    letter-spacing: 0.2rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.subtitle {
    font-size: 0.9rem;
    color: var(--text-dim);
    letter-spacing: 0.1rem;
}

.card-container {
    perspective: 1000px;
    margin-bottom: 3rem;
    cursor: pointer;
}

.card {
    width: 100%;
    height: 350px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card.is-flipped {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2.5rem;
    border-radius: 20px;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.card-front {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(10, 10, 12, 0.5) 100%);
}

.card-back {
    transform: rotateY(180deg);
}

.tap-hint {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--accent-color);
    letter-spacing: 0.3rem;
    animation: pulse 2s infinite;
}

#question-text {
    font-size: 1.4rem;
    line-height: 1.8;
    font-weight: 500;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    margin-top: 0;
}

.card-back h2 {
    font-family: var(--font-body);
}

.card-footer {
    position: absolute;
    bottom: 2rem;
    width: calc(100% - 5rem);
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-dim);
    border-top: 1px solid var(--glass-border);
    padding-top: 1rem;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn-primary {
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-family: var(--font-body);
    letter-spacing: 0.1rem;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--accent-color);
    color: var(--bg-color);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

footer {
    position: fixed;
    bottom: 2rem;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 0.7rem;
    color: var(--text-dim);
    letter-spacing: 0.05rem;
}

footer a {
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--accent-color);
}

/* Animations */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { opacity: 0.4; }
    50% { opacity: 1; }
    100% { opacity: 0.4; }
}

@media (max-width: 480px) {
    header h1 { font-size: 2.5rem; }
    .card { height: 300px; }
    #question-text { font-size: 1.1rem; }
}
00px; }
    #question-text { font-size: 1.1rem; }
}
