:root {
  --felt: #b7a28c;
  --wall: #7d7266;
  --twine: #c4a36a;
  --twine-dark: #8a6a3e;
  --pin: #c5c0b6;
  --pin-center: #8d877c;
  --shadow: rgba(40, 28, 16, 0.32);
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  height: 100%;
  background: #6f655b url("assets/wall.jpg") center/320px repeat;
  font-family: "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
  color: #2a241c;
  overflow: hidden;
}
.wall {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.scene {
  width: 1600px;
  height: 1120px;
  position: relative;
  flex: 0 0 auto;
  transform-origin: center center;
}
.board {
  position: absolute;
  left: 40px;
  top: 24px;
  width: 1520px;
  height: 880px;
  background-color: var(--felt);
  background-image: url("assets/felt.jpg");
  background-size: 280px 280px;
  border-radius: 28px;
  box-shadow:
    0 18px 40px rgba(0,0,0,.28),
    0 2px 0 rgba(255,255,255,.18) inset,
    0 -8px 18px rgba(0,0,0,.12) inset;
  overflow: visible;
}
.board::before {
  /* rounded inner lip */
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 20px;
  box-shadow: 0 0 0 2px rgba(90,70,50,.12);
  pointer-events: none;
  z-index: 5;
}
.map-wrap {
  position: absolute;
  left: 17.5%;
  top: 16.5%;
  width: 65%;
  height: 66%;
  z-index: 2;
  pointer-events: none;
}
.map-wrap svg, .map-wrap img, .map-wrap object {
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: auto;
}
.strings {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
  overflow: visible;
}
.polaroids { position: absolute; inset: 0; z-index: 4; }
.polaroid {
  position: absolute;
  width: 108px;
  padding: 6px 6px 22px;
  background: #f7f4ee;
  box-shadow: 0 3px 6px var(--shadow), 0 1px 0 #fff inset;
  border-radius: 1px;
  cursor: pointer;
  transform-origin: 50% 8%;
  transition: transform .25s ease, box-shadow .25s ease, z-index 0s;
  z-index: 4;
}
.polaroid:hover, .polaroid:focus-visible {
  z-index: 20;
  box-shadow: 0 10px 20px rgba(0,0,0,.35);
  outline: none;
}
.polaroid img {
  display: block;
  width: 96px;
  height: 96px;
  object-fit: cover;
  background: #ddd;
}
.polaroid .pin {
  position: absolute;
  top: -3px;
  left: 50%;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f2efe8, var(--pin) 45%, var(--pin-center));
  box-shadow: 0 1px 2px rgba(0,0,0,.4);
  z-index: 2;
}
.polaroid figcaption { display: none; /* board stays clean; title is in the lightbox */
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 4px;
  font-size: 9px;
  text-align: center;
  color: #6a6056;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.02em;
}
.logo {
  position: absolute;
  z-index: 6;
  pointer-events: none;
  filter: drop-shadow(0 3px 4px rgba(0,0,0,.25));
}
.logo-tr { right: 36px; top: 70px; width: 230px; transform: rotate(6deg); }
.logo-bl { left: 28px; bottom: 36px; width: 230px; transform: rotate(-7deg); }

.strip-rail {
  position: absolute;
  left: 56px;
  top: 892px;
  width: 1488px;
  height: 210px;
  z-index: 4;
}
.strips {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0 8px;
  height: 100%;
}
.strip {
  position: relative;
  width: 58px;
  cursor: pointer;
  transform-origin: 50% 0;
  transition: transform .2s ease;
}
.strip:hover { transform: translateY(4px) rotate(0deg) !important; z-index: 10; }
.clip {
  position: relative;
  z-index: 2;
  width: 26px;
  height: 28px;
  margin: 0 auto -6px;
  border-radius: 40% 40% 20% 20% / 45% 45% 20% 20%;
  box-shadow: 0 2px 3px rgba(0,0,0,.3);
}
.clip::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 7px;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: rgba(255,255,255,.35);
  box-shadow: inset 0 1px 1px rgba(0,0,0,.2);
}
.strip-card {
  background: #f7f4ee;
  padding: 3px 3px 16px;
  box-shadow: 0 4px 8px rgba(0,0,0,.28);
}
.strip-card img {
  display: block;
  width: 52px;
  height: 118px;
  object-fit: cover;
  background: #ddd;
}

/* lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20,16,12,.82);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
  cursor: zoom-out;
  padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox figure {
  margin: 0;
  max-width: min(92vw, 1100px);
  max-height: 92vh;
  text-align: center;
}
.lightbox img {
  max-width: 92vw;
  max-height: 82vh;
  object-fit: contain;
  box-shadow: 0 12px 40px rgba(0,0,0,.5);
  background: #111;
  border: 10px solid #f7f4ee;
  border-bottom-width: 36px;
}
.lightbox figcaption {
  color: #f3ece3;
  margin-top: 14px;
  font-size: 15px;
  letter-spacing: .04em;
}
.hint {
  position: fixed;
  right: 14px;
  bottom: 10px;
  font-size: 12px;
  color: rgba(255,255,255,.45);
  z-index: 8;
  pointer-events: none;
}
@media print {
  .hint, .lightbox { display: none !important; }
  body { background: #fff; overflow: visible; }
}
