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

@import url('https://fonts.googleapis.com/css2?family=Pirata+One&family=Roboto:wght@400;700&display=swap');

body {
    font-family: 'Roboto', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    margin: 0;
    position: relative;
    background-image: url('SchiffeVersenken.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-color: #0a1f2e;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.55);
    pointer-events: none;
    z-index: 0;
}

.container {
    background: rgba(30, 20, 15, 0.88);
    backdrop-filter: blur(4px);
    border-radius: 60px;
    padding: 25px;
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(201, 168, 123, 0.5);
    max-width: 1400px;
    width: 100%;
    position: relative;
    z-index: 1;
}

h1 {
    font-family: 'Pirata One', cursive;
    font-size: 2.8rem;
    text-align: center;
    margin: 0 0 10px 0;
    background: linear-gradient(135deg, #f3c26b, #d4a373);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* ==================== RESET-INFO ==================== */
.reset-info {
    background: rgba(0, 0, 0, 0.65);
    border-radius: 30px;
    padding: 12px 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    border: 1px solid rgba(201, 168, 123, 0.5);
}

.reset-date {
    color: #ffecb3;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.reset-badge {
    
    color: #ffecb3;
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.reset-badge.reset-today {
    background: linear-gradient(135deg, #ff0000, #f472b6);
    animation: pulse-red 1s infinite;
}

@keyframes pulse-red {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}



/* ==================== LOGIN CONTAINER ==================== */
.login-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.login-box {
    background: rgba(0, 0, 0, 0.65);
    border-radius: 40px;
    padding: 25px;
    border: 1px solid rgba(201, 168, 123, 0.5);
    backdrop-filter: blur(2px);
}

.login-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #c9a87b;
}

.login-icon {
    font-size: 2rem;
    background: linear-gradient(135deg, #c9a87b, #b87c4a);
    padding: 8px;
    border-radius: 20px;
}

.login-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffecb3;
    font-family: 'Pirata One', cursive;
}

.input-group {
    margin-bottom: 18px;
}

.input-group label {
    display: block;
    color: #c9a87b;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.input-field {
    width: 100%;
    padding: 12px 18px;
    background: rgba(44, 36, 26, 0.95);
    border: 1px solid #c9a87b;
    border-radius: 30px;
    color: #ffecb3;
    font-size: 1rem;
    transition: all 0.3s;
}

.input-field:focus {
    outline: none;
    border-color: #ffb347;
    box-shadow: 0 0 0 3px rgba(255, 180, 70, 0.3);
}

.login-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #c9a87b, #b87c4a);
    border: none;
    border-radius: 30px;
    color: #2c1d12;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

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

.error-message {
    background: rgba(201, 79, 44, 0.3);
    border: 1px solid #c94f2c;
    color: #ffaa88;
    padding: 10px;
    border-radius: 20px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 0.9rem;
}

.hint {
    text-align: center;
    color: #c9a87b;
    font-size: 0.8rem;
    margin-top: 15px;
}

/* ==================== HIGHSCORE BOX ==================== */
.highscore-box {
    background: rgba(0, 0, 0, 0.65);
    border-radius: 40px;
    padding: 25px;
    border: 1px solid rgba(201, 168, 123, 0.5);
    backdrop-filter: blur(2px);
    overflow-x: auto;
}

.highscore-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #c9a87b;
}

.highscore-icon {
    font-size: 2rem;
    background: linear-gradient(135deg, #f59e0b, #f472b6);
    padding: 8px;
    border-radius: 20px;
}

.highscore-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffb347;
    font-family: 'Pirata One', cursive;
}

.highscore-table {
    width: 100%;
    border-collapse: collapse;
    color: #ffecb3;
    font-size: 0.9rem;
    border: 1px solid #c9a87b;
    border-radius: 12px;
    overflow: hidden;
}

.highscore-table th {
    text-align: center;
    padding: 10px 8px;
    background: rgba(201, 168, 123, 0.2);
    font-weight: 600;
    color: #ffb347;
    border: 1px solid #c9a87b;
    font-size: 0.9rem;
}

.highscore-table td {
    padding: 8px 8px;
    border: 1px solid rgba(201, 168, 123, 0.3);
    font-size: 0.9rem;
    text-align: center;
}

.highscore-table tr:hover {
    background: rgba(255, 180, 70, 0.2);
}

.rank-1-row {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.05));
}

.rank-2-row {
    background: linear-gradient(90deg, rgba(192, 192, 192, 0.2), rgba(192, 192, 192, 0.05));
}

.rank-3-row {
    background: linear-gradient(90deg, rgba(205, 127, 50, 0.2), rgba(205, 127, 50, 0.05));
}

.timestamp-col {
    font-size: 0.75rem;
    color: #c9a87b;
}

.no-highscore {
    text-align: center;
    color: #c9a87b;
    padding: 30px;
    font-size: 0.9rem;
}

/* ==================== USER INFO ==================== */
.user-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    background: rgba(0, 0, 0, 0.65);
    border-radius: 40px;
    padding: 12px 20px;
    border: 1px solid rgba(201, 168, 123, 0.5);
}

