/* ══════════════════════════════════════════════════════════════════════════
   index.css — Fumble Landing Page
   Nur für index.html. base.css MUSS zuerst geladen sein.
══════════════════════════════════════════════════════════════════════════ */

@media (min-width: 769px) { html, body { overflow: hidden; } }

/* ── Layout ──────────────────────────────────────────────────────────────── */
.index-layout {
    position: relative; z-index: 10;
    display: flex; flex-direction: column; align-items: center;
    gap: 1.25rem;
    max-width: 1280px; margin: 0 auto;
    padding: 0 4% 4rem;
    min-height: min(calc(100vh - 73px), 1007px);
    justify-content: center;
}
.index-hero,
.index-cards,
.index-tutorial { zoom: 0.85; }


/* ── Hero ────────────────────────────────────────────────────────────────── */
.index-hero {
    display: flex; flex-direction: column; align-items: center;
    text-align: center; width: 100%; max-width: 700px;
}

.game-wordmark {
    font-family: var(--font-display);
    font-size: clamp(4rem, 10vw, 7rem);
    font-weight: 800; letter-spacing: -.05em; line-height: 1.1;
    background: linear-gradient(135deg, #fff 0%, #4ade80 35%, #16a34a 65%, #22c55e 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 40px var(--gold-glow));
    padding: 0 .05em; margin-bottom: .3rem;
}
.game-sub {
    color: var(--text-muted); font-size: .85rem; font-weight: 300;
    margin-top: .9rem; margin-bottom: 0;
}


/* ── Zwei Karten nebeneinander ───────────────────────────────────────────── */
.index-cards {
    width: 100%;
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 1rem; align-items: stretch;
}
.index-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-card); padding: 1.75rem 2rem;
    backdrop-filter: blur(24px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
    display: flex; flex-direction: column; gap: 1.25rem;
}
.index-card-room    { justify-content: center; }
.index-card-label   {
    font-family: var(--font-display); font-size: .65rem; font-weight: 700;
    letter-spacing: .2em; text-transform: uppercase; color: var(--text-muted);
    text-align: center;
}
.room-actions { display: flex; flex-direction: column; gap: .85rem; width: 100%; }
.or-row {
    display: flex; align-items: center; gap: 1rem;
    color: var(--text-dim); font-size: .75rem;
}
.or-row::before, .or-row::after { content:''; flex:1; height:1px; background:var(--border); }
.join-box {
    display: flex; flex-direction: column; gap: .6rem;
    background: rgba(255,255,255,.025); border: 1px solid var(--border);
    border-radius: var(--radius-inner); padding: .9rem;
}


/* ── Tutorial-Slider ─────────────────────────────────────────────────────── */
.index-tutorial {
    width: 100%;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-card); padding: 1.75rem 2rem;
    backdrop-filter: blur(24px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.slides-wrapper {
    position: relative; height: 96px; overflow: hidden;
    margin-bottom: 1.1rem;
}
.slide {
    position: absolute; inset: 0;
    display: flex; flex-direction: row; align-items: center;
    gap: 1.4rem; padding: 0 .25rem;
    opacity: 0; transform: translateX(18px);
    transition: opacity .38s ease, transform .38s ease;
    pointer-events: none;
}
.slide.active { opacity: 1; transform: translateX(0); pointer-events: auto; }
.slide-icon {
    font-size: 2.4rem; flex-shrink: 0; width: 52px; text-align: center;
    filter: drop-shadow(0 0 8px rgba(74,222,128,.3));
}
.slide-text h3 {
    font-family: var(--font-display); font-size: 1.05rem; font-weight: 800;
    margin-bottom: .3rem;
    background: linear-gradient(135deg, var(--text-main) 0%, var(--gold) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.slide-text p { font-size: .85rem; color: var(--text-muted); line-height: 1.6; font-weight: 300; }

.slider-controls {
    display: flex; align-items: center; justify-content: center; gap: 1rem;
}
.nav-arrow {
    width: 34px; height: 34px; border-radius: 10px;
    background: rgba(255,255,255,.05); border: 1px solid var(--border);
    color: var(--text-muted); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all .2s;
}
.nav-arrow:hover {
    background: rgba(74,222,128,.1); border-color: rgba(74,222,128,.3);
    color: var(--gold); transform: scale(1.08);
}
.nav-arrow svg { width: 18px; height: 18px; }
.dots-row, .dots-container { display: flex; gap: .5rem; align-items: center; }
.dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--text-dim); border: none; cursor: pointer;
    transition: all .3s;
}
.dot.active {
    background: var(--gold); width: 20px; border-radius: var(--radius-pill);
    box-shadow: 0 0 8px rgba(74,222,128,.5);
}


/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .index-cards    { grid-template-columns: 1fr; }
    .slides-wrapper { height: 120px; }
}
@media (max-width: 480px) {
    .game-wordmark  { font-size: 3.2rem; }
    .index-card     { padding: 1.25rem; }
    .slides-wrapper { height: 140px; }
}
