* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: #10151e;
    color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
}

.game {
    width: 100%;
    max-width: 650px;
    margin: 0 auto;
    padding: 30px 20px;
    text-align: center;
}

header h1 {
    margin: 10px 0;
    color: #f99e1a;
    font-size: 42px;
    letter-spacing: 3px;
}

header p {
    color: #c7cbd1;
}

.mode-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 25px 0;
}

button {
    border: 0;
    border-radius: 7px;
    padding: 12px 20px;
    background: #f99e1a;
    color: #151515;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

button:hover {
    background: #ffbd50;
    transform: translateY(-1px);
}

.mode-button {
    background: #293342;
    color: white;
}

.mode-button.active {
    background: #f99e1a;
    color: #151515;
}

.score {
    margin: 15px 0;
    font-size: 20px;
    font-weight: bold;
}

.game-area {
    margin-top: 25px;
    padding: 25px 20px;
    background: #1c2634;
    border: 1px solid #354254;
    border-radius: 12px;
}

.ability-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 220px;
    height: 220px;
    margin: 10px auto 25px;
    overflow: hidden;
    background: #0c1119;
    border: 3px solid #f99e1a;
    border-radius: 12px;
}

.ability-container img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    --reveal: 0%;
    clip-path: inset(0 0 calc(100% - var(--reveal)) 0);
    transition: clip-path 0.4s ease;
}

#hint {
    color: #c7cbd1;
    margin-bottom: 20px;
}

#heroForm {
    display: flex;
    gap: 8px;
    max-width: 450px;
    margin: 0 auto;
}

#heroInput {
    flex: 1;
    min-width: 0;
    padding: 13px;
    border: 1px solid #566477;
    border-radius: 7px;
    background: #10151e;
    color: white;
    font-size: 16px;
}

#heroInput:focus {
    outline: 2px solid #f99e1a;
}

#keyArea {
    margin-top: 25px;
}

.key-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.key-button {
    min-width: 65px;
}

#message {
    min-height: 24px;
    margin-top: 20px;
    color: #f99e1a;
    font-weight: bold;
}

#resultArea {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #354254;
}

#resultText {
    line-height: 1.6;
}

.hidden {
    display: none !important;
}

@media (max-width: 480px) {
    .game {
        padding: 20px 12px;
    }

    header h1 {
        font-size: 34px;
    }

    .game-area {
        padding: 20px 12px;
    }

    .ability-container {
        width: 190px;
        height: 190px;
    }

    #heroForm {
        flex-direction: column;
    }

    #heroForm button {
        width: 100%;
    }
}