/* ═══════════════════════════════════════════════════════════════════
   AURELIA · signature theme — "black glass & champagne"
   The interface is dressed like the products it presents: surfaces are
   black glass plates, an active control glows warm like a lit touch key
   (with its small status LED), metal accents are brushed champagne, and
   the loading bar lights key by key like the piano stair.
   Performance: static gradients and shadows only — no backdrop blur and
   no animation over the live 3D view (the loader animates only before
   the 3D starts).
   ═══════════════════════════════════════════════════════════════════ */
:root {
  --glass-a: #121318; --glass-b: #0b0c0f;
  --champ-1: #f3e2bb; --champ-2: #d3b06b; --champ-3: #8f6d34;
  --warm: #ffd49a; --warm-glow: rgba(255, 186, 104, .55);
  --edge-hi: rgba(255, 244, 222, .085);
  --key-on: inset 0 0 0 1px rgba(232, 204, 148, .5), inset 0 -10px 16px -12px rgba(255, 190, 110, .85), 0 0 18px -6px var(--warm-glow);
}
::selection { background: rgba(211, 176, 107, .38); color: #fff; }
* { scrollbar-color: rgba(211, 176, 107, .28) transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: rgba(211, 176, 107, .22); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: rgba(211, 176, 107, .4); }
::-webkit-scrollbar-track { background: transparent; }

/* ── top bar: a black glass lintel with a champagne hairline ── */
.topbar { background: linear-gradient(180deg, #15161b 0%, #0c0d10 100%); border-bottom-color: transparent; }
.topbar::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, rgba(211, 176, 107, .55) 18%, rgba(243, 226, 187, .75) 50%, rgba(211, 176, 107, .55) 82%, transparent 100%); }
/* brand mark: a glass key with its glyph lit */
.brand .mark { color: var(--warm); background: radial-gradient(120% 90% at 30% 15%, #2a2620 0%, #0d0d10 70%);
  box-shadow: inset 0 0 0 1px rgba(232, 204, 148, .45), inset 0 1px 0 rgba(255, 240, 210, .18), 0 0 20px -6px var(--warm-glow); }
.brand .mark svg { filter: drop-shadow(0 0 4px rgba(255, 200, 130, .55)); }
.brand h1 { letter-spacing: .015em; background: linear-gradient(180deg, #fbf6ec 0%, #e6dccb 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand h1 span { -webkit-text-fill-color: var(--champ-2); color: var(--champ-2); }

/* ── lit-key states: what is ON glows warm, like the touch keys and rocker LEDs ── */
.seg { background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .02)); border-color: rgba(255, 255, 255, .08); box-shadow: inset 0 1px 0 var(--edge-hi); }
.seg button[aria-pressed="true"], .chip[aria-pressed="true"], .chips button[aria-pressed="true"] {
  color: var(--warm); background: linear-gradient(180deg, #26221b 0%, #14120e 100%); border-color: transparent;
  box-shadow: var(--key-on); text-shadow: 0 0 10px rgba(255, 196, 120, .45); }
.chip:hover, .seg button:hover { color: var(--txt); }
.floortabs { background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .015)); box-shadow: inset 0 1px 0 var(--edge-hi); }
.floortabs button[aria-pressed="true"] { color: var(--warm); background: linear-gradient(180deg, #24201a, #13110e); box-shadow: var(--key-on); }

/* buttons: glass keys; gold buttons and Present are brushed champagne */
.btn { background: linear-gradient(180deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .025)); border-color: rgba(255, 255, 255, .11); box-shadow: inset 0 1px 0 var(--edge-hi); }
.btn:hover { background: linear-gradient(180deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .04)); border-color: rgba(232, 204, 148, .3); }
.btn.gold, .chip.gold { color: #1b150b; border-color: transparent;
  background: linear-gradient(135deg, var(--champ-1) 0%, var(--champ-2) 36%, #a98443 58%, #e9d29e 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 8px 20px -10px rgba(211, 176, 107, .8); }
.btn.gold:hover { filter: brightness(1.06); }
.btn.present { color: var(--warm); background: radial-gradient(130% 160% at 50% 0%, #2c271f 0%, #121014 70%); border-color: transparent; box-shadow: var(--key-on); text-shadow: 0 0 10px rgba(255, 196, 120, .4); }
.btn.present:hover { color: #fff3dc; filter: brightness(1.12); }
.iconbtn { background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)); box-shadow: inset 0 1px 0 var(--edge-hi); }
.iconbtn[aria-pressed="true"] { color: var(--warm); box-shadow: var(--key-on); border-color: transparent; }

/* device on/off: a warm-lit key rather than a phone toggle */
.switch { background: linear-gradient(180deg, #1b1c21, #111216); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), inset 0 2px 4px rgba(0, 0, 0, .6); }
.switch::after { background: linear-gradient(180deg, #f4f1ea, #cfc9bd); }
.switch[aria-checked="true"] { background: linear-gradient(180deg, #4a3b22, #2a2116); box-shadow: inset 0 0 0 1px rgba(232, 204, 148, .55), 0 0 14px -4px var(--warm-glow); }
.switch[aria-checked="true"]::after { background: radial-gradient(circle at 50% 40%, #fff7e6, var(--warm) 70%); box-shadow: 0 0 10px rgba(255, 196, 120, .8), 0 2px 5px rgba(0, 0, 0, .5); }

/* sliders: champagne fill, glass thumb with a warm core */
input[type=range]::-webkit-slider-runnable-track { background: linear-gradient(90deg, var(--champ-3) 0, var(--champ-2) var(--fill, 50%), rgba(255, 255, 255, .1) var(--fill, 50%) 100%); }
input[type=range].cct::-webkit-slider-runnable-track { background: linear-gradient(90deg, #ffb46b, #fff3e0 50%, #cfe3ff); }
input[type=range]::-webkit-slider-thumb { background: radial-gradient(circle at 50% 45%, #fffaf0 0 35%, #e9dcc3 36% 100%); box-shadow: 0 0 0 1px rgba(232, 204, 148, .5), 0 2px 8px rgba(0, 0, 0, .65); }

/* ── panels and cards: black glass plates ── */
.sidebar, .inspector { background: linear-gradient(180deg, #121318 0%, #0e0f13 100%); }
.sidebar { box-shadow: inset -1px 0 0 rgba(255, 244, 222, .04); }
.inspector { box-shadow: inset 1px 0 0 rgba(255, 244, 222, .04); }
.card { background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .018)); box-shadow: inset 0 1px 0 var(--edge-hi), 0 12px 26px -20px #000; }
.glass { background: linear-gradient(180deg, rgba(20, 21, 27, .9), rgba(11, 12, 15, .9)); border-color: rgba(255, 255, 255, .09);
  box-shadow: 0 14px 34px -16px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(255, 240, 210, .07); }
.sec-title { color: rgba(211, 176, 107, .7); }
.sec-title::before { content: ''; display: inline-block; width: 14px; height: 1px; margin-right: 8px; vertical-align: middle; background: linear-gradient(90deg, var(--champ-2), transparent); }
.sec-title { justify-content: flex-start; }
.sec-title > button { margin-left: auto; }
.roomhead h2, .caption h3, dialog.modal header h3 { color: #f6f0e4; }

/* room list: a lit room shows a warm key and its status LED */
.roomitem[aria-current="true"] { background: linear-gradient(90deg, rgba(211, 176, 107, .14), rgba(211, 176, 107, .03)); border-color: rgba(232, 204, 148, .32); }
.roomitem .ri { position: relative; background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02)); box-shadow: inset 0 1px 0 var(--edge-hi); }
.roomitem.lit .ri { color: var(--warm); background: radial-gradient(120% 100% at 50% 0%, rgba(255, 190, 110, .32), rgba(255, 190, 110, .06)); box-shadow: inset 0 0 0 1px rgba(232, 204, 148, .35), 0 0 14px -6px var(--warm-glow); }
.roomitem.lit .ri::after { content: ''; position: absolute; right: -2px; top: -2px; width: 6px; height: 6px; border-radius: 50%; background: var(--warm); box-shadow: 0 0 6px 1px var(--warm-glow); }
.scenebtn { background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015)); box-shadow: inset 0 1px 0 var(--edge-hi); }
.scenebtn:hover { border-color: rgba(232, 204, 148, .3); }
.scenebtn.active { background: linear-gradient(180deg, #25211a, #13110e); border-color: transparent; box-shadow: var(--key-on); }
.scenebtn.active .sn { color: var(--warm); }
.srcflag.sim { color: var(--champ-2); border-color: rgba(211, 176, 107, .4); }
.badge.demo { color: var(--champ-1); border-color: rgba(211, 176, 107, .4); background: linear-gradient(180deg, rgba(211, 176, 107, .14), rgba(211, 176, 107, .05)); }
.badge.demo .dot { background: var(--warm); box-shadow: 0 0 6px var(--warm-glow); }
.drawer { background: linear-gradient(180deg, #121318, #0d0e12); }
.drawer-tabs button[aria-selected="true"] { color: var(--warm); background: linear-gradient(180deg, #221f19, #131110); box-shadow: var(--key-on); }

/* 3D overlays — hints sit low and centred (clear of the status pills; above the walk bar) */
.hint { top: auto; bottom: 64px; max-width: min(640px, 72%); border-color: rgba(232, 204, 148, .28); }
#stage:has(.caption:not(.hidden)) .hint { display: none; }
.hotspot { background: radial-gradient(circle at 50% 35%, #26221b, #0e0d10 75%); border-color: rgba(232, 204, 148, .55); color: var(--warm); box-shadow: 0 0 16px -4px var(--warm-glow); }
.tip { background: linear-gradient(180deg, rgba(22, 23, 29, .96), rgba(12, 13, 16, .96)); border-color: rgba(232, 204, 148, .3); box-shadow: 0 10px 24px -12px #000; }
.toast { background: linear-gradient(180deg, rgba(24, 25, 31, .97), rgba(13, 14, 18, .97)); border-color: rgba(232, 204, 148, .3); }
.ribbon b { color: var(--champ-1); }

/* ── Present mode: the caption carries a numbered champagne kicker ── */
.caption .kicker { font: 600 10px/1 var(--font); letter-spacing: .3em; text-transform: uppercase; color: var(--champ-2); margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.caption .kicker::after { content: ''; flex: 0 0 46px; height: 1px; background: linear-gradient(90deg, var(--champ-2), transparent); }
body.presenting .caption { border-top: 1px solid rgba(232, 204, 148, .35); }
.presenter .dots i.on { box-shadow: 0 0 10px 1px var(--warm-glow); background: var(--warm); }

/* Present: the wall switch of each slide, rendered live into the top-right corner (a 3D view, not a camera feed) */
.switchcam { position: absolute; z-index: 5; pointer-events: none; border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(232, 204, 148, .6), 0 0 0 4px rgba(10, 11, 14, .55), 0 20px 44px -18px #000; }
.switchcam .sc-tag { position: absolute; left: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px;
  background: rgba(10, 11, 14, .84); border: 1px solid rgba(232, 204, 148, .38); font: 600 10.5px/1.2 var(--font); color: var(--txt);
  white-space: nowrap; max-width: calc(100% - 16px); overflow: hidden; text-overflow: ellipsis; }
.switchcam .sc-tag b { color: var(--warm); letter-spacing: .14em; text-transform: uppercase; font-size: 9px; }
.switchcam .sc-led { width: 6px; height: 6px; border-radius: 50%; flex: none; background: var(--warm); box-shadow: 0 0 6px 1px var(--warm-glow); }
body:not(.presenting) .switchcam { display: none; }
@media (max-width: 600px) { .switchcam .sc-tag { font-size: 9.5px; padding: 3px 8px; } .switchcam .sc-tag b { display: none; } }

/* ── loader: the house outline draws itself, the bar lights key by key ── */
.boot { background: radial-gradient(70% 60% at 50% 42%, #171611 0%, #0b0b0d 60%, #070709 100%); }
.boot .logo { width: 74px; height: 74px; margin: 0 auto 14px; display: block; overflow: visible; }
.boot .logo path { fill: none; stroke: var(--champ-2); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 120; stroke-dashoffset: 120; animation: draw 2.4s var(--ease) forwards; filter: drop-shadow(0 0 6px rgba(255, 196, 120, .45)); }
.boot .logo .door { stroke: var(--warm); animation-delay: .9s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.boot .word { font: 500 30px/1 var(--serif); letter-spacing: .04em; margin-bottom: 4px; background: linear-gradient(180deg, #fbf6ec, #d9cdb6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.boot .word span { -webkit-text-fill-color: var(--champ-2); }
.boot .ring { display: none; }
.boot .bar { width: 262px; height: 7px; border-radius: 0; margin: 18px auto 10px; overflow: hidden;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .09) 0 18px, transparent 18px 22px); }
.boot .bar i { background: repeating-linear-gradient(90deg, var(--warm) 0 18px, transparent 18px 22px); filter: drop-shadow(0 0 5px rgba(255, 190, 110, .8)); transition: width .35s steps(3, end); }
.boot .msg { color: rgba(232, 214, 176, .8); }
@media (prefers-reduced-motion: reduce) { .boot .logo path { stroke-dashoffset: 0; animation: none; } }

/* intro and end cards: glass plates with a champagne top edge */
.endcard, .intro { background: linear-gradient(180deg, rgba(22, 23, 29, .93), rgba(10, 11, 14, .93)); border-color: rgba(232, 204, 148, .22); box-shadow: inset 0 1px 0 rgba(255, 236, 200, .12), 0 30px 80px -30px #000; }
.endcard h2, .intro h2 { background: linear-gradient(180deg, #fbf6ec, #dcd0b9); -webkit-background-clip: text; background-clip: text; color: transparent; }
