/* Animated sky, landscape and gentle precipitation for the VREMEPLOV activity. */
.time-clock-screen {
  position: relative;
  isolation: isolate;
  background: transparent;
}
.time-world-scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(180deg, var(--sky-top, #6ebce8), var(--sky-bottom, #d9f3ff));
  transition: background 1.05s ease;
}
.time-world-scene::before {
  position: absolute;
  inset: 0;
  content: '';
  background: linear-gradient(180deg, rgba(255,255,255,.04), transparent 42%, rgba(255,255,255,.1));
}
.time-clock-heading,
.time-clock-stage,
.time-weather-status,
.time-clock-readout,
.time-clock-instruction,
.time-clock-back {
  position: relative;
  z-index: 2;
}
.time-clock-heading .time-screen-title { letter-spacing: .045em; }
.time-clock-quick-controls { display: contents; }
.time-now-button {
  position: fixed;
  right: max(14px, env(safe-area-inset-right));
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 5;
  min-height: clamp(42px, 6.2vh, 57px);
  padding: 5px clamp(19px, 3vw, 31px);
  border: 3px solid #fff;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(115deg, #f65f8e 0%, #ff9d49 32%, #e9c43c 57%, #46b985 78%, #5e8ee8 100%);
  box-shadow: 0 5px 0 #8d5aa4, 0 9px 18px rgba(45,35,80,.2), inset 0 1px 0 rgba(255,255,255,.3);
  font: 900 clamp(19px, 2.6vh, 25px)/1 'Baloo 2', sans-serif;
  letter-spacing: .045em;
  text-shadow: 0 2px 0 rgba(60,35,75,.23);
  cursor: pointer;
  touch-action: manipulation;
  transition: transform .16s, filter .16s, box-shadow .16s;
  animation: time-now-glow 2.8s ease-in-out infinite;
}
.time-now-button:hover:not(:disabled) { transform: translateY(-2px) scale(1.035); filter: saturate(1.12) brightness(1.06); }
.time-now-button:active:not(:disabled) { transform: translateY(3px) scale(.98); box-shadow: 0 2px 0 #8d5aa4; }
.time-now-button:focus-visible { outline: 4px solid #514173; outline-offset: 4px; }
.time-now-button:disabled { cursor: wait; filter: saturate(.7); }
@keyframes time-now-glow {
  0%, 100% { box-shadow: 0 5px 0 #8d5aa4, 0 9px 18px rgba(45,35,80,.2), 0 0 0 0 rgba(255,255,255,0); }
  50% { box-shadow: 0 5px 0 #8d5aa4, 0 9px 18px rgba(45,35,80,.2), 0 0 0 5px rgba(255,255,255,.27); }
}
.time-location-label {
  margin: 0;
  padding: 4px 13px;
  border: 2px solid rgba(255,255,255,.86);
  border-radius: 999px;
  color: #493766;
  background: rgba(255,255,255,.78);
  box-shadow: 0 3px 8px rgba(45,35,80,.1);
  font-size: clamp(12px, 1.7vh, 16px);
  font-weight: 800;
  line-height: 1.05;
}
.time-clock-stage { z-index: 1; }
.time-clock-board {
  filter: drop-shadow(0 16px 17px rgba(30,35,70,.22));
}
.time-weather-status {
  flex: 0 0 auto;
  max-width: min(94vw, 740px);
  min-height: 1.15em;
  margin: 0;
  padding: 3px 13px;
  border: 2px solid rgba(255,255,255,.84);
  border-radius: 999px;
  color: #493766;
  background: rgba(255,255,255,.73);
  font-size: clamp(12px, 1.7vh, 16px);
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
}
.time-clock-instruction {
  flex: 0 0 auto;
  max-width: min(94vw, 940px);
  margin: 0;
  padding: 3px 14px;
  border: 2px solid rgba(255,255,255,.94);
  border-radius: 999px;
  color: #493766;
  background: rgba(255,255,255,.82);
  box-shadow: 0 3px 9px rgba(40,45,90,.1);
  font-size: calc(clamp(12px, 1.7vh, 16px) * 1.2);
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
}
.time-world-sun,
.time-world-moon {
  position: absolute;
  z-index: 1;
  left: var(--sun-x, 50%);
  top: var(--sun-y, 45%);
  width: clamp(44px, 8vw, 92px);
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: var(--sun-opacity, 0);
  background: radial-gradient(circle at 34% 31%, #fff9bf 0 14%, #ffd85c 47%, #ffad5a 100%);
  box-shadow: 0 0 30px 12px rgba(255,198,91,.36), 0 0 95px 38px rgba(255,206,129,.24);
  transform: translate(-50%, -50%);
  transition: left .8s ease, top .8s ease, opacity .8s ease;
}
.time-world-moon {
  left: var(--moon-x, 50%);
  top: var(--moon-y, 40%);
  width: clamp(32px, 5.4vw, 64px);
  opacity: var(--moon-opacity, 0);
  background: #fff4ce;
  box-shadow: 0 0 25px 7px rgba(230,235,255,.24);
  transition: left .9s ease, top .9s ease, opacity .8s ease;
}
.time-world-moon::after {
  position: absolute;
  top: -4%;
  left: 39%;
  width: 88%;
  height: 88%;
  border-radius: 50%;
  background: var(--sky-top, #111b49);
  content: '';
}
.time-stars { position: absolute; inset: 0; z-index: 1; opacity: var(--star-opacity, 0); transition: opacity .8s ease; }
.time-star {
  position: absolute;
  left: var(--star-x);
  top: var(--star-y);
  width: var(--star-size);
  height: var(--star-size);
  border-radius: 50%;
  background: #fffbe2;
  box-shadow: 0 0 9px rgba(255,255,255,.85);
  animation: time-star-twinkle 2.8s ease-in-out var(--star-delay) infinite alternate;
}
@keyframes time-star-twinkle { from { opacity: .38; transform: scale(.72); } to { opacity: 1; transform: scale(1.25); } }
.time-world-cloud {
  position: absolute;
  z-index: 1;
  top: 20%;
  left: 14%;
  width: clamp(92px, 17vw, 205px);
  height: clamp(26px, 4.7vw, 54px);
  border-radius: 999px;
  opacity: var(--cloud-opacity, .5);
  background: rgba(255,255,255,.71);
  filter: drop-shadow(0 7px 7px rgba(80,95,130,.1));
  animation: time-cloud-drift 28s ease-in-out infinite alternate;
  transition: opacity .8s ease;
}
.time-world-cloud::before,
.time-world-cloud::after {
  position: absolute;
  bottom: 34%;
  width: 42%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: inherit;
  content: '';
}
.time-world-cloud::before { left: 16%; }
.time-world-cloud::after { right: 15%; width: 34%; }
.time-world-cloud-two { top: 33%; left: auto; right: 11%; width: clamp(72px, 12vw, 150px); transform: scale(.72); opacity: calc(var(--cloud-opacity, .5) * .76); animation-duration: 37s; animation-direction: alternate-reverse; }
@keyframes time-cloud-drift { from { translate: -12px 0; } to { translate: 35px 8px; } }
.time-world-landscape {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: min(66vh, 700px);
  min-height: 240px;
}
.time-hill-far { fill: var(--hill-back, #69b77d); transition: fill 1.1s ease; }
.time-hill-near { fill: color-mix(in srgb, var(--hill-front, #3f9666), white 16%); transition: fill 1.1s ease; }
.time-hill-foreground { fill: var(--hill-front, #3f9666); transition: fill 1.1s ease; }
.time-hill-meadow { opacity: .42; }
.time-hill-snow { fill: #f3fbff; opacity: 0; transition: opacity .7s ease; }
.time-world-scene[data-season="winter"] .time-hill-snow { opacity: .86; }
.time-world-scene[data-season="spring"] { --hill-front: #42a877; }
.time-world-scene[data-season="summer"] { --hill-front: #4a9c62; }
.time-world-scene[data-season="autumn"] { --hill-front: #8d8156; }
.time-world-scene[data-season="winter"] { --hill-front: #597e88; --hill-back: #7799a3; }
.time-precipitation { position: absolute; inset: 0; z-index: 2; overflow: hidden; opacity: 0; transition: opacity .45s ease; }
.time-world-scene.is-rain .time-rain-layer,
.time-world-scene.is-snow .time-snow-layer { opacity: 1; }
.time-world-scene.is-cloudy .time-world-cloud { opacity: .82; }
.time-world-scene.is-partly-cloudy .time-world-cloud { opacity: .64; }
.time-world-scene.is-partly-cloudy-night .time-world-cloud { opacity: .64; }
.time-world-scene.is-clear-night { --cloud-opacity: .2; }
.time-world-scene.is-partly-cloudy-night { --cloud-opacity: .64; }
.time-raindrop {
  position: absolute;
  left: var(--particle-x);
  top: -12%;
  width: 2px;
  height: clamp(14px, 2.6vh, 25px);
  border-radius: 50%;
  background: linear-gradient(transparent, rgba(224,247,255,.86));
  box-shadow: 0 0 4px rgba(215,244,255,.4);
  opacity: .73;
  animation: time-rain-fall var(--particle-duration) linear var(--particle-delay) infinite;
}
@keyframes time-rain-fall { to { transform: translate3d(-32px, 120vh, 0); } }
.time-snowflake {
  position: absolute;
  left: var(--particle-x);
  top: -10%;
  color: rgba(255,255,255,.92);
  font-size: var(--flake-size);
  line-height: 1;
  text-shadow: 0 1px 5px rgba(65,100,135,.35);
  animation: time-snow-fall var(--particle-duration) ease-in var(--particle-delay) infinite;
}
@keyframes time-snow-fall {
  0% { transform: translate3d(0, -3vh, 0) rotate(0deg); }
  50% { transform: translate3d(28px, 53vh, 0) rotate(170deg); }
  100% { transform: translate3d(-18px, 112vh, 0) rotate(340deg); }
}
.time-clock-screen.is-clock-dragging .time-world-scene,
.time-clock-screen.is-time-tweening .time-world-scene,
.time-clock-screen.is-clock-dragging .time-world-sun,
.time-clock-screen.is-clock-dragging .time-world-moon,
.time-clock-screen.is-time-tweening .time-world-sun,
.time-clock-screen.is-time-tweening .time-world-moon,
.time-clock-screen.is-clock-dragging .time-hill-far,
.time-clock-screen.is-clock-dragging .time-hill-near,
.time-clock-screen.is-clock-dragging .time-hill-foreground {
  transition: none;
}
.time-clock-screen.is-time-tweening .clock-hand { transition: none; }
.time-clock-screen.is-time-rewinding .clock-hand { transition-duration: 1.1s; }
@media (max-width: 560px) {
  .time-clock-quick-controls { gap: 5px; }
  .time-now-button { right: max(10px, env(safe-area-inset-right)); bottom: max(10px, env(safe-area-inset-bottom)); min-height: 40px; padding-inline: 17px; font-size: 18px; }
  .time-location-label { max-width: 82vw; padding: 3px 9px; font-size: 11px; }
  .time-weather-status { max-width: 94vw; font-size: 11px; }
  .time-clock-instruction { max-width: 96vw; font-size: 13.2px; }
  .time-world-landscape { height: 55vh; min-height: 205px; }
  .time-world-cloud { top: 21%; }
  .time-world-cloud-two { top: 36%; }
}
@media (max-height: 600px) {
  .time-clock-screen .time-clock-board { --clock-size: min(68vw, 40vh, 260px); }
  .time-clock-quick-controls { gap: 5px; }
  .time-now-button { right: max(10px, env(safe-area-inset-right)); bottom: max(10px, env(safe-area-inset-bottom)); min-height: 34px; padding-block: 2px; font-size: 16px; }
  .time-location-label, .time-weather-status { padding-block: 2px; font-size: 11px; }
  .time-clock-instruction { font-size: 13.2px; }
  .time-world-landscape { height: 60vh; min-height: 175px; }
  .time-world-cloud { top: 17%; }
  .time-world-cloud-two { top: 29%; }
}
@media (max-height: 600px) and (orientation: landscape) {
  .time-clock-screen .time-clock-board { --clock-size: min(46vh, 34vw, 330px); }
}
@media (prefers-reduced-motion: reduce) {
  .time-now-button { animation: none; transition: none; }
  .time-star, .time-world-cloud, .time-raindrop, .time-snowflake { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .time-world-scene, .time-world-sun, .time-world-moon, .time-stars, .time-world-cloud, .time-hill-far, .time-hill-near, .time-hill-foreground, .time-precipitation { transition-duration: .01ms !important; }
}

/* Additional animated conditions, shared by the automatic forecast and learning card. */
.time-world-scene.is-weather-focused { --sky-top: #72c6ed; --sky-bottom: #dff5ff; }
.time-world-scene.is-weather-focused[data-night="true"] { --sky-top: #172044; --sky-bottom: #586b8e; }
.time-world-scene.is-weather-focused.is-partly-cloudy { --sky-top: #72b7dc; --sky-bottom: #d9eff8; }
.time-world-scene.is-weather-focused.is-cloudy { --sky-top: #8199b3; --sky-bottom: #d7e1e8; }
.time-world-scene.is-weather-focused.is-rain { --sky-top: #536b88; --sky-bottom: #a1b3c4; }
.time-world-scene.is-weather-focused.is-snow { --sky-top: #9bbbd1; --sky-bottom: #edf5fa; }
.time-world-scene.is-weather-focused.is-fog { --sky-top: #9baeb8; --sky-bottom: #d5dedc; }
.time-world-scene.is-weather-focused.is-thunderstorm { --sky-top: #252c4c; --sky-bottom: #68738f; }
.time-world-scene.is-weather-focused.is-wind { --sky-top: #6eadd0; --sky-bottom: #d3edf3; }
.time-world-scene.is-weather-focused.is-dew { --sky-top: #f3b9a7; --sky-bottom: #ffe7c6; }
.time-world-scene.is-weather-focused[data-night="true"] { --sky-top: #172044; --sky-bottom: #586b8e; }
.time-world-scene.is-weather-focused.is-thunderstorm[data-night="true"] { --sky-top: #171d38; --sky-bottom: #495570; }
.time-world-scene.is-cloudy .time-world-cloud,
.time-world-scene.is-fog .time-world-cloud,
.time-world-scene.is-thunderstorm .time-world-cloud { opacity: .9; }
.time-world-scene.is-fog .time-world-cloud { filter: blur(2px); }
.time-weather-effects { position: absolute; inset: 0; z-index: 3; overflow: hidden; pointer-events: none; opacity: 0; transition: opacity .5s ease; }
.time-wind-layer i {
  position: absolute;
  left: -35%;
  width: 44vw;
  max-width: 520px;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.82), transparent);
  filter: drop-shadow(0 1px 3px rgba(60,100,130,.22));
  animation: time-wind-sweep 2.4s ease-in-out infinite;
}
.time-wind-layer i:nth-child(1) { top: 34%; animation-delay: -.2s; }
.time-wind-layer i:nth-child(2) { top: 49%; width: 34vw; animation-delay: -1.2s; }
.time-wind-layer i:nth-child(3) { top: 63%; width: 51vw; animation-delay: -1.8s; }
.time-world-scene.is-wind .time-wind-layer { opacity: .75; }
@keyframes time-wind-sweep { from { transform: translateX(-10vw); opacity: 0; } 25%, 75% { opacity: .8; } to { transform: translateX(160vw); opacity: 0; } }
.time-fog-layer i {
  position: absolute;
  left: -20%;
  width: 140%;
  height: clamp(55px, 12vh, 130px);
  border-radius: 50%;
  background: linear-gradient(180deg, transparent, rgba(247,251,250,.62) 38%, rgba(255,255,255,.5) 62%, transparent);
  filter: blur(10px);
  animation: time-fog-drift 13s ease-in-out infinite alternate;
}
.time-fog-layer i:nth-child(1) { top: 42%; }
.time-fog-layer i:nth-child(2) { top: 56%; animation-delay: -5s; animation-duration: 17s; opacity: .8; }
.time-fog-layer i:nth-child(3) { top: 67%; animation-delay: -9s; animation-duration: 19s; opacity: .65; }
.time-world-scene.is-fog .time-fog-layer { opacity: .88; }
@keyframes time-fog-drift { from { transform: translateX(-8%); } to { transform: translateX(8%); } }
.time-dew-layer i {
  position: absolute;
  bottom: 24%;
  color: #f4fff1;
  font-size: clamp(15px, 2.4vw, 28px);
  text-shadow: 0 0 12px rgba(255,255,255,.95), 0 0 25px rgba(180,246,226,.8);
  animation: time-dew-twinkle 2s ease-in-out infinite alternate;
}
.time-dew-layer i:nth-child(1) { left: 17%; bottom: 27%; }
.time-dew-layer i:nth-child(2) { left: 39%; bottom: 20%; animation-delay: -.7s; }
.time-dew-layer i:nth-child(3) { right: 31%; bottom: 26%; animation-delay: -1.3s; }
.time-dew-layer i:nth-child(4) { right: 12%; bottom: 19%; animation-delay: -.4s; }
.time-world-scene.is-dew .time-dew-layer { opacity: .95; }
@keyframes time-dew-twinkle { from { opacity: .25; transform: scale(.72); } to { opacity: 1; transform: scale(1.14); } }
.time-lightning {
  position: absolute;
  z-index: 4;
  top: 15%;
  left: 53%;
  color: #fff8c9;
  font-size: clamp(80px, 19vw, 220px);
  line-height: 1;
  opacity: 0;
  filter: drop-shadow(0 0 15px rgba(255,255,220,.9));
  transform: translateX(-50%) rotate(9deg);
  pointer-events: none;
}
.time-world-scene.is-thunderstorm .time-lightning { animation: time-lightning-flash 4.8s steps(1, end) infinite; }
.time-world-scene.is-thunderstorm::before { animation: time-storm-flash 4.8s steps(1, end) infinite; }
@keyframes time-lightning-flash { 0%, 60%, 63%, 100% { opacity: 0; } 61%, 65% { opacity: .9; } 62%, 66% { opacity: .14; } }
@keyframes time-storm-flash { 0%, 60%, 63%, 100% { background-color: transparent; } 61%, 65% { background-color: rgba(255,255,230,.48); } 62%, 66% { background-color: rgba(255,255,255,.08); } }

.time-weather-screen {
  position: fixed !important;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-sizing: border-box;
  min-height: 100vh;
  min-height: 100dvh;
  padding: max(14px, env(safe-area-inset-top)) 18px max(76px, calc(env(safe-area-inset-bottom) + 68px));
  overflow: hidden;
  isolation: isolate;
  color: #493766;
  background: transparent;
  font-family: 'Baloo 2', sans-serif;
}
.time-weather-heading,
.time-weather-display,
.time-weather-instruction,
.time-weather-status { position: relative; z-index: 5; }
.time-weather-heading { display: flex; flex-direction: column; align-items: center; gap: 3px; margin: 0; text-align: center; }
.time-weather-title { margin: 0; color: #fff; font-size: clamp(27px, 5.2vh, 48px); font-weight: 900; line-height: .91; letter-spacing: .035em; text-align: center; text-shadow: 0 3px 0 rgba(63,85,125,.32), 0 6px 16px rgba(39,57,91,.22); }
.time-weather-title span { display: block; }
.time-weather-heading .time-location-label { margin-top: 5px; }
.time-weather-display {
  display: flex;
  flex: 0 1 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(5px, 1.2vh, 12px);
  width: min(88vw, 680px);
  min-height: clamp(180px, 38vh, 350px);
  margin: auto 0;
  padding: clamp(14px, 3vh, 28px);
  border: 4px solid rgba(255,255,255,.92);
  border-radius: clamp(28px, 5vw, 48px);
  color: #493766;
  background: linear-gradient(145deg, rgba(255,255,255,.84), rgba(255,255,255,.65));
  box-shadow: 0 14px 34px rgba(43,70,103,.18), inset 0 2px 0 rgba(255,255,255,.85);
  backdrop-filter: blur(7px);
  font-family: inherit;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform .2s ease, box-shadow .2s ease, background .5s ease;
}
.time-weather-display:hover { transform: translateY(-3px); box-shadow: 0 18px 38px rgba(43,70,103,.22), inset 0 2px 0 rgba(255,255,255,.9); }
.time-weather-display:active { transform: scale(.985); }
.time-weather-display:focus-visible { outline: 4px solid #58479c; outline-offset: 5px; }
.time-weather-icon { display: block; font-size: clamp(76px, 15vh, 148px); line-height: 1; filter: drop-shadow(0 8px 10px rgba(61,79,120,.16)); }
.time-weather-condition { display: block; font-size: clamp(32px, 7vh, 70px); font-weight: 900; line-height: .98; letter-spacing: .02em; text-align: center; }
.time-weather-screen:is([data-weather-kind="partly-cloudy"], [data-weather-kind="partly-cloudy-night"], [data-weather-kind="cloudy"], [data-weather-kind="snow"], [data-weather-kind="fog"], [data-weather-kind="dew"]) .time-weather-condition { font-size: clamp(25px, 5.5vh, 56px); }
.time-weather-reading { display: block; max-width: 95%; font-size: clamp(15px, 2.3vh, 21px); font-weight: 700; line-height: 1.15; text-align: center; }
.time-weather-daypart { display: inline-flex; align-items: center; justify-content: center; min-height: 28px; padding: 3px 12px; border: 2px solid rgba(255,255,255,.9); border-radius: 999px; color: #493766; background: rgba(231,244,255,.9); box-shadow: 0 3px 8px rgba(43,70,103,.12); font-size: clamp(15px, 2.2vh, 20px); font-weight: 900; line-height: 1; }
.time-weather-daypart[hidden] { display: none; }
.time-weather-instruction,
.time-weather-status { max-width: min(92vw, 760px); margin: 0; padding: 4px 13px; border: 2px solid rgba(255,255,255,.84); border-radius: 999px; background: rgba(255,255,255,.78); box-shadow: 0 3px 10px rgba(43,70,103,.11); font-size: clamp(12px, 1.8vh, 17px); font-weight: 900; line-height: 1.12; text-align: center; }
.time-weather-status { font-size: clamp(12px, 1.7vh, 16px); }
.time-weather-back {
  position: fixed !important;
  left: max(14px, env(safe-area-inset-left));
  bottom: max(15px, env(safe-area-inset-bottom));
  z-index: 7;
  min-height: 46px;
  padding: 8px 18px;
  border: 2px solid rgba(255,255,255,.92);
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(120deg, #6176ce, #8060bb);
  box-shadow: 0 5px 0 rgba(61,54,113,.55), 0 8px 18px rgba(44,47,98,.2);
  font: 900 clamp(14px, 2vh, 18px)/1 'Baloo 2', sans-serif;
  cursor: pointer;
  touch-action: manipulation;
}
.time-weather-now[hidden] { display: none !important; }
.time-weather-screen.is-weather-changing .time-weather-display { animation: time-weather-pop .34s ease-out; }
.time-weather-screen.is-weather-changing .time-weather-icon { animation: time-weather-icon-bounce .34s ease-out; }
@keyframes time-weather-pop { 0% { transform: scale(.97); } 55% { transform: scale(1.025); } 100% { transform: scale(1); } }
@keyframes time-weather-icon-bounce { 0% { transform: translateY(8px) scale(.86) rotate(-8deg); } 72% { transform: translateY(-4px) scale(1.07) rotate(4deg); } 100% { transform: translateY(0) scale(1) rotate(0); } }
.time-weather-screen .time-world-landscape { height: min(58vh, 620px); }
.time-world-scene.is-weather-focused[data-night="true"] .time-world-sun { opacity: 0 !important; }
@media (max-width: 560px) {
  .time-weather-screen { gap: 7px; padding-inline: 12px; padding-bottom: max(70px, calc(env(safe-area-inset-bottom) + 62px)); }
  .time-weather-title { font-size: clamp(25px, 5.2vh, 36px); }
  .time-weather-display { width: min(91vw, 560px); min-height: clamp(160px, 34vh, 260px); border-width: 3px; }
  .time-weather-icon { font-size: clamp(66px, 13vh, 112px); }
  .time-weather-condition { font-size: clamp(30px, 6vh, 52px); }
  .time-weather-instruction, .time-weather-status { max-width: 94vw; font-size: 11px; }
  .time-weather-back { left: max(10px, env(safe-area-inset-left)); bottom: max(10px, env(safe-area-inset-bottom)); min-height: 40px; padding-inline: 14px; font-size: 14px; }
  .time-weather-now { right: max(10px, env(safe-area-inset-right)); bottom: max(10px, env(safe-area-inset-bottom)); min-height: 40px; padding-inline: 16px; font-size: 17px; }
  .time-weather-screen .time-world-landscape { height: 51vh; min-height: 190px; }
}
@media (max-height: 560px) {
  .time-weather-screen { gap: 4px; padding-top: 8px; padding-bottom: 58px; }
  .time-weather-heading { gap: 0; }
  .time-weather-title { font-size: clamp(21px, 6vh, 31px); }
  .time-weather-display { min-height: 130px; padding-block: 8px; gap: 4px; }
  .time-weather-icon { font-size: clamp(52px, 18vh, 82px); }
  .time-weather-condition { font-size: clamp(26px, 8vh, 42px); }
  .time-weather-reading { font-size: 13px; }
  .time-weather-instruction, .time-weather-status { padding-block: 2px; font-size: 11px; }
  .time-weather-screen .time-world-landscape { height: 55vh; min-height: 150px; }
}
@media (prefers-reduced-motion: reduce) {
  .time-weather-screen.is-weather-changing .time-weather-display,
  .time-weather-screen.is-weather-changing .time-weather-icon { animation: none; }
  .time-wind-layer i, .time-fog-layer i, .time-dew-layer i, .time-lightning,
  .time-world-scene.is-thunderstorm::before { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Stronger weather cues and a foreground layer for the learning activity. */
.time-world-scene.is-wind .time-wind-layer { opacity: 1; }
.time-wind-layer i { height: 5px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.98) 24%, rgba(255,255,255,.76) 72%, transparent); filter: drop-shadow(0 2px 6px rgba(35,75,112,.4)); }
.time-wind-layer i:nth-child(4) { top: 27%; width: 58vw; animation-delay: -.8s; animation-duration: 2s; }
.time-wind-layer i:nth-child(5) { top: 42%; width: 29vw; animation-delay: -1.7s; animation-duration: 2.8s; }
.time-wind-layer i:nth-child(6) { top: 57%; width: 63vw; animation-delay: -.4s; animation-duration: 2.1s; }
.time-wind-layer i:nth-child(7) { top: 71%; width: 36vw; animation-delay: -1.1s; animation-duration: 2.6s; }
.time-wind-layer i:nth-child(8) { top: 82%; width: 53vw; animation-delay: -2s; animation-duration: 2.3s; }
.time-world-scene.is-wind .time-wind-layer::before,
.time-world-scene.is-wind .time-wind-layer::after {
  position: absolute;
  left: -65%;
  width: 72vw;
  height: clamp(20px, 5vh, 48px);
  border-top: 5px solid rgba(255,255,255,.72);
  border-radius: 50%;
  content: '';
  filter: drop-shadow(0 2px 5px rgba(35,75,112,.32));
  animation: time-wind-sweep 2.2s ease-in-out infinite;
}
.time-world-scene.is-wind .time-wind-layer::before { top: 37%; animation-delay: -.7s; }
.time-world-scene.is-wind .time-wind-layer::after { top: 64%; width: 55vw; animation-delay: -1.4s; }
.time-world-scene.is-fog .time-fog-layer { opacity: 1; }
.time-fog-layer i { height: clamp(90px, 20vh, 210px); background: linear-gradient(180deg, transparent, rgba(248,251,250,.82) 25%, rgba(255,255,255,.78) 66%, transparent); filter: blur(18px); }
.time-world-scene.is-fog .time-world-cloud { filter: blur(7px); opacity: .76; }
.time-world-scene.is-weather-focused.is-sunny .time-world-sun { box-shadow: 0 0 48px 18px rgba(255,198,71,.57), 0 0 130px 58px rgba(255,205,105,.38); }
.time-weather-foreground { position: fixed; inset: 0; z-index: 6; overflow: hidden; pointer-events: none; }
.time-weather-rain-front,
.time-weather-snow-front { position: absolute; inset: 0; overflow: hidden; opacity: 0; transition: opacity .35s ease; }
.time-weather-screen[data-weather-kind="rain"] .time-weather-rain-front { opacity: .92; }
.time-weather-screen[data-weather-kind="snow"] .time-weather-snow-front { opacity: .98; }
.time-weather-rain-front .time-raindrop { width: 3px; height: clamp(23px, 4.1vh, 42px); opacity: .82; animation-duration: .65s; }
.time-weather-snow-front .time-snowflake { font-size: calc(var(--flake-size) * 1.1); text-shadow: 0 2px 8px rgba(50,80,110,.52); }
.time-weather-cloud-front {
  position: absolute;
  top: 31%;
  left: 50%;
  width: min(84vw, 720px);
  height: clamp(90px, 17vh, 175px);
  border-radius: 50%;
  background: radial-gradient(ellipse at 19% 69%, #536173 0 22%, transparent 23%), radial-gradient(ellipse at 38% 45%, #657286 0 33%, transparent 34%), radial-gradient(ellipse at 60% 53%, #586679 0 37%, transparent 38%), radial-gradient(ellipse at 80% 68%, #4f5d70 0 24%, transparent 25%);
  opacity: 0;
  filter: drop-shadow(0 9px 12px rgba(32,44,61,.38));
  transform: translateX(-50%);
  transition: opacity .5s ease;
  animation: time-front-cloud-drift 11s ease-in-out infinite alternate;
}
.time-weather-screen[data-weather-kind="cloudy"] .time-weather-cloud-front { opacity: .88; }
@keyframes time-front-cloud-drift { from { margin-left: -2.5%; } to { margin-left: 2.5%; } }
.time-weather-fog-front { position: absolute; inset: -8%; opacity: 0; background: linear-gradient(180deg, rgba(231,239,239,.2), rgba(239,245,244,.72) 42%, rgba(247,250,248,.78) 68%, rgba(235,241,241,.28)); filter: blur(24px); transition: opacity .55s ease; }
.time-weather-screen[data-weather-kind="fog"] .time-weather-fog-front { opacity: .86; }
.time-weather-main-word { display: inline-block; white-space: nowrap; }
.time-weather-letter { display: inline-block; }
.time-weather-description-word { display: block; margin-top: 5px; color: #5a6990; font-size: .43em; font-weight: 900; letter-spacing: .1em; line-height: 1; text-shadow: none; }
.time-weather-description-word:empty { display: none; margin: 0; }
.time-weather-screen[data-weather-kind="wind"] .time-weather-letter,
.time-weather-screen[data-weather-kind="wind"] .time-weather-main-word .karaoke-token {
  display: inline-block;
  animation: time-wind-letter-blow 4.4s ease-in-out infinite;
}
.time-weather-screen .time-weather-title .time-weather-letter { display: inline-block; }
@keyframes time-wind-letter-blow {
  0%, 9%, 73%, 100% { opacity: 1; transform: translate(0, 0) rotate(0) scale(1); }
  18% { opacity: 1; transform: translate(9px, -7px) rotate(-12deg) scale(1.08); }
  37% { opacity: .12; transform: translate(42px, -22px) rotate(30deg) scale(.82); }
  52% { opacity: .08; transform: translate(55px, -5px) rotate(54deg) scale(.72); }
  66% { opacity: 1; transform: translate(-3px, 2px) rotate(-4deg) scale(1.03); }
}
.time-weather-title [data-weather-speak],
.time-weather-heading [data-weather-speak],
.time-weather-instruction[data-weather-speak],
.time-weather-status[data-weather-speak],
.time-weather-now[data-weather-speak],
.time-weather-main-word[data-weather-speak],
.time-weather-description-word[data-weather-speak] { cursor: pointer; }
.time-weather-screen .time-weather-now {
  position: fixed;
  right: max(14px, env(safe-area-inset-right));
  bottom: max(15px, env(safe-area-inset-bottom));
  z-index: 8;
  min-height: 44px;
  margin: 0;
}
.time-weather-screen.is-calendar-rewinding .time-weather-display { animation: time-weather-return .72s ease-out; }
@keyframes time-weather-return { 0% { transform: translateY(9px) scale(.91); opacity: .78; } 55% { transform: translateY(-3px) scale(1.035); opacity: 1; } 100% { transform: translateY(0) scale(1); } }
@media (max-width: 560px) {
  .time-weather-screen .time-weather-now { right: max(10px, env(safe-area-inset-right)); bottom: max(10px, env(safe-area-inset-bottom)); min-height: 40px; }
}
@media (max-height: 560px) {
  .time-weather-screen .time-weather-now { bottom: max(9px, env(safe-area-inset-bottom)); min-height: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  .time-weather-screen[data-weather-kind="wind"] .time-weather-letter,
  .time-weather-screen[data-weather-kind="wind"] .time-weather-main-word .karaoke-token,
  .time-weather-cloud-front { animation: none !important; }
  .time-weather-screen.is-calendar-rewinding .time-weather-display { animation: none; }
}
