:root {
  color-scheme: dark;
  --ink: #d8ffff;
  --muted: #87a7a7;
  --line: rgba(91, 255, 244, 0.28);
  --glass: rgba(4, 20, 22, 0.72);
  --cloud: #061315;
  --sky: #38fff4;
  --rose: #6b77ff;
  --gold: #e9ff7b;
  --mint: #39ffc2;
  --coral: #ff9f57;
  --violet: #7c6cff;
  --deep: #020707;
  --panel: rgba(3, 17, 19, 0.8);
  --shadow: 0 24px 80px rgba(0, 255, 230, 0.08);
  --radius: 4px;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  min-height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  font-family:
    Inter, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui,
    -apple-system, sans-serif;
  background:
    radial-gradient(circle at 18% 18%, rgba(0, 255, 230, 0.16), transparent 28%),
    radial-gradient(circle at 72% 34%, rgba(18, 122, 116, 0.34), transparent 34%),
    radial-gradient(circle at 48% 82%, rgba(233, 255, 123, 0.09), transparent 30%),
    linear-gradient(160deg, #010404 0%, #041112 38%, #071a1c 58%, #020707 100%);
  background-size: auto;
  background-position: center;
  background-attachment: fixed;
  animation: skyBreath 18s ease-in-out infinite alternate;
}

body::before,
body::after {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
}

body::before {
  opacity: 0.18;
  background:
    linear-gradient(rgba(91, 255, 244, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 255, 244, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, black, transparent 78%);
}

body::after {
  opacity: 0.16;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 4px),
    radial-gradient(circle at 50% 48%, rgba(56, 255, 244, 0.18), transparent 42%);
  mix-blend-mode: screen;
}

.dream-canvas,
.sky-ribbons,
.cloud-drift {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.dream-canvas {
  z-index: 0;
  opacity: 0.86;
}

.sky-ribbons {
  z-index: 0;
  overflow: hidden;
  mix-blend-mode: screen;
}

.sky-ribbons span {
  position: absolute;
  width: 92vw;
  height: 18vh;
  left: -18vw;
  border-radius: 999px;
  filter: blur(18px);
  transform: rotate(-10deg);
  opacity: 0.24;
  animation: ribbonDrift 22s ease-in-out infinite;
}

.sky-ribbons span:nth-child(1) {
  top: 9vh;
  background: linear-gradient(90deg, transparent, rgba(56, 255, 244, 0.52), rgba(57, 255, 194, 0.3), transparent);
}

.sky-ribbons span:nth-child(2) {
  top: 38vh;
  left: 18vw;
  width: 78vw;
  animation-delay: -7s;
  animation-duration: 26s;
  background: linear-gradient(90deg, transparent, rgba(17, 105, 100, 0.42), rgba(233, 255, 123, 0.2), transparent);
}

.sky-ribbons span:nth-child(3) {
  top: 67vh;
  left: -8vw;
  width: 88vw;
  animation-delay: -13s;
  animation-duration: 30s;
  background: linear-gradient(90deg, transparent, rgba(56, 255, 244, 0.26), rgba(124, 108, 255, 0.18), transparent);
}

.cloud-drift {
  z-index: 0;
  overflow: hidden;
}

.cloud-drift span {
  position: absolute;
  display: block;
  width: 34vw;
  min-width: 280px;
  height: 74px;
  left: -36vw;
  border-radius: 999px;
  background: rgba(56, 255, 244, 0.08);
  box-shadow:
    72px 10px 0 rgba(57, 255, 194, 0.08),
    154px -16px 0 rgba(255, 255, 255, 0.06),
    244px 8px 0 rgba(56, 255, 244, 0.1);
  filter: blur(18px);
  animation: cloudFloat 44s linear infinite;
}

.cloud-drift span:nth-child(1) {
  top: 14vh;
}

.cloud-drift span:nth-child(2) {
  top: 52vh;
  animation-delay: -18s;
  animation-duration: 56s;
  opacity: 0.7;
}

.cloud-drift span:nth-child(3) {
  top: 76vh;
  animation-delay: -30s;
  animation-duration: 64s;
  opacity: 0.58;
}

button,
input {
  font: inherit;
}

button,
label[for] {
  cursor: pointer;
}

button {
  border: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.login-gate {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 36%, rgba(56, 255, 244, 0.18), transparent 32%),
    radial-gradient(circle at 72% 68%, rgba(233, 255, 123, 0.08), transparent 28%),
    linear-gradient(160deg, rgba(1, 4, 4, 0.98), rgba(3, 18, 20, 0.98));
  transition: opacity 520ms ease, visibility 520ms ease;
}

.login-gate.is-unlocked {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.gate-backdrop {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.gate-backdrop::before,
.gate-backdrop::after {
  position: absolute;
  inset: 0;
  content: "";
}

.gate-backdrop::before {
  background:
    linear-gradient(rgba(91, 255, 244, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 255, 244, 0.06) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at center, black, transparent 72%);
}

.gate-backdrop::after {
  background: repeating-linear-gradient(0deg, transparent 0 8px, rgba(216, 255, 255, 0.04) 8px 10px);
  animation: gateScanlines 8s linear infinite;
}

.gate-backdrop span {
  position: absolute;
  width: 58vw;
  height: 20vh;
  left: -16vw;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(56, 255, 244, 0.34), transparent);
  filter: blur(22px);
  animation: gateAurora 16s ease-in-out infinite;
}

.gate-backdrop span:nth-child(2) {
  top: 42%;
  left: 28vw;
  animation-delay: -6s;
  background: linear-gradient(90deg, transparent, rgba(57, 255, 194, 0.22), rgba(233, 255, 123, 0.1), transparent);
}

.gate-backdrop span:nth-child(3) {
  top: 70%;
  left: -4vw;
  animation-delay: -11s;
  background: linear-gradient(90deg, transparent, rgba(124, 108, 255, 0.2), rgba(56, 255, 244, 0.2), transparent);
}

.gate-panel {
  position: relative;
  width: min(940px, 100%);
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(300px, 1.1fr);
  grid-template-rows: auto 1fr auto;
  gap: 24px;
  padding: clamp(20px, 4vw, 38px);
  border: 1px solid rgba(91, 255, 244, 0.42);
  clip-path: polygon(0 28px, 28px 0, calc(100% - 28px) 0, 100% 28px, 100% calc(100% - 28px), calc(100% - 28px) 100%, 28px 100%, 0 calc(100% - 28px));
  background:
    linear-gradient(90deg, rgba(91, 255, 244, 0.07) 1px, transparent 1px),
    linear-gradient(0deg, rgba(91, 255, 244, 0.05) 1px, transparent 1px),
    radial-gradient(circle at 34% 38%, rgba(56, 255, 244, 0.18), transparent 34%),
    linear-gradient(145deg, rgba(4, 24, 25, 0.92), rgba(2, 8, 9, 0.88));
  background-size: 42px 42px, 42px 42px, auto, auto;
  box-shadow:
    inset 0 0 42px rgba(56, 255, 244, 0.12),
    0 0 80px rgba(56, 255, 244, 0.12);
}

.gate-panel::before,
.gate-panel::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.gate-panel::before {
  inset: 18px;
  border: 1px solid rgba(233, 255, 123, 0.18);
  clip-path: polygon(0 18px, 18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
}

.gate-panel::after {
  inset: 0;
  background: linear-gradient(115deg, transparent 0 42%, rgba(56, 255, 244, 0.18) 48%, transparent 54% 100%);
  transform: translateX(-120%);
  animation: holoSweep 6.4s ease-in-out infinite;
}

.gate-status {
  grid-column: 1 / -1;
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #e9ff7b;
  font-family: "SF Mono", Consolas, monospace;
  font-size: 12px;
  font-weight: 800;
}

.gate-status strong {
  color: #38fff4;
  text-shadow: 0 0 14px rgba(56, 255, 244, 0.52);
}

.guardian-shell {
  position: relative;
  z-index: 1;
  grid-row: 2 / 4;
  min-height: 430px;
  display: grid;
  place-items: center;
  perspective: 900px;
  isolation: isolate;
}

.sentinel-field {
  position: relative;
  width: min(390px, 82vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  transform-style: preserve-3d;
  filter: drop-shadow(0 0 38px rgba(56, 255, 244, 0.32));
}

.sentinel-field::before,
.sentinel-field::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.sentinel-field::before {
  inset: 11%;
  border: 1px solid rgba(91, 255, 244, 0.35);
  clip-path: polygon(50% 0, 92% 24%, 92% 76%, 50% 100%, 8% 76%, 8% 24%);
  background:
    linear-gradient(90deg, rgba(91, 255, 244, 0.13) 1px, transparent 1px),
    linear-gradient(0deg, rgba(91, 255, 244, 0.1) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, rgba(56, 255, 244, 0.16), transparent 54%);
  background-size: 24px 24px, 24px 24px, auto;
  box-shadow:
    inset 0 0 46px rgba(56, 255, 244, 0.1),
    0 0 38px rgba(56, 255, 244, 0.16);
  animation: sentinelPanel 6s ease-in-out infinite;
}

.sentinel-field::after {
  inset: -4%;
  border-radius: 999px;
  background:
    conic-gradient(from 0deg, transparent, rgba(56, 255, 244, 0.42), transparent 28%, rgba(233, 255, 123, 0.3), transparent 56%, rgba(57, 255, 194, 0.36), transparent);
  mask-image: radial-gradient(circle, transparent 54%, black 56%, black 61%, transparent 64%);
  opacity: 0.84;
  animation: sentinelSpin 11s linear infinite;
}

.sentinel-grid {
  position: absolute;
  inset: -10%;
  background:
    repeating-linear-gradient(90deg, transparent 0 16px, rgba(216, 255, 255, 0.08) 16px 17px),
    repeating-linear-gradient(0deg, transparent 0 18px, rgba(91, 255, 244, 0.08) 18px 19px);
  mask-image: radial-gradient(circle at center, black 0 46%, transparent 70%);
  opacity: 0.42;
  animation: sentinelScan 5.8s linear infinite;
}

.sentinel-ring {
  position: absolute;
  border: 1px solid rgba(91, 255, 244, 0.3);
  border-radius: 999px;
  transform-style: preserve-3d;
  animation: sentinelSpin 9s linear infinite;
}

.ring-a {
  inset: 14%;
  transform: rotateX(64deg) rotateZ(18deg);
}

.ring-b {
  inset: 5%;
  border-color: rgba(233, 255, 123, 0.26);
  animation-duration: 13s;
  animation-direction: reverse;
  transform: rotateX(72deg) rotateZ(-34deg);
}

.ring-c {
  inset: 25%;
  border-style: dashed;
  border-color: rgba(57, 255, 194, 0.36);
  animation-duration: 6.5s;
  transform: rotateY(68deg) rotateZ(45deg);
}

.sentinel-beam {
  position: absolute;
  width: 80%;
  height: 80%;
  border-radius: 999px;
  background: conic-gradient(from 45deg, transparent 0 22%, rgba(233, 255, 123, 0.2) 24%, transparent 31%, rgba(56, 255, 244, 0.2) 44%, transparent 52%, rgba(255, 159, 87, 0.18) 68%, transparent 76%);
  mask-image: radial-gradient(circle, transparent 0 38%, black 40%, transparent 66%);
  mix-blend-mode: screen;
  animation: sentinelSpin 7s linear infinite reverse;
}

.sentinel-core {
  position: absolute;
  width: 42%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  clip-path: polygon(50% 0, 88% 18%, 100% 50%, 82% 88%, 50% 100%, 18% 88%, 0 50%, 12% 18%);
  background:
    linear-gradient(135deg, rgba(216, 255, 255, 0.28), rgba(56, 255, 244, 0.08) 38%, rgba(2, 9, 10, 0.76) 62%, rgba(233, 255, 123, 0.16)),
    rgba(2, 12, 13, 0.92);
  border: 1px solid rgba(216, 255, 255, 0.45);
  box-shadow:
    inset 0 0 34px rgba(56, 255, 244, 0.22),
    inset 0 0 80px rgba(233, 255, 123, 0.08),
    0 0 58px rgba(56, 255, 244, 0.3);
  animation: sentinelHover 3.4s ease-in-out infinite;
}

.sentinel-core::before,
.sentinel-core::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.sentinel-core::before {
  inset: 14%;
  clip-path: inherit;
  border: 1px solid rgba(233, 255, 123, 0.34);
  animation: sentinelPulse 1.8s ease-in-out infinite;
}

.sentinel-core::after {
  width: 132%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(216, 255, 255, 0.95), transparent);
  box-shadow: 0 0 18px rgba(216, 255, 255, 0.8);
  animation: sentinelSlice 2.6s ease-in-out infinite;
}

.core-crystal {
  position: absolute;
  inset: 26%;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  background:
    radial-gradient(circle, #e9ff7b 0 10%, #38fff4 12% 42%, rgba(56, 255, 244, 0.16) 56%, transparent 72%);
  box-shadow:
    0 0 24px rgba(233, 255, 123, 0.62),
    0 0 56px rgba(56, 255, 244, 0.42);
  animation: sentinelPulse 1.45s ease-in-out infinite;
}

.core-eye {
  position: absolute;
  width: 18%;
  aspect-ratio: 1;
  border-radius: 999px;
  background: #d8ffff;
  box-shadow:
    0 0 16px #d8ffff,
    0 0 42px rgba(233, 255, 123, 0.74),
    0 0 76px rgba(56, 255, 244, 0.62);
}

.core-blade {
  position: absolute;
  inset: -12%;
  border: 1px solid rgba(56, 255, 244, 0.24);
  clip-path: polygon(50% 0, 54% 34%, 100% 50%, 54% 66%, 50% 100%, 46% 66%, 0 50%, 46% 34%);
  animation: sentinelSpin 4.8s linear infinite;
}

.b2 {
  animation-duration: 6.4s;
  animation-direction: reverse;
  transform: rotate(60deg);
  border-color: rgba(233, 255, 123, 0.25);
}

.b3 {
  animation-duration: 8.2s;
  transform: rotate(120deg);
  border-color: rgba(255, 159, 87, 0.2);
}

.sentinel-cloud {
  position: absolute;
  left: 22%;
  right: 22%;
  bottom: 20%;
  height: 16%;
  border: 1px solid rgba(91, 255, 244, 0.36);
  clip-path: polygon(8% 32%, 28% 32%, 38% 8%, 58% 8%, 72% 32%, 92% 32%, 100% 52%, 92% 78%, 8% 78%, 0 52%);
  background:
    linear-gradient(90deg, rgba(56, 255, 244, 0.1), rgba(233, 255, 123, 0.13), rgba(56, 255, 244, 0.1)),
    rgba(2, 12, 13, 0.72);
  box-shadow:
    inset 0 0 28px rgba(56, 255, 244, 0.16),
    0 0 34px rgba(56, 255, 244, 0.2);
  animation: sentinelCloud 2.8s ease-in-out infinite;
}

.sentinel-cloud i {
  position: absolute;
  top: 48%;
  width: 18%;
  height: 2px;
  background: rgba(216, 255, 255, 0.72);
  box-shadow: 0 0 14px rgba(216, 255, 255, 0.72);
  animation: sentinelData 1.8s ease-in-out infinite;
}

.sentinel-cloud i:nth-child(1) {
  left: 18%;
}

.sentinel-cloud i:nth-child(2) {
  left: 42%;
  animation-delay: -0.45s;
}

.sentinel-cloud i:nth-child(3) {
  left: 66%;
  animation-delay: -0.9s;
}

.sentinel-particles span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  background: #e9ff7b;
  box-shadow: 0 0 18px rgba(233, 255, 123, 0.72);
  opacity: 0;
  animation: sentinelParticle 4.2s ease-in-out infinite;
}

.sentinel-particles span:nth-child(1) { --x: -158px; --y: -92px; animation-delay: 0s; }
.sentinel-particles span:nth-child(2) { --x: 148px; --y: -70px; animation-delay: -0.7s; }
.sentinel-particles span:nth-child(3) { --x: 124px; --y: 116px; animation-delay: -1.4s; }
.sentinel-particles span:nth-child(4) { --x: -132px; --y: 126px; animation-delay: -2.1s; }
.sentinel-particles span:nth-child(5) { --x: 4px; --y: -176px; animation-delay: -2.8s; }
.sentinel-particles span:nth-child(6) { --x: -6px; --y: 176px; animation-delay: -3.5s; }

.gate-copy,
.question-console,
.gate-actions {
  position: relative;
  z-index: 1;
}

.gate-copy {
  align-self: end;
}

.gate-copy h2 {
  margin-bottom: 12px;
  font-size: clamp(28px, 4.6vw, 54px);
  line-height: 1.05;
  color: #d8ffff;
  text-shadow: 0 0 26px rgba(56, 255, 244, 0.24);
}

.gate-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.question-console {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(91, 255, 244, 0.24);
  background: rgba(2, 9, 10, 0.68);
}

.question-console[hidden] {
  display: none;
}

.question-progress {
  display: grid;
  gap: 8px;
  font-family: "SF Mono", Consolas, monospace;
  color: #e9ff7b;
  font-size: 12px;
  font-weight: 800;
}

.question-progress div {
  height: 6px;
  overflow: hidden;
  border: 1px solid rgba(91, 255, 244, 0.3);
  background: rgba(3, 17, 19, 0.8);
}

.question-progress i {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #38fff4, #39ffc2, #e9ff7b);
  box-shadow: 0 0 20px rgba(56, 255, 244, 0.54);
  transition: width 300ms ease;
}

#guardianQuestion {
  margin: 0;
  color: #d8ffff;
  font-size: 19px;
  line-height: 1.55;
}

#guardianAnswer {
  width: 100%;
  min-height: 54px;
  padding: 0 14px;
  color: var(--ink);
  border: 1px solid rgba(91, 255, 244, 0.28);
  border-radius: var(--radius);
  background: rgba(3, 17, 19, 0.88);
  outline: none;
  font-family: "SF Mono", Consolas, monospace;
  font-size: 18px;
  font-weight: 800;
}

#guardianAnswer:focus {
  border-color: rgba(233, 255, 123, 0.54);
  box-shadow: 0 0 22px rgba(56, 255, 244, 0.16);
}

.gate-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.app-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  min-height: 100vh;
}

