/* AGI Point · "Can AI build it?" arcade shell (start menu, offer, end card). Brand: dark glass, lime #c6ed00. */
@font-face { font-family: "AIB Unbounded"; src: url("/assets/fonts/Unbounded.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "AIB Inter"; src: url("/assets/fonts/Inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
.aib-demo { --lime: #c6ed00; --ink: #0b1000; --txt: #f3f5ef; --mute: rgba(243,245,239,.72);
  font: 400 16px/1.5 "AIB Inter", Inter, system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--txt); box-sizing: border-box; letter-spacing: 0; }
.aib-demo * { box-sizing: border-box; }
.aib-buy { display: flex; justify-content: center; align-items: center; gap: 6px; background: var(--lime); color: var(--ink) !important; text-decoration: none;
  font: 800 18px/1 "AIB Inter", sans-serif; padding: 18px 20px; border-radius: 14px; transition: transform .15s ease, box-shadow .15s ease; box-shadow: 0 8px 30px rgba(198,237,0,.28); }
.aib-buy:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(198,237,0,.45); }
.aib-buy span { font-size: 20px; }
.aib-demo { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 2147483000; display: flex; gap: 14px; align-items: center;
  background: rgba(14,20,17,.86); border: 1px solid rgba(255,255,255,.14); border-radius: 999px; padding: 8px 8px 8px 18px; font-size: 13px; font-weight: 700; letter-spacing: .08em; }
.aib-demo a { color: #f3f5ef; text-decoration: none; letter-spacing: 0; }
.aib-demo .aib-buy { padding: 10px 16px; font-size: 14px; border-radius: 999px; box-shadow: none; }
@media (max-width: 900px) { .aib-demo { left: 12px; right: 12px; transform: none; flex-wrap: wrap; justify-content: center; border-radius: 18px; padding: 10px; } }
.aib-pad { position: fixed; left: 0; right: 0; bottom: 0; z-index: 2147482995; display: flex; justify-content: space-between; align-items: flex-end;
  padding: 0 max(14px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left)); pointer-events: none; touch-action: none; -webkit-user-select: none; user-select: none; }
