/*
 * The Welly tab's styles (welly.js). Same rules as home.css: no CSS variables, grid or backdrop-filter; only
 * transform and opacity animate. Focus scale, tilt, entrances, the press and the dead-end tug come from welly.js's
 * springs (motion.js), so no transform transitions here.
 */
/* MARK: - Welly: a column of 1180, cards as plain fills, glass prompt pills and the "Ask Welly…" capsule */

#welly .col { position: absolute; left: 370px; top: 0; width: 1180px; height: 820px; }
/* Welly's orb (welly.js draws it on its canvas): centre stage, scaled down beside "Welly · mood" when it answers. */
#welly .orb { position: absolute; left: 0; top: 0; width: 500px; height: 500px; pointer-events: none; -webkit-transform-origin: 250px 250px; transform-origin: 250px 250px; }
#welly .who { position: absolute; left: 426px; top: 222px; font-size: 24px; font-weight: 600; color: rgba(255, 255, 255, 0.6); white-space: pre; }
/* The lines under the orb: the greeting or the question, then the hint or what Welly is doing. Two slots each, so a
   change crossfades. */
#welly .lines { position: absolute; left: 370px; top: 0; width: 1180px; height: 700px; pointer-events: none; }
#welly .centre, #welly .below { position: absolute; left: 0; right: 0; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; -webkit-transition: opacity 0.3s cubic-bezier(0.22, 1, 0.36, 1); transition: opacity 0.3s cubic-bezier(0.22, 1, 0.36, 1); }
#welly .centre { top: 438px; height: 70px; font-size: 34px; line-height: 70px; color: rgba(255, 255, 255, 0.85); }
#welly .centre.big { font-size: 57px; font-weight: 600; letter-spacing: -0.01em; color: #FFF; }
#welly .below { top: 572px; height: 40px; font-size: 26px; line-height: 40px; color: rgba(255, 255, 255, 0.62); }
#welly .centre.on, #welly .below.on { opacity: 1; }
#welly .exchange { position: absolute; left: 0; top: 0; width: 1180px; height: 560px; }
#welly .you { position: absolute; right: 0; top: 372px; max-width: 900px; text-align: right; font-size: 26px; color: rgba(255, 255, 255, 0.6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#welly .reply { position: absolute; left: 0; top: 410px; width: 1180px; font-size: 31px; line-height: 1.32; max-height: 123px; overflow: hidden; }

#welly .cards { position: absolute; left: 370px; top: 568px; height: 240px; white-space: nowrap; }
#welly .card {
  position: relative;
  display: inline-block;
  height: 240px;
  margin-right: 36px;
  border-radius: 24px;
  vertical-align: top;
  white-space: normal;
  overflow: hidden;
  background: rgba(28, 28, 30, 0.82);
  background-size: cover;
  background-position: center;
  -webkit-transition: box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  transition: box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
