/* Wild Rift Boost — build-c12.css (Category 12: Performance, Accessibility & Mobile)
   NEW file, loaded AFTER style.css / bg-motion.css / reduced-motion.css.
   It only ADDS or OVERRIDES; it never changes a price, the pay-first flow,
   or any copy. All rules are guarded so they do nothing if the matching
   element is absent. See hidden_files/build/cat-12-manifest.md for wiring. */

/* --- 2. Transform-based background drift (overrides style.css/bg-motion.css) ---
   The ember layers animate background-position in the base sheets, which is
   not GPU-accelerated. Redefining the SAME keyframe names here wins (later
   sheet), and the layers get extra inset on the sides the transform moves
   towards, so no blank edge ever shows. The hero sheen is already a
   transform sweep in animations.css (P-2); nothing to redo there. */
@keyframes bg-ember-drift { from { transform: translate(0, 0); } to { transform: translate(-120px, -600px); } }
@keyframes bg-ember-drift-slow { from { transform: translate(0, 0); } to { transform: translate(-90px, -560px); } }
body::after { inset: 0 -120px -600px 0; }
html::after { inset: 0 -90px -560px 0; }

/* --- 13. Focus visibility (audit) ---
   Gold-on-gold was the risk: a gold focus ring on a gold button is
   invisible. Every focusable element now gets a light ring + dark offset
   shadow, which reads on the dark theme AND on gold buttons.
   NOTE FOR A FUTURE LIGHT THEME (idea 13, recorded): a light theme must
   use a DARK ring (e.g. #171207) instead — do not reuse this light ring
   on a light background. No light theme exists yet (needs Bob, idea 20). */
:focus-visible { outline: 3px solid #eef2f8; outline-offset: 2px; border-radius: 4px; }
.btn:focus-visible, .btn-buy:focus-visible { outline-color: #ffffff; box-shadow: 0 0 0 5px #171207; }
a:focus-visible { outline-offset: 3px; }

/* --- 14/15. 200% zoom & 320px width: no overlap, no sideways scroll --- */
html, body { overflow-x: clip; }
@supports not (overflow: clip) { html, body { overflow-x: hidden; } }
img, svg, video { max-width: 100%; }
.grid > *, .svc-foot > *, .calc-total > *, .order-head > * { min-width: 0; }
.calc-total { flex-wrap: wrap; }
.calc-total .price { overflow-wrap: anywhere; }
table { display: block; overflow-x: auto; max-width: 100%; }
#priceTable { overflow-x: auto; }
.paygate .btn.big, #payBox .btn-buy { width: 100%; box-sizing: border-box; }
.order-head { flex-wrap: wrap; }
input, select, textarea { max-width: 100%; }
/* Text-size control (idea 14 alternative): html[data-c12-text="large"|"xlarge"] */
html[data-c12-text="large"] { font-size: 112.5%; }
html[data-c12-text="xlarge"] { font-size: 125%; }
html[data-c12-text="large"] body, html[data-c12-text="xlarge"] body { font-size: 15px; }

/* --- 21. Reduce-motion toggle: .wrb-reduce-motion on <html> kills motion --- */
html.wrb-reduce-motion *, html.wrb-reduce-motion *::before, html.wrb-reduce-motion *::after {
  animation: none !important; transition: none !important; scroll-behavior: auto !important;
}

/* --- Shared bits for build-c12.js injected UI --- */
.c12-btn { display: inline-block; background: transparent; color: var(--text); border: 1px solid var(--line);
  border-radius: 8px; padding: 9px 12px; font-size: 14px; min-height: 40px; cursor: pointer; margin: 4px 4px 4px 0;
  text-decoration: none; font-family: inherit; }
.c12-btn:hover { border-color: var(--teal); color: var(--teal); }
.c12-btn.primary { background: var(--gold); color: var(--gold-dark); border-color: var(--gold); font-weight: 700; }
.c12-btn.primary:hover { background: var(--gold-soft); color: var(--gold-dark); }
.c12-btn:disabled { opacity: .5; cursor: default; }
.c12-mini { font-size: 13px; padding: 6px 10px; min-height: 34px; }
.c12-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 10px 0; }
.c12-muted { color: var(--muted); font-size: 13px; }
.c12-note { background: var(--card2); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin: 10px 0; font-size: 14px; }
.c12-note.err { border-color: var(--red); }
.c12-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* --- 9. Skeleton placeholder for the account order list --- */
.c12-skeleton { min-height: 220px; }
.c12-skeleton .c12-sk { height: 64px; border-radius: 10px; background: var(--card2);
  border: 1px solid var(--line); margin: 12px 0; position: relative; overflow: hidden; }
.c12-skeleton .c12-sk::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(238,242,248,.06) 50%, transparent 70%);
  background-size: 200% 100%; animation: c12-shimmer 1.6s linear infinite; }
