.home-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 90vh;
    padding: 2rem;
    width: 100%;
}

.main-header {
    text-align: center;
    margin-bottom: 3rem;
}

.hero-logo {
    width: 200px;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 900;
    color: var(--text-color);
    margin: 0;
    letter-spacing: -2px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted-color);
    margin-top: 0.5rem;
    max-width: 500px;
}

.game-actions {
    width: 100%;
    max-width: 900px;
}

.game-selection-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 2.5rem;
    flex-wrap: wrap;
    width: 100%;
    margin-bottom: 3rem;
}

.game-card {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    flex: 1;
    min-width: 320px;
    display: flex;
    flex-direction: column;
    text-align: right;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
}
body.light-mode .game-card {
     box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
}
body.light-mode .game-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.card-content {
    padding: 2rem;
    flex-grow: 1;
}

.game-card h2 {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.game-card p {
    font-size: 1rem;
    color: var(--text-muted-color);
    line-height: 1.7;
}

.card-footer {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 1rem 2rem;
    border-top: 1px solid var(--border-color);
    font-weight: 700;
    color: var(--primary-color);
    transition: background-color 0.3s ease;
}

.card-footer span {
    display: flex;
    align-items: center;
}

.game-card:hover .card-footer {
    background-color: var(--primary-color);
    color: #111;
}
body.light-mode .game-card:hover .card-footer {
    color: #fff;
}
.card-footer i {
    margin-right: 0.5rem;
    transition: transform 0.3s ease;
}
.game-card:hover .card-footer i {
    transform: translateX(-5px);
}

.join-room-container {
    width: 100%;
    max-width: 450px;
    text-align: center;
    margin: 0 auto 2rem auto; /* Adjusted margin */
}

.join-room-container h3 {
    margin-bottom: 1rem;
    color: var(--text-muted-color);
    font-weight: 400;
}

#join-form {
    display: flex;
    gap: 1rem;
}

.input-field {
    flex-grow: 1;
    padding: 1rem;
    border: 1px solid var(--border-color);
    background-color: var(--surface-color);
    color: var(--text-color);
    border-radius: 8px;
    font-size: 1rem;
    text-align: center;
}
body.light-mode .input-field {
    background-color: #fff;
}


.input-field:focus {
    border-color: var(--primary-color);
    outline: none;
}

.input-field::placeholder {
    color: var(--text-muted-color);
}

.how-to-play-link {
    text-align: center;
    margin-top: 2rem;
}


@media (max-width: 768px) {
    .hero-title { font-size: 3rem; }
    #join-form { flex-direction: column; }
    .home-container { padding: 1rem; }
}

