:root {
  --bg: #ffffff;
  --stage: 1215px;
  --font-main: "Montserrat", system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

@font-face {
  font-family: "Nunito";
  src: url("https://static.igem.wiki/teams/6419/wiki/fonts/nunito-normal.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nunito";
  src: url("https://static.igem.wiki/teams/6419/wiki/fonts/nunito-italic.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: italic;
  font-display: swap;
}

/* Montserrat：无衬线、字重扎实（变量字体 100–900 一把梭），比 Nunito 更粗 */
@font-face {
  font-family: "Montserrat";
  src: url("https://static.igem.wiki/teams/6419/wiki/fonts/montserrat-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("https://static.igem.wiki/teams/6419/wiki/fonts/montserrat-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100vh;
}

html {
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  font-family: var(--font-main);
  -webkit-tap-highlight-color: transparent;
}

/* Lenis 平滑滚动：库要求的基础样式（很小，不影响吸顶/IO） */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}

.d-scene {
  position: relative;
  width: 100%;
  background: var(--bg);
}

#d1 {
  height: 200vh;
}

#d2 {
  height: 300vh;
}

#d3 {
  height: 400vh;
}

#d4 {
  height: 300vh;
  background: #0070C0;
}

#d5 {
  height: 300vh;
}

#d6 {
  height: 200vh;
}

.sticky-board {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.stage1 {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1440px;
  height: 900px;
  overflow: hidden;
  transform: translate(-50%, -50%) scale(var(--fit, 1));
  transform-origin: center center;
  z-index: 2;
}

.puzzle-stage {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1440px;
  height: 900px;
  transform: translate(-50%, -50%) scale(var(--fit, 1));
  transform-origin: center center;
  z-index: 2;
  pointer-events: none;
}

.drip-stage {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 1440px;
  height: 900px;
  transform: translate(-50%, -50%) scale(var(--fit, 1));
  transform-origin: center center;
  z-index: 6;
  pointer-events: none;
}

.scene2 {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
}

.stage1>*,
.scene2>* {
  position: absolute;
}

.bg,
.layer,
.layer2,
.layer4,
.drip {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.bg {
  z-index: 0;
}

.drip {
  z-index: 6;
  opacity: 0;
}

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

svg {
  z-index: 2;
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--stage);
  height: var(--stage);
  transform: translate(-50%, -50%);
  display: block;
  overflow: visible;
  pointer-events: none;
}

.breathe {
  transform-box: view-box;
  transform-origin: center;
  animation: blob-breathe 6.5s ease-in-out infinite;
}

@keyframes blob-breathe {

  0%,
  100% {
    transform: scale(1) translateY(0) rotate(0deg);
  }

  50% {
    transform: scale(1.035) translateY(-2px) rotate(0.6deg);
  }
}

.layer {
  z-index: 3;
  opacity: 0;
}

.layer.puzzle {
  z-index: 1;
}

/* 四颗液滴：整幅拉伸铺满 stage1（1440×900），允许变形但不再裁切 */
.layer.photo {
  z-index: 4;
  object-fit: fill;
}

.layer2,
.layer4 {
  object-fit: fill;
}

.layer2 {
  z-index: 5;
  opacity: 1;
  will-change: transform, opacity;
}

.layer2-oil {
  position: absolute;
  inset: auto;
  left: 13%;
  top: 18%;
  width: max-content;
  max-width: min(800px, 62vw);
  color: #0070C0;
  font-size: clamp(16px, 2.6vw, 40px);
  white-space: normal;
  line-height: 1.5;
}

.layer4 {
  z-index: 7;
  opacity: 0;
}

.layer4[data-name="tankai"] {
  left: -5vw;
}

.layer4[data-name="fangdajing"] {
  inset: auto;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}

.scene3 {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: #0070C0;
  pointer-events: none;
}

.scene3_bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.scene3_layer1 {
  position: absolute;
  inset: 0;
  will-change: transform;
}

.scene3_layer1 img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.layer3-oil,
.scene3_layer4-oil,
.scene3_layer4-oi2,
.scene3_layer4-oil3,
.scene4_text,
.scene5_top_text1 {
  position: absolute;
  inset: auto;
  left: 50%;
  transform: translateX(-50%);
  white-space: normal;
  text-align: center;
  line-height: 1.5;
}

.layer3-oil {
  top: 4%;
  width: 80%;
  max-width: 1400px;
  color: #ffffff;
  z-index: 2;
  font-size: clamp(22px, 2.8vw, 40px);
}

.layer3-oil strong {
  color: #FFC107;
}

.scene3_layer4-oil {
  bottom: 6%;
  width: 80%;
  max-width: 1300px;
  margin: 0;
  color: #ffffff;
  z-index: 2;
  font-size: clamp(16px, 2.6vw, 40px);
  pointer-events: none;
}

.scene3_layer4-oi2 {
  top: 8%;
  width: 80%;
  max-width: 1300px;
  margin: 0;
  color: #FFC107;
  z-index: 2;
  font-size: clamp(30px, 4vw, 40px);
  pointer-events: auto;
  cursor: pointer;
}

img[src*="star-2.avif"] {
  width: 100%;
  transform-origin: center;
  will-change: transform, opacity, filter;
  animation: breathe 3.2s ease-in-out infinite;
}

@keyframes breathe {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.75;
    filter: drop-shadow(0 0 0 rgba(255, 230, 150, 0));
  }

  50% {
    transform: scale(1.08);
    opacity: 1;
    filter: drop-shadow(0 0 10px rgba(241, 249, 196, 0.75));
  }
}