.side-rail {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px 18px;
  border-right: 1px solid rgba(91, 255, 244, 0.24);
  background:
    linear-gradient(180deg, rgba(4, 24, 25, 0.92), rgba(2, 9, 10, 0.78)),
    rgba(2, 9, 10, 0.82);
  backdrop-filter: blur(24px) saturate(1.2);
  box-shadow: inset -1px 0 0 rgba(233, 255, 123, 0.14);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-crest {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  filter: drop-shadow(0 0 18px rgba(56, 255, 244, 0.38));
  animation: crestGlow 4.8s ease-in-out infinite;
}

.brand strong,
.brand span {
  display: block;
}

.brand strong {
  font-size: 18px;
  line-height: 1.25;
}

.brand span {
  margin-top: 4px;
  color: #7ba3a3;
  font-size: 13px;
}

.nav-list {
  display: grid;
  gap: 8px;
}

.nav-item {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 12px;
  color: #9ab9b9;
  border-radius: var(--radius);
  background: transparent;
  text-align: left;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.nav-item svg {
  width: 20px;
  height: 20px;
}

.nav-item:hover,
.nav-item:focus-visible {
  color: #e9ff7b;
  background: rgba(56, 255, 244, 0.08);
  outline: none;
}

.nav-item.is-active {
  color: #d8ffff;
  background:
    linear-gradient(90deg, rgba(56, 255, 244, 0.18), rgba(233, 255, 123, 0.06)),
    rgba(4, 24, 25, 0.72);
  box-shadow:
    inset 3px 0 0 var(--sky),
    0 0 28px rgba(56, 255, 244, 0.08);
}

.side-status {
  margin-top: auto;
  display: grid;
  gap: 10px;
}

.side-status div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(91, 255, 244, 0.22);
  border-radius: var(--radius);
  background: rgba(4, 24, 25, 0.62);
}

.side-status span {
  color: var(--muted);
  font-size: 13px;
}

.workspace {
  min-width: 0;
  padding: 28px clamp(18px, 4vw, 46px) 42px;
}

.top-bar,
.section-head,
.vault-toolbar,
.vault-lock-panel,
.vault-cloud-panel,
.call-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.top-bar {
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 7px;
  color: #e9ff7b;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 0;
  font-size: clamp(30px, 5vw, 56px);
  line-height: 1.05;
  color: transparent;
  background: linear-gradient(92deg, #d8ffff, #38fff4, #e9ff7b, #38fff4, #d8ffff);
  background-size: 280% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: titleShimmer 9s ease-in-out infinite;
  filter: drop-shadow(0 0 18px rgba(56, 255, 244, 0.24));
}

h2 {
  margin-bottom: 0;
  font-size: clamp(24px, 4vw, 38px);
  line-height: 1.14;
}

h3 {
  margin-bottom: 8px;
  font-size: 19px;
}

.quick-actions,
.call-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.icon-button,
.primary-action,
.ghost-button,
.feature-panel button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border-radius: var(--radius);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.icon-button {
  width: 44px;
  color: var(--ink);
  border: 1px solid rgba(91, 255, 244, 0.3);
  background: rgba(4, 24, 25, 0.72);
}

.primary-action {
  padding: 0 16px;
  color: #021010;
  background: linear-gradient(90deg, #38fff4, #39ffc2 58%, #e9ff7b);
  box-shadow: 0 0 26px rgba(56, 255, 244, 0.24);
  font-weight: 800;
}

.ghost-button,
.feature-panel button {
  padding: 0 13px;
  color: #d8ffff;
  border: 1px solid rgba(91, 255, 244, 0.3);
  background: rgba(4, 24, 25, 0.7);
}

.icon-button:hover,
.primary-action:hover,
.ghost-button:hover,
.feature-panel button:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 24px rgba(56, 255, 244, 0.2);
}

.primary-action {
  position: relative;
  overflow: hidden;
}

.primary-action::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(110deg, transparent 0 32%, rgba(255, 255, 255, 0.46) 46%, transparent 62% 100%);
  transform: translateX(-120%);
  animation: buttonGleam 4.8s ease-in-out infinite;
}

.primary-action > * {
  position: relative;
  z-index: 1;
}

.icon-button svg,
.primary-action svg,
.ghost-button svg,
.feature-panel svg {
  width: 19px;
  height: 19px;
}

.view {
  display: none;
}

.view.is-active {
  display: block;
  animation: viewBloom 360ms ease both;
}

.gift-stage {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(280px, 1.15fr) minmax(260px, 0.85fr);
  gap: clamp(18px, 3vw, 34px);
  align-items: center;
  min-height: 350px;
  padding: clamp(18px, 4vw, 34px);
  border: 1px solid rgba(91, 255, 244, 0.34);
  border-radius: var(--radius);
  clip-path: polygon(0 18px, 18px 0, calc(100% - 18px) 0, 100% 18px, 100% calc(100% - 18px), calc(100% - 18px) 100%, 18px 100%, 0 calc(100% - 18px));
  background:
    linear-gradient(90deg, rgba(91, 255, 244, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(91, 255, 244, 0.06) 1px, transparent 1px),
    radial-gradient(circle at 34% 44%, rgba(56, 255, 244, 0.18), transparent 30%),
    radial-gradient(circle at 74% 34%, rgba(233, 255, 123, 0.08), transparent 26%),
    linear-gradient(135deg, rgba(4, 24, 25, 0.88), rgba(2, 7, 7, 0.76)),
    linear-gradient(90deg, rgba(56, 255, 244, 0.1), rgba(57, 255, 194, 0.06));
  background-size: 44px 44px, 44px 44px, auto, auto, auto, auto;
  box-shadow:
    0 0 0 1px rgba(91, 255, 244, 0.18),
    0 0 42px rgba(56, 255, 244, 0.16),
    0 0 90px rgba(57, 255, 194, 0.08),
    var(--shadow);
  animation: stageAura 6.8s ease-in-out infinite;
}

.gift-stage::before {
  position: absolute;
  inset: -45%;
  content: "";
  background:
    conic-gradient(from 60deg, transparent, rgba(56, 255, 244, 0.18), transparent 28%),
    linear-gradient(90deg, transparent, rgba(233, 255, 123, 0.12), transparent);
  transform: translateX(-32%) rotate(8deg);
  animation: palaceSweep 10s ease-in-out infinite;
}

.gift-stage::after {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 44%;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), rgba(244, 201, 93, 0.75), transparent);
  filter: blur(0.4px);
  animation: horizonGlitter 3.6s ease-in-out infinite;
}

