/* OOP GALLERY — 먹빛 + 샴페인 골드 한 가지. 장식 없음, 글은 미술관 벽 카드처럼 적게. */
:root { --gold: #c9a24a; --cream: #e8dfcb; --ink: #050403; }
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { width: 100%; height: 100%; background: var(--ink); overflow: hidden; touch-action: none; overscroll-behavior: none; }
body { font-family: "Noto Serif KR", "Cormorant Garamond", "Times New Roman", serif; color: var(--cream); font-weight: 300; }
#stage { position: fixed; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; }
#stage.drag { cursor: grabbing; }

#vignette { position: fixed; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 50%, transparent 45%, rgba(0,0,0,.72) 100%); }
.lid { position: fixed; left: 0; right: 0; height: 0; background: #000; pointer-events: none; z-index: 4; }
#lid-top { top: 0; box-shadow: 0 18px 48px 22px #000; }
#lid-bottom { bottom: 0; box-shadow: 0 -18px 48px 22px #000; }

#brand { position: fixed; top: max(22px, env(safe-area-inset-top)); left: 28px; font-family: "Cormorant Garamond", serif; font-weight: 400; font-size: 13px; letter-spacing: .5em; color: rgba(201,162,74,.8); pointer-events: none; z-index: 3; }

#snd { position: fixed; top: max(18px, env(safe-area-inset-top)); right: 28px; background: transparent; border: 0; color: rgba(232,223,203,.8); font: inherit; font-size: 12px; letter-spacing: .5em; padding: 4px 0 6px .5em; border-bottom: 1px solid rgba(201,162,74,.45); cursor: pointer; z-index: 3; transition: opacity 2s ease; }
#snd.off { color: rgba(232,223,203,.35); border-bottom-color: rgba(201,162,74,.15); text-decoration: line-through; }
.hidden { opacity: 0 !important; pointer-events: none !important; }

#label { position: fixed; left: 28px; bottom: max(28px, env(safe-area-inset-bottom)); width: 236px; padding: 20px 20px 18px; background: rgba(10,8,6,.62); border: 1px solid rgba(201,162,74,.28); backdrop-filter: blur(6px); z-index: 3; transition: opacity 2.4s ease; }
#label .op { font-family: "Cormorant Garamond", serif; letter-spacing: .4em; font-size: 11px; color: var(--gold); }
#label .artist { margin-top: 10px; font-size: 19px; font-weight: 400; letter-spacing: .12em; }
#label .artist-en { font-family: "Cormorant Garamond", serif; font-size: 11px; letter-spacing: .38em; color: rgba(232,223,203,.6); margin-top: 3px; }
#label .series { margin-top: 10px; font-size: 12px; letter-spacing: .3em; color: rgba(232,223,203,.75); }
#label .rule { height: 1px; background: rgba(201,162,74,.28); margin: 14px 0 12px; }
#label .row { display: flex; align-items: center; font-size: 12px; margin-top: 8px; }
#label .k { width: 3.6em; color: rgba(232,223,203,.55); letter-spacing: .12em; }
#label .v { letter-spacing: .08em; }
#label .redact { display: inline-block; width: 9.4em; height: .95em; background: #d8cdb4; opacity: .82; }
#inquire { white-space: nowrap; margin-top: 16px; width: 100%; padding: 11px 0; background: transparent; color: var(--cream); border: 1px solid rgba(201,162,74,.6); font: inherit; font-size: 12px; letter-spacing: .5em; text-indent: .5em; cursor: pointer; transition: background .5s, color .5s; }
#inquire:hover { background: var(--gold); color: #120d06; }
#contact.hidden { display: none !important; }
#contact { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; transition: opacity 1.4s ease; }
#contact a { color: var(--gold); text-decoration: none; font-family: "Cormorant Garamond", serif; font-size: 15px; letter-spacing: .14em; }
#contact:not(.hidden) ~ #inquire, #label.opened #inquire { display: none; }

#flip { position: fixed; right: 28px; bottom: max(36px, env(safe-area-inset-bottom)); background: transparent; border: 0; border-bottom: 1px solid rgba(201,162,74,.5); color: rgba(232,223,203,.85); font: inherit; font-size: 13px; letter-spacing: .5em; padding: 6px 0 8px .5em; cursor: pointer; z-index: 3; transition: opacity 2s ease; }

#backword { position: fixed; left: 50%; bottom: 7vh; transform: translateX(-50%); width: min(560px, 82vw); text-align: center; font-size: 15px; line-height: 2; letter-spacing: .2em; color: rgba(232,223,203,.88); z-index: 3; transition: opacity 1.8s ease; pointer-events: none; }

#intro { position: fixed; inset: 0; background: #000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 46px; z-index: 10; transition: opacity 2.6s ease; }
#intro .line { font-size: clamp(15px, 2.4vw, 22px); letter-spacing: .38em; text-indent: .38em; color: rgba(232,223,203,.9); opacity: 0; animation: rise 3.4s ease .8s forwards; text-align: center; padding: 0 24px; line-height: 2; }
#enter { background: transparent; border: 0; border-bottom: 1px solid rgba(201,162,74,.55); color: var(--gold); font: inherit; font-size: 12px; letter-spacing: .6em; text-indent: .6em; padding: 8px 0 10px; opacity: 0; animation: rise 2.6s ease 3.2s forwards; cursor: pointer; }
#intro.gone { opacity: 0; pointer-events: none; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (max-width: 640px) {
  #brand { left: 20px; font-size: 11px; }
  #label { left: 14px; right: 14px; width: auto; max-width: calc(100vw - 28px); bottom: max(64px, env(safe-area-inset-bottom)); padding: 14px 16px 16px; display: block; overflow: hidden; }
  #label .artist-en { display: none; }
  #label .artist { margin-top: 6px; font-size: 16px; }
  #label .series { margin-top: 4px; }
  #label .rule { margin: 8px 0 6px; }
  #label .row { margin-top: 5px; }
  #contact a { font-size: 14px; }
  #inquire { width: 100%; margin: 12px 0 0; padding: 12px 0; letter-spacing: .4em; text-indent: .4em; white-space: nowrap; }
  #label .redact { width: min(9.4em, 40vw); }
  #intro .line { letter-spacing: .18em; text-indent: .18em; font-size: 15px; word-break: keep-all; }
  #flip { right: 20px; bottom: max(22px, env(safe-area-inset-bottom)); }
  #backword { bottom: 22vh; font-size: 13px; }
}
