:root {
  --bg: #f7fbff;
  --surface: #ffffff;
  --surface-soft: #eef6f8;
  --line: #dce7ea;
  --text: #17272f;
  --muted: #5d7280;
  --faint: #8497a0;
  --brand: #0f7d77;
  --brand-dark: #0a5f5a;
  --brand-soft: #dff3f0;
  --blue: #2278b8;
  --blue-soft: #e3f1fa;
  --orange: #d97128;
  --orange-soft: #ffeedd;
  --green: #3d8f4f;
  --green-soft: #e6f5e8;
  --shadow: 0 12px 34px rgba(31, 62, 72, .09);
  --shadow-soft: 0 6px 18px rgba(31, 62, 72, .06);
  --radius: 8px;
}

[data-theme="dark"] {
  --bg: #0c1519;
  --surface: #122027;
  --surface-soft: #17282f;
  --line: #263940;
  --text: #eaf3f5;
  --muted: #a8bcc4;
  --faint: #7f949d;
  --brand: #61c8bd;
  --brand-dark: #8bdad0;
  --brand-soft: #173a39;
  --blue: #78b9e8;
  --blue-soft: #162c3a;
  --orange: #f0975a;
  --orange-soft: #382417;
  --green: #7fc98c;
  --green-soft: #172d1d;
  --shadow: 0 14px 36px rgba(0, 0, 0, .28);
  --shadow-soft: 0 8px 20px rgba(0, 0, 0, .2);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 76px;
}

@media (min-width: 900px) {
  body {
    padding-bottom: 0;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  border: 0;
  cursor: pointer;
}

.shell {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 20px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(145deg, var(--brand), var(--blue));
  color: #fff;
  font-size: 15px;
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 4px;
}

.desktop-nav a,
.theme-toggle {
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: background .2s ease, color .2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  background: var(--surface-soft);
  color: var(--text);
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 40px;
  padding: 0;
  margin-left: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
}

@media (min-width: 900px) {
  .desktop-nav {
    display: flex;
  }

  .mobile-nav {
    display: none;
  }
}

.mobile-nav {
  position: fixed;
  z-index: 40;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  padding-bottom: env(safe-area-inset-bottom);
  backdrop-filter: blur(14px);
}

.mobile-nav a {
  display: grid;
  gap: 2px;
  justify-items: center;
  min-height: 56px;
  padding: 7px 2px;
  color: var(--faint);
  font-size: 10px;
  font-weight: 600;
}

.mobile-nav .nav-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 11px;
}

.mobile-nav a.active {
  color: var(--brand);
}

.mobile-nav a.active .nav-icon {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 600;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 38px 0 30px;
}

.hero::before {
  content: "";
  position: absolute;
  top: -160px;
  right: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 125, 119, .13), transparent 68%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  align-items: center;
}

@media (min-width: 900px) {
  .hero {
    padding: 58px 0 52px;
  }

  .hero-grid {
    grid-template-columns: 1.05fr .95fr;
    gap: 46px;
  }
}

.hero-name {
  margin-top: 20px;
  font-size: clamp(38px, 9vw, 66px);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-role {
  margin-top: 10px;
  color: var(--brand-dark);
  font-size: clamp(17px, 4vw, 21px);
  font-weight: 700;
}

.hero-copy {
  max-width: 590px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 16px;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 10px 17px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 20px rgba(15, 125, 119, .2);
}

.btn-primary:hover {
  background: var(--brand-dark);
}

[data-theme="dark"] .btn-primary {
  color: #08181a;
}

.btn-secondary {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
}

.btn-secondary:hover {
  background: var(--surface-soft);
}

.hero-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.panel-title {
  font-size: 15px;
  font-weight: 700;
}

.panel-note {
  color: var(--faint);
  font-size: 12px;
}

.panel-body {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.identity-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--brand), var(--blue));
  color: #fff;
  font-size: 23px;
  font-weight: 800;
}

.identity-name {
  font-size: 18px;
  font-weight: 800;
}

.identity-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 5px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.tag-blue {
  background: var(--blue-soft);
  color: var(--blue);
}

.tag-orange {
  background: var(--orange-soft);
  color: var(--orange);
}

.tag-green {
  background: var(--green-soft);
  color: var(--green);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.stat-tile {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.stat-value {
  display: flex;
  align-items: baseline;
  gap: 3px;
  font-size: 25px;
  line-height: 1.15;
  font-weight: 800;
}

.stat-value small {
  color: var(--faint);
  font-size: 12px;
}

.stat-label {
  margin-top: 4px;
  color: var(--faint);
  font-size: 12px;
}

.mini-chart {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  height: 90px;
  padding: 12px;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(34, 120, 184, .07), rgba(15, 125, 119, .04));
}

.mini-chart span {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--brand), rgba(15, 125, 119, .3));
}

