/* Where in NEPA? landing page (template-game.php, v0.22.0). Uses the theme's tokens (--aa-*). */

/* hide the site's phone call bar here: the game has its own full-screen controls */
.aa-gl .aa-mbar { display: none; }
.aa-gl main { padding-bottom: 0; }

/* ---------- slim header ---------- */
.aa-gl-bar { position: sticky; top: 0; z-index: 50; background: rgba(11, 11, 12, .94); border-bottom: 1px solid var(--aa-line-dim); backdrop-filter: blur(6px); }
.aa-gl-bar__in { display: flex; align-items: center; gap: 12px 20px; min-height: 64px; padding-top: 8px; padding-bottom: 8px; }
.aa-gl-bar__logo { display: flex; align-items: center; min-height: 44px; flex: 0 0 auto; }
.aa-gl-bar__logo img { width: 170px; height: auto; }
.aa-gl-bar__tag { padding-left: 16px; border-left: 1px solid var(--aa-line); font-family: var(--aa-display); font-weight: 700; font-size: 17px; letter-spacing: .1em; text-transform: uppercase; color: var(--aa-silver, #B9BCC1); white-space: nowrap; }
.aa-gl-bar__nav { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.aa-gl-bar__link { font-family: var(--aa-display); font-weight: 600; font-size: 17px; letter-spacing: .06em; text-transform: uppercase; color: var(--aa-text); text-decoration: none; white-space: nowrap; }
.aa-gl-bar__link:hover { color: var(--aa-hivis); }
.aa-gl-bar__play { min-height: 42px; padding: 8px 18px; font-size: 17px; }

/* ---------- hero ---------- */
.aa-gl-hero { position: relative; overflow: hidden; background: #0B0B0C; isolation: isolate; }
.aa-gl-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--aa-gl-bg) center 40% / cover no-repeat; filter: saturate(.9); }
.aa-gl-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11,11,12,.96) 0%, rgba(11,11,12,.86) 42%, rgba(11,11,12,.55) 100%), linear-gradient(180deg, rgba(11,11,12,0) 60%, rgba(11,11,12,.9) 100%); }
.aa-gl-hero__in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: 32px 48px; padding-top: clamp(40px, 7vw, 88px); padding-bottom: clamp(44px, 7vw, 92px); }
.aa-gl-kicker { margin: 0 0 10px; font-family: var(--aa-display); font-weight: 700; font-size: 16px; letter-spacing: .16em; text-transform: uppercase; color: var(--aa-hivis); }
.aa-gl-title { font-size: clamp(56px, 9vw, 116px); line-height: .9; letter-spacing: -.005em; text-wrap: balance; }
.aa-gl-title em { font-style: normal; color: var(--aa-hivis); }
.aa-gl-lead { margin: 18px 0 0; max-width: 34em; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: #E4E6E9; }
.aa-gl-challenge { margin: 18px 0 0; max-width: 34em; padding: 10px 14px; border: 1px solid var(--aa-hivis); border-radius: 6px; background: rgba(230, 238, 46, .08); color: #fff; }
.aa-gl-challenge b { color: var(--aa-hivis); }
.aa-gl-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 26px; }
.aa-gl-play { min-height: 54px; padding: 12px 30px; font-size: 21px; }
.aa-gl-ghost { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--aa-display); font-weight: 700; font-size: 18px; letter-spacing: .06em; text-transform: uppercase; color: var(--aa-text); text-decoration: none; border-bottom: 2px solid var(--aa-hivis); }
.aa-gl-ghost:hover { color: var(--aa-hivis); }
.aa-gl-facts { display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 28px 0 0; padding: 0; list-style: none; }
.aa-gl-facts li { padding: 7px 12px; border: 1px solid var(--aa-line); border-radius: 999px; background: rgba(11,11,12,.6); font-size: 15px; color: #D4D6DA; }
.aa-gl-facts b { font-family: var(--aa-display); font-weight: 800; font-size: 17px; color: var(--aa-hivis); margin-right: 4px; }

/* viewfinder art: the logo drone carrying a "?" card while the altitude ticks up */
.aa-gl-vf { position: relative; aspect-ratio: 4 / 3; border-radius: 10px; background: rgba(11,11,12,.35); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.aa-gl-vf__c { position: absolute; width: 34px; height: 34px; border: 0 solid rgba(255,255,255,.85); }
.aa-gl-vf__c:nth-child(1) { left: 14px; top: 14px; border-left-width: 3px; border-top-width: 3px; }
.aa-gl-vf__c:nth-child(2) { right: 14px; top: 14px; border-right-width: 3px; border-top-width: 3px; }
.aa-gl-vf__c:nth-child(3) { left: 14px; bottom: 14px; border-left-width: 3px; border-bottom-width: 3px; }
.aa-gl-vf__c:nth-child(4) { right: 14px; bottom: 14px; border-right-width: 3px; border-bottom-width: 3px; }
.aa-gl-vf__rec { position: absolute; left: 30px; top: 26px; font-family: var(--aa-display); font-weight: 700; letter-spacing: .1em; font-size: 15px; }
.aa-gl-vf__rec::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 8px; border-radius: 50%; background: var(--aa-crimson, #D8103F); animation: aa-gl-blink 1s steps(2) infinite; }
.aa-gl-vf__alt { position: absolute; right: 30px; top: 22px; font-family: var(--aa-display); font-weight: 700; font-size: 14px; letter-spacing: .08em; }
.aa-gl-vf__alt b { font-size: 28px; color: var(--aa-hivis); font-variant-numeric: tabular-nums; }
.aa-gl-vf__bar { position: absolute; right: 34px; top: 66px; bottom: 30px; width: 8px; border-radius: 4px; background: rgba(255,255,255,.18); }
.aa-gl-vf__bar i { position: absolute; left: 0; right: 0; bottom: 0; height: var(--aa-gl-p, 0%); border-radius: 4px; background: var(--aa-hivis); }
.aa-gl-drone { position: absolute; left: 50%; top: 24%; width: 58%; transform: translateX(-50%); filter: drop-shadow(0 14px 16px rgba(0,0,0,.6)); animation: aa-gl-hover 3s ease-in-out infinite; }
.aa-gl-vf__q { position: absolute; left: 50%; top: 58%; width: 74px; height: 74px; display: grid; place-items: center; transform: translateX(-50%); border: 2px solid var(--aa-hivis); border-radius: 10px; background: rgba(11,11,12,.85); font-family: var(--aa-display); font-weight: 800; font-size: 52px; color: var(--aa-hivis); animation: aa-gl-hover 3s ease-in-out infinite, aa-gl-swing 3.4s ease-in-out infinite; }
.aa-gl-vf__q::before, .aa-gl-vf__q::after { content: ""; position: absolute; bottom: 100%; width: 2px; height: 26px; background: #f2f3f5; }
.aa-gl-vf__q::before { left: 14px; }
.aa-gl-vf__q::after { right: 14px; }
@keyframes aa-gl-hover { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes aa-gl-swing { 0%, 100% { rotate: -3deg; } 50% { rotate: 3deg; } }
@keyframes aa-gl-blink { 50% { opacity: .2; } }

/* ---------- game ---------- */
.aa-gl-game { padding: clamp(36px, 5vw, 64px) 0; background: var(--aa-black, #0B0B0C); }
.aa-gl-game__body > * + * { margin-top: 18px; }
.aa-gl-game__body > p { max-width: 920px; margin-left: auto; margin-right: auto; color: var(--aa-silver, #B9BCC1); text-align: center; }
.aa-gl-game .aag { max-width: 980px; box-shadow: 0 24px 60px rgba(0,0,0,.45); }

/* ---------- how it works ---------- */
.aa-gl-how { padding: clamp(48px, 7vw, 96px) 0; background: var(--aa-charcoal, #1A1B1E); border-top: 1px solid var(--aa-line-dim); }
.aa-gl-h2 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1; text-wrap: balance; max-width: 18em; }
.aa-gl-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 34px 0 0; padding: 0; list-style: none; counter-reset: aa-gl; }
.aa-gl-steps li { position: relative; padding: 26px 22px 24px; border: 1px solid var(--aa-line); border-radius: 8px; background: var(--aa-black, #0B0B0C); counter-increment: aa-gl; }
.aa-gl-steps li::before { content: counter(aa-gl); position: absolute; top: -18px; left: 20px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--aa-hivis); color: var(--aa-black, #0B0B0C); font-family: var(--aa-display); font-weight: 800; font-size: 21px; }
.aa-gl-steps h3 { font-size: 26px; margin-top: 6px; }
.aa-gl-steps p { margin: 10px 0 0; color: #D4D6DA; line-height: 1.55; }

/* ---------- photo strip ---------- */
.aa-gl-strip { padding: clamp(48px, 7vw, 96px) 0; background: var(--aa-black, #0B0B0C); }
.aa-gl-strip__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; }
.aa-gl-strip__head p { margin: 0; color: var(--aa-silver, #B9BCC1); }
.aa-gl-strip__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 26px; }
.aa-gl-strip__grid figure { margin: 0; overflow: hidden; border-radius: 6px; aspect-ratio: 4 / 3; background: #16171a; }
.aa-gl-strip__grid img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.aa-gl-strip__grid figure:hover img { transform: scale(1.06); }

/* ---------- FAQ ---------- */
.aa-gl-faq { padding: clamp(48px, 7vw, 96px) 0; background: var(--aa-charcoal, #1A1B1E); border-top: 1px solid var(--aa-line-dim); }
.aa-gl-faq__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 24px 56px; align-items: start; }
.aa-gl-faq__list { display: grid; gap: 10px; }
.aa-gl-faq details { border: 1px solid var(--aa-line); border-radius: 8px; background: var(--aa-black, #0B0B0C); }
.aa-gl-faq summary { cursor: pointer; list-style: none; padding: 16px 48px 16px 18px; position: relative; font-family: var(--aa-display); font-weight: 700; font-size: 21px; letter-spacing: .03em; text-transform: uppercase; }
.aa-gl-faq summary::-webkit-details-marker { display: none; }
.aa-gl-faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--aa-hivis); font-size: 28px; }
.aa-gl-faq details[open] summary::after { content: "\2013"; }
.aa-gl-faq details p { margin: 0; padding: 0 18px 18px; color: #D4D6DA; line-height: 1.55; }

/* ---------- made by ---------- */
.aa-gl-made { padding: clamp(48px, 7vw, 88px) 0; background: var(--aa-black, #0B0B0C); border-top: 1px solid var(--aa-line-dim); }
.aa-gl-made__in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; gap: 24px 56px; }
.aa-gl-made__in img { width: 100%; max-width: 420px; height: auto; justify-self: center; filter: drop-shadow(0 18px 20px rgba(0,0,0,.6)); }
.aa-gl-made p { margin: 14px 0 0; max-width: 34em; color: #D4D6DA; font-size: 18px; line-height: 1.55; }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .aa-gl-hero__in { grid-template-columns: 1fr; }
  .aa-gl-hero__art { order: -1; max-width: 420px; width: 100%; justify-self: center; }
  .aa-gl-vf { aspect-ratio: 16 / 9; }
  .aa-gl-drone { top: 16%; width: 46%; }
  .aa-gl-vf__q { top: 55%; width: 56px; height: 56px; font-size: 40px; }
  .aa-gl-steps { grid-template-columns: 1fr; gap: 26px; }
  .aa-gl-strip__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aa-gl-faq__in, .aa-gl-made__in { grid-template-columns: 1fr; }
  .aa-gl-made__in img { max-width: 280px; }
}
@media (max-width: 700px) {
  .aa-gl-bar__tag, .aa-gl-bar__link { display: none; }
  .aa-gl-bar__logo img { width: 150px; }
  .aa-gl-game { padding-left: 0; padding-right: 0; }
  .aa-gl-game > .aa-wrap { padding-left: 0; padding-right: 0; }
  .aa-gl-game__body > p { padding: 0 16px; }
  .aa-gl-facts li { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .aa-gl-drone, .aa-gl-vf__q, .aa-gl-vf__rec::before { animation: none; }
  .aa-gl-strip__grid img { transition: none; }
}

/* the hero and "How it works" already explain the game, so the game's own start card stays short here */
.aa-gl .aag-start .aag-panel__lead, .aa-gl .aag-start .aag-rules { display: none; }
.aa-gl .aag-start .aag-hero-img { aspect-ratio: 16 / 6; }
