/* Friendly forms for the login and waitlist pages: the same soft, cute language as the panel (panel-theme.css).
   Scoped to body.friendly and loaded after home.css. Pill buttons with a gentle press, soft filled inputs with a pixel
   sprite inside (sprites.js), a sliding tab thumb, game picks with a green tick, and sprite steps. */

.friendly {
  --pop: cubic-bezier(.34, 1.56, .64, 1);
  --gold-edge: rgba(148, 101, 0, .22);
  --focus: 0 0 0 4px rgba(255, 203, 61, .35);
}

/* The card: rounder and floating a little higher */
.friendly .auth-card .card, .friendly .wl-card .card, .friendly .reserve-card {
  border-radius: 28px; border: 1px solid rgba(255, 255, 255, .45);
  box-shadow: 0 2px 4px rgba(27, 36, 64, .06), 0 30px 60px -24px rgba(27, 36, 64, .38);
}

/* Every button is a pill that lifts and presses */
.friendly .k-btn { border-radius: 999px; transition: transform .2s var(--pop), box-shadow .2s, background .15s; }
.friendly .k-btn:active { transform: translateY(1px) scale(.98); }
.friendly .k-btn-ink { box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .3), 0 10px 22px -12px rgba(27, 36, 64, .8); }
.friendly .k-btn-dark { box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .25); }