.holo-visual {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: clamp(300px, 36vw, 470px);
  perspective: 1100px;
  filter:
    drop-shadow(0 0 24px rgba(56, 255, 244, 0.28))
    drop-shadow(0 26px 60px rgba(0, 0, 0, 0.52));
  animation: palaceFloat 7s ease-in-out infinite;
}

.holo-frame {
  position: absolute;
  inset: 5%;
  overflow: hidden;
  border: 1px solid rgba(91, 255, 244, 0.44);
  clip-path: polygon(0 28px, 28px 0, calc(100% - 28px) 0, 100% 28px, 100% calc(100% - 28px), calc(100% - 28px) 100%, 28px 100%, 0 calc(100% - 28px));
  background:
    linear-gradient(90deg, rgba(91, 255, 244, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(91, 255, 244, 0.06) 1px, transparent 1px),
    radial-gradient(circle at 50% 48%, rgba(56, 255, 244, 0.22), transparent 30%),
    radial-gradient(circle at 68% 32%, rgba(233, 255, 123, 0.08), transparent 22%),
    linear-gradient(180deg, rgba(7, 38, 38, 0.82), rgba(1, 7, 8, 0.92));
  background-size: 42px 42px, 42px 42px, auto, auto, auto;
  transform: rotateX(2deg) rotateY(-5deg);
  transform-style: preserve-3d;
  box-shadow:
    inset 0 0 42px rgba(56, 255, 244, 0.16),
    0 0 46px rgba(56, 255, 244, 0.12);
}

.holo-frame::before,
.holo-frame::after {
  position: absolute;
  inset: 20px;
  content: "";
  pointer-events: none;
}

.holo-frame::before {
  border: 1px solid rgba(233, 255, 123, 0.18);
  clip-path: polygon(0 18px, 18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
  animation: framePulse 4.5s ease-in-out infinite;
}

.holo-frame::after {
  background:
    linear-gradient(115deg, transparent 0 42%, rgba(56, 255, 244, 0.22) 48%, transparent 54% 100%),
    repeating-linear-gradient(0deg, transparent 0 7px, rgba(216, 255, 255, 0.04) 7px 9px);
  mix-blend-mode: screen;
  animation: holoSweep 5.8s ease-in-out infinite;
}

.holo-scan {
  position: absolute;
  inset: -20% 0;
  z-index: 5;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(56, 255, 244, 0.28), transparent);
  transform: translateY(-80%);
  animation: scanPass 4.2s linear infinite;
}

.holo-cloud {
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 18%;
  height: 36%;
  transform: translateZ(80px);
  animation: cloudPulse 5.2s ease-in-out infinite;
}

.cloud-lobe,
.cloud-base {
  position: absolute;
  display: block;
  border: 1px solid rgba(91, 255, 244, 0.32);
  background:
    radial-gradient(circle at 50% 35%, rgba(56, 255, 244, 0.28), transparent 58%),
    rgba(5, 34, 35, 0.66);
  box-shadow:
    inset 0 0 40px rgba(56, 255, 244, 0.16),
    0 0 24px rgba(56, 255, 244, 0.14);
}

.cloud-lobe {
  bottom: 25%;
  border-radius: 999px 999px 18px 18px;
}

.l1 {
  left: 4%;
  width: 34%;
  height: 58%;
}

.l2 {
  left: 26%;
  width: 44%;
  height: 80%;
  animation: lobeRise 4.8s ease-in-out infinite;
}

.l3 {
  right: 4%;
  width: 36%;
  height: 62%;
  animation: lobeRise 5.6s ease-in-out infinite reverse;
}

.cloud-base {
  left: 0;
  right: 0;
  bottom: 4%;
  height: 46%;
  border-radius: 999px;
}

.holo-core {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 190px;
  height: 190px;
  transform: translate(-50%, -50%) translateZ(160px);
}

.core-ring,
.core-orb {
  position: absolute;
  inset: 0;
  display: block;
  border-radius: 999px;
}

.core-ring {
  border: 1px solid rgba(91, 255, 244, 0.68);
  box-shadow:
    inset 0 0 18px rgba(56, 255, 244, 0.18),
    0 0 28px rgba(56, 255, 244, 0.22);
}

.r1 {
  animation: spinCore 8s linear infinite;
}

.r2 {
  inset: 22px;
  border-color: rgba(233, 255, 123, 0.58);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  animation: spinCore 5.5s linear infinite reverse;
}

.r3 {
  inset: 50px;
  border-style: dashed;
  border-color: rgba(216, 255, 255, 0.58);
  animation: spinCore 3.8s linear infinite;
}

.core-orb {
  inset: 72px;
  background: radial-gradient(circle, #e9ff7b 0 22%, #38fff4 24% 48%, rgba(56, 255, 244, 0.1) 50% 100%);
  box-shadow:
    0 0 26px rgba(233, 255, 123, 0.72),
    0 0 58px rgba(56, 255, 244, 0.36);
  animation: coreBreathe 2.2s ease-in-out infinite;
}

.holo-orbit {
  position: absolute;
  left: 50%;
  top: 46%;
  border: 2px solid rgba(56, 255, 244, 0.32);
  border-radius: 50%;
  transform-style: preserve-3d;
}

.holo-orbit::before {
  position: absolute;
  top: 50%;
  left: -5px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  content: "";
  background: #e9ff7b;
  box-shadow: 0 0 20px rgba(233, 255, 123, 0.8);
}

.o1 {
  width: 74%;
  height: 34%;
  transform: translate(-50%, -50%) rotate(-9deg);
  animation: orbitFloat 7s linear infinite;
}

.o2 {
  width: 58%;
  height: 26%;
  border-color: rgba(233, 255, 123, 0.32);
  transform: translate(-50%, -50%) rotate(18deg);
  animation: orbitFloat 5.5s linear infinite reverse;
}

.o3 {
  width: 86%;
  height: 42%;
  border-style: dashed;
  border-color: rgba(216, 255, 255, 0.24);
  transform: translate(-50%, -50%) rotate(2deg);
  animation: orbitFloat 11s linear infinite;
}

.data-streams {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.data-streams span,
.hero-glyph {
  position: absolute;
  color: rgba(216, 255, 255, 0.74);
  font-family: "SF Mono", Consolas, monospace;
  font-size: 11px;
  text-shadow: 0 0 12px rgba(56, 255, 244, 0.62);
}

.hero-glyph {
  z-index: 4;
  padding: 2px 4px;
  border: 1px solid rgba(91, 255, 244, 0.12);
  background: rgba(2, 7, 7, 0.46);
  animation: glyphDrift var(--glyph-duration, 4s) linear forwards;
}

.data-streams span {
  top: -18%;
  width: 1px;
  height: 38%;
  background: linear-gradient(180deg, transparent, rgba(56, 255, 244, 0.72), transparent);
  animation: dataFall 3.8s linear infinite;
}

.data-streams span:nth-child(1) { left: 14%; animation-delay: -0.4s; }
.data-streams span:nth-child(2) { left: 27%; animation-delay: -1.9s; }
.data-streams span:nth-child(3) { left: 43%; animation-delay: -0.9s; }
.data-streams span:nth-child(4) { left: 61%; animation-delay: -2.6s; }
.data-streams span:nth-child(5) { left: 76%; animation-delay: -1.4s; }
.data-streams span:nth-child(6) { left: 88%; animation-delay: -3.1s; }

.signal-nodes span {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #38fff4;
  box-shadow: 0 0 18px rgba(56, 255, 244, 0.78);
  animation: nodeBlink 2.6s ease-in-out infinite;
}

.signal-nodes span:nth-child(1) { left: 18%; top: 26%; }
.signal-nodes span:nth-child(2) { left: 38%; top: 18%; animation-delay: -0.7s; background: #7c6cff; }
.signal-nodes span:nth-child(3) { right: 22%; top: 32%; animation-delay: -1.1s; }
.signal-nodes span:nth-child(4) { left: 22%; bottom: 24%; animation-delay: -1.7s; background: #e9ff7b; }
.signal-nodes span:nth-child(5) { right: 16%; bottom: 28%; animation-delay: -2.2s; background: #39ffc2; }

.gift-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.gift-copy h2 {
  max-width: 640px;
  margin-bottom: 18px;
}

.wish-strip {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.wish-strip span {
  padding: 8px 10px;
  color: #d8ffff;
  border: 1px solid rgba(91, 255, 244, 0.28);
  border-radius: var(--radius);
  background: rgba(3, 17, 19, 0.74);
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 0 18px rgba(56, 255, 244, 0.08);
  animation: wishFloat 5.4s ease-in-out infinite;
}

.wish-strip span:nth-child(2) {
  animation-delay: -1.3s;
}

.wish-strip span:nth-child(3) {
  animation-delay: -2.5s;
}

.wish-strip span:nth-child(4) {
  animation-delay: -3.4s;
}

.stage-effects {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.constellation-map {
  position: absolute;
  left: 4%;
  top: 4%;
  width: min(50%, 460px);
  height: auto;
  opacity: 0.68;
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.72));
}

.constellation-line {
  stroke: rgba(255, 255, 255, 0.92);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 18 18;
  animation: constellationFlow 5s linear infinite;
}

.constellation-line.soft {
  stroke: rgba(32, 216, 255, 0.58);
  stroke-width: 2;
  animation-duration: 7s;
  animation-direction: reverse;
}

.star-node {
  fill: #f4c95d;
  transform-box: fill-box;
  transform-origin: center;
  animation: nodePulse 2.8s ease-in-out infinite;
}

.star-node:nth-of-type(2n) {
  fill: #9cebff;
  animation-delay: -1s;
}

.star-node:nth-of-type(3n) {
  fill: #7c6cff;
  animation-delay: -1.6s;
}

.twinkle {
  position: absolute;
  width: 13px;
  height: 13px;
  transform: rotate(45deg);
  background: #ffffff;
  box-shadow: 0 0 22px rgba(255, 255, 255, 0.86);
  animation: twinklePulse 2.8s ease-in-out infinite;
}

.twinkle::before,
.twinkle::after {
  position: absolute;
  inset: 5px -7px;
  content: "";
  background: inherit;
}

.twinkle::after {
  inset: -7px 5px;
}

.t1 {
  top: 18%;
  left: 12%;
}

.t2 {
  top: 24%;
  right: 24%;
  animation-delay: -0.8s;
}

.t3 {
  left: 48%;
  bottom: 20%;
  animation-delay: -1.5s;
}

.t4 {
  right: 12%;
  bottom: 32%;
  animation-delay: -2.1s;
}

.comet {
  position: absolute;
  top: 14%;
  left: -20%;
  width: 180px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.95), rgba(244, 201, 93, 0.88));
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.84));
  transform: rotate(-18deg);
  animation: cometPass 6.8s ease-in-out infinite;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.feature-panel {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  padding: 18px;
  border: 1px solid rgba(91, 255, 244, 0.26);
  border-radius: var(--radius);
  clip-path: polygon(0 12px, 12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
  background:
    linear-gradient(90deg, rgba(91, 255, 244, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(4, 24, 25, 0.82), rgba(2, 8, 9, 0.72)),
    rgba(3, 17, 19, 0.78);
  background-size: 36px 36px, auto, auto;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.feature-panel::before,
.memory-card::before,
.player-surface::before,
.drop-zone::before,
.chat-room::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(125deg, transparent 12%, rgba(255, 255, 255, 0.58), rgba(32, 216, 255, 0.12), transparent 48%);
  transform: translateX(-120%);
  transition: opacity 180ms ease;
}

.feature-panel:hover {
  transform: translateY(-4px);
  border-color: rgba(91, 255, 244, 0.6);
  box-shadow: 0 0 34px rgba(56, 255, 244, 0.14);
}

.feature-panel:hover::before,
.memory-card:hover::before,
.player-surface:hover::before,
.drop-zone:hover::before,
.chat-room:hover::before {
  opacity: 1;
  animation: panelGleam 900ms ease both;
}

.feature-panel p {
  min-height: 48px;
  color: var(--muted);
}

.panel-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  color: #ffffff;
  border-radius: var(--radius);
}

.panel-icon.sky {
  background: linear-gradient(135deg, var(--sky), #0a807d);
}

.panel-icon.rose {
  background: linear-gradient(135deg, var(--violet), var(--sky));
}

.panel-icon.mint {
  background: linear-gradient(135deg, var(--mint), #0a807d);
}

.panel-icon.gold {
  background: linear-gradient(135deg, var(--gold), #ff8a5c);
}

.section-head {
  margin-bottom: 18px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.memory-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 1px solid rgba(91, 255, 244, 0.28);
  border-radius: var(--radius);
  clip-path: polygon(0 14px, 14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
  background: #020707;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.24);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.memory-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 36px rgba(56, 255, 244, 0.14);
}

.memory-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 220ms ease;
}

.memory-card:hover img {
  transform: scale(1.03);
}

.memory-card span {
  position: absolute;
  z-index: 2;
  left: 12px;
  right: 12px;
  bottom: 12px;
  min-height: 36px;
  display: flex;
  align-items: center;
  padding: 0 11px;
  color: #ffffff;
  border-radius: var(--radius);
  background: rgba(7, 26, 47, 0.64);
  backdrop-filter: blur(10px);
  font-weight: 800;
  text-align: left;
}

.media-layout,
.vault-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  gap: 16px;
}

.player-surface,
.playlist,
.drop-zone,
.vault-list-wrap,
.chat-room {
  border: 1px solid rgba(91, 255, 244, 0.26);
  border-radius: var(--radius);
  clip-path: polygon(0 14px, 14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
  background:
    linear-gradient(90deg, rgba(91, 255, 244, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(4, 24, 25, 0.82), rgba(2, 8, 9, 0.72)),
    rgba(3, 17, 19, 0.78);
  background-size: 36px 36px, auto, auto;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.player-surface {
  position: relative;
  overflow: hidden;
  padding: 12px;
}

.main-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  border-radius: var(--radius);
  background: #071a2f;
}

.audio-player {
  width: 100%;
  margin-top: 12px;
  display: none;
}

.audio-player.is-visible {
  display: block;
}

.playlist {
  padding: 16px;
}

.playlist-item {
  width: 100%;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 48px;
  margin-bottom: 8px;
  padding: 0 12px;
  color: var(--ink);
  border: 1px solid rgba(91, 255, 244, 0.24);
  border-radius: var(--radius);
  background: rgba(3, 17, 19, 0.68);
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.playlist-item:hover {
  transform: translateX(3px);
  border-color: rgba(91, 255, 244, 0.48);
  background: rgba(6, 34, 36, 0.82);
}

.playlist-item.is-active {
  border-color: rgba(233, 255, 123, 0.52);
  background: rgba(19, 45, 39, 0.88);
}

.media-meta {
  margin-top: 18px;
  padding: 14px;
  border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(56, 255, 244, 0.14), rgba(57, 255, 194, 0.08), rgba(233, 255, 123, 0.08));
}

.media-meta span,
.media-meta strong {
  display: block;
}

.media-meta span {
  color: var(--muted);
  font-size: 13px;
}

.vault-lock-panel,
.vault-cloud-panel {
  margin: 0 0 16px;
  padding: 14px;
  border: 1px solid rgba(91, 255, 244, 0.24);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(91, 255, 244, 0.08) 1px, transparent 1px),
    linear-gradient(135deg, rgba(4, 24, 25, 0.78), rgba(2, 8, 9, 0.72));
  background-size: 28px 28px, auto;
  box-shadow: inset 0 0 24px rgba(56, 255, 244, 0.08);
}

.vault-cloud-panel {
  margin-top: -6px;
}

.vault-cloud-panel.is-online {
  border-color: rgba(57, 255, 194, 0.42);
  box-shadow:
    inset 0 0 24px rgba(57, 255, 194, 0.1),
    0 0 28px rgba(57, 255, 194, 0.08);
}

.vault-cloud-panel.is-online .vault-lock-state strong {
  color: var(--mint);
}

.vault-cloud-panel.is-error {
  border-color: rgba(255, 159, 87, 0.42);
}

.vault-cloud-panel.is-error .vault-lock-state strong {
  color: var(--coral);
}

.vault-cloud-panel .ghost-button {
  white-space: nowrap;
}

.vault-lock-state span,
.vault-lock-state strong {
  display: block;
  font-family: "SF Mono", Consolas, monospace;
}

.vault-lock-state span {
  color: #e9ff7b;
  font-size: 12px;
  font-weight: 800;
}

.vault-lock-state strong {
  margin-top: 4px;
  color: var(--sky);
  font-size: 17px;
  text-shadow: 0 0 16px rgba(56, 255, 244, 0.36);
}

.vault-key-form {
  display: grid;
  grid-template-columns: minmax(180px, 260px) auto;
  gap: 10px;
}

.vault-key-form input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  color: var(--ink);
  border: 1px solid rgba(91, 255, 244, 0.28);
  border-radius: var(--radius);
  background: rgba(3, 17, 19, 0.88);
  outline: none;
}

.vault-key-form input:focus {
  border-color: rgba(233, 255, 123, 0.54);
  box-shadow: 0 0 22px rgba(56, 255, 244, 0.16);
}

.drop-zone {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 22px;
  border-style: dashed;
  animation: vaultPulse 5.6s ease-in-out infinite;
}

.drop-zone svg {
  width: 48px;
  height: 48px;
  color: var(--sky);
}

.drop-zone strong {
  font-size: 22px;
}

.drop-zone span {
  color: var(--muted);
}

.drop-zone.is-dragging {
  background: rgba(9, 46, 42, 0.88);
  border-color: var(--mint);
  box-shadow: 0 0 56px rgba(57, 255, 194, 0.2);
}

.drop-zone.is-locked {
  opacity: 0.76;
  filter: grayscale(0.35);
}

.vault-list-wrap {
  min-height: 320px;
  padding: 16px;
}

.vault-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 10px;
}

.vault-list li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(91, 255, 244, 0.2);
  border-radius: var(--radius);
  background: rgba(3, 17, 19, 0.68);
}

.vault-list svg {
  color: var(--sky);
}

.vault-list strong,
.vault-list span {
  display: block;
  overflow-wrap: anywhere;
}

.vault-list span {
  color: var(--muted);
  font-size: 12px;
}

.vault-file-actions {
  display: flex;
  gap: 6px;
}

.vault-file-actions button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--ink);
  border: 1px solid rgba(91, 255, 244, 0.2);
  border-radius: var(--radius);
  background: rgba(4, 24, 25, 0.76);
}

.vault-file-actions button:hover {
  border-color: rgba(233, 255, 123, 0.46);
  box-shadow: 0 0 18px rgba(56, 255, 244, 0.14);
}

.vault-file-actions button:disabled,
.ghost-button:disabled,
.primary-action:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
  box-shadow: none;
}

.vault-list .vault-file-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
}

