/* ============================================================
   深海婚礼请柬 · 样式
   配色与视觉语言对齐参考站 davewedding.joinus.party
   （亮海蓝 + 荧光青 + 亮黄 + 奶油纸质卡片 + 粗描边硬阴影）
   ============================================================ */

:root {
  /* 参考站原版色板 */
  --deep:   #03162c;
  --navy:   #062a4b;
  --sea:    #027ba9;
  --cyan:   #39e6e1;
  --yellow: #ffd937;
  --paper:  #fff3cf;
  --ink:    #031a35;

  /* 常用色 */
  --glow:    #8df2ef;
  --line:    #a8f2f1;
  --pink:    #ff50d0;
  --green:   #8deb3a;
  --txt-dim: #a9f8f4;

  --f-display: Impact, "Arial Black", "Microsoft YaHei", sans-serif;
  --f-cn: "Arial Narrow", "Microsoft YaHei", "PingFang SC", sans-serif;
  --f-mono: "Courier New", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--deep); }
body {
  margin: 0;
  background: radial-gradient(circle at 50% 0, #07547d, #020f22 70%);
  color: #fff;
  font-family: var(--f-cn);
  -webkit-font-smoothing: none;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, dl, dd, dt, ol, li, figure { margin: 0; padding: 0; }
ol { list-style: none; }
[hidden] { display: none !important; }

.phone-shell {
  width: min(100%, 480px);
  margin: 0 auto;
  overflow: hidden;
  background: #063d66;
  box-shadow: 0 0 65px #000d;
  position: relative;
}

/* ============================================================
   滚动显现（只在脚本正常时先隐藏，避免脚本失败导致白屏）
   ============================================================ */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .55s ease, transform .55s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   通用：板块标题
   ============================================================ */
.section-title {
  position: relative; z-index: 2;
  display: flex; gap: 12px; align-items: center;
  margin-bottom: 22px;
}
.section-title > span {
  flex: none;
  display: grid; place-items: center;
  width: 39px; height: 39px;
  border: 3px solid #ffe55d;
  color: #103b5d;
  background: #ffd638;
  box-shadow: 4px 4px #01446a;
  font: 900 17px/1 var(--f-display);
}
.section-title p {
  margin: 0 0 3px;
  color: #85f3ee;
  font: 900 8px/1 var(--f-mono);
  letter-spacing: .12em;
}
.section-title h2 {
  color: #efffff;
  font: 900 23px/1.15 var(--f-cn);
  letter-spacing: .08em;
  text-shadow: 2px 2px #043053;
}
.section-title.light p { color: #ffc5f1; }

/* ============================================================
   封面
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* 底部留出的高度刚好和右下角音乐键齐平 */
  padding: calc(74px + env(safe-area-inset-top)) 18px calc(78px + env(safe-area-inset-bottom));
  background: #087eba;
}
.hero-art { position: absolute; inset: 0; pointer-events: none; }

/* 天空：越接近海平线越亮 */
.hero-sky {
  position: absolute; inset: 0 0 54% 0;
  background: linear-gradient(#3f9fd4 0, #58b6de 40%, #86d3ea 72%, #b8e9f5 100%);
}
.hero-sky::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 190px 34px at 20% 30%, #ffffff8c, transparent 72%),
    radial-gradient(ellipse 250px 40px at 76% 19%, #ffffff75, transparent 74%),
    radial-gradient(ellipse 160px 30px at 50% 57%, #ffffff5c, transparent 76%),
    radial-gradient(ellipse 210px 34px at 88% 66%, #ffffff4d, transparent 76%);
}
/* 水下细碎光点 */
.hero-stars {
  position: absolute; inset: 46% 0 0 0;
  opacity: .55;
  background-image:
    radial-gradient(circle, #ffffff 0 1px, transparent 1.8px),
    radial-gradient(circle, #d6f4ff 0 1px, transparent 1.8px),
    radial-gradient(circle, #ffffff 0 1.4px, transparent 2.2px);
  background-position: 6px 12px, 34px 28px, 62px 52px;
  background-size: 53px 47px, 79px 71px, 127px 109px;
  animation: glitter 3.2s steps(2, end) infinite;
}
.hero-sea {
  position: absolute; inset: 46% 0 0 0;
  background: linear-gradient(#a9e6f2 0, #4dbfdd 5%, #2696c8 16%, #1a6fa8 36%, #11497a 58%, #0a2745 82%, #05182c 100%);
}
.hero-sea::before {
  content: "";
  position: absolute; top: -5px; left: -3%; width: 106%; height: 14px;
  background: repeating-linear-gradient(90deg,
    #ffffff00 0 20px,
    #eafdff6b 20px 36px,
    #ffffff00 36px 62px);
  filter: blur(4px);
  animation: wave 7s linear infinite;
}
.hero-rays, .water-rays, .ending-rays { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-rays::before, .ending-rays::before {
  content: "";
  position: absolute; top: -22%; left: -35%; width: 170%; height: 130%;
  background: repeating-linear-gradient(101deg, transparent 0 44px, rgba(200, 255, 255, .075) 44px 72px, transparent 72px 148px);
  animation: rays 9s linear infinite;
}
.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(#002c4d40 0 20%, transparent 38%, transparent 60%, #00152ea8 100%);
}

/* 气泡 */
.bubbles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.bubbles i {
  position: absolute; top: 100%;
  border: 2px solid #bffcff;
  border-radius: 50%;
  opacity: .6;
  animation: rise linear infinite;
}

/* 顶部 HUD */
.hero-hud {
  position: absolute; z-index: 4;
  top: max(10px, env(safe-area-inset-top)); left: 10px; right: 10px;
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center;
  padding: 10px 12px;
  border: 2px solid #63d9f0;
  color: #d8f6ff;
  background: #0a2f52;
  box-shadow: 0 3px 0 #04182c;
  font: 900 8px/1 var(--f-mono);
  letter-spacing: .12em;
}
.hero-hud span { text-align: left; }
.hero-hud b { color: var(--yellow); text-align: center; font-size: 9px; }
.hero-hud em { text-align: right; font-style: normal; }

/* 封面：WEDDING INVITATION 字标（图片，自带蓝色立体投影） */
.hero-logo {
  position: relative; z-index: 3;
  width: 100%;
  margin-top: 7vh;
  text-align: center;
}
.hero-logo img {
  display: block;
  width: 100%;
  max-width: 452px;
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 9px 15px #04182c96);
}

/* 封面：主体 */
.hero-copy {
  position: relative; z-index: 3;
  width: 100%;
  margin-top: auto;
  padding-top: 5vh;
  text-align: center;
}
.mission-code {
  display: inline-block;
  padding: 6px 11px;
  border: 2px solid #6fe0f2;
  color: #eaf9ff;
  background: #08375e;
  box-shadow: 0 3px 0 #041d33;
  font: 900 9px/1 var(--f-mono);
  letter-spacing: .14em;
}
.hero-names {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 18px 0 6px;
  font: 900 clamp(34px, 10.5vw, 46px)/1.1 var(--f-cn);
  letter-spacing: .02em;
  white-space: nowrap;
}
.hero-names .name-word {
  color: #ffd53d;
  -webkit-text-stroke: 5px #0b3d60;
  paint-order: stroke fill;
  text-shadow: 0 5px 0 #0b3d60, 0 9px 12px #062a4580;
}
.hero-names .name-divider {
  color: #ffefa8;
  font: 900 .58em/1 var(--f-display);
  font-style: normal;
  transform: translateY(3px);
  -webkit-text-stroke: 4px #0b3d60;
  paint-order: stroke fill;
}
.hero-en {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  margin-top: 8px;
  color: #ffe45c;
  font: 900 clamp(15px, 4.6vw, 20px)/1 var(--f-display);
  letter-spacing: .2em;
  text-indent: .2em;
  -webkit-text-stroke: 3px #0b3d60;
  paint-order: stroke fill;
  text-shadow: 0 3px 0 #0b3d60;
}
.hero-en i { color: #fff3bd; font-size: .8em; font-style: normal; }

.mission-ticket {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 7px 10px;
  width: min(92%, 400px);
  margin: 24px auto 0;
  padding: 13px 15px;
  border: 2px dashed #a9ecf5;
  background: #06294ad9;
  box-shadow: 0 4px 0 #04182c8c;
  text-align: left;
}
.mission-ticket span { color: #9fdcf0; font: 900 8px/1.7 var(--f-mono); letter-spacing: .1em; }
.mission-ticket b { color: #ffffff; font: 900 11.5px/1.45 var(--f-cn); }

.dive-button {
  position: relative; z-index: 4;
  display: flex; gap: 10px; align-items: center; justify-content: center;
  min-width: min(76%, 262px);
  margin-top: 5vh;
  padding: 15px 22px;
  border: 3px solid #0b3d60;
  color: #12203a;
  background: var(--yellow);
  box-shadow: 0 6px 0 #0b3d60, 0 10px 18px #04182c8c;
  font: 900 14px/1 var(--f-cn);
  letter-spacing: .06em;
  cursor: pointer;
  animation: buttonPulse 1.6s steps(2, end) infinite;
}
.dive-button b { color: #0b3d60; font-size: 13px; line-height: 1; }

/* ============================================================
   深海 HUD
   ============================================================ */
.game-hud {
  position: fixed; z-index: 18;
  top: max(8px, env(safe-area-inset-top)); left: 50%;
  display: flex; align-items: center; justify-content: space-between;
  width: min(calc(100% - 16px), 464px);
  padding: 7px 10px;
  border: 2px solid #8df2ef70;
  background: #001b36d9;
  backdrop-filter: blur(5px);
  box-shadow: 3px 3px #000b15;
  transform: translateX(-50%) translateY(-140%);
  transition: transform .4s;
  pointer-events: none;
}
.game-hud.is-on { transform: translateX(-50%) translateY(0); }
.hud-depth, .hud-score { display: flex; align-items: baseline; color: #9af5f2; font: 800 8px/1 var(--f-mono); }
.hud-depth b { margin-left: 5px; color: #fff; font-size: 17px; }
.hud-depth span, .hud-score small { margin-left: 2px; }
.hud-o2 { flex: 1; display: flex; gap: 6px; align-items: center; color: #f3f5dd; font: 900 10px/1 var(--f-mono); margin: 0 10px; }
.hud-o2 > i { flex: 1; height: 10px; border: 2px solid #fff; background: #3c4565; }
.hud-o2 > i > b { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #8deb3a, #f9e931); transition: width .3s ease; }
.hud-score b { margin-left: 5px; color: #fff; font-size: 15px; }
.hud-score > i { font-size: 11px; line-height: 1; }

/* ============================================================
   通用板块背景
   ⚠️ 这几个板块必须共用同一份内边距（62/22/54）
   少写一个，那个板块的内容就会顶到屏幕边缘、被外壳裁掉。
   ============================================================ */
.deep-section,
.photo-section,
.crew-section,
.schedule-section,
.arrival,
.rsvp-section { position: relative; padding: 62px 22px 54px; overflow: hidden; }
.underwater { background: linear-gradient(#0789b3 0, #04618f 38%, #062d55 72%, #03182f); }
.photo-section { background: linear-gradient(#03182f, #062a4b 55%, #071b35); }
.crew-section { background: linear-gradient(#071b35, #10284a); }
.schedule-section { background: repeating-linear-gradient(90deg, #151d2c 0 13px, #1d2938 14px 27px); }
.arrival { background: linear-gradient(#efd071, #df9441); color: #5a352b; }
.rsvp-section { background: linear-gradient(#07385c, #03182f); }

/* 用底部导航跳转时，给顶部 HUD 留出空间，避免盖住板块标题 */
#briefing, #photo, #crew, #schedule, #map, #rsvp { scroll-margin-top: 54px; }

.water-rays::before {
  content: "";
  position: absolute; top: -10%; left: -20%; width: 150%; height: 120%;
  background: repeating-linear-gradient(103deg, transparent 0 34px, #c6ffff2e 34px 56px, transparent 56px 120px);
  animation: rays 9s linear infinite;
}

/* ============================================================
   01 · 委托书
   ============================================================ */
.mission-card {
  position: relative; z-index: 2;
  padding: 16px;
  border: 4px solid #16425c;
  color: #17334a;
  background: var(--paper);
  box-shadow: 7px 8px #002f54;
}
.mission-card::after {
  content: "";
  position: absolute; inset: 5px;
  border: 2px dashed #d4aa5a;
  pointer-events: none;
}
.card-top {
  position: relative; z-index: 1;
  display: flex; justify-content: space-between;
  padding: 0 3px 10px;
  border-bottom: 2px solid #d0ac6d;
  color: #a94e35;
  font: 900 9px/1 var(--f-mono);
  letter-spacing: .08em;
}
.card-top b { color: #a76816; }
.card-top b.is-accepted { color: #1a7a4a; }
.mission-card h3 { position: relative; z-index: 1; margin: 15px 3px 8px; color: #075f91; font: 900 25px/1.15 var(--f-cn); }
.mission-card > p { position: relative; z-index: 1; margin: 0 3px 15px; font-size: 12px; line-height: 1.85; font-weight: 700; }
.mission-card dl { position: relative; z-index: 1; margin: 0 3px; border-top: 2px solid #d2b77f; }
.mission-card dl div { display: grid; grid-template-columns: 54px 1fr; gap: 6px; padding: 9px 0; border-bottom: 1px dashed #c59d61; }
.mission-card dl div:last-child { border-bottom: 0; }
.mission-card dt { color: #b15b36; font: 900 9px/1.5 var(--f-mono); }
.mission-card dd { font-size: 11px; line-height: 1.5; font-weight: 900; }

.accept-button {
  position: relative; z-index: 2;
  width: 100%;
  margin-top: 13px;
  padding: 12px;
  border: 3px solid #1c4661;
  color: #fff6c7;
  background: #087daa;
  box-shadow: 3px 4px #12354c;
  font: 900 12px/1 var(--f-cn);
  letter-spacing: .06em;
  cursor: pointer;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  touch-action: manipulation;
}
.accept-button.is-done { color: #144330; background: #87de4d; }
.hold-progress { position: relative; z-index: 2; height: 5px; margin-top: 8px; background: #d8bd83; }
.hold-progress i { display: block; width: 0; height: 100%; background: #23ad73; }

.mission-complete {
  position: fixed; z-index: 40;
  top: 42%; left: 50%;
  display: flex; flex-direction: column; align-items: center;
  width: min(88%, 350px);
  padding: 18px 14px;
  border: 4px solid #fff3a7;
  color: #fff;
  background: #092e51e8;
  box-shadow: 0 0 0 5px #ffcc36, 8px 9px #001229;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.8);
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
}
.mission-complete.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.mission-complete b { color: #ffe147; font: 900 26px/1 var(--f-display); }
.mission-complete span { margin-top: 7px; font-size: 11px; }

/* ============================================================
   深海补给打捞小游戏（01 委托书里的互动）
   —— 结构对齐参考站，尺寸按本站 480px 外壳微调
   动效：掉落 supplyFall / 命中 supplyHit / 飘字 scoreFloat
        / 祝福气泡 gameBlessing / 撞垃圾抖屏 gameShake
   ============================================================ */
.supply-game { position: relative; z-index: 2; margin-top: 34px; border: 4px solid #84f5ef; background: #061d39; box-shadow: 7px 8px #00152a, inset 0 0 0 2px #1d6685; overflow: hidden; }
.game-console-top { display: flex; justify-content: space-between; align-items: center; padding: 11px 12px; border-bottom: 2px solid #397c9a; background: #102f54; }
.game-console-top div { min-width: 0; }
.game-console-top small { display: block; margin-bottom: 4px; color: #6ff5ee; font: 900 7px/1 var(--f-mono); letter-spacing: .08em; }
.game-console-top b { display: block; color: #fff5c2; font: 900 15px/1.25 var(--f-cn); }
.game-console-top > span { flex: 0 0 auto; padding: 6px 7px; border: 2px solid #4b7998; color: #8deee8; background: #061a31; font: 900 7px/1 var(--f-mono); }
.game-console-top strong { color: var(--yellow); font-size: 13px; }

.game-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 2px solid #397c9a; background: #081a32; }
.game-stats span { padding: 7px 2px; color: #5db7c7; text-align: center; font: 900 7px/1 var(--f-mono); }
.game-stats span + span { border-left: 1px solid #2b5671; }
.game-stats b { display: block; margin-top: 4px; color: #fff; font: 900 12px/1 var(--f-mono); }
#gameCombo { color: #ff79d5; }
#gameOxygen { color: #9cf24d; letter-spacing: .05em; }

.game-stage { position: relative; height: 285px; background: linear-gradient(#0979a4, #064f7a 45%, #062d55 78%, #03182f); overflow: hidden; isolation: isolate; }
.game-stage::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 12%, #c6ffff1f 30%, transparent 44%); pointer-events: none; }
.game-grid { position: absolute; inset: 0; opacity: .22; background-image: linear-gradient(#73dfe833 1px, transparent 1px), linear-gradient(90deg, #73dfe833 1px, transparent 1px); background-size: 32px 32px; pointer-events: none; }

/* 开始 / 结算 两层覆盖卡 */
.game-intro, .game-result { position: absolute; z-index: 8; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 18px; color: #efffff; background: #031a35d9; text-align: center; backdrop-filter: blur(2px); }
.game-crate { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 9px; border: 3px solid #ffe34d; background: #123c5d; box-shadow: 5px 5px #00162b; font-size: 36px; animation: crateBob 1.2s steps(2) infinite; }
.game-intro h3, .game-result h3 { margin: 0; color: #ffe34d; font: 900 20px/1.25 var(--f-cn); }
.game-intro p { margin: 9px 0 14px; color: #c9f8f4; font: 800 10px/1.7 var(--f-cn); }
.game-intro button, .game-result button { padding: 11px 15px; border: 3px solid #745511; color: #163651; background: #ffe044; box-shadow: 4px 4px #00162d; font: 900 11px/1 var(--f-cn); cursor: pointer; }
.game-result > p { margin: 0 0 5px; color: #6ff5ee; font: 900 8px/1 var(--f-mono); }
.game-result > strong { margin: 11px 0 8px; color: #ff79d5; font: 900 30px/1 var(--f-display); }
.game-result > span { max-width: 260px; margin-bottom: 14px; color: #fff8c9; font: 800 11px/1.5 var(--f-cn); }

/* 掉落下来的补给 / 垃圾 —— 横向位置由 --left 给，漂移由 --drift 给 */
.supply-item { position: absolute; z-index: 4; top: -58px; left: var(--left); display: grid; place-items: center; width: 50px; height: 50px; padding: 0; border: 3px solid #dcffff; border-radius: 4px; color: #fff; background: #0a436bd9; box-shadow: 4px 4px #00213e; font-size: 27px; cursor: pointer; animation: supplyFall var(--fall-time) linear forwards; touch-action: manipulation; }
.supply-item.is-danger { border-color: #ff7d82; background: #67233fe6; }
.supply-item.is-hit { animation: supplyHit .32s ease-out forwards; pointer-events: none; }
.game-float { position: absolute; z-index: 7; margin: 0; color: #ffe34d; font: 900 18px/1 var(--f-display); text-shadow: 2px 2px #003153; pointer-events: none; animation: scoreFloat .7s ease-out forwards; }
.game-float.is-danger { color: #ff6f81; }

/* 打捞时弹出的新婚祝福气泡 */
.game-blessing { position: absolute; z-index: 9; width: max-content; max-width: 170px; margin: 0; padding: 7px 9px; border: 2px solid #ffe04b; color: #123854; background: #fff2b8; box-shadow: 3px 3px #075273; font: 900 10px/1.35 var(--f-cn); text-align: center; pointer-events: none; animation: gameBlessing 2.1s ease both; }
.game-blessing::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 9px; height: 9px; border-right: 2px solid #ffe04b; border-bottom: 2px solid #ffe04b; background: #fff2b8; transform: translateX(-50%) rotate(45deg); }
.game-stage.is-danger { animation: gameShake .28s linear; }

.game-legend { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid #397c9a; background: #0c2848; }
.game-legend span { padding: 8px 2px; color: #d4ffff; text-align: center; font: 900 8px/1 var(--f-mono); }
.game-legend span + span { border-left: 1px solid #315774; }
.game-legend .danger { color: #ff9aaa; }
.game-tip { margin: 0; padding: 9px 8px 10px; color: #77d8d5; background: #061a31; text-align: center; font: 800 8px/1.5 var(--f-cn); }

/* ============================================================
   通用「设备外框」—— 02 影像记录 / 03 小队来电 共用同一套
   ============================================================ */
.player-frame {
  position: relative; z-index: 2;
  padding: 8px;
  border: 4px solid #243b68;
  background: #0d1832;
  box-shadow: 7px 8px #020b18, inset 0 0 0 2px #5672aa;
}
.phone-top {
  display: flex; justify-content: space-between;
  padding: 8px 8px 9px;
  color: #6ff5ee;
  background: #172d51;
  font: 900 8px/1 var(--f-mono);
  letter-spacing: .1em;
}
.phone-top b { color: var(--pink); animation: blink 1s steps(2, end) infinite; }
.player-controls { display: grid; grid-template-columns: 44px 1fr 44px; gap: 7px; margin-top: 7px; }
.player-controls button { border: 2px solid #55739d; color: #9ffbf4; background: #182d50; font-size: 12px; cursor: pointer; }
.player-controls button:disabled { opacity: .45; cursor: default; }
.player-controls output { padding: 11px; color: #ffe154; background: #07152b; text-align: center; font: 900 9px/1 var(--f-mono); }

/* ============================================================
   02 · 影像记录（一屏一张 · 自动滚动播放）
   ============================================================ */
.photo-stage {
  position: relative;
  overflow: hidden;
  background: #02162a;
  /* 竖滑交给页面滚动，横滑留给自己翻照片 */
  touch-action: pan-y pinch-zoom;
}
.photo-track {
  display: flex;
  transition: transform .55s cubic-bezier(.32, .72, .28, 1);
}
.photo-slide { position: relative; flex: 0 0 100%; background: #02162a; }
.photo-slide img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}
.photo-slide figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 12px 10px;
  color: #eefcff;
  background: linear-gradient(#02162a00, #02162af0 55%);
  font: 900 10.5px/1.6 var(--f-cn);
}
/* 底部的「胶片条」：当前这张亮起，也可以直接点着跳过去 */
.photo-dots { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 5px; margin-top: 7px; }
.photo-dots button {
  height: 10px; padding: 0;
  border: 2px solid #0b3450;
  background: #2b5f7d;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.photo-dots button.on { background: var(--yellow); border-color: #8a5011; }

/* ============================================================
   03 · 蓝洞小队来电
   （外框 / 顶部条 / 控制条 复用 02 前面那套 *.player-* / .phone-top）
   画面比例与字幕位置照搬参考站：16:9 角色卡铺满，字幕压在画面底部
   ============================================================ */
.crew-slides {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #02162a;
  overflow: hidden;
}
.crew-slide {
  position: absolute; inset: 0;
  opacity: 0; transform: translateX(10%);
  transition: opacity .25s, transform .25s;
  pointer-events: none;
}
.crew-slide.is-active { opacity: 1; transform: none; pointer-events: auto; }
.crew-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.crew-slide > p {
  position: absolute; left: 8px; right: 8px; bottom: 8px;
  margin: 0;
  padding: 8px;
  border: 2px solid #eaf8ff;
  color: #eefcff;
  background: #041b34e8;
  font: 400 9px/1.5 var(--f-cn);
  text-align: left;
}
.crew-slide > p b { display: block; margin-bottom: 3px; color: var(--pink); font: 900 12px/1 var(--f-mono); }

/* ============================================================
   04 · 婚礼当日菜单 + 倒计时
   ============================================================ */
/* 流程图上方的小动画（assets/menu-sushi.webp，480×270 动图）
   —— 外框沿用参考站的「相机构图」语言：亮青描边 + 深蓝外描边 + 硬阴影 + 四个取景角 */
.menu-gif {
  position: relative; z-index: 2;
  margin: 0 0 26px;
  border: 4px solid var(--line);
  outline: 4px solid #072b4f;
  box-shadow: 7px 8px #001c35;
  background: #02182c;
  overflow: hidden;
}
.menu-gif img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.gif-corners::before, .gif-corners::after {
  content: "";
  position: absolute; top: 9px;
  width: 25px; height: 25px;
  border-color: #fff; border-style: solid;
  pointer-events: none;
}
.gif-corners::before { left: 9px; border-width: 3px 0 0 3px; }
.gif-corners::after { right: 9px; border-width: 3px 3px 0 0; }

.menu-board {
  position: relative; z-index: 2;
  padding: 17px 15px 13px;
  border: 5px solid #d8a250;
  color: #3c2b23;
  background: #f9e4b5;
  box-shadow: 7px 8px #030812, inset 0 0 0 3px #fff5d0;
}
.board-title {
  margin: 0 0 8px;
  padding-bottom: 9px;
  border-bottom: 3px double #a85f40;
  color: #a14532;
  text-align: center;
  font: 900 11px/1 var(--f-mono);
  letter-spacing: .1em;
}
.menu-board article {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 9px; align-items: center;
  padding: 13px 0;
  border-bottom: 2px dashed #bb8a59;
}
.menu-board article:last-of-type { border-bottom: 0; }
.menu-board time { color: #b54835; font: 900 18px/1 var(--f-display); }
.menu-board article b { display: block; color: #3c2b23; font: 900 13px/1.4 var(--f-cn); }
.menu-board article span { display: block; margin-top: 4px; color: #7a5b3f; font: 700 9.5px/1.5 var(--f-cn); }
.menu-board article strong { color: #e08618; font: 900 10px/1 var(--f-mono); }
.menu-total {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 12px;
  color: #8d4a36;
  font: 900 9px/1 var(--f-mono);
}
.menu-total b { color: #e84e81; font-size: 19px; }

.countdown-card {
  position: relative; z-index: 2;
  margin-top: 24px;
  padding: 16px 12px 14px;
  border: 3px solid #436a81;
  color: #a9f8f4;
  background: #081a31;
  box-shadow: 5px 5px #020814;
  text-align: center;
}
.cd-kicker { margin: 0 0 12px; color: #7fd0e6; font: 900 9px/1 var(--f-mono); letter-spacing: .2em; }
.cd-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cd-grid > div { padding: 9px 2px 7px; border: 2px solid #2b5a75; background: #041c30; }
.cd-grid b { display: block; color: #ffe04b; font: 900 clamp(24px, 8vw, 32px)/1 var(--f-display); }
.cd-grid small { display: block; margin-top: 5px; color: #7fc0d6; font: 900 8px/1 var(--f-mono); letter-spacing: .1em; }
.cd-note { margin: 12px 0 0; color: #9ecddd; font: 700 11px/1.7 var(--f-cn); }

/* ============================================================
   05 · 集合坐标（金色板块）
   ============================================================ */
.arrival .section-title p { color: #a24a34; }
.arrival .section-title h2 { color: #5a352b; text-shadow: 2px 2px #f7e4a6; }
.arrival .section-title > span { box-shadow: 4px 4px #a55632; }
.map-console {
  position: relative; z-index: 2;
  min-height: 320px;
  padding: 172px 16px 16px;
  border: 5px solid #51352f;
  background: #062d49;
  box-shadow: 7px 8px #ab5734;
  overflow: hidden;
}
.map-grid {
  position: absolute; inset: 0 0 auto; height: 158px;
  background-color: #07547d;
  background-image:
    linear-gradient(#2a97a955 1px, transparent 1px),
    linear-gradient(90deg, #2a97a955 1px, transparent 1px);
  background-size: 27px 27px;
}
.map-grid::before, .map-grid::after {
  content: "";
  position: absolute;
  border: 8px solid #2d8b75;
  filter: drop-shadow(4px 4px #083d53);
}
.map-grid::before { left: -20px; top: 36px; width: 172px; height: 92px; border-radius: 45% 55% 30% 70%; }
.map-grid::after { right: -30px; top: 9px; width: 132px; height: 102px; border-radius: 60% 40% 60% 35%; }
.map-pulse { position: absolute; z-index: 2; left: 55%; top: 68px; width: 44px; height: 44px; }
.map-pulse i { position: absolute; inset: 0; border: 3px solid #ffe456; border-radius: 50%; animation: mapPulse 1.7s ease-out infinite; }
.map-pulse i + i { animation-delay: .85s; }
.map-pulse b { position: absolute; inset: 0; display: grid; place-items: center; color: #ff5160; font-size: 21px; }
.coordinate { color: #72ddd9; font: 900 8px/1 var(--f-mono); letter-spacing: .14em; }
.map-console h3 { margin: 8px 0 10px; color: #fff0b7; font: 900 16px/1.5 var(--f-cn); }
.map-console > p:not(.coordinate) { margin: 0 0 15px; color: #d1f8f5; font: 700 10.5px/1.85 var(--f-cn); }
.map-console a {
  display: flex; justify-content: center; align-items: center; gap: 8px;
  padding: 13px;
  border: 3px solid #ffe066;
  color: #13374d;
  background: #ffd840;
  box-shadow: 4px 4px #00182c;
  font: 900 12px/1 var(--f-cn);
  letter-spacing: .04em;
  text-decoration: none;
}

/* ============================================================
   06 · 宾客登记
   ============================================================ */
.rsvp-phone {
  position: relative; z-index: 2;
  padding: 8px;
  border: 5px solid #506b9a;
  background: #0d1931;
  box-shadow: 7px 8px #011020, inset 0 0 0 2px #93a7cd;
}
.app-bar {
  display: grid; grid-template-columns: 22px 1fr auto; align-items: center;
  padding: 10px 8px;
  color: #7af4ec;
  background: #172c4c;
  font: 900 8px/1 var(--f-mono);
  letter-spacing: .1em;
}
.app-bar span { color: var(--pink); font-size: 15px; }
.app-bar small { color: #8beb50; }
#rsvpForm { padding: 16px 13px 14px; color: #e8ffff; background: linear-gradient(#0d3153, #082542); }
#rsvpForm > label, #rsvpForm > fieldset { display: block; margin: 0 0 14px; padding: 0; border: 0; }
#rsvpForm > label > span, #rsvpForm > fieldset > legend {
  display: block; margin-bottom: 6px;
  color: #8feeea;
  font: 900 9px/1.35 var(--f-mono);
  letter-spacing: .06em;
}
#rsvpForm > label > span b, #rsvpForm > fieldset > legend b { color: #ff5e77; }
#rsvpForm input:not([type="radio"]),
#rsvpForm select,
#rsvpForm textarea {
  width: 100%;
  padding: 11px;
  border: 2px solid #557ba1;
  border-radius: 0;
  outline: none;
  color: #efffff;
  background: #061a31;
  box-shadow: inset 3px 3px #020e1c;
  font-size: 12px;
}
#rsvpForm textarea { min-height: 92px; resize: vertical; }
#rsvpForm input:focus, #rsvpForm select:focus, #rsvpForm textarea:focus { border-color: #7ff7ef; }
#rsvpForm input[aria-invalid="true"] { border-color: #ff5d65; }
#rsvpForm > label > small { display: block; margin-top: 4px; color: #739ab7; text-align: right; font: 800 8px/1 var(--f-mono); }
.choice-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choice-row label { position: relative; margin: 0; }
.choice-row input { position: absolute; opacity: 0; }
.choice-row span {
  display: block;
  padding: 11px;
  border: 2px solid #557ba1;
  color: #cceff3;
  background: #071b33;
  text-align: center;
  font: 900 11px/1 var(--f-cn);
  cursor: pointer;
}
.choice-row input:checked + span { border-color: #ffe04c; color: #18384d; background: #ffe04c; }
.form-error {
  margin: 0 0 12px;
  padding: 9px;
  border: 2px solid #ff6a6e;
  color: #ffd4d4;
  background: #4c1727;
  font: 700 10.5px/1.6 var(--f-cn);
}
.form-note {
  margin: 12px 0 0;
  color: #7fb6c9;
  text-align: center;
  font: 800 9px/1.6 var(--f-mono);
  letter-spacing: .06em;
}
.submit-button {
  display: flex; justify-content: center; align-items: center; gap: 10px;
  width: 100%;
  padding: 14px 15px;
  border: 3px solid #79601b;
  color: #173751;
  background: #ffe046;
  box-shadow: 4px 5px #020f20;
  font: 900 13px/1 var(--f-cn);
  letter-spacing: .06em;
  cursor: pointer;
}
.submit-button:disabled { opacity: .6; cursor: default; }
.submit-button b { font-family: var(--f-display); font-size: 11px; }

.rsvp-success { padding: 30px 17px; color: #eaffff; background: #082746; text-align: center; }
.success-radar {
  position: relative;
  width: 84px; height: 84px;
  margin: 0 auto 18px;
  border: 3px solid #74f2e8;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 13px, #32bdb944 14px 15px);
}
.success-radar i { position: absolute; inset: 0; border-top: 2px solid #a6fff7; border-radius: 50%; animation: spin 2s linear infinite; }
.success-radar b { position: absolute; inset: 0; display: grid; place-items: center; color: #ffe347; font: 900 32px/1 var(--f-display); }
.rsvp-success h3 { color: #ffe04c; font: 900 20px/1.3 var(--f-cn); letter-spacing: .05em; }
.rsvp-success p { margin-top: 10px; font: 700 11.5px/1.8 var(--f-cn); }
.rsvp-success button {
  margin-top: 18px;
  padding: 11px 17px;
  border: 2px solid #75e9e4;
  color: #dffffc;
  background: #0a4867;
  font: 900 11px/1 var(--f-cn);
  letter-spacing: .05em;
  cursor: pointer;
}

.blessing-wall { margin-top: 26px; }
.wall-title {
  margin-bottom: 12px;
  color: #85f3ee;
  font: 900 9px/1 var(--f-mono);
  letter-spacing: .16em;
}
.blessing-list { display: grid; gap: 10px; max-height: 350px; overflow-y: auto; padding-right: 4px; }
.blessing-list::-webkit-scrollbar { width: 6px; }
.blessing-list::-webkit-scrollbar-thumb { background: #2f7c9c; }
.blessing-item {
  padding: 11px 12px;
  border: 2px solid #2f6d8e;
  background: #01263e;
  box-shadow: 4px 4px #001b2f;
}
.blessing-item > b { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; color: #ffd23f; font: 900 12px/1.4 var(--f-cn); }
.blessing-item > b small { color: #6fb6cc; font: 800 8px/1 var(--f-mono); letter-spacing: .06em; }
.blessing-item > p { margin-top: 6px; color: #cbe9f3; font: 700 12px/1.8 var(--f-cn); }
.blessing-empty { padding: 20px; border: 2px dashed #2f7c9c; color: #7fb6c9; font: 700 11.5px/1.8 var(--f-cn); text-align: center; }
.blessing-loading { padding: 16px; color: #7fb6c9; font: 800 9px/1.6 var(--f-mono); text-align: center; letter-spacing: .08em; }

/* ============================================================
   结尾
   ============================================================ */
.ending { position: relative; min-height: 560px; padding: 0; background: #03182f; overflow: hidden; }
.ending-art { position: absolute; inset: 0; }
/* 结尾页背景：换成实拍/插画底图 assets/ending.jpg。
   cover 会按外壳尺寸裁切，center 保证潜水员主体不被裁掉。
   想换图：把新图放到 wedding/assets/ending.jpg 覆盖即可（不用改这里）。 */
.ending-sea {
  position: absolute; inset: 0;
  background: #0a5f8c url("assets/ending.jpg") center center / cover no-repeat;
}
.ending-rays::before {
  content: "";
  position: absolute; top: -20%; left: -30%; width: 160%; height: 120%;
  background: repeating-linear-gradient(101deg, transparent 0 32px, rgba(200, 255, 255, .14) 32px 52px, transparent 52px 116px);
  animation: rays 10s linear infinite;
}
.ending-copy {
  position: relative; z-index: 2;
  padding: 100px 22px 80px;
  text-align: center;
  text-shadow: 0 3px #00182f;
}
.ending-copy > p { color: #74eee8; font: 900 9px/1 var(--f-mono); letter-spacing: .22em; }
.ending-copy h2 {
  margin: 14px 0 18px;
  color: #fff6b4;
  font: 900 clamp(24px, 8vw, 30px)/1.45 var(--f-cn);
  letter-spacing: .08em;
  text-shadow: 0 3px #03385c, 0 5px #00121f;
}
.ending-copy > b { display: block; color: #ffe043; font: 900 clamp(22px, 7vw, 28px)/1 var(--f-cn); letter-spacing: .1em; }
.ending-copy > span { display: block; margin-top: 9px; color: #9fd8e8; font: 900 10px/1 var(--f-mono); letter-spacing: .14em; }

footer {
  padding: 25px 20px calc(84px + env(safe-area-inset-bottom));
  color: #91ddd9;
  background: #020e20;
  text-align: center;
}
.footer-brand { color: #cdf6f2; font: 900 15px/1.25 var(--f-display); letter-spacing: .16em; }
.footer-brand i { color: var(--yellow); font: 900 9px/1 var(--f-mono); font-style: normal; letter-spacing: .3em; }
footer > p { margin-top: 10px; color: #4f7f96; font: 800 8px/1.6 var(--f-mono); letter-spacing: .06em; }
.host-entry {
  display: inline-block;
  margin-top: 16px;
  padding: 9px 15px;
  border: 2px dashed #2c5f7c;
  color: #6fa8c0;
  background: none;
  font: 900 9px/1 var(--f-mono);
  letter-spacing: .08em;
  text-decoration: none;
}

/* 备案信息（法规要求放在网页最底部）
   ：ICP 备案号必须能点进工信部备案系统；
   公安联网备案的 HTML 代码由 content.js 注入（里面自带图片和样式）。
   两项都空时靠 :empty 整块隐藏，不留多余空隙。 */
.footer-beian { margin-top: 18px; }
.footer-beian:empty { display: none; }
.footer-beian,
.footer-beian a {
  color: #4a7488;
  font: 800 8px/1.8 var(--f-mono);
  letter-spacing: .04em;
  text-decoration: none;
}
.footer-beian a { display: inline-block; margin: 0 6px; }
.footer-beian img { display: inline-block; vertical-align: middle; height: 12px; width: auto; margin: 0 3px; }

/* ============================================================
   快捷导航 / 音乐 / 提示
   ============================================================ */
.quick-nav {
  position: fixed; z-index: 20;
  left: 50%; bottom: max(10px, env(safe-area-inset-bottom));
  display: grid; grid-template-columns: repeat(5, 1fr);
  width: min(calc(100% - 20px), 460px);
  border: 2px solid #5fa5b7;
  background: #05172de8;
  box-shadow: 4px 4px #0009;
  transform: translateX(-50%);
  backdrop-filter: blur(7px);
}
/* 封面（第一屏）不显示底部导航，往下滑才浮出来 */
.js .quick-nav { transform: translateX(-50%) translateY(150%); transition: transform .35s ease; }
.js .quick-nav.is-on { transform: translateX(-50%) translateY(0); }
.quick-nav a {
  padding: 11px 2px;
  color: #b8f6f2;
  text-align: center;
  text-decoration: none;
  font: 900 10px/1 var(--f-cn);
  letter-spacing: .06em;
}
.quick-nav a + a { border-left: 1px solid #315d75; }
.quick-nav a.is-active { color: #173650; background: var(--yellow); }

.music-dock {
  position: fixed; z-index: 30;
  right: max(12px, calc((100vw - 480px) / 2 + 12px));
  bottom: calc(76px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 8px;
}
.music-dock p {
  max-width: 140px;
  padding: 7px 9px;
  border: 2px solid #ffe05a;
  color: #173650;
  background: #fff1bd;
  box-shadow: 3px 3px #00162c;
  font: 900 9px/1.4 var(--f-cn);
  text-align: right;
  /* 默认收起，只在刚进页面时提示几秒，或鼠标悬停 / 键盘聚焦时出现 */
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}
.music-dock.is-hint p, .music-dock:hover p, .music-dock:focus-within p { opacity: 1; }
.music-dock button {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border: 3px solid #ffe44f;
  color: #173954;
  background: #ffda3d;
  border-radius: 50%;
  box-shadow: 3px 4px #001329;
  font-size: 19px;
  cursor: pointer;
}
.music-dock button.playing { color: #fff; background: #e835a9; animation: musicPulse 1.3s ease-in-out infinite; }

.toast {
  position: fixed; z-index: 60;
  left: 50%; bottom: calc(140px + env(safe-area-inset-bottom));
  transform: translate(-50%, 16px);
  max-width: 84vw;
  padding: 10px 15px;
  border: 2px solid #052b52;
  color: #052b52;
  background: #fff2b8;
  box-shadow: 3px 3px #007a93;
  font: 900 11px/1.5 var(--f-cn);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

.boot-mask {
  position: fixed; inset: 0; z-index: 80;
  display: grid; place-items: center;
  background: #020f22;
  transition: opacity .4s ease;
}
.boot-mask.is-off { opacity: 0; pointer-events: none; }
.boot-mask b { color: var(--cyan); font: 900 12px/1 var(--f-mono); letter-spacing: .3em; animation: blink 1s steps(2, end) infinite; }

/* ============================================================
   新人后台（admin.html）
   ============================================================ */
.admin-shell { width: min(100%, 760px); margin: 0 auto; padding: 26px 18px calc(40px + env(safe-area-inset-bottom)); }
.admin-head { text-align: center; margin-bottom: 22px; }
.admin-head p { color: #85f3ee; font: 900 9px/1 var(--f-mono); letter-spacing: .22em; }
.admin-head h1 {
  margin-top: 10px;
  color: #fff6b4;
  font: 900 26px/1.2 var(--f-cn);
  letter-spacing: .06em;
  text-shadow: 0 3px #03385c, 0 5px #00121f;
}
.admin-head span { display: block; margin-top: 8px; color: #9fd8e8; font: 800 10px/1.6 var(--f-mono); letter-spacing: .1em; }

.admin-card {
  padding: 16px;
  border: 4px solid #243b68;
  background: #0d1932;
  box-shadow: 7px 8px #020b18, inset 0 0 0 2px #5672aa;
}
.admin-card h2 { margin-bottom: 12px; color: #8feeea; font: 900 11px/1 var(--f-mono); letter-spacing: .16em; }
.admin-input-row { display: flex; gap: 9px; }
.admin-input-row input {
  flex: 1;
  padding: 12px;
  border: 2px solid #557ba1;
  outline: none;
  color: #efffff;
  background: #061a31;
  box-shadow: inset 3px 3px #020e1c;
  font-size: 13px;
  letter-spacing: .12em;
}
.admin-input-row input:focus { border-color: #7ff7ef; }
.admin-input-row button {
  flex: none;
  padding: 0 18px;
  border: 3px solid #79601b;
  color: #173751;
  background: #ffe046;
  box-shadow: 4px 5px #020f20;
  font: 900 12px/1 var(--f-cn);
  cursor: pointer;
}
.admin-input-row button:disabled { opacity: .6; cursor: default; }
.admin-msg { margin-top: 12px; padding: 10px; font: 700 11px/1.7 var(--f-cn); }
.admin-msg.err { border: 2px solid #ff6a6e; color: #ffd4d4; background: #4c1727; }
.admin-msg.ok { border: 2px solid #35c27c; color: #b8ffe0; background: #0a3a2a; }

.admin-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0; }
.admin-stats > div {
  padding: 13px 8px;
  border: 3px solid #2b5a75;
  color: #a9f8f4;
  background: #041c30;
  box-shadow: 4px 4px #00121f;
  text-align: center;
  font: 900 8px/1.4 var(--f-mono);
  letter-spacing: .1em;
}
.admin-stats b { display: block; margin-bottom: 5px; color: #ffe04b; font: 900 26px/1 var(--f-display); }

.admin-actions { display: flex; gap: 9px; margin-bottom: 16px; }
.admin-actions button {
  flex: 1;
  padding: 12px;
  border: 3px solid #79601b;
  color: #173751;
  background: #ffe046;
  box-shadow: 4px 4px #020f20;
  font: 900 11px/1 var(--f-cn);
  cursor: pointer;
}
.admin-actions button.ghost { border-color: #3d6c8b; color: #cfeff5; background: #0a2b45; }

.admin-list { display: grid; gap: 10px; }
.admin-row {
  padding: 12px 13px;
  border: 2px solid #2f6d8e;
  background: #01263e;
  box-shadow: 4px 4px #001b2f;
}
.admin-row-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.admin-row-top b { color: #fff; font: 900 15px/1.4 var(--f-cn); }
.admin-row-top b em { margin-left: 7px; color: #ffe04b; font: 900 11px/1 var(--f-mono); font-style: normal; }
.admin-row-top time { color: #7fb6c9; font: 800 9px/1 var(--f-mono); letter-spacing: .04em; }
.admin-row-meta { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 9px; }
.admin-row-meta span {
  padding: 4px 8px;
  border: 2px solid #2f6d8e;
  color: #9fdcea;
  background: #041f33;
  font: 900 9px/1 var(--f-mono);
}
.admin-row-meta span.hot { border-color: #c98a2a; color: #ffd98a; }
.admin-row-msg {
  margin-top: 9px;
  padding: 9px 10px;
  border-left: 3px solid #ffd23f;
  color: #cbe9f3;
  background: #02182a;
  font: 700 11.5px/1.8 var(--f-cn);
}
.admin-row-del {
  margin-top: 10px;
  padding: 7px 12px;
  border: 2px solid #8f2f3f;
  color: #ffc9d0;
  background: #3a1520;
  font: 900 9px/1 var(--f-mono);
  letter-spacing: .06em;
  cursor: pointer;
}

/* ============================================================
   动画
   ============================================================ */
@keyframes glitter { 50% { opacity: .28; } }
@keyframes wave { to { background-position-x: 66px; } }
@keyframes rays { from { transform: translateX(-18px); } to { transform: translateX(26px); } }
@keyframes rise { 0% { transform: translateY(0); opacity: 0; } 8% { opacity: .6; } 88% { opacity: .4; } 100% { transform: translateY(calc(-1 * var(--rise, 900px))); opacity: 0; } }
@keyframes mapPulse { 0% { transform: scale(.5); opacity: .95; } 100% { transform: scale(1.9); opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { 50% { opacity: .25; } }
@keyframes buttonPulse { 50% { transform: translateY(-4px); } }
@keyframes musicPulse { 50% { box-shadow: 0 0 0 7px #e835a933, 3px 4px #001329; } }
@keyframes crateBob { 50% { transform: translateY(4px); } }
@keyframes supplyFall { from { transform: translate3d(0, 0, 0) rotate(-4deg); } to { transform: translate3d(var(--drift), 355px, 0) rotate(8deg); } }
@keyframes supplyHit { to { transform: scale(.2) rotate(18deg); opacity: 0; } }
@keyframes scoreFloat { to { transform: translateY(-36px) scale(1.12); opacity: 0; } }
@keyframes gameBlessing { 0% { opacity: 0; transform: translateY(9px) scale(.75); } 12%, 74% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-24px); } }
@keyframes gameShake { 25% { transform: translateX(-5px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-3px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   小屏
   ============================================================ */
@media (max-width: 380px) {
  .hero-names { font-size: 34px; gap: 6px; }
  .mission-ticket b { font-size: 10px; }
  .menu-board article { grid-template-columns: 48px 1fr auto; gap: 7px; }
  .quick-nav a { font-size: 9px; }
  .game-console-top b { font-size: 13px; }
  .admin-stats { grid-template-columns: 1fr; }
  /* 小队来电的字幕（参考站在 ≤360px 也会缩到 8px，这里跟着缩） */
  .crew-slide > p { font-size: 8px; }
}
