#helper-mascot {
    width: auto;
    color: #f8e8c5;
    text-align: left;
}

#helper-mascot[data-state="expanded"] {
    width: min(100%, 560px);
}

#helper-mascot[data-state="minimized"] {
    display: flex;
    justify-content: center;
}

#helper-mascot[hidden],
#helper-mascot-panel[hidden] {
    display: none;
}

#helper-mascot[data-state="expanded"] #helper-mascot-toggle {
    min-height: 48px;
    margin: 0 auto;
    padding: 6px 14px 6px 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid rgba(242, 198, 105, 0.55);
    border-radius: 999px;
    background: linear-gradient(180deg, #5a371a 0%, #2c190c 100%);
    color: #ffe9b0;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 8px 18px rgba(0, 0, 0, 0.28);
    font: inherit;
    font-weight: 750;
    cursor: pointer;
}

.helper-mascot-face {
    position: relative;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 2px solid #f4d37e;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 28%, #fff4c9 0 5%, transparent 6%),
        linear-gradient(145deg, #b85c2d 0%, #713016 100%);
    box-shadow: inset 0 -3px 0 rgba(49, 17, 4, 0.28);
}

#helper-mascot[data-state="expanded"] .helper-mascot-face {
    display: flex;
}

.helper-mascot-eye {
    width: 4px;
    height: 5px;
    margin-top: -5px;
    border-radius: 50%;
    background: #231208;
}

.helper-mascot-smile {
    position: absolute;
    left: 50%;
    bottom: 7px;
    width: 12px;
    height: 6px;
    border-bottom: 2px solid #231208;
    border-radius: 0 0 12px 12px;
    transform: translateX(-50%);
}

.helper-mascot-close-label {
    display: none;
}

#helper-mascot[data-state="expanded"] .helper-mascot-open-label {
    display: none;
}

#helper-mascot[data-state="expanded"] .helper-mascot-close-label {
    display: inline;
}

#helper-mascot-panel {
    margin-top: 8px;
    padding: 14px;
    border: 1px solid rgba(242, 198, 105, 0.4);
    border-radius: 16px;
    background:
        linear-gradient(135deg, rgba(103, 54, 23, 0.97), rgba(35, 19, 9, 0.98));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 12px 24px rgba(0, 0, 0, 0.3);
}

.helper-mascot-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.helper-mascot-eyebrow {
    display: block;
    margin-bottom: 3px;
    color: #e6bd67;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.11em;
}

#helper-mascot-title {
    color: #fff0c8;
    font-size: 1rem;
    line-height: 1.25;
}

#helper-mascot-minimize {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border: 1px solid rgba(243, 205, 125, 0.35);
    border-radius: 12px;
    background: rgba(20, 10, 4, 0.45);
    color: #ffe7ac;
    font-size: 1.25rem;
    cursor: pointer;
}

.helper-mascot-note {
    margin: 9px 0 12px;
    color: #e7d4b2;
    font-size: 0.82rem;
    line-height: 1.4;
}

.helper-mascot-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.helper-mascot-actions a,
.helper-mascot-actions button {
    min-height: 44px;
    padding: 9px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(241, 203, 125, 0.38);
    border-radius: 11px;
    background: rgba(24, 12, 5, 0.58);
    color: #ffe8b7;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 750;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

#helper-mascot-toggle:hover,
#helper-mascot-toggle:focus-visible,
#helper-mascot-minimize:hover,
#helper-mascot-minimize:focus-visible,
.helper-mascot-actions a:hover,
.helper-mascot-actions a:focus-visible,
.helper-mascot-actions button:hover,
.helper-mascot-actions button:focus-visible {
    border-color: #f5ce76;
    outline: 3px solid rgba(255, 222, 139, 0.32);
    outline-offset: 2px;
}

@media (max-width: 600px) {
    #helper-mascot-panel {
        padding: 12px;
    }

    .helper-mascot-actions {
        grid-template-columns: 1fr;
    }

    .helper-mascot-actions a,
    .helper-mascot-actions button {
        min-height: 46px;
    }
}

@media (max-height: 600px) and (orientation: landscape) {
    #helper-mascot-panel {
        padding: 10px;
    }

    .helper-mascot-note {
        margin: 6px 0 8px;
    }

    .helper-mascot-actions a,
    .helper-mascot-actions button {
        min-height: 40px;
        padding: 7px 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #helper-mascot *,
    #helper-mascot *::before,
    #helper-mascot *::after {
        scroll-behavior: auto;
        transition: none !important;
        animation: none !important;
    }
}
