:root {
  --ink: #eef9ff;
  --ink-strong: #ffffff;
  --muted: rgba(224, 244, 255, 0.7);
  --faint: rgba(224, 244, 255, 0.46);
  --panel: rgba(9, 19, 31, 0.58);
  --panel-strong: rgba(6, 14, 24, 0.78);
  --glass: rgba(214, 237, 248, 0.16);
  --line: rgba(202, 239, 255, 0.22);
  --line-strong: rgba(161, 229, 255, 0.58);
  --accent: #1f8cff;
  --accent-soft: #74e2ff;
  --warning: #ff445f;
  --shadow: 0 24px 70px rgba(0, 10, 24, 0.34);
  color-scheme: dark;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
}

body {
  background: #08121f;
  color: var(--ink);
  overflow: hidden;
}

button,
input {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

.app-shell {
  display: block;
  width: 100vw;
  height: 100vh;
}

.viewer {
  position: relative;
  min-width: 0;
  height: 100vh;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(6, 13, 24, 0.78) 0%, rgba(12, 31, 52, 0.38) 22%, transparent 52%),
    linear-gradient(180deg, #c9deeb 0%, #9eb9cc 34%, #536f86 66%, #162539 100%);
}

.scene-decor {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  transition: filter 0.7s ease, opacity 0.7s ease;
}

.viewer.is-lights-dimmed .scene-decor {
  filter: brightness(0.66) saturate(0.9);
  opacity: 0.88;
}

.decor-haze {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 58% 24%, rgba(255, 255, 255, 0.92) 0 8%, rgba(117, 201, 255, 0.24) 24%, transparent 50%),
    radial-gradient(circle at 74% 62%, rgba(43, 149, 255, 0.26), transparent 32%),
    linear-gradient(180deg, rgba(246, 252, 255, 0.56), rgba(13, 29, 47, 0.12) 56%, rgba(4, 13, 24, 0.4));
  filter: saturate(1.1);
}

.decor-skyline {
  position: absolute;
  left: 18%;
  right: -4%;
  bottom: 24%;
  height: 56%;
  opacity: 0.58;
}

.tower {
  position: absolute;
  bottom: 0;
  display: block;
  width: 88px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.72), rgba(131, 214, 255, 0.24) 52%, rgba(22, 80, 128, 0.32)),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.42) 0 2px, transparent 2px 24px);
  clip-path: polygon(50% 0, 100% 16%, 100% 100%, 0 100%, 0 16%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.26),
    0 0 46px rgba(128, 218, 255, 0.22);
}

.tower-a {
  left: 5%;
  height: 68%;
  transform: skewX(-3deg);
}

.tower-b {
  left: 30%;
  height: 92%;
  width: 132px;
}

.tower-c {
  left: 57%;
  height: 58%;
  width: 76px;
  opacity: 0.82;
}

.tower-d {
  left: 73%;
  height: 80%;
  width: 118px;
  transform: skewX(3deg);
}

.tower-e {
  left: 88%;
  height: 48%;
  width: 70px;
  opacity: 0.72;
}

.decor-cubes {
  position: absolute;
  inset: 0;
  perspective: 900px;
}

.cube {
  position: absolute;
  display: block;
  width: 42px;
  height: 42px;
  background:
    linear-gradient(135deg, rgba(95, 180, 255, 0.95), rgba(8, 70, 128, 0.88)),
    #0d67bb;
  box-shadow:
    inset -10px -12px 18px rgba(0, 18, 40, 0.32),
    inset 9px 8px 16px rgba(255, 255, 255, 0.22),
    0 24px 48px rgba(4, 29, 58, 0.28);
  transform: rotateX(58deg) rotateZ(45deg);
  animation: cube-float 6.4s ease-in-out infinite;
}

.cube-a {
  left: 37%;
  top: 18%;
  width: 54px;
  height: 54px;
}

.cube-b {
  left: 52%;
  top: 34%;
  animation-delay: -1.1s;
}

