/* Codeator's own games: the Codeator Arcade page (/games/arcade/, with games.css), its three help
   and legal pages (privacy, support, delete-data, with legal.css), and the list of our games on
   /games/. Class prefix: ac-. The icon and the screenshots are the app's own, from the MiniGames
   repository's store/ folder (icons/2026-10/icon-B.png, screenshots/marketing/play/). */

/* ---------- the app icon ---------- */
.ac-icon { display: block; width: 100%; height: auto; aspect-ratio: 1; border-radius: 22%; box-shadow: 0 0 0 3px rgba(255,255,255,.14), 0 18px 34px rgba(0,0,0,.35); }

/* ---------- /games/: the list of our games ---------- */
.ac-list { list-style: none; display: grid; gap: 18px; }
.ac-card { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 26px; align-items: start; padding: 26px; background: var(--gm-panel); box-shadow: inset 0 0 0 2px var(--gm-line), 6px 6px 0 var(--gm-pink); }
.ac-card h3 { font-family: var(--gm-px); font-weight: 700; font-size: clamp(32px, 3.4vw, 44px); line-height: 1; color: #fff; margin-bottom: 10px; }
.ac-card p { color: var(--gm-dim); max-width: 46em; }
.ac-card .gm-chips { margin-top: 16px; }
.ac-card .gm-stores { margin-top: 22px; }

/* ---------- the Arcade page: hero ---------- */
.ac-hero-copy .ac-icon { width: 96px; margin-bottom: 22px; }
.ac-phone { position: relative; width: min(100%, 320px); margin-inline: auto; padding: 10px; background: #0b0620; border-radius: 34px; box-shadow: 0 0 0 3px var(--gm-cyan), 10px 10px 0 3px var(--gm-pink); }
.ac-phone img { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; border-radius: 26px; }

/* ---------- the games, and the open slot ---------- */
.ac-games .gm-game b { font-size: 28px; }
.ac-next { background: transparent !important; box-shadow: inset 0 0 0 2px var(--gm-gold) !important; --gm-c: var(--gm-gold); }
.ac-next b { color: var(--gm-gold) !important; }

/* ---------- screenshots ---------- */
.ac-shots { list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 16px; overflow-x: auto; padding-block-end: 14px; scroll-snap-type: inline mandatory; }
.ac-shots li { scroll-snap-align: start; }
.ac-shots img { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; border-radius: 18px; box-shadow: 0 0 0 2px var(--gm-line); }
.ac-shots-note { margin-top: 12px; font-size: 14px; color: var(--gm-dim); }

/* ---------- features: the cartridges, five of them ---------- */
.ac-feats.gm-carts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ac-feats .gm-cart:nth-child(4) .gm-cart-label { box-shadow: inset 0 5px 0 var(--gm-cyan); }
.ac-feats .gm-cart:nth-child(5) .gm-cart-label { box-shadow: inset 0 5px 0 var(--gm-pink); }

/* ---------- help and privacy links ---------- */
.ac-docs { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ac-docs a { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 22px; background: var(--gm-panel); box-shadow: inset 0 0 0 2px var(--gm-line); color: var(--gm-dim); text-decoration: none; transition: transform .15s, box-shadow .15s; }
.ac-docs a b { font-family: var(--gm-px); font-weight: 700; font-size: 28px; line-height: 1; color: #fff; }
.ac-docs a:hover { transform: translate(-3px, -3px); box-shadow: inset 0 0 0 2px var(--gm-cyan), 3px 3px 0 var(--gm-cyan); }
.ac-mail { margin-top: 22px; color: var(--gm-dim); }
.ac-mail a { color: var(--gm-cyan); }

/* ---------- the help and legal pages: the icon in the hero ---------- */
.page-hero-art.ac-doc-art img { max-width: 220px; margin-inline: auto; animation: bob 7s ease-in-out infinite alternate; }
.lg-app { margin-top: 10px; font-size: 15px; opacity: .85; }
.lg-prose .ac-states { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin-block: 14px 18px; }
.lg-prose .ac-states li { margin: 0; padding: 4px 12px; font-size: 15px; border: 1px solid currentColor; border-radius: 999px; }

@media (max-width: 920px) {
  .ac-feats.gm-carts, .ac-docs { grid-template-columns: minmax(0, 1fr); }
  .page-hero-art.ac-doc-art img { max-width: 150px; }
}
@media (max-width: 600px) {
  .ac-card { grid-template-columns: minmax(0, 1fr); }
  .ac-card .ac-icon { width: 96px; }
}
@media (prefers-reduced-motion: reduce) {
  .page-hero-art.ac-doc-art img { animation: none; }
}
