/* ══════════════════════════════════════════════════
   ARROW ATLAS — tap-away arrow puzzle on country maps
   Loads after css/style.css (variables, nav, FAQ, footer)
   ══════════════════════════════════════════════════ */

.aa-page{ position:relative; z-index:1; padding:120px 22px 80px; max-width:1240px; margin:0 auto; }
.aa-page a{ color:var(--yellow); }
.aa-page a:hover{ text-decoration:underline; }
.aa-page section{ padding-left:0; padding-right:0; }
.aa-page [hidden]{ display:none !important; }
.aa-visually-hidden{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }

.aa-crumb{ display:flex; flex-wrap:wrap; gap:8px; font-size:12px; color:var(--muted); margin-bottom:28px; }
.aa-crumb a{ color:rgba(255,255,255,.55); text-decoration:none; }
.aa-crumb a:hover{ color:var(--yellow); text-decoration:none; }
.aa-crumb span[aria-current]{ color:var(--text); }

/* ── Hero ── */
.aa-hero{ text-align:center; max-width:800px; margin:0 auto 32px; }
.aa-hero .section-title{ font-size:clamp(34px,7vw,58px); }
.aa-hero .section-desc{ font-size:15px; max-width:62ch; margin:0 auto 18px; }
.aa-trust{ display:flex; flex-wrap:wrap; justify-content:center; gap:8px 18px; margin:0; padding:0; list-style:none; }
.aa-trust li{ display:inline-flex; align-items:center; gap:7px; font-family:'Barlow Condensed',sans-serif; font-size:13px; font-weight:700; letter-spacing:1.2px; text-transform:uppercase; color:rgba(255,255,255,.7); }
.aa-trust svg{ width:15px; height:15px; color:var(--yellow); fill:none; stroke:currentColor; stroke-width:2.2; stroke-linecap:round; stroke-linejoin:round; }

