html {
    line-height: 1.15;
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}
body {
    margin: 0;
    font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
    font-size: 14px;
    line-height: 1.4;
    color: #333;
    background-color: #fff;
}
#gameArea .gameField{
    position: relative;
    left: 3%;
}

#gameArea .gameField div{
    margin: -1px;
    display: block;
    position: relative;
    float: left;
    background-color: #fcfcfc;
    border: 1px solid #a7ddf5;
    text-align: center;
    color: #F44336;
}

#gameArea .gameField div:last-child{
    margin-bottom: 1.5rem;
}

#gameArea .gameField div .badge{
    font-size: 2em;
    color: #F44336;
}
#gameArea .gameField .ship{
    background-color: #7bc4ff;
}


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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.game-container {
    min-height: 100vh;
    background: linear-gradient(to bottom, #e6f0ff, #f0f7ff);
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.game-content {
    max-width: 600px;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(100, 150, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.ship-image {
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ship-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ship-image img:hover {
    transform: scale(1.05);
}

.player-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    color: #2c5282;
    font-size: 1.1rem;
    font-weight: 500;
}

.input-group input {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 2px solid #e2e8f0;
    background: white;
    color: #2d3748;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-group input::placeholder {
    color: #a0aec0;
}

.input-group input:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.start-button {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 0.5rem;
    border: none;
    background: #4299e1;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(66, 153, 225, 0.2);
}

.start-button:hover {
    background: #3182ce;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(66, 153, 225, 0.3);
}

.start-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(66, 153, 225, 0.2);
}

.game-info {
    text-align: center;
    margin-bottom: 0.5rem;
}

.score-text {
    font-size: 1.2rem;
    color: #2d3748;
    margin-bottom: 1rem;
    font-weight: bolder;
}

.game-field {
    width: 100%;
    height: 260px;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
}

.field-label {
    color: #2d3748;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-align: center;
}

.restart-button {
    background: #4299e1;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(66, 153, 225, 0.2);
    display: block;
    margin: 2rem auto 0;
}

.restart-button:hover {
    background: #3182ce;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(66, 153, 225, 0.3);
}

.restart-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(66, 153, 225, 0.2);
}
.hidden {
    display: none;
}

@media (max-width: 640px) {
    .game-container {
        padding: 1rem;
    }

    .game-content {
        padding: 1.5rem;
    }

    .ship-image img {
        height: 200px;
    }
}