@keyframes c12-shimmer { from { background-position: -200% 0; } to { background-position: 200% 0; } }
html.wrb-reduce-motion .c12-skeleton .c12-sk::after { animation: none; }

/* --- 11/22. Visible labels next to icon-only buttons --- */
.c12-sound-label { font-size: 13px; color: var(--muted); margin-left: 6px; white-space: nowrap; }
#soundToggle { display: inline-flex; align-items: center; gap: 2px; }

/* --- 23. Mobile bottom navigation --- */
.c12-bottomnav { display: none; }
@media (max-width: 700px) {
  .c12-bottomnav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: rgba(5,7,11,.95); border-top: 1px solid var(--line);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
  .c12-bottomnav a { flex: 1; text-align: center; color: var(--muted); text-decoration: none;
    font-size: 13px; font-weight: 700; padding: 10px 2px calc(10px + env(safe-area-inset-bottom)); min-height: 52px;
    display: flex; align-items: center; justify-content: center; }
  .c12-bottomnav a.on, .c12-bottomnav a:hover { color: var(--gold); }
  body.c12-has-bottomnav { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  body.c12-has-bottomnav .toast-wrap { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  /* --- 24. Bigger header Log in / Create account buttons on mobile --- */
  #authArea .btn.small { min-height: 44px; padding: 11px 14px; font-size: 15px; }
  /* --- 25/34. Sticky quote bar + back-to-top --- */
  .c12-quote-bar { display: flex; }
  /* --- 40/41/42/43. Sticky action bars --- */
  .c12-stickybar { display: flex; }
}
.c12-quote-bar { display: none; position: fixed; left: 12px; right: 12px; bottom: 64px; z-index: 59;
  gap: 8px; align-items: center; justify-content: center; }
.c12-quote-bar .btn { flex: 1; text-align: center; box-shadow: 0 8px 24px rgba(0,0,0,.45); }
.c12-stickybar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 61;
  background: rgba(5,7,11,.96); border-top: 1px solid var(--line); padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); gap: 8px; }
