@font-face {
  font-family: "Portfolio Clock";
  src: url("./assets/fonts/roboto-flex-latin-variable.woff2?v=6b32e1d2e75e") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 100 1000;
  font-stretch: 25% 151%;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Portfolio Condensed";
  src: url("./assets/fonts/barlow-condensed-semibold.woff2?v=16a2eff3f132") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 600;
}

: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;
  pointer-events: none;
}

html.is-layout-ready.is-liquid-ready .h5-loader {
  animation: loaderOut 740ms ease forwards;
}

html.is-layout-ready.is-liquid-ready .h5-loader span {
  animation-play-state: paused;
}

html.is-layout-error .h5-loader::after {
  position: absolute;
  top: calc(50% + 34px);
  left: 50%;
  width: min(82vw, 320px);
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
  content: "页面样式加载失败，请刷新重试";
  transform: translateX(-50%);
}

.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;
}

@keyframes loaderPulse {
  0%,
  100% {
    opacity: 0.38;
    transform: translateY(0) scale(0.82);
  }

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

@keyframes loaderOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

.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?v=48f122cab975");
  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-shell {
  width: 100%;
  height: 52.16px;
  margin: 0 auto 4px;
}

html.supports-webp .space-bg {
  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.webp?v=615d781c1233");
}

@media (max-width: 430px) {
  html.supports-webp .space-bg {
    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-mobile.webp?v=eacd367449ab");
    background-position: 0 0, -0.827px 0;
    background-size: auto, auto 844px;
  }
}

.brand-title {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: visible;
  pointer-events: none;
}

.brand-title__text {
  font-family:
    "SF Pro Local Preview",
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Display",
    "Portfolio Clock",
    "Roboto Flex",
    "Segoe UI Variable Display",
    "Segoe UI",
    sans-serif;
  font-size: 96px;
  font-style: normal;
  font-weight: 440;
  font-optical-sizing: auto;
  font-variation-settings:
    "opsz" 28,
    "wght" 440,
    "wdth" 100;
  font-kerning: normal;
  font-variant-ligatures: normal;
  font-synthesis: none;
  letter-spacing: 0;
  shape-rendering: geometricPrecision;
}

@media (min-width: 431px) {
  .brand-title__text {
    transform: translateY(-18px);
  }
}
