body {
    background-color: #f0f0f0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.ok-ah-phone {
    background-color: #333;
    border-radius: 20px;
    padding: 20px;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    border: 8px solid #222;
    position: relative;
}

.phone-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.speaker {
    width: 60px;
    height: 8px;
    background-color: #222;
    border-radius: 4px;
}

.camera {
    width: 12px;
    height: 12px;
    background-color: #111;
    border-radius: 50%;
}

.phone-screen {
    background-color: #9bbc0f;
    border: 8px solid #777;
    border-radius: 5px;
    height: 300px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

#game-container {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#game-board {
    width: 240px;
    height: 240px;
    background-color: #8bac0f;
    position: relative;
    border: 2px solid #777;
    display: grid;
    grid-template-columns: repeat(20, 1fr);
    grid-template-rows: repeat(20, 1fr);
}

.snake-segment {
    background-color: #306230;
    border: 1px solid #0f380f;
    border-radius: 2px;
}

.snake-head {
    background-color: #0f380f;
    border-radius: 3px;
}

.food {
    background-color: #e04040;
    border-radius: 50%;
    border: 1px solid #8b2020;
}

#score-display, #high-score-display {
    color: #0f380f;
    font-weight: bold;
    margin-top: 5px;
    font-size: 14px;
}

#game-over, #start-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 10;
}

#start-screen h2 {
    color: #9bbc0f;
    font-weight: bold;
    text-shadow: 2px 2px #0f380f;
    margin-bottom: 20px;
}

.phone-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 15px;
}

.d-pad {
    width: 100px;
    height: 100px;
    position: relative;
    margin-bottom: 15px;
}

.d-pad-center {
    position: absolute;
    width: 40px;
    height: 40px;
    background-color: #555;
    border-radius: 50%;
    top: 30px;
    left: 30px;
    z-index: 1;
}

.d-pad-up, .d-pad-right, .d-pad-down, .d-pad-left {
    position: absolute;
    width: 40px;
    height: 25px;
    background-color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ddd;
    cursor: pointer;
    user-select: none;
}

.d-pad-up {
    top: 0;
    left: 30px;
    border-radius: 10px 10px 0 0;
}

.d-pad-right {
    top: 30px;
    right: 0;
    border-radius: 0 10px 10px 0;
    width: 25px;
    height: 40px;
}

.d-pad-down {
    bottom: 0;
    left: 30px;
    border-radius: 0 0 10px 10px;
}

.d-pad-left {
    top: 30px;
    left: 0;
    border-radius: 10px 0 0 10px;
    width: 25px;
    height: 40px;
}

.action-buttons {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0 20px;
}

.btn-left, .btn-right {
    background-color: #555;
    color: #ddd;
    padding: 8px 15px;
    border-radius: 15px;
    font-size: 12px;
    cursor: pointer;
    user-select: none;
}

.phone-bottom {
    text-align: center;
}

.ok-ah-logo {
    color: #ddd;
    font-weight: bold;
    font-size: 18px;
    letter-spacing: 2px;
}

.btn-light {
    background-color: #9bbc0f;
    color: #0f380f;
    font-weight: bold;
    border: none;
}

.btn-light:hover {
    background-color: #8bac0f;
}