/* OGgame — game hub pages and the games index. */
.hub-hero {
    --accent: var(--gold);
    position: relative; isolation: isolate;
    display: grid; align-items: end;
    min-block-size: clamp(340px, 34vw, 470px);
    margin-block-start: clamp(30px, 4vw, 60px);
    border-radius: 30px;
}
.hub-hero-bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; border-radius: inherit; background: #15171a; box-shadow: inset 0 0 0 1px var(--line); }
.hub-hero-bg img { inline-size: 100%; block-size: 100%; object-fit: cover; animation: hub-zoom 14s ease-out both; }
.hub-hero-bg::after {
    content: ""; position: absolute; inset: 0;
    background:
        radial-gradient(500px circle at var(--gx, 70%) var(--gy, 30%), color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%),
        linear-gradient(270deg, #111316f2 0%, #111316c4 38%, #11131600 78%),
        linear-gradient(0deg, #111316 0%, transparent 45%);
}
@keyframes hub-zoom { from { transform: scale(1.12); } to { transform: scale(1); } }
.hub-hero-copy { display: grid; gap: 14px; padding: clamp(24px, 4vw, 56px); max-inline-size: min(620px, 62%); animation: hub-copy 700ms cubic-bezier(.2,.72,.24,1) both; }
@keyframes hub-copy { from { opacity: 0; translate: 0 20px; } }
.hub-hero-copy .crumbs { color: #d0ccc4; }
.hub-hero h1 {
    margin: 0; color: #f8eddb; text-align: right; text-shadow: 0 6px 26px #000a;
    font: 800 clamp(2.2rem, 5vw, 4.4rem)/1.02 Bahnschrift, "Arial Narrow", "Segoe UI", sans-serif; letter-spacing: -.03em;
}
.hub-hero.hub-wow h1 { font: 700 clamp(2.4rem, 5.2vw, 4.8rem)/1 Georgia, "Times New Roman", serif; letter-spacing: -.055em; }
.hub-hero h1 small { display: block; font-size: .5em; color: color-mix(in srgb, var(--accent) 70%, #fff); }
.hub-hero-copy > p { margin: 0; color: #e2ded7; font-size: clamp(.85rem, 1.2vw, 1rem); }
.hub-stats { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 0; padding: 0; list-style: none; }
.hub-stats li { display: grid; gap: 2px; padding: 10px 16px; border-radius: 16px; background: #1112148c; backdrop-filter: blur(10px); border: 1px solid #ffffff14; }
.hub-stats strong { font-size: 1.02rem; color: color-mix(in srgb, var(--accent) 75%, #fff); }
.hub-stats span { font-size: .7rem; color: #c9c5bd; }

.hub-nav {
    position: sticky; inset-block-start: 12px; z-index: 5;
    display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
    margin-block: 22px clamp(26px, 3vw, 40px); padding: 6px;
    border-radius: 18px; background: #1c1d20e6; backdrop-filter: blur(14px);
    border: 1px solid var(--line); box-shadow: 0 16px 30px -20px #000;
}
.hub-nav::-webkit-scrollbar { display: none; }
.hub-nav a {
    flex: none; display: inline-flex; align-items: center; gap: 8px;
    min-block-size: 42px; padding: 6px 16px; border-radius: 13px;
    color: var(--muted); font-size: .82rem; font-weight: 700;
    transition: background-color 220ms ease, color 220ms ease;
}
.hub-nav a span { padding: 0 7px; border-radius: 100px; background: var(--raised); font-size: .66rem; color: var(--text); }
.hub-nav a:is(:hover, :focus-visible) { color: var(--text); background: var(--surface); }
.hub-nav a.is-current { color: var(--gold-ink); background: var(--gold); }
.hub-nav a.is-current span { background: #0002; color: var(--gold-ink); }

.hub-body { display: grid; gap: clamp(44px, 5vw, 70px); }
.hub-filter { margin-block-end: 18px; }
.hub-filter .chip[aria-pressed="true"] { background: var(--gold); color: var(--gold-ink); border-color: transparent; font-weight: 700; }
.pcard.is-filtered-in { animation: filter-in 420ms cubic-bezier(.2,.72,.24,1) var(--filter-delay, 0ms) both; }
@keyframes filter-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.hub-section { scroll-margin-block-start: 90px; }
.hub-section-art {
    display: block;
    inline-size: 100%;
    block-size: clamp(108px, 13vw, 175px);
    margin-block-end: 22px;
    border-radius: 16px;
    object-fit: cover;
    object-position: center 52%;
}
#services .hub-section-art { filter: brightness(1.4); }

.quick-buy {
    --accent: var(--gold);
    position: relative; isolation: isolate; overflow: hidden;
    display: grid; grid-template-columns: minmax(0, 1fr) clamp(200px, 26%, 320px); align-items: stretch;
    border-radius: 28px; border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
    background: radial-gradient(ellipse at 100% 0, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%), var(--sunken);
}
.quick-buy-art { order: 2; position: relative; overflow: hidden; }
.quick-buy-art img { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; mask-image: linear-gradient(90deg, #000 55%, transparent); }
.quick-buy-form { display: grid; gap: 18px; padding: clamp(20px, 3vw, 36px); }
.quick-buy-head { display: grid; gap: 8px; justify-items: start; }
.quick-buy-head h2 { margin: 0; font-size: clamp(1.15rem, 2vw, 1.55rem); }
.quick-buy-head p { margin: 0; color: var(--muted); font-size: .86rem; }
.quick-buy fieldset { border: 0; margin: 0; padding: 0; }
.quick-fields .field { margin: 0; }
.quick-buy-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }

.mini-games { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--card-gap); }
.mini-game {
    --accent: var(--gold);
    position: relative; isolation: isolate; overflow: hidden;
    display: flex; align-items: end; aspect-ratio: 1.5; padding: 16px; border-radius: 20px;
    box-shadow: inset 0 0 0 1px var(--line); transition: transform 300ms var(--hover-ease), box-shadow 260ms ease;
}
.mini-game img { position: absolute; inset: 0; z-index: -2; inline-size: 100%; block-size: 100%; object-fit: cover; transition: transform 500ms var(--hover-ease); }
.mini-game::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, #121315 8%, transparent 70%); }
.mini-game span { display: grid; gap: 2px; }
.mini-game strong { font: 700 1rem/1.2 Bahnschrift, "Segoe UI", sans-serif; text-align: right; }
.mini-game small { color: var(--muted); font-size: .72rem; }
.mini-game:is(:hover, :focus-visible) { transform: translateY(-4px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 60%, transparent); }
.mini-game:is(:hover, :focus-visible) img { transform: scale(1.07); }

.games-index { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--card-gap); }
.games-index .mini-game { aspect-ratio: 2; padding: clamp(18px, 2.4vw, 30px); }
.games-index .mini-game:first-child { grid-column: 1 / -1; aspect-ratio: 3.2; }
.games-index .mini-game strong { font-size: clamp(1.2rem, 2.2vw, 1.9rem); }
.games-index .mini-game p { margin: 4px 0 0; color: #d6d2ca; font-size: .82rem; }

.platform-section { margin-block-start: clamp(44px, 5vw, 70px); }
.platform-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.platform-card {
    position: relative; display: grid; gap: 4px; padding: 18px 20px; padding-inline-end: 54px;
    border-radius: 18px; background: var(--surface); border: 1px solid var(--line);
    transition: border-color 220ms ease, transform 280ms var(--hover-ease), background-color 220ms ease;
}
.platform-card strong { font-size: .95rem; text-align: right; }
.platform-card small { color: var(--muted); font-size: .74rem; }
.platform-card .vg-i { position: absolute; inset-inline-end: 20px; inset-block: 0; margin-block: auto; color: var(--gold); transition: transform 280ms var(--hover-ease); }
.platform-card:is(:hover, :focus-visible) { border-color: #ebc78855; transform: translateY(-3px); background: var(--sunken); }
.platform-card:is(:hover, :focus-visible) .vg-i { transform: translateX(-4px); }

@media (max-width: 1030px) {
    .platform-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .quick-buy { grid-template-columns: minmax(0, 1fr); }
    .quick-buy-art { display: none; }
    .mini-games { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 850px) {
    .hub-hero-copy { max-inline-size: 100%; }
    .games-index { grid-template-columns: minmax(0, 1fr); }
    .games-index .mini-game:first-child { aspect-ratio: 2; }
}
@media (max-width: 600px) {
    .hub-hero { border-radius: 22px; min-block-size: 380px; margin-block-start: 30px; }
    .hub-hero-copy { padding: 20px; }
    .hub-stats li { padding: 8px 12px; }
    .quick-buy-actions .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .hub-hero-bg img, .hub-hero-copy { animation: none; }
}

/* Calm layer */
.hub-body { gap: clamp(64px, 7vw, 110px); margin-block-start: clamp(40px, 5vw, 70px); }
.quick-buy { background: transparent; border-color: var(--line); }

/* Structure: each hub block is a titled panel */
.hub-section:not(.quick-buy) { padding: clamp(18px, 2.4vw, 30px); border-radius: 26px; background: var(--surface); border: 1px solid var(--line); }
.hub-section:not(.quick-buy) > .sec-title { padding-block-end: 16px; margin-block-end: 20px; border-block-end: 1px solid var(--line); }
.hub-section > .sec-title h2 { display: flex; align-items: center; gap: 10px; }
.hub-section > .sec-title h2::before { content: ""; inline-size: 4px; block-size: 18px; border-radius: 4px; background: var(--gold); }
.quick-buy { background: radial-gradient(ellipse at 100% 0, color-mix(in srgb, var(--accent) 14%, transparent), transparent 60%), var(--surface); }
.hub-body { gap: clamp(26px, 3vw, 40px); }
