/* Valhallan Build It configurator — matches the site palette (deep brown, parchment, Cinzel / Cormorant) */
.vhc-root { --bg: #1c140b; --panel: #241a10; --line: rgba(232, 213, 188, .16); --ink: #efe2cf; --mute: rgba(232, 213, 188, .68);
  --accent: #c8894a; --accent2: #e3a866; --chip: rgba(255, 255, 255, .04); width: 100%; max-width: 1400px; margin: 0 auto; color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 15px; line-height: 1.45; text-align: left; }
.vhc-root *, .vhc-root *::before, .vhc-root *::after { box-sizing: border-box; }
.vhc { display: grid; grid-template-columns: minmax(0, 1fr) 410px; height: min(88vh, 900px); min-height: 560px; border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden; background: var(--bg); box-shadow: 0 18px 50px rgba(0, 0, 0, .45); }
.vhc-stage { position: relative; min-width: 0; background: #0f1418; }
.vhc-canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.vhc-canvas:active { cursor: grabbing; }
.vhc-loading { position: absolute; inset: 0; display: grid; place-items: center; font-family: "Cinzel", serif; letter-spacing: .08em; color: var(--mute); }
.vhc-readout { position: absolute; left: 16px; top: 14px; padding: 7px 12px; border-radius: 999px; background: rgba(20, 14, 8, .72); backdrop-filter: blur(6px);
  font-size: 13px; color: var(--ink); border: 1px solid var(--line); pointer-events: none; }
.vhc-readout b { font-weight: 650; }
.vhc-viewbar { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; gap: 4px; padding: 4px; border-radius: 999px;
  background: rgba(20, 14, 8, .78); backdrop-filter: blur(6px); border: 1px solid var(--line); flex-wrap: wrap; justify-content: center; max-width: calc(100% - 24px); }
.vhc-viewbar button { all: unset; cursor: pointer; padding: 6px 12px; border-radius: 999px; font-size: 13px; color: var(--ink); }
.vhc-viewbar button:hover { background: rgba(255, 255, 255, .08); }
.vhc-viewbar button.on { background: var(--accent); color: #1b1108; }
.vhc-viewbar button:focus-visible { outline: 2px solid var(--accent2); }
.vhc-sep { width: 1px; background: var(--line); margin: 4px 2px; }
.vhc-hint { position: absolute; right: 14px; top: 16px; font-size: 12px; color: rgba(255, 255, 255, .6); pointer-events: none; text-shadow: 0 1px 2px #000; }
.vhc-panel { display: flex; flex-direction: column; min-height: 0; background: var(--panel); border-left: 1px solid var(--line); }
.vhc-panel-head { padding: 22px 22px 8px; }
.vhc-kicker { font-family: "Cinzel", serif; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent2); }
.vhc-title { font-family: "Cinzel", serif; font-size: 25px; font-weight: 600; margin: 4px 0 6px; color: var(--ink); line-height: 1.2; }
.vhc-lede { margin: 0; color: var(--mute); font-family: "Cormorant Garamond", Georgia, serif; font-size: 17px; font-style: italic; }
.vhc-sections { flex: 1; overflow-y: auto; padding: 8px 14px 12px; overscroll-behavior: contain; }
.vhc-sec { border: 1px solid var(--line); border-radius: 12px; margin: 8px 0; background: rgba(0, 0, 0, .14); }
.vhc-sec-h { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 10px; width: 100%; padding: 13px 14px;
  font-family: "Cinzel", serif; font-weight: 600; font-size: 15px; color: var(--ink); }
.vhc-sec-h:focus-visible { outline: 2px solid var(--accent2); border-radius: 12px; }
.vhc-num { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(200, 137, 74, .2); color: var(--accent2); font-size: 12px; flex: none; }
.vhc-sec-sum { margin-left: auto; font-family: system-ui, sans-serif; font-weight: 400; font-size: 12px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 45%; }
.vhc-chev { width: 8px; height: 8px; border-right: 2px solid var(--mute); border-bottom: 2px solid var(--mute); transform: rotate(45deg); transition: transform .2s; flex: none; margin-top: -4px; }
.vhc-sec.open .vhc-chev { transform: rotate(-135deg); margin-top: 4px; }
.vhc-sec-b { padding: 0 14px 6px; }
.vhc-sec:not(.open) .vhc-sec-b { display: none; }
.vhc-field { padding: 10px 0 12px; border-top: 1px solid rgba(232, 213, 188, .08); }
.vhc-field:first-child { border-top: 0; padding-top: 2px; }
.vhc-label { font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--ink); margin-bottom: 8px; }
.vhc-pill { font-weight: 500; font-size: 11px; padding: 2px 8px; border-radius: 999px; background: rgba(120, 190, 140, .18); color: #a9e0b8; margin-left: 6px; }
.vhc-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 7px; }
.vhc-chips.tall { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.vhc-chip { all: unset; box-sizing: border-box; cursor: pointer; padding: 9px 11px; border-radius: 10px; border: 1px solid var(--line); background: var(--chip);
  color: var(--ink); font-size: 13.5px; display: flex; flex-direction: column; gap: 2px; transition: border-color .15s, background .15s; min-height: 40px; justify-content: center; }
.vhc-chip small { font-size: 11.5px; color: var(--mute); line-height: 1.25; }
.vhc-chip:hover { border-color: rgba(227, 168, 102, .55); }
.vhc-chip.on { border-color: var(--accent); background: rgba(200, 137, 74, .2); box-shadow: inset 0 0 0 1px var(--accent); }
.vhc-chip:focus-visible { outline: 2px solid var(--accent2); outline-offset: 1px; }
.vhc-stepper { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.vhc-stepper button { all: unset; cursor: pointer; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); display: grid; place-items: center; font-size: 20px; color: var(--ink); background: var(--chip); }
.vhc-stepper button:hover { border-color: var(--accent); }
.vhc-stepper output { min-width: 34px; text-align: center; font-family: "Cinzel", serif; font-size: 22px; color: var(--ink); }
.vhc-hintline { font-size: 12px; color: var(--mute); flex-basis: 100%; }
.vhc-slider { display: flex; align-items: center; gap: 12px; }
.vhc-slider input { flex: 1; accent-color: var(--accent); }
.vhc-slider output { min-width: 52px; text-align: right; }
.vhc-toggle { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 14px; }
.vhc-toggle span { width: 42px; height: 24px; border-radius: 999px; background: rgba(255, 255, 255, .15); position: relative; transition: background .2s; }
.vhc-toggle span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: left .2s; }
.vhc-toggle.on span { background: var(--accent); }
.vhc-toggle.on span::after { left: 21px; }
.vhc-note { margin-top: 8px; font-size: 12px; color: var(--mute); }
.vhc-cta { padding: 14px 18px 18px; border-top: 1px solid var(--line); background: rgba(0, 0, 0, .2); }
.vhc-make { all: unset; box-sizing: border-box; cursor: pointer; display: block; width: 100%; text-align: center; padding: 15px 18px; border-radius: 12px;
  background: linear-gradient(180deg, #d79552, #b97534); color: #1b1108; font-family: "Cinzel", serif; font-weight: 700; font-size: 17px; letter-spacing: .06em;
  box-shadow: 0 6px 18px rgba(200, 137, 74, .35); transition: transform .1s, filter .15s; }
.vhc-make:hover { filter: brightness(1.07); }
.vhc-make:active { transform: translateY(1px); }
.vhc-make:disabled { opacity: .6; cursor: progress; }
.vhc-make:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.vhc-cta-row { display: flex; justify-content: space-between; margin-top: 10px; }
.vhc-link { all: unset; cursor: pointer; font-size: 13px; color: var(--mute); text-decoration: underline; text-underline-offset: 3px; }
.vhc-link:hover { color: var(--ink); }
/* modal */
.vhc-modal { position: fixed; inset: 0; z-index: 99999; background: rgba(8, 5, 2, .72); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 16px; }
.vhc-modal[hidden] { display: none; }
.vhc-dialog { position: relative; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: var(--panel); color: var(--ink);
  border: 1px solid var(--line); border-radius: 16px; padding: 26px 24px 22px; box-shadow: 0 24px 70px rgba(0, 0, 0, .6); }
.vhc-dialog h3 { font-family: "Cinzel", serif; font-size: 24px; margin: 0 0 6px; color: var(--ink); }
.vhc-mlede { margin: 0 0 14px; color: var(--mute); }
.vhc-close { all: unset; cursor: pointer; position: absolute; right: 14px; top: 10px; font-size: 28px; line-height: 1; color: var(--mute); padding: 4px 8px; }
.vhc-summary { max-height: 180px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 14px; background: rgba(0, 0, 0, .18); }
.vhc-summary dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 14px; margin: 0; font-size: 13px; }
.vhc-summary dt { color: var(--mute); }
.vhc-summary dd { margin: 0; }
.vhc-form label { display: block; font-size: 13px; font-weight: 600; margin: 10px 0 0; color: var(--ink); }
.vhc-opt { font-weight: 400; color: var(--mute); }
.vhc-form input, .vhc-form select, .vhc-form textarea { display: block; width: 100%; margin-top: 5px; padding: 10px 12px; border-radius: 9px; border: 1px solid var(--line);
  background: rgba(0, 0, 0, .28); color: var(--ink); font: inherit; font-weight: 400; }
.vhc-form select option { color: #111; }
.vhc-form input:focus, .vhc-form select:focus, .vhc-form textarea:focus { outline: 2px solid var(--accent); border-color: transparent; }
.vhc-form .vhc-make { margin-top: 18px; }
.vhc-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.vhc-err { color: #ffb4a2; font-size: 13.5px; margin-top: 10px; min-height: 1px; }
.vhc-err a { color: #ffd6c9; }
.vhc-done p { color: var(--ink); }
.vhc-tag { font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-size: 19px; color: var(--accent2) !important; }
body.vhc-lock { overflow: hidden; }
@media (max-width: 960px) {
  .vhc { grid-template-columns: 1fr; height: auto; min-height: 0; }
  .vhc-stage { height: 56vh; min-height: 340px; position: sticky; top: 0; z-index: 2; }
  .vhc-panel { border-left: 0; border-top: 1px solid var(--line); }
  .vhc-sections { overflow: visible; }
  .vhc-hint { display: none; }
  .vhc-viewbar { flex-wrap: nowrap; }
  .vhc-cta { position: sticky; bottom: 0; z-index: 3; background: var(--panel); }
}
@media (max-width: 520px) {
  .vhc-root { font-size: 14px; }
  .vhc-stage { height: 48vh; }
  .vhc-viewbar { flex-wrap: wrap; justify-content: center; row-gap: 2px; bottom: 10px; width: max-content; max-width: calc(100% - 20px); border-radius: 18px; }
  .vhc-viewbar .vhc-sep { display: none; }
  .vhc-viewbar .vhc-sep:first-of-type { display: block; flex-basis: 100%; height: 0; width: auto; margin: 0; background: none; }   /* views on top, scenes below */
  .vhc-viewbar button { padding: 6px 10px; font-size: 12.5px; flex: none; }
  .vhc-viewbar [data-scene="day"] { margin-left: 0; }
  .vhc-readout { font-size: 12px; left: 10px; top: 10px; }
  .vhc-chips.tall { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) { .vhc-chev, .vhc-toggle span, .vhc-toggle span::after { transition: none; } }

/* door hotspot + step inside */
.vhc-hot { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; z-index: 2; }
.vhc-hot[hidden] { display: none; }
.vhc-hot button { pointer-events: auto; }
.vhc-door-btn, .vhc-in-btn, .vhc-exit { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 999px;
  background: rgba(20, 14, 8, .82); color: var(--ink); border: 1px solid rgba(227, 168, 102, .7); font-size: 13.5px; font-weight: 600; backdrop-filter: blur(6px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .4); white-space: nowrap; }
.vhc-door-btn:hover, .vhc-in-btn:hover, .vhc-exit:hover { background: rgba(200, 137, 74, .9); color: #1b1108; }
.vhc-door-btn:focus-visible, .vhc-in-btn:focus-visible, .vhc-exit:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.vhc-in-btn { background: linear-gradient(180deg, #d79552, #b97534); color: #1b1108; border-color: transparent; }
.vhc-in-btn[hidden], .vhc-exit[hidden] { display: none; }
.vhc-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent2); box-shadow: 0 0 0 0 rgba(227, 168, 102, .7); animation: vhc-pulse 1.8s infinite; }
@keyframes vhc-pulse { 0% { box-shadow: 0 0 0 0 rgba(227, 168, 102, .7); } 70% { box-shadow: 0 0 0 10px rgba(227, 168, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(227, 168, 102, 0); } }
.vhc-exit { position: absolute; left: 50%; top: 56px; transform: translateX(-50%); z-index: 2; }
@media (prefers-reduced-motion: reduce) { .vhc-dot { animation: none; } }

/* quick / detailed mode switch */
.vhc-mode { display: inline-flex; margin-top: 12px; padding: 3px; border-radius: 999px; border: 1px solid var(--line); background: rgba(0, 0, 0, .25); }
.vhc-mode button { all: unset; cursor: pointer; padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--mute); }
.vhc-mode button.on { background: var(--accent); color: #1b1108; }
.vhc-mode button:focus-visible { outline: 2px solid var(--accent2); }

/* full screen */
.vhc-root.vhc-full { position: fixed; inset: 0; z-index: 99990; max-width: none; margin: 0; background: #1c140b; }
.vhc-root.vhc-full .vhc { height: 100vh; height: 100dvh; max-height: none; border-radius: 0; border: 0; }
.vhc-root:fullscreen { background: #1c140b; }
@media (max-width: 960px) {
  .vhc-root.vhc-full { overflow-y: auto; }
  .vhc-root.vhc-full .vhc { height: auto; min-height: 100dvh; }
  .vhc-root.vhc-full .vhc-stage { height: 60dvh; }
}
/* premade model picker */
.vhc-models { margin-top: 14px; }
.vhc-models-l { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); margin-bottom: 8px; }
.vhc-model-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.vhc-model { all: unset; cursor: pointer; display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0, 0, 0, .22); transition: border-color .15s, background .15s; }
.vhc-model b { font-family: 'Cinzel', 'Cormorant Garamond', serif; font-size: 16px; letter-spacing: .04em; color: var(--ink); }
.vhc-model small { font-size: 11.5px; line-height: 1.3; color: var(--mute); }
.vhc-model:hover { border-color: rgba(232, 168, 122, .55); }
.vhc-model.on { border-color: var(--accent); background: rgba(232, 168, 122, .14); }
.vhc-model:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* gesture hint: touch wording on touchscreens, shown on phones too, fades after the first spin */
.vhc-hint-t { display: none; }
.vhc-hint { transition: opacity .6s; }
.vhc-root.vhc-touched .vhc-hint { opacity: 0; }
@media (pointer: coarse) {
  .vhc-hint-m { display: none; }
  .vhc-hint-t { display: inline; }
  .vhc-root .vhc-hint { display: block; left: 14px; right: auto; top: 54px; font-size: 12.5px; color: rgba(255, 255, 255, .85); }
}