.aib-pad-l, .aib-pad-r { display: flex; gap: 12px; align-items: flex-end; pointer-events: none; }
.aib-pad-r { flex-direction: row; }
.aib-k-btn { pointer-events: auto; width: 74px; height: 74px; border-radius: 50%; border: 2px solid rgba(255,255,255,.45); background: rgba(10,14,12,.42);
  color: #fff; font: 800 26px/1 system-ui, sans-serif; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); touch-action: none; -webkit-tap-highlight-color: transparent; }
.aib-k-btn small { font: 800 9px/1 system-ui, sans-serif; letter-spacing: .1em; opacity: .85; }
.aib-k-btn.on { background: rgba(198,237,0,.85); color: #0b1000; border-color: #c6ed00; }
.aib-pad-r .aib-k-btn:last-child { width: 64px; height: 64px; }
.aib-restart { position: fixed; top: max(12px, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); width: 44px; height: 44px; font-size: 20px; }
@media (orientation: portrait) { .aib-k-btn { width: 64px; height: 64px; font-size: 22px; } .aib-pad-l, .aib-pad-r { gap: 8px; } .aib-pad-r .aib-k-btn:last-child { width: 56px; height: 56px; } }
.aib-pad .aib-k-btn { width: 74px !important; height: 74px !important; min-width: 0 !important; max-width: none !important; padding: 0 !important; margin: 0 !important; border-radius: 50% !important; flex: 0 0 auto !important; box-sizing: border-box !important; }
.aib-pad .aib-pad-r .aib-k-btn:last-child { width: 64px !important; height: 64px !important; }
.aib-pad .aib-restart { width: 44px !important; height: 44px !important; }
@media (orientation: portrait) { .aib-pad .aib-k-btn { width: 64px !important; height: 64px !important; } .aib-pad .aib-pad-r .aib-k-btn:last-child { width: 56px !important; height: 56px !important; } }
.aib-pad .aib-restart { top: auto !important; bottom: max(18px, env(safe-area-inset-bottom)) !important; }
/* v3 phone layout (Tim 2026-11-20: buttons overlapped each other and the HUD) */
.aib-pad .aib-k-btn { width: 58px !important; height: 58px !important; font-size: 21px !important; background: rgba(10,14,12,.32) !important; border-color: rgba(255,255,255,.38) !important; }
.aib-pad .aib-pad-r .aib-k-btn:last-child { width: 54px !important; height: 54px !important; }
.aib-pad .aib-restart { position: static !important; transform: none !important; width: 40px !important; height: 40px !important; font-size: 17px !important; align-self: flex-end; margin-right: 4px !important; }
.aib-pad-l, .aib-pad-r { gap: 10px !important; }
/* v4: control columns left and right of the scaled game */
.aib-pad { inset: 0 !important; bottom: auto !important; height: 100% !important; align-items: center !important; padding: 0 max(8px, env(safe-area-inset-right)) 0 max(8px, env(safe-area-inset-left)) !important; }
.aib-pad-l, .aib-pad-r { flex-direction: column !important; align-items: center !important; justify-content: center !important; width: 64px; gap: 12px !important; }
@media (orientation: portrait) { .aib-pad { display: none !important; } }
.aib-pad .aib-k-btn.on { background: rgba(198,237,0,.9) !important; color: #0b1000 !important; border-color: #c6ed00 !important; }
/* v5 (Tim 2026-11-20): portrait phone version. Game on top, big buttons on a black band at the bottom. */
html.aib-portrait .aib-pad { display: flex !important; inset: auto 0 0 0 !important; top: auto !important; height: var(--aib-band) !important; background: #07090a !important;
  border-top: 2px solid rgba(198,237,0,.55); align-items: center !important; justify-content: space-between !important;
  padding: 0 max(14px, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(14px, env(safe-area-inset-left)) !important; }
.aib-pad-l { flex-direction: row !important; width: auto !important; gap: 14px !important; }
.aib-pad-r { flex-direction: column !important; width: auto !important; gap: 10px !important; align-items: flex-end !important; }
.aib-row { display: flex; gap: 12px; align-items: center; justify-content: flex-end; }
.aib-pad .aib-k-btn { width: 76px !important; height: 76px !important; font-size: 28px !important; background: #1a2019 !important; border: 2px solid rgba(255,255,255,.55) !important; color: #fff !important; }
.aib-pad .aib-k-btn small { font-size: 10px !important; opacity: 1 !important; }
.aib-pad .aib-gas { width: 84px !important; height: 84px !important; background: #c6ed00 !important; color: #0b1000 !important; border-color: #c6ed00 !important; }
.aib-pad .aib-boost, .aib-pad .aib-pad-r .aib-k-btn:last-child { width: 62px !important; height: 62px !important; }
.aib-pad .aib-pad-r .aib-gas:last-child { width: 84px !important; height: 84px !important; }
.aib-pad .aib-restart { width: 52px !important; height: 52px !important; font-size: 18px !important; position: static !important; transform: none !important; margin: 0 !important; align-self: center !important; }
.aib-pad .aib-restart small { font-size: 7px !important; }
.aib-pad .aib-k-btn.on { background: #fff !important; color: #0b1000 !important; border-color: #fff !important; }
html:not(.aib-portrait) .aib-pad { background: none !important; }
html:not(.aib-portrait) .aib-pad .aib-k-btn { width: 60px !important; height: 60px !important; font-size: 22px !important; }
html:not(.aib-portrait) .aib-pad .aib-gas { width: 66px !important; height: 66px !important; }
html:not(.aib-portrait) .aib-pad-l { flex-direction: column !important; }
html:not(.aib-portrait) .aib-pad-r { align-items: center !important; }
html:not(.aib-portrait) .aib-row { flex-direction: column-reverse; gap: 10px; }
/* v6 (Tim 2026-11-21: speed and the bottom HUD were hidden on the phone): the button band sits at the bottom of the
   visible screen (browser toolbars excluded), right under the game */
html.aib-portrait .aib-pad { top: var(--aib-pad-top, auto) !important; bottom: auto !important; }
html:not(.aib-portrait) .aib-pad { top: var(--aib-pad-top, 0) !important; height: var(--aib-pad-h, 100%) !important; bottom: auto !important; }
