.arrival {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 39px;
  padding: 4px var(--edge);
  background: #202733;
  border-bottom: 1px solid #81858a4a;
}
#saludo {font: italic 1.17rem/1.2 Georgia,serif;color: #f0d9ae}
.almanac {display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 5px 14px; font-size: .83rem}
.city {color: #efeadf}
#roomClock {font: 500 .94rem/1.3 ui-monospace, "SFMono-Regular", Consolas, monospace; font-variant-numeric: tabular-nums; color: #f9d69c}
.meteo {position: relative; color: #d4dbe4}
.meteo summary {list-style-position: inside; cursor: pointer; padding: 5px 0}
.meteo-source {position: absolute; inset-inline-end: 0; top: 100%; z-index: 3; width: max-content; max-width: min(76vw,290px); padding: 9px 13px; background: #202733; border: 1px solid #646878; border-radius: 4px; box-shadow: 0 3px 10px #1118}
.meteo a {color: #f3d8a7; text-underline-offset: 2px}
.scene {
  width: min(100%,calc(clamp(370px,100svh - 207px,920px) * 16 / 9));
  --lamp-x: 33.65%; --lamp-y: 11.6%; --shade-left: 26.0%; --shade-top: 2.2%; --shade-w: 15.25%; --shade-h: 19.0%;
  --ball-x: 79.25%; --ball-y: 88.0%; --book-x: 7.8%; --book-y: 19.15%; --book-width: 16.4%; --book-height: 24.55%; --shelf-x: 16%; --shelf-y: 47.75%;
}
.visual-world {position: absolute; inset: 0; pointer-events: none; overflow: hidden; filter: brightness(var(--ambient-brightness,1)) saturate(var(--ambient-saturation,1))}
.visual-world canvas {display: block; position: absolute; pointer-events: none}
.awaiting-desk-art .visual-world {opacity: 0}
.lamplight,.lit-shade {position: absolute; pointer-events: none; transition: opacity .55s ease}
.lamplight {
  inset: 0; mix-blend-mode: screen;
  background: radial-gradient(ellipse 24% 53% at var(--lamp-x) var(--lamp-y), #ffa84650, #f0a15918 45%, transparent 100%),
              radial-gradient(ellipse 16% 22% at calc(var(--lamp-x) + 11%) calc(var(--lamp-y) + 21%), #df90401b, transparent);
}
.lit-shade {
  left: var(--shade-left); top: var(--shade-top); width: var(--shade-w); height: var(--shade-h);
  clip-path: polygon(5% 9%,10% 5%,30% 1%,56% 0%,84% 3%,95% 8%,100% 91%,97% 96%,70% 100%,26% 99%,0 94%);
  background: radial-gradient(ellipse at 50% 72%,#fff4cbee 0%,#ffdc8fc9 31%,#eaaa5675 79%,#e6a25b58);
  mix-blend-mode: screen;
}
.light-off .lamplight,.light-off .lit-shade {opacity: 0}
.scene:has(.spine:focus-visible) .book-zones {z-index: 1}
@media(max-width: 630px) and (orientation: portrait) {
  .arrival {min-height: 48px; gap: 8px; padding-block: 5px}
  #saludo {font-size: clamp(.96rem,4.1vw,1.15rem); white-space: nowrap}
  .almanac {display: grid; justify-items: end; grid-template-columns: auto auto; gap: 0 6px; line-height: 1.12; font-size: .75rem}
  #roomClock {font-size: .8rem}
  .meteo {grid-column: span 2}
  .meteo summary {padding: 2px 0}
}
@media(max-height: 520px) and (orientation: landscape) {
  .scene {width: 100%}
}
@media(prefers-reduced-motion: reduce) {.lamplight,.lit-shade {transition: none}}

.ball-zone {width: 7.8%; height: 12%}
.light-off .lit-shade {
  opacity: .64; mix-blend-mode: multiply;
  background: linear-gradient(115deg,#797779,#938e8c 60%,#737176);
}
@media(max-width: 630px) and (orientation: portrait) {
  .scene {width: 100%}
  .book-zones {display: none}
  .shelf-object {left: 15.8%; top: 33%; padding: 4px}
  .lamp-zone .marker, .ball-zone .marker {left: 74%; top: 77%}
  .ball-zone .hint {left: auto; right: 0; transform: none}
}
