/* Last Signal - doplnkove styly podstranky */
:root {
    --signal: #5eead4;
    --signal-gradient: linear-gradient(135deg, #5eead4 0%, #60a5fa 100%);
}

/* Hero cez celu sirku s pozadim z hry */
.ls-hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: flex-end;
    padding: 8rem 4rem 5rem;
    overflow: hidden;
}

.ls-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 70%;
    image-rendering: pixelated;
    transform: scale(1.04);
    animation: ls-drift 30s ease-in-out infinite alternate;
}

@keyframes ls-drift {
    to { transform: scale(1.12) translateX(-2%); }
}

.ls-hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(10, 10, 15, 0.92) 0%, rgba(10, 10, 15, 0.7) 45%, rgba(10, 10, 15, 0.15) 100%),
        linear-gradient(0deg, var(--bg-primary) 0%, transparent 35%);
}

.ls-hero-content { position: relative; max-width: 640px; }
.ls-title { margin-bottom: 1.5rem; }

.ls-signal {
    background: var(--signal-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ls-dot { background: var(--signal); animation-name: ls-ping; }

@keyframes ls-ping {
    0% { box-shadow: 0 0 0 0 rgba(94, 234, 212, 0.6); }
    70% { box-shadow: 0 0 0 10px rgba(94, 234, 212, 0); }
    100% { box-shadow: 0 0 0 0 rgba(94, 234, 212, 0); }
}


/* Pribeh ako text zo zadnej strany krabice */
.ls-story { max-width: 760px; margin: 0 auto; text-align: center; }

.ls-box {
    margin-top: 2rem;
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background:
        radial-gradient(circle at 100% 0%, rgba(94, 234, 212, 0.08), transparent 50%),
        var(--bg-card);
    text-align: left;
}

.ls-box p { color: var(--text-secondary); font-size: 1.08rem; margin-bottom: 1rem; }
.ls-box p:last-child { margin-bottom: 0; }
.ls-question { color: var(--text-primary) !important; font-weight: 500; font-style: italic; }

/* Hlavny hrdina */
.ls-hero-section { max-width: 1240px; margin: 0 auto; }

.ls-hero-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.ls-hero-grid p { color: var(--text-secondary); margin-bottom: 1.25rem; }

.ls-portrait {
    position: relative;
    margin: 0;
    padding: 2rem;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    background:
        radial-gradient(circle at 50% 30%, rgba(94, 234, 212, 0.12), transparent 60%),
        #12121a;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.ls-portrait img { margin: 0 auto; max-height: 520px; width: auto; image-rendering: pixelated; }
.ls-portrait figcaption { margin-top: 1rem; display: flex; gap: 0.5rem; justify-content: center; }

.ls-tag {
    font-family: var(--font-code);
    font-size: 0.72rem;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
}

/* Animacia chodze - hrdina sa prechadza v obdlzniku zlava doprava a naspat */
.ls-walk-wrap {
    position: relative;
    height: 190px;
    margin: 0.5rem 0 1.75rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    background: #12121a;
    overflow: hidden;
}

/* chodnik */
.ls-walk-wrap::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 22px;
    background: #1c1c26;
    border-top: 2px solid #2a2a3a;
}

.ls-walker {
    position: absolute;
    bottom: 24px;
    left: 0;
    width: 100px;
    animation: ls-patrol 9s linear infinite;
}

.ls-walk {
    width: 100px;
    height: 140px;
    background: url('../images/last-signal/walk.webp?v=3') 0 0 / 400px 140px no-repeat;
    image-rendering: pixelated;
    animation: ls-walk 0.6s steps(4) infinite;
}

@keyframes ls-walk {
    to { background-position: -400px 0; }
}

/* cesta tam (doprava) a spat (dolava s otocenim postavy) */
@keyframes ls-patrol {
    0% { left: 8px; transform: scaleX(1); }
    49.9% { left: calc(100% - 108px); transform: scaleX(1); }
    50% { left: calc(100% - 108px); transform: scaleX(-1); }
    99.9% { left: 8px; transform: scaleX(-1); }
    100% { left: 8px; transform: scaleX(1); }
}

/* Lokacie */
.ls-locations { max-width: 1240px; margin: 0 auto; }

.ls-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.ls-loc {
    margin: 0;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.ls-loc:hover { transform: translateY(-6px); border-color: rgba(94, 234, 212, 0.5); box-shadow: var(--shadow-lg); }
.ls-loc img { width: 100%; image-rendering: pixelated; }
.ls-loc figcaption { padding: 1.1rem 1.25rem 1.3rem; }
.ls-loc strong { display: block; margin-bottom: 0.3rem; }
.ls-loc span { font-size: 0.9rem; color: var(--text-muted); }

/* Vedlajsie postavy */
.ls-cast {
    max-width: 860px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2.5rem;
    align-items: center;
}

.ls-cast-img {
    margin: 0;
    padding: 1rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background: #12121a;
}

.ls-cast-img img { width: 260px; image-rendering: pixelated; }
.ls-cast-title { font-size: 1.6rem; margin-bottom: 0.75rem; }
.ls-cast p { color: var(--text-secondary); }

/* Stav projektu */
.ls-progress { max-width: 1240px; margin: 0 auto; text-align: center; }

.ls-progress-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 3rem;
    text-align: left;
}

.ls-progress-grid .stack-card > .material-symbols-outlined { color: var(--signal); }

.ls-done li::before, .ls-todo li::before {
    font-family: 'Material Symbols Outlined';
    margin-right: 0.4rem;
    vertical-align: -3px;
    font-size: 16px;
}

.ls-done li::before { content: 'check'; color: var(--success); }
.ls-todo li::before { content: 'schedule'; color: var(--text-muted); }

.ls-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-top: 3rem;
}

.ls-cta-note { font-family: var(--font-code); font-size: 0.78rem; color: var(--text-muted); }

@media (max-width: 1024px) {
    .ls-hero { padding: 7rem 1.5rem 3rem; min-height: 80vh; }
    .ls-hero-grid, .ls-cast { grid-template-columns: 1fr; gap: 2rem; }
    .ls-cast-img { justify-self: center; }
    .ls-progress-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .ls-grid { grid-template-columns: 1fr; }
    .ls-box { padding: 1.5rem; }
}