.section {
  padding: 38px 0;
}

@media (min-width: 900px) {
  .section {
    padding: 54px 0;
  }
}

.section-heading {
  text-align: center;
}

.section-kicker {
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 700;
}

.section-title {
  margin-top: 7px;
  font-size: clamp(28px, 6vw, 42px);
  line-height: 1.18;
  letter-spacing: 0;
}

.section-subtitle {
  max-width: 620px;
  margin: 10px auto 0;
  color: var(--muted);
}

.section-head-left {
  text-align: left;
}

.section-head-left .section-subtitle {
  margin-left: 0;
}

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

@media (min-width: 700px) {
  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

@media (min-width: 980px) {
  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.card-pad {
  padding: 18px;
}

.card-title {
  font-size: 17px;
  line-height: 1.35;
  font-weight: 800;
}

.card-copy {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.icon-box {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 800;
}

.icon-blue {
  background: var(--blue-soft);
  color: var(--blue);
}

.icon-orange {
  background: var(--orange-soft);
  color: var(--orange);
}

.icon-green {
  background: var(--green-soft);
  color: var(--green);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr 360px;
    align-items: start;
  }
}

.about-visual {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(150deg, rgba(178, 230, 207, .55), rgba(214, 236, 244, .7));
}

.about-photo {
  display: grid;
  place-items: center;
  min-height: 220px;
  border-radius: 8px;
  background:
    linear-gradient(rgba(255, 255, 255, .58), rgba(255, 255, 255, .58)),
    repeating-linear-gradient(45deg, rgba(15, 125, 119, .1) 0 10px, transparent 10px 20px);
  color: var(--brand-dark);
  font-weight: 700;
  text-align: center;
}

.feature-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.feature-item {
  display: flex;
  gap: 10px;
  padding: 12px;
  border-radius: 8px;
  background: var(--surface-soft);
}

.feature-item strong {
  display: block;
  font-size: 14px;
}

.feature-item span {
  color: var(--muted);
  font-size: 13px;
}
.feature-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--brand);
}

.filter-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 10px;
  scrollbar-width: none;
}

.filter-row::-webkit-scrollbar {
  display: none;
}

.filter-button {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.filter-button.active {
  border-color: transparent;
  background: var(--brand);
  color: #fff;
}

[data-theme="dark"] .filter-button.active {
  color: #08181a;
}

.skill-card {
  display: grid;
  gap: 13px;
}

.skill-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.skill-level {
  color: var(--faint);
  font-size: 12px;
  font-weight: 700;
}

.progress {
  height: 7px;
  border-radius: 99px;
  background: var(--surface-soft);
  overflow: hidden;
}

.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--blue));
}

.project-card {
  display: grid;
  grid-template-rows: auto 1fr;
}

.project-visual {
  min-height: 210px;
  padding: 18px;
  background: linear-gradient(140deg, rgba(34, 120, 184, .12), rgba(15, 125, 119, .1));
}

.project-visual.green {
  background: linear-gradient(140deg, rgba(61, 143, 79, .14), rgba(34, 120, 184, .1));
}

.project-visual.orange {
  background: linear-gradient(140deg, rgba(217, 113, 40, .14), rgba(15, 125, 119, .1));
}

.mock-chart {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: end;
  gap: 5px;
  height: 100%;
  min-height: 160px;
}

.mock-chart span {
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--brand), rgba(15, 125, 119, .18));
}

.mock-live {
  display: grid;
  align-content: end;
  gap: 7px;
  height: 100%;
  min-height: 160px;
}

