.back-bar {
    display: flex;
    padding: 16px 16px 0;
    text-align: left;
}

.back-button {
    display: inline-block;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #888;
    text-decoration: none;
    border: 1px solid #333;
    transition: color 0.1s, border-color 0.1s;
}

.back-button:hover {
    color: #00ff80;
    border-color: #00ff80;
}

.cheese-intro {
    margin: 0;
    padding: 0 16px 16px;
    color: #888;
}

.cheese-form {
    display: flex;
    gap: 16px;
    padding: 16px;
    text-align: left;
}

.cheese-input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 12px 16px;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 16px;
    color: #ccc;
    background: #141414;
    border: 1px solid #333;
    outline: none;
    transition: border-color 0.1s;
}

.cheese-input::placeholder {
    color: #666;
}

.cheese-input:focus {
    border-color: #ffd23f;
}

.cheese-button {
    flex: none;
    padding: 12px 24px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #111;
    background: #ffd23f;
    border: 1px solid #ffd23f;
    cursor: pointer;
    transition: background 0.1s, border-color 0.1s, color 0.1s;
}

.cheese-button:hover {
    background: #ffdf70;
    border-color: #ffdf70;
}

.cheese-hint {
    margin: 0;
    padding: 0 16px 16px;
    min-height: 1.2em;
    font-size: 12px;
    color: #888;
    text-align: left;
}

.cheese-hint.is-error {
    color: #ff0040;
}

.cheese-chat[hidden] {
    display: none;
}

.cheese-chat {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 24px 16px;
    text-align: left;
}

.cheese-avatar {
    position: relative;
    flex: none;
    width: 88px;
    height: 80px;
    box-sizing: border-box;
    border: 2px solid #b8860b;
    background: #ffd23f;
    box-shadow: 4px 4px 0 #333;
    image-rendering: pixelated;
    animation: cheese-bob 2.4s ease-in-out infinite;
}

.cheese-hole {
    position: absolute;
    border-radius: 50%;
    background: #b8860b;
}

.hole-1 {
    width: 16px;
    height: 16px;
    top: 14%;
    left: 16%;
}

.hole-2 {
    width: 10px;
    height: 10px;
    top: 22%;
    right: 18%;
}

.hole-3 {
    width: 22px;
    height: 22px;
    bottom: 16%;
    left: 38%;
}

.hole-4 {
    width: 12px;
    height: 12px;
    bottom: 14%;
    right: 12%;
}

.cheese-bubble {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    padding: 16px;
    border: 1px solid #333;
    background: #141414;
}

.cheese-bubble::before {
    content: "";
    position: absolute;
    top: 22px;
    left: -8px;
    width: 14px;
    height: 14px;
    background: #141414;
    border-left: 1px solid #333;
    border-bottom: 1px solid #333;
    transform: rotate(45deg);
}

.cheese-question {
    margin: 0 0 8px;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #888;
    word-break: break-word;
}

.cheese-answer {
    margin: 0;
    min-height: 1.6em;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.5;
    color: #ffd23f;
    word-break: break-word;
}

.cheese-cursor {
    display: inline-block;
    width: 0.6ch;
    height: 1.1em;
    margin-left: 2px;
    vertical-align: text-bottom;
    background: #ffd23f;
    animation: cheese-blink 1s steps(1) infinite;
}

.cheese-cursor[hidden] {
    display: none;
}

@keyframes cheese-blink {
    0%, 49% {
        opacity: 1;
    }
    50%, 100% {
        opacity: 0;
    }
}

@keyframes cheese-bob {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .cheese-avatar,
    .cheese-cursor {
        animation: none;
    }
}

@media (max-width: 768px) {
    .cheese-form {
        flex-direction: column;
    }

    .cheese-button {
        width: 100%;
    }

    .cheese-chat {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .cheese-bubble {
        width: 100%;
        box-sizing: border-box;
    }

    .cheese-bubble::before {
        display: none;
    }
}
