/* ============================================ */
/* DIALOGS.CSS - Intro Dialog (Holographic     */
/* Transmission) + Base Tutorial Dialog        */
/* Sci-Fi Glass HUD look (2026-10): dark glass */
/* panel, cyan comm accent, readable sans text */
/* ============================================ */

/* ============================================ */
/* INTRO DIALOG - Holographic Transmission     */
/* ============================================ */
.intro-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(4, 12, 22, 0.82) 0%, rgba(2, 6, 12, 0.95) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
}

.intro-dialog {
    width: 820px;
    max-height: 680px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0) 20%),
        linear-gradient(180deg, rgba(16, 30, 46, 0.98) 0%, rgba(8, 14, 24, 0.98) 100%);
    border: 1px solid rgba(63, 212, 255, 0.4);
    border-top: 2px solid #3fd4ff;
    border-radius: 10px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.7),
                0 0 0 1px rgba(0, 0, 0, 0.6),
                0 0 50px rgba(63, 212, 255, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.intro-scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(63, 212, 255, 0.55), transparent);
    box-shadow: 0 0 10px rgba(63, 212, 255, 0.35);
    animation: introScan 3s linear infinite;
    z-index: 10;
}

@keyframes introScan {
    0% { top: 0; }
    100% { top: 100%; }
}

.intro-static-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(63, 212, 255, 0.025) 2px,
        rgba(63, 212, 255, 0.025) 4px
    );
    pointer-events: none !important;
    z-index: 5;
}

.intro-scan-line {
    pointer-events: none !important;
}

.intro-header {
    padding: 16px 30px 14px;
    border-bottom: 1px solid rgba(63, 212, 255, 0.22);
    background: linear-gradient(180deg, rgba(63, 212, 255, 0.12) 0%, rgba(63, 212, 255, 0) 100%);
    position: relative;
    z-index: 20;
    flex-shrink: 0;
}

.intro-title {
    color: #9fe7ff;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 5px;
    font-family: 'Segoe UI', system-ui, Arial, sans-serif;
    text-shadow: 0 0 12px rgba(63, 212, 255, 0.6);
    margin: 0;
}
/* blinking "live" dot before the title */
.intro-title::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 12px;
    vertical-align: 2px;
    border-radius: 50%;
    background: #ff3348;
    box-shadow: 0 0 8px rgba(255, 51, 72, 0.9);
    animation: introLiveDot 1.2s ease-in-out infinite;
}
@keyframes introLiveDot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.25; }
}

.intro-signal-info {
    color: #ffbf3c;
    font-size: 11px;
    font-family: Consolas, 'Courier New', monospace;
    letter-spacing: 1px;
    margin-top: 6px;
    opacity: 0.9;
}

