/* Treatly Glass — the first days, before any friends (js/glass-welcome.js). */

.gwel-host {
  margin: 0 0 18px;
}
.gwel-host[hidden] {
  display: none;
}

/* while the welcome is up, it stands in for the numbers and the sparkle */
#s-today.has-welcome .g-dash,
#s-today.has-welcome #list-today > .g-empty,
#s-friends.is-lonely .g-task-search,
#s-friends.is-lonely #friend-filter,
#s-friends.is-lonely #list-friends > .g-empty {
  display: none;
}

/* ---------- buttons ---------- */

.gwel-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.gwel-go,
.gwel-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  transition: transform 0.25s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.gwel-go {
  flex: 1 1 auto;
  background: var(--spectral);
  color: #17171a;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 10px 28px rgba(185, 167, 245, 0.3);
}
.gwel-ghost {
  flex: 1 1 auto;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px var(--rim);
}
.gwel-go:active,
.gwel-ghost:active {
  transform: scale(0.94);
}
.gwel-go .gi,
.gwel-ghost .gi {
  flex: none;
}
.gwel-go--sm {
  min-height: 40px;
  padding: 0 16px;
  font-size: 13px;
  width: 100%;
}

/* ---------- Today: the welcome ---------- */

.gwel-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-card);
  padding: 22px 20px 20px;
  isolation: isolate;
}
/* a soft spectral glow behind the glass */
.gwel-hero::after {
  content: '';
  position: absolute;
  inset: -40% -20% auto auto;
  width: 90%;
  aspect-ratio: 1;
  background:
    radial-gradient(closest-side, rgba(242, 167, 195, 0.32), transparent 70%),
    radial-gradient(closest-side at 30% 70%, rgba(142, 201, 242, 0.26), transparent 70%);
  filter: blur(8px);
  z-index: -1;
  animation: gwel-glow 9s ease-in-out infinite alternate;
}
@keyframes gwel-glow {
  to {
    transform: translate(-18%, 14%) rotate(20deg);
  }
}
.gwel-kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--spectral);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.gwel-hero h2,
.gwel-copy h2 {
  margin: 6px 0 8px;
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.03em;
  max-width: 15em;
}
.gwel-hero p,
.gwel-copy p {
  margin: 0;
  max-width: 30em;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink-2);
}

/* treats drifting over the corner of the welcome */
.gwel-spark {
  position: absolute;
  font-style: normal;
  font-size: 26px;
  pointer-events: none;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
  animation: gwel-float 5s ease-in-out infinite;
}
.gwel-spark.s1 {
  top: 16px;
  right: 22px;
}
.gwel-spark.s2 {
  top: 58px;
  right: 64px;
  font-size: 20px;
  animation-delay: -1.2s;
}
.gwel-spark.s3 {
  top: 10px;
  right: 104px;
  font-size: 16px;
  animation-delay: -2.6s;
}
.gwel-spark.s4 {
  top: 70px;
  right: 14px;
  font-size: 18px;
  animation-delay: -3.7s;
}
@keyframes gwel-float {
  0%,
  100% {
    transform: translateY(0) rotate(-8deg);
  }
  50% {
    transform: translateY(-9px) rotate(8deg);
  }
}
/* keep the words clear of the drifting treats on a phone */
.gwel-hero .gwel-kicker,
.gwel-hero h2 {
  position: relative;
  padding-right: 96px;
}
.gwel-hero h2 {
  padding-right: 64px;
}

.gwel-steps {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}
.gwel-step {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 8px 14px 8px 8px;
  border-radius: 16px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  text-align: left;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition:
    transform 0.25s cubic-bezier(0.3, 1.6, 0.5, 1),
    background 0.2s;
}
.gwel-step:hover {
  background: rgba(255, 255, 255, 0.1);
}
.gwel-step:active {
  transform: scale(0.97);
}
.gwel-step-dot {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.1);
}
.gwel-step.is-done {
  color: var(--ink-3);
}
.gwel-step.is-done span:last-child {
  text-decoration: line-through;
  text-decoration-color: rgba(255, 255, 255, 0.3);
}
.gwel-step.is-done .gwel-step-dot {
  background: var(--spectral);
  color: #17171a;
}

