:root {
  color-scheme: dark;
  --fit-scale: 1;
  --desktop-fit-scale: 1;
  --fit-offset-x: 0px;
  --text: #fffaf0;
  --muted: rgba(255, 250, 240, 0.72);
  --line: rgba(255, 255, 255, 0.23);
  --glass-tint: rgba(34, 25, 18, 0.28);
  --glass-edge: rgba(255, 255, 255, 0.25);
  --shadow: 0 26px 78px rgba(0, 0, 0, 0.58);
  --gold: #ffb636;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  overflow-x: hidden;
  background:
    radial-gradient(circle at 52% 36%, rgba(158, 107, 54, 0.28), transparent 26rem),
    linear-gradient(180deg, #060504, #000);
  color: var(--text);
  font-family:
    "Noto Sans CJK SC",
    "Noto Sans SC",
    "Source Han Sans SC",
    "PingFang SC",
    "MiSans",
    "HarmonyOS Sans SC",
    "Microsoft YaHei UI",
    "DengXian",
    "Microsoft YaHei",
    system-ui,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

button {
  padding: 0;
  border: 0;
  color: inherit;
  font: inherit;
  background: none;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.app,
.segment-player,
.project-viewer,
.app-sheet,
.contact-layer {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

button,
img,
svg,
video {
  -webkit-user-drag: none;
  user-drag: none;
}

.app img,
.app svg,
.project-viewer img,
.app-sheet img,
.contact-layer img {
  pointer-events: none;
}

img,
video {
  display: block;
  max-width: 100%;
}

.liquid-glass-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.h5-loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  background: #050505;
  animation: loaderOut 740ms ease 620ms forwards;
  pointer-events: none;
}

.h5-loader span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.86);
  animation: loaderPulse 760ms ease-in-out infinite;
}

.h5-loader span:nth-child(2) {
  animation-delay: 120ms;
}

.h5-loader span:nth-child(3) {
  animation-delay: 240ms;
}

.app {
  min-height: 100vh;
  height: 100vh;
  height: 100svh;
  display: grid;
  place-items: start center;
  overflow: hidden;
  padding: 0;
}

.portfolio-stage {
  position: relative;
  isolation: isolate;
  width: 582px;
  min-height: 1253px;
  overflow: hidden;
  padding: 70px 36px 42px;
  background: #050403;
  transform: scale(var(--desktop-fit-scale));
  transform-origin: top center;
}

.space-bg {
  position: absolute;
  inset: 0;
  z-index: -4;
  background-image:
    linear-gradient(90deg, rgba(0, 0, 0, 0.36), rgba(0, 0, 0, 0.04) 44%, rgba(0, 0, 0, 0.56)),
    url("./assets/rainy-alley-bg.png");
  background-position: 38% 50%;
  background-size: cover;
}

.portfolio-stage::after {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.14) 58%, rgba(0, 0, 0, 0.68));
  pointer-events: none;
}

.brand-title {
  width: max-content;
  margin: 0 auto 16px;
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  font-family:
    "Noto Sans CJK SC",
    "Noto Sans SC",
    "Source Han Sans SC",
    "PingFang SC",
    "MiSans",
    "HarmonyOS Sans SC",
    "Microsoft YaHei UI",
    "DengXian",
    "Microsoft YaHei",
    system-ui,
    sans-serif;
  font-size: 2.55rem;
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: 0;
  text-transform: none;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12),
    0 7px 18px rgba(0, 0, 0, 0.38);
  opacity: 1;
  position: relative;
  z-index: 2;
}