.linzhi {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.linzhi canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.follow-section {
  position: absolute;
  inset: 0;
  z-index: 4;
  transform: translateY(100%);
  will-change: transform;
}

.follow-section img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.zhenhecell {
  position: absolute;
  inset: 0;
  --zhenhe-scale: 0.8;
  pointer-events: none;
}

.follow-section img.follow-bg {
  object-fit: cover;
}

.replace-section {
  position: absolute;
  inset: 0;
  z-index: 5;
  --zhenhe-scale: 0.7;
  --ecoli-up: 14%;
  --breath-dur: 2.2s;
  --breath-scale: 1.08;
  opacity: 0;
  pointer-events: none;
  will-change: opacity;
}

.follow-section .replace-section img {
  position: absolute;
  inset: 0;
  margin: auto;
  width: calc(80% * var(--zhenhe-scale));
  height: calc(80% * var(--zhenhe-scale));
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.follow-section .replace-section img.rep-ecoli {
  transform: translateY(calc(-1 * var(--ecoli-up)));
}

.follow-section .replace-section img.rep-ecoli2 {
  transform: translateY(calc(-1 * var(--ecoli-up)));
  transform-origin: center;
  will-change: transform, opacity;
  animation: ecoli-breathe var(--breath-dur, 3.2s) ease-in-out infinite;
}

@keyframes ecoli-breathe {

  0%,
  100% {
    transform: translateY(calc(-1 * var(--ecoli-up))) scale(1);
    opacity: 0.92;
  }

  50% {
    transform: translateY(calc(-1 * var(--ecoli-up))) scale(var(--breath-scale, 1.06));
    opacity: 1;
  }
}

.scene3_layer4-oil3 {
  bottom: 4%;
  width: 90%;
  max-width: 1400px;
  margin: 0;
  color: #ffffff;
  z-index: 2;
  font-size: clamp(15px, 2.4vw, 35px);
  pointer-events: none;
}

.zhenhecell img {
  position: absolute;
  inset: 0;
  margin: auto;
  width: calc(100% * var(--zhenhe-scale));
  height: calc(100% * var(--zhenhe-scale));
  transition: filter 0.08s ease-out;
}

.zhenhecell img.org-glow {
  filter: drop-shadow(0 0 5px rgba(255, 235, 90, 0.95)) drop-shadow(0 0 18px rgba(255, 193, 7, 0.65)) brightness(1.28);
}

.introduct_text {
  display: none;
}

.org-popup {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: none;
  pointer-events: none;
}

.org-popup.show {
  display: block;
}

.org-popup-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  transform: none;
}

.org-leader {
  fill: none;
  stroke: #FF8A3D;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.org-dot {
  fill: #FF8A3D;
}

.org-popup-card {
  position: absolute;
  pointer-events: auto;
  width: min(560px, 46vw);
  padding: 26px 40px 30px;
  border-radius: 42px;
  background: rgba(241, 248, 255, 0.9);
  backdrop-filter: blur(2px);
  border: 5px solid #F6E84A;
  box-shadow: 0 10px 34px rgba(0, 40, 90, 0.28);
  transform-origin: center;
  animation: org-pop 0.2s ease-out;
}

@keyframes org-pop {
  from {
    transform: scale(0.92);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.org-popup-title {
  margin: 0;
  color: #111111;
  font-size: clamp(18px, 2.2vw, 32px);
  font-weight: 800;
  text-align: center;
}

.org-popup-rule {
  height: 4px;
  margin: 14px 0 16px;
  border-radius: 2px;
  background: #5E94C6;
}

.org-popup-body {
  margin: 0;
  color: #0B7CC2;
  font-size: clamp(13px, 1.5vw, 20px);
  font-weight: 700;
  line-height: 1.55;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .breathe {
    animation: none;
  }

  .follow-section .replace-section img.rep-ecoli2 {
    animation: none;
  }

  .scene5_img_2 .s5-worm,
  .scene5_img_2 .s5-dot {
    animation: none;
  }
}

.scene4 {
  position: absolute;
  inset: 0;
  z-index: 4;
  overflow: hidden;
}

.scene4>img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.scene4_left {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.scene4_left canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.scene4_right {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.scene4_right img {
  --gauge-p: 90;
  --gauge-x: -4vw;
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--gauge-x);
  right: calc(-1 * var(--gauge-x));
  margin: auto;
  width: min(calc(var(--gauge-p) * 1vw), calc(var(--gauge-p) * 1.7777778vh));
  height: min(calc(var(--gauge-p) * 1vh), calc(var(--gauge-p) * 0.5625vw));
  object-fit: cover;
  pointer-events: none;
}

@media (max-width: 900px) {
  .scene4_right img {
    --gauge-p: 94;
  }
}

@media (max-width: 600px) {
  .scene4_right img {
    --gauge-p: 98;
  }
}

.scene4_text {
  bottom: 6%;
  width: 90%;
  max-width: 1600px;
  margin: 0;
  color: #0070C0;
  z-index: 10;
  font-size: clamp(20px, 2vw, 40px);
  font-weight: 600;
  pointer-events: none;
  text-shadow: 0 2px 8px rgba(255, 255, 255, 0.85), 0 0 4px rgba(255, 255, 255, 0.6);
}

.scene4_text strong {
  color: #FFC107;
}

.scene5 {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: #EEEFDF;
  --s5-top: 2vh;
  --s5-bottom: 3.5vh;
  --s5-dot-blue: #0070C0;
  --s5-dot-yellow: #FFC107;
  --s5-scan-w: 37%;
  --s5-scan-h: 3px;
}

.scene5::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  will-change: transform;
  animation: s5-dots-float 8s ease-in-out infinite alternate;
  background-image: radial-gradient(circle at 7% 42%, var(--s5-dot-yellow) 0 0.7vmin, transparent calc(0.7vmin + 1px)), radial-gradient(circle at 3% 68%, var(--s5-dot-yellow) 0 1.4vmin, transparent calc(1.4vmin + 1px)), radial-gradient(circle at 93% 38%, var(--s5-dot-yellow) 0 1.3vmin, transparent calc(1.3vmin + 1px)), radial-gradient(circle at 97% 63%, var(--s5-dot-yellow) 0 0.7vmin, transparent calc(0.7vmin + 1px)), radial-gradient(circle at 94% 84%, var(--s5-dot-yellow) 0 1.1vmin, transparent calc(1.1vmin + 1px)), radial-gradient(circle at 16% 93%, var(--s5-dot-yellow) 0 1vmin, transparent calc(1vmin + 1px)), radial-gradient(circle at 36% 95%, var(--s5-dot-yellow) 0 0.7vmin, transparent calc(0.7vmin + 1px)), radial-gradient(circle at 66% 92%, var(--s5-dot-yellow) 0 1.3vmin, transparent calc(1.3vmin + 1px)), radial-gradient(circle at 86% 94%, var(--s5-dot-yellow) 0 0.8vmin, transparent calc(0.8vmin + 1px)), radial-gradient(circle at 12% 78%, var(--s5-dot-blue) 0 0.8vmin, transparent calc(0.8vmin + 1px)), radial-gradient(circle at 88% 74%, var(--s5-dot-blue) 0 0.9vmin, transparent calc(0.9vmin + 1px)), radial-gradient(circle at 50% 94%, var(--s5-dot-blue) 0 0.9vmin, transparent calc(0.9vmin + 1px));
}

@keyframes s5-dots-float {
  0% {
    transform: translate3d(0, 0, 0);
    opacity: 0.78;
  }

  50% {
    transform: translate3d(1.2vmin, -1.5vmin, 0);
    opacity: 1;
  }

  100% {
    transform: translate3d(-1.1vmin, 1.6vmin, 0);
    opacity: 0.88;
  }
}

.scene5_top_text1 {
  top: var(--s5-top);
  width: 90%;
  margin: 0;
  color: #0070C0;
  font-size: clamp(12px, 4.1vh, 60px);
  font-weight: 700;
  line-height: 1.4;
  z-index: 4;
}

/* 字号按视口高度缩放：4.1vh ≈ 1080p 下的 44px（原来的 clamp 上限） */
.scene5_top_text1 p,
.scene_buttom_text2 p {
  margin: 0;
}

.scene5_img {
  --s5-screen-h: 90vh;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(100vw, calc(var(--s5-screen-h) * 1.7777778));
  height: min(var(--s5-screen-h), calc(100vw * 0.5625));
  overflow: hidden;
  z-index: 1;
}

.scene5_img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  opacity: 0;
}

.scene5_img .scene5_img_1 img,
.scene5_img .scene5_img_3 img {
  opacity: 1;
}

.scene5_img .s5-worm {
  opacity: 0;
}

.scene5_img_1,
.scene5_img_2,
.scene5_img_3 {
  position: absolute;
  inset: 0;
}

.scene5_img_3 .s5-knob {
  position: absolute;
  inset: 0;
  will-change: transform;
}

.scene5_img_1::after {
  content: "";
  position: absolute;
  left: 50%;
  top: var(--s5-scan-y, 60%);
  width: var(--s5-scan-w);
  height: var(--s5-scan-h);
  transform: translateX(-50%);
  border-radius: 3px;
  background: linear-gradient(90deg, transparent, #ffffff 18%, #ffffff 82%, transparent);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.9);
  opacity: var(--s5-scan-o, 0);
  pointer-events: none;
}

@keyframes s5-worm-breathe {

  0%,
  100% {
    transform: scale(1) translateY(0) rotate(0deg);
  }

  50% {
    transform: scale(1.04) translateY(-8px) rotate(1.4deg);
  }
}

.scene5_img_2 .s5-worm {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transform-origin: 50% 38%;
  animation: s5-worm-breathe 5.6s ease-in-out infinite;
  --s5-dot-core: clamp(2px, 0.42vmin, 6px);
  --s5-dot-mid: clamp(4.5px, 1vmin, 13px);
  --s5-dot-out: clamp(10px, 2.3vmin, 28px);
  --s5-dot-green: rgba(175, 222, 194, 0.55);
  --s5-dot-green-strong: rgba(172, 239, 199, 0.98);
}

.scene5_img_2 .s5-dot {
  position: absolute;
  width: calc(var(--s5-dot-out) * 2);
  height: calc(var(--s5-dot-out) * 2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, #fff 0 var(--s5-dot-core), var(--s5-dot-green-strong) var(--s5-dot-core), var(--s5-dot-green) var(--s5-dot-mid), transparent var(--s5-dot-out));
  pointer-events: none;
  animation: s5-glow-twinkle 2.6s ease-in-out infinite;
}

@keyframes s5-glow-twinkle {

  0%,
  100% {
    opacity: 0.78;
  }

  50% {
    opacity: 1;
  }
}

/* 圆角背景：高度锁定为视口高度的 15%（与窗口宽高比无关），底边位置沿用 vh 偏移，
   盒内用 flex 垂直居中，字号同时受宽度、高度约束，避免换行后撑出盒子。 */
.scene_buttom_text2 {
  position: absolute;
  left: 50%;
  bottom: var(--s5-bottom);
  width: 70%;
  height: 15vh;
  margin: 0 0 5vh;
  padding: 0 5vw;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 999px;
  color: #0070C0;
  font-size: min(3.2vw, 3vh, 35px);
  font-weight: 700;
  text-align: center;
  line-height: 1.5;
  z-index: 6;
}

.scene_buttom_text2 strong {
  color: #FFC107;
}

@media (max-width: 600px) {
  .scene5 {
    --s5-top: 2vh;
    --s5-bottom: 10vh;
  }

  .scene5_top_text1 {
    font-size: clamp(14px, 4.5vw, 24px);
  }

  .scene_buttom_text2 {
    font-size: min(3.5vw, 3vh);
    padding: 0 4vw;
  }
}

.scene6 {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: linear-gradient(180deg, #EEEFDF 0%, #DDE8E5 10%, #9EC9E6 26%, #4E9ED6 52%, #1580C6 76%, #0070C0 100%);
}

.scene6_top_text {
  position: relative;
  flex: 1 1 auto;
  min-height: 320px;
  width: 100%;
}

.scene6_top_text::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(ellipse 62% 46% at 50% 53%, rgba(4, 58, 104, 0.30) 0%, rgba(4, 58, 104, 0.13) 52%, rgba(4, 58, 104, 0) 100%);
}

.scene6.mol-run .scene6_top_text::before {
  animation: scene6_halo 0.9s ease-out 0.4s forwards;
}

@keyframes scene6_halo {
  to {
    opacity: 1;
  }
}

.mol {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  z-index: 1;
  transform: none;
  overflow: hidden;
  pointer-events: auto;
  cursor: pointer;
}

.mol-text,
.mol-shadow {
  font: 900 300px"Arial Black", Arial, Helvetica, sans-serif;
  letter-spacing: 70px;
  text-anchor: middle;
  stroke-width: 20;
  stroke-linejoin: round;
  paint-order: stroke fill;
}

.mol-text {
  fill: #fff;
  stroke: #fff;
}

.mol-shadow {
  fill: #04356b;
  stroke: #04356b;
  filter: blur(13px);
  transform: translateY(9px);
  opacity: 0;
}

.scene6.mol-run .mol-shadow {
  animation: molShadow 0.9s ease 2.2s forwards;
}

@keyframes molShadow {
  to {
    opacity: .5;
  }
}

.land {
  fill: #fff;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: 50% 50%;
}

.fly {
  fill: #fff;
  opacity: 0;
}

.scene6.mol-run .fly {
  animation: molFly var(--dur) cubic-bezier(.4, .15, .45, 1) var(--dly) both;
}

.scene6.mol-run .land {
  animation: molLand .22s ease-out calc(var(--dly) + var(--dur) - .22s) both;
}

@keyframes molFly {
  0% {
    transform: translate(0, 0);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  82% {
    opacity: 1;
  }

  100% {
    transform: translate(var(--dx), var(--dy));
    opacity: 0;
  }
}

@keyframes molLand {
  from {
    opacity: 0;
    transform: scale(.35);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.scene6 .floater {
  opacity: 0;
}

.scene6.mol-run .floater {
  opacity: 1;
  animation: molDrift var(--dur) var(--dly) ease-in-out infinite alternate;
}

@keyframes molDrift {
  to {
    transform: translate(var(--dx), var(--dy));
  }
}

.scene6_bottom_text {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  padding: 0 0 clamp(60px, 8vh, 100px);
}

.scene6_bottom_text p {
  width: 80%;
  max-width: 1300px;
  margin: 0;
  margin-bottom: 7vh;
  padding: clamp(18px, 2.2vw, 34px) clamp(22px, 3vw, 52px);
  color: #ffffff;
  text-align: center;
  text-shadow: 0 1px 14px rgba(0, 58, 104, 0.35);
  background: rgba(198, 230, 250, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 42px;
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  backdrop-filter: blur(10px) saturate(120%);
  box-shadow: 0 14px 44px rgba(0, 48, 88, 0.28);
  font-size: clamp(30px, 1.95vw, 40px);
  font-weight: 800;
  line-height: 1.95;
  letter-spacing: 0.01em;
}

@media (max-width: 720px) {
  .scene6_top_text {
    min-height: 260px;
  }

  .scene6_bottom_text p {
    width: 88%;
    border-radius: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scene6.mol-run .fly {
    display: none;
  }

  .scene6.mol-run .land {
    opacity: 1;
    animation: none;
  }

  .scene6.mol-run .mol-shadow {
    opacity: .5;
    animation: none;
  }

  .scene6.mol-run .scene6_top_text::before {
    opacity: 1;
    animation: none;
  }

  .scene6.mol-run .floater {
    animation: none;
  }
}

/* ========================================================== scene9（合并自 1.html 第 1 幕）—— 改为滚动位置连续驱动 命名沿用 1.html 已改好的 scene9 / p1-* ，本页此前均未占用，无冲突； 高度给到 200vh，内层 .p1-sticky-board 吸顶 1 屏， 滚动行程正好把 --scroll-p 从 0 推进到 1（由 index.js 的 applyScroll 映射）， 因此动画跟手、可来回倒放，与上面 d1~d6 是同一套管线。 ========================================================== */
#scene9 {
  /* 图层参数，取值与 1.html 一致 */
  position: relative;
  width: 100%;
  height: 200vh;
  --visuals-offset-y: -3%;
  --pointer-pivot-x: 68.49%;
  --pointer-pivot-y: 47.95%;
}

#scene7 .p1-sticky-board,
#scene9 .p1-sticky-board,
#scene10 .p1-sticky-board,
#scene11 .p1-sticky-board,
#scene12 .p1-sticky-board,
#scene13-14-container .p1-sticky-board {
  /* 由 index.js 按滚动进度覆盖 */
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  --scroll-p: 0;
}

#scene9 .board-inner,
#scene10 .board-inner {
  /* 铺满整个视口（与前面几幕 .sticky-board 一致），不再锁 16:9， 否则视口非 16:9 时四周会露出白底 */
  /* 与 1.html 的 body 底色一致：黑幕用 multiply 混色，需要蓝色底衬 */
  position: relative;
  width: 100%;
  height: 100vh;
  background-color: #0070C0;
}

#scene9 .p1-layer,
#scene10 .p1-layer,
#scene11 .p1-layer,
#scene12 .p1-layer,
#scene13-14-container .p1-layer {
  /* cover 铺满，随视口比例裁切（和 .bg/.layer 的 object-fit: cover 一致） */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#scene9 .bg-pattern {
  background-image: url('https://static.igem.wiki/teams/6419/wiki/home/page7/p7-1.webp');
  z-index: 10;
  opacity: 0.9;
}

#scene9 .top-visuals {
  position: absolute;
  top: var(--visuals-offset-y);
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 20;
}

#scene9 .cell-bg-2 {
  background-image: url('https://static.igem.wiki/teams/6419/wiki/home/page7/p7-2.avif');
  z-index: 20;
}

#scene9 .cell-bg-1-fill {
  background-image: url('https://static.igem.wiki/teams/6419/wiki/home/page7/p7-3.avif');
  z-index: 30;
}

#scene9 .cell-content {
  /* 光晕的模糊半径与透明度由 JS 量化成固定档位写入 --s9-glow： 若跟着 --scroll-p 每帧连续变化，浏览器每帧都要重新栅格化整幅图层， 量化后整段播放只重算约 10 次，观感几乎无差别（卡顿修复②） */
  opacity: var(--scroll-p);
  filter: drop-shadow(0 0 calc(var(--s9-glow, 0) * 2vw) rgba(135, 206, 250, var(--s9-glow, 0)));
}

#scene9 .cell-main {
  background-image: url('https://static.igem.wiki/teams/6419/wiki/home/page7/p7-4.avif');
  z-index: 40;
}