.vault-source-pill {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 7px;
  color: #e9ff7b;
  border: 1px solid rgba(233, 255, 123, 0.22);
  background: rgba(233, 255, 123, 0.06);
  font-family: "SF Mono", Consolas, monospace;
  font-size: 11px;
  font-weight: 800;
}

.chat-room {
  position: relative;
  min-height: min(640px, calc(100vh - 180px));
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
}

.chat-stream {
  padding: 18px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-bubble {
  max-width: min(78%, 560px);
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(3, 17, 19, 0.8);
  border: 1px solid rgba(91, 255, 244, 0.22);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  animation: bubbleRise 280ms ease both;
}

.chat-bubble.me {
  align-self: flex-end;
  color: #021010;
  border-color: transparent;
  background: linear-gradient(90deg, #38fff4, #39ffc2, #e9ff7b);
  font-weight: 700;
}

.chat-bubble small {
  display: block;
  margin-top: 6px;
  opacity: 0.72;
}

.chat-compose {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid rgba(91, 255, 244, 0.22);
  background: rgba(2, 9, 10, 0.7);
}

.chat-compose input {
  min-width: 0;
  height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(91, 255, 244, 0.24);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(3, 17, 19, 0.86);
}

dialog {
  border: 1px solid rgba(91, 255, 244, 0.28);
  border-radius: 8px;
  padding: 0;
  box-shadow: 0 30px 90px rgba(31, 42, 62, 0.28);
}

dialog::backdrop {
  background: rgba(20, 30, 45, 0.52);
  backdrop-filter: blur(8px);
}

.image-dialog {
  width: min(920px, calc(100vw - 28px));
  background: #020707;
}

.image-dialog img {
  width: 100%;
  max-height: 76vh;
  display: block;
  object-fit: contain;
  background: #020707;
}

.image-dialog strong {
  display: block;
  padding: 14px 16px;
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
}

.call-dialog {
  width: min(680px, calc(100vw - 28px));
  padding: 16px;
  background: linear-gradient(140deg, #041819, #020707);
}

.call-head {
  margin-bottom: 12px;
}

.call-head span,
.call-head strong {
  display: block;
}

.call-head span {
  color: var(--muted);
  font-size: 13px;
}

#localPreview {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(56, 255, 244, 0.22), rgba(124, 108, 255, 0.18)),
    #020707;
  object-fit: cover;
}

#callStatus {
  margin: 12px 0 0;
  color: var(--muted);
}

.spark-burst {
  position: fixed;
  z-index: 4;
  width: 8px;
  height: 8px;
  pointer-events: none;
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  background: #ffffff;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.95);
  animation: burstFly 780ms ease-out forwards;
}

@keyframes skyBreath {
  0% {
    background-position: center top, center top, center bottom, center top, center bottom;
  }

  100% {
    background-position: center 14px, center 22px, center calc(100% + 12px), center 18px, center calc(100% + 34px);
  }
}

@keyframes ribbonDrift {
  0%,
  100% {
    transform: translate3d(-4vw, 0, 0) rotate(-13deg) scaleX(0.96);
  }

  50% {
    transform: translate3d(22vw, 3vh, 0) rotate(-10deg) scaleX(1.08);
  }
}

@keyframes cloudFloat {
  0% {
    transform: translateX(-8vw);
  }

  100% {
    transform: translateX(150vw);
  }
}

@keyframes crestGlow {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
    filter: drop-shadow(0 10px 22px rgba(32, 216, 255, 0.24));
  }

  50% {
    transform: translateY(-2px) rotate(2deg);
    filter: drop-shadow(0 16px 30px rgba(244, 201, 93, 0.32));
  }
}

