#game-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 2px solid #ccc;
    border-radius: 16px;
    padding: 1.5em;
    margin-top: 2em;
    background-color: #dde8f8;
    text-align: center;
    gap: 1em;
    margin-left: auto;
    margin-right: auto;
    max-width: 420px;
    position: relative;
    min-height: 480px;
}

#score-area {
    background-color: #f0f8ff;
    border: 2px solid #add8e6;
    border-radius: 16px;
    padding: 1.5em;
    max-width: 420px;
    margin: 2em auto;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-size: 1.1em;
}

.word.selected {
    background: #cce5ff;
}

.word.wrong {
    background: #ff6666;
    color: #fff;
    border-color: #ff6666;
}

.word {
    cursor: pointer;
    padding: 0.5em;
    border: 1px solid #ccc;
    margin-bottom: 0.5em;
    border-radius: 5px;
    background: #f9f9f9;
}


.lang-btn {
    margin: 0.5em;
    padding: 0.7em 1.5em;
    font-size: 1em;
    border-radius: 5px;
    border: 1px solid #888;
    background: #f0f0f0;
    cursor: pointer;
    display: inline-block;
    text-align: center;
    width: 200px;
    padding: 0.5em;
    box-sizing: border-box;
}

.word.card-fixed {
    width: 150px;
    min-height: 2.5em;
    height: 4em;
    min-width: 150px;
    max-width: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-left: auto;
    margin-right: auto;

}

.card-columns {
    width: 100%;
    max-width: 100%;
    display: grid;
    grid-template-columns: 150px 150px;
    gap: 2.5em;
    padding-top: 20px;
    justify-content: center;
    justify-items: center;
    align-items: start;
    margin: 0 auto;
    box-sizing: border-box;
}

.game-section {
    font-size: 1.2em;
}

#countdown-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 16px;
}

#countdown-number {
    font-size: 5em;
    font-weight: bold;
    color: #3366cc;
    text-shadow: 2px 2px 8px #fff;
}

#start-area label {
    font-size: 1.15em;
    font-weight: bold;
    margin-right: 0.5em;
}
#start-area select, #start-area input[type="number"] {
    font-size: 1.15em;
    padding: 0.2em 0.5em;
    margin-right: 1em;
    vertical-align: middle;
    height: 2.2em;
    box-sizing: border-box;
}
#start-area > div {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5em;
}

/* 設定項目の整列 */
#start-area .input-row {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    margin: 0.5em 0 !important;
    width: 100%;
    max-width: 350px;
    margin-left: auto !important;
    margin-right: auto !important;
}

#start-area .input-row label {
    width: 120px !important;
    text-align: right !important;
    margin-right: 10px !important;
    flex-shrink: 0;
    font-size: 1.15em;
    font-weight: bold;
}

#start-area .input-row select,
#start-area .input-row input[type="number"] {
    font-size: 1.15em;
    padding: 0.2em 0.5em;
    height: 2.2em;
    box-sizing: border-box;
    text-align: left !important;
    flex-grow: 0;
    flex-shrink: 0;
}

@media (max-width: 600px) {
    #game-area {
    max-width: 90%;
    padding: 0.5em;
    }

    .column {
        margin: 0;
        width: 100%;
    }

    .word.card-fixed {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        font-size: 1em;
    }
}