#scene9 .cell-dots {
  background-image: url('https://static.igem.wiki/teams/6419/wiki/home/page7/p7-5.avif');
  z-index: 41;
}

#scene9 .cell-nucleus {
  background-image: url('https://static.igem.wiki/teams/6419/wiki/home/page7/p7-6.avif');
  z-index: 42;
}

#scene9 .cell-mask-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 45;
  -webkit-mask-image: url('https://static.igem.wiki/teams/6419/wiki/home/page7/p7-3.avif');
  mask-image: url('https://static.igem.wiki/teams/6419/wiki/home/page7/p7-3.avif');
  -webkit-mask-size: cover;
  mask-size: cover;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  pointer-events: none;
}

#scene9 .black-curtain-mover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: translateY(calc(45% - var(--scroll-p) * 145%));
  mix-blend-mode: multiply;
  will-change: transform;
}

#scene9 .black-curtain-solid {
  position: absolute;
  bottom: 72%;
  left: 0;
  width: 100%;
  height: 220%;
  background-color: #000;
}

#scene9 .black-curtain-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('https://static.igem.wiki/teams/6419/wiki/home/page7/p7-7.avif');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#scene9 .connection {
  background-image: url('https://static.igem.wiki/teams/6419/wiki/home/page7/p7-8.avif');
  z-index: 70;
}

