body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(to bottom, #228B22, #006400);
    color: #fff;
    overflow-x: hidden;
}
header {
    background: rgba(0, 0, 0, 0.8);
    padding: 1rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
}
nav li {
    margin: 0 1rem;
}
nav a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}
nav a:hover {
    color: #FFD700;
}
.dropdown {
    position: relative;
}
.dropdown-content {
    display: none;
    position: absolute;
    background: rgba(0,0,0,0.9);
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
}
.dropdown:hover .dropdown-content {
    display: block;
}
.dropdown-content a {
    padding: 12px 16px;
    display: block;
}
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}
.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}
.cards-demo {
    display: flex;
    gap: 1rem;
    animation: shuffle 2s infinite;
}
.card {
    width: 80px;
    height: 120px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transition: transform 0.3s;
    cursor: pointer;
}
.card img {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    object-fit: cover;
}
.card-back {
    width: 80px;
    height: 120px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    background: url('cards/back.png') no-repeat center/cover;
}
.card:hover {
    transform: rotate(5deg) scale(1.05);
}
.card.played {
    animation: playAnim 0.5s forwards;
}
@keyframes playAnim {
    from { transform: translateY(0); }
    to { transform: translateY(-200px) rotate(10deg); }
}
.suit-symbol { font-size: 1.5rem; } /* Dla hero w index.html */
.btn {
    background: #FFD700;
    color: #000;
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s;
}
.btn:hover {
    background: #FFA500;
}
footer {
    background: rgba(0,0,0,0.8);
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
}
#table {
    background: #228B22;
    height: 400px;
    position: relative;
    border: 2px solid #000;
    margin: 20px auto;
    width: 80%;
    max-width: 800px;
}
#played-cards {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 10px;
}
.hand {
    display: flex;
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap;
}
#player-hand {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    margin: auto;
}
.side {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}
#ai1-hand { left: 10px; }
#ai2-hand { right: 10px; }
#modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}
#modal-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
}
.hidden { display: none; }
@media (max-width: 768px) {
    nav ul { flex-direction: column; }
    .hero h1 { font-size: 2rem; }
    .card, .card-back { width: 60px; height: 90px; }
}