.intro-content {
    display: flex;
    padding: 22px 30px;
    gap: 26px;
    position: relative;
    z-index: 20;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.intro-portrait-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.intro-commander-portrait {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 35%, #2a3a4a 0%, #121c28 70%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 2px solid #3fd4ff;
    box-shadow: 0 0 0 4px rgba(63, 212, 255, 0.1), 0 0 26px rgba(63, 212, 255, 0.4);
    animation: introPortraitGlow 2.4s ease-in-out infinite;
    overflow: hidden;
}

@keyframes introPortraitGlow {
    0%, 100% { box-shadow: 0 0 0 4px rgba(63, 212, 255, 0.1), 0 0 26px rgba(63, 212, 255, 0.4); }
    50% { box-shadow: 0 0 0 4px rgba(63, 212, 255, 0.18), 0 0 40px rgba(63, 212, 255, 0.65); }
}

.intro-commander-portrait .helmet {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 30px;
    background: linear-gradient(180deg, #3d4f3d 0%, #263326 100%);
    border-radius: 30px 30px 0 0;
    z-index: 2;
}

.intro-commander-portrait .face {
    position: absolute;
    top: 34px;
    left: 50%;
    transform: translateX(-50%);
    width: 47px;
    height: 55px;
    background: linear-gradient(180deg, #e8c4a0 50%, #d4a878 100%);
    border-radius: 10px 10px 17px 17px;
}

.intro-commander-portrait .eyes {
    position: absolute;
    top: 47px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
}

.intro-commander-portrait .eye {
    width: 7px;
    height: 5px;
    background: #2a2a2a;
    border-radius: 50%;
}

.intro-commander-portrait .mouth {
    position: absolute;
    top: 68px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 4px;
    background: #8a6a5a;
    border-radius: 2px;
}

.intro-commander-portrait .uniform {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 77px;
    height: 30px;
    background: linear-gradient(180deg, #3d4f3d 0%, #263326 100%);
    border-radius: 0 0 43px 43px;
}

.intro-commander-portrait .badge {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 17px;
    height: 17px;
    background: radial-gradient(circle at 40% 35%, #fff0b0 0, #f2c14e 40%, #a8700f 100%);
    border-radius: 50%;
}
/* holographic sheen over the portrait */
.intro-commander-portrait::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: repeating-linear-gradient(0deg, rgba(63, 212, 255, 0.08) 0, rgba(63, 212, 255, 0.08) 1px, transparent 1px, transparent 3px),
                linear-gradient(160deg, rgba(63, 212, 255, 0.18) 0%, rgba(63, 212, 255, 0) 55%);
    pointer-events: none;
    z-index: 3;
}

.intro-commander-name {
    color: #9fe7ff;
    font-size: 15px;
    font-weight: bold;
    font-family: 'Segoe UI', system-ui, Arial, sans-serif;
    letter-spacing: 1px;
}

.intro-commander-id {
    color: #6f8197;
    font-size: 11px;
    font-family: Consolas, 'Courier New', monospace;
    letter-spacing: 1px;
}

.intro-message-section {
    flex: 1;
    padding-left: 22px;
    border-left: 1px solid rgba(63, 212, 255, 0.18);
}

.intro-message-text {
    color: #d3e6f5;
    font-size: 16px;
    line-height: 1.65;
    font-family: 'Segoe UI', system-ui, Arial, sans-serif;
    margin: 0;
}

.intro-footer {
    padding: 15px 30px;
    border-top: 1px solid rgba(63, 212, 255, 0.18);
    background: rgba(0, 0, 0, 0.18);
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 20;
    flex-shrink: 0;
}

.intro-understood-btn,
.base-tutorial-btn {
    padding: 12px 40px;
    background: linear-gradient(180deg, rgba(63, 212, 255, 0.26) 0%, rgba(63, 212, 255, 0.08) 100%);
    border: 1px solid rgba(63, 212, 255, 0.8);
    border-radius: 6px;
    color: #dff7ff;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-family: 'Segoe UI', system-ui, Arial, sans-serif;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.5);
    transition: background 0.15s, box-shadow 0.15s, color 0.15s;
}

.intro-understood-btn {
    position: relative;
    z-index: 25;
    pointer-events: auto !important;
}

.intro-understood-btn:hover,
.base-tutorial-btn:hover {
    color: #fff;
    background: linear-gradient(180deg, rgba(63, 212, 255, 0.42) 0%, rgba(63, 212, 255, 0.16) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 0 0 1px rgba(0, 0, 0, 0.5), 0 0 20px rgba(63, 212, 255, 0.4);
}

/* Mobile: 20% larger intro dialog text */
.mobile .intro-title { font-size: 22px; }
.mobile .intro-signal-info { font-size: 13px; }
.mobile .intro-commander-name { font-size: 18px; }
.mobile .intro-commander-id { font-size: 13px; }
.mobile .intro-message-text { font-size: 19px; }
.mobile .intro-understood-btn { font-size: 17px; padding: 14px 48px; }

/* ============================================ */
/* BASE TUTORIAL DIALOG                         */
/* ============================================ */
.base-tutorial-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(4, 12, 22, 0.82) 0%, rgba(2, 6, 12, 0.95) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.base-tutorial-dialog {
    width: 560px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0) 25%),
        linear-gradient(180deg, rgba(16, 30, 46, 0.98) 0%, rgba(8, 14, 24, 0.98) 100%);
    border: 1px solid rgba(63, 212, 255, 0.4);
    border-top: 2px solid #3fd4ff;
    border-radius: 10px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.7),
                0 0 0 1px rgba(0, 0, 0, 0.6),
                0 0 50px rgba(63, 212, 255, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.base-tutorial-scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(63, 212, 255, 0.55), transparent);
    box-shadow: 0 0 10px rgba(63, 212, 255, 0.35);
    animation: introScan 3s linear infinite;
    z-index: 10;
    pointer-events: none;
}

.base-tutorial-header {
    padding: 16px 30px 14px;
    border-bottom: 1px solid rgba(63, 212, 255, 0.22);
    background: linear-gradient(180deg, rgba(63, 212, 255, 0.12) 0%, rgba(63, 212, 255, 0) 100%);
    position: relative;
    z-index: 20;
}

.base-tutorial-title {
    color: #9fe7ff;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 5px;
    font-family: 'Segoe UI', system-ui, Arial, sans-serif;
    text-shadow: 0 0 12px rgba(63, 212, 255, 0.6);
    margin: 0;
}

.base-tutorial-content {
    padding: 26px 30px 22px;
    position: relative;
    z-index: 20;
}

.base-tutorial-text {
    color: #d3e6f5;
    font-size: 15px;
    line-height: 1.65;
    font-family: 'Segoe UI', system-ui, Arial, sans-serif;
    margin: 0;
}

.base-tutorial-ask {
    color: #9fe7ff;
    font-size: 15px;
    font-weight: bold;
    font-family: 'Segoe UI', system-ui, Arial, sans-serif;
    margin: 18px 0 0 0;
    padding-left: 10px;
    border-left: 3px solid #3fd4ff;
}

.base-tutorial-footer {
    padding: 15px 30px;
    border-top: 1px solid rgba(63, 212, 255, 0.18);
    background: rgba(0, 0, 0, 0.18);
    display: flex;
    justify-content: center;
    gap: 20px;
    position: relative;
    z-index: 20;
}

.base-tutorial-btn {
    pointer-events: auto;
}

/* secondary "No" button */
.base-tutorial-btn.base-tutorial-no {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(150, 180, 220, 0.35);
    color: #a7b4c4;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.5);
}
.base-tutorial-btn.base-tutorial-no:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #e3ebf4;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.5);
}

.base-tutorial-hint {
    padding: 4px 30px 14px;
    background: rgba(0, 0, 0, 0.18);
    color: #7d8ca0;
    font-size: 11px;
    font-family: 'Segoe UI', system-ui, Arial, sans-serif;
    text-align: center;
    position: relative;
    z-index: 20;
}

/* Mobile: larger base tutorial text */
.mobile .base-tutorial-title { font-size: 22px; }
.mobile .base-tutorial-text { font-size: 18px; }
.mobile .base-tutorial-ask { font-size: 18px; }
.mobile .base-tutorial-btn { font-size: 17px; padding: 14px 48px; }
.mobile .base-tutorial-hint { font-size: 13px; }