#scene9 .atp-bg-2 {
  background-image: url('https://static.igem.wiki/teams/6419/wiki/home/page7/p7-9.avif');
  z-index: 50;
}

#scene9 .atp-bg-1 {
  background-image: url('https://static.igem.wiki/teams/6419/wiki/home/page7/p7-10.avif');
  z-index: 60;
}

#scene9 .atp-dial {
  background-image: url('https://static.igem.wiki/teams/6419/wiki/home/page7/p7-11.avif');
  z-index: 80;
}

#scene9 .atp-pointer-layer {
  background-image: url('https://static.igem.wiki/teams/6419/wiki/home/page7/p7-12.avif');
  z-index: 85;
  transform-origin: var(--pointer-pivot-x) var(--pointer-pivot-y);
}

#scene9 .atp-text {
  background-image: url('https://static.igem.wiki/teams/6419/wiki/home/page7/p7-13.avif');
  z-index: 90;
}

#scene9 .fold-text {
  background-image: url('https://static.igem.wiki/teams/6419/wiki/home/page7/p7-14.avif');
  z-index: 88;
  opacity: var(--scroll-p);
}

#scene9 .s9-cover-space {
  /* 16:9「cover 空间」：与 .p1-layer 背景图的 cover 映射共用同一坐标系（尺寸 = 16:9 图 cover 到视口后的实际画幅）， 圆角背景框（p7-15）与文字框都按同一套百分比定位，任何屏幕比例下都贴合；--cover-h 供字号按同一画幅缩放 */
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100%, 177.78vh);
  height: max(100%, 56.25vw);
  transform: translate(-50%, -50%);
  z-index: 100;
  --cover-h: max(100vh, 56.25vw);
  --frame-w: max(100vw, 177.78vh);
}

#scene9 .text-box-layer {
  /* 与底部文字成对：进入视口自动滑入（GSAP 补间 x 到 0），不跟手滚动；此处仅保留 JS 就绪前的起始态 */
  background-image: url('https://static.igem.wiki/teams/6419/wiki/home/page7/p7-15.avif');
  z-index: 95;
  transform: translateX(calc((100vw + var(--frame-w, 100vw)) / -2));
  /* JS 就绪前：整个画幅（可能比视口宽）都推到屏幕外 */
}

#scene9 .bottom-text-content {
  /* 同 .text-box-layer：改为自动播放，居中（xPercent:-50）与位移 x 均由 GSAP 接管， 这里只保留 JS 就绪前的居中态 */
  position: absolute;
  bottom: 7.5%;
  left: 50%;
  width: 72%;
  height: 12%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  z-index: 100;
  transform: translateX(-50%);
}

#scene9 .bottom-text-content p {
  font-size: calc(var(--cover-h, 100vh) * 0.0329);
  line-height: 1.35;
  font-weight: 600;
  color: #fff;
  margin: 0;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* 字号跟 16:9 画幅等比例缩放（1080p ≈ 35.5px，与原 1.85vw 相同） */
#scene9 .highlight-yellow {
  color: #FFFF00;
}

/* ========================================================== scene10（合并自 1.html 第 2 幕）—— 进入视口自动播放 结构沿用 scene9：sticky 吸顶 + board-inner 铺满视口； 图层（img.p1-layer）一律 fill 整幅拉伸铺满视口 —— 1.html 原为锁定 16:9 画幅 + contain/cover， 本页 board-inner 随视口铺满后 cover 会裁切、contain 会留白错位，故统一改成允许变形但不裁切。 类名 s2-* 本页此前未占用，无冲突。 ========================================================== */
#scene10 {
  /* 取值与 1.html 一致 */
  position: relative;
  width: 100%;
  height: 100vh;
  background-color: #0070C0;
  --s2-offset-x: -3%;
  --s2-arm-pivot-x: 27%;
  --s2-arm-pivot-y: 53%;
}

#scene10 img.p1-layer {
  /* 整幅拉伸铺满视口：允许变形，但不裁切（cover 会在非 16:9 视口裁掉画面） */
  object-fit: fill;
  pointer-events: none;
  user-select: none;
}

#scene10 .s2-room-base {
  z-index: 10;
}

#scene10 .s2-wall {
  z-index: 20;
}

#scene10 .s2-floor-decor {
  z-index: 30;
}

#scene10 .s2-main-group {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 40;
  transform: translateX(var(--s2-offset-x));
}

#scene10 .s2-slide-right {
  transform: translateX(var(--s2-right-x, 100vw));
  will-change: transform;
}

#scene10 .s2-slide-left {
  transform: translateX(var(--s2-left-x, -100vw));
  will-change: transform;
}

#scene10 .s2-whiteboard {
  z-index: 41;
}

#scene10 #s2-svg-chart-wrapper {
  /* 折线图"自左向右展开"的遮罩改为作用在 HTML 层： HTML 层 clip-path 可由合成器直接处理，SVG 内容只需栅格化一次； 原来把 clip-path 写在 SVG <g> 上会每帧重新栅格化整幅图表（卡顿修复②） */
  position: absolute;
  top: 16%;
  left: 32%;
  width: 52%;
  height: 48%;
  z-index: 42;
  clip-path: inset(0 var(--s2-chart-clip, 100%) 0 0);
  will-change: clip-path;
}

#scene10 #s2-data-line {
  position: absolute;
  top: 3.8%;
  left: 12.5%;
  width: 85%;
  height: 85%;
  object-fit: fill;
  pointer-events: none;
  z-index: 43;
  opacity: var(--s2-data-opacity, 0);
  transition: opacity 0.5s ease-in-out;
}

#scene10 #s2-data-num {
  position: absolute;
  top: -0.5%;
  left: 1.5%;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  z-index: 44;
  opacity: var(--s2-data-opacity, 0);
  transition: opacity 0.5s ease-in-out 0.5s;
}

#scene10 .s2-cell {
  z-index: 45;
}

#scene10 .s2-arm-container {
  z-index: 46;
  transform-origin: var(--s2-arm-pivot-x) var(--s2-arm-pivot-y);
  animation: s2-wave-arm 2s infinite ease-in-out;
}

@keyframes s2-wave-arm {
  0% {
    transform: rotate(0deg);
  }

  50% {
    transform: rotate(12deg);
  }

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

#scene10 .s2-bubble {
  z-index: 47;
}

#scene10 .s2-text {
  z-index: 48;
}

#scene10 .s2-typing-dots {
  position: absolute;
  top: 14%;
  left: 33%;
  color: #438fbb;
  font-size: 2.2vw;
  font-weight: bold;
  letter-spacing: 2px;
  z-index: 49;
  pointer-events: none;
}

#scene10 .s2-typing-dots::after {
  content: '';
  animation: s2-typing-dots 1.5s infinite steps(4, end);
}

@keyframes s2-typing-dots {
  0% {
    content: '';
  }

  25% {
    content: '.';
  }

  50% {
    content: '..';
  }

  75% {
    content: '...';
  }

  100% {
    content: '';
  }
}

#scene10 .bottom-text-content {
  position: absolute;
  bottom: 3%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  text-align: center;
  z-index: 100;
  opacity: var(--s2-text-opacity, 0);
  will-change: opacity;
}

#scene10 .bottom-text-content p {
  font-size: 2.2vw;
  line-height: 1.4;
  font-weight: 700;
  color: #4A5568;
  margin: 0;
}

#scene10 .highlight-blue {
  color: #0070C0;
}