.gwel-progress {
  height: 6px;
  margin-top: 16px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.gwel-progress b {
  display: block;
  height: 100%;
  min-width: 6px;
  border-radius: inherit;
  background: var(--spectral);
  transition: width 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

/* ---------- Friends: before there are any ---------- */

.gwel-friends {
  padding: 4px 2px 0;
}

/* two friends' boxes, as an example, bobbing on the glass */
.gwel-deck {
  position: relative;
  height: 268px;
  margin: 4px 0 20px;
}
.gwel-ex {
  position: absolute;
  width: min(72%, 290px);
  padding: 16px 16px 14px;
  border-radius: 24px;
  --h: 200;
  animation: gwel-bob 6s ease-in-out infinite;
}
.gwel-ex:nth-child(1) {
  left: 2%;
  top: 6px;
  --r: -5deg;
  z-index: 1;
}
.gwel-ex:nth-child(2) {
  right: 2%;
  top: 124px;
  --r: 4deg;
  z-index: 2;
  animation-delay: -3s;
}
@keyframes gwel-bob {
  0%,
  100% {
    transform: rotate(var(--r)) translateY(0);
  }
  50% {
    transform: rotate(var(--r)) translateY(-7px);
  }
}
.gwel-ex-top {
  display: flex;
  align-items: center;
  gap: 10px;
}
.gwel-ex-av {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-weight: 800;
  font-size: 14px;
  color: #fff;
  background: linear-gradient(145deg, hsl(var(--h) 70% 62%), hsl(calc(var(--h) + 30) 60% 42%));
}
.gwel-ex-who {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.gwel-ex-who strong {
  font-size: 14px;
}
.gwel-ex-who small {
  font-size: 12px;
  font-weight: 700;
  color: var(--amber);
  font-variant-numeric: tabular-nums;
}
.gwel-ex-title {
  margin: 10px 0 10px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.gwel-ex-box {
  position: relative;
  display: flex;
  gap: 6px;
  height: 46px;
  align-items: center;
  padding: 0 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.gwel-ex-box i {
  font-style: normal;
  font-size: 22px;
  filter: blur(0.6px) saturate(1.2);
  animation: gwel-jiggle 2.4s ease-in-out infinite;
  animation-delay: calc(var(--k, 0) * -0.4s);
}
@keyframes gwel-jiggle {
  0%,
  100% {
    transform: translateY(0) rotate(-6deg);
  }
  50% {
    transform: translateY(-3px) rotate(6deg);
  }
}
/* now and then a new treat drops into the box */
.gwel-ex-box .gwel-ex-drop {
  position: absolute;
  right: 14px;
  top: 0;
  filter: none;
  animation: gwel-drop 4.2s cubic-bezier(0.5, 0, 0.7, 1.4) infinite;
}
.gwel-ex:nth-child(2) .gwel-ex-drop {
  animation-delay: -2.1s;
}
@keyframes gwel-drop {
  0%,
  55% {
    transform: translateY(-48px) scale(0.6);
    opacity: 0;
  }
  70% {
    opacity: 1;
  }
  82% {
    transform: translateY(9px) scale(1.1);
  }
  90%,
  100% {
    transform: translateY(7px) scale(1);
    opacity: 1;
  }
}
.gwel-deck-tag {
  position: absolute;
  left: 4%;
  bottom: 0;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: rgba(255, 255, 255, 0.06);
}

.gwel-copy {
  padding: 0 4px;
}

.gwel-goal {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 20px;
}
.gwel-goal-dots {
  display: flex;
  flex: none;
}
.gwel-goal-dots i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-left: -8px;
  border-radius: 50%;
  color: var(--ink-3);
  background: #16161a;
  box-shadow:
    0 0 0 2px #000,
    inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}
.gwel-goal-dots i:first-child {
  margin-left: 0;
}
.gwel-goal-dots i.is-on {
  color: #17171a;
  background: var(--spectral);
}
.gwel-goal-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.gwel-goal-text strong {
  font-size: 15px;
}
.gwel-goal-text small {
  font-size: 13px;
  line-height: 1.35;
  color: var(--ink-2);
}

/* ---------- the laptop's side column ---------- */

.gwel-aside {
  display: grid;
  gap: 12px;
  padding: 4px 0 8px;
}
.gwel-aside p {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink-3);
}

/* ---------- sign-in: you were invited ---------- */

.gwel-ob-invite {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.35;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(185, 167, 245, 0.45);
}
.gwel-ob-invite .gi {
  flex: none;
  color: var(--lavender);
}

/* ---------- laptop ---------- */

@media (min-width: 900px) {
  .gwel-hero {
    padding: 28px 30px 26px;
  }
  .gwel-hero h2,
  .gwel-copy h2 {
    font-size: 30px;
  }
  .gwel-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .gwel-acts {
    max-width: 520px;
  }
  .gwel-friends {
    max-width: 620px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gwel-hero::after,
  .gwel-spark,
  .gwel-ex,
  .gwel-ex-box i,
  .gwel-ex-box .gwel-ex-drop {
    animation: none;
  }
}

/* =====================================================================
 * The welcome as a toy (Oct 2026): a big glass box of treats to play
 * with, the three first steps as chips under it, and on Friends a
 * practice throw into an example box. White primary, glass everything
 * else: no pastel fills.
 * ===================================================================== */

.gwel-go {
  background: #fff;
  color: #000;
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.12);
}

.gwel-toy {
  position: relative;
  height: min(46vh, 340px);
  min-height: 270px;
  border-radius: 32px;
  overflow: hidden;
  isolation: isolate;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  animation: gwel-toy-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.gwel-toy:active {
  cursor: grabbing;
}
@keyframes gwel-toy-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
    filter: blur(8px);
  }
}
.gwel-toy-c {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
/* words sit on a darker top of the glass; treats stay bright below */
.gwel-toy-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.35) 38%, rgba(0, 0, 0, 0) 62%);
}
.gwel-toy-text {
  position: relative;
  z-index: 2;
  padding: 22px 22px 0;
  pointer-events: none;
  max-width: 330px;
}
.gwel-toy-text small {
  display: block;
  font: 600 12.5px/1 var(--sys, system-ui);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}