.cube-c {
  left: 74%;
  top: 17%;
  width: 72px;
  height: 72px;
  animation-delay: -2.3s;
}

.cube-d {
  left: 84%;
  top: 67%;
  width: 64px;
  height: 64px;
  animation-delay: -3.2s;
}

.cube-e {
  left: 46%;
  top: 60%;
  width: 34px;
  height: 34px;
  animation-delay: -4.1s;
}

.cube-f {
  left: 66%;
  top: 43%;
  width: 28px;
  height: 28px;
  animation-delay: -5s;
}

@keyframes cube-float {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -18px;
  }
}

.decor-floor {
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -8%;
  height: 48%;
  background:
    linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.56), rgba(83, 161, 205, 0.26) 42%, rgba(8, 18, 31, 0.44));
  background-size: 92px 92px, 92px 92px, auto;
  border-top: 1px solid rgba(255, 255, 255, 0.32);
  transform: perspective(720px) rotateX(62deg);
  transform-origin: 50% 100%;
  box-shadow: inset 0 38px 80px rgba(255, 255, 255, 0.26);
}

#webgl {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  outline: none;
}

.hotspot-layer {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
}

.hotspot-pin {
  position: absolute;
  z-index: 2;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(126, 236, 255, 0.96);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(237, 252, 255, 0.72) 0 28%, rgba(116, 226, 255, 0.34) 48%, rgba(18, 98, 142, 0.18) 100%);
  box-shadow:
    inset 0 0 8px rgba(126, 236, 255, 0.46),
    0 0 0 6px rgba(116, 226, 255, 0.1),
    0 0 24px rgba(116, 226, 255, 0.78);
  transform: translate(-50%, -50%);
  transition: opacity 0.18s ease;
  will-change: left, top, opacity;
}

.hotspot-connector {
  position: absolute;
  z-index: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(116, 226, 255, 0.96), rgba(255, 255, 255, 0.28));
  box-shadow: 0 0 18px rgba(116, 226, 255, 0.62);
  transform-origin: 0 50%;
  transition: opacity 0.18s ease;
  will-change: left, top, width, transform, opacity;
}

.hotspot {
  position: absolute;
  display: grid;
  place-items: center;
  isolation: isolate;
  width: 44px;
  height: 44px;
  border: 2px solid rgba(111, 232, 255, 0.98);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 48%, rgba(116, 226, 255, 0.2) 0 34%, rgba(17, 98, 146, 0.28) 58%, rgba(3, 18, 32, 0.48) 100%),
    rgba(10, 41, 62, 0.24);
  color: #f7fdff;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  text-shadow:
    0 0 8px rgba(116, 226, 255, 0.88),
    0 1px 2px rgba(0, 10, 24, 0.82);
  box-shadow:
    inset 0 0 14px rgba(116, 226, 255, 0.42),
    inset 0 0 30px rgba(31, 140, 255, 0.16),
    0 0 0 1px rgba(237, 252, 255, 0.52),
    0 0 0 9px rgba(31, 140, 255, 0.08),
    0 18px 38px rgba(0, 10, 24, 0.4),
    0 0 18px rgba(116, 226, 255, 0.74),
    0 0 44px rgba(31, 140, 255, 0.34);
  cursor: pointer;
  pointer-events: auto;
  transform: translate(-50%, -50%);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease,
    filter 0.18s ease;
  will-change: left, top, transform, opacity;
}

.hotspot::before {
  position: absolute;
  inset: -11px;
  z-index: -1;
  border: 1px solid rgba(116, 226, 255, 0.24);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(116, 226, 255, 0.16), transparent 68%);
  content: "";
  pointer-events: none;
  animation: hotspot-pulse 1.8s ease-in-out infinite;
}

.hotspot::after {
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(237, 252, 255, 0.28);
  border-radius: 50%;
  box-shadow: inset 0 0 12px rgba(116, 226, 255, 0.24);
  content: "";
  pointer-events: none;
}