/* ========================================================== scene11（合并自 1.html 第 3 幕）—— 进入视口自动播放 结构沿用 1.html：sticky 吸顶 + 居中的 16:9 board-inner（视口非 16:9 时 四周留出的区域由 #scene11 的浅米色背景补上，不会有白边）； 所有规则以 #scene11 作用域限定，类名 s3-* 本页此前未占用，无冲突。 g1~g4 的滑入/淡入由 index.js 的 GSAP 时间轴自动播放（见 s3Tl）， 下面只声明初始状态（视口外 / 透明），既是首帧也是 JS 失效时的兜底； 工具箱"拖拽/摇晃掉落"仍是手动交互，保留原有手感。 ========================================================== */
#scene11 {
  /* 固定 1 屏，避免上下白边 */
  /* 动画微调参数，取值与 1.html 的 :root 一致 */
  position: relative;
  width: 100%;
  height: 100vh;
  background-color: rgb(238, 239, 221);
  --qm-size: 6.5vw;
  --qm-top: 13%;
  --qm-left: 45%;
  --qm-color: #0070C0;
  --qm-rotation: 20deg;
  --scratch-pivot-x: 42%;
  --scratch-pivot-y: 40%;
  --drop-screw-x: 26%;
  --drop-screw-y: -10%;
  --drop-screw-rot: 2deg;
  --drop-gear-x: 26%;
  --drop-gear-y: -9%;
  --drop-gear-rot: 0deg;
  --drop-wrench-x: 29%;
  --drop-wrench-y: 5%;
  --drop-wrench-rot: 15deg;
  --drop-hammer-x: 27%;
  --drop-hammer-y: -8%;
  --drop-hammer-rot: 1deg;
  --s3-dots-size: 2.2vw;
  --s3-dots-top: 26.5%;
  --s3-dots-left: 21.5%;
  --s3-dots-color: #0070C0;
  --box-center-x: -28%;
  --box-center-y: 10%;
}

#scene11 .board-inner {
  position: relative;
  width: 100vw;
  height: 100vh;
  max-width: calc(100vh * 16 / 9);
  max-height: calc(100vw * 9 / 16);
  background-color: rgb(238, 239, 221);
}

#scene11 img.p1-layer {
  /* 各图层等比缩放，保持彼此相对位置对齐 */
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

#scene11 .s3-main-group {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
}

#scene11 .s3-cell {
  z-index: 30;
}

#scene11 .s3-bubble {
  z-index: 40;
}

#scene11 .s3-text {
  z-index: 50;
}

#scene11 .s3-anim-group {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* g1~g4 初始状态；运动由 index.js 的 GSAP 时间轴（s3Tl）驱动 */
#scene11 #s3-g1,
#scene11 #s3-g2 {
  transform: translateX(-100vw);
}

#scene11 #s3-g3 {
  opacity: 0;
}

#scene11 #s3-g4 {
  transform: translateX(100vw);
}

#scene11 .s3-question-marks {
  position: absolute;
  top: var(--qm-top);
  left: var(--qm-left);
  z-index: 60;
  display: flex;
  gap: 1.2vw;
  pointer-events: none;
  transform: rotate(var(--qm-rotation));
}

#scene11 .s3-qm {
  font-size: var(--qm-size);
  font-weight: 900;
  color: var(--qm-color);
  line-height: 1;
  font-family: 'Arial Rounded MT Bold', 'Comic Sans MS', sans-serif;
  text-shadow: 2px 3px 5px rgba(0, 0, 0, 0.15);
  animation: qm-bounce 1.5s infinite ease-in-out;
  transform-origin: bottom center;
}

#scene11 .s3-qm:nth-child(2) {
  font-size: calc(var(--qm-size) * 0.7);
  margin-top: 1.5vw;
  animation-delay: 0.2s;
}

@keyframes qm-bounce {

  0%,
  100% {
    transform: translateY(0) scale(1) rotate(-5deg);
  }

  50% {
    transform: translateY(-15px) scale(1.1) rotate(5deg);
  }
}

#scene11 .s3-scratch-container {
  z-index: 29;
  transform-origin: var(--scratch-pivot-x) var(--scratch-pivot-y);
  animation: scratch-head 0.9s infinite alternate ease-in-out;
  pointer-events: none;
}

@keyframes scratch-head {
  0% {
    transform: rotate(-8deg);
  }

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

#scene11 #s3-toolbox {
  z-index: 25;
  cursor: grab;
  transition: transform 0.1s ease-out, filter 0.2s ease-in-out;
  pointer-events: auto;
  -webkit-user-drag: none;
  user-select: none;
  clip-path: inset(10% 50% 10% 0%);
}

#scene11 #s3-toolbox:hover {
  filter: brightness(1.1);
}

#scene11 #s3-toolbox:active {
  cursor: grabbing;
}

#scene11 .s3-tool-item {
  z-index: 26;
  opacity: 0;
  transform: translate(var(--box-center-x), var(--box-center-y)) scale(0.2);
  transition: all 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#scene11 .s3-spilled .tool-wrench {
  opacity: 1;
  transform: translate(calc(var(--box-center-x) + var(--drop-wrench-x)), calc(var(--box-center-y) + var(--drop-wrench-y))) rotate(var(--drop-wrench-rot)) scale(1);
  transition-delay: 0s;
}

#scene11 .s3-spilled .tool-gear {
  opacity: 1;
  transform: translate(calc(var(--box-center-x) + var(--drop-gear-x)), calc(var(--box-center-y) + var(--drop-gear-y))) rotate(var(--drop-gear-rot)) scale(1);
  transition-delay: 0.1s;
}

#scene11 .s3-spilled .tool-hammer {
  opacity: 1;
  transform: translate(calc(var(--box-center-x) + var(--drop-hammer-x)), calc(var(--box-center-y) + var(--drop-hammer-y))) rotate(var(--drop-hammer-rot)) scale(1);
  transition-delay: 0.2s;
}

#scene11 .s3-spilled .tool-screw {
  opacity: 1;
  transform: translate(calc(var(--box-center-x) + var(--drop-screw-x)), calc(var(--box-center-y) + var(--drop-screw-y))) rotate(var(--drop-screw-rot)) scale(1);
  transition-delay: 0.3s;
}

#scene11 .s3-typing-dots {
  position: absolute;
  top: var(--s3-dots-top);
  left: var(--s3-dots-left);
  color: var(--s3-dots-color);
  font-size: var(--s3-dots-size);
  font-weight: bold;
  letter-spacing: 2px;
  z-index: 55;
  pointer-events: none;
}

#scene11 .s3-typing-dots::after {
  content: '';
  animation: typing-dots 1.5s infinite steps(4, end);
}

@keyframes typing-dots {
  0% {
    content: '';
  }

  25% {
    content: '.';
  }

  50% {
    content: '..';
  }

  75% {
    content: '...';
  }

  100% {
    content: '';
  }
}

#scene11 .s3-side-text {
  position: absolute;
  top: 25%;
  left: 52%;
  width: 44%;
  font-size: 2.3vw;
  line-height: 1.4;
  font-weight: 700;
  color: #4A5568;
  pointer-events: auto;
  text-align: left;

}

#scene11 .highlight-blue {
  color: #0070C0;
}

/* ========================================================== scene12（合并自 1.html 第 4 幕）—— 进入视口自动播放 结构沿用 1.html：sticky 吸顶 + 居中的 16:9 board-inner（视口非 16:9 时 四周留出的区域由 #scene12 的浅米色背景补上，不会有白边）； 所有规则以 #scene12 作用域限定，类名 s4-* 本页此前未占用，无冲突。 1.html 里这些图层的位移/缩放写在 CSS 变量上、由滚动进度改写；这里改成 GSAP 时间轴自动播放（见 index.js 的 s4Tl），下面只声明初始状态， 既是首帧也是 JS 失效时的兜底。 ========================================================== */
#scene12 {
  /* 固定 1 屏，避免上下白边 */
  position: relative;
  width: 100%;
  height: 100vh;
  background-color: rgb(238, 239, 221);
}

#scene12 .board-inner {
  position: relative;
  width: 100vw;
  height: 100vh;
  max-width: calc(100vh * 16 / 9);
  max-height: calc(100vw * 9 / 16);
  background-color: rgb(238, 239, 221);
}