/* Gold pill button with a soft 3D edge that presses down; form buttons are taller */
.friendly .auth-form .k-btn-signal, .friendly .wl .btn-primary { height: 52px; font: 650 16px var(--display); letter-spacing: -.01em; }
.friendly .k-btn-signal, .friendly .wl .btn-primary {
  border: 0; border-radius: 999px; background: var(--signal); color: var(--ink);
  box-shadow: inset 0 -4px 0 var(--gold-edge), 0 12px 24px -12px rgba(230, 160, 0, .85);
  transition: transform .2s var(--pop), box-shadow .2s, background .15s;
}
.friendly .k-btn-signal:hover, .friendly .wl .btn-primary:hover { transform: translateY(-2px); background: #ffd65c; box-shadow: inset 0 -4px 0 var(--gold-edge), 0 16px 28px -12px rgba(230, 160, 0, .9); }
.friendly .k-btn-signal:active, .friendly .wl .btn-primary:active { transform: translateY(1px) scale(.98); box-shadow: inset 0 -1px 0 var(--gold-edge), 0 6px 12px -8px rgba(230, 160, 0, .8); }

/* Soft filled inputs; a sprite can sit inside on the left */
.friendly .auth-form input[type=email], .friendly .auth-form input[type=password],
.friendly .wl textarea, .friendly .wl input[type=email] {
  border-radius: 16px; border: 1.5px solid transparent; background: var(--card-2); color: var(--fg, var(--ink));
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.friendly .auth-form input[type=email], .friendly .auth-form input[type=password], .friendly .wl input[type=email] { height: 52px; }
.friendly .auth-form input:focus-visible, .friendly .wl textarea:focus, .friendly .wl input[type=email]:focus {
  outline: none; border-color: #f1b928; background: var(--card); box-shadow: var(--focus);
}
.friendly .field-ic { position: relative; display: block; }
.friendly .field-ic > [data-sprite] { position: absolute; left: 14px; top: 50%; translate: 0 -50%; width: 24px; height: 24px; pointer-events: none; transition: transform .3s var(--pop); }
.friendly .field-ic:focus-within > [data-sprite] { transform: translateY(-2px) rotate(-8deg) scale(1.1); }
.friendly .field-ic input { padding-left: 48px !important; }
.friendly .wl .wl-submit .field-ic { flex: 1; min-width: 0; }
.friendly .wl .wl-submit .field-ic input { width: 100%; }

/* Log in / Create account: a pill toggle with a thumb that slides */
.friendly .auth-tabs { position: relative; border-radius: 999px; }
.friendly .auth-tabs::before {
  content: ""; position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 6px);
  border-radius: 999px; background: var(--card); box-shadow: var(--sh-1); transition: transform .4s var(--pop);
}
.friendly .auth-tabs[data-mode="signup"]::before { transform: translateX(calc(100% + 4px)); }
.friendly .auth-tabs button { position: relative; z-index: 1; border-radius: 999px; background: transparent !important; box-shadow: none !important; transition: color .2s; }

/* Waitlist: game picks */
.friendly .wl-game-card { border-radius: 18px; border: 1.5px solid transparent; background: var(--card-2); transition: transform .25s var(--pop), background .2s, border-color .2s, box-shadow .2s; }
.friendly .wl-game-card:hover { transform: translateY(-3px); background: var(--card); box-shadow: var(--sh-1); }
.friendly .wl-game-card .logo-ic, .friendly .wl-game-card svg { transition: transform .3s var(--pop); }
.friendly .wl-game-card:hover .logo-ic, .friendly .wl-game-card:hover svg { transform: rotate(-8deg) scale(1.1); }
.friendly .wl-game input:checked + .wl-game-card { background: var(--warn-bg, #fbefc9); border-color: #f1b928; box-shadow: 0 8px 18px -10px rgba(230, 160, 0, .8); color: var(--fg, var(--ink)); }
.friendly .wl-game input:checked + .wl-game-card::after {
  content: ""; position: absolute; top: -7px; left: -7px; width: 22px; height: 22px; border-radius: 999px;
  background: #22a463 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 6.2l2 2 4-4.4' fill='none' stroke='%23f2fff7' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
  box-shadow: 0 0 0 2px var(--card); animation: tick-pop .35s var(--pop);
}
@keyframes tick-pop { from { transform: scale(0); } }

/* Waitlist: experience picker as soft pills */
.friendly .wl-seg { border-radius: 999px; border: 0; background: var(--card-2); }
.friendly .wl-seg span, .friendly .wl-seg-thumb { border-radius: 999px; }
.friendly .wl-seg-thumb { background: var(--card); box-shadow: var(--sh-1); transition: transform .4s var(--pop), width .4s var(--pop), opacity .2s; }

/* Waitlist: the steps under the card get sprites with a little number badge */
.friendly .steps-row { counter-reset: step; padding: 0; list-style: none; } /* an <ol>: drop the default 40px indent */
.friendly .step { counter-increment: step; grid-template-columns: 44px 1fr; border-radius: 22px; align-items: center; }
.friendly .step .step-spr { position: relative; grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; background: none; border-radius: 0; }
.friendly .step .step-spr svg { width: 36px; height: 36px; filter: drop-shadow(0 2px 0 rgba(27, 36, 64, .12)); transition: transform .3s var(--pop); }
.friendly .step:hover .step-spr svg { transform: translateY(-3px) rotate(-6deg); }
.friendly .step .step-spr::after {
  content: counter(step); position: absolute; right: -2px; bottom: -2px; width: 20px; height: 20px; border-radius: 999px;
  display: grid; place-items: center; background: var(--ink-fill, var(--ink)); color: var(--signal); font: 700 11px/1 var(--pixel);
  box-shadow: 0 0 0 2px var(--card);
}

/* The Wisp peeks over the top edge of the card */
.friendly .card-wisp { position: absolute; z-index: 2; width: 72px; height: 72px; top: -60px; pointer-events: none; }
/* Leave room above cards that have a Wisp on their edge, so it never sits on the text above */
.friendly .auth-card, .friendly .wl-card { margin-top: 58px; }
.friendly .hero-in > .prompt { margin-top: 34px; }

@media (max-width: 720px) { .friendly .card-wisp { width: 56px; height: 56px; top: -46px; } }
@media (prefers-reduced-motion: reduce) {
  .friendly .auth-tabs::before, .friendly .field-ic > [data-sprite], .friendly .wl-game-card, .friendly .step .step-spr svg { transition: none; }
}

/* ---------- Homepage ---------- */
/* Floating stickers and the ticker: pixel sprites instead of line icons and dots */
.friendly .sticker { border-radius: 999px; padding: 8px 16px 8px 10px; }
.friendly .sticker i[data-sprite] { width: 24px; height: 24px; background: none; border-radius: 0; }
.friendly .sticker i:not([data-sprite]) { border-radius: 999px; }
.friendly .marquee button i[data-sprite] { width: 24px; height: 24px; background: none; border-radius: 0; transition: transform .3s var(--pop); }
.friendly .marquee button:hover i[data-sprite] { transform: translateY(-2px) rotate(-8deg) scale(1.1); }
.friendly [data-sprite] svg { display: block; width: 100%; height: 100%; filter: drop-shadow(0 2px 0 rgba(27, 36, 64, .12)); }

/* Round, soft ticks and crosses, drawn as shapes so they sit exactly in the middle (text glyphs ✓ ✕ sit off-centre) */
.friendly {
  --tick-green: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 6.2l2 2 4-4.4' fill='none' stroke='%231d8a53' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --tick-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 6.2l2 2 4-4.4' fill='none' stroke='%23f2fff7' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --cross-coral: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3.8 3.8l4.4 4.4M8.2 3.8l-4.4 4.4' fill='none' stroke='%23d9473a' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E");
}
.friendly .rules li::before, .friendly .p-col li::before {
  content: ""; flex: none; width: 26px; height: 26px; border-radius: 999px; background: var(--good-bg, #d3efdf) var(--tick-green) center / 15px no-repeat;
}
.friendly .rules .no li::before { background: var(--bad-bg, #f9dcd6) var(--cross-coral) center / 14px no-repeat; }
.friendly .p-col li { align-items: center; }
.friendly .p-col li::before { width: 24px; height: 24px; }
.friendly .plan-steps li.ok .tick::after { content: ""; background: var(--tick-light) center / 13px no-repeat; }
.friendly .faq summary::after { border-radius: 999px; }
.friendly .faq details { border-radius: 22px; }
.friendly .plan, .friendly .p-col { border-radius: 28px; }

/* The waitlist at the bottom: the same light, friendly card as the waitlist page, over the night world */
.friendly .reserve-card { position: relative; background: var(--card); color: var(--fg, var(--ink)); padding: 28px; }
.friendly .reserve-card .card-wisp { left: 30px; }
@media (max-width: 720px) { .friendly .wl textarea { min-height: 112px; } } /* the example idea wraps to three lines on phones */
@media (max-width: 960px) { .friendly .reserve-card { margin-top: 56px; } } /* stacked under the text: room for the Wisp */