/* ── Buttons ── */
.aa-btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:10px 18px; border-radius:50px;
  border:1px solid var(--border); background:none; color:var(--text); cursor:pointer; text-decoration:none;
  font-family:'Inter',sans-serif; font-weight:700; font-size:13px; letter-spacing:.3px; white-space:nowrap;
  transition:background .2s, border-color .2s, color .2s;
}
.aa-btn:hover{ border-color:rgba(255,237,84,.5); color:var(--yellow); }
.aa-btn:disabled{ opacity:.45; cursor:default; }
.aa-btn--primary{ background:var(--yellow); border-color:var(--yellow); color:#000; }
.aa-btn--primary:hover{ background:#D4C400; border-color:#D4C400; color:#000; }
.aa-btn--small{ padding:7px 12px; font-size:12px; }
.aa-page a.aa-btn--primary{ color:#000; text-decoration:none; }

/* ── Shell ── */
.aa-shell{ position:relative; margin:0 auto 24px; background:var(--panel); border:1px solid #1c1c1c; border-radius:22px; padding:16px; box-shadow:0 30px 80px rgba(0,0,0,.45); }
@media(min-width:1000px){ .aa-shell{ padding:18px; } }
.aa-loading, .aa-error{ font-size:13px; margin:0 0 10px; }
.aa-loading{ color:var(--yellow); }
.aa-error{ color:#ef4444; }

/* World Tour (level select) */
.aa-select-head{ display:flex; flex-wrap:wrap; align-items:flex-end; justify-content:space-between; gap:12px; margin-bottom:12px; }
.aa-select-head h2{ font-family:'Barlow Condensed',sans-serif; font-size:26px; font-weight:800; text-transform:uppercase; margin:0; }
.aa-select-head p{ margin:4px 0 0; font-size:13px; color:var(--muted); }
.aa-modes{ display:grid; grid-template-columns:1fr 1fr; gap:6px; background:#0a0a0a; border:1px solid #222; border-radius:14px; padding:6px; }
.aa-mode{ display:flex; flex-direction:column; align-items:flex-start; gap:2px; text-align:left; padding:8px 12px; border-radius:10px; border:1px solid transparent; background:none; color:rgba(255,255,255,.7); cursor:pointer; font-family:inherit; transition:background .2s, color .2s, border-color .2s; }
.aa-mode strong{ font-family:'Barlow Condensed',sans-serif; font-size:16px; font-weight:800; letter-spacing:1px; text-transform:uppercase; color:inherit; }
.aa-mode span{ font-size:11px; color:var(--muted); line-height:1.3; }
.aa-mode:hover{ color:var(--yellow); }
.aa-mode.is-active{ background:rgba(255,237,84,.1); border-color:rgba(255,237,84,.35); color:var(--yellow); }
.aa-progress-wrap{ margin:0 0 14px; }
.aa-progress{ font-size:12px; color:rgba(255,255,255,.7); margin:0 0 6px; }
.aa-progress-track{ height:6px; background:#1a1a1a; border-radius:6px; overflow:hidden; }
.aa-progress-bar{ height:100%; width:0; background:var(--yellow); border-radius:6px; transition:width .4s; }
.aa-levels{ display:grid; gap:8px; grid-template-columns:repeat(auto-fill,minmax(88px,1fr)); }
.aa-level{
  display:flex; flex-direction:column; align-items:center; gap:4px; padding:10px 6px 8px;
  background:rgba(255,255,255,.02); border:1px solid #232323; border-radius:14px; color:var(--text); cursor:pointer; font-family:inherit;
  transition:border-color .2s, transform .2s, background .2s;
}
.aa-level:hover:not(:disabled), .aa-level:focus-visible{ border-color:rgba(255,237,84,.5); transform:translateY(-2px); outline:none; }
.aa-level svg{ width:44px; height:44px; }
.aa-level svg path{ fill:rgba(255,255,255,.22); }
.aa-level.is-done svg path{ fill:var(--yellow); }
.aa-level.is-locked{ opacity:.35; cursor:default; }
.aa-level-num{ font-family:'Barlow Condensed',sans-serif; font-size:18px; font-weight:800; line-height:1; }
.aa-level-sub{ font-size:10px; color:var(--muted); text-align:center; line-height:1.25; max-width:100%; overflow:hidden; text-overflow:ellipsis; }
.aa-level.is-done .aa-level-sub{ color:rgba(255,255,255,.75); }

/* HUD */
.aa-hud{ display:flex; flex-wrap:wrap; align-items:center; gap:8px 14px; margin-bottom:12px; }
.aa-hud-title{ font-family:'Barlow Condensed',sans-serif; font-size:24px; font-weight:900; text-transform:uppercase; line-height:1; display:flex; align-items:center; gap:8px; margin:0; }
.aa-hud-mode{ font-size:10px; font-weight:800; letter-spacing:1.5px; text-transform:uppercase; color:var(--yellow); border:1px solid rgba(255,237,84,.35); border-radius:30px; padding:3px 8px; }
.aa-hud-stats{ display:flex; gap:14px; margin-left:auto; font-size:12px; color:var(--muted); align-items:flex-end; }
.aa-hud-stats b{ display:block; font-family:'Barlow Condensed',sans-serif; font-size:20px; font-weight:800; color:var(--text); line-height:1; font-variant-numeric:tabular-nums; }
.aa-hud-stats b.is-low{ color:#E8383A; }
.aa-lives{ font-size:18px; letter-spacing:2px; line-height:1; }
.aa-lives .is-on{ color:#E8383A; }
.aa-lives .is-off{ color:#333; }
.aa-hud-actions{ display:flex; flex-wrap:wrap; gap:6px; width:100%; }
@media(min-width:760px){ .aa-hud-actions{ width:auto; } }
@media(max-width:480px){ .aa-hud-title{ font-size:20px; } .aa-hud-stats{ gap:10px; font-size:11px; } .aa-hud-stats b{ font-size:18px; } }

/* Board */
.aa-board-wrap{ position:relative; background:#0a0a0a; border:1px solid #222; border-radius:14px; overflow:hidden; touch-action:manipulation; max-width:760px; margin:0 auto; }
.aa-board{ display:block; width:100%; height:auto; max-height:74vh; touch-action:manipulation; user-select:none; -webkit-user-select:none; }
.aa-board--tall{ max-height:82vh; }
.aa-outline{ fill:var(--yellow); fill-opacity:.06; stroke:rgba(255,237,84,.22); stroke-width:.6; vector-effect:non-scaling-stroke; transition:fill-opacity .35s; pointer-events:none; }
.aa-piece{ cursor:pointer; outline:none; }
.aa-piece .aa-hit{ fill:transparent; }
.aa-piece .aa-track{ fill:none; stroke:rgba(255,255,255,.88); stroke-width:.11; stroke-linecap:round; stroke-linejoin:round; pointer-events:none; }
.aa-piece .aa-head{ fill:rgba(255,255,255,.95); stroke:rgba(255,255,255,.95); stroke-width:.06; stroke-linejoin:round; pointer-events:none; transform-box:view-box; }
.aa-piece:hover .aa-track, .aa-piece:focus-visible .aa-track{ stroke:var(--yellow); stroke-width:.16; }
.aa-piece:hover .aa-head, .aa-piece:focus-visible .aa-head{ fill:var(--yellow); stroke:var(--yellow); }
.aa-piece.is-going{ pointer-events:none; }
.aa-piece.is-blocker .aa-track{ stroke:#E8383A !important; stroke-width:.2; }
.aa-piece.is-blocker .aa-head{ fill:#E8383A !important; stroke:#E8383A !important; }
.aa-piece.is-hint .aa-track{ stroke:var(--yellow) !important; stroke-width:.2; animation:aa-glow .5s ease-in-out infinite alternate; }
.aa-piece.is-hint .aa-head{ fill:var(--yellow) !important; stroke:var(--yellow) !important; }
.aa-piece.is-shake .aa-track, .aa-piece.is-shake .aa-head{ animation:aa-shake .3s; }
@keyframes aa-shake{ 0%,100%{ opacity:1; } 30%,70%{ opacity:.25; } }
@keyframes aa-glow{ from{ opacity:.5; } to{ opacity:1; } }
.aa-confetti{ position:absolute; inset:0; width:100%; height:100%; pointer-events:none; z-index:3; }

.aa-toast{ position:absolute; left:50%; bottom:12px; transform:translateX(-50%); z-index:4; max-width:min(92%,520px); background:rgba(0,0,0,.88); color:#fff; font-size:13px; font-weight:600; padding:8px 14px; border-radius:30px; border:1px solid rgba(255,255,255,.15); text-align:center; pointer-events:none; }
.aa-toast--bad{ border-color:rgba(232,56,58,.6); }
.aa-toast--hint{ border-color:rgba(255,237,84,.6); }

/* Overlay card (quiz / result / fail) */
.aa-overlay{ position:absolute; inset:0; z-index:5; display:flex; align-items:center; justify-content:center; padding:16px; background:rgba(0,0,0,.72); backdrop-filter:blur(3px); }
.aa-card{ width:min(100%,460px); background:var(--panel); border:1px solid rgba(255,237,84,.35); border-radius:20px; padding:24px 22px; text-align:center; box-shadow:0 30px 80px rgba(0,0,0,.6); max-height:100%; overflow:auto; }
.aa-card h3{ font-family:'Barlow Condensed',sans-serif; font-size:32px; font-weight:900; text-transform:uppercase; margin:0 0 6px; line-height:1.05; }
.aa-card-kicker{ font-size:11px; font-weight:800; letter-spacing:2px; text-transform:uppercase; color:var(--yellow); margin:0 0 4px; }
.aa-card-lead{ font-size:14px; color:rgba(255,255,255,.8); margin:0 0 14px; }
.aa-quiz{ display:grid; gap:8px; }
.aa-quiz-opt{ width:100%; border-radius:12px; padding:12px; font-size:14px; }
.aa-quiz-opt.is-right{ background:rgba(140,255,122,.15); border-color:#8CFF7A; color:#8CFF7A; opacity:1; }
.aa-quiz-opt.is-wrong{ background:rgba(232,56,58,.15); border-color:#E8383A; color:#ff8a8b; opacity:1; }
.aa-stars{ font-size:30px; color:var(--yellow); letter-spacing:6px; margin:0 0 10px; }
.aa-stats{ display:grid; grid-template-columns:repeat(4,1fr); gap:8px; margin:0 0 12px; }
.aa-stats span{ display:flex; flex-direction:column; font-size:10px; letter-spacing:1.5px; text-transform:uppercase; color:var(--muted); background:rgba(255,255,255,.03); border:1px solid #232323; border-radius:12px; padding:10px 4px; }
.aa-stats b{ font-family:'Barlow Condensed',sans-serif; font-size:22px; font-weight:800; color:var(--text); letter-spacing:0; text-transform:none; margin-bottom:2px; font-variant-numeric:tabular-nums; }
.aa-facts{ font-size:13px; color:rgba(255,255,255,.75); margin:0 0 6px; line-height:1.6; }
.aa-facts b{ color:var(--text); }
.aa-best{ font-size:13px; color:rgba(255,255,255,.75); margin:0 0 14px; }
.aa-actions{ display:flex; flex-wrap:wrap; justify-content:center; gap:8px; }
.aa-flash{ font-size:12px; color:#8CFF7A; margin:12px 0 0; white-space:pre-wrap; }
.aa-yt{ margin:16px 0 0; font-size:13px; color:var(--muted); }

/* ── Content sections ── */
.aa-section{ padding:44px 0; max-width:900px; margin:0 auto; }
.aa-section .section-title{ font-size:clamp(28px,5vw,40px); }
.aa-section p{ font-size:15px; line-height:1.8; color:var(--muted); margin:0 0 16px; }
.aa-section p strong{ color:var(--text); }
.aa-steps{ counter-reset:step; list-style:none; margin:0; padding:0; display:grid; gap:12px; }
@media(min-width:680px){ .aa-steps{ grid-template-columns:repeat(3,1fr); } }
.aa-steps li{ position:relative; background:var(--panel); border:1px solid #1c1c1c; border-radius:16px; padding:22px 20px 20px; margin:0; font-size:14px; color:var(--muted); line-height:1.7; }
.aa-steps li::before{ counter-increment:step; content:counter(step, decimal-leading-zero); display:block; font-family:'Barlow Condensed',sans-serif; font-size:30px; font-weight:900; color:var(--yellow); line-height:1; margin-bottom:10px; }
.aa-steps li strong{ display:block; color:var(--text); font-size:15px; margin-bottom:4px; }
.aa-callout{ border-left:3px solid var(--yellow); background:rgba(255,237,84,.05); border-radius:0 14px 14px 0; padding:16px 18px; margin:20px 0; }
.aa-callout p{ margin:0; font-size:14px; }
.aa-author{ display:grid; grid-template-columns:72px 1fr; gap:18px; align-items:center; background:var(--panel); border:1px solid #1c1c1c; border-radius:18px; padding:20px; }
.aa-author img{ width:72px; height:72px; border-radius:50%; object-fit:cover; border:2px solid rgba(255,237,84,.4); }
.aa-author p{ margin:0; font-size:14px; }
.aa-author .aa-author-name{ font-family:'Barlow Condensed',sans-serif; font-size:20px; font-weight:800; text-transform:uppercase; color:var(--text); margin-bottom:4px; }
@media(max-width:480px){ .aa-author{ grid-template-columns:1fr; text-align:center; } .aa-author img{ margin:0 auto; } }
.aa-faq .faq-item.open .faq-a{ max-height:600px; }
.aa-cta{ text-align:center; background:linear-gradient(180deg, rgba(255,237,84,.06), rgba(255,237,84,.01)); border:1px solid var(--border); border-radius:22px; padding:36px 22px; margin:0 auto 60px; max-width:880px; }
.aa-cta .section-title{ font-size:clamp(26px,5vw,36px); }
.aa-cta p{ max-width:56ch; margin:0 auto 20px; }
.aa-explore{ text-align:center; padding:0 0 30px; }
.aa-explore-label{ font-family:'Barlow Condensed',sans-serif; font-size:11px; font-weight:700; letter-spacing:2.5px; text-transform:uppercase; color:var(--muted); margin:0 0 14px; }
.aa-explore-links{ display:flex; flex-wrap:wrap; justify-content:center; gap:10px; }
.aa-explore-link{ display:inline-flex; align-items:center; gap:10px; padding:9px 20px; border:1px solid var(--border); border-radius:100px; color:rgba(255,255,255,.65); font-size:13px; text-decoration:none; transition:border-color .2s, color .2s, background .2s; }
.aa-explore-link svg{ width:18px; height:18px; flex:0 0 auto; color:var(--yellow); fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.aa-page a.aa-explore-link{ color:rgba(255,255,255,.65); }
.aa-page a.aa-explore-link:hover{ border-color:rgba(255,237,84,.4); color:var(--yellow); background:rgba(255,237,84,.05); text-decoration:none; }

@media(prefers-reduced-motion:reduce){ .aa-piece.is-shake .aa-track, .aa-piece.is-shake .aa-head, .aa-piece.is-hint .aa-track, .aa-level{ animation:none; transition:none; } }
