* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: #171c1b;
  color: #242321;
  font-family: Arial, "Noto Sans KR", sans-serif;
}

.page-shell {
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

/*
 * Responsive artboard:
 * - width follows the available browser width
 * - aspect ratio remains identical to the original 3345 x 1898 canvas
 */
.artboard {
  position: relative;
  width: 100%;
  aspect-ratio: 3345 / 1898;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(115deg, #9a8b78 0 57%, #182321 57% 100%);
}

.background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
  z-index: 0;
}

.asset-warning {
  position: absolute;
  z-index: 5;
  left: 2%;
  bottom: 2%;
  max-width: 96%;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 6px;
  background: rgba(20,20,20,.72);
  color: white;
  font-size: clamp(11px, 1.2vw, 15px);
}
.asset-warning span { display: block; margin-top: 4px; opacity: .85; }

.object {
  position: absolute;
  inset: 0;
  display: block;
  z-index: 2;
  pointer-events: none;
  transform: translateZ(0);
}

.object img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
  pointer-events: none;
  transition: transform .25s ease, filter .25s ease;
  transform-origin: center;
}

.hit-area {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.hit-area use {
  fill: transparent;
  stroke: none;
  pointer-events: fill;
}

.object-2 .hit-area use {
  cursor: pointer;
}

.object.is-hovered img {
  transform: scale(1.02);
  filter: drop-shadow(0 5px 12px rgba(0,0,0,.19));
}

.object-2 {
  z-index: 3;
}

.object:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -4px;
}

.detail-page {
  min-height: 100vh;
  background: #e7e0d5;
}
.detail-content {
  width: min(900px, calc(100% - 40px));
  margin: 8vh auto;
  padding: clamp(24px, 5vw, 64px);
  background: #f4f0e9;
  box-shadow: 0 12px 40px rgba(0,0,0,.08);
}
.back-link { color: inherit; }
.eyebrow { letter-spacing: .18em; font-size: 12px; }
.detail-content h1 { font-family: Georgia, serif; font-weight: 400; }