@keyframes titleShimmer {
  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

@keyframes buttonGleam {
  0%,
  62% {
    transform: translateX(-120%);
  }

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

@keyframes viewBloom {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }

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

@keyframes palaceSweep {
  0%,
  100% {
    opacity: 0.34;
    transform: translateX(-36%) rotate(8deg);
  }

  50% {
    opacity: 0.72;
    transform: translateX(32%) rotate(11deg);
  }
}

@keyframes horizonGlitter {
  0%,
  100% {
    opacity: 0.28;
    transform: scaleX(0.72);
  }

  50% {
    opacity: 1;
    transform: scaleX(1);
  }
}

@keyframes palaceFloat {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-9px) scale(1.012);
  }
}

@keyframes framePulse {
  0%,
  100% {
    opacity: 0.42;
    box-shadow: inset 0 0 0 rgba(56, 255, 244, 0);
  }

  50% {
    opacity: 0.9;
    box-shadow: inset 0 0 28px rgba(56, 255, 244, 0.12);
  }
}

@keyframes holoSweep {
  0%,
  62% {
    opacity: 0.22;
    transform: translateX(-110%);
  }

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

@keyframes scanPass {
  0% {
    opacity: 0;
    transform: translateY(-80%);
  }

  16%,
  72% {
    opacity: 0.85;
  }

  100% {
    opacity: 0;
    transform: translateY(80%);
  }
}

@keyframes cloudPulse {
  0%,
  100% {
    opacity: 0.82;
    transform: translateZ(80px) translateY(0) scale(1);
  }

  50% {
    opacity: 1;
    transform: translateZ(80px) translateY(-8px) scale(1.025);
  }
}

@keyframes lobeRise {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes spinCore {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes coreBreathe {
  0%,
  100% {
    transform: scale(0.9);
    opacity: 0.84;
  }

  50% {
    transform: scale(1.18);
    opacity: 1;
  }
}

@keyframes orbitFloat {
  0% {
    filter: drop-shadow(0 0 8px rgba(56, 255, 244, 0.12));
    rotate: 0deg;
  }

  100% {
    filter: drop-shadow(0 0 18px rgba(56, 255, 244, 0.32));
    rotate: 360deg;
  }
}

@keyframes dataFall {
  0% {
    opacity: 0;
    transform: translateY(-12%);
  }

  12%,
  84% {
    opacity: 0.86;
  }

  100% {
    opacity: 0;
    transform: translateY(350%);
  }
}

@keyframes glyphDrift {
  0% {
    opacity: 0;
    transform: translate3d(0, -12px, 0);
  }

  20%,
  72% {
    opacity: 0.74;
  }

  100% {
    opacity: 0;
    transform: translate3d(var(--glyph-x), var(--glyph-y), 0);
  }
}

@keyframes nodeBlink {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(0.74);
  }

  50% {
    opacity: 1;
    transform: scale(1.28);
  }
}

@keyframes stageAura {
  0%,
  100% {
    transform: translateZ(0);
    box-shadow:
      0 0 0 1px rgba(91, 255, 244, 0.18),
      0 0 42px rgba(56, 255, 244, 0.18),
      0 0 70px rgba(57, 255, 194, 0.12),
      var(--shadow);
  }

  50% {
    box-shadow:
      0 0 0 1px rgba(91, 255, 244, 0.34),
      0 0 58px rgba(56, 255, 244, 0.28),
      0 0 88px rgba(233, 255, 123, 0.14),
      var(--shadow);
  }
}

@keyframes constellationFlow {
  0% {
    stroke-dashoffset: 0;
  }

  100% {
    stroke-dashoffset: -72;
  }
}

@keyframes nodePulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.88);
  }

  50% {
    opacity: 1;
    transform: scale(1.16);
  }
}

