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

:root {
    --ocean-dark: #0a1628;
    --ocean-mid: #162d50;
    --ocean-light: #1e4a7a;
    --ocean-accent: #3498db;
    --radar-green: #00ff41;
    --radar-green-dim: rgba(0, 255, 65, 0.3);
    --hit-color: #e74c3c;
    --hit-glow: rgba(231, 76, 60, 0.6);
    --miss-color: #7f8c8d;
    --ship-color: #5dade2;
    --gold: #f1c40f;
    --text-primary: #ecf0f1;
    --text-secondary: #bdc3c7;
    --glass-bg: rgba(22, 45, 80, 0.85);
    --glass-border: rgba(52, 152, 219, 0.3);
}

html {
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Rajdhani', 'Orbitron', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: 
        linear-gradient(180deg, rgba(10, 22, 40, 0.4) 0%, rgba(10, 22, 40, 0.6) 100%),
        url("img/carrier.png") center/cover no-repeat,
        var(--ocean-dark);
    background-position: center;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-primary);
    overflow-x: hidden;
}

.scanline {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 255, 65, 0.015) 2px,
        rgba(0, 255, 65, 0.015) 4px
    );
    pointer-events: none;
    z-index: 1000;
    animation: scanMove 8s linear infinite;
}

@keyframes scanMove {
    0% { transform: translateY(0); }
    100% { transform: translateY(100px); }
}

.container {
    text-align: center;
    padding: 2.5rem;
    background: var(--glass-bg);
    border-radius: 16px;
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: 
        0 0 40px rgba(52, 152, 219, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    max-width: 1100px;
    width: 95%;
    position: relative;
}

.container::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 20%;
    right: 20%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--ocean-accent), transparent);
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    letter-spacing: 8px;
    text-transform: uppercase;
    background: linear-gradient(180deg, #fff 0%, var(--ocean-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(52, 152, 219, 0.5));
    font-weight: 700;
    position: relative;
    display: inline-block;
}

h1::after {
    content: 'NAVAL COMBAT';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.6rem;
    letter-spacing: 12px;
    color: var(--text-secondary);
    opacity: 0.4;
    -webkit-text-fill-color: var(--text-secondary);
    white-space: nowrap;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    letter-spacing: 4px;
    margin-bottom: 2rem;
    text-transform: uppercase;
    opacity: 0.7;
}

