/* =========================================================================
   onlinegames.hu — oldalankénti stílusok
   Kezdőlap, kategóriaoldal, játékoldal, keresés.
   ========================================================================= */

/* ---------- Kezdőlap ---------- */
.intro-block { margin-bottom: 0; }
.intro-block h2 { font-size: 19px; margin-bottom: 6px; }
.intro-block p { color: var(--muted); font-weight: 600; margin: 0; }

/* ---------- Kategóriaoldal ---------- */
.cat-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.cat-head__bubble {
    width: 40px; height: 40px; border-radius: 12px;
    display: grid; place-items: center; font-size: 20px; flex: none;
}
.cat-head h1 { font-size: 27px; font-weight: 800; }
.cat-head__count { color: var(--muted); font-weight: 700; font-size: 13.5px; }
.cat-intro { color: var(--muted); font-weight: 600; margin: 0 0 16px; max-width: 70ch; }

/* ---------- Játékoldal ---------- */
.breadcrumb { font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 10px; }
.breadcrumb a { color: var(--blue); }

.play-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 16px; }

.stage {
    background: var(--ink);
    border-radius: var(--r-card);
    overflow: hidden;
    box-shadow: var(--shadow-lift);
}
.stage__frame {
    aspect-ratio: 16 / 9;
    max-width: 100%;
    position: relative;
    display: grid;
    place-items: center;
    gap: 10px;
    text-align: center;
    overflow: hidden;
    /* Ha nincs borítókép, ez a halk átmenet marad a háttérben. */
    background: radial-gradient(circle at 30% 25%, #1B4568, var(--ink) 70%);
}

/* A játék borítója a lejátszó hátterében, elsötétítve. */
.stage__poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.06);
    filter: blur(2px) brightness(.55) saturate(.95);
}
.stage__frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 42%, rgba(14, 46, 69, .18), rgba(14, 46, 69, .62) 80%);
}
.stage__start { position: relative; z-index: 2; }
.stage__frame--portrait { aspect-ratio: 3 / 4; max-height: 80vh; margin: 0 auto; }
.stage__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.stage__start { display: grid; place-items: center; gap: 12px; }
/* Indítás után a borító és a sötétítés eltűnik, a játék marad. */
.stage__frame.is-playing .stage__poster,
.stage__frame.is-playing::after { display: none; }
.stage__frame iframe { z-index: 3; }
.stage__play {
    width: 82px; height: 82px; border-radius: 50%;
    background: var(--yellow); display: grid; place-items: center;
    box-shadow: 0 6px 0 #C79A18;
    transition: transform .12s;
}
.stage__play:hover { transform: scale(1.05); }
.stage__label { color: #fff; font-family: var(--display); font-weight: 700; font-size: 17px; }

.stage__bar {
    display: flex; align-items: center; gap: 10px;
    padding: 11px 14px; background: var(--ink-deep); color: #fff;
}
.stage__bar h1 { font-size: 19px; font-weight: 800; }
.stage__tools { margin-left: auto; display: flex; gap: 6px; }
.stage__tools button {
    width: 36px; height: 36px; border-radius: 10px;
    background: rgba(255, 255, 255, .12);
    font-size: 15px;
}
.stage__tools button:hover { background: rgba(255, 255, 255, .24); }

.keys { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.key {
    font-family: var(--display); font-weight: 700; font-size: 13px;
    padding: 5px 11px; border-radius: 8px;
    background: var(--surface-2); box-shadow: inset 0 0 0 2px var(--line);
}

.side-list { display: flex; flex-direction: column; gap: 9px; }
.side-item {
    display: flex; gap: 10px; align-items: center;
    background: var(--surface); border-radius: 12px;
    padding: 7px; box-shadow: var(--shadow); width: 100%;
}
.side-item__thumb {
    width: 54px; height: 44px; border-radius: 9px; flex: none;
    object-fit: cover; background: var(--surface-2);
}
.side-item b { font-family: var(--display); font-size: 13.5px; display: block; line-height: 1.2; }
.side-item span { font-size: 11.5px; color: var(--muted); font-weight: 700; }

.game-stats { display: flex; gap: 18px; flex-wrap: wrap; }
.game-stats div { font-weight: 700; font-size: 13px; color: var(--muted); }
.game-stats strong { display: block; font-family: var(--display); font-size: 20px; color: var(--text); }

/* ---------- Keresés ---------- */
.search-head { margin-bottom: 16px; }
.search-head h1 { font-size: 25px; font-weight: 800; }
.search-head p { color: var(--muted); font-weight: 700; margin: 4px 0 0; }

/* ---------- Karbantartás ---------- */
.maintenance {
    min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 40px 20px;
}
.maintenance h1 { font-size: 30px; margin-bottom: 8px; }
.maintenance p { color: var(--muted); font-weight: 700; }

/* ---------- Töréspontok ---------- */
@media (max-width: 1180px) {
    .hero { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 900px) {
    .play-wrap { grid-template-columns: 1fr; }
    .hero { grid-template-columns: repeat(2, 1fr); }
    .hero .card:nth-child(n + 6) { display: none; }
}

@media (max-width: 560px) {
    .grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
}
