/* =======================================================
   === LOADING PADRAO DO APP ===
   ======================================================= */

:root {
    --loading-bg: #14171e;
    --loading-panel-bg: #0f141c;
    --loading-panel-border: rgba(255, 255, 255, 0.12);
    --loading-panel-shadow: 0 20px 45px rgba(0, 0, 0, 0.28);
    --loading-panel-width: min(90vw, 520px);
    --loading-panel-min-height: 172px;
    --loading-panel-padding: 32px 36px;
    --loading-panel-radius: 10px;
    --loading-title-size: clamp(42px, 8vw, 58px);
    --loading-message-size: 13px;
}

html,
body,
body * {
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

html::selection,
body::selection,
body *::selection {
    background: transparent;
    color: inherit;
}

html::-moz-selection,
body::-moz-selection,
body *::-moz-selection {
    background: transparent;
    color: inherit;
}

input,
textarea,
[contenteditable="true"],
[data-allow-select="true"] {
    -webkit-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

input::selection,
textarea::selection,
[contenteditable="true"]::selection,
[data-allow-select="true"]::selection {
    background: rgba(30, 144, 255, 0.35);
    color: inherit;
}

input::-moz-selection,
textarea::-moz-selection,
[contenteditable="true"]::-moz-selection,
[data-allow-select="true"]::-moz-selection {
    background: rgba(30, 144, 255, 0.35);
    color: inherit;
}

.loader-overlay,
.game-loading-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--loading-bg);
    color: var(--text, #e6eef6);
    transition: opacity 0.5s ease, visibility 0.5s ease;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

.loader-overlay.hidden,
.game-loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content,
.game-loading-content {
    width: var(--loading-panel-width);
    min-height: var(--loading-panel-min-height);
    padding: var(--loading-panel-padding);
    text-align: center;
    background: var(--loading-panel-bg);
    border: 1px solid var(--loading-panel-border);
    border-radius: var(--loading-panel-radius);
    box-shadow: var(--loading-panel-shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.loader-content h1,
.game-loading-content h1 {
    font-family: 'Tilda Script', 'Cinzel', cursive !important;
    font-weight: normal;
    font-size: var(--loading-title-size);
    line-height: 1.1;
    margin: 0 0 18px;
    letter-spacing: 0;
    animation: none;
}

.loader-content p,
.game-loading-content p {
    font-family: 'Cinzel', serif !important;
    font-size: var(--loading-message-size);
    font-weight: 700;
    letter-spacing: 0.4px;
    color: rgba(230, 238, 246, 0.78);
    margin: 0;
    opacity: 1;
    text-transform: uppercase;
}

@media (max-width: 480px) {
    :root {
        --loading-panel-width: min(90vw, 360px);
        --loading-panel-min-height: 148px;
        --loading-panel-padding: 26px 22px;
    }
}