.menu {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.btn {
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s, transform 0.3s, box-shadow 0.3s;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #2980b9 0%, #1a5276 100%);
    box-shadow: 
        0 4px 15px rgba(41, 128, 185, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 8px 25px rgba(41, 128, 185, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

.btn:active {
    transform: translateY(-1px);
    box-shadow: 0 2px 10px rgba(41, 128, 185, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    box-shadow: 
        0 4px 15px rgba(52, 73, 94, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    box-shadow: 
        0 8px 25px rgba(52, 73, 94, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, #3d566e 0%, #34495e 100%);
}

.btn-danger {
    background: linear-gradient(135deg, #c0392b 0%, #922b21 100%);
    box-shadow: 0 4px 15px rgba(192, 57, 43, 0.3);
}

.btn-danger:hover {
    box-shadow: 0 8px 25px rgba(192, 57, 43, 0.5);
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100);
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}

input[type="text"] {
    width: 100%;
    padding: 1rem 1.2rem;
    font-size: 1.2rem;
    border: 2px solid rgba(52, 152, 219, 0.3);
    border-radius: 8px;
    background: rgba(10, 22, 40, 0.6);
    color: var(--text-primary);
    outline: none;
    transition: all 0.3s;
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 2px;
}

input[type="text"]:focus {
    border-color: var(--ocean-accent);
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.2);
}

input[type="text"]::placeholder {
    color: rgba(236, 240, 241, 0.3);
}

.game-code {
    font-size: 3rem;
    letter-spacing: 12px;
    background: rgba(52, 152, 219, 0.15);
    padding: 1.2rem 2.5rem;
    border-radius: 10px;
    margin: 1.5rem 0;
    font-family: 'Orbitron', monospace;
    border: 2px solid var(--ocean-accent);
    box-shadow: 
        0 0 30px rgba(52, 152, 219, 0.2),
        inset 0 0 30px rgba(52, 152, 219, 0.1);
    animation: codeGlow 2s ease-in-out infinite alternate;
}

@keyframes codeGlow {
    0% { box-shadow: 0 0 30px rgba(52, 152, 219, 0.2), inset 0 0 30px rgba(52, 152, 219, 0.1); }
    100% { box-shadow: 0 0 40px rgba(52, 152, 219, 0.3), inset 0 0 40px rgba(52, 152, 219, 0.15); }
}

.game-info {
    background: rgba(10, 22, 40, 0.5);
    padding: 1.2rem 2rem;
    border-radius: 10px;
    margin: 1.5rem 0;
    border: 1px solid rgba(52, 152, 219, 0.2);
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.game-info p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 1rem;
}

.game-info strong {
    color: var(--text-primary);
    font-weight: 600;
}

.boards-container {
    display: flex;
    gap: 3rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.board-section {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.board-section h3 {
    margin-bottom: 1rem;
    color: var(--ocean-accent);
    font-size: 1.1rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.board-section h3::before,
.board-section h3::after {
    content: '';
    width: 30px;
    height: 1px;
    background: var(--ocean-accent);
}

.cell {
    width: 30px;
    height: 30px;
    background: rgba(30, 74, 122, 0.4);
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.cell::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(52, 152, 219, 0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.3s;
}

.cell:hover {
    background: rgba(52, 152, 219, 0.5);
    transform: scale(1.05);
    z-index: 1;
}

.cell:hover::before {
    transform: translate(-50%, -50%) scale(1);
}

.cell.ship {
    background: linear-gradient(135deg, var(--ship-color) 0%, #3498db 100%);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
}

.cell.ship-carrier {
    background: none;
    background-image: url("img/carrier_full.png");
    background-size: 500% 100%;
    background-position: 0% 0;
    background-repeat: no-repeat;
}

.cell.ship-battleship {
    background: none;
    background-image: url("img/battleship_full.png");
    background-size: 400% 100%;
    background-position: 0% 0;
    background-repeat: no-repeat;
}

.cell.ship-cruiser {
    background: none;
    background-image: url("img/cruiser_full.png");
    background-size: 300% 100%;
    background-position: 0% 0;
    background-repeat: no-repeat;
}

.cell.ship-submarine {
    background: none;
    background-image: url("img/submarine_full.png");
    background-size: 300% 100%;
    background-position: 0% 0;
    background-repeat: no-repeat;
}

.cell.ship-destroyer {
    background: none;
    background-image: url("img/destroyer_full.png");
    background-size: 200% 100%;
    background-position: 0% 0;
    background-repeat: no-repeat;
}

.cell.ship-carrier-vertical {
    background: none;
    background-image: url("img/carrier_vertical.png");
    background-size: 100% 500%;
    background-position: 0 0;
    background-repeat: no-repeat;
}

.cell.ship-battleship-vertical {
    background: none;
    background-image: url("img/battleship_vertical.png");
    background-size: 100% 400%;
    background-position: 0 0;
    background-repeat: no-repeat;
}

.cell.ship-cruiser-vertical {
    background: none;
    background-image: url("img/cruiser_vertical.png");
    background-size: 100% 300%;
    background-position: 0 0;
    background-repeat: no-repeat;
}

.cell.ship-submarine-vertical {
    background: none;
    background-image: url("img/submarine_vertical.png");
    background-size: 100% 300%;
    background-position: 0 0;
    background-repeat: no-repeat;
}

.cell.ship-destroyer-vertical {
    background: none;
    background-image: url("img/destroyer_vertical.png");
    background-size: 100% 200%;
    background-position: 0 0;
    background-repeat: no-repeat;
}

.cell.hit {
    background: rgba(192, 57, 43, 0.9);
    box-shadow: 0 0 15px var(--hit-glow);
}

.cell.miss {
    background: rgba(127, 140, 141, 0.7);
}

.cell.sunk {
    position: relative;
}

.cell.sunk::before,
.cell.sunk::after {
    content: '';
    position: absolute;
    width: 80%;
    height: 3px;
    background: #fff;
    top: 50%;
    left: 10%;
    transform: translateY(-50%) rotate(45deg);
    pointer-events: none;
}

.cell.sunk::after {
    transform: translateY(-50%) rotate(-45deg);
}

.cell.preview {
    opacity: 0.7;
}

.cell.preview.ship-carrier { background: none; background-image: url("img/carrier_full.png"); background-size: 500% 100%; background-position: 0% 0; background-repeat: no-repeat; }
.cell.preview.ship-battleship { background: none; background-image: url("img/battleship_full.png"); background-size: 400% 100%; background-position: 0% 0; background-repeat: no-repeat; }
.cell.preview.ship-cruiser { background: none; background-image: url("img/cruiser_full.png"); background-size: 300% 100%; background-position: 0% 0; background-repeat: no-repeat; }
.cell.preview.ship-submarine { background: none; background-image: url("img/submarine_full.png"); background-size: 300% 100%; background-position: 0% 0; background-repeat: no-repeat; }
.cell.preview.ship-destroyer { background: none; background-image: url("img/destroyer_full.png"); background-size: 200% 100%; background-position: 0% 0; background-repeat: no-repeat; }

.cell.preview.ship-carrier-vertical { background: none; background-image: url("img/carrier_vertical.png"); background-size: 100% 500%; background-position: 0 0; background-repeat: no-repeat; }
.cell.preview.ship-battleship-vertical { background: none; background-image: url("img/battleship_vertical.png"); background-size: 100% 400%; background-position: 0 0; background-repeat: no-repeat; }
.cell.preview.ship-cruiser-vertical { background: none; background-image: url("img/cruiser_vertical.png"); background-size: 100% 300%; background-position: 0 0; background-repeat: no-repeat; }
.cell.preview.ship-submarine-vertical { background: none; background-image: url("img/submarine_vertical.png"); background-size: 100% 300%; background-position: 0 0; background-repeat: no-repeat; }
.cell.preview.ship-destroyer-vertical { background: none; background-image: url("img/destroyer_vertical.png"); background-size: 100% 200%; background-position: 0 0; background-repeat: no-repeat; }

.cell.moving {
    cursor: move;
    animation: movingPulse 1s infinite;
}

@keyframes movingPulse {
    0%, 100% { box-shadow: 0 0 5px rgba(255, 200, 0, 0.5); }
    50% { box-shadow: 0 0 15px rgba(255, 200, 0, 0.8); }
}

.cell.animate.hit {
    animation: hitPulse 0.5s ease-out;
}

@keyframes hitPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.cell.animate.hit::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%;
    height: 80%;
    border: 3px solid #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    animation: explode 0.4s ease-out 0.1s forwards;
}

@keyframes explode {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

.status {
    font-size: 1.4rem;
    margin: 1rem 0;
    padding: 1rem 2rem;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: rgba(10, 22, 40, 0.4);
    border: 1px solid rgba(52, 152, 219, 0.2);
}

.status::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: statusPulse 1s ease-in-out infinite;
}

.status.your-turn {
    background: rgba(39, 174, 96, 0.2);
    border: 1px solid #27ae60;
    color: #2ecc71;
}

.status.your-turn::before {
    background: #2ecc71;
    box-shadow: 0 0 10px #2ecc71;
}

.status.waiting {
    background: rgba(241, 196, 15, 0.15);
    border: 1px solid #f39c12;
    color: #f1c40f;
}

.status.waiting::before {
    background: #f1c40f;
    box-shadow: 0 0 10px #f1c40f;
}

.status.winner {
    background: rgba(52, 152, 219, 0.2);
    border: 1px solid var(--ocean-accent);
    color: var(--ocean-accent);
    animation: winnerGlow 1s ease-in-out infinite alternate;
}

.status.winner::before {
    background: var(--ocean-accent);
    box-shadow: 0 0 15px var(--ocean-accent);
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.8); }
}

@keyframes winnerGlow {
    0% { box-shadow: 0 0 20px rgba(52, 152, 219, 0.3); }
    100% { box-shadow: 0 0 40px rgba(52, 152, 219, 0.6); }
}

.ship-selector {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: rgba(10, 22, 40, 0.5);
    border-radius: 12px;
    border: 1px solid rgba(52, 152, 219, 0.2);
}

.ship-selector h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: var(--text-primary);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.ship-selector p {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.placement-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.orientation-indicator {
    color: var(--text-secondary);
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(52, 152, 219, 0.2);
}

.orientation-indicator strong {
    color: var(--ocean-accent);
    font-weight: 600;
}

.rotate-btn {
    margin-top: 0;
    padding: 0.6rem 1.5rem;
    font-size: 0.95rem;
}

.ship-list {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.ship-option {
    padding: 0.8rem 1rem;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    min-width: 100px;
}

.ship-option:hover {
    background: rgba(52, 152, 219, 0.2);
    border-color: rgba(52, 152, 219, 0.4);
    transform: translateY(-2px);
}

.ship-option.selected {
    border-color: var(--ocean-accent);
    background: rgba(52, 152, 219, 0.3);
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.3);
}

.ship-option.placed {
    opacity: 0.4;
    cursor: not-allowed;
    background: rgba(46, 204, 113, 0.1);
    border-color: rgba(46, 204, 113, 0.3);
}

.ship-option .ship-icon {
    height: 12px;
    width: 50px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.ship-option .ship-icon.carrier { background-image: url("img/carrier_full.png"); width: 60px; }
.ship-option .ship-icon.battleship { background-image: url("img/battleship_full.png"); width: 48px; }
.ship-option .ship-icon.cruiser { background-image: url("img/cruiser_full.png"); width: 36px; }
.ship-option .ship-icon.submarine { background-image: url("img/submarine_full.png"); width: 36px; }
.ship-option .ship-icon.destroyer { background-image: url("img/destroyer_full.png"); width: 24px; }

.error {
    background: rgba(192, 57, 43, 0.2);
    border: 1px solid #c0392b;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin: 1rem 0;
    color: #e74c3c;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.error::before {
    content: '!';
    width: 20px;
    height: 20px;
    background: #c0392b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.8rem;
}

.success {
    background: rgba(39, 174, 96, 0.2);
    border: 1px solid #27ae60;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin: 1rem 0;
    color: #2ecc71;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.success::before {
    content: '✓';
    width: 20px;
    height: 20px;
    background: #27ae60;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.8rem;
}

.waiting-message {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin: 1.5rem 0;
    animation: pulse 2s infinite;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.waiting-message::before {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--gold);
    border-radius: 50%;
    animation: statusPulse 1s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.refresh-btn {
    margin-top: 1rem;
}

.column-headers, .row-headers {
    display: flex;
    gap: 2px;
    margin-bottom: 5px;
}

.column-header {
    width: 30px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
}

.row-header {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    width: 30px;
}

.board-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.board-grid {
    display: grid;
    grid-template-columns: 30px repeat(10, 30px);
    grid-template-rows: 30px repeat(10, 30px);
    gap: 2px;
    background: rgba(10, 22, 40, 0.8);
    padding: 8px;
    border-radius: 12px;
    border: 2px solid rgba(52, 152, 219, 0.3);
    box-shadow: 
        inset 0 0 30px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(52, 152, 219, 0.1);
    position: relative;
}

.board-grid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 30px,
        rgba(52, 152, 219, 0.05) 30px,
        rgba(52, 152, 219, 0.05) 31px
    );
    pointer-events: none;
    border-radius: 10px;
}

#enemy-board-container .board-grid::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(0, 255, 65, 0.03) 50%,
        transparent 100%
    );
    pointer-events: none;
    border-radius: 10px;
    animation: radarScan 3s linear infinite;
}

@keyframes radarScan {
    0% { transform: translateY(-100%); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(100%); opacity: 0; }
}

.board-grid .corner-cell {
    width: 30px;
    height: 30px;
}

.board-grid .col-header {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: bold;
}

.board-grid .row-header {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: bold;
}

.instructions {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 1rem 0;
    padding: 0.8rem 1.2rem;
    background: rgba(10, 22, 40, 0.4);
    border-radius: 8px;
    border-left: 3px solid var(--ocean-accent);
    text-align: left;
}

.progress-bar {
    width: 100%;
    max-width: 300px;
    height: 6px;
    background: rgba(52, 152, 219, 0.2);
    border-radius: 3px;
    margin: 1rem auto;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--ocean-accent), #2ecc71);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.radar-cursor {
    cursor: crosshair;
}

.turn-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.turn-indicator .player {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
}

.turn-indicator .player.active {
    background: rgba(52, 152, 219, 0.3);
    border: 1px solid var(--ocean-accent);
    color: var(--text-primary);
}

.turn-indicator .player.inactive {
    background: rgba(52, 152, 219, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.2);
    color: var(--text-secondary);
}

.footer {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(52, 152, 219, 0.2);
    color: var(--text-secondary);
    font-size: 0.8rem;
    letter-spacing: 2px;
    opacity: 0.6;
}

@media (max-width: 900px) {
    .boards-container {
        gap: 2rem;
    }
}

@media (max-width: 700px) {
    h1 {
        font-size: 2.5rem;
        letter-spacing: 4px;
    }
    
    .container {
        padding: 1.5rem;
        width: 98%;
    }
    
    .boards-container {
        flex-direction: column;
        align-items: center;
    }
    
    .game-info {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 500px) {
    h1 {
        font-size: 2rem;
    }
    
    .btn {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .menu {
        flex-direction: column;
    }
}