.welcome-text {
    color: #ffecb3;
    font-size: 1rem;
}

.welcome-text::before {
    content: "🏴‍☠️ ";
    font-size: 1.1rem;
}

.logout-btn {
    background: linear-gradient(135deg, #c94f2c, #a03a1a);
    padding: 8px 20px;
    border: none;
    border-radius: 30px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

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

/* ==================== MODUS AUSWAHL ==================== */
.mode-selection {
    background: rgba(0, 0, 0, 0.65);
    border-radius: 40px;
    padding: 25px;
    margin-bottom: 20px;
    text-align: center;
    border: 1px solid rgba(201, 168, 123, 0.5);
}

.mode-selection h3 {
    color: #ffb347;
    font-size: 1.3rem;
    margin-bottom: 20px;
    font-family: 'Pirata One', cursive;
}

.mode-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.mode-btn {
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mode-btn.singleplayer {
    background: linear-gradient(135deg, #4a9e6b, #2a6e4a);
    color: white;
}

.mode-btn.multiplayer {
    background: linear-gradient(135deg, #c9a87b, #b87c4a);
    color: #2c1d12;
}

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

/* ==================== MULTIPLAYER LOBBY ==================== */
.mp-lobby {
    background: rgba(0, 0, 0, 0.65);
    border-radius: 40px;
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid rgba(201, 168, 123, 0.5);
}

.lobby-card {
    text-align: center;
}

.lobby-card h3 {
    color: #ffb347;
    margin-bottom: 20px;
    font-family: 'Pirata One', cursive;
    font-size: 1.5rem;
}

.lobby-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(201, 168, 123, 0.3);
    padding-bottom: 10px;
}

.lobby-tab {
    flex: 1;
    padding: 10px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 30px;
    color: #c9a87b;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
}

.lobby-tab.active {
    background: linear-gradient(135deg, #c9a87b, #b87c4a);
    color: #2c1d12;
    font-weight: bold;
}

.lobby-panel {
    display: none;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 30px;
    margin-bottom: 20px;
}

.lobby-panel.active {
    display: block;
}

.lobby-info-text {
    text-align: center;
    color: #ffecb3;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.big-btn {
    width: 100%;
    padding: 15px;
    font-size: 1.2rem;
    background: linear-gradient(135deg, #4a9e6b, #2a6e4a);
    color: white;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.3s;
}

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

.join-area {
    display: flex;
    gap: 10px;
    flex-direction: column;
}

.join-area input {
    padding: 15px;
    font-size: 1.3rem;
    text-align: center;
    background: rgba(44, 36, 26, 0.95);
    border: 2px solid #c9a87b;
    border-radius: 30px;
    color: #ffb347;
    font-weight: bold;
    text-transform: uppercase;
}

.join-area input:focus {
    outline: none;
    border-color: #ffb347;
    box-shadow: 0 0 10px rgba(255, 180, 70, 0.5);
}

.mp-btn.join {
    background: linear-gradient(135deg, #c9a87b, #b87c4a);
    color: #2c1d12;
    padding: 12px;
    font-size: 1rem;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

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

.lobby-code-container {
    background: linear-gradient(135deg, #1e1812, #2c241a);
    border-radius: 30px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
    border: 1px solid #c9a87b;
}

.lobby-code-label {
    font-size: 0.8rem;
    color: #c9a87b;
    margin-bottom: 5px;
}

.lobby-code-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.code-display {
    font-size: 2rem;
    font-family: monospace;
    letter-spacing: 3px;
    color: #ffb347;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 15px;
    display: inline-block;
}

.copy-code-btn {
    background: linear-gradient(135deg, #c9a87b, #b87c4a);
    border: none;
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

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

.player-list-container {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    padding: 15px;
    margin-bottom: 20px;
}

.player-list-title {
    text-align: center;
    color: #ffb347;
    margin-bottom: 10px;
    font-weight: bold;
}

.player-list {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    min-height: 60px;
}

.mp-player-badge {
    background: linear-gradient(135deg, #2c241a, #1e1812);
    padding: 10px 20px;
    border-radius: 30px;
    border: 1px solid #c9a87b;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #ffecb3;
}

.mp-player-badge.ready {
    border-color: #4caf50;
    background: rgba(76, 175, 80, 0.2);
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
}

.lobby-status {
    text-align: center;
    padding: 10px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 30px;
    margin-bottom: 20px;
    color: #ffecb3;
}

.lobby-actions-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.start-btn, .leave-btn, .leave-game-btn, .new-game-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.start-btn {
    background: linear-gradient(135deg, #4caf50, #2e7d32);
    color: white;
    font-size: 1rem;
}

.start-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.leave-btn, .leave-game-btn {
    background: linear-gradient(135deg, #c94f2c, #a03a1a);
    color: white;
}

.new-game-btn {
    background: linear-gradient(135deg, #c9a87b, #b87c4a);
    color: #2c1d12;
}

.start-btn:hover, .leave-btn:hover, .leave-game-btn:hover, .new-game-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* ==================== PLATZIERUNGSBEREICH ==================== */
.placement-section {
    background: rgba(0, 0, 0, 0.65);
    border-radius: 40px;
    padding: 25px;
    margin-bottom: 20px;
    text-align: center;
    backdrop-filter: blur(2px);
    border: 1px solid rgba(201, 168, 123, 0.5);
}

.placement-section h3 {
    color: #ffb347;
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-family: 'Pirata One', cursive;
}

.ships-to-place {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.ship-card {
    background: linear-gradient(145deg, #2c241a, #1e1812);
    padding: 8px 16px;
    border-radius: 30px;
    border: 2px solid #c9a87b;
    transition: 0.2s;
    text-align: center;
    min-width: 100px;
}

.ship-card.selected {
    border-color: #ffaa00;
    background: linear-gradient(145deg, #3a6a4a, #2a5a3a);
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 170, 0, 0.5);
}

.ship-card.placed {
    opacity: 0.5;
    text-decoration: line-through;
    border-color: #6b5a42;
}

.ship-name {
    font-weight: bold;
    color: #ffecb3;
    font-size: 0.9rem;
}

.ship-length {
    font-size: 0.7rem;
    color: #c9a87b;
    letter-spacing: 2px;
}

.placement-controls {
    margin-top: 15px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.orientation-btn {
    background: #2c241a;
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    border: 1px solid #c9a87b;
    transition: 0.2s;
    color: #ffecb3;
    font-weight: bold;
}

.orientation-btn.active {
    background: #ffb347;
    color: #1e1812;
    border-color: #ffb347;
}

/* ==================== SPIELBRETTER ==================== */
.board {
    display: grid;
    grid-template-columns: repeat(10, 42px);
    grid-template-rows: repeat(10, 42px);
    gap: 2px;
    background: #2c241a;
    border: 3px solid #c9a87b;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.cell {
    background: #3a2e24;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.15s ease;
    cursor: pointer;
    color: rgba(255, 236, 179, 0.5);
}

.cell:hover:not(.hit):not(.miss):not(.ship-hit) {
    background: #c9a87b;
    transform: scale(0.98);
    cursor: pointer;
}

.cell.ship {
    background: linear-gradient(135deg, #5a8f6c, #3a6e4a);
    box-shadow: inset 0 0 0 1px rgba(201, 168, 123, 0.5);
}

.cell.hit, .cell.ship-hit {
    background: #c94f2c;
    position: relative;
    animation: hitFlash 0.3s ease;
}

.cell.miss {
    background: #5a5a5a;
    position: relative;
}

.cell.hit::after, .cell.ship-hit::after {
    content: "💥";
    font-size: 1rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.cell.miss::after {
    content: "🌊";
    font-size: 0.8rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes hitFlash {
    0% { transform: scale(1); background: #ff6a4a; }
    50% { transform: scale(1.1); background: #ff8a6a; }
    100% { transform: scale(1); background: #c94f2c; }
}

.placement-hover {
    background: rgba(201, 168, 123, 0.6);
    box-shadow: inset 0 0 0 2px #ffb347;
}

.boards-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

.board-card {
    background: linear-gradient(145deg, #2c241a, #1e1812);
    border-radius: 28px;
    padding: 15px;
    box-shadow: 15px 15px 25px rgba(0, 0, 0, 0.5);
    text-align: center;
    border: 1px solid rgba(201, 168, 123, 0.3);
}

.board-title {
    text-align: center;
    margin-bottom: 12px;
    font-family: 'Pirata One', cursive;
    font-size: 1.1rem;
    color: #ffecb3;
}

.placement-board-container {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    overflow-x: auto;
}

.placement-hint {
    font-size: 11px;
    margin-top: 12px;
    color: #c9a87b;
}

.ready-btn {
    background: linear-gradient(135deg, #4a9e6b, #2a6e4a);
    color: white;
    font-size: 1rem;
    padding: 10px 25px;
    margin-top: 20px;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    transition: 0.2s;
    font-weight: bold;
}

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

.ready-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ==================== INFO PANEL ==================== */
.info-panel {
    background: linear-gradient(135deg, #2c241a, #1e1812);
    border-radius: 60px;
    padding: 12px 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    border: 1px solid rgba(201, 168, 123, 0.3);
}

.status {
    background: rgba(0, 0, 0, 0.6);
    padding: 8px 20px;
    border-radius: 40px;
    color: #ffecb3;
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    min-width: 250px;
    transition: all 0.3s ease;
    border-left: 3px solid #ffb347;
}

.turn-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.5);
    padding: 6px 16px;
    border-radius: 40px;
    color: #ffecb3;
}

.turn-light {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #4caf50;
    animation: pulse 1s infinite;
}

.turn-light.my-turn {
    background: #4caf50;
    box-shadow: 0 0 10px #4caf50;
}

.turn-light.enemy-turn {
    background: #ff9800;
    box-shadow: 0 0 10px #ff9800;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.stats {
    display: flex;
    gap: 15px;
    color: #ffecb3;
    font-size: 0.9rem;
}

.stats span {
    background: rgba(0, 0, 0, 0.5);
    padding: 4px 12px;
    border-radius: 20px;
}

.info-panel button {
    background: linear-gradient(135deg, #c9a87b, #b87c4a);
    border: none;
    font-weight: bold;
    padding: 6px 18px;
    border-radius: 40px;
    cursor: pointer;
    transition: 0.2s;
    color: #2c1d12;
}

.info-panel button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* ==================== HINT SYSTEM ==================== */
.hint-system {
    margin-top: 15px;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 30px;
    border-left: 4px solid #ffb347;
}

.hint-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.hint-icon {
    font-size: 1.2rem;
}

.hint-text {
    flex: 1;
    font-size: 0.85rem;
    color: #ffecb3;
}

.hint-counter {
    background: #ffb347;
    padding: 3px 12px;
    border-radius: 30px;
    font-weight: bold;
    color: #2c1d12;
}

/* ==================== SCHWIERIGKEITSGRAD-MODAL ==================== */
.difficulty-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.difficulty-modal {
    background: linear-gradient(135deg, #2c241a, #1e1812);
    border-radius: 40px;
    padding: 30px;
    max-width: 800px;
    width: 90%;
    border: 2px solid #c9a87b;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.difficulty-modal h2 {
    text-align: center;
    color: #ffb347;
    font-family: 'Pirata One', cursive;
    font-size: 2rem;
    margin-bottom: 30px;
}

.difficulty-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.difficulty-option {
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid #c9a87b;
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.difficulty-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border-color: #ffb347;
}

.difficulty-option.selected {
    background: rgba(255, 180, 70, 0.2);
    transform: scale(1.02);
    border-color: #ffb347;
    box-shadow: 0 0 20px rgba(255, 180, 70, 0.5);
}

.difficulty-name {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    font-family: 'Pirata One', cursive;
    color: #ffecb3;
}

.difficulty-multiplier {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #ffb347;
}

.difficulty-desc {
    font-size: 0.85rem;
    color: #c9a87b;
}

.difficulty-confirm {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #c9a87b, #b87c4a);
    border: none;
    border-radius: 40px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #2c1d12;
    cursor: pointer;
    transition: all 0.3s;
}

.difficulty-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* ==================== MULTIPLAYER BOARD OVERRIDES ==================== */
#mpEnemyBoard .cell[style*="cursor: pointer"]:hover {
    background: #ffb347 !important;
    transform: scale(0.95);
    transition: all 0.2s;
    cursor: pointer;
}

.cell.waiting {
    background: #ffb347;
    animation: pulse 1s infinite;
}

/* ==================== AUTOFILL FIX ==================== */
/* Verhindert Browser-Autofill-Störungen */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    transition: background-color 5000s ease-in-out 0s;
}

/* Zusätzlicher Schutz gegen Autofill */
input[autocomplete="off"] {
    -webkit-text-security: none;
}

input[type="password"][autocomplete="new-password"] {
    -webkit-text-security: disc;
}

/* ==================== HILFSKLASSEN ==================== */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 900px) {
    .boards-wrapper {
        flex-direction: column;
        align-items: center;
    }
    
    .info-panel {
        flex-direction: column;
        text-align: center;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .login-container {
        grid-template-columns: 1fr;
    }
    
    .highscore-title {
        font-size: 1.2rem;
    }
    
    .code-display {
        font-size: 1.2rem;
    }
    
    .status {
        min-width: auto;
        font-size: 0.9rem;
    }
    
    .stats {
        justify-content: center;
    }
    
    .board {
        grid-template-columns: repeat(10, 32px);
        grid-template-rows: repeat(10, 32px);
    }
    
    .cell {
        font-size: 0.7rem;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 15px;
    }
    
    .reset-info {
        flex-direction: column;
        text-align: center;
    }
    
    .highscore-table th, 
    .highscore-table td {
        padding: 5px;
        font-size: 0.7rem;
    }
    
    .code-display {
        font-size: 1rem;
        letter-spacing: 2px;
    }
    
    .ship-card {
        padding: 4px 10px;
        min-width: 80px;
    }
    
    .ship-name {
        font-size: 0.7rem;
    }
    
    .mode-btn {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
    
    .lobby-tab {
        font-size: 0.8rem;
        padding: 8px;
    }
    
    .start-btn, .leave-btn, .leave-game-btn, .new-game-btn {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
    
    .board {
        grid-template-columns: repeat(10, 28px);
        grid-template-rows: repeat(10, 28px);
    }
    
    .cell {
        font-size: 0.6rem;
    }
    
    .cell.hit::after, .cell.ship-hit::after {
        font-size: 0.7rem;
    }
    
    .cell.miss::after {
        font-size: 0.6rem;
    }
}

/* Footer Styles */
.login-footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    font-size: 0.9rem;
    color: #ffecb3;  /* Weiße Schriftfarbe */
    border-top: 1px solid rgba(59, 130, 246, 0.2);
    background: rgba(0, 0, 0, 0.5;
    border-radius: 12px;    
    font-family: 'Segoe UI', 'Poppins', sans-serif;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.login-footer:hover {
    color: #ffffff;  /* Weiß bleibt auch beim Hover */
    border-top-color: rgba(59, 130, 246, 0.5);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.9));
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .login-footer {
        font-size: 0.8rem;
        padding: 15px;
        margin-top: 30px;
    }
}

@media (max-width: 480px) {
    .login-footer {
        font-size: 0.7rem;
        padding: 12px;
        margin-top: 20px;
    }
}

/* Optional: Sanfter Glow-Effekt für bessere Lesbarkeit */
.login-footer {
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
    animation: footerGlow 1s ease-out;
}

@keyframes footerGlow {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