@keyframes wishFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

@keyframes twinklePulse {
  0%,
  100% {
    opacity: 0.16;
    transform: rotate(45deg) scale(0.52);
  }

  50% {
    opacity: 1;
    transform: rotate(45deg) scale(1.1);
  }
}

@keyframes cometPass {
  0%,
  58% {
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(-18deg);
  }

  68% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate3d(132vw, 33vh, 0) rotate(-18deg);
  }
}

@keyframes panelGleam {
  0% {
    transform: translateX(-120%);
  }

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

@keyframes vaultPulse {
  0%,
  100% {
    box-shadow: 0 18px 42px rgba(67, 87, 120, 0.11);
  }

  50% {
    box-shadow: 0 24px 58px rgba(32, 216, 255, 0.18);
  }
}

@keyframes bubbleRise {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }

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

@keyframes burstFly {
  0% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate3d(var(--burst-x), var(--burst-y), 0) scale(0.1);
  }
}

@keyframes gateScanlines {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(40px);
  }
}

@keyframes gateAurora {
  0%,
  100% {
    transform: translate3d(-6vw, 0, 0) rotate(-9deg);
    opacity: 0.25;
  }

  50% {
    transform: translate3d(32vw, 6vh, 0) rotate(-5deg);
    opacity: 0.48;
  }
}

