/* A fabric object and nine individual enamel pins. No card chrome, canvas or GPU loop. */
.pouch-stage { position: absolute; inset: -12px -16px; }
.pouch-scene { position: absolute; width: 440px; height: 330px; top: 50%; left: 50%; transform: translate(-50%,-50%) scale(var(--pouch-scale,1)); }
.pouch-shadow { position: absolute; left: 110px; top: 258px; width: 220px; height: 26px; border-radius: 50%; background: radial-gradient(ellipse,#48556c30,transparent 70%); filter: blur(5px); pointer-events: none; transition: transform 900ms,opacity 700ms; }
.pouch-button { position: absolute; z-index: 3; left: 85px; top: 2px; width: 270px; height: 270px; padding: 0; border: 0; border-radius: 44%; background: none; cursor: grab; touch-action: none; -webkit-tap-highlight-color: transparent; transform: rotate(-6deg); transform-origin: 50% 50%; }
.pouch-body { display: block; width: 100%; height: 100%; transition: transform 450ms cubic-bezier(.2,.75,.2,1); }
.pouch-button img { display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; user-select: none; filter: drop-shadow(0 16px 12px #26334720) drop-shadow(0 2px 1px #4b44300a); }
.pouch-button:focus { outline: none; }
.pouch-button:focus-visible { outline: 2px solid var(--blue,#007aff); outline-offset: 6px; }
.pouch-button:active .pouch-body { transform: scale(.965); }
[data-pouch-state="open"] .pouch-button { transform: translate(-16px,-65px) rotate(-16deg) scale(.67); }
[data-pouch-state="open"] .pouch-shadow { transform: translate(-16px,-132px) scale(.65); opacity: .55; }
.pouch-pins { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.enamel-pin { position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 82px; height: 82px; padding: 0; border: 0; border-radius: 24%; background: none; opacity: 0; pointer-events: none; cursor: grab; touch-action: none; -webkit-tap-highlight-color: transparent; transform: translate(220px,160px) translate(-50%,-50%) scale(.2); }
.enamel-pin--gpt { width: 78px; height: 78px; }
.enamel-pin--macbook { width: 112px; height: 84px; }
.enamel-pin--portrait { width: 80px; height: 80px; }
.enamel-pin--alex { width: 114px; height: 64px; }
.enamel-pin img { display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; user-select: none; filter: drop-shadow(0 2px 1px #2d35475c) drop-shadow(0 7px 6px #1c314526); transition: transform 280ms cubic-bezier(.2,.75,.2,1),filter 280ms; }
[data-pouch-state="open"] .enamel-pin { pointer-events: auto; opacity: 1; }
.enamel-pin:focus { outline: none; }
.enamel-pin:focus-visible { outline: 2px solid var(--blue,#007aff); outline-offset: 5px; }
.enamel-pin.is-held { z-index: 15; cursor: grabbing; }
.enamel-pin.is-held img { transform: scale(1.12) rotate(-4deg); filter: drop-shadow(0 3px 1px #2d354742) drop-shadow(2px 15px 9px #1c31452e); }
@media (hover:hover) and (pointer:fine) {
  .pouch-button:hover .pouch-body { transform: translateY(-7px) rotate(3deg); }
  .enamel-pin:hover img { transform: translateY(-3px) scale(1.05); }
  .enamel-pin.is-held:hover img { transform: scale(1.12) rotate(-4deg); }
}
@media (prefers-reduced-motion:reduce) {
  .pouch-shadow,.pouch-body,.enamel-pin img { transition: none; }
  .pouch-button:hover .pouch-body { transform: none; }
}

/* The extra keepsakes use the same physical size and silver edge. */
.enamel-pin--airpods { width: 76px; height: 82px; }
.enamel-pin--picard { width: 70px; height: 78px; }
.enamel-pin--golden { width: 78px; height: 78px; }
/* A fixed keepsake in the corner. Only the visible objects receive clicks. */
:root .pouch-corner {
  position: fixed; left: max(8px,env(safe-area-inset-left));
  bottom: max(10px,env(safe-area-inset-bottom));
  width: min(352px,calc(100vw - 24px)); height: auto; aspect-ratio: 4 / 3;
  z-index: 57; pointer-events: none; isolation: isolate;
}
.pouch-corner .pouch-stage { inset: 0; }
.pouch-corner .pouch-button { pointer-events: auto; cursor: pointer; touch-action: manipulation;
  transform: translate(-135px,125px) rotate(-10deg) scale(.48); }
.pouch-corner .pouch-shadow { opacity: 0; }
.pouch-corner[data-pouch-state="open"] .pouch-button { transform: translate(-16px,-65px) rotate(-16deg) scale(.67); }
.pouch-corner .enamel-pin { pointer-events: none; }
.pouch-corner[data-pouch-state="open"] .enamel-pin { pointer-events: auto; }
.pouch-button.is-pointer-focused:focus,.enamel-pin.is-pointer-focused:focus { outline: none; }
@media (max-width:700px) {
 .pouch-corner { width: min(316px,calc(100vw - 24px)); }
}

/* Six hero widgets, without an empty slot for the pouch. */
.desktop-scene { padding-bottom: 24px; }
@media (max-width:700px) { .desktop-scene { padding-bottom: 0; } }
@media (min-width:1101px) {
 .desktop-surface { padding: 100px 44px 48px; gap: 48px; }
 .hero-footer { order: 0; align-items: flex-end; padding: 0; }
 .hero-footer h1 { max-width: 720px; font-size: clamp(42px,4.4vw,64px); }
 .hero__ghost { top: 18px; font-size: clamp(170px,26vw,330px); opacity: .48; }
 .desktop-grid--toys { width: 100%; max-width: 1080px; height: 372px;
   grid-template-columns: minmax(0,1fr) minmax(0,1fr) minmax(0,.62fr) minmax(0,.62fr);
   grid-template-rows: 174px 174px; gap: 24px; align-items: center; }
 :root .desktop-card--note { grid-column: 1; grid-row: 1 / 3; width: min(100%,280px); height: 300px; justify-self: center; }
 :root .desktop-card--mood { grid-column: 2; grid-row: 1; width: min(100%,288px); height: 132px; justify-self: center; align-self: end; }
 :root .desktop-card--preferences { grid-column: 2; grid-row: 2; width: min(100%,288px); height: 132px; justify-self: center; align-self: start; }
 :root .desktop-card--calendar { grid-column: 3; grid-row: 1; width: min(100%,174px); height: auto; aspect-ratio: 1; justify-self: center; }
 :root .desktop-card--clock { grid-column: 4; grid-row: 1; width: min(100%,174px); height: auto; aspect-ratio: 1; justify-self: center; }
 :root .desktop-card--weather,:root .desktop-card--weather[data-night] { grid-column: 3 / 5; grid-row: 2; width: 100%; height: 174px; }
}
@media (min-width:701px) and (max-width:1100px) {
 .desktop-surface { padding: 40px 28px 36px; gap: 36px; }
 .hero-footer { order: 0; align-items: flex-end; padding: 0; }
 .hero-footer h1 { font-size: clamp(34px,4.4vw,46px); }
 .hero__ghost { top: 18px; opacity: .4; }
 .desktop-grid--toys { width: min(100%,800px); height: auto;
   grid-template-columns: repeat(4,minmax(0,1fr)); grid-template-rows: 132px 132px 184px; gap: 24px; }
 :root .desktop-card--note { grid-column: 1 / 3; grid-row: 1 / 3; width: min(100%,300px); height: 100%; justify-self: center; }
 :root .desktop-card--mood { grid-column: 3 / 5; grid-row: 1; width: min(100%,288px); height: 132px; justify-self: center; }
 :root .desktop-card--preferences { grid-column: 3 / 5; grid-row: 2; width: min(100%,288px); height: 132px; justify-self: center; }
 :root .desktop-card--calendar { grid-column: 1; grid-row: 3; width: min(100%,176px); height: auto; aspect-ratio: 1; justify-self: center; }
 :root .desktop-card--clock { grid-column: 2; grid-row: 3; width: min(100%,176px); height: auto; aspect-ratio: 1; justify-self: center; }
 :root .desktop-card--weather,:root .desktop-card--weather[data-night] { grid-column: 3 / 5; grid-row: 3; width: 100%; height: 180px; }
}
@media (max-width:700px) {
 .desktop-grid--toys { height: auto; grid-template-rows: clamp(230px,65vw,280px) 172px clamp(120px,calc((100vw - 78px)/2),190px) 160px; }
}

/* A flat clock widget, with the same smooth mechanical second hand. */
:root .clock-object { inset: 0; transform: none; transform-style: flat; border-radius: 26px;
  background: #fff; border: 1px solid #ffffffb3; box-shadow: 0 5px 14px #2633510b; }
.clock-object::after { display: none; }
/* Detached widgets keep their dimensions and can sit anywhere on the document. */
.widget-floating-layer { position: absolute; left: 0; top: 0; width: 100%; height: 0; z-index: 56; pointer-events: none; }
:root .widget-floating-layer > .desktop-card { position: absolute; margin: 0; pointer-events: auto;
  transform: none !important; translate: none !important; transition: box-shadow 180ms; }
.widget-placeholder { visibility: hidden; pointer-events: none; }
:root .desktop-card [data-window-handle] { touch-action: none; cursor: grab; }
:root .desktop-card.is-widget-dragging [data-window-handle] { cursor: grabbing; }
:root .desktop-card .is-pointer-focused:focus { outline: none; }
