/* ==========================================================================
   Abimanyu's Workshop — 3D portfolio HUD (Iron Man / VORA style)
   ========================================================================== */
:root {
  --bg: #04070d;
  --ink: #e6f6ff;
  --muted: #8fb2c6;
  --holo: #5ee7ff;
  --holo-rgb: 94, 231, 255;
  --gold: #ffc24a;
  --red: #d7263d;
  --glass: rgba(6, 18, 30, 0.72);
  --glass-strong: rgba(5, 14, 24, 0.9);
  --line: rgba(var(--holo-rgb), 0.28);
  --line-soft: rgba(var(--holo-rgb), 0.14);
  --radius: 14px;
  --gutter: 16px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --font: "Rajdhani", system-ui, sans-serif;
  --mono: "Share Tech Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
a { color: inherit; }
svg { display: block; }
.mono { font-family: var(--mono); letter-spacing: 0.02em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

#stage { position: fixed; inset: 0; touch-action: none; }
#stage canvas { display: block; width: 100%; height: 100%; cursor: grab; }
#stage canvas.dragging { cursor: grabbing; }
#stage canvas.pointing { cursor: pointer; }

/* ---------- shared bits ---------- */
.eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: 0.18em; color: var(--holo); }
.section-gap { margin-top: 22px; margin-bottom: 10px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 10px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; font-size: 14px; text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, opacity 0.2s;
}
.btn:disabled { opacity: 0.4; cursor: default; }
.btn-sm { padding: 6px 10px; font-size: 12px; }
.btn-holo {
  color: #021018;
  background: linear-gradient(135deg, var(--holo), #9ff4ff);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25) inset, 0 0 24px rgba(var(--holo-rgb), 0.45);
}
.btn-holo:not(:disabled):hover { transform: translateY(-1px); box-shadow: 0 0 0 1px #fff inset, 0 0 36px rgba(var(--holo-rgb), 0.7); }
.btn-gold {
  color: #1a0e00;
  background: linear-gradient(135deg, var(--gold), #ffdd8a);
  box-shadow: 0 0 22px rgba(255, 194, 74, 0.4);
}
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 0 32px rgba(255, 194, 74, 0.65); }
.btn-ghost { color: var(--holo); border: 1px solid var(--line); background: rgba(var(--holo-rgb), 0.06); }
.btn-ghost:hover { background: rgba(var(--holo-rgb), 0.14); border-color: rgba(var(--holo-rgb), 0.6); }
.icon-btn {
  width: 36px; height: 36px; flex: none; border-radius: 10px; display: grid; place-items: center;
  color: var(--muted); border: 1px solid var(--line-soft); transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.icon-btn:hover { color: var(--ink); border-color: var(--line); background: rgba(var(--holo-rgb), 0.08); }
.icon-btn svg, .hud-btn svg, .dock-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- BOOT ---------- */
.boot {
  position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: var(--gutter);
  background:
    radial-gradient(circle at 50% 42%, rgba(var(--holo-rgb), 0.16), transparent 55%),
    repeating-linear-gradient(0deg, rgba(var(--holo-rgb), 0.035) 0 1px, transparent 1px 4px),
    var(--bg);
  transition: opacity 0.8s ease, visibility 0.8s;
}
.boot.gone { opacity: 0; visibility: hidden; }
.boot-inner { width: min(460px, 100%); text-align: center; display: flex; flex-direction: column; align-items: center; }
.boot-reactor { width: 168px; height: 168px; filter: drop-shadow(0 0 22px rgba(var(--holo-rgb), 0.6)); }
.boot-eyebrow { margin-top: 10px; font-size: 12px; letter-spacing: 0.3em; color: var(--holo); }
.boot-title { margin: 8px 0 6px; font-size: clamp(30px, 7vw, 44px); line-height: 1.05; letter-spacing: 0.04em; text-transform: uppercase; }
.boot-sub { margin: 0 0 22px; color: var(--muted); font-size: 17px; line-height: 1.4; }
.boot-progress { width: 100%; height: 4px; border-radius: 4px; background: rgba(var(--holo-rgb), 0.12); overflow: hidden; }
.boot-bar { width: 0; height: 100%; background: linear-gradient(90deg, var(--holo), var(--gold)); box-shadow: 0 0 12px var(--holo); transition: width 0.3s; }
.boot-status { margin-top: 10px; min-height: 20px; font-size: 13px; color: var(--muted); }
.boot-enter { margin-top: 18px; min-width: 240px; }
.boot-classic { margin-top: 14px; font-size: 13px; color: var(--muted); text-decoration: none; }
.boot-classic:hover { color: var(--holo); }

/* ---------- HUD ---------- */
.hud { position: fixed; inset: 0; z-index: 10; pointer-events: none; }
.hud > * { pointer-events: auto; }
.hud-corner, .hint, .tooltip, .vora { pointer-events: none !important; }
.hud-corner { position: absolute; width: 38px; height: 38px; border: 2px solid rgba(var(--holo-rgb), 0.45); }
.hud-corner.tl { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.hud-corner.tr { top: 10px; right: 10px; border-left: 0; border-bottom: 0; }
.hud-corner.bl { bottom: calc(10px + var(--safe-b)); left: 10px; border-right: 0; border-top: 0; }
.hud-corner.br { bottom: calc(10px + var(--safe-b)); right: 10px; border-left: 0; border-top: 0; }

.hud-top {
  position: absolute; top: 18px; left: 22px; right: 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.hud .hud-top { pointer-events: none; }
.hud-top > * { pointer-events: auto; }
.brand { display: flex; align-items: center; gap: 10px; text-align: left; min-width: 0; }
.brand-reactor { width: 44px; height: 44px; flex: none; filter: drop-shadow(0 0 8px rgba(var(--holo-rgb), 0.7)); }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name { font-weight: 700; font-size: 19px; letter-spacing: 0.12em; white-space: nowrap; }
.brand-name em { font-style: normal; color: var(--gold); }
.brand-sub { font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.dot-live { width: 7px; height: 7px; border-radius: 50%; background: #3dff9a; box-shadow: 0 0 8px #3dff9a; animation: blink 2s infinite; }
@keyframes blink { 50% { opacity: 0.35; } }

.hud-actions { display: flex; gap: 6px; }
.hud-btn {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 10px;
  font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; font-size: 13px; text-decoration: none;
  background: var(--glass); border: 1px solid var(--line-soft); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.hud-btn:hover { border-color: rgba(var(--holo-rgb), 0.6); color: var(--holo); }
.hud-btn-ghost { color: var(--muted); }

.vora {
  position: absolute; top: 80px; left: 50%; transform: translate(-50%, -8px);
  max-width: min(560px, calc(100% - 2 * var(--gutter)));
  display: flex; align-items: flex-start; gap: 10px; padding: 9px 14px; border-radius: 12px;
  background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; transition: opacity 0.35s, transform 0.35s;
}
.vora.show { opacity: 1; transform: translate(-50%, 0); }
.vora-tag { flex: none; font-size: 11px; padding: 2px 6px; border-radius: 6px; color: #021018; background: var(--holo); margin-top: 2px; }
.vora-text { font-size: 16px; font-weight: 500; line-height: 1.35; }

.hint {
  position: absolute; left: 50%; top: 58%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  opacity: 0; transition: opacity 0.6s;
}
.hint.show { opacity: 1; }
.hint-anim { width: 150px; height: 90px; }
.hint-text { font-size: 13px; color: var(--ink); text-shadow: 0 0 8px #000; text-align: center; padding: 0 var(--gutter); }

.tooltip {
  position: fixed; left: 0; top: 0; padding: 5px 9px; border-radius: 8px; font-size: 12px; white-space: nowrap;
  background: var(--glass-strong); border: 1px solid var(--line); color: var(--holo);
  opacity: 0; transition: opacity 0.15s;
}
.tooltip.show { opacity: 1; }

.hud-bottom {
  position: absolute; left: 22px; right: 22px; bottom: calc(20px + var(--safe-b));
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 12px;
  pointer-events: none;
}
.hud-bottom > * { pointer-events: auto; }
.radar { width: 120px; height: 120px; justify-self: start; }
.radar .r-dot { cursor: pointer; transition: r 0.2s; }
.radar .r-dot:hover { r: 6; }
.keys { justify-self: end; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 12px; color: var(--muted); pointer-events: none; }
kbd {
  display: inline-block; min-width: 20px; padding: 1px 5px; margin-right: 3px; border-radius: 5px; text-align: center;
  border: 1px solid var(--line); background: rgba(var(--holo-rgb), 0.06); color: var(--ink); font-family: var(--mono); font-size: 11px;
}

.dock {
  display: flex; align-items: stretch; gap: 6px; padding: 6px; border-radius: 16px;
  background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 0 30px rgba(var(--holo-rgb), 0.12);
}
.dock-arrow { width: 46px; border-radius: 11px; display: grid; place-items: center; color: var(--holo); transition: background 0.2s; }
.dock-arrow:hover { background: rgba(var(--holo-rgb), 0.12); }
.dock-label {
  width: clamp(200px, 30vw, 320px); padding: 6px 10px; border-radius: 11px; text-align: center;
  display: flex; flex-direction: column; align-items: center; transition: background 0.2s;
}
.dock-label:hover { background: rgba(var(--holo-rgb), 0.08); }
.dock-mark { font-size: 11px; color: var(--gold); letter-spacing: 0.2em; }
.dock-title { font-weight: 700; font-size: 18px; line-height: 1.15; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dock-cta { font-size: 11px; color: var(--muted); }

/* ---------- ZOOM CONTROL (only while a showcase is focused) ---------- */
.hud .zoom-ctl {
  position: absolute; left: 22px; top: 50%; transform: translate(-12px, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px; border-radius: 14px;
  background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; pointer-events: none; transition: opacity 0.3s, transform 0.3s;
}
body.is-focus .hud .zoom-ctl { opacity: 1; pointer-events: auto; transform: translate(0, -50%); }
.zoom-ctl button { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: var(--holo); transition: background 0.2s, opacity 0.2s; }
.zoom-ctl button:hover:not(:disabled) { background: rgba(var(--holo-rgb), 0.14); }
.zoom-ctl button:disabled { opacity: 0.3; cursor: default; }
.zoom-ctl svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.zoom-level { font-size: 12px; color: var(--gold); padding: 2px 0; }

/* ---------- PROJECT PANEL ---------- */
.panel {
  position: fixed; z-index: 20; top: 84px; right: 22px; bottom: calc(22px + var(--safe-b));
  width: min(420px, 38vw); display: flex; flex-direction: column;
  background: var(--glass-strong); border: 1px solid var(--line); border-radius: 18px;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 0 40px rgba(var(--holo-rgb), 0.15);
  transform: translateX(calc(100% + 40px)); opacity: 0; visibility: hidden;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.4s, visibility 0.5s;
}
.panel.open { transform: none; opacity: 1; visibility: visible; }
.panel::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(var(--holo-rgb), 0.03) 0 1px, transparent 1px 3px);
}
.panel-scroll { flex: 1; overflow-y: auto; padding: 20px 20px 8px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.panel-head { display: flex; gap: 12px; align-items: flex-start; }
.panel-anim { width: 58px; height: 58px; flex: none; border-radius: 14px; background: rgba(var(--holo-rgb), 0.08); border: 1px solid var(--line-soft); overflow: hidden; }
.panel-head-text { flex: 1; min-width: 0; }
.panel-title { margin: 2px 0 2px; font-size: 26px; line-height: 1.05; }
.panel-host { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.panel-desc { margin: 16px 0 12px; color: #cfe7f5; font-size: 17px; line-height: 1.45; font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font-family: var(--mono); font-size: 12px; padding: 3px 9px; border-radius: 99px;
  color: var(--holo); background: rgba(var(--holo-rgb), 0.08); border: 1px solid var(--line-soft);
}
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.gallery:empty { display: none; }
.gallery button { border-radius: 8px; overflow: hidden; border: 1px solid var(--line-soft); aspect-ratio: 1280 / 672; opacity: 0.6; transition: opacity 0.2s, border-color 0.2s; }
.gallery button.active, .gallery button:hover { opacity: 1; border-color: var(--holo); }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.panel-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.panel-note {
  width: 100%; font-size: 14px; color: var(--muted); padding: 10px 12px; border-radius: 10px;
  border: 1px dashed var(--line); line-height: 1.4;
}
.mini-timeline { list-style: none; margin: 0; padding: 0 0 0 18px; position: relative; }
.mini-timeline::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--holo), var(--gold)); opacity: 0.5; }
.mini-timeline li { position: relative; padding: 0 0 14px 8px; }
.mini-timeline li::before {
  content: ""; position: absolute; left: -17px; top: 5px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--holo); box-shadow: 0 0 8px var(--holo);
}
.mt-phase { font-weight: 700; font-size: 15px; }
.mt-date { font-family: var(--mono); font-size: 12px; color: var(--gold); margin-left: 6px; }
.mt-desc { font-size: 15px; color: var(--muted); line-height: 1.35; }
.panel-nav { display: flex; justify-content: space-between; gap: 8px; padding: 12px 20px 16px; border-top: 1px solid var(--line-soft); }

/* ---------- SHEET (profile / projects / career / contact) ---------- */
.sheet, .preview {
  position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: var(--gutter);
  visibility: hidden; opacity: 0; transition: opacity 0.3s, visibility 0.3s;
}
.sheet.open, .preview.open { visibility: visible; opacity: 1; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(2, 6, 12, 0.55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.sheet-window {
  position: relative; width: min(680px, 100%); max-height: min(720px, calc(100dvh - 2 * var(--gutter)));
  display: flex; flex-direction: column; border-radius: 20px;
  background: var(--glass-strong); border: 1px solid var(--line);
  box-shadow: 0 0 60px rgba(var(--holo-rgb), 0.2);
  transform: scale(0.94) translateY(10px); transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.sheet.open .sheet-window { transform: none; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 14px 10px 16px; border-bottom: 1px solid var(--line-soft); }
.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.tabs button {
  padding: 7px 12px; border-radius: 9px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 14px;
  color: var(--muted); white-space: nowrap;
}
.tabs button[aria-selected="true"] { color: #021018; background: var(--holo); box-shadow: 0 0 16px rgba(var(--holo-rgb), 0.4); }
.sheet-body { overflow-y: auto; padding: 18px 20px 22px; }
.pane { display: none; animation: paneIn 0.35s ease; }
.pane.active { display: block; }
@keyframes paneIn { from { opacity: 0; transform: translateY(6px); } }

.profile { display: flex; gap: 18px; align-items: center; }
.profile-photo {
  position: relative; width: 108px; height: 108px; flex: none; border-radius: 18px; overflow: hidden;
  border: 2px solid var(--gold); box-shadow: 0 0 24px rgba(255, 194, 74, 0.35); background: #0c1a26;
}
.profile-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile-initials { position: absolute; inset: 0; display: none; place-items: center; font-size: 38px; font-weight: 700; color: var(--gold); }
.profile-photo.no-img .profile-initials { display: grid; }
.profile-photo.no-img img { display: none; }
.sheet-title { margin: 2px 0 6px; font-size: 28px; line-height: 1.05; }
.role-chip {
  display: inline-block; font-size: 12px; padding: 4px 9px; border-radius: 8px; margin-bottom: 6px;
  color: var(--gold); background: rgba(255, 194, 74, 0.08); border: 1px solid rgba(255, 194, 74, 0.3);
}
.quote { margin: 18px 0 0; padding: 12px 14px; border-left: 3px solid var(--gold); background: rgba(255, 194, 74, 0.05); border-radius: 0 10px 10px 0; font-size: 18px; font-weight: 500; }
.quote cite { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); font-style: normal; font-family: var(--mono); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.stat { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-soft); background: rgba(var(--holo-rgb), 0.05); }
.stat b { display: block; font-size: 26px; line-height: 1; color: var(--holo); }
.stat span { font-size: 13px; color: var(--muted); }
.skills { display: flex; flex-wrap: wrap; gap: 10px; }
.skill {
  display: flex; align-items: center; gap: 8px; padding: 7px 12px 7px 8px; border-radius: 12px;
  border: 1px solid var(--line-soft); background: rgba(255, 255, 255, 0.03); font-weight: 600;
  transition: border-color 0.2s, transform 0.2s;
}
.skill:hover { border-color: var(--holo); transform: translateY(-2px); }
.skill img { width: 26px; height: 26px; padding: 3px; border-radius: 7px; background: #e9f3f8; }

.project-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 10px; }
.plist-item {
  text-align: left; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.02); transition: border-color 0.2s, transform 0.2s;
}
.plist-item:hover { border-color: var(--holo); transform: translateY(-2px); }
.plist-item img { width: 100%; aspect-ratio: 1280 / 672; object-fit: cover; display: block; border-bottom: 1px solid var(--line-soft); }
.plist-item div { padding: 8px 10px 10px; }
.plist-item small { display: block; font-family: var(--mono); font-size: 11px; color: var(--gold); }
.plist-item strong { display: block; font-size: 16px; line-height: 1.15; }

.career { list-style: none; margin: 0; padding: 0 0 0 22px; position: relative; }
.career::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--gold), var(--holo)); opacity: 0.6; }
.career li { position: relative; padding-bottom: 20px; }
.career li::before {
  content: ""; position: absolute; left: -21px; top: 5px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--gold); box-shadow: 0 0 10px rgba(255, 194, 74, 0.6);
}
.career h3 { margin: 0; font-size: 19px; line-height: 1.2; }
.career time { display: block; font-family: var(--mono); font-size: 12px; color: var(--holo); margin: 3px 0 5px; }
.career p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.45; }

.contacts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 10px; }
.contact {
  display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; text-decoration: none;
  border: 1px solid var(--line-soft); background: rgba(255, 255, 255, 0.03); transition: border-color 0.2s, transform 0.2s;
}
.contact:hover { border-color: var(--holo); transform: translateY(-2px); }
.contact-icon { width: 42px; height: 42px; flex: none; border-radius: 11px; display: grid; place-items: center; background: linear-gradient(135deg, var(--holo), #1d8fb0); }
.contact-icon img { width: 22px; height: 22px; filter: brightness(0) invert(1); }
.contact b { display: block; font-size: 17px; }
.contact span { display: block; font-family: var(--mono); font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contact > div { min-width: 0; }

/* ---------- LIVE PREVIEW ---------- */
.preview-window {
  position: relative; width: min(1180px, 100%); height: min(760px, calc(100dvh - 2 * var(--gutter)));
  display: flex; flex-direction: column; border-radius: 16px; overflow: hidden;
  background: var(--glass-strong); border: 1px solid var(--line); box-shadow: 0 0 60px rgba(var(--holo-rgb), 0.25);
  transform: scale(0.94); transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.preview.open .preview-window { transform: none; }
.preview-bar { display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 14px; border-bottom: 1px solid var(--line-soft); }
.preview-dots { display: flex; gap: 6px; }
.preview-dots i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.preview-dots i:nth-child(2) { background: #febc2e; }
.preview-dots i:nth-child(3) { background: #28c840; }
.preview-url { flex: 1; min-width: 0; font-size: 13px; color: var(--muted); padding: 5px 10px; border-radius: 8px; background: rgba(255, 255, 255, 0.04); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview-frame { position: relative; flex: 1; background: #fff; }
.preview-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.preview-loading { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; background: var(--bg); transition: opacity 0.4s; }
.preview-loading.done { opacity: 0; pointer-events: none; }
.preview-loading > div { width: 110px; height: 110px; }

.noscript { position: fixed; inset: 0; display: grid; place-items: center; z-index: 100; background: var(--bg); padding: var(--gutter); text-align: center; font-size: 18px; }
.noscript a { color: var(--holo); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1100px) {
  .keys { display: none; }
}
@media (max-width: 900px) {
  .hud-btn span { display: none; }
  .hud-btn { padding: 9px; }
}
@media (max-width: 720px) {
  :root { --gutter: 16px; }
  .hud-corner { display: none; }
  .hud-top { top: 12px; left: var(--gutter); right: var(--gutter); }
  .brand-reactor { width: 36px; height: 36px; }
  .brand-name { font-size: 16px; letter-spacing: 0.08em; }
  .brand-wk, .brand-sub { display: none; }
  .hud-actions { gap: 4px; }
  .hud-btn-ghost { display: none; }
  .vora { top: 64px; }
  .hud-bottom { left: var(--gutter); right: var(--gutter); bottom: calc(14px + var(--safe-b)); grid-template-columns: 1fr; }
  .radar { display: none; }
  .dock { width: 100%; }
  .dock-label { flex: 1; width: auto; min-width: 0; }

  .panel {
    top: auto; left: 0; right: 0; bottom: 0; width: auto; max-height: 58dvh;
    border-radius: 20px 20px 0 0; border-bottom: 0;
    padding-bottom: var(--safe-b);
    transform: translateY(105%);
  }
  /* zoomed in: collapse to a peek bar showing only the header; tap it to come back */
  .panel.open.peek { transform: translateY(calc(100% - 92px - var(--safe-b))); cursor: pointer; }
  .panel.peek .panel-scroll { overflow: hidden; }
  .hud .zoom-ctl { left: auto; right: var(--gutter); top: 76px; transform: translate(12px, 0); }
  body.is-focus .hud .zoom-ctl { transform: none; }
  .panel-scroll { padding: 16px var(--gutter) 6px; }
  .panel-nav { padding: 10px var(--gutter) 12px; }
  .panel-title { font-size: 23px; }
  .panel-desc { font-size: 16px; margin-top: 12px; }

  .sheet, .preview { padding: 0; place-items: end stretch; }
  .sheet-window { width: 100%; max-height: 88dvh; border-radius: 20px 20px 0 0; padding-bottom: var(--safe-b); transform: translateY(40px); }
  .preview-window { width: 100%; height: 92dvh; border-radius: 16px 16px 0 0; transform: translateY(40px); }
  .sheet-body { padding: 16px var(--gutter) 22px; }
  .profile { gap: 14px; }
  .profile-photo { width: 86px; height: 86px; }
  .sheet-title { font-size: 23px; }
  .project-list, .contacts { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stat b { font-size: 22px; }
}
@media (max-width: 380px) {
  .brand-sub { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