#scene12 img.p1-layer {
  /* 各图层等比缩放，保持彼此相对位置对齐 */
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

#scene12 .s4-main-group {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
}

#scene12 .s4-gradient-bg {
  z-index: 15;
  mix-blend-mode: screen;
  transform: scale(0);
  transform-origin: center center;
}

#scene12 .s4-cell {
  z-index: 18;
  transform: translateY(120vh);
  opacity: 0;
}

#scene12 .s4-hole {
  z-index: 20;
  transform: scale(0);
  transform-origin: center center;
}

#scene12 .s4-hand-left {
  z-index: 26;
  transform: translate(0, 120vh);
  opacity: 0;
}

#scene12 .s4-hand-right {
  z-index: 22;
  transform: translateY(120vh);
  opacity: 0;
}

#scene12 .s4-explosion {
  z-index: 23;
  transform: scale(0);
  transform-origin: center center;
  opacity: 0;
}

#scene12 .s4-exclamation,
#scene12 .s4-text {
  z-index: 24;
  opacity: 0;
  transform: translateY(3vh);
}

#scene12 .s4-bottom-cover {
  /* 盖住画面下方露出的部分，取幕底色 */
  position: absolute;
  top: 85%;
  left: -50vw;
  width: 200vw;
  height: 100vh;
  background-color: rgb(238, 239, 221);
  z-index: 19;
}

/* ========================================================== scene13-14（合并自 1.html 第 5、6 幕）—— 滚动联动 + GSAP 揭幕 1.html 这一段本来就是「跟手」的：容器 400vh，随着它进入视口， 浅米色一屏（scene13）的亮光 / 模块 / 文本框依次浮现；继续往下滚， 4 个模块向四周散开，蓝色一屏（scene14）的揭幕序列再登场。 下面所有规则都以 #scene13-14-container 作用域限定，类名 s5-* / s6-* 本页此前未占用；原来挂在 :root 上的 --s6-* 变量也收窄到容器上。 原来由 CSS keyframes 驱动的 s6 揭幕序列改由 GSAP 时间轴负责（见 index.js 的 s6Tl），所以这里只留常驻漂浮动画 s5Float 与各图层的初始状态。 ========================================================== */
#scene13-14-container {
  /* 首帧先隐藏，进视口后由 JS 淡入 */
  /* 4 个模块散开的目标位移 / 缩放，取值与 1.html 一致 */
  /* 揭幕里各图层的尺寸与偏移（相对 board-inner），也是 1.html 的原值 */
  /* 手部循环 / 王冠显形的动画时长（1.html 原值） */
  --scatter-p: 0;
  --shared-mod-op: 0;
  --s56-op: 0;
  --s6-m1-x: 35vw;
  --s6-m1-y: 26vh;
  --s6-m2-x: -15vw;
  --s6-m2-y: 16vh;
  --s6-m3-x: 25vw;
  --s6-m3-y: 16vh;
  --s6-m4-x: -5vw;
  --s6-m4-y: 8vh;
  --s6-m-scale: 0.4;
  --s6-cell-size: 100%;
  --s6-cell-x: -2%;
  --s6-cell-y: 2%;
  --s6-hands-size: 130%;
  --s6-hands-x: -2%;
  --s6-hands-y: 10%;
  --s6-crown-size: 130%;
  --s6-crown-x: -2%;
  --s6-crown-y: 10%;
  --s6-anim-duration: 3.5s;
}

/* 吸顶板本身用 HTML 里的行内样式（position: sticky; top: 0; height: 100vh）， 这里只补 1.html .absolute-board 里的居中与裁剪 */
#scene13-14-container .absolute-board {
  left: 0;
  width: 100vw;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

#scene13-14-container .board-inner {
  position: relative;
  width: 100vw;
  height: 100vh;
  max-width: calc(100vh * 16 / 9);
  max-height: calc(100vw * 9 / 16);
}

#scene13-14-container img.p1-layer {
  /* 各图层等比缩放，彼此位置才能对齐 */
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

/* 两幕只有底色不同：浅米色 → 蓝 → 浅米色，接成一段连续的渐变 */
#scene13-14-container #scene13 {
  background: linear-gradient(to bottom, rgb(238, 239, 221) 0%, rgb(33, 122, 195) 100%);
}

#scene13-14-container #scene14 {
  background: linear-gradient(to bottom, rgb(33, 122, 195) 0%, rgb(238, 239, 221) 100%);
}

/* 淡入拆到 3 个 1 屏高的层上：不给整棵 400vh 子树做 opacity， 否则浏览器要把 4 屏内容塞进同一个合成层，栅格化倍率会被自动降低 */
#scene13-14-container #s56-stage>.p1-sticky-board>.board-inner,
#scene13-14-container #scene13,
#scene13-14-container #scene14 {
  opacity: var(--s56-op, 1);
}

/* ------------------ 第 5 幕（scene13）------------------ */
#scene13-14-container .s5-box {
  z-index: 12;
}

#scene13-14-container .s5-cell {
  z-index: 18;
}

#scene13-14-container .s5-light {
  z-index: 11;
  opacity: var(--s5-light-op, 0);
  transform: scale(var(--s5-light-scale, 0.8));
  transform-origin: center bottom;
}

#scene13-14-container .s5-textbox-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 19;
  opacity: var(--s5-text-op, 0);
  transform: translateY(calc((1 - var(--s5-text-op, 0)) * 5vh));
  pointer-events: none;
}

#scene13-14-container .s5-textbox {
  width: 100%;
  height: 100%;
}

#scene13-14-container .s5-text-content {
  position: absolute;
  bottom: 3%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  text-align: center;
}

#scene13-14-container .s5-text-content p {
  font-size: 2.2vw;
  line-height: 1.4;
  font-weight: 700;
  color: #4A5568;
  margin: 0;
}

/* ---------- 两幕共用的「浮现模块」组（两处各一份，同步显隐）---------- */
#scene13-14-container .shared-emerge-group {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 55;
  opacity: var(--shared-mod-op, 0);
  transform: translateY(calc((1 - var(--shared-mod-op, 0)) * 12vh));
}

#scene13-14-container .module-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

#scene13-14-container #mw1 {
  transform: translate(calc(var(--scatter-p) * var(--s6-m1-x)), calc(var(--scatter-p) * var(--s6-m1-y))) scale(calc(1 + var(--scatter-p) * var(--s6-m-scale)));
}

#scene13-14-container #mw2 {
  transform: translate(calc(var(--scatter-p) * var(--s6-m2-x)), calc(var(--scatter-p) * var(--s6-m2-y))) scale(calc(1 + var(--scatter-p) * var(--s6-m-scale)));
}

#scene13-14-container #mw3 {
  transform: translate(calc(var(--scatter-p) * var(--s6-m3-x)), calc(var(--scatter-p) * var(--s6-m3-y))) scale(calc(1 + var(--scatter-p) * var(--s6-m-scale)));
}

#scene13-14-container #mw4 {
  transform: translate(calc(var(--scatter-p) * var(--s6-m4-x)), calc(var(--scatter-p) * var(--s6-m4-y))) scale(calc(1 + var(--scatter-p) * var(--s6-m-scale)));
}

/* 模块「一直在飘」：只在容器进入视口附近时才跑（perf-live），其余时间暂停。 用 paused 而不是去掉动画，元素才会停在原地、不会跳一下 */
@keyframes s5Float {

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

  50% {
    transform: translateY(-3vh);
  }
}

#scene13-14-container .s5-float-1 {
  animation: s5Float 3.5s ease-in-out infinite 0s;
}

#scene13-14-container .s5-float-2 {
  animation: s5Float 4.2s ease-in-out infinite 0.5s;
}

#scene13-14-container .s5-float-3 {
  animation: s5Float 3.8s ease-in-out infinite 1.2s;
}

#scene13-14-container .s5-float-4 {
  animation: s5Float 4.5s ease-in-out infinite 0.8s;
}

#scene13-14-container .s5-float-5 {
  animation: s5Float 3s ease-in-out infinite 0.3s;
}

#scene13-14-container:not(.perf-live) .s5-float-1,
#scene13-14-container:not(.perf-live) .s5-float-2,
#scene13-14-container:not(.perf-live) .s5-float-3,
#scene13-14-container:not(.perf-live) .s5-float-4,
#scene13-14-container:not(.perf-live) .s5-float-5 {
  animation-play-state: paused;
}