.c12-stickybar .btn, .c12-stickybar .btn-buy { flex: 1; text-align: center; }
body.c12-has-bottomnav .c12-stickybar { bottom: 52px; }
.c12-totop { display: none; position: fixed; right: 14px; bottom: 76px; z-index: 58;
  background: var(--card2); color: var(--text); border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 14px; font-size: 14px; font-weight: 700; cursor: pointer; box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.c12-totop.show { display: block; }
@media (max-width: 700px) { body.c12-has-bottomnav .c12-totop { bottom: 128px; } }

/* --- 26. Rank sliders --- */
.c12-slider-wrap { margin: 12px 0; }
.c12-slider-wrap label { margin: 4px 0; }
.c12-slider-wrap input[type="range"] { width: 100%; min-height: 44px; accent-color: var(--gold); padding: 0; background: transparent; border: 0; }
.c12-slider-val { font-weight: 700; color: var(--gold); }

/* --- 58–70. Footer link bar (also injected by JS if absent) --- */
.c12-footnav { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.c12-footnav a, .c12-footnav button.c12-footlink { color: var(--muted); font-size: 13px; text-decoration: none;
  background: none; border: 0; padding: 6px 0; cursor: pointer; font-family: inherit; }
.c12-footnav a:hover, .c12-footnav button.c12-footlink:hover { color: var(--gold); }

/* --- 12. Show-password toggle --- */
.c12-showpw { margin-top: 6px; }

/* --- 49–51. Receipt: print only the receipt --- */
@media print {
  body * { visibility: hidden; }
  #c12-receipt-print, #c12-receipt-print * { visibility: visible; }
  #c12-receipt-print { position: absolute; left: 0; top: 0; width: 100%; color: #000; background: #fff; padding: 24px; }
  .c12-bottomnav, .c12-stickybar, .c12-quote-bar, .c12-totop { display: none !important; }
}

/* --- 8. Retry banner --- */
.c12-retry { margin-top: 8px; }

/* --- Climb check popup (index.html only) ---
   A small centred modal in the bc02 overlay pattern, restyled with
   the site's neon pair: dark card, the same animated cyan→magenta
   ring as #calculator / #orderCard, gold only for the price. All
   classes are cc- prefixed and only used by the climb-check markup
   on the home page, so this block is inert on every other page. */
.cc-banner h2 { margin-top: 2px; }
.cc-overlay { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center;
  background: rgba(3, 6, 12, .78); padding: 16px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.cc-card { position: relative; width: 100%; max-width: 420px; border-radius: var(--radius);
  background: rgba(10, 13, 19, .98); border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 18px 44px rgba(0, 0, 0, .5);
  animation: rift-rise .35s ease both; }
.cc-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit;
  padding: 1.5px; pointer-events: none; opacity: .6;
  background: linear-gradient(120deg, rgba(34, 211, 238, .55), rgba(240, 86, 200, .5), rgba(34, 211, 238, .55));
  background-size: 220% 220%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: neon-border-slide 7s linear infinite; }
.cc-scroll { max-height: 80vh; overflow-y: auto; padding: 20px; }
.cc-scroll h2 { margin: 0 24px 4px 0; }
.cc-close { position: absolute; top: 10px; right: 10px; z-index: 2; width: 38px; height: 38px;
  border-radius: 8px; border: 1px solid var(--line); background: var(--card2); color: var(--text);
  font-size: 22px; line-height: 1; cursor: pointer; }
.cc-close:hover { border-color: var(--neon); color: var(--neon); }
.cc-progress { margin: 12px 0 4px; }
.cc-progress span { font-size: 13px; color: var(--muted); }
.cc-bar { height: 6px; background: var(--card2); border-radius: 999px; margin-top: 6px; overflow: hidden; }
.cc-bar-fill { height: 100%; width: 20%; border-radius: 999px;
  background: linear-gradient(90deg, var(--neon), var(--neon2));
  box-shadow: 0 0 10px rgba(34, 211, 238, .45); transition: width .3s ease; }
.cc-step label { font-size: 15px; color: var(--text); font-weight: 700; margin: 14px 0 8px; }
.cc-emblem-wrap { text-align: center; margin: 6px 0 2px; }
.cc-emblem-wrap .emblem { margin: 0 auto; width: 88px; height: 88px;
  filter: drop-shadow(0 0 12px rgba(34, 211, 238, .3)); }
.cc-emblems { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 8px 0 4px; }
.cc-emblems .emblem { width: 64px; height: 64px; filter: drop-shadow(0 0 10px rgba(240, 86, 200, .22)); }
.cc-emblems span { font-size: 22px; color: var(--gold); font-weight: 800; }
.cc-opt { display: flex; align-items: center; gap: 10px; padding: 12px; margin: 0 0 8px;
  border: 1px solid var(--line); border-radius: 10px; cursor: pointer; background: rgba(13, 16, 23, .6);
  font-size: 15px; color: var(--text); font-weight: 400; }
.cc-opt input { accent-color: var(--neon); width: 18px; height: 18px; flex: none; min-height: auto; }
.cc-opt.on { border-color: rgba(34, 211, 238, .6); background: rgba(34, 211, 238, .07); }
.cc-opt small { display: block; color: var(--muted); font-size: 13px; }
.cc-err { min-height: 18px; margin: 4px 0 0; font-size: 13px; }
.cc-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; }
.cc-nav .btn { flex: 1; text-align: center; }
.cc-verdict { font-size: 22px; margin: 10px 0 4px; }
.cc-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin: 14px 0; }
.cc-stat { background: var(--card2); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 8px; text-align: center; }
.cc-stat b { display: block; font-size: 20px; color: var(--gold); }
.cc-stat span { font-size: 12px; color: var(--muted); }
.cc-tip { background: var(--card2); border: 1px solid rgba(34, 211, 238, .35); border-radius: 10px;
  padding: 14px 16px; margin: 14px 0; }
