/* The Love Arcade: the few pieces every booth shares. Each booth has its own look;
   these only set the back button, the result footer and talk mode. A booth tunes them with
   --ac-ink (text), --ac-btn (button colour), --ac-btn-ink (button text), --ac-line (borders). */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;font-size:17px}
html.talk{font-size:22px}
body{margin:0;min-height:100vh;min-height:100dvh;-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent;overscroll-behavior:none}
button{font:inherit;color:inherit;cursor:pointer;touch-action:manipulation}
h1,h2,h3,p{margin:0}
:focus-visible{outline:3px solid currentColor;outline-offset:3px}

.ac-home{position:fixed;top:14px;left:14px;z-index:50;display:inline-flex;align-items:center;gap:6px;padding:9px 14px;border-radius:99px;
  background:rgba(0,0,0,.35);color:#fff;font:600 .8125rem/1 system-ui,-apple-system,sans-serif;letter-spacing:.04em;text-decoration:none;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
.ac-home span{font-size:.7em}

.ac-foot{display:flex;align-items:center;gap:16px;padding:14px;border:1.5px solid var(--ac-line,currentColor);border-radius:14px;text-align:left;color:var(--ac-ink,inherit)}
.ac-qr{flex:none;width:96px;height:96px;padding:8px;background:#fff;border-radius:8px}
.ac-qr svg{display:block;width:100%;height:100%}
.ac-foot-txt{display:flex;flex-direction:column;gap:4px;min-width:0}
.ac-k{font-size:.75rem;letter-spacing:.14em;text-transform:uppercase;opacity:.75}
.ac-k em{font-style:normal}
.ac-t{font-size:.9375rem;line-height:1.35}
.ac-btns{display:flex;gap:12px;flex-wrap:wrap;justify-content:center}
.ac-btn{min-height:56px;padding:0 28px;border-radius:99px;border:2px solid var(--ac-btn,currentColor);font-weight:700;font-size:1.0625rem;letter-spacing:.02em}
.ac-next{background:var(--ac-btn,#111);color:var(--ac-btn-ink,#fff)}
.ac-again{background:transparent;color:var(--ac-ink,inherit)}

/* screens: a booth shows one .scr at a time */
[hidden]{display:none!important}
.pop{animation:acPop .45s cubic-bezier(.2,.9,.25,1.2) both}
@keyframes acPop{from{opacity:0;transform:translateY(14px) scale(.97)}}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
@media (max-width:520px){.ac-foot{flex-direction:column;text-align:center}.ac-foot-txt{align-items:center}}

/* progress bar, "Show my result" and skip (Arcade.track). A booth can tint the bar with --ac-tc. */
.ac-track{position:fixed;top:14px;right:14px;z-index:49;display:flex;align-items:center;gap:9px;padding:9px 14px;border-radius:99px;
  background:rgba(0,0,0,.35);color:#fff;font:600 .8125rem/1 system-ui,-apple-system,sans-serif;letter-spacing:.04em;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
.ac-track i{display:block;width:min(26vw,150px);height:6px;border-radius:9px;background:rgba(255,255,255,.28);overflow:hidden}
.ac-track b{display:block;height:100%;width:0;border-radius:inherit;background:var(--ac-tc,#FF6FAE);transition:width .45s ease}
.ac-track span{white-space:nowrap;min-width:3.6em}
.ac-track em{display:none;font-style:normal;color:var(--ac-tc,#FF6FAE)}
.ac-track.ready em{display:inline;animation:acHeart .6s cubic-bezier(.2,.9,.25,1.4) both}
@keyframes acHeart{0%{transform:scale(0)}60%{transform:scale(1.5)}100%{transform:scale(1)}}
.ac-skip{display:block;margin:12px auto 0;padding:8px 12px;background:none;border:0;color:inherit;opacity:.72;font-size:.875rem;text-decoration:underline;text-underline-offset:3px}
.ac-skip:hover{opacity:1}
.ac-more{display:flex;justify-content:center;margin-top:18px}
.ac-more .ac-btn{min-height:48px;font-size:1rem}
.ac-partial{margin:4px auto 0;font-size:.875rem;opacity:.85;text-align:center}
.ac-partial button{margin-left:6px;padding:6px 12px;border-radius:99px;border:1.5px solid currentColor;background:none;font-weight:700;font-size:.8125rem}