/* ------------------ 第 6 幕（揭幕）各图层 ------------------ */
#scene13-14-container .highlight-blue {
  color: #0070C0;
  font-weight: 800;
}

#scene13-14-container .s6-dynamic-elements {
  opacity: 0;
}

#scene13-14-container .s6-light-bg {
  z-index: 11;
}

#scene13-14-container .s6-stars-bg {
  z-index: 12;
}

#scene13-14-container .s6-new-cell-body {
  z-index: 60;
}

#scene13-14-container .s6-cell-hand-l,
#scene13-14-container .s6-cell-hand-r {
  z-index: 61;
}

#scene13-14-container .s6-crown-full {
  z-index: 65;
}

#scene13-14-container .s6-human-hand {
  z-index: 66;
}

#scene13-14-container .s6-hand-with-crown {
  z-index: 67;
}

/* 这几条写在 .p1-layer 基础规则之后，同特异性下靠源码顺序覆盖掉它的 100% 尺寸 */
#scene13-14-container .s6-new-cell-body,
#scene13-14-container .s6-cell-hand-l,
#scene13-14-container .s6-cell-hand-r {
  width: var(--s6-cell-size);
  height: var(--s6-cell-size);
  left: calc((100% - var(--s6-cell-size)) / 2 + var(--s6-cell-x));
  top: calc((100% - var(--s6-cell-size)) / 2 + var(--s6-cell-y));
}

#scene13-14-container .s6-human-hand,
#scene13-14-container .s6-hand-with-crown {
  width: var(--s6-hands-size);
  height: var(--s6-hands-size);
  left: calc((100% - var(--s6-hands-size)) / 2 + var(--s6-hands-x));
  top: calc((100% - var(--s6-hands-size)) / 2 + var(--s6-hands-y));
}

#scene13-14-container .s6-crown-full {
  width: var(--s6-crown-size);
  height: var(--s6-crown-size);
  left: calc((100% - var(--s6-crown-size)) / 2 + var(--s6-crown-x));
  top: calc((100% - var(--s6-crown-size)) / 2 + var(--s6-crown-y));
}

#scene13-14-container .s6-textbox-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
}

#scene13-14-container .s6-text-content {
  position: absolute;
  bottom: 3%;
  left: 50%;
  transform: translateX(-50%);
  width: 78%;
  text-align: center;
  z-index: 101;
}

#scene13-14-container .s6-text-content p {
  font-size: 2.1vw;
  line-height: 1.4;
  font-weight: 700;
  color: #4A5568;
  margin: 0;
}

/* 揭幕里「手甩入→停住→收回→隐去」「捧冠的手」「王冠显形」这三段是多重百分比 关键帧，继续交给 CSS keyframes（1.html 的写法），由 JS 在揭幕时给容器加 .s6-active。 淡入与光效则由 GSAP 时间轴负责（见 index.js 的 s6Tl）。 */
#scene13-14-container.s6-active .s6-human-hand {
  animation: handBaseCycle var(--s6-anim-duration) forwards;
}

#scene13-14-container.s6-active .s6-hand-with-crown {
  animation: holdingCrownCycle var(--s6-anim-duration) forwards;
}

#scene13-14-container.s6-active .s6-crown-full {
  animation: showCrown var(--s6-anim-duration) forwards;
}

@keyframes handBaseCycle {
  0% {
    opacity: 1;
    transform: translate(-60vw, 15vh);
  }

  35% {
    opacity: 1;
    transform: translate(0, 0);
  }

  50% {
    opacity: 1;
    transform: translate(0, 0);
  }

  80% {
    opacity: 1;
    transform: translate(-60vw, 15vh);
  }

  80.1%,
  100% {
    opacity: 0;
    transform: translate(-60vw, 15vh);
  }
}

@keyframes holdingCrownCycle {
  0% {
    opacity: 1;
    transform: translate(-60vw, 15vh);
  }

  35% {
    opacity: 1;
    transform: translate(0, 0);
  }

  45% {
    opacity: 1;
    transform: translate(0, 0);
  }

  45.1%,
  100% {
    opacity: 0;
    transform: translate(0, 0);
  }
}

@keyframes showCrown {

  0%,
  45% {
    opacity: 0;
  }

  45.1%,
  100% {
    opacity: 1;
  }
}

/* 只在容器真的出现在视口附近时，才把这些全屏大图提升为合成层 */
#scene13-14-container.perf-live .module-wrapper,
#scene13-14-container.perf-live .shared-emerge-group,
#scene13-14-container.perf-live .s6-dynamic-elements,
#scene13-14-container.perf-live .s5-light,
#scene13-14-container.perf-live .s5-textbox-container {
  will-change: transform, opacity;
}

#scene7 {
  /* 第七页元素位置微调区（取值与 1.html 一致） */
  position: relative;
  width: 100%;
  height: 100vh;
  background-color: rgb(238, 239, 221);
  z-index: 30;
  --s7-cell-x: 10%;
  --s7-cell-y: 0%;
  --s7-iso-x: -7%;
  --s7-iso-y: 2%;
  --s7-loc-x: 0%;
  --s7-loc-y: 2%;
  --s7-cond-x: 7%;
  --s7-cond-y: 2%;
  --s7-arm-pivot-x: 64%;
  --s7-arm-pivot-y: 45.2%;
}

/* 1.html 这一页显式放开吸顶板的 overflow，让 scale(1.1) 的文字框能溢出边界 */
#scene7 .p1-sticky-board {
  overflow: visible;
}

#scene7 .board-inner {
  position: relative;
  width: 100vw;
  height: 100vh;
  max-width: calc(100vh * 16 / 9);
  max-height: calc(100vw * 9 / 16);
}

#scene7 .p1-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

#scene7 img.p1-layer {
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

#scene7 .s7-cell-body {
  z-index: 10;
  transform: translate(var(--s7-cell-x), var(--s7-cell-y));
}

#scene7 .s7-cell-arm {
  z-index: 11;
  transform-origin: var(--s7-arm-pivot-x) var(--s7-arm-pivot-y);
  animation: s7-wave-arm 2.5s infinite ease-in-out;
  will-change: transform;
}

@keyframes s7-wave-arm {

  0%,
  100% {
    transform: translate(var(--s7-cell-x), var(--s7-cell-y)) rotate(0deg);
  }

  50% {
    transform: translate(var(--s7-cell-x), var(--s7-cell-y)) rotate(-25deg);
  }
}

#scene7 .s7-iso-img,
#scene7 .s7-iso-text,
#scene7 .s7-loc-img,
#scene7 .s7-loc-text,
#scene7 .s7-cond-img,
#scene7 .s7-cond-text {
  z-index: 40;
}

@keyframes s7-float-iso {

  0%,
  100% {
    transform: translate(var(--s7-iso-x), var(--s7-iso-y));
  }

  50% {
    transform: translate(var(--s7-iso-x), calc(var(--s7-iso-y) - 1.5vh));
  }
}

@keyframes s7-float-loc {

  0%,
  100% {
    transform: translate(var(--s7-loc-x), var(--s7-loc-y));
  }

  50% {
    transform: translate(var(--s7-loc-x), calc(var(--s7-loc-y) - 1.5vh));
  }
}

@keyframes s7-float-cond {

  0%,
  100% {
    transform: translate(var(--s7-cond-x), var(--s7-cond-y));
  }

  50% {
    transform: translate(var(--s7-cond-x), calc(var(--s7-cond-y) - 1.5vh));
  }
}

#scene7 .s7-iso-img,
#scene7 .s7-iso-text {
  animation: s7-float-iso 3.5s ease-in-out infinite backwards;
}

#scene7 .s7-loc-img,
#scene7 .s7-loc-text {
  animation: s7-float-loc 4s ease-in-out infinite 0.5s backwards;
}

#scene7 .s7-cond-img,
#scene7 .s7-cond-text {
  animation: s7-float-cond 3.8s ease-in-out infinite 1s backwards;
}

#scene7 .s7-textbox-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 30;
}

#scene7 .s7-textbox {
  transform: scale(1.1);
}

#scene7 .s7-text-content {
  position: absolute;
  bottom: 3%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  text-align: center;
  z-index: 35;
}

