/* HyperGamess shared styles: all pages (listing + game page). Brand: pit lane night, ignition orange. */
:root{--bx-bg:#101418;--bx-panel:#1a2029;--bx-panel2:#242c38;--bx-indigo:#ff6a13;--bx-indigo-d:#171c23;--bx-lime:#ff6a13;--bx-teal:#ffc93c;--bx-text:#eef1f5;--bx-muted:#9aa5b4}

/* hero + home sections */
.bx-hero{padding:26px 0 8px}
.bx-hero h1{margin:0;font-size:clamp(26px,4vw,40px);font-weight:800;color:#fff;line-height:1.15}
.bx-hero h1 span{color:var(--bx-lime)}
.bx-hero p{margin:8px 0 0;color:var(--bx-muted);font-size:17px}
.bx-section{margin:26px 0 8px}
.bx-section-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.bx-more{font-size:14px;color:var(--bx-teal);text-decoration:none}
.bx-collections{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:12px;margin:0;padding:0;list-style:none}
.bx-collections a{display:block;background:var(--bx-panel);border:1px solid #2e3846;border-radius:6px;padding:14px 14px 12px;text-decoration:none;color:#fff;font-weight:700;transition:background .15s ease-out,border-color .15s ease-out}
.bx-collections a:hover{background:var(--bx-panel2);border-color:var(--bx-lime)}
.bx-collections small{display:block;margin-top:2px;color:var(--bx-muted);font-weight:400}
.bx-intro{margin:34px 0 10px;padding:22px 24px;background:var(--bx-panel);border-radius:16px;color:#d3d9e2;line-height:1.7}
.bx-intro h2,.bx-intro h3{color:#fff}
.bx-intro h2{font-size:24px}.bx-intro h3{font-size:19px;color:var(--bx-lime)}
.bx-intro a,.bx-prose a{color:var(--bx-lime)}
.bx-prose{color:#d3d9e2;line-height:1.7;margin:24px 0}
.bx-prose h2{font-size:24px;color:#fff;margin:28px 0 10px}
.bx-prose h3{font-size:19px;color:var(--bx-lime);margin:20px 0 8px}
.bx-prose table{border-collapse:collapse;margin:12px 0}.bx-prose td,.bx-prose th{border:1px solid #2e3846;padding:6px 10px}
.bx-collection-meta{color:var(--bx-muted);margin:0 0 12px}
.bx-notfound{text-align:center;padding:36px 0 16px}
.bx-notfound h1{color:#fff;font-size:34px}
.bx-notfound p{color:var(--bx-muted)}
.bx-notfound .btn{margin:6px}

/* breadcrumb */
.bx-crumbs{list-style:none;display:flex;flex-wrap:wrap;gap:4px 8px;margin:0 0 10px;padding:0;font-size:14px;color:var(--bx-muted)}
.bx-crumbs li+li::before{content:"\203A";margin-inline-end:8px;color:#5d6878}
[dir=rtl] .bx-crumbs li+li::before{content:"\2039"}
.bx-crumbs a{color:var(--bx-teal);text-decoration:none}

/* ads: labelled, fixed-height containers (no layout shift), never next to the game */
.ad-slot{text-align:center;margin:16px auto;max-width:100%}
.ad-slot .ad-label{font:600 11px/1 system-ui,sans-serif;letter-spacing:.08em;text-transform:uppercase;color:#8592a3;margin:0 0 6px}
.ad-slot .ad-box{margin:0 auto;overflow:hidden;max-width:100%}
.ad-below_game .ad-box,.ad-in_content .ad-box{min-height:280px}
.ad-home_top .ad-box{min-height:100px}
.ad-below_game{margin-top:150px} /* >= 150px between the game area and the first ad */
html.game-error .ad-slot{display:none!important}

/* footer */
.qg-footer{background:#0a0d11;border-top:3px solid var(--bx-lime);padding:28px 16px 22px;text-align:center;color:var(--bx-muted);font-size:14px;margin-top:36px}
.qg-footer-menu{list-style:none;margin:0 0 14px;padding:0;display:flex;flex-wrap:wrap;justify-content:center;gap:6px 20px}
.qg-footer-menu a{color:#eef1f5;text-decoration:none;font-weight:600}
.qg-footer-menu a:hover,.qg-copy a,.qg-lang a.active{color:var(--bx-lime)}
.qg-copy{margin:0 0 4px}.qg-copy a{text-decoration:none}
.qg-tag{margin:0 0 12px;font-size:13px}
.qg-lang{display:flex;flex-wrap:wrap;justify-content:center;gap:4px 8px;font-size:13px}
.qg-lang a{color:#b8c1cd;text-decoration:none}.qg-sep{color:#3a4452}
/* sticky footer: footer stays at the bottom on short pages */
html,body{min-height:100%}
body{min-height:100vh;display:flex;flex-direction:column}
body>*{flex-shrink:0}
.qg-footer{margin-top:auto}
body>.qg-footer{margin-top:auto}
main,#play-area{flex-shrink:0}
body>.container:last-of-type{margin-bottom:36px}

/* brand: focus, motion */
.bx-collections a:focus-visible,.bx-more:focus-visible,.bx-crumbs a:focus-visible,.qg-footer a:focus-visible{outline:2px solid #ffc93c;outline-offset:2px}
