*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  background: #fff;
  min-height: 100vh;
  overflow-x: hidden;
}

body {
  position: relative;
}

.marquee-outer {
  position: absolute;
  top: 6vh;
  left: 0;
  width: 100%;
  overflow-x: clip;
  overflow-y: visible;
  z-index: 0;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.marquee-track {
  display: flex;
  white-space: nowrap;
  width: max-content;
  animation: marquee-scroll 18s linear infinite;
}

.marquee-content {
  font-family: "Arial Narrow", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 900;
  font-size: 8vw;
  color: #000;
  letter-spacing: -0.02em;
  padding-right: 0.18em;
  display: inline-block;
  transform: scaleY(2);
  transform-origin: top left;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.canvas {
  position: relative;
  min-height: 100vh;
  min-width: 900px;
}

.img-frame {
  position: absolute;
  z-index: 2;
}

.img-frame .file-label {
  display: block;
  font-family: monospace;
  font-size: 11px;
  color: #000;
  margin-bottom: 3px;
  line-height: 1;
}

.img-frame .img-box {
  position: relative;
  border: 2px solid #000;
  display: block;
  line-height: 0;
  overflow: hidden;
}

.img-frame .img-box img {
  display: block;
  width: 100%;
  height: auto;
}

.frame-desk {
  left: 10vw;
  bottom: 5vw;
  width: clamp(500px, 44vw, 950px);
  --desk-crop-top:    146px;
  --desk-crop-right:  50px;
  --desk-crop-bottom: 34px;
  --desk-crop-left:   20px;
}

.frame-desk .img-inner {
  position: relative;
  margin-top:    calc(-1 * var(--desk-crop-top));
  margin-bottom: calc(-1 * var(--desk-crop-bottom));
  margin-left:   calc(-1 * var(--desk-crop-left));
  width: calc(100% + var(--desk-crop-left) + var(--desk-crop-right));
}

.frame-shelf {
  right: 2vw;
  top: 2vw;
  width: clamp(360px, 30vw, 650px);
  --shelf-crop-top:    25px;
  --shelf-crop-right:  10px;
  --shelf-crop-bottom: 60px;
  --shelf-crop-left:   20px;
}

.frame-shelf .img-inner {
  position: relative;
  margin-top:    calc(-1 * var(--shelf-crop-top));
  margin-bottom: calc(-1 * var(--shelf-crop-bottom));
  margin-left:   calc(-1 * var(--shelf-crop-left));
  width: calc(100% + var(--shelf-crop-left) + var(--shelf-crop-right));
}

.img-box .hotspot-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.color-layer {
  pointer-events: none;
}

.hotspot-path {
  fill: transparent;
  cursor: pointer;
  pointer-events: fill;
}

.hotspot-link[data-not-ready] {
  cursor: default;
  pointer-events: none;
}

.hotspot-link[data-not-ready] .hotspot-path {
  pointer-events: none;
}

/* Shelf zoom hotspots — re-enable interaction despite data-not-ready */
.hotspot-link[data-not-ready][data-linked^="shelf"] {
  cursor: pointer;
  pointer-events: auto;
}

.hotspot-link[data-not-ready][data-linked^="shelf"] .hotspot-path {
  pointer-events: fill;
}

.privacy-policy-link {
  position: fixed;
  bottom: 10px;
  right: 14px;
  font-family: monospace;
  font-size: 10px;
  color: #000;
  text-decoration: none;
  z-index: 10;
}

.privacy-policy-link:hover {
  text-decoration: underline;
}

#shelf-enhance-svg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 30;
  overflow: visible;
}

#shelf-enhance-wrap {
  display: none;
  position: fixed;
  width: 800px;
  z-index: 40;
  pointer-events: none;
}

#shelf-enhance-wrap .file-label {
  display: block;
  font-family: monospace;
  font-size: 11px;
  color: #000;
  margin-bottom: 3px;
  line-height: 1;
}

#shelf-enhance-imgbox {
  position: relative;
  border: 2px solid #000;
  background: #fff;
  line-height: 0;
  overflow: hidden;
  width: 600px;
  height: 375px;
  pointer-events: auto;
}

#shelf-enhance-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#shelf-enhance-close {
  position: absolute;
  top: 4px;
  right: 4px;
  font-family: monospace;
  font-size: 11px;
  color: #000;
  background: #fff;
  border: 1px solid #000;
  padding: 1px 4px;
  cursor: pointer;
  line-height: 1;
  z-index: 1;
}