.hotspot:hover,
.hotspot.is-active {
  filter: saturate(1.25) brightness(1.12);
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow:
    inset 0 0 16px rgba(116, 226, 255, 0.56),
    inset 0 0 34px rgba(31, 140, 255, 0.22),
    0 0 0 1px rgba(237, 252, 255, 0.72),
    0 0 0 11px rgba(31, 140, 255, 0.1),
    0 20px 42px rgba(0, 10, 24, 0.42),
    0 0 24px rgba(116, 226, 255, 0.94),
    0 0 58px rgba(31, 140, 255, 0.44);
}

@keyframes hotspot-pulse {
  0%,
  100% {
    opacity: 0.4;
    scale: 0.94;
  }

  50% {
    opacity: 0.9;
    scale: 1.08;
  }
}

.hotspot.is-hidden,
.hotspot-pin.is-hidden,
.hotspot-connector.is-hidden,
.hotspot-label.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.hotspot-label {
  position: absolute;
  z-index: 4;
  max-width: 210px;
  border: 1px solid rgba(116, 226, 255, 0.5);
  padding: 8px 12px;
  background:
    linear-gradient(135deg, rgba(11, 27, 44, 0.92), rgba(20, 54, 78, 0.72)),
    rgba(9, 19, 31, 0.86);
  color: var(--ink-strong);
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 16px 32px rgba(0, 10, 24, 0.26),
    0 0 24px rgba(116, 226, 255, 0.24);
  backdrop-filter: blur(14px) saturate(1.2);
  pointer-events: none;
  transform: translateY(-50%);
  transition:
    opacity 0.16s ease,
    transform 0.16s ease;
  will-change: left, top, transform, opacity;
}

.hotspot-floating-card {
  position: absolute;
  z-index: 4;
  display: grid;
  gap: 8px;
  width: min(278px, calc(100% - 36px));
  padding: 16px 18px 17px;
  border: 1px solid rgba(116, 226, 255, 0.52);
  background:
    linear-gradient(135deg, rgba(6, 17, 31, 0.58), rgba(20, 52, 75, 0.4)),
    rgba(5, 15, 26, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 22px 54px rgba(0, 10, 24, 0.34),
    0 0 36px rgba(31, 140, 255, 0.22);
  backdrop-filter: blur(14px) saturate(1.18);
  color: var(--ink);
  pointer-events: none;
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
  animation: hotspot-card-in 0.34s cubic-bezier(0.2, 0.84, 0.26, 1) both;
  will-change: left, top, transform, opacity;
}

.hotspot-floating-card::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent, rgba(116, 226, 255, 0.28), transparent),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 8px);
  content: "";
  pointer-events: none;
  transform: translateX(-110%);
}

.hotspot-floating-card.is-active::before {
  animation: hotspot-scan 0.72s ease-out both;
}

.hotspot-floating-card h2 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 18px;
  line-height: 1.08;
}

.hotspot-floating-card .eyebrow {
  color: var(--accent-soft);
  font-size: 11px;
}

.hotspot-floating-card p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.38;
}

.hotspot-floating-card.is-active {
  border-color: rgba(116, 226, 255, 0.9);
}

.hotspot-floating-card.is-hidden {
  opacity: 0;
  transform: translateY(-8px) scale(0.97);
  animation: none;
}

@keyframes hotspot-card-in {
  0% {
    opacity: 0;
    clip-path: polygon(50% 45%, 52% 45%, 52% 55%, 50% 55%, 48% 55%, 48% 45%);
    filter: blur(7px);
    transform: translateY(-8px) scale(0.96);
  }

  42% {
    opacity: 1;
    filter: blur(1px);
  }

  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
  }
}

@keyframes hotspot-scan {
  0% {
    transform: translateX(-110%);
  }

  100% {
    transform: translateX(110%);
  }
}

.hotspot-card {
  position: absolute;
  z-index: 7;
  display: grid;
  gap: 10px;
  width: min(280px, calc(100% - 40px));
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--panel-strong);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hotspot-card[hidden] {
  display: none;
}

.hotspot-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  cursor: pointer;
}