@keyframes sentinelPanel {
  0%,
  100% {
    transform: rotateX(0deg) rotateY(0deg) scale(1);
    opacity: 0.88;
  }

  50% {
    transform: rotateX(7deg) rotateY(-5deg) scale(1.035);
    opacity: 1;
  }
}

@keyframes sentinelSpin {
  0% {
    rotate: 0deg;
  }

  100% {
    rotate: 360deg;
  }
}

@keyframes sentinelScan {
  0% {
    transform: translate3d(-10px, -12px, 0);
    opacity: 0.22;
  }

  50% {
    opacity: 0.5;
  }

  100% {
    transform: translate3d(12px, 10px, 0);
    opacity: 0.22;
  }
}

@keyframes sentinelHover {
  0%,
  100% {
    transform: translateY(0) rotateZ(0deg) scale(1);
  }

  50% {
    transform: translateY(-12px) rotateZ(3deg) scale(1.035);
  }
}

@keyframes sentinelPulse {
  0%,
  100% {
    opacity: 0.58;
    transform: scale(0.84);
  }

  50% {
    opacity: 1;
    transform: scale(1.12);
  }
}

@keyframes sentinelSlice {
  0% {
    opacity: 0;
    transform: translateY(-52px) scaleX(0.18);
  }

  18%,
  62% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateY(52px) scaleX(1);
  }
}