.gift-chip {
  width: min-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 700;
  box-shadow: var(--shadow-soft);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.timeline {
  position: relative;
  display: grid;
  gap: 14px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 15px;
  width: 2px;
  background: var(--line);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
}

.timeline-item::before {
  content: "";
  position: relative;
  z-index: 1;
  top: 22px;
  width: 12px;
  height: 12px;
  justify-self: center;
  border: 3px solid var(--brand);
  border-radius: 50%;
  background: var(--surface);
}

.timeline-card {
  padding: 16px;
}

.timeline-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.timeline-date {
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.contact-hero {
  position: relative;
  padding: 40px 0 32px;
  text-align: center;
}

.contact-hero::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 180px;
  background: radial-gradient(circle at 50% 100%, rgba(15, 125, 119, .13), transparent 70%);
  pointer-events: none;
}

.contact-title {
  position: relative;
  margin-top: 14px;
  font-size: clamp(34px, 8vw, 58px);
  line-height: 1.12;
}

.contact-copy {
  position: relative;
  max-width: 640px;
  margin: 12px auto 0;
  color: var(--muted);
}

.contact-actions {
  position: relative;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.contact-social {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  color: var(--faint);
  font-size: 13px;
  text-align: center;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

@media (min-width: 800px) {
  .metric-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.page-hero {
  padding: 34px 0 26px;
}

.page-title {
  margin-top: 12px;
  font-size: clamp(31px, 7vw, 48px);
  line-height: 1.15;
}

.page-copy {
  max-width: 680px;
  margin-top: 10px;
  color: var(--muted);
}

.weight-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (min-width: 780px) {
  .weight-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.record-list {
  display: grid;
  gap: 10px;
}

.record-row {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.record-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.view-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.view-switch button {
  min-height: 38px;
  padding: 7px 15px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  background: transparent;
  transition: background .2s ease, color .2s ease;
}

.view-switch button.active {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.journey-panel {
  margin-top: 24px;
}

.stage-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(210px, 1fr);
  gap: 12px;
  padding: 3px 3px 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.stage-card {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 382px;
  padding: 16px;
  scroll-snap-align: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.stage-date {
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 800;
}

.stage-weight {
  font-size: 25px;
  line-height: 1.15;
  font-weight: 800;
}

.stage-weight small {
  color: var(--faint);
  font-size: 12px;
}

.stage-copy {
  color: var(--muted);
  font-size: 13px;
}

.stage-figure {
  display: grid;
  place-items: end center;
  height: 168px;
  padding: 10px 8px 0;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(34, 120, 184, .08), rgba(15, 125, 119, .07));
  overflow: hidden;
}

.stage-figure svg {
  height: 100%;
  width: auto;
  max-width: 100%;
  overflow: visible;
  animation: stageMotion 2.8s ease-in-out infinite;
  transition: filter .2s ease;
}

.stage-card:hover .stage-figure svg {
  filter: saturate(1.12);
}


.stage-pose {
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

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

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

.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.compare-tile {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.compare-tile strong {
  display: block;
  margin-top: 8px;
  font-size: 30px;
  line-height: 1.15;
}

.compare-tile strong small {
  color: var(--faint);
  font-size: 12px;
}

.compare-result {
  grid-column: 1 / -1;
  border-color: color-mix(in srgb, var(--green) 34%, var(--line));
  background: var(--green-soft);
}

.record-note {
  margin-top: 12px;
  color: var(--faint);
  font-size: 12px;
}

.weight-route {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 4px 0 2px;
}

.weight-route-line {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--blue), var(--green));
}

.weight-route-labels {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

@media (min-width: 780px) {
  .stage-strip {
    grid-auto-columns: minmax(0, 1fr);
    overflow-x: visible;
  }

  .weight-route {
    grid-template-columns: 170px 1fr 170px;
    align-items: center;
  }

  .weight-route-labels {
    flex-direction: column;
    text-align: right;
  }

  .weight-route-labels:last-child {
    text-align: left;
  }
}

.gift-stage {
  position: relative;
  min-height: 330px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: radial-gradient(circle at 50% 20%, rgba(15, 125, 119, .12), transparent 62%), var(--surface);
  overflow: hidden;
}

#effectLayer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.stage-top {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.live-pill {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(217, 113, 40, .12);
  color: var(--orange);
  font-size: 11px;
  font-weight: 800;
}

.stage-avatar {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 104px;
  height: 104px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--brand), var(--blue));
  color: #fff;
  font-size: 35px;
  font-weight: 800;
}

.gift-bar {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.gift-button {
  min-height: 56px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  touch-action: manipulation;
}

.gift-button:active {
  transform: scale(.97);
  background: var(--brand-soft);
}

.floating-gift {
  position: absolute;
  left: 50%;
  bottom: 84px;
  transform: translateX(-50%);
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow);
  font-size: 13px;
  font-weight: 800;
  animation: floatGift 1.05s ease-out forwards;
  pointer-events: none;
}

@keyframes floatGift {
  0% {
    opacity: 0;
    transform: translate(-50%, 16px) scale(.8);
  }

  25% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -150px) scale(1.08);
  }
}

.danmaku {
  position: absolute;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  animation: danmaku 5.2s linear forwards;
  pointer-events: none;
}

@keyframes danmaku {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  12%,
  82% {
    opacity: .9;
  }

  to {
    opacity: 0;
    transform: translateX(-240px);
  }
}

.hidden {
  display: none !important;
}

@media (min-width: 900px) {
  .mobile-nav {
    display: none;
  }
}

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