/* Lobby: hero, case cards and the list of games. */

.lobby-page { min-height: 100vh; }

.lobby-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 20px 24px;
}

.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; min-width: 0; }
.brand img { border-radius: 10px; flex: none; }
.brand-name { font-size: 20px; font-weight: 750; letter-spacing: -.02em; }
.brand-sub { color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-actions { display: flex; align-items: center; gap: 6px; flex: none; }

.lobby { max-width: 1180px; margin: 0 auto; padding: 8px 24px 64px; }

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 24px 48px;
    align-items: end;
    padding: 40px 0 48px;
    border-bottom: 1px solid var(--line);
}

.hero h1 { grid-column: 1; font-size: clamp(36px, 6vw, 64px); line-height: 1.02; letter-spacing: -.035em; font-weight: 780; }
.hero h1 span { color: var(--accent-ink); }
.hero > p { grid-column: 1; margin: 0; max-width: 560px; font-size: 18px; color: var(--muted); }
.how { grid-column: 2; grid-row: 1 / span 2; margin: 0; padding: 0; list-style: none; counter-reset: how; display: grid; gap: 12px; }
.how li {
    counter-increment: how;
    position: relative;
    padding: 14px 16px 14px 56px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--muted);
}
.how li::before {
    content: counter(how);
    position: absolute;
    left: 16px;
    top: 14px;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent-ink);
    font-weight: 700;
    font-size: 14px;
}
.how b { color: var(--text); font-weight: 650; }

.section { padding-top: 40px; }
.section h2 { font-size: 22px; margin-bottom: 18px; }

.cases { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }

.case-card {
    --hue: 30;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.cover {
    position: relative;
    height: 168px;
    background:
        radial-gradient(circle at 78% 30%, hsla(var(--hue), 70%, 60%, .55), transparent 55%),
        repeating-linear-gradient(-35deg, hsla(var(--hue), 40%, 50%, .08) 0 2px, transparent 2px 14px),
        linear-gradient(135deg, hsl(var(--hue), 30%, 16%), hsl(calc(var(--hue) + 30), 25%, 9%));
    overflow: hidden;
}

.cover-glyph { position: absolute; right: -18px; bottom: -26px; }
.cover-icon { width: 170px; height: 170px; fill: none; stroke: hsla(var(--hue), 80%, 75%, .55); stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; }
.cover-no {
    position: absolute;
    left: 18px;
    top: 16px;
    padding: 4px 10px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 999px;
    color: #f2efe8;
    font-size: 12px;
    font-weight: 650;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.case-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; flex: 1; }
.case-body h3 { font-size: 22px; }
.case-meta { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.tagline { margin: 0; color: var(--text); font-weight: 550; }
.teaser { margin: 0 0 8px; color: var(--muted); font-family: var(--font-read); font-size: 16px; line-height: 1.5; flex: 1; }
.case-body .btn { align-self: flex-start; }


.games { display: grid; gap: 10px; }
.game-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px 14px 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}
.game-info { flex: 1; min-width: 0; }
.game-title { color: var(--text); font-weight: 650; font-size: 16px; text-decoration: none; }
.game-title:hover { color: var(--accent-ink); }
.game-sub { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin-top: 4px; font-size: 13px; }
.game-actions { display: flex; align-items: center; gap: 4px; flex: none; }
.badge { padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-weight: 600; font-size: 12px; }
.badge.done { background: var(--accent-soft); color: var(--accent-ink); }



@media (max-width: 860px) {
    .hero { grid-template-columns: 1fr; padding: 20px 0 32px; }
    .how { grid-column: 1; grid-row: auto; }
    .brand-sub { display: none; }
}

@media (max-width: 560px) {
    .lobby-top, .lobby { padding-left: 16px; padding-right: 16px; }
    .cases { grid-template-columns: 1fr; }
    .game-row { flex-wrap: wrap; padding: 14px 16px; }
    .game-actions { width: 100%; justify-content: flex-end; }
    #name-btn span { max-width: 110px; overflow: hidden; text-overflow: ellipsis; }
}