.hotspot-action {
  min-height: 40px;
  border: 0;
  padding: 0 14px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.brand-panel {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  width: 286px;
  padding: 34px 32px 30px;
  background:
    linear-gradient(90deg, rgba(5, 13, 24, 0.82), rgba(11, 28, 46, 0.58) 62%, transparent),
    rgba(6, 14, 24, 0.28);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  pointer-events: auto;
}

.back-link {
  margin: 0 0 68px;
  color: var(--faint);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.back-link::before {
  content: "< ";
}

.brand-lockup p,
.config-label,
.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-lockup h1 {
  margin: 10px 0 10px;
  color: var(--ink-strong);
  font-size: 86px;
  font-weight: 300;
  line-height: 0.88;
}

.brand-lockup span {
  display: block;
  width: 62px;
  height: 2px;
  margin-bottom: 36px;
  background: var(--ink-strong);
  box-shadow: 0 0 18px rgba(116, 226, 255, 0.42);
}

.config-label {
  margin-bottom: 18px;
  color: var(--ink);
}

.side-nav {
  display: grid;
  gap: 4px;
}

.side-link {
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  border: 0;
  border-left: 3px solid transparent;
  padding: 0 12px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  text-align: left;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
}

.side-link svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.side-link span {
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.side-link:hover,
.side-link.is-active {
  border-color: var(--accent);
  background: linear-gradient(90deg, rgba(31, 140, 255, 0.34), rgba(116, 226, 255, 0.08), transparent);
  color: var(--ink-strong);
}

.mode-chip {
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 28px;
  color: var(--ink);
}

.mode-mark {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(116, 226, 255, 0.44);
  background:
    radial-gradient(circle at 50% 50%, rgba(116, 226, 255, 0.86), transparent 22%),
    conic-gradient(from 0deg, transparent 0 28%, rgba(116, 226, 255, 0.86) 28% 36%, transparent 36% 100%);
  border-radius: 50%;
  box-shadow: 0 0 22px rgba(116, 226, 255, 0.32);
}

.mode-chip small,
.mode-chip strong {
  display: block;
  font-size: 12px;
  line-height: 1.2;
  text-transform: uppercase;
}

.mode-chip small {
  color: var(--faint);
}

.mode-chip strong {
  color: var(--ink-strong);
}

.viewer-topbar {
  position: absolute;
  top: 30px;
  left: auto;
  right: 36px;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 24px;
  pointer-events: none;
}

.topline {
  display: none;
}

.topline h2 {
  margin: 4px 0 0;
  color: var(--ink-strong);
  font-size: 22px;
  line-height: 1;
  text-shadow: 0 8px 30px rgba(0, 10, 24, 0.34);
}

.viewer-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
}

.view-switcher {
  display: flex;
  align-items: center;
  border: 1px solid rgba(202, 239, 255, 0.28);
  background:
    linear-gradient(135deg, rgba(8, 20, 34, 0.66), rgba(50, 83, 108, 0.38)),
    rgba(8, 20, 34, 0.48);
  box-shadow: 0 12px 28px rgba(0, 10, 24, 0.22);
  backdrop-filter: blur(14px);
}

.view-choice {
  min-height: 42px;
  border: 0;
  border-right: 1px solid rgba(202, 239, 255, 0.18);
  padding: 0 13px;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.view-choice:last-child {
  border-right: 0;
}

.view-choice:hover,
.view-choice.is-active {
  color: var(--ink-strong);
  background:
    linear-gradient(135deg, rgba(45, 153, 255, 0.84), rgba(10, 96, 190, 0.92)),
    #147de8;
}

.view-choice.is-active {
  box-shadow:
    inset 0 0 0 1px rgba(174, 237, 255, 0.52),
    0 0 24px rgba(91, 210, 255, 0.26);
}

.configuration-card {
  position: absolute;
  right: 28px;
  bottom: 134px;
  z-index: 4;
  display: grid;
  width: 292px;
  border: 1px solid rgba(202, 239, 255, 0.24);
  background:
    linear-gradient(135deg, rgba(7, 17, 30, 0.78), rgba(70, 105, 124, 0.42)),
    rgba(5, 14, 25, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(1.2);
}

.configuration-card .eyebrow {
  padding: 18px 20px 0;
}

.configuration-card strong {
  padding: 8px 20px 18px;
  color: var(--ink-strong);
  font-size: 27px;
  font-weight: 400;
  line-height: 1;
}

.summary-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  border: 0;
  border-top: 1px solid rgba(202, 239, 255, 0.2);
  padding: 0 20px;
  background: rgba(255, 255, 255, 0.92);
  color: #203244;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.summary-button::after {
  content: ">";
  color: currentColor;
  font-size: 17px;
}

.summary-button-primary {
  background: linear-gradient(90deg, #0b4fab, #1d7dff);
  color: #fff;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.loader {
  position: absolute;
  left: 50%;
  bottom: 204px;
  z-index: 8;
  width: min(360px, calc(100% - 48px));
  transform: translateX(-50%);
  color: var(--ink);
  font-size: 13px;
  text-align: center;
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease;
}

.loader.is-hidden {
  display: none;
  visibility: hidden;
  opacity: 0;
}

.loader-bar {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.loader-bar span {
  display: block;
  width: 4%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  box-shadow: 0 0 18px rgba(116, 226, 255, 0.48);
  transition: width 0.2s ease;
}

.config-dock {
  position: absolute;
  right: 50%;
  bottom: 34px;
  z-index: 5;
  width: min(58vw, 760px);
  color: #fff;
  transform: translateX(50%);
  pointer-events: none;
}

.config-dock::before {
  display: none;
  content: "";
}

.config-dock::after {
  display: none;
  content: "";
}

.dock-panels {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 108px;
  place-items: end center;
  padding: 0 22px 16px;
  pointer-events: none;
}

.dock-panel {
  display: none;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  width: 100%;
  min-height: 82px;
  pointer-events: auto;
}

.dock-panel.is-active {
  display: flex;
}

.dock-value {
  align-self: center;
  min-width: 112px;
  color: rgba(9, 23, 36, 0.72);
  font-size: 14px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
}

.dock-swatches {
  display: flex;
  justify-content: center;
  gap: 24px;
  width: auto;
}

.dock-segments {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  width: min(520px, 100%);
}

.pill-control {
  min-height: 42px;
  border: 1px solid rgba(202, 239, 255, 0.34);
  padding: 0 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(218, 237, 246, 0.68)),
    rgba(255, 255, 255, 0.66);
  color: #123047;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.64),
    0 9px 22px rgba(0, 10, 24, 0.16);
  cursor: pointer;
  transition:
    transform 0.16s ease,
    background 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    color 0.16s ease;
}

@media (min-width: 900px) {
  .dock-panel[data-panel="animations"] {
    flex-wrap: nowrap;
    gap: 10px;
  }

  .dock-panel[data-panel="animations"] .pill-control {
    padding: 0 13px;
    font-size: 11px;
  }
}

.pill-control:hover,
.pill-control.is-active {
  border-color: rgba(116, 226, 255, 0.86);
  background:
    linear-gradient(180deg, rgba(31, 140, 255, 0.96), rgba(13, 83, 172, 0.92)),
    var(--accent);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    0 0 0 1px rgba(116, 226, 255, 0.34),
    0 12px 28px rgba(0, 10, 24, 0.24),
    0 0 24px rgba(116, 226, 255, 0.38);
  transform: translateY(-1px);
}

.swatches {
  display: grid;
  grid-template-columns: repeat(6, 48px);
  gap: 18px;
}

.swatch {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--swatch);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.16),
    0 8px 18px rgba(0, 10, 24, 0.2);
  cursor: pointer;
  transition:
    box-shadow 0.16s ease,
    filter 0.16s ease,
    transform 0.16s ease;
}

.swatch:hover {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.38),
    0 0 0 5px rgba(116, 226, 255, 0.34),
    0 10px 24px rgba(0, 10, 24, 0.24),
    0 0 26px rgba(116, 226, 255, 0.42);
  filter: brightness(1.08) saturate(1.08);
  transform: translateY(-2px) scale(1.03);
}

.swatch.is-active {
  outline: 4px solid rgba(255, 255, 255, 0.96);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.18),
    0 0 0 5px rgba(31, 140, 255, 0.76),
    0 8px 22px rgba(0, 10, 24, 0.24);
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.segment-button {
  min-height: 40px;
  border: 1px solid rgba(202, 239, 255, 0.32);
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.72);
  color: #123047;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    color 0.16s ease,
    transform 0.16s ease;
}

