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

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(145deg, #2b2b2b 0%, #1a1a1a 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(4px);
    border-radius: 48px;
    padding: 40px 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.8);
    border: 1px solid rgba(255,255,255,0.1);
    max-width: 700px;
    width: 100%;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: #f0e6d0;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

header h1 span {
    color: #d4af37;
    font-style: italic;
}

header p {
    color: #b0a090;
    font-size: 1rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: -5px;
    opacity: 0.8;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#board {
    width: 100%;
    max-width: 560px;
    aspect-ratio: 1/1;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,0.7);
    border: 2px solid #d4af37;
}

.chessboard-1-0-0 .white-1e1d7 {
    background-color: #f0d9b5;
}
.chessboard-1-0-0 .black-3c85d {
    background-color: #b58863;
}
.highlight-white, .highlight-black {
    box-shadow: inset 0 0 3px 3px rgba(255,255,100,0.6);
}
.square-55d63:hover {
    background-color: rgba(255,255,200,0.2) !important;
}

.info {
    margin-top: 25px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 560px;
}

#status {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #f0e6d0;
    background: rgba(0,0,0,0.4);
    padding: 8px 24px;
    border-radius: 40px;
    border-left: 3px solid #d4af37;
    flex: 1;
    text-align: center;
    min-width: 150px;
}

button {
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    padding: 10px 28px;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 1px;
    background: #d4af37;
    color: #1a1a1a;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.5);
    background: #e4c35a;
}

button#resetBtn {
    background: #6c5b4b;
    color: #f0e6d0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
button#resetBtn:hover {
    background: #8a7562;
}

button#flipBtn {
    background: #2a2a2a;
    color: #f0e6d0;
    border: 1px solid #d4af37;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
button#flipBtn:hover {
    background: #3a3a3a;
}

footer {
    margin-top: 30px;
    text-align: center;
    color: #6a5a4a;
    font-size: 0.8rem;
    letter-spacing: 1px;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 20px;
}

@media (max-width: 600px) {
    .container { padding: 20px 15px; }
    header h1 { font-size: 2.2rem; }
    #board { max-width: 100%; }
    .info { flex-direction: column; gap: 12px; }
    #status { font-size: 1.2rem; padding: 6px 16px; }
    button { width: 100%; padding: 12px; }
}
