/* The Buddies tab before signing in (GuestViews.kt): the buddies picture on a card, Create account
   and Sign in, and what buddies and classes give. On a desktop the card sits left, the rest right. */

.guest-tab { display: flex; flex-direction: column; gap: 14px; }
.guest-side { gap: 14px; }

.guest-hero { border-radius: 28px; background: #fff; overflow: hidden; box-shadow: 0 6px 18px rgba(109, 74, 255, 0.18); }
.guest-hero-text { display: flex; flex-direction: column; gap: 6px; padding: 16px 20px 20px; }
.guest-hero-text .t-body { font-size: 15px; line-height: 21px; }

/* The picture: GuestScene's numbers. Sizes follow its height (--h). */
.gscene { position: relative; height: var(--h); overflow: hidden; }
.gs-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.gs-stella, .gs-seat { position: absolute; animation: gsPop 0.6s cubic-bezier(.3, 1.7, .5, 1) var(--pop) backwards; }
.gs-stella { width: calc(var(--h) * 0.47); height: calc(var(--h) * 0.47); margin: calc(var(--h) * -0.235) 0 0 calc(var(--h) * -0.235); }
.gs-stella-bob { animation: gsBob 1.8s ease-in-out infinite alternate; }
.gs-seat { width: calc(var(--h) * 0.264); height: calc(var(--h) * 0.264); margin: calc(var(--h) * -0.132) 0 0 calc(var(--h) * -0.132); }
.gs-bob { position: relative; width: 100%; height: 100%; animation: gsBob var(--bob) ease-in-out var(--bob-at) infinite alternate; }
.gs-plate {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  border-radius: 50%;
  border: calc(var(--h) * 0.0145) solid var(--ring);
  background: #fff;
  box-shadow: 0 4px 12px rgba(30, 27, 75, 0.16);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gs-plate .pic { flex: none; margin-top: 14%; }

/* A hello: grows from its tail, holds, shrinks away (GuestScene.bubbleScale / bubbleAlpha), reaching inwards. */
.gs-bubble {
  position: absolute;
  bottom: calc(100% + 6px);
  display: flex;
  align-items: center;
  gap: 5px;
  height: max(30px, calc(var(--h) * 0.1));
  box-sizing: border-box;
  padding: 0 max(11px, calc(var(--h) * 0.036)) 0 max(5px, calc(var(--h) * 0.016));
  border-radius: 999px;
  background: #fff;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(30, 27, 75, 0.15);
  animation: gsSay linear forwards;
  opacity: 0;
}
.gs-bubble .t-headline { font-size: max(15px, calc(var(--h) * 0.05)); line-height: 1.3; }
.gs-bubble::after { content: ""; position: absolute; bottom: -5px; width: 11px; height: 11px; background: #fff; border-radius: 2px; transform: rotate(45deg); }
.gs-bubble.left { left: calc(50% - 24px); transform-origin: 24px 120%; }
.gs-bubble.left::after { left: 18px; }
.gs-bubble.right { right: calc(50% - 24px); transform-origin: calc(100% - 24px) 120%; }
.gs-bubble.right::after { right: 18px; }
.gscene.still .gs-bubble { animation: none; opacity: 1; }

@keyframes gsPop { from { opacity: 0; transform: scale(0); } }
@keyframes gsBob { from { transform: translateY(calc(var(--h, 250px) * -0.02)); } to { transform: translateY(calc(var(--h, 250px) * 0.02)); } }
@keyframes gsSay {
  0% { opacity: 0; transform: scale(0.4); }
  6% { opacity: 1; }
  8% { transform: scale(1.08); }
  14% { transform: scale(1); }
  72% { opacity: 1; transform: scale(1); }
  86% { opacity: 0; transform: scale(0.7); }
  100% { opacity: 0; transform: scale(0.7); }
}

/* What an account gives. Each sticker gives a quick wiggle every 6 s, one after another. */
.guest-perks { background: #fff; border: 1.5px solid var(--line); border-radius: 24px; padding: 4px 14px; }
.guest-perk { display: flex; align-items: center; gap: 12px; padding: 11px 0; }
.guest-perk + .guest-perk { border-top: 1.5px solid var(--line); }
.guest-perk .t-headline { font-size: 16px; line-height: 21px; }
.guest-perk-tile { flex: none; width: 48px; height: 48px; border-radius: 16px; display: flex; align-items: center; justify-content: center; }
.guest-perk-tile.tint0 { background: var(--primary-tint); }
.guest-perk-tile.tint1 { background: #FFF4D6; }
.guest-perk-tile.tint2 { background: #E0F2FF; }
.guest-perk-tile .pic { animation: gsWiggle 6s ease-in-out infinite backwards; }
@keyframes gsWiggle {
  0% { transform: none; }
  4% { transform: rotate(-12deg) scale(1.1); }
  8% { transform: rotate(10deg) scale(1.08); }
  12% { transform: rotate(-4deg) scale(1.03); }
  16%, 100% { transform: none; }
}

.guest-buttons { gap: 8px; }

@media (min-width: 900px) {
  /* The card on the left, as tall as the window allows; the perks and buttons beside it. */
  .guest-tab { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, 1fr); gap: 32px; align-items: center; max-width: 1440px; }
  .guest-side { gap: 18px; }
  .guest-hero-text { padding: 22px 28px 26px; }
  .guest-hero-text .t-title { font-size: 26px; line-height: 32px; }
  .guest-hero-text .t-body { font-size: 16px; line-height: 23px; }
  .guest-perk { padding: 16px 4px; gap: 16px; }
  .guest-perk .t-headline { font-size: 18px; line-height: 24px; }
  .guest-perk .t-caption { font-size: 14px; line-height: 19px; }
  .guest-perk-tile { width: 60px; height: 60px; border-radius: 20px; }
  .guest-perk-tile .pic { width: 44px !important; height: 44px !important; }
}
