* {
    box-sizing: border-box;
}


body {
    background: #ffffff;
    color: #222;
    font-family: Arial, Helvetica, sans-serif;
}


.container {
    max-width: 480px;
    margin: 50px auto;
    padding: 20px;
}


h1 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 5px;
    letter-spacing: -0.5px;
}


.character {
    width: 110px;
    height: 110px;

    margin: 35px auto;

    border: 2px solid #222;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 56px;
    font-weight: bold;
    overflow: hidden;
}

.character img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.revealed-name {
    min-height: 1.5rem;
    margin: -20px auto 20px;
    text-align: center;
    font-weight: bold;
}

.revealed-name.hidden {
    visibility: hidden;
}


#history {
    display: flex;
    flex-direction: column;
    gap: 0;

    margin-bottom: 30px;
}

.status {
    text-align: center;
    margin: 0 0 20px;
    color: #555;
}

.guess-box {
    border-top: 1px solid #222;
    padding-top: 20px;
    margin-top: 20px;
}

.guess-box label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.guess-message {
    min-height: 1.5em;
    margin-top: 10px;
    font-weight: bold;
}

.hidden {
    display: none;
}

.day-summary {
    border-top: 1px solid #222;
    margin-top: 20px;
    padding-top: 20px;
}

.rotation-timer {
    margin: 22px 0 0;
    text-align: center;
    color: #555;
    font-size: 0.9rem;
}

.day-summary label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

#day-summary-text {
    width: 100%;
    min-height: 140px;
    resize: vertical;
    font-family: "Courier New", Courier, monospace;
    line-height: 1.4;
}


.question {
    display: flex;
    justify-content: space-between;
    align-items: center;

    background: #fff;

    border-bottom: 1px solid #ddd;

    padding: 12px 0;

    animation: fade .2s ease;
}


.question strong {
    font-size: 0.9rem;
}


.yes {
    color: #187a3d;
}


.no {
    color: #b00020;
}


.question-box {

    border-top: 1px solid #222;

    padding-top: 20px;

}


select,
input,
button {

    width: 100%;

    padding: 11px;

    margin-top: 10px;

    border: 1px solid #aaa;

    background: white;

    font-size: 1rem;

}


select {

    cursor: pointer;

}


button {

    background: #222;
    color: white;

    border-color: #222;

    cursor: pointer;

    transition: opacity .15s ease;
}


button:hover {

    opacity: 0.85;

}


button:active {

    transform: translateY(1px);

}


@keyframes fade {

    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}