/* the rooms are hung (session 105). then struck, shipped, stood on a rink
   carpet, left on a porch, photocopied. all that's over.

   session 112: a room is a room, straight, in its own colours. what's around
   it is the colour of the whole site, and nobody here chose that. */

html[data-hung] {
  --gut: clamp(12px, 5vw, 88px);
  --top: clamp(56px, 9vh, 96px);
  --foot: clamp(56px, 10vh, 120px);
  background: var(--coat, #fff) !important;
  transition: background-color 1.2s;
  overflow-x: hidden !important;
  height: auto !important;
  min-height: 100% !important;
}

html[data-hung] > body {
  position: relative !important;
  margin: var(--top) var(--gut) var(--foot) !important;
  min-height: calc(100vh - var(--top) - var(--foot)) !important;
  z-index: 1 !important;
  box-shadow: 0 0 0 1px var(--ink, #000) !important;
}

/* outside is a whole sky, cut down to fit the frame */
html[data-hung="outside"] > body {
  height: calc(100vh - var(--top) - var(--foot)) !important;
  overflow: hidden !important;
}
html[data-hung="outside"] { overflow-y: hidden !important; }

.hang-hook {
  position: absolute;
  left: var(--gut);
  top: calc(var(--top) - 34px);
  z-index: 2147483001;
  font: 700 17px/1.3 "Helvetica Neue", Arial, system-ui, sans-serif;
  letter-spacing: -0.01em;
  color: var(--ink, #000) !important;
  text-decoration: underline !important;
  white-space: nowrap;
}
.hang-hook:hover { text-decoration: none !important; }
.hang-hook:focus-visible { outline: 3px solid var(--ink, #000); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) { html[data-hung] { transition: none; } }

/* ── you sent them away with nothing ─────────────────────────
   it stays where it is while the room scrolls under it */
.egged { position: fixed; inset: 0; z-index: 2147483000; pointer-events: none; overflow: hidden; }
.egged .yolk { position: absolute; top: 0; height: auto; }
.egged .yolk.a { left: 6vw; width: clamp(90px, 13vw, 180px); }
.egged .yolk.b { right: 10vw; top: 22vh; width: clamp(70px, 9vw, 130px); }
.egged .tp {
  position: absolute; top: -8px; width: clamp(16px, 2.6vw, 34px);
  background: repeating-linear-gradient(180deg, #F7F4EA 0 26px, #C9C4B3 26px 27px);
  box-shadow: 2px 2px 3px rgba(0,0,0,0.5);
  transform-origin: 50% 0;
  animation: hang-sway 4.2s ease-in-out infinite alternate;
}
.egged .tp.one { left: 1.5vw; height: 46vh; transform: rotate(2deg); }
.egged .tp.two { right: 34%; height: 16vh; transform: rotate(-3deg); animation-delay: -1.3s; }
.egged .tp.three { right: 4%; height: 70vh; transform: rotate(1deg); animation-delay: -2.4s; }
@keyframes hang-sway { from { rotate: -1.4deg; } to { rotate: 1.4deg; } }
.egged b, .wrapper b { position: absolute; font: 400 17px/1 'Permanent Marker', 'Comic Sans MS', cursive; }
.egged b { right: 14px; bottom: 10px; color: #FFD76A; text-shadow: 1px 1px 0 #000; }

.wrapper { position: fixed; right: 14px; bottom: 10px; z-index: 2147483000; pointer-events: none; text-align: right; rotate: -4deg; }
.wrapper svg { width: 64px; display: block; margin-left: auto; }
.wrapper b { position: static; display: block; color: #FFD76A; text-shadow: 1px 1px 0 #000; }

@media (prefers-reduced-motion: reduce) { .egged .tp { animation: none; } }

/* a room prints without the colour */
@media print {
  html[data-hung] { background: #fff !important; }
  html[data-hung] > body { margin: 0 !important; transform: none !important; box-shadow: none !important; }
  .hang-hook, .egged, .wrapper { display: none !important; }
}
