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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: white;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    gap: 30px;
    align-items: flex-start;
    min-height: 100vh;
}

.game-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.game-sidebar {
    width: 300px;
    flex-shrink: 0;
    position: sticky;
    top: 20px;
    height: fit-content;
}

.sound-controls {
    margin-bottom: 20px;
    text-align: center;
}

.sound-toggle-btn {
    background: linear-gradient(45deg, #3498db, #2980b9);
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    width: 100%;
}

.sound-toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    background: linear-gradient(45deg, #2980b9, #1f5f8b);
}

.game-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    color: #ffd700;
    width: 100%;
}

.hand {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 20px;
}

.hand.computer {
    display: none;
}

.card {
    width: 160px;
    height: 220px;
    background: linear-gradient(45deg, #fff, #f8f9fa);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    color: #2c3e50;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    padding: 10px;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

.card.monster {
    background: #2c3e50;
    color: white;
}

/* Monster-specific colors based on elements - darker for better text visibility */
.card.monster[data-element="grass"] { background: #2e7d32; }
.card.monster[data-element="fighting"] { background: #e65100; }
.card.monster[data-element="flying"] { background: #4a148c; }
.card.monster[data-element="fairy"] { background: #f57f17; }
.card.monster[data-element="bug"] { background: #558b2f; }
.card.monster[data-element="water"] { background: #0d47a1; }
.card.monster[data-element="psychic"] { background: #ad1457; }
.card.monster[data-element="normal"] { background: #4e342e; }
.card.monster[data-element="rock"] { background: #616161; }
.card.monster[data-element="electric"] { background: #f57f17; }
.card.monster[data-element="fire"] { background: #b71c1c; }
.card.monster[data-element="ice"] { background: #0277bd; }
.card.monster[data-element="ghost"] { background: #4a148c; }
.card.monster[data-element="cosmic"] { background: #6a1b9a; }

/* Monster-specific custom colors based on their artwork - darker for better text readability */
.card.monster[data-element="grass"]:has(img[src*="bulbsore"]) { background: #2e7d32; }
.card.monster[data-element="fighting"]:has(img[src*="legsore"]) { background: #bf360c; }
.card.monster[data-element="flying"]:has(img[src*="kazoobat"]) { background: #4a148c; }
.card.monster[data-element="fairy"]:has(img[src*="kangaroonicorn"]) { background: #e65100; }
.card.monster[data-element="bug"]:has(img[src*="gladderpillar"]) { background: #558b2f; }
.card.monster[data-element="bug"]:has(img[src*="supadupapupa"]) { background: #c2185b; }
.card.monster[data-element="bug"]:has(img[src*="betterfly"]) { background: #f57f17; }
.card.monster[data-element="fighting"]:has(img[src*="girafforilla"]) { background: #5d4037; }
.card.monster[data-element="water"]:has(img[src*="sandslush"]) { background: #455a64; }
.card.monster[data-element="water"]:has(img[src*="soapseal"]) { background: #1976d2; }
.card.monster[data-element="psychic"]:has(img[src*="teartime"]) { background: #e91e63; }
.card.monster[data-element="normal"]:has(img[src*="butterbeaver"]) { background: #f57f17; }
.card.monster[data-element="rock"]:has(img[src*="saltlampodude"]) { background: #6d4c41; }
.card.monster[data-element="normal"]:has(img[src*="gaveler"]) { background: #5d4037; }
.card.monster[data-element="fire"]:has(img[src*="mrmine"]) { background: #c62828; }
.card.monster[data-element="normal"]:has(img[src*="udderer"]) { background: #bdbdbd; }
.card.monster[data-element="grass"]:has(img[src*="ashketchup"]) { background: #d32f2f; }
.card.monster[data-element="normal"]:has(img[src*="oinx"]) { background: #ff7043; }
.card.monster[data-element="psychic"]:has(img[src*="polkamoon"]) { background: #ba68c8; }
.card.monster[data-element="normal"]:has(img[src*="ouroborodoggo"]) { background: #7b1fa2; }
.card.monster[data-element="ice"]:has(img[src*="jowlato"]) { background: #558b2f; }
.card.monster[data-element="psychic"]:has(img[src*="raisinbrain"]) { background: #8e24aa; }
.card.monster[data-element="normal"]:has(img[src*="happybara"]) { background: #66bb6a; }
.card.monster[data-element="cosmic"]:has(img[src*="starrup"]) { background: #6a1b9a; }
.card.monster[data-element="fighting"]:has(img[src*="ken"]) { background: #d84315; }
.card.monster[data-element="grass"]:has(img[src*="bananapod"]) { background: #f57f17; }
.card.monster[data-element="ghost"]:has(img[src*="ghostoast"]) { background: #757575; }
.card.monster[data-element="water"]:has(img[src*="sweatsalot"]) { background: #0277bd; }
.card.monster[data-element="normal"]:has(img[src*="moosewalk"]) { background: #5d4037; }
.card.monster[data-element="psychic"]:has(img[src*="orkadorb"]) { background: #ba68c8; }
.card.monster[data-element="cosmic"]:has(img[src*="parallelogrampa"]) { background: #2e7d32; }

.card-icon {
    font-size: 2rem;
    text-align: center;
    color: #ffffff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 6px;
    display: block;
    image-rendering: smooth;
}

.card-name {
    font-size: 0.8rem;
    text-align: center;
    margin-bottom: 6px;
    line-height: 1.1;
    color: #ffffff;
    font-weight: bold;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.card-hearts {
    font-size: 0.8rem;
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.card-defense {
    font-size: 0.8rem;
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.card-icon-frame {
    width: 100%;
    height: 100px;
    background: rgba(0,0,0,0.1);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    margin-bottom: 6px;
    position: relative;
    overflow: hidden;
}

.card-moves {
    margin-bottom: 6px;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
}

.card-move {
    font-size: 0.7rem;
    text-align: center;
    color: #ffffff;
    background: rgba(0,0,0,0.2);
    padding: 2px 4px;
    border-radius: 4px;
    flex: 1;
    height: 4em;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.card-move.attack-btn {
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid rgba(255,255,255,0.3);
}

.card-move.attack-btn:hover {
    transform: scale(1.05);
}

.card-move.attack-btn:disabled {
    background: rgba(149, 165, 166, 0.5);
    cursor: not-allowed;
    transform: none;
}

.no-monsters {
    text-align: center;
    color: #ffffff;
    font-style: italic;
    opacity: 0.7;
    padding: 20px;
}

.monster-placeholder {
    width: 160px;
    height: 220px;
    margin: 0;
    background: rgba(255,255,255,0.1);
    border: 2px dashed rgba(255,255,255,0.3);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.5);
    font-style: italic;
    font-size: 0.9rem;
}

.target-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.target-dialog-content {
    background: rgba(255,255,255,0.95);
    border-radius: 15px;
    padding: 30px;
    max-width: 500px;
    text-align: center;
    color: #2c3e50;
}

.target-dialog-content h3 {
    margin-bottom: 20px;
    color: #e74c3c;
}

.target-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0;
}

.target-option {
    background: linear-gradient(45deg, #3498db, #2980b9);
    border: none;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.target-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.cancel-attack {
    background: linear-gradient(45deg, #95a5a6, #7f8c8d);
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.cancel-attack:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.card-description {
    font-size: 0.6rem;
    text-align: center;
    line-height: 1.2;
    color: #ffffff;
    opacity: 0.9;
    font-style: italic;
    font-weight: normal;
    max-height: 2.4em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.card-type {
    font-size: 0.7rem;
    margin-bottom: 5px;
    opacity: 0.9;
    color: #ffffff;
}

.card-power {
    font-size: 1.2rem;
    font-weight: bold;
    color: #ffffff;
}

.battle-zone {
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    text-align: center;
    margin-bottom: 30px;
    width: 100%;
}

.battle-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    text-align: center;
}

.battle-layout {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
}

.battle-headers {
    display: flex;
    flex-direction: column;
    gap: 30px;
    min-width: 120px;
}

.battle-header {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 20px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.battle-header h3 {
    color: #ffd700;
    font-size: 1.2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    margin: 0 0 15px 0;
    text-align: center;
}

.player-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.battle-header .card-count {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.battle-header .card-icon {
    font-size: 1rem;
    position: static;
    top: auto;
    left: auto;
    transform: none;
    text-align: left;
    color: #ffffff;
}



.battle-cards {
    display: flex;
    flex-direction: column;
    gap: 30px;
    flex: 1;
}

.monster-row {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
}



#player1Monsters, #player2Monsters {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    flex: 1;
}

.monster-card {
    width: 160px;
    height: 220px;
    margin: 0;
    background: #2c3e50;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    color: white;
    font-weight: bold;
    padding: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.monster-card[data-icon] {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
}

/* Monster-specific colors based on elements for battle zone - darker for better text visibility */
.monster-card[data-element="grass"] { background: #2e7d32; }
.monster-card[data-element="fighting"] { background: #e65100; }
.monster-card[data-element="flying"] { background: #4a148c; }
.monster-card[data-element="fairy"] { background: #f57f17; }
.monster-card[data-element="bug"] { background: #558b2f; }
.monster-card[data-element="water"] { background: #0d47a1; }
.monster-card[data-element="psychic"] { background: #ad1457; }
.monster-card[data-element="normal"] { background: #4e342e; }
.monster-card[data-element="rock"] { background: #616161; }
.monster-card[data-element="electric"] { background: #f57f17; }
.monster-card[data-element="fire"] { background: #b71c1c; }
.monster-card[data-element="ice"] { background: #0277bd; }
.monster-card[data-element="ghost"] { background: #4a148c; }
.monster-card[data-element="cosmic"] { background: #6a1b9a; }

/* Monster-specific custom colors for battle zone based on their artwork - darker for better text readability */
.monster-card[data-element="grass"]:has(img[src*="bulbsore"]) { background: #2e7d32; }
.monster-card[data-element="fighting"]:has(img[src*="legsore"]) { background: #bf360c; }
.monster-card[data-element="flying"]:has(img[src*="kazoobat"]) { background: #4a148c; }
.monster-card[data-element="fairy"]:has(img[src*="kangaroonicorn"]) { background: #e65100; }
.monster-card[data-element="bug"]:has(img[src*="gladderpillar"]) { background: #558b2f; }
.monster-card[data-element="bug"]:has(img[src*="supadupapupa"]) { background: #c2185b; }
.monster-card[data-element="bug"]:has(img[src*="betterfly"]) { background: #f57f17; }
.monster-card[data-element="fighting"]:has(img[src*="girafforilla"]) { background: #5d4037; }
.monster-card[data-element="water"]:has(img[src*="sandslush"]) { background: #455a64; }
.monster-card[data-element="water"]:has(img[src*="soapseal"]) { background: #1976d2; }
.monster-card[data-element="psychic"]:has(img[src*="teartime"]) { background: #e91e63; }
.monster-card[data-element="normal"]:has(img[src*="butterbeaver"]) { background: #f57f17; }
.monster-card[data-element="rock"]:has(img[src*="saltlampodude"]) { background: #6d4c41; }
.monster-card[data-element="normal"]:has(img[src*="gaveler"]) { background: #5d4037; }
.monster-card[data-element="fire"]:has(img[src*="mrmine"]) { background: #c62828; }
.monster-card[data-element="normal"]:has(img[src*="udderer"]) { background: #bdbdbd; }
.monster-card[data-element="grass"]:has(img[src*="ashketchup"]) { background: #d32f2f; }
.monster-card[data-element="normal"]:has(img[src*="oinx"]) { background: #ff7043; }
.monster-card[data-element="psychic"]:has(img[src*="polkamoon"]) { background: #ba68c8; }
.monster-card[data-element="normal"]:has(img[src*="ouroborodoggo"]) { background: #7b1fa2; }
.monster-card[data-element="ice"]:has(img[src*="jowlato"]) { background: #558b2f; }
.monster-card[data-element="psychic"]:has(img[src*="raisinbrain"]) { background: #8e24aa; }
.monster-card[data-element="normal"]:has(img[src*="happybara"]) { background: #66bb6a; }
.monster-card[data-element="cosmic"]:has(img[src*="starrup"]) { background: #6a1b9a; }
.monster-card[data-element="fighting"]:has(img[src*="ken"]) { background: #d84315; }
.monster-card[data-element="grass"]:has(img[src*="bananapod"]) { background: #f57f17; }
.monster-card[data-element="ghost"]:has(img[src*="ghostoast"]) { background: #757575; }
.monster-card[data-element="water"]:has(img[src*="sweatsalot"]) { background: #0277bd; }
.monster-card[data-element="normal"]:has(img[src*="moosewalk"]) { background: #5d4037; }
.monster-card[data-element="psychic"]:has(img[src*="orkadorb"]) { background: #ba68c8; }
.monster-card[data-element="cosmic"]:has(img[src*="parallelogrampa"]) { background: #2e7d32; }

.battle-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.battle-actions .action-btn {
    margin: 0 5px;
}

.player-hand-section {
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    width: 100%;
}

.player-hand-section h3 {
    text-align: center;
    color: #ffd700;
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.hand-container {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.hand {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.deck {
    background: rgba(0,0,0,0.3);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 10px;
    padding: 15px;
    width: 160px;
    height: 220px;
    text-align: center;
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.deck-count {
    color: #ffffff;
    font-size: 1rem;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.action-btn {
    background: linear-gradient(45deg, #ffffff, #f8f9fa);
    border: none;
    color: #2c3e50;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
}

.action-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.game-log {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 20px;
    max-height: 600px;
    overflow-y: auto;
    font-family: monospace;
    font-size: 0.9rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.3) transparent;
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
}

.game-log::-webkit-scrollbar {
    width: 8px;
}

.game-log::-webkit-scrollbar-track {
    background: transparent;
}

.game-log::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 4px;
}

.game-log::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.5);
}

.log-entry {
    margin-bottom: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    border-left: 3px solid rgba(255,255,255,0.3);
    transition: all 0.2s ease;
}

.log-entry:hover {
    background: rgba(255,255,255,0.08);
    transform: translateX(2px);
}

.log-entry.player1 { 
    background: rgba(52, 152, 219, 0.1); 
    border-left-color: rgba(52, 152, 219, 0.6);
}
.log-entry.player2 { 
    background: rgba(231, 76, 60, 0.1); 
    border-left-color: rgba(231, 76, 60, 0.6);
}
.log-entry.battle { 
    background: rgba(241, 196, 15, 0.1); 
    border-left-color: rgba(241, 196, 15, 0.6);
}
.log-entry.winner { 
    background: rgba(46, 204, 113, 0.1); 
    border-left-color: rgba(46, 204, 113, 0.6);
}

.game-over {
    display: none;
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    text-align: center;
    width: 100%;
}

.winner-announcement {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #ffd700;
}

.play-again-btn {
    background: linear-gradient(45deg, #ffd700, #f39c12);
    border: none;
    color: #000000;
    padding: 15px 30px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.play-again-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.game-instructions {
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 30px;
    margin-top: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    width: 100%;
}

.game-instructions h2 {
    text-align: center;
    color: #ffd700;
    font-size: 2rem;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.instruction-section {
    margin-bottom: 30px;
    padding: 25px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    border-left: 4px solid #ffffff;
}

.instruction-section h3 {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.instruction-section p {
    margin-bottom: 15px;
    line-height: 1.7;
    font-size: 0.95rem;
}

.instruction-section ul, .instruction-section ol {
    margin-left: 25px;
    line-height: 1.8;
    font-size: 0.95rem;
}

.instruction-section li {
    margin-bottom: 8px;
}

.instruction-section strong {
    color: #ffd700;
}

.card-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.card-type-info {
    background: rgba(255,255,255,0.08);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
}

.card-type-info h4 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 15px;
    text-align: center;
}

.game-flow {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.flow-step {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255,255,255,0.08);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
}

.step-number {
    background: linear-gradient(45deg, #ffd700, #f39c12);
    color: #000000;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.step-content h4 {
    color: #ffffff;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.step-content p {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.5;
}



.controls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.control-item {
    background: rgba(255,255,255,0.08);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
        gap: 20px;
    }
    
    .game-sidebar {
        width: 100%;
        position: static;
    }
    
    .battle-zone {
        max-width: 100%;
    }
    
    .active-monsters {
        flex-direction: column;
        align-items: center;
    }
    
    .game-instructions {
        padding: 20px;
        margin-top: 20px;
    }

    .game-instructions h2 {
        font-size: 1.8rem;
    }

    .instruction-section {
        padding: 20px;
        margin-bottom: 25px;
    }

    .instruction-section h3 {
        font-size: 1.1rem;
    }

    .card-types-grid,
    .game-flow,
    .controls-grid {
        grid-template-columns: 1fr;
    }

    .flow-step {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}
