/* PLΔY build lane P3: the few states games 9 to 12, account and progress add on top of lane3.css and the costume.
   Copyright (c) 2026 Slate HQ Ltd. All rights reserved and asserted. */

/* The grown-ups door on game pages: a ring fills round the button while it is held. */
.p3-hold { position: relative; --g-hold: 0; }
.p3-hold::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; pointer-events: none; opacity: 0;
  background: conic-gradient(var(--aos-ink) 0 calc(var(--g-hold) * 1%), transparent calc(var(--g-hold) * 1%) 100%);
  -webkit-mask: radial-gradient(circle, transparent calc(50% - 5px), #000 calc(50% - 4px)); mask: radial-gradient(circle, transparent calc(50% - 5px), #000 calc(50% - 4px)); }
.p3-hold.is-holding::after { opacity: 1; }

/* The guide's bubble is also the replay control. */
.l3-speak .g-cue { cursor: pointer; min-height: var(--g-target); box-sizing: border-box; }
.l3-speak .g-cue:focus-visible { box-shadow: var(--g-focus); outline: none; }
.g-cue.is-speaking .g-cue__sound { animation: p3-pulse 1s ease-in-out infinite; }
@keyframes p3-pulse { 50% { transform: scale(1.08); } }

/* The grown-up gate on account and progress. */
.p3-gate { max-width: 560px; margin: 24px auto; justify-items: start; }
.p3-gate .g-hold { touch-action: none; }
body.p3-locked main > :not(.l3-top):not(.p3-gate) { display: none !important; }

/* A friend going home happy; a sticker pinned. */
.p3-away { transition: transform .9s var(--aos-ease-smooth), opacity .9s; transform: translateX(120px) scale(.8); opacity: 0; }
.p3-hidden { visibility: hidden; }
.p3-note { font: 500 var(--g-text-small)/1.45 var(--g-font); color: var(--aos-ink-2); margin: 0; }

@media (prefers-reduced-motion: reduce) { .g-cue.is-speaking .g-cue__sound { animation: none; } .p3-away { transition: none; } }