@keyframes sentinelCloud {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.78;
  }

  50% {
    transform: translateY(5px);
    opacity: 1;
  }
}

@keyframes sentinelData {
  0%,
  100% {
    transform: translateX(-12px) scaleX(0.25);
    opacity: 0.18;
  }

  50% {
    transform: translateX(8px) scaleX(1);
    opacity: 1;
  }
}

@keyframes sentinelParticle {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(0deg) scale(0.4);
  }

  24%,
  70% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate3d(var(--x), var(--y), 0) rotate(180deg) scale(1);
  }
}

@media (max-width: 1040px) {
  .gate-panel {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .guardian-shell {
    grid-row: auto;
    min-height: 300px;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .side-rail {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .nav-item {
    grid-template-columns: 1fr;
    justify-items: center;
    min-height: 64px;
    text-align: center;
  }

  .side-status {
    display: none;
  }

  .overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .login-gate {
    padding: 12px;
    overflow: auto;
  }

  .gate-panel {
    padding: 18px;
  }

  .gate-actions .primary-action,
  .gate-actions .ghost-button {
    width: 100%;
  }

  .workspace {
    padding: 18px 12px 28px;
  }

  .top-bar,
  .section-head,
  .vault-lock-panel,
  .vault-cloud-panel,
  .vault-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .quick-actions {
    width: 100%;
  }

  .quick-actions .primary-action,
  .section-head .primary-action,
  .vault-key-form,
  .chat-compose .primary-action {
    width: 100%;
  }

  .vault-key-form {
    grid-template-columns: 1fr;
  }

  .gift-stage,
  .media-layout,
  .vault-layout {
    grid-template-columns: 1fr;
  }

  .overview-grid {
    grid-template-columns: 1fr;
  }

  .nav-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .chat-compose {
    grid-template-columns: 1fr;
  }

  .chat-bubble {
    max-width: 92%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  .dream-canvas,
  .sky-ribbons,
  .cloud-drift,
  .stage-effects,
  .gate-backdrop {
    display: none;
  }
}