.cc-tip h3 { margin: 0 0 6px; font-size: 15px; color: var(--neon); }
.cc-tip p { margin: 0; }
.cc-price { font-size: 22px; font-weight: 800; color: var(--gold); }
.cc-actions .btn { width: 100%; text-align: center; margin: 6px 0; }
body.cc-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .cc-card, .cc-card::before, .cc-bar-fill { animation: none !important; transition: none !important; }
}

/* --- Exit-intent free-quote prompt (order.html only) ---
   Same visual language as the climb-check popup above: dark card,
   animated cyan→magenta neon ring, gold kept out of the way (no
   price in this prompt at all). All classes are ei- prefixed and
   only used by the exit-quote markup on the order page, so this
   block is inert on every other page. */
.ei-overlay { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center;
  background: rgba(3, 6, 12, .78); padding: 16px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ei-card { position: relative; width: 100%; max-width: 420px; border-radius: var(--radius);
  background: rgba(10, 13, 19, .98); border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 18px 44px rgba(0, 0, 0, .5);
  animation: rift-rise .35s ease both; }
.ei-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit;
  padding: 1.5px; pointer-events: none; opacity: .6;
  background: linear-gradient(120deg, rgba(34, 211, 238, .55), rgba(240, 86, 200, .5), rgba(34, 211, 238, .55));
  background-size: 220% 220%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: neon-border-slide 7s linear infinite; }
.ei-scroll { max-height: 80vh; overflow-y: auto; padding: 20px; }
.ei-scroll h2 { margin: 0 24px 4px 0; }
.ei-close { position: absolute; top: 10px; right: 10px; z-index: 2; width: 38px; height: 38px;
  border-radius: 8px; border: 1px solid var(--line); background: var(--card2); color: var(--text);
  font-size: 22px; line-height: 1; cursor: pointer; }
.ei-close:hover { border-color: var(--neon); color: var(--neon); }
.ei-facts { background: var(--card2); border: 1px solid rgba(34, 211, 238, .35); border-radius: 10px;
  padding: 14px 16px; margin: 14px 0; }
.ei-facts p { margin: 0; }
.ei-actions .btn { width: 100%; text-align: center; margin: 6px 0; }
body.ei-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .ei-card, .ei-card::before { animation: none !important; transition: none !important; }
}

/* --- "Why players pick us" cards (index.html only) ---
   Four compact differentiator cards under the climb-check banner.
   Same near-solid surface as .svc-card / .stat, cyan hover border
   from the neon pair, gold only on our own price figure. All
   classes are wp- prefixed and only used on the home page, so
   this block is inert on every other page. */
.wp-section .page-head { padding-top: 8px; }
.wp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 8px 0 24px; }
.wp-card { background: rgba(10, 13, 19, .97); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 18px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 12px 32px rgba(0, 0, 0, .32);
  transition: transform .2s ease, border-color .2s ease; }
.wp-card:hover { transform: translateY(-3px); border-color: rgba(34, 211, 238, .4); }
.wp-card h3 { font-size: 17px; margin: 0 0 8px; }
.wp-card h3::after { content: ""; display: block; width: 32px; height: 2px; margin-top: 6px; border-radius: 2px;
  background: linear-gradient(90deg, var(--neon), rgba(240, 86, 200, .0)); opacity: .8; }
.wp-card p { color: var(--muted); margin: 0 0 8px; }
.wp-card p:last-child { margin-bottom: 0; }
.wp-prices { list-style: none; margin: 0 0 8px; padding: 0; }
.wp-prices li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 5px 0; border-top: 1px solid var(--line); }
.wp-prices li span { color: var(--muted); font-size: 13px; }
.wp-prices li b { font-size: 15px; }
.wp-fine { font-size: 12px; }
@media (max-width: 900px) { .wp-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .wp-grid { grid-template-columns: 1fr; } }

/* --- Trust strip above the Pay button (order.html only) ---
   One quiet line of facts directly above Pay: small, muted, with
   a hairline above it. It adds no height tricks and never covers
   or delays the button (.co-pay keeps its own margin). */
