/* Загрузочный экран TLOE по образцу экранов загрузки Star Wars Battlefront (DICE):
   широкая панель слева на всю высоту с лёгким затемнением, заголовок со знаком,
   под ним карта, описание, плашка советов внизу, индикатор загрузки в углу.
   Ширина и отступы панели от ширины экрана, шрифты от высоты (1rem = 10 px на 1080p). */

@font-face { font-family: "Myriad Pro TLOE"; src: url("mp-r.ttf") format("truetype"); font-weight: 400; }
@font-face { font-family: "Myriad Pro TLOE"; src: url("mp-sb.ttf") format("truetype"); font-weight: 600; }
@font-face { font-family: "Myriad Pro TLOE"; src: url("mp-b.ttf") format("truetype"); font-weight: 700; }

html { font-size: calc(100vh / 108); }

html, body {
    margin: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #0a0c10;
    color: #ffffff;
    font-family: "Myriad Pro TLOE", "Myriad Pro", "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* Фон: плавная смена кадров и медленный наезд камеры. */
#bg { position: fixed; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; }

.frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.03);
    transition: opacity 2.2s ease-in-out;
}

.frame.on { opacity: 1; animation: drift 14s ease-out forwards; }

/* Уходящий кадр только гаснет, наезд продолжается: иначе его масштаб прыгал назад. */
.frame.on.off { opacity: 0; }

@keyframes drift { from { transform: scale(1.03); } to { transform: scale(1.1); } }

/* Панель как у DICE: широкая, лёгкое затемнение, почти без размытия, без граней. */
#panel {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 5.8vw;
    width: 37vw;
    box-sizing: border-box;
    padding: 9.4vh 2.4vw 7vh;
    display: flex;
    flex-direction: column;
    background: rgba(12, 14, 18, 0.3);
    -webkit-backdrop-filter: blur(0.35rem);
    backdrop-filter: blur(0.35rem);
    opacity: 0;
    animation: enter 0.9s ease 0.2s forwards;
}

@keyframes enter { to { opacity: 1; } }

/* Герб с названием и подзаголовок по центру под ними; блок стоит по левому краю текста. */
/* Шапка по центру панели: SVG во всю ширину текста, пропорции статичны. */
#brand { display: block; width: 100%; height: auto; overflow: visible; }

#brand text { font-family: "Myriad Pro TLOE", "Myriad Pro", sans-serif; fill: #ffffff; }

#brand-title { font-weight: 600; font-size: 96px; }

#brand-sub { font-weight: 600; font-size: 34px; letter-spacing: 8px; fill: rgba(255, 255, 255, 0.72); }

#lore {
    margin: 4rem 0 0;
    font-size: 1.9rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 0.1rem 0.6rem rgba(0, 0, 0, 0.45);
}

/* Плашка советов внизу панели, советы сменяются. */
#tips {
    margin: auto 0 0;
    padding: 1.6rem 2rem;
    background: rgba(24, 24, 28, 0.78);
}

#tips-label { font-weight: 700; font-size: 1.5rem; text-transform: uppercase; color: #ebb42a; margin-bottom: 0.4rem; }

/* Советы: блок фиксированной высоты, два слоя. Старый совет полностью гаснет,
   затем проявляется новый, поэтому они не наезжают друг на друга и блок не прыгает. */
#tips-body { position: relative; height: 7rem; }

.tip {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    font-size: 1.6rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.72);
    opacity: 0;
    transition: opacity 0.45s ease;
}

.tip.on { opacity: 1; }

/* Тонкая полоса прогресса по низу панели. */
#line { position: absolute; left: 0; right: 0; bottom: 0; height: 0.4rem; }

#fill { height: 100%; width: 0; background: #ebb42a; box-shadow: 0 0 1rem rgba(235, 180, 42, 0.5); }

/* Индикатор загрузки в правом нижнем углу: этап, процент и вращающаяся дуга. */
#loading {
    position: fixed;
    right: 4.6vw;
    bottom: 8.6vh;
    display: flex;
    align-items: center;
    opacity: 0;
    animation: enter 0.9s ease 0.5s forwards;
}

#info { text-align: right; }

#map { font-weight: 600; font-size: 1.3rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); margin-bottom: 0.3rem; text-shadow: 0 0.1rem 0.6rem rgba(0, 0, 0, 0.6); }

#status {
    font-weight: 600;
    font-size: 1.4rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
    text-shadow: 0 0.1rem 0.6rem rgba(0, 0, 0, 0.6);
    max-width: 40rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#percent {
    margin: 0 1.4rem 0 1.6rem;
    font-weight: 700;
    font-size: 2rem;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0.1rem 0.6rem rgba(0, 0, 0, 0.6);
}

#spinner {
    width: 3rem;
    height: 3rem;
    box-sizing: border-box;
    border-radius: 50%;
    border: 0.35rem solid transparent;
    border-top-color: #ebb42a;
    border-right-color: #ebb42a;
    animation: spin 1.1s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }
