/*

Custom style (HyperGamess brand: pit lane at night, ignition orange)

You can override the default class or style here

This file will not be overwritten by the updater

*/
: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}
body{background:var(--bx-bg);color:var(--bx-text);font-family:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans","Noto Sans Arabic",sans-serif}
/* header: solid, 4px bar = orange + last 18% yellow (hard stop) */
#mainNav.top-nav{background:#171c23 linear-gradient(90deg,#ff6a13 0 82%,#ffc93c 82% 100%) bottom/100% 4px no-repeat!important;border-bottom:0}
.site-logo{height:44px;width:auto}
.nav-categories{background:#0c1014}
/* category chips: slanted parallelograms (focus ring sits on the <a>, clip-path would cut it off) */
.nav-categories .list-categories a{display:block;text-decoration:none}
.nav-categories .list-categories li{border:0!important;border-radius:0!important;background:#242c38!important;color:#eef1f5!important;padding:8px 16px!important;clip-path:polygon(8px 0,100% 0,calc(100% - 8px) 100%,0 100%);transition:background .15s ease-out,color .15s ease-out}
.nav-categories .list-categories a:hover li,.nav-categories .list-categories li:hover{background:var(--bx-lime)!important;color:#101418!important}
[dir=rtl] .nav-categories .list-categories li{clip-path:polygon(0 0,calc(100% - 8px) 0,100% 100%,8px 100%)}
.item-title,.item-title i{color:var(--bx-lime)!important}
.btn-primary{background:var(--bx-lime)!important;border-color:var(--bx-lime)!important;color:#101418!important;font-weight:700}
.list-game .list-title,.list-game a{color:var(--bx-text)}
a{color:var(--bx-teal)}

/* headings: condensed DIN-style face, falls back to the body stack in Arabic */
.item-title,.bx-prose h2,.bx-prose h3,.bx-intro h2,.bx-intro h3,#game-info h1,#game-info h2,.singlepage-title,.bx-notfound h1{font-family:"Bahnschrift","DIN Alternate","sans-serif-condensed","Arial Narrow",system-ui,sans-serif;font-weight:700;font-stretch:87.5%;letter-spacing:.02em}
:lang(ar) .item-title,:lang(ar) .bx-prose h2,:lang(ar) .bx-prose h3,:lang(ar) .bx-intro h2,:lang(ar) .bx-intro h3,:lang(ar) #game-info h1,:lang(ar) #game-info h2,:lang(ar) .singlepage-title,:lang(ar) .bx-notfound h1,[dir=rtl] .item-title,[dir=rtl] .singlepage-title{font-family:system-ui,-apple-system,"Segoe UI",Roboto,"Noto Sans","Noto Sans Arabic",sans-serif;font-stretch:100%;letter-spacing:0}

/* static pages readable on dark bg */
.page-content,.page-content p,.page-content li{color:#d3d9e2;line-height:1.7}
.page-content h1,.page-content h2,.page-content h3,.single-title{color:#fff}
.page-content a{color:var(--bx-lime)}
/* All Games filter: same parallelogram as the category chips */
.all-games-filter{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 16px}
.agf{background:#242c38;border:0;color:#eef1f5;border-radius:0;clip-path:polygon(8px 0,100% 0,calc(100% - 8px) 100%,0 100%);padding:5px 16px;font-size:14px;cursor:pointer;transition:background .15s ease-out,color .15s ease-out}
[dir=rtl] .agf{clip-path:polygon(0 0,calc(100% - 8px) 0,100% 100%,8px 100%)}
.agf.active,.agf:hover{background:var(--bx-lime);color:#101418}
.agf:focus-visible{outline:0;background:#ffc93c;color:#101418} /* clip-path hides outlines: the fill changes to the focus colour instead */
.agf:disabled{opacity:.5;cursor:not-allowed}
.singlepage-title{color:#fff!important}
.game-container .col-md-9,.game-container .col-md-9 p,.game-container .col-md-9 li{color:#d3d9e2}
.game-container .col-md-9 h3{color:var(--bx-lime)}

/* focus: 2px, offset 2px */
a:focus-visible,button:focus-visible,input:focus-visible,.btn:focus-visible{outline:2px solid #ffc93c;outline-offset:2px}

/* game cards: 4 per row desktop, 2 on mobile */
.item-grid .list-game{background:var(--bx-panel);border-radius:6px;padding:6px 6px 4px;transition:transform .15s ease-out,background .15s ease-out,box-shadow .15s ease-out}
.item-grid a:hover .list-game{transform:translateY(-3px);background:var(--bx-panel2);box-shadow:inset 0 -3px 0 #ff6a13}
.item-grid .list-thumbnail img{width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;border-radius:4px;background:var(--bx-panel2)}
.item-grid .list-title{font-size:15px;font-weight:600;padding:4px 4px 2px}
@media (prefers-reduced-motion:reduce){.item-grid a:hover .list-game{transform:none}.nav-categories .list-categories li,.agf,.item-grid .list-game{transition:none}}