.segment-button:hover {
  border-color: rgba(116, 226, 255, 0.86);
  background:
    linear-gradient(90deg, rgba(116, 226, 255, 0.92), rgba(31, 140, 255, 0.72)),
    rgba(255, 255, 255, 0.82);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.44),
    0 0 0 1px rgba(116, 226, 255, 0.34),
    0 12px 28px rgba(0, 10, 24, 0.22),
    0 0 24px rgba(116, 226, 255, 0.38);
  transform: translateY(-2px);
}

.segment-button.is-active {
  border-color: rgba(31, 140, 255, 0.72);
  background: linear-gradient(90deg, #0b4fab, #1d7dff);
  color: #fff;
}

@media (max-width: 1100px) {
  .brand-panel {
    width: 238px;
    padding: 28px 24px 26px;
  }

  .brand-lockup h1 {
    font-size: 70px;
  }

  .configuration-card {
    width: 250px;
    right: 18px;
  }

  .config-dock {
    width: min(66vw, 720px);
  }
}

@media (max-width: 900px) {
  body {
    overflow: hidden;
  }

  .brand-panel {
    inset: 0 0 auto 0;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 16px;
    width: 100%;
    height: 98px;
    padding: 14px 18px;
    background: linear-gradient(180deg, rgba(4, 12, 22, 0.82), rgba(4, 12, 22, 0.36));
  }

  .back-link,
  .config-label,
  .mode-chip {
    display: none;
  }

  .brand-lockup {
    display: flex;
    align-items: baseline;
    gap: 9px;
  }

  .brand-lockup p {
    font-size: 11px;
  }

  .brand-lockup h1 {
    margin: 0;
    font-size: 46px;
  }

  .brand-lockup span {
    display: none;
  }

  .side-nav {
    display: flex;
    min-width: 0;
    gap: 4px;
    overflow-x: auto;
  }

  .side-link {
    flex: 0 0 auto;
    grid-template-columns: 20px auto;
    min-height: 42px;
    padding: 0 9px;
  }

  .side-link span {
    font-size: 11px;
  }

  .viewer-topbar {
    top: 108px;
    right: 18px;
  }

  .topline h2 {
    font-size: 18px;
  }

  .configuration-card {
    display: none;
  }

  .config-dock {
    width: 100vw;
    bottom: 20px;
  }

  .config-dock::before,
  .config-dock::after {
    display: none;
  }

  .dock-panels {
    min-height: 118px;
    padding: 0 12px 14px;
    background: linear-gradient(180deg, transparent, rgba(5, 13, 24, 0.48));
  }

  .dock-swatches {
    gap: 15px;
  }
}

@media (max-width: 560px) {
  .viewer-topbar {
    display: none;
  }

  .side-link span {
    display: none;
  }

  .dock-panel {
    gap: 8px;
    min-height: 96px;
  }

  .dock-value {
    flex-basis: 100%;
    min-width: 0;
    font-size: 12px;
  }

  .swatches {
    grid-template-columns: repeat(6, 38px);
    gap: 10px;
  }

  .swatch {
    width: 38px;
    height: 38px;
  }

  .segment-button,
  .pill-control {
    min-height: 38px;
    padding: 0 12px;
    font-size: 11px;
  }

  .hotspot-floating-card {
    width: min(248px, calc(100% - 28px));
  }
}
