/* Runner - doplnkove styly podstranky */

/* Hero na stred */
.hero-center {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-bottom: 2rem;
    text-align: center;
}

.hero-center .hero-content { max-width: 820px; margin: 0 auto; }
.hero-center .hero-claim, .hero-center .hero-lead { margin-left: auto; margin-right: auto; max-width: 680px; }
.hero-center .chips, .hero-center .hero-actions { justify-content: center; }
.hero-center .hero-glow { inset: 0 auto auto 50%; transform: translateX(-50%); }

/* Hratelna hra */
.play { padding-top: 1rem; padding-bottom: 3rem; }

.arcade {
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 18px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    overflow: hidden;
}

.arcade-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0.7rem 1rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.arcade-bar > span { width: 11px; height: 11px; border-radius: 50%; }
.arcade-bar > span:nth-child(1) { background: #ff5f57; }
.arcade-bar > span:nth-child(2) { background: #febc2e; }
.arcade-bar > span:nth-child(3) { background: #28c840; }

.arcade-title {
    flex: 1;
    text-align: center;
    font-family: var(--font-code);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.arcade-screen {
    display: block;
    width: 100%;
    height: 180px;
    border: 0;
    background: #111827;
}

.controls-hint {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 2rem;
    margin-top: 1.25rem;
    font-size: 0.88rem;
    color: var(--text-muted);
}

kbd {
    display: inline-block;
    font-family: var(--font-code);
    font-size: 0.75rem;
    padding: 0.15rem 0.5rem;
    margin-right: 0.15rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    border-bottom-width: 3px;
    background: var(--bg-card);
    color: var(--text-secondary);
}

code {
    font-family: var(--font-code);
    font-size: 0.9em;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    background: var(--bg-card);
    color: #fdba74;
}

/* Funkcie - obrazok cez celu sirku, text pod nim v dvoch stlpcoch */
.feature-stack { margin-bottom: 6rem; }
.feature-stack:last-child { margin-bottom: 0; }
.feature-stack .feature-media { margin: 0; }
.feature-stack .feature-media:first-child { margin-bottom: 2.5rem; }
.feature-stack .feature-cols + .feature-media { margin-top: 2.5rem; }

.feature-cols {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 3rem;
    align-items: center;
}

/* Bodovanie */
.score-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: -2rem 0 6rem;
}

.score-card {
    padding: 1.5rem;
    border-radius: 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all var(--transition);
}

.score-card:hover { transform: translateY(-4px); border-color: var(--accent-primary); }

.score-card strong {
    display: block;
    font-family: var(--font-code);
    font-size: 2rem;
    font-weight: 500;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.score-card span { font-size: 0.85rem; color: var(--text-muted); }

.score-star { border-color: rgba(251, 191, 36, 0.45); }
.score-star strong { background: linear-gradient(135deg, #fbbf24, #f97316); -webkit-background-clip: text; background-clip: text; }

/* Editor */
.editor-section { max-width: 1240px; margin: 0 auto; }

.editor-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 4rem;
    align-items: center;
}

.editor-grid p { color: var(--text-secondary); margin-bottom: 1.5rem; }
.editor-btn { margin-top: 2rem; }

@media (max-width: 1024px) {
    .feature-cols, .editor-grid { grid-template-columns: 1fr; gap: 2rem; }
    .score-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Poznamka o ukazkovom rezime hry */
.demo-note {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    justify-content: center;
    color: var(--text-secondary);
}

/* Zive sceny prekazok a pamiatok (gallery.js) - canvas nahradi staticke obrazky */
.feature-media.live .shot { display: none; }
.live-canvas { display: block; width: 100%; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.live-canvas.draggable { cursor: grab; }
.live-canvas.dragging { cursor: grabbing; }
.live-tip {
    position: absolute;
    z-index: 2;
    max-width: 260px;
    padding: 0.55rem 0.8rem;
    border-radius: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    font-size: 0.82rem;
    line-height: 1.4;
    pointer-events: none;
}
.live-tip strong { display: block; color: var(--text-primary); font-weight: 600; }
.live-tip span { color: var(--text-muted); }
