/*
 * Dialogue image UI skin
 * Kept separate from style.css so the skin can be rolled back independently.
 */

#message-window {
    right: 124px;
    bottom: 34px;
    left: 124px;
    width: auto;
    height: 352px;
    min-height: 0;
    padding: 0;
    color: #f4fbff;
    background: url("assets/ui/dialogue/chat.png") center / 100% 100% no-repeat;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

#message-window[data-speaker="hero"],
#message-window[data-speaker="luri"],
#message-window[data-speaker="other"] {
    border-color: transparent;
}

#message-window #speaker-name,
#message-window[data-speaker="hero"] #speaker-name,
#message-window[data-speaker="luri"] #speaker-name,
#message-window[data-speaker="other"] #speaker-name {
    position: absolute;
    top: 19px;
    left: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 354px;
    height: 66px;
    color: #f5fbff;
    font-size: 24px;
    font-weight: 900;
    line-height: 1;
    text-align: center;
    text-shadow: 0 0 10px rgba(83, 211, 255, 0.72);
}

#message-window #message-text {
    position: absolute;
    top: 116px;
    right: 76px;
    bottom: 42px;
    left: 114px;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0 18px 4px 0;
    color: #edf8ff;
    font-size: 25px;
    font-weight: 600;
    line-height: 1.7;
    white-space: pre-wrap;
    word-break: keep-all;
    overflow-wrap: anywhere;
    scrollbar-color: rgba(99, 214, 255, 0.85) rgba(4, 33, 59, 0.45);
    scrollbar-width: thin;
}

#message-window #message-text::-webkit-scrollbar {
    width: 8px;
}

#message-window #message-text::-webkit-scrollbar-track {
    background: rgba(4, 33, 59, 0.45);
    border-radius: 999px;
}

#message-window #message-text::-webkit-scrollbar-thumb {
    background: linear-gradient(#8de8ff, #1da8e5);
    border: 1px solid rgba(197, 246, 255, 0.65);
    border-radius: 999px;
    box-shadow: 0 0 8px rgba(55, 199, 255, 0.55);
}

#message-window #dialogue-window-controls {
    position: absolute;
    top: 97px;
    right: 91px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 15px;
}

#message-window #dialogue-window-controls button {
    width: 105px;
    min-width: 105px;
    height: 42px;
    min-height: 42px;
    padding: 0;
    color: #eaf9ff;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    font-size: 14px;
    font-weight: 900;
    line-height: 42px;
    letter-spacing: 0.08em;
    text-align: center;
    text-shadow: 0 0 8px rgba(85, 214, 255, 0.7);
}

#message-window #dialogue-window-controls button:hover {
    color: #fff;
    background: rgba(104, 220, 255, 0.1);
    border-color: transparent;
    box-shadow: inset 0 0 15px rgba(102, 220, 255, 0.14);
}

#message-window #dialogue-skip-btn.is-active {
    color: #ffb7df;
    background: rgba(255, 91, 185, 0.1);
    border-color: transparent;
    box-shadow: inset 0 0 15px rgba(255, 91, 185, 0.14);
    text-shadow: 0 0 9px rgba(255, 105, 195, 0.82);
}

#message-window #text-next-pointer {
    right: 47px;
    bottom: 26px;
    color: #9ceaff;
    font-size: 19px;
}