/* Its scale, tilt and entrance come from welly.js's springs; CSS keeps the single focus lift. */
#welly .card.focus { box-shadow: 0 22px 40px rgba(0, 0, 0, 0.5); }
#welly .card.media { width: 427px; }
#welly .media .scrim { position: absolute; left: 0; right: 0; bottom: 0; height: 150px; background: -webkit-linear-gradient(top, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.7)); background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.7)); }
#welly .media .t { position: absolute; left: 24px; right: 24px; bottom: 50px; font-size: 28px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#welly .media .m { position: absolute; left: 24px; right: 24px; bottom: 20px; font-size: 21px; color: rgba(255, 255, 255, 0.72); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Continue watching (a profile's own watch log): the pick's art, or a plain fill with the app's name; a thin progress bar. */
#welly .watch.plain { background: -webkit-linear-gradient(top, rgba(58, 58, 64, 0.92), rgba(30, 30, 34, 0.92)); background: linear-gradient(rgba(58, 58, 64, 0.92), rgba(30, 30, 34, 0.92)); }
#welly .watch .app { position: absolute; left: 24px; top: 22px; font-size: 22px; font-weight: 600; color: rgba(255, 255, 255, 0.55); }
#welly .watch .bar { position: absolute; left: 24px; right: 24px; bottom: 10px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.25); overflow: hidden; }
#welly .watch .bar .fill { height: 4px; border-radius: 2px; background: #FFF; }
#welly .watch .m { bottom: 22px; }
#welly .card.score { width: 300px; }
#welly .score .league, #welly .weather .place { position: absolute; left: 26px; top: 22px; font-size: 20px; font-weight: 600; letter-spacing: 0.04em; color: rgba(255, 255, 255, 0.6); }
#welly .score .team { position: relative; height: 48px; margin: 0 26px; font-size: 26px; font-weight: 600; line-height: 48px; color: rgba(255, 255, 255, 0.62); }
#welly .score .team:nth-child(2) { margin-top: 64px; }
#welly .score .team.ahead { color: #FFF; }
#welly .score .score { position: absolute; right: 0; top: 0; font-size: 32px; -webkit-font-feature-settings: 'tnum'; font-feature-settings: 'tnum'; }
#welly .score .status, #welly .home .state { position: absolute; left: 26px; bottom: 22px; font-size: 21px; color: rgba(255, 255, 255, 0.6); }
#welly .card.weather { width: 430px; }
#welly .weather .now { position: absolute; left: 26px; top: 60px; height: 70px; white-space: nowrap; }
#welly .weather .now .sym { vertical-align: top; margin: 8px 14px 0 0; }
#welly .weather .temp { font-size: 64px; font-weight: 300; line-height: 70px; }
#welly .weather .range { position: absolute; right: 26px; top: 84px; font-size: 22px; color: rgba(255, 255, 255, 0.7); }
#welly .weather .hours { position: absolute; left: 14px; right: 14px; bottom: 18px; height: 88px; white-space: nowrap; }
#welly .weather .hour { display: inline-block; width: 25%; text-align: center; font-size: 19px; color: rgba(255, 255, 255, 0.7); }
#welly .weather .hour .sym { display: block; margin: 6px auto; color: #FFF; }
#welly .weather .hour .d { font-size: 21px; font-weight: 600; color: #FFF; }
#welly .card.schedule { width: 560px; padding-top: 18px; box-sizing: border-box; }
#welly .schedule .line { position: relative; height: 41px; margin: 0 26px; font-size: 24px; line-height: 41px; white-space: nowrap; }
#welly .schedule .at { display: inline-block; width: 128px; color: rgba(255, 255, 255, 0.6); -webkit-font-feature-settings: 'tnum'; font-feature-settings: 'tnum'; }
#welly .schedule .show { font-weight: 600; }
#welly .schedule .net { position: absolute; right: 0; top: 0; color: rgba(255, 255, 255, 0.6); }
#welly .card.home { width: 300px; }
#welly .home .bulb { position: absolute; left: 26px; top: 26px; width: 46px; height: 46px; border-radius: 23px; background: rgba(255, 255, 255, 0.2); }
#welly .home.lit .bulb { background: #FFD9A8; box-shadow: 0 0 30px rgba(255, 192, 122, 0.85); }
#welly .home .room { position: absolute; left: 26px; top: 100px; font-size: 22px; color: rgba(255, 255, 255, 0.6); }
#welly .home .fix { position: absolute; left: 26px; top: 132px; font-size: 30px; font-weight: 600; }
#welly .home.lit .state { color: #FFC07A; }

#welly .pills { position: absolute; left: 352px; top: 832px; width: 1216px; height: 84px; overflow: hidden; }
/* A fade at an edge with more pills past it. */
#welly .pills.more-r { -webkit-mask-image: -webkit-linear-gradient(left, #000 92%, rgba(0, 0, 0, 0)); }
#welly .pills.more-l { -webkit-mask-image: -webkit-linear-gradient(left, rgba(0, 0, 0, 0), #000 8%); }
#welly .pills.more-l.more-r { -webkit-mask-image: -webkit-linear-gradient(left, rgba(0, 0, 0, 0), #000 8%, #000 92%, rgba(0, 0, 0, 0)); }
#welly .strip { position: absolute; left: 18px; top: 13px; white-space: nowrap; }
#welly .pill {
  display: inline-block;
  height: 57px;
  margin-right: 18px;
  padding: 0 28px;
  border-radius: 29px;
  font-size: 26px;
  font-weight: 600;
  line-height: 57px;
  color: #FFF;
  background: rgba(52, 62, 76, 0.52);
  box-shadow: inset 1.5px 1.5px 0 rgba(255, 255, 255, 0.34), inset -1px -1px 0 rgba(255, 255, 255, 0.08);
  -webkit-transition: background-color 0.17s cubic-bezier(0.22, 1, 0.36, 1), color 0.17s cubic-bezier(0.22, 1, 0.36, 1);
  transition: background-color 0.17s cubic-bezier(0.22, 1, 0.36, 1), color 0.17s cubic-bezier(0.22, 1, 0.36, 1);
}
#welly .pill.focus { background: #FFF; color: #1C1C1E; }

