.mascot-corner-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    cursor: pointer;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 14px;
    transition: 0.3s;
}

.mascot-corner-group {
    position: relative;
    flex-shrink: 0;
}

.mascot-corner-circle {
    width: 76px;
    height: 76px;
    background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
    border-radius: 50%;
    border: 3px solid #004b87;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,75,135,0.25);
    transition: 0.3s;
}

.mascot-corner-widget:hover {
    transform: scale(1.05) translateX(-4px);
}

.mascot-corner-widget:hover .mascot-corner-circle {
    border-color: #e23822;
    box-shadow: 0 12px 40px rgba(226,56,34,0.25);
}

.mascot-corner-svg {
    width: 60px;
    height: 60px;
    display: block;
}

.mascot-corner-accessory {
    position: absolute;
    top: -4px;
    right: -4px;
    font-size: 0.9rem;
    z-index: 100;
    background: white;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid #e23822;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
    line-height: 1;
}

.mascot-corner-bubble {
    background: #004b87;
    color: white;
    padding: 10px 16px;
    border-radius: 18px 18px 18px 0;
    font-size: 0.8rem;
    font-weight: 700;
    opacity: 0;
    transition: 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
    max-width: 220px;
    min-width: 140px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    border: 2px solid white;
    line-height: 1.3;
    position: relative;
}

.mascot-corner-bubble::before {
    content: '';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
    border-left: 9px solid white;
    z-index: 0;
}

.mascot-corner-bubble::after {
    content: '';
    position: absolute;
    right: -7px;
    top: 50%;
    transform: translateY(-50%);
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-left: 7px solid #004b87;
    z-index: 1;
}

.mascot-corner-widget:hover .mascot-corner-bubble {
    opacity: 1;
}

.mascot-corner-bubble.show {
    opacity: 1;
}

.mascot-corner-time {
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    background: #e23822;
    color: white;
    font-size: 0.65rem;
    font-weight: 900;
    padding: 2px 10px;
    border-radius: 14px;
    z-index: 20;
    box-shadow: 0 3px 8px rgba(0,0,0,0.25);
    border: 2px solid white;
    letter-spacing: 1px;
    white-space: nowrap;
}

body.dark-mode .mascot-sb-circle {
    background: #334155;
    border-color: #e23822;
}

body.dark-mode .mascot-sb-accessory {
    background: #334155;
}

body.dark-mode .mascot-sb:hover .mascot-sb-circle {
    border-color: #60a5fa;
}

body.dark-mode .mascot-sb {
    border-bottom-color: rgba(255,255,255,0.15);
}

@media print {
    .mascot-corner-widget, .mascot-sb { display: none !important; }
}

/* Sidebar version */
.mascot-sb {
    padding: 8px 16px 10px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 6px;
}

.mascot-sb-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mascot-sb-group {
    position: relative;
    flex-shrink: 0;
}

.mascot-sb-circle {
    width: 46px;
    height: 46px;
    background: white;
    border-radius: 50%;
    border: 2px solid #e23822;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    transition: 0.3s;
    box-shadow: 0 3px 10px rgba(0,0,0,0.12);
}

.mascot-sb:hover .mascot-sb-circle {
    transform: scale(1.08);
    border-color: #004b87;
    box-shadow: 0 6px 18px rgba(0,75,135,0.25);
}

.mascot-sb-svg {
    width: 34px;
    height: 34px;
    display: block;
}

.mascot-sb-accessory {
    position: absolute;
    top: -4px;
    right: -4px;
    font-size: 0.7rem;
    z-index: 100;
    background: white;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid #e23822;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    line-height: 1;
}

.mascot-sb-time {
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    background: #e23822;
    color: white;
    font-size: 0.55rem;
    font-weight: 900;
    padding: 1px 6px;
    border-radius: 8px;
    border: 1px solid white;
    letter-spacing: 1px;
    white-space: nowrap;
}

.mascot-sb-bubble {
    background: #004b87;
    color: white;
    padding: 5px 10px;
    border-radius: 12px 12px 12px 0;
    font-size: 0.65rem;
    font-weight: 600;
    opacity: 0;
    transition: 0.3s;
    pointer-events: none;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    border: 1px solid white;
    line-height: 1.3;
    position: relative;
    max-width: 170px;
}

.mascot-sb-bubble::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-right: 7px solid white;
    z-index: 0;
}

.mascot-sb-bubble::after {
    content: '';
    position: absolute;
    left: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-right: 5px solid #004b87;
    z-index: 1;
}

.mascot-sb:hover .mascot-sb-bubble,
.mascot-sb-bubble.show {
    opacity: 1;
}
