/* FoxLand home: generous, stationary carousel controls and compact chat identity. */
.fox-hero-main > .fox-hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 6;
    display: grid;
    place-items: center;
    width: 64px;
    height: 76px;
    min-width: 64px;
    min-height: 76px;
    margin: 0;
    padding: 8px;
    border: 0;
    border-radius: 0;
    outline: 0;
    background: transparent;
    color: var(--fox-accent-light, #d6a8ff);
    box-shadow: none;
    filter: none;
    opacity: 1;
    cursor: pointer;
    pointer-events: auto;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transform: translateY(-50%);
    transition: none;
}

/* The full button, including the space outside its glass face, receives clicks. */
.fox-hero-main > .fox-hero-arrow::before {
    content: "";
    position: absolute;
    inset: 9px 6px;
    border: 1px solid rgba(var(--fox-accent-rgb, 174, 99, 237), .54);
    border-radius: 14px;
    background: transparent;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .13), 0 0 12px rgba(var(--fox-accent-rgb, 174, 99, 237), .10);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    pointer-events: none;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.fox-hero-main > .fox-hero-arrow::after {
    content: "";
    position: absolute;
    top: 50%;
    right: auto;
    left: 50%;
    width: 13px;
    height: 13px;
    border: 0;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    border-radius: 1px;
    background: transparent;
    color: inherit;
    filter: drop-shadow(0 0 5px rgba(var(--fox-accent-rgb, 174, 99, 237), .34));
    pointer-events: none;
    transform: translate(-65%, -50%) rotate(45deg);
    transition: filter .18s ease;
}

.fox-hero-main > .fox-hero-arrow--left { left: clamp(4px, 1.2vw, 18px); }
.fox-hero-main > .fox-hero-arrow--right { right: clamp(4px, 1.2vw, 18px); }
.fox-hero-main > .fox-hero-arrow--left::after { transform: translate(-35%, -50%) rotate(-135deg); }

/* Hover never moves the hit area out from under the pointer. */
.fox-hero-main:hover > .fox-hero-arrow--left,
.fox-hero-main:hover > .fox-hero-arrow--right,
.fox-hero-main > .fox-hero-arrow:focus-visible {
    background: transparent;
    filter: none;
    transform: translateY(-50%);
}

@media (hover: hover) and (pointer: fine) {
    .fox-hero-main > .fox-hero-arrow:hover::before {
        border-color: var(--fox-accent-light, #d6a8ff);
        background: transparent;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, .20), 0 0 18px rgba(var(--fox-accent-rgb, 174, 99, 237), .26);
    }
}

.fox-hero-main > .fox-hero-arrow:focus-visible::before {
    outline: 2px solid var(--fox-accent-light, #d6a8ff);
    outline-offset: 3px;
    border-color: var(--fox-accent-light, #d6a8ff);
}
.fox-hero-main > .fox-hero-arrow:active::before { transform: scale(.95); }

@media (max-width: 600px) {
    .fox-hero-main > .fox-hero-arrow {
        width: 56px;
        height: 68px;
        min-width: 56px;
        min-height: 68px;
    }
    .fox-hero-main > .fox-hero-arrow--left { left: 2px; }
    .fox-hero-main > .fox-hero-arrow--right { right: 2px; }
    .fox-hero-main > .fox-hero-arrow::before { inset: 8px 5px; border-radius: 13px; }
}

.fox-chat-panel #chat #chat_messages .chat_message .message .info .fox-chat-identity {
    display: inline-flex;
    flex: 1 1 160px;
    flex-wrap: nowrap;
    align-items: baseline;
    gap: 7px;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    line-height: 1.35;
}

.fox-chat-panel #chat #chat_messages .chat_message .message .info .fox-chat-identity .fox-user-group-slot {
    display: inline-flex;
    order: 1;
    flex: 0 1 auto;
    align-items: center;
    gap: 7px;
    min-width: 0;
    max-width: 52%;
    overflow: hidden !important;
    white-space: nowrap !important;
    line-height: 1.35;
}
.fox-chat-panel #chat #chat_messages .chat_message .message .info .fox-chat-identity .fox-user-group-slot:empty { display: none; }
.fox-chat-panel #chat #chat_messages .chat_message .message .info .fox-chat-identity .fox-user-group {
    display: block;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    overflow-wrap: normal;
    text-overflow: ellipsis;
}

/* Nickname first, fixed violet shimmer; the group retains its own saved effects. */
.fox-chat-panel #chat #chat_messages .chat_message .message .info .fox-chat-identity .author {
    color: #c799ff !important;
    display: block;
    float: none;
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: linear-gradient(110deg,#ad69ed,#e8caff 35%,#a15ce6 65%,#ce9dff) 0 50% / 240% 100% !important;
    background-clip: text !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    -webkit-text-stroke: 0 transparent !important;
    text-shadow: none !important;
    box-shadow: none !important;
    filter: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    mask-image: none !important;
    -webkit-mask-image: none !important;
    mix-blend-mode: normal !important;
    animation: fox-chat-nick-shimmer 6s ease-in-out infinite !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
    font-family: inherit !important;
    font-size: 12px !important;
    font-style: normal !important;
    font-weight: 600 !important;
    line-height: 1.35;
    letter-spacing: normal !important;
    text-transform: none !important;
    text-align: left;
    text-decoration: none !important;
    overflow: hidden;
    white-space: nowrap;
    overflow-wrap: normal;
    text-overflow: ellipsis;
    cursor: pointer;
    touch-action: manipulation;
}
.fox-chat-panel #chat #chat_messages .chat_message .message .info .fox-chat-identity .author::before,
.fox-chat-panel #chat #chat_messages .chat_message .message .info .fox-chat-identity .author::after { content: none !important; }
.fox-chat-panel #chat #chat_messages .chat_message .message .info .fox-chat-identity .author:focus-visible {
    outline: 1px solid currentColor;
    outline-offset: 1px;
}

@media (max-width: 600px) {
    .fox-chat-panel #chat #chat_messages .chat_message .message .info .fox-chat-identity {
        flex-basis: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fox-hero-main > .fox-hero-arrow::before,
    .fox-hero-main > .fox-hero-arrow::after { transition: none; }
    .fox-hero-main > .fox-hero-arrow:active::before { transform: none; }
}

.fox-chat-panel #chat #chat_messages .fox-chat-identity .fox-user-group-slot::before { content:""; width:1px; height:13px; flex:0 0 1px; background:linear-gradient(180deg,transparent,#bb8bebaa,transparent); }
@keyframes fox-chat-nick-shimmer { 0%,100% { background-position:0% 50%; } 50% { background-position:100% 50%; } }
@media(prefers-reduced-motion:reduce){.fox-chat-panel #chat #chat_messages .chat_message .message .info .fox-chat-identity .author{animation:none!important;background-position:50% 50%!important;}}
