/* 3omar.hs Games — modern shell around the original cabinet (arcade.css keeps the in-game styles). */
.gx-hub-hero { padding-block: clamp(24px, 5vw, 56px) 18px; }
.gx-hub-hero .lead { max-width: 62ch; }
.gx-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 20px; }
.gx-search { flex: 1 1 260px; max-width: 420px; }
.gx-search .input { width: 100%; }
.gx-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.gx-pills .chip { cursor: pointer; border: 1px solid var(--glass-border); background: var(--glass-bg); color: inherit; padding: 8px 14px; border-radius: 999px; font: inherit; font-size: .9rem; }
.gx-pills .chip small { opacity: .65; margin-inline-start: 4px; }
.gx-pills .chip.active, .gx-pills .chip:hover { border-color: color-mix(in srgb, var(--brand) 60%, transparent); background: color-mix(in srgb, var(--brand) 18%, transparent); }

.gx-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); padding-block: 8px 28px; }
.gx-grid--compact { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.gx .gx-card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius-lg, 20px); border: 1px solid var(--glass-border); background: var(--glass-bg); box-shadow: var(--glass-shadow); transition: transform .2s ease, border-color .2s ease; padding: 0; min-height: 0; }
.gx .gx-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--brand) 50%, transparent); }
.gx .gx-thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #060914; }
.gx .gx-thumb svg, .gx .gx-thumb img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .35s ease; }
.gx .gx-card:hover .gx-thumb svg, .gx .gx-card:hover .gx-thumb img { transform: scale(1.05); }
.gx .gx-cat, .gx .gx-hs { position: absolute; top: 10px; font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: rgba(5,8,17,.72); color: #fff; backdrop-filter: blur(6px); }
.gx .gx-cat { inset-inline-start: 10px; }
.gx .gx-hs { inset-inline-end: 10px; }
.gx .gx-body { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; flex: 1; }
.gx .gx-title { margin: 0; font-size: 1.05rem; line-height: 1.35; }
.gx .gx-title a { color: inherit; text-decoration: none; }
.gx .gx-title a:hover { color: var(--accent); }
.gx .gx-desc { margin: 0; font-size: .88rem; color: var(--text-muted, #a5adc4); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.gx .gx-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; }
.gx-empty { text-align: center; padding: 30px 0; }

.gx-hero { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; margin-block: 14px 10px; }
.gx-hero__art { border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 9; background: #060914; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.gx-hero__art svg, .gx-hero__art img { width: 100%; height: 100%; display: block; object-fit: cover; }
.gx-hero__body.game-card { all: unset; display: block; }
.gx-hero__body h1 { margin: 12px 0 8px; }
.gx-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 18px 0; }
.gx-play { font-size: 1.05rem; padding-inline: 26px; }
.gx-hs-inline { font-weight: 700; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--glass-border); }
.gx-controls { border-top: 1px solid var(--glass-border); padding-top: 14px; }
.gx-controls h2 { font-size: 1rem; margin: 0 0 6px; }
.gx-controls p { margin: 0 0 6px; }
.gx-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
@media (max-width: 820px) { .gx-hero { grid-template-columns: 1fr; } }

/* Cabinet: keep original look, modernise the frame */
.game-stage-modal .arcade-cabinet { border-radius: 22px; }
.info-touch { font-size: .78rem; color: #94a3b8; }
html.light-mode .gx .gx-cat, html.light-mode .gx .gx-hs { background: rgba(255,255,255,.85); color: #111827; }
.gx .gx-hs, [dir="rtl"] .gx .gx-hs { bottom: auto; left: auto; right: auto; inset-inline-end: 10px; border: 0; color: #fff; }
.gx .gx-hs-inline, [dir="rtl"] .gx .gx-hs-inline { position: static; inset: auto; font-size: .95rem; color: #34d399; }
