/* assets/arcade/hub.css — the GAMES page: the shelf of the 60 Arcade games (games.php). 17 Nov 2026.
   Every class starts with "ah-". The page has its own look: a bright "ticket and cartridge" shelf.
   Colours: dark by default (the Cosmic look is always dark); light in the Classic look (body.lk-ui), dark again with html.dark. */
.ah { --bg: transparent; --card: #17182e; --card2: #1f2040; --ink: #f4f3ff; --body: #c5c6e0; --mute: #9596b8; --line: rgba(255,255,255,.11); --chip: rgba(255,255,255,.07);
  max-width: 1200px; margin: 0 auto; padding: 124px 16px 8px; color: var(--ink); font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; position: relative; z-index: 1; }
@media (max-width: 1023px) { .ah { padding-top: 78px; } }
body.lk-ui .ah { --card: #fff; --card2: #f6f4fd; --ink: #1c1a2e; --body: #45435c; --mute: #77758c; --line: #e3e0ef; --chip: #fff; }
html.dark body.lk-ui .ah { --card: #14182e; --card2: #1b2040; --ink: #f1f1fa; --body: #c9c9de; --mute: #9092b0; --line: #2a2f52; --chip: #14182e; }
.cp .ah { padding: 20px 0 8px; max-width: 1200px; }
.ah *, .ah *::before, .ah *::after { box-sizing: border-box; }
.ah a { color: inherit; text-decoration: none; }

/* the marquee */
.ah-hero { position: relative; overflow: hidden; border-radius: 26px; padding: 26px 26px 22px; color: #fff; background: linear-gradient(120deg, #4f46e5 0%, #9333ea 38%, #db2777 72%, #f97316 100%); box-shadow: 0 18px 40px -22px #9333ea; }
.ah-hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.22) 1.2px, transparent 1.3px); background-size: 18px 18px; -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000); mask-image: linear-gradient(90deg, transparent 30%, #000); pointer-events: none; }
.ah-hero > * { position: relative; }
.ah-kick { margin: 0 0 4px; font-size: 11.5px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; opacity: .85; }
.ah-hero h1 { margin: 0; font-size: clamp(34px, 7vw, 56px); line-height: 1; letter-spacing: -.03em; font-weight: 900; color: #fff; }
.ah-lead { margin: 10px 0 14px; max-width: 620px; font-size: 16px; line-height: 1.5; color: rgba(255,255,255,.92); }
.ah-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.ah-pills span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 99px; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.28); font-weight: 800; font-size: 13.5px; backdrop-filter: blur(4px); }
.ah-float { position: absolute; right: 18px; top: 14px; display: grid; grid-template-columns: repeat(3, 54px); gap: 8px; transform: rotate(8deg); opacity: .95; }
.ah-float i { width: 54px; height: 54px; display: grid; place-items: center; font-style: normal; font-size: 28px; border-radius: 16px; background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.3); }
@media (max-width: 760px) { .ah-float { display: none; } .ah-hero { padding: 20px 18px 18px; border-radius: 22px; } }