.gwel-toy-text h2 {
  margin: 8px 0 0;
  font-size: 27px;
  line-height: 1.12;
  padding: 0.06em 0;
  letter-spacing: -0.02em;
  color: #fff;
}
.gwel-toy-text p {
  margin: 8px 0 0;
  font: 500 14.5px/1.4 var(--sys, system-ui);
  color: rgba(255, 255, 255, 0.78);
}
/* a hint at the foot, until the first touch */
.gwel-toy-hint {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 14px;
  border-radius: 16px;
  font: 600 13px/1 var(--sys, system-ui);
  color: #fff;
  white-space: nowrap;
  background: rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 0.5px 0 rgba(255, 255, 255, 0.3);
  pointer-events: none;
  transition:
    opacity 0.4s,
    transform 0.4s;
  animation: gwel-hint 2.6s 1.2s ease-in-out 3;
}
@keyframes gwel-hint {
  50% {
    transform: translateX(-50%) translateY(-4px);
  }
}
.gwel-toy.is-played .gwel-toy-hint {
  opacity: 0;
  transform: translateX(-50%) translateY(8px);
}

.gwel-under {
  margin-top: 14px;
}
.gwel-under-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0 6px 10px;
  font: 600 13px/1 var(--sys, system-ui);
  color: var(--ink-2);
}
.gwel-under-head b {
  font-weight: 700;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.gwel-chips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.gwel-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-height: 86px;
  padding: 12px;
  border-radius: 20px;
  color: #fff;
  text-align: left;
  font: 600 14px/1.2 var(--sys, system-ui);
  transition: transform 0.25s cubic-bezier(0.2, 1.4, 0.4, 1);
  animation: gwel-chip-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(0.25s + var(--i, 0) * 80ms);
}
@keyframes gwel-chip-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}
.gwel-chip:active {
  transform: scale(0.95);
}
.gwel-chip i {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-style: normal;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.2);
}
.gwel-chip.is-done {
  color: var(--ink-2);
}
.gwel-chip.is-done i {
  color: #000;
  background: #fff;
}

/* ---------- Friends: a practice throw ---------- */

.gwel-try {
  margin: 4px 0 18px;
  text-align: center;
}
.gwel-try-line {
  margin: 0 0 10px;
  min-height: 1.4em;
  font: 600 14px/1.4 var(--sys, system-ui);
  color: var(--ink-2);
}
.gwel-try-chips {
  display: flex;
  justify-content: center;
  gap: 8px;
}
.gwel-try-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 42px;
  padding: 0 16px 0 12px;
  border-radius: 21px;
  color: #fff;
  font: 600 14px/1 var(--sys, system-ui);
  transition: transform 0.2s cubic-bezier(0.2, 1.4, 0.4, 1);
}
.gwel-try-chip:active {
  transform: scale(0.92);
}
.gwel-throw {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 400;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow:
    inset 0 0.5px 0 rgba(255, 255, 255, 0.5),
    0 0 18px rgba(255, 210, 140, 0.55);
}
.gwel-ex-box .gwel-ex-new {
  animation:
    gwel-land 0.5s cubic-bezier(0.2, 1.6, 0.4, 1) both,
    gwel-jiggle 2.4s 0.5s ease-in-out infinite;
}
.gwel-ex-box .gwel-ex-new.is-note {
  font: 700 15px/1 Caveat, cursive;
  color: #ffd9a0;
  white-space: nowrap;
}
@keyframes gwel-land {
  from {
    transform: translateY(-30px) scale(1.6);
    opacity: 0;
  }
}
.gwel-ex-box.is-hit {
  animation: gwel-hit 0.45s cubic-bezier(0.2, 1.6, 0.4, 1);
}
@keyframes gwel-hit {
  40% {
    translate: 0 5px;
    scale: 1.02;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gwel-toy,
  .gwel-chip,
  .gwel-toy-hint,
  .gwel-ex-box .gwel-ex-new,
  .gwel-ex-box.is-hit {
    animation: none !important;
  }
}