#scene7 .s7-text-content p {
  margin: 0;
  font-size: 2.2vw;
  line-height: 1.4;
  font-weight: 700;
  color: #4A5568;
}

#scene7 .highlight-blue {
  color: #0070C0;
}

#scene7:not(.animating) .s7-iso-img,
#scene7:not(.animating) .s7-iso-text,
#scene7:not(.animating) .s7-loc-img,
#scene7:not(.animating) .s7-loc-text,
#scene7:not(.animating) .s7-cond-img,
#scene7:not(.animating) .s7-cond-text,
#scene7:not(.animating) .s7-cell-arm {
  animation-play-state: paused;
}

#scene8 {
  position: relative;
  z-index: 20;
  height: 80vh;
  background-color: rgb(238, 239, 221);
  overflow: hidden;
}

#scene8 .p1-sticky-board {
  position: relative;
  width: 100%;
  height: 100%;
}

#scene8 .s8-flex-layout {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  padding-top: 10vh;
}

/* 顶部主标题 */
#scene8 .s8-main-text {
  text-align: center;
  margin-bottom: 4vw;
}

#scene8 .s8-main-text p {
  margin: 0;
  font-size: 2.6vw;
  line-height: 1.4;
  font-weight: 700;
  color: #4a5568cf;
}

/* 提示文字 */
#scene8 .s8-click-hint {
  font-family: var(--font-main);
  font-size: 2.2vw;
  font-style: italic;
  font-weight: 800;
  color: #808080;
  letter-spacing: 0.1vw;
  margin-bottom: 4vw;
}

/* 底部图标行 */
#scene8 .s8-icons-container {
  display: flex;
  align-items: flex-start;
  gap: 7vw;
}

#scene8 .s8-icon-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 12vw;
  text-decoration: none;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#scene8 .s8-icon-wrapper:hover {
  transform: scale(1.25) translateY(-2vw);
}

#scene8 .s8-icon {
  width: 11vw;
  height: 11vw;
  margin-bottom: 1.3vw;
  object-fit: contain;
}

#scene8 .s8-icon-title {
  font-family: var(--font-main);
  font-size: 1.8vw;
  font-weight: 800;
  color: #0070C0;
  letter-spacing: 0.1vw;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.2;
  transition: color 0.3s ease;
}

#scene8 .s8-icon-wrapper:hover .s8-icon-title {
  color: #54a2cf;
}

/* --------------------------------------------------------- 前三个场景（d1 / d2 / d3）的文字统一加粗一档（400 → 600） 注意：d1 的文字全部烘焙在图片里（text0 / text1 / text2 都是 <img>）， CSS 改不动；所以这条规则实际只作用在 d2、d3 的 HTML 文本上。 --------------------------------------------------------- */
#d2 .layer2-oil,
#d3 .layer3-oil,
#d3 .scene3_layer4-oil,
#d3 .scene3_layer4-oil3,
#d3 .scene3_layer4-oi2,
#d3 .introduct_name,
#d3 .introduct_content {
  font-weight: 600;
}

.igem-gold-hero {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  box-sizing: border-box;
  overflow: hidden;
  background: radial-gradient(circle at 50% 28%, #173459 0%, #0b192c 55%, #060d18 100%);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  z-index: 9995;
  opacity: 1;
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.igem-gold-hero.is-closing {
  opacity: 0;
  transform: scale(1.03);
  pointer-events: none;
}

.igem-hero-close {
  position: absolute;
  top: 24px;
  right: 28px;
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.85);
  font-size: 26px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease, color 0.25s ease;
}

.igem-hero-close:hover {
  background: rgba(245, 197, 66, 0.2);
  border-color: rgba(245, 197, 66, 0.65);
  color: #fff6d1;
  transform: rotate(90deg) scale(1.06);
}

.igem-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.igem-ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.42;
  animation: igem-float 9s ease-in-out infinite;
}

.igem-orb-1 {
  width: 420px;
  height: 420px;
  top: -100px;
  left: 12%;
  background: radial-gradient(circle, #3686c8 0%, transparent 70%);
}

.igem-orb-2 {
  width: 380px;
  height: 380px;
  bottom: -80px;
  right: 10%;
  background: radial-gradient(circle, #f5c542 0%, transparent 70%);
  animation-delay: -3s;
}

.igem-orb-3 {
  width: 300px;
  height: 300px;
  top: 42%;
  left: 55%;
  background: radial-gradient(circle, #75a9d7 0%, transparent 70%);
  animation-delay: -6s;
}

.igem-hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.igem-hero-medal-wrap {
  position: relative;
  width: 176px;
  height: 176px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-bottom: 32px;
  perspective: 1000px;
  transform-style: preserve-3d;
}

.igem-hero-ring {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 1.5px dashed rgba(245, 197, 66, 0.42);
  animation: igem-orbit 18s linear infinite;
  pointer-events: none;
}

.igem-hero-glow {
  position: absolute;
  inset: -24px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 197, 66, 0.55) 0%, rgba(245, 197, 66, 0) 70%);
  animation: igem-pulse 3s ease-in-out infinite;
  pointer-events: none;
}

.igem-hero-coin {
  position: relative;
  width: 164px;
  height: 164px;
  border-radius: 50%;
  box-shadow: 0 0 42px rgba(245, 197, 66, 0.45), 0 12px 30px rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.igem-hero-medal-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.15);
  display: block;
  pointer-events: none;
  user-select: none;
}

.igem-hero-medal-wrap:hover .igem-hero-coin {
  transform: scale(1.06);
  box-shadow: 0 0 56px rgba(245, 197, 66, 0.7), 0 16px 36px rgba(0, 0, 0, 0.5);
}

.igem-hero-sheen {
  position: absolute;
  top: -50%;
  left: -130%;
  width: 65%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 250, 220, 0.65), transparent);
  transform: rotate(25deg);
  transition: left 0.75s ease;
  pointer-events: none;
  z-index: 2;
}

.igem-hero-medal-wrap:hover .igem-hero-sheen {
  left: 165%;
}

.igem-hero-medal-wrap.is-bouncing {
  animation: igem-pop 0.48s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.igem-hero-medal-wrap.is-super-spin {
  animation: igem-spin-3d 1.15s cubic-bezier(0.22, 1, 0.36, 1);
}

.igem-hero-title {
  margin: 0 0 16px;
  font-size: clamp(34px, 5.2vw, 58px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
  background: linear-gradient(90deg, #fff9e0 0%, #f5c542 48%, #ffdf73 75%, #d9971a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.igem-hero-desc {
  margin: 0 0 32px;
  min-height: 30px;
  max-width: 600px;
  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 1.65;
  color: #fff6d1;
  font-weight: 500;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.igem-hero-desc.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.igem-hero-desc strong {
  color: #ffffff;
  font-weight: 600;
}

.igem-hero-actions {
  display: flex;
  justify-content: center;
  margin-bottom: 22px;
}

.igem-btn-celebrate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 34px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #ffe07d 0%, #f5c542 50%, #d49218 100%);
  color: #1a1305;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(245, 197, 66, 0.38);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease;
}

.igem-btn-celebrate:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 36px rgba(245, 197, 66, 0.58);
}

.igem-btn-celebrate:active {
  transform: translateY(0) scale(0.97);
}

.igem-hero-hint {
  font-size: 13px;
  color: rgba(255, 232, 163, 0.7);
  letter-spacing: 0.02em;
}


#igemConfettiCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}

@keyframes igem-float {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(18px, -24px) scale(1.08);
  }
}

@keyframes igem-orbit {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes igem-pulse {

  0%,
  100% {
    transform: scale(0.95);
    opacity: 0.65;
  }

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

@keyframes igem-pop {
  0% {
    transform: scale(1);
  }

  40% {
    transform: scale(1.2) rotate(-8deg);
  }

  75% {
    transform: scale(0.95) rotate(5deg);
  }

  100% {
    transform: scale(1) rotate(0deg);
  }
}

@keyframes igem-spin-3d {
  0% {
    transform: rotateY(0deg) scale(1);
  }

  50% {
    transform: rotateY(540deg) scale(1.25);
  }

  100% {
    transform: rotateY(720deg) scale(1);
  }
}

@media (max-width: 600px) {
  .igem-hero-medal-wrap {
    width: 144px;
    height: 144px;
  }

  .igem-hero-coin {
    width: 132px;
    height: 132px;
  }
}