.ts-strip { text-align: center; font-size: 13px; color: var(--muted);
  margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); }

/* --- Sample order tracker (order.html only) ---
   A static preview styled like the real dashboard order card
   (.order in style.css): stage stepper, progress bar, per-game
   log rows and a disabled chat box. The SAMPLE badge uses the
   magenta neon so the demo can never be mistaken for a real
   order. All classes are sp- prefixed; inert on other pages. */
.sp-section h2 { margin-top: 4px; }
.sp-order { margin-bottom: 4px; }
.sp-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.sp-badge { flex: none; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--neon2); border: 1px solid var(--neon2); border-radius: 999px; padding: 3px 10px;
  box-shadow: 0 0 10px rgba(240, 86, 200, .25); }
.sp-steps { list-style: none; margin: 16px 0 6px; padding: 0; display: grid;
  grid-template-columns: repeat(4, 1fr); gap: 10px; counter-reset: spstep; }
.sp-steps li { position: relative; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 10px 12px 10px 34px; background: var(--card2); }
.sp-steps li::before { counter-increment: spstep; content: counter(spstep); position: absolute;
  left: 10px; top: 10px; width: 17px; height: 17px; border-radius: 50%; font-size: 11px; font-weight: 700;
  display: grid; place-items: center; color: var(--muted); border: 1px solid var(--line); }
.sp-steps li b { display: block; font-size: 14px; }
.sp-steps li span { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.sp-steps li.sp-done { border-color: rgba(34, 211, 238, .45); }
.sp-steps li.sp-done::before { content: "\2713"; color: #06121a; background: var(--neon); border-color: var(--neon); }
.sp-steps li.sp-now { border-color: var(--neon); box-shadow: 0 0 12px rgba(34, 211, 238, .35); }
.sp-steps li.sp-now::before { color: #06121a; background: var(--neon); border-color: var(--neon);
  box-shadow: 0 0 8px rgba(34, 211, 238, .7); }
.sp-steps li.sp-now b { color: var(--neon); }
.sp-progress { height: 8px; border-radius: 999px; background: var(--card2);
  border: 1px solid var(--line); overflow: hidden; margin: 12px 0 6px; }
.sp-progress-fill { height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--neon), var(--neon2));
  box-shadow: 0 0 10px rgba(34, 211, 238, .45); }
.sp-order h4 { margin: 16px 0 8px; font-size: 15px; }
.sp-log div { padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.sp-log div:last-child { border-bottom: 0; }
.sp-w, .sp-l { display: inline-block; width: 20px; font-weight: 700; }
.sp-w { color: var(--neon); }
.sp-l { color: var(--neon2); }
.sp-chat { display: flex; gap: 6px; margin-top: 14px; }
.sp-chat input { flex: 1 1 auto; width: auto; min-width: 0; }
.sp-chat input:disabled, .sp-chat button:disabled { opacity: .55; cursor: not-allowed; }
.sp-note { margin: 12px 0 0; font-size: 13px; }
@media (max-width: 700px) { .sp-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .sp-steps { grid-template-columns: 1fr; } }

/* --- Full-climb price + typical time table (index.html only) ---
   Rides on the global table styles and the .price class (gold,
   bold) from style.css; this block only adds the section rhythm.
   Classes are pt- prefixed; inert on other pages. */
.pt-section h2 { margin-top: 4px; }
.pt-table td, .pt-table th { padding: 9px 6px; }

/* Climb Check result — Climb List email capture (2026-12-01) */
.cc-email { margin: 14px 0 4px; padding: 12px 14px; border: 1px solid rgba(34,211,238,.35); border-radius: 12px; background: rgba(34,211,238,.06); }
.cc-email p { margin: 0 0 10px; }
.cc-email-row { display: flex; gap: 8px; }
.cc-email-row input { flex: 1; min-width: 0; background: #0d1117; border: 1px solid #2a3342; border-radius: 10px; color: #fff; padding: 10px 12px; font-size: 14px; }
.cc-email-row input:focus { outline: 2px solid #22d3ee; outline-offset: 1px; }
.cc-email-msg { margin: 10px 0 0 !important; }
