/* Museum of You */
:root {
  --gold: #c9a86a;
  --gold-dim: #8a744d;
  --paper: #e8e0cf;
  --ink: #1a160f;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; overflow: hidden; background: #000; }
body { font-family: Georgia, 'Times New Roman', serif; color: var(--paper); }
#scene { position: fixed; inset: 0; display: block; }
#vignette {
  position: fixed; inset: 0; pointer-events: none; z-index: 5;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.55) 100%);
}
.hidden { display: none !important; }

/* ---------- overlays ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at 50% 40%, #17130c 0%, #050403 75%);
}
.title-inner { text-align: center; max-width: 860px; padding: 24px; }
.museum-mark { letter-spacing: .45em; font-size: 11px; color: var(--gold-dim); margin-bottom: 26px; }
h1 {
  font-size: clamp(44px, 8vw, 96px); font-weight: 400; letter-spacing: .08em; color: var(--paper);
  text-shadow: 0 0 40px rgba(201,168,106,.25);
}
h1 span { color: var(--gold); font-style: italic; font-size: .55em; padding: 0 .1em; }
.subtitle { margin-top: 18px; font-style: italic; color: #b3a98f; font-size: 17px; line-height: 1.6; }
.enter-btn {
  margin-top: 34px; padding: 14px 42px; font: inherit; font-size: 15px; letter-spacing: .25em;
  background: transparent; color: var(--gold); border: 1px solid var(--gold-dim); cursor: pointer;
  transition: all .35s ease;
}
.enter-btn:hover:not(:disabled) { background: rgba(201,168,106,.12); border-color: var(--gold); letter-spacing: .32em; }
.enter-btn:disabled { opacity: .45; cursor: wait; }
.controls-hint { margin-top: 40px; display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; font-size: 12px; color: #77705d; letter-spacing: .08em; }
.controls-hint b { color: var(--gold-dim); }
.credits { margin-top: 26px; font-size: 11px; color: #565040; font-style: italic; letter-spacing: .05em; }

.asset-status { margin-top: 30px; width: 420px; max-width: 80vw; margin-left: auto; margin-right: auto; }
.asset-line { font-size: 12px; color: #9c937c; letter-spacing: .1em; margin-bottom: 8px; min-height: 15px; }
.bar { height: 2px; background: #2a251c; }
#asset-bar { height: 100%; width: 0%; background: var(--gold); transition: width .4s ease; }

/* ---------- HUD ---------- */
#hud { position: fixed; inset: 0; z-index: 10; pointer-events: none; }
#objective { position: absolute; top: 26px; left: 30px; }
.obj-label { font-size: 10px; letter-spacing: .35em; color: var(--gold-dim); }
#obj-count { font-size: 30px; color: var(--paper); margin: 4px 0 2px; }
#obj-hint { font-size: 11px; font-style: italic; color: #8d8570; }
#crosshair {
  position: absolute; top: 50%; left: 50%; width: 5px; height: 5px; margin: -2.5px;
  border-radius: 50%; background: rgba(232,224,207,.75); box-shadow: 0 0 6px rgba(0,0,0,.8);
}
#interact-hint {
  position: absolute; top: 58%; left: 50%; transform: translateX(-50%);
  font-size: 14px; letter-spacing: .12em; color: var(--paper);
  background: rgba(8,6,4,.72); border: 1px solid rgba(201,168,106,.35);
  padding: 10px 22px; backdrop-filter: blur(4px);
}
#interact-hint b { color: var(--gold); }
#toast {
  position: absolute; bottom: 60px; left: 50%; transform: translateX(-50%);
  font-size: 14px; font-style: italic; color: var(--paper); letter-spacing: .06em;
  background: rgba(8,6,4,.72); padding: 10px 26px; border-left: 2px solid var(--gold);
}

/* ---------- placard ---------- */
#placard {
  position: fixed; inset: 0; z-index: 15; display: flex; align-items: center; justify-content: center;
  background: rgba(2,2,1,.78); backdrop-filter: blur(6px);
}
.placard-card {
  display: flex; gap: 34px; max-width: 1020px; width: 88vw; align-items: center;
  animation: rise .45s ease;
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.placard-frame {
  flex: 0 0 46%; border: 10px solid #241c10; outline: 1px solid #4d3d22; box-shadow: 0 30px 80px rgba(0,0,0,.8);
  background: #000;
}
.placard-frame img { display: block; width: 100%; height: auto; }
.placard-text { flex: 1; }
.placard-eyebrow { font-size: 10px; letter-spacing: .35em; color: var(--gold-dim); margin-bottom: 14px; }
#placard-title { font-size: 34px; font-weight: 400; color: var(--paper); }
.placard-artist { margin-top: 6px; font-style: italic; color: #a99e83; font-size: 14px; }
#placard-body { margin-top: 20px; font-size: 15.5px; line-height: 1.75; color: #cfc6ae; }
.placard-whisper {
  margin-top: 22px; padding-left: 16px; border-left: 2px solid var(--gold-dim);
  font-style: italic; color: var(--gold); font-size: 15px; line-height: 1.6; min-height: 20px;
}
.link-btn {
  margin-top: 26px; background: none; border: none; font: inherit; font-size: 12px;
  letter-spacing: .2em; color: #8d8570; cursor: pointer;
}
.link-btn:hover { color: var(--gold); }

/* ---------- chat ---------- */
#chat {
  position: fixed; right: 26px; bottom: 26px; z-index: 16; width: 400px; max-height: 62vh;
  display: flex; flex-direction: column; background: rgba(10,8,5,.92); border: 1px solid rgba(201,168,106,.3);
  backdrop-filter: blur(8px);
}
.chat-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid rgba(201,168,106,.2); }
.chat-title { font-size: 11px; letter-spacing: .3em; color: var(--gold); }
#chat-log { overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.msg { font-size: 14px; line-height: 1.55; }
.msg.you { color: #9a9179; align-self: flex-end; text-align: right; max-width: 85%; }
.msg.cur { color: #e4dcc6; max-width: 95%; border-left: 2px solid var(--gold-dim); padding-left: 10px; font-style: italic; }
#chat-form { display: flex; border-top: 1px solid rgba(201,168,106,.2); }
#chat-input {
  flex: 1; background: transparent; border: none; color: var(--paper); font: inherit; font-size: 14px;
  padding: 12px 14px; outline: none;
}
#chat-form button {
  background: transparent; border: none; color: var(--gold); font: inherit; font-size: 12px;
  letter-spacing: .2em; cursor: pointer; padding: 0 16px;
}

/* ---------- ending ---------- */
.ending-title { font-size: clamp(36px, 6vw, 72px); }
