* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: #121213;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Dashboard */
.dashboard {
    background-color: #1a1a1b;
    border-bottom: 1px solid #3a3a3c;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-title {
    font-size: 2rem;
    font-weight: bold;
    letter-spacing: 0.1rem;
}

.dashboard-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background-color: #538d4e;
    color: white;
}

.btn-primary:hover {
    background-color: #6aaa64;
}

.btn-secondary {
    background-color: #3a3a3c;
    color: white;
}

.btn-secondary:hover {
    background-color: #565758;
}

.btn-reset-icon {
    width: 32px;
    min-width: 32px;
    height: 32px;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
    background-color: #3a3a3c;
    color: #818384;
    border-radius: 4px;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.2s;
}

.btn-reset-icon:hover {
    background-color: #565758;
    color: white;
}

/* Forms */
.form-group input {
    width: 100%;
}

.auth-container {
    max-width: 400px;
    margin: 0 auto;
}

/* Content */
.content {
    flex: 1;
    padding: 2rem;
}

/* Messages */
.message {
    max-width: 500px;
    margin: 0 auto 1rem;
    padding: 1rem;
    border-radius: 4px;
    text-align: center;
}

.message-success {
    background-color: #538d4e;
    color: white;
}

.message-error {
    background-color: #b59f3b;
    color: white;
}

.game-container {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

/* Game Info */
.game-info {
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    background-color: #1a1a1b;
    border-radius: 8px;
    border: 1px solid #3a3a3c;
}

.game-info-item {
    text-align: center;
}

.game-info-label {
    font-size: 0.8rem;
    color: #818384;
    margin-bottom: 0.25rem;
}

.game-info-value {
    font-size: 1.2rem;
    font-weight: bold;
}

.daily-label {
    text-align: center;
    font-size: 0.85rem;
    font-weight: bold;
    letter-spacing: 0.1rem;
    color: #818384;
    margin-bottom: -1rem;
}

/* Game Board */
.game-board {
    display: grid;
    grid-template-rows: repeat(6, 1fr);
    gap: 5px;
    margin-bottom: 1rem;
}

.board-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
}

.tile {
    width: 62px;
    height: 62px;
    border: 2px solid #3a3a3c;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s;
}

.tile.filled {
    border-color: #565758;
    animation: pop 0.1s;
}

.tile.correct {
    background-color: #538d4e;
    border-color: #538d4e;
    color: white;
}

.tile.present {
    background-color: #b59f3b;
    border-color: #b59f3b;
    color: white;
}

.tile.absent {
    background-color: #3a3a3c;
    border-color: #3a3a3c;
    color: white;
}

@keyframes pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Keyboard */
.keyboard {
    width: 100%;
    max-width: 500px;
}

.keyboard-row {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-bottom: 8px;
}

.key {
    min-width: 43px;
    height: 58px;
    background-color: #818384;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.1s;
}

.key:hover {
    background-color: #9a9b9c;
}

.key:active {
    transform: scale(0.95);
}

.key.wide {
    min-width: 65px;
    font-size: 0.7rem;
}

.key.correct {
    background-color: #538d4e;
}

.key.present {
    background-color: #b59f3b;
}

.key.absent {
    background-color: #3a3a3c;
}

/* Game Over Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal.show {
    display: flex;
}

.modal-content {
    background-color: #1a1a1b;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    max-width: 400px;
}

.modal-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

#guess-form {
    display: none;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%       { transform: translateX(-6px); }
    40%       { transform: translateX(6px); }
    60%       { transform: translateX(-4px); }
    80%       { transform: translateX(4px); }
}

.shake {
    animation: shake 0.5s ease-in-out;
}

@keyframes flip {
    0%   { transform: rotateX(0); }
    50%  { transform: rotateX(-90deg); }
    100% { transform: rotateX(0); }
}

.tile.flip {
    animation: flip 0.5s ease forwards;
}