#welly .ask { position: absolute; left: 370px; top: 934px; width: 1180px; height: 76px; border-radius: 38px; }
#welly .ask .fill {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  border-radius: 38px;
  background: rgba(52, 62, 76, 0.52);
  box-shadow: inset 1.5px 1.5px 0 rgba(255, 255, 255, 0.34), inset -1px -1px 0 rgba(255, 255, 255, 0.08);
  -webkit-transition: background-color 0.17s cubic-bezier(0.22, 1, 0.36, 1);
  transition: background-color 0.17s cubic-bezier(0.22, 1, 0.36, 1);
}
#welly .ask.focus .fill { background: #FFF; }
#welly .mic { position: absolute; left: 8px; top: 8px; width: 60px; height: 60px; border-radius: 30px; color: #FFF; -webkit-transition: background-color 0.17s cubic-bezier(0.22, 1, 0.36, 1), color 0.17s cubic-bezier(0.22, 1, 0.36, 1); transition: background-color 0.17s cubic-bezier(0.22, 1, 0.36, 1), color 0.17s cubic-bezier(0.22, 1, 0.36, 1); }
#welly .mic .sym { position: absolute; left: 15px; top: 15px; }
#welly .mic.focus { background: #FFF; color: #1C1C1E; }
#welly .ask.focus .mic { color: #1C1C1E; }
#welly .field {
  position: absolute;
  left: 84px;
  right: 30px;
  top: 0;
  height: 76px;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  font: inherit;
  font-size: 30px;
  color: #FFF;
}
#welly .ask.focus .field { color: #1D1D1F; }
/* The placeholder, two lines that crossfade ("Ask Welly…" ↔ "Listening…"). */
#welly .ph { position: absolute; left: 84px; top: 0; height: 76px; font-size: 30px; line-height: 76px; color: rgba(255, 255, 255, 0.55); pointer-events: none; opacity: 0; -webkit-transition: opacity 0.2s cubic-bezier(0.22, 1, 0.36, 1), color 0.17s cubic-bezier(0.22, 1, 0.36, 1); transition: opacity 0.2s cubic-bezier(0.22, 1, 0.36, 1), color 0.17s cubic-bezier(0.22, 1, 0.36, 1); }
#welly .ph.on { opacity: 1; }
#welly .ask.focus .ph { color: rgba(29, 29, 31, 0.45); }
#welly .ask.listening .ph { color: rgba(255, 255, 255, 0.85); }
#welly .ask.listening .mic { color: #FF375F; }
/* Listening: the one moment of colour, a band of Apple Intelligence hues moving round the capsule's rim. */
#welly .ask .edge { position: absolute; left: -4px; top: -4px; right: -4px; bottom: -4px; border-radius: 42px; overflow: hidden; opacity: 0; -webkit-transition: opacity 0.3s cubic-bezier(0.22, 1, 0.36, 1); transition: opacity 0.3s cubic-bezier(0.22, 1, 0.36, 1); }
#welly .ask .edge::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 300%;
  height: 100%;
  background: -webkit-linear-gradient(left, #0894FF, #C959DD, #FF2E54, #FF9004, #0894FF, #C959DD, #FF2E54, #FF9004, #0894FF);
  background: linear-gradient(90deg, #0894FF, #C959DD, #FF2E54, #FF9004, #0894FF, #C959DD, #FF2E54, #FF9004, #0894FF);
  -webkit-animation: welly-edge 2.4s linear infinite;
  animation: welly-edge 2.4s linear infinite;
}
@-webkit-keyframes welly-edge { from { -webkit-transform: translateX(0); } to { -webkit-transform: translateX(-50%); } }
@keyframes welly-edge { from { transform: translateX(0); } to { transform: translateX(-50%); } }
#welly .ask.listening .edge { opacity: 1; }
#welly .ask.listening .fill { background: rgba(24, 24, 28, 0.94); }
#welly .ask.listening .field { color: #FFF; }

/* The pressed pill on its way up to the line under the orb (welly.js moves it). */
#welly .flypill { position: absolute; left: 0; top: 0; opacity: 0; pointer-events: none; }
#welly .flypill.on { opacity: 1; }
#welly .flypill .bg { position: absolute; left: 0; top: 0; right: 0; bottom: 0; border-radius: 29px; background: #FFF; }
#welly .flypill .t { position: absolute; left: 0; top: 0; right: 0; bottom: 0; text-align: center; font-size: 26px; font-weight: 600; line-height: 57px; white-space: nowrap; color: #1C1C1E; }

@supports (corner-shape: superellipse(1.39)) {
  #welly .card { corner-shape: superellipse(1.39); border-radius: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  #welly .card, #welly .pill, #welly .centre, #welly .below, #welly .ph { -webkit-transition-duration: 0.15s; transition-duration: 0.15s; }
  #welly .ask .edge::before { -webkit-animation: none; animation: none; }
}

@media (prefers-reduced-transparency: reduce) {
  #welly .pill, #welly .ask .fill { background: rgba(44, 48, 56, 0.96); }
}