/* the daily ticket */
.ah-ticket { display: flex; align-items: center; gap: 14px; margin: 14px 0 0; padding: 14px 16px; border-radius: 18px; background: var(--card); border: 2px dashed #f43f5e; position: relative; }
.ah-ticket .ah-tic { flex: none; width: 52px; height: 52px; display: grid; place-items: center; font-size: 27px; border-radius: 15px; background: #f43f5e; }
.ah-ticket b { display: block; font-size: 17px; } .ah-ticket small { display: block; color: var(--body); font-size: 13.5px; margin-top: 2px; }
.ah-ticket .ah-go { margin-left: auto; flex: none; padding: 10px 18px; border-radius: 12px; background: #f43f5e; color: #fff; font-weight: 800; box-shadow: 0 4px 0 #9f1239; }
.ah-ticket:active .ah-go { transform: translateY(3px); box-shadow: 0 1px 0 #9f1239; }

/* search and filters */
.ah-tools { position: sticky; top: 64px; z-index: 5; margin: 14px -4px 0; padding: 8px 4px; display: grid; gap: 8px; background: color-mix(in srgb, var(--pagebg, #0b0b15) 90%, transparent); backdrop-filter: blur(8px); border-radius: 14px; }
body.lk-ui .ah-tools { --pagebg: #f4f3fb; } html.dark body.lk-ui .ah-tools { --pagebg: #070b1c; }
@media (max-width: 1023px) { .ah-tools { top: 58px; } }
.ah-search { width: 100%; min-height: 46px; padding: 0 14px 0 42px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239596b8' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") 14px 50% / 18px no-repeat; color: var(--ink); font: inherit; font-size: 16px; }
.ah-search:focus { outline: 2px solid #9333ea; outline-offset: 1px; }
.ah-chips { display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; } .ah-chips::-webkit-scrollbar { display: none; }
.ah-chip { flex: none; min-height: 38px; padding: 0 13px; border-radius: 99px; border: 1.5px solid var(--line); background: var(--chip); color: var(--ink); font: inherit; font-weight: 700; font-size: 13.5px; cursor: pointer; white-space: nowrap; }
.ah-chip.on { background: #9333ea; border-color: #9333ea; color: #fff; } .ah-chip.sep { margin-left: 8px; }

/* a shelf = one group of games */
.ah-shelf { margin: 22px 0 0; scroll-margin-top: 190px; }
.ah-shelf > header { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 0 0 10px; padding-bottom: 8px; border-bottom: 2px solid var(--line); }
.ah-shelf h2 { margin: 0; font-size: 21px; font-weight: 900; letter-spacing: -.01em; color: var(--ink); } .ah-shelf header p { margin: 0; color: var(--mute); font-size: 13.5px; } .ah-shelf header em { margin-left: auto; font-style: normal; font-weight: 800; font-size: 12.5px; color: var(--mute); }
.ah-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.ah-card { position: relative; display: grid; grid-template-columns: 54px 1fr; gap: 2px 12px; align-items: start; padding: 12px; border-radius: 18px; background: var(--card); border: 1.5px solid var(--line); border-bottom: 4px solid color-mix(in srgb, var(--c) 70%, var(--line)); transition: transform .12s, border-color .12s; }
.ah-card:hover { transform: translateY(-2px); border-color: var(--c); } .ah-card:active { transform: translateY(2px); border-bottom-width: 2px; margin-bottom: 2px; }
.ah-card .ah-ic { grid-row: 1 / span 3; width: 54px; height: 54px; display: grid; place-items: center; font-size: 28px; border-radius: 16px; background: var(--c); box-shadow: inset 0 -4px 0 rgba(0,0,0,.16); }
.ah-card b { font-size: 16px; line-height: 1.2; color: var(--ink); padding-right: 34px; } .ah-card small { color: var(--body); font-size: 13px; line-height: 1.35; }
.ah-card .ah-meta { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 11.5px; font-weight: 800; color: var(--mute); text-transform: uppercase; letter-spacing: .04em; }
.ah-card .ah-st { margin-left: auto; letter-spacing: 1px; font-size: 14px; color: var(--line); } .ah-card .ah-st i { font-style: normal; } .ah-card .ah-st i.on { color: #f59e0b; }
.ah-card .ah-new { position: absolute; right: 10px; top: 10px; padding: 2px 7px; border-radius: 7px; background: #facc15; color: #422006; font-size: 10px; font-weight: 900; letter-spacing: .06em; }
.ah-card.played .ah-new { display: none; }
@media (max-width: 560px) { .ah-grid { grid-template-columns: 1fr 1fr; gap: 8px; } .ah-card { grid-template-columns: 1fr; padding: 10px; border-radius: 16px; } .ah-card .ah-ic { grid-row: auto; width: 46px; height: 46px; font-size: 24px; border-radius: 14px; margin-bottom: 4px; }
  .ah-card b { font-size: 14.5px; padding-right: 0; } .ah-card small { font-size: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .ah-card .ah-meta { font-size: 10px; gap: 4px; } .ah-card .ah-st { font-size: 12.5px; } }
.ah-none { display: none; margin: 26px 0; text-align: center; color: var(--mute); font-weight: 700; }
.ah-more { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.ah-more a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; background: var(--card2); border: 1.5px solid var(--line); font-weight: 800; font-size: 15px; } .ah-more a span { font-size: 24px; } .ah-more a small { display: block; font-weight: 500; font-size: 12.5px; color: var(--body); }
.ah-more a:hover { border-color: #9333ea; }
/* Game Galaxy comes after the shelf, so it does not need the space for the site's top bar again */
.ah + .gl, .ah ~ .gl { padding-top: 26px; min-height: 0; }
.ah-credit { margin: 18px 0 0; text-align: center; font-size: 12.5px; color: var(--mute); } .ah .ah-credit a { color: inherit; text-decoration: underline; }
/* the day / night button of the Games page (hub.js) */
.ah-theme { position: fixed; left: 14px; bottom: 16px; z-index: 60; width: 52px; height: 52px; border: 0; border-radius: 50%; background: #1c1a2e; color: #fff; font-size: 22px; cursor: pointer; box-shadow: 0 10px 24px -8px rgba(0,0,0,.6); } html.dark .ah-theme { background: #fff; }

/* ═══════ LIVE RESULTS + FREE games (18 Nov 2026) ═══════ */
.ah-live { margin: 14px 0 0; padding: 16px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.ah-live header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.ah-live h2 { display: flex; align-items: center; gap: 9px; margin: 0; font-size: 20px; color: var(--ink); }
.ah-dot { width: 10px; height: 10px; border-radius: 50%; background: #ef4444; animation: ahLive 1.6s ease-out infinite; } @keyframes ahLive { from { box-shadow: 0 0 0 0 rgba(239,68,68,.6); } to { box-shadow: 0 0 0 10px rgba(239,68,68,0); } }
.ah-tabs { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--card2); border: 1px solid var(--line); } .ah-tabs button { padding: 7px 13px; border: 0; border-radius: 999px; background: none; color: var(--body); font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.ah-tabs button.on { background: #facc15; color: #422006; }
.ah-live-sum { margin: 0 0 12px; font-size: 14.5px; line-height: 1.5; color: var(--body); } .ah-live-sum b { color: var(--ink); } .ah-live-sum a, .ah-live li a { color: #6d4ee0; font-weight: 700; } html.dark .ah-live-sum a, html.dark .ah-live li a { color: #facc15; }
.ah-live-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; } .ah-live h3 { margin: 0 0 6px; font-size: 14px; color: var(--mute); font-weight: 800; }
.ah-live ol { list-style: none; margin: 0; padding: 0; } .ah-live li { display: grid; grid-template-columns: 22px 1fr auto 58px; gap: 8px; align-items: center; padding: 7px 8px; border-radius: 10px; font-size: 14px; color: var(--body); }
.ah-live li:nth-child(odd) { background: var(--card2); } .ah-live li i { font-style: normal; font-weight: 800; color: var(--mute); } .ah-live li:first-child i { color: #facc15; }
.ah-live li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ah-live li b { color: var(--ink); white-space: nowrap; } .ah-live li em { font-style: normal; font-size: 12px; color: var(--mute); text-align: right; }
.ah-live li.me { outline: 2px solid #facc15; outline-offset: -2px; } .ah-live li.none { display: block; background: none; color: var(--mute); }
.ah-card .ah-free, .ah-free-tag { padding: 2px 7px; border-radius: 7px; background: #22c55e; color: #052e16; font-size: 10px; font-weight: 900; letter-spacing: .06em; } .ah-card .ah-free { position: absolute; left: 10px; top: 10px; }
@media (max-width: 760px) { .ah-live-cols { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .ah-dot { animation: none; } }

