/* ============================================================
   WEDDING KITCHEN · 胡闹厨房主题婚礼请柬
   ============================================================ */

@font-face{
  font-family:"Smiley";
  src:url("assets/fonts/smiley.woff2") format("woff2");
  font-display:swap;
}
@font-face{
  font-family:"Titan";
  src:url("assets/fonts/titan.woff2") format("woff2");
  font-display:swap;
}
@font-face{
  font-family:"Baloo";
  src:url("assets/fonts/baloo.woff2") format("woff2");
  font-weight:800;
  font-display:swap;
}

:root{
  --tomato:#e94e3b;
  --tomato-d:#b5372a;
  --mustard:#ffc72c;
  --cream:#fff3cf;
  --paper:#fffdf7;
  --teal:#2bd4c0;
  --orange:#ff8a3d;
  --night:#1a1230;
  --ink:#1a0c2a;
  --wood:#6b5a44;

  --f-display:"Titan","Baloo","Impact","Arial Black",sans-serif;
  --f-cn:"Smiley","PingFang SC","Microsoft YaHei",sans-serif;
  --f-body:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;
  --f-en:"Baloo",var(--f-body);

  --stripe:repeating-linear-gradient(-45deg,var(--tomato) 0 12px,var(--mustard) 12px 24px);
  --pad:22px;
}

*{ box-sizing:border-box; margin:0; padding:0; -webkit-tap-highlight-color:transparent; }

html{ scroll-behavior:smooth; }

body{
  font-family:var(--f-body);
  background:var(--night);
  color:var(--ink);
  max-width:480px;
  margin:0 auto;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

img{ display:block; max-width:100%; }
button{ font:inherit; color:inherit; border:0; background:none; cursor:pointer; }
a{ color:inherit; text-decoration:none; }
section{ position:relative; }

::selection{ background:var(--mustard); color:var(--ink); }

/* ---------------- 开场 ---------------- */
.loader{
  position:fixed; inset:0; z-index:300;
  background:#120c24;
  display:flex; align-items:center; justify-content:center;
  transition:opacity .55s ease, visibility .55s;
}
.loader.gone{ opacity:0; visibility:hidden; }
.loader-inner{ text-align:center; }
.loader-pot{ font-size:46px; animation:bob 1s ease-in-out infinite; }
.loader-txt{ margin-top:16px; color:var(--cream); font-size:15px; letter-spacing:.08em; }
.loader-sub{
  margin-top:10px; font-family:var(--f-en); font-size:9px;
  letter-spacing:.32em; color:#7a6aa8;
}
.loader-bar{
  width:170px; height:7px; margin:18px auto 0;
  background:#ffffff1f; border-radius:999px; overflow:hidden;
}
.loader-bar i{
  display:block; height:100%; width:0; border-radius:999px;
  background:linear-gradient(90deg,var(--mustard),var(--tomato));
  animation:load 1.15s cubic-bezier(.4,0,.2,1) forwards;
}
.dots i{ opacity:0; animation:blink 1.2s infinite; }
.dots i:nth-child(2){ animation-delay:.2s }
.dots i:nth-child(3){ animation-delay:.4s }

@keyframes load{ to{ width:100% } }
@keyframes bob{ 50%{ transform:translateY(-6px) rotate(-6deg) } }
@keyframes blink{ 0%,100%{opacity:0} 50%{opacity:1} }

/* ---------------- 顶部进度 ---------------- */
.topbar{
  position:fixed; top:0; left:50%; transform:translateX(-50%);
  width:min(100%,480px); height:5px; z-index:60;
  background:var(--stripe); background-size:24px 24px;
  opacity:.9;
}
.topbar i{
  display:block; height:100%; width:0;
  background:var(--tomato-d);
  box-shadow:0 0 12px #00000055;
}

/* ---------------- 通用壳 ---------------- */
.fixed-layer,
.music-btn{ z-index:70; }

.sec-head{ padding:62px var(--pad) 0; }
.sec-en{
  font-family:var(--f-en); font-size:9.5px; letter-spacing:.3em;
  color:#b0a08a; text-transform:uppercase;
}
.sec-title{
  font-family:var(--f-cn); font-size:34px; line-height:1.1;
  margin-top:8px; letter-spacing:.02em;
}
.sec-desc{ margin-top:10px; font-size:13px; line-height:1.7; color:#8b7a63; }
.sec-head.light .sec-en{ color:#a595cf; }
.sec-head.light .sec-title{ color:#fff; }
.sec-desc.light{ color:#b9a9dd; }

.reveal{ opacity:0; transform:translateY(26px); transition:opacity .7s ease, transform .7s cubic-bezier(.3,0,.2,1); }
.reveal.in{ opacity:1; transform:none; }

/* ---------------- 1 封面 ---------------- */
.hero{
  min-height:100vh;
  min-height:100svh;
  display:flex; flex-direction:column;
  position:relative; overflow:hidden;
  color:#fff; isolation:isolate;
}
.hero-bg{
  position:absolute; inset:0; z-index:-2;
  background:url("assets/art/cover.webp") center/cover no-repeat;
  filter:brightness(.66) saturate(1.06);
  transform:scale(1.03);
}
.hero::before{
  content:""; position:absolute; inset:0; z-index:-1;
  background:
    radial-gradient(70% 32% at 50% 44%, #120c24e0 0%, #120c2400 76%),
    radial-gradient(80% 44% at 50% 70%, #ff8a3d3d, transparent 72%),
    linear-gradient(180deg,#120c24e6 0%,#120c2400 26%,#120c2499 74%,#120c24 100%);
}
.hero-glow{
  position:absolute; left:50%; top:64%; z-index:-1;
  width:340px; height:340px; margin:-170px 0 0 -170px;
  background:radial-gradient(circle,#ff8a3d55,transparent 68%);
  filter:blur(12px);
  animation:flicker 4.6s ease-in-out infinite;
}
@keyframes flicker{ 50%{ opacity:.55; transform:scale(1.08) } }

.frame-border{
  position:absolute; inset:9px; z-index:2;
  border-radius:20px; padding:5px; pointer-events:none;
  background:var(--stripe);
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
  -webkit-mask-composite:xor;
          mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
          mask-composite:exclude;
  opacity:.92;
}

.hero-hud{
  position:relative; z-index:3;
  padding:26px 30px 0;
  display:flex; justify-content:space-between;
  font-family:var(--f-en); font-size:9px; letter-spacing:.24em;
  color:#c9b8f0;
}
.hero-hud b{ color:var(--mustard); font-weight:800; }

.hero-body{
  position:relative; z-index:3;
  flex:1; display:flex; flex-direction:column; align-items:center; justify-content:flex-start;
  padding:0 0 18px; text-align:center;
}

.kicker{
  font-family:var(--f-en); font-size:10px; letter-spacing:.3em;
  color:var(--mustard); margin-bottom:14px;
}

/* 海报式封面：人物居中，标题压在下半身 */
.hero-stage{
  position:relative; width:100%; margin:0 auto;
  animation:cast-float 6.4s ease-in-out infinite;
}
.hero-cast{
  display:block; width:82%; max-width:340px;
  margin:0 auto;
  filter:drop-shadow(0 14px 26px #00000099);
  mix-blend-mode:lighten;
  -webkit-mask-image:radial-gradient(ellipse 78% 76% at 50% 50%, #000 55%, transparent 100%);
          mask-image:radial-gradient(ellipse 78% 76% at 50% 50%, #000 55%, transparent 100%);
}
.hero-title{
  display:block; position:relative; z-index:2;
  width:100%; height:auto;
  margin:-31px auto -22px;
  pointer-events:none; overflow:visible;
}
.hero-title text{
  font-family:var(--f-cn);
  paint-order:stroke fill;
  stroke-linejoin:round;
  stroke-linecap:round;
}
.hero-title .tt1{
  font-size:49px;
  fill:#fdf6e3;
  stroke:#7a2f22;
  stroke-width:4.5;
  filter:drop-shadow(0 5px 0 #7a2f22) drop-shadow(0 12px 14px #00000088);
}
.hero-title .tt2{
  font-size:66px;
  fill:var(--mustard);
  stroke:#7a2f22;
  stroke-width:5.5;
  filter:drop-shadow(0 8px 0 #7a2f22) drop-shadow(0 16px 18px #000000aa);
}
/* 矮屏（iPhone SE 之类）压一压，保证按钮和提示都在第一屏 */
@media (max-height:720px){
  .hero-body{ padding-bottom:10px }
  .hero-cast{ width:70%; max-width:290px }
  .hero-title{ margin:-24px auto -18px }
  .names{ margin-top:6px }
  .mini-ticket{ margin-top:10px; padding:10px 14px }
  .accept{ margin-top:12px }
  .hero-note{ margin-top:8px; font-size:10px }
}

.couple{
  margin-top:24px; display:flex; align-items:center; justify-content:center;
  gap:8px; width:100%;
}
.chef{
  width:clamp(74px,20vw,90px); height:clamp(74px,20vw,90px);
  object-fit:contain; flex:none;
  background:none; border:0; border-radius:0;
  filter:drop-shadow(0 10px 16px #00000055);
  will-change:transform;
}
.chef-l{ animation:chef-idle-a 3.2s ease-in-out infinite }
.chef-r{ animation:chef-idle-b 3.6s ease-in-out infinite }

@keyframes chef-idle-a{
  0%,100%{ transform:translateY(0) rotate(-1.6deg) }
  50%    { transform:translateY(-7px) rotate(1.6deg) }
}
@keyframes chef-idle-b{
  0%,100%{ transform:translateY(-5px) rotate(1.4deg) }
  50%    { transform:translateY(2px) rotate(-1.4deg) }
}
.couple-mid{ flex:1; min-width:0 }
.names{
  display:flex; align-items:center; justify-content:center; gap:7px;
  font-family:var(--f-cn); font-size:clamp(21px,6.2vw,27px); color:#fff;
  white-space:nowrap;
}
.names i{ font-style:normal; color:var(--mustard); font-size:.7em; }
.en-name{
  font-family:var(--f-en); font-size:9px; letter-spacing:.3em;
  color:#b9a9dd; margin-top:7px; text-align:center;
}

.mini-ticket{
  margin-top:24px; width:100%; max-width:268px;
  background:var(--paper); border:3px solid var(--ink); border-radius:13px;
  padding:9px 14px; text-align:left; color:#2a1a10;
  box-shadow:0 8px 0 #00000030;
}
.mini-ticket div{
  display:flex; justify-content:space-between; gap:10px;
  font-size:11.5px; padding:4px 0;
}
.mini-ticket div + div{ border-top:1px dashed #ddceb0; }
.mini-ticket span{ font-family:var(--f-en); font-size:9px; letter-spacing:.14em; color:#a08a6c; flex:none; }
.mini-ticket b{ font-weight:700; text-align:right; }

.accept{
  position:relative; overflow:hidden;
  margin-top:26px; width:246px; max-width:100%;
  padding:15px 10px; border-radius:999px;
  background:var(--tomato); color:#fff;
  border:3px solid var(--ink);
  box-shadow:0 6px 0 #8e2a20;
  font-size:15px; font-weight:800; letter-spacing:.02em;
  transition:transform .12s, box-shadow .12s;
  touch-action:manipulation;
}
.accept-ring{
  position:absolute; left:0; top:0; bottom:0; width:0;
  background:#ffffff40; transition:width .06s linear;
}
.accept-label{ position:relative; z-index:1; }
.accept.is-hold{ transform:translateY(3px); box-shadow:0 3px 0 #8e2a20; }
.accept.is-done{ background:var(--teal); box-shadow:0 6px 0 #12867a; }

.hero-note{
  margin-top:14px; font-size:10.5px; color:#a595cf; letter-spacing:.04em;
}
.music-hint{ color:var(--mustard); }

.scroll-cue{
  position:absolute; left:50%; bottom:22px; transform:translateX(-50%); z-index:3;
  width:26px; height:26px; border-radius:50%;
  border:2px solid #ffffff55; display:grid; place-items:center;
}
.scroll-cue span{
  width:6px; height:6px; border-right:2px solid #fff; border-bottom:2px solid #fff;
  transform:rotate(45deg) translate(-1px,-1px);
  animation:cue 1.6s ease-in-out infinite;
}
@keyframes cue{ 50%{ transform:rotate(45deg) translate(2px,2px) } }

/* ---------------- 2 订单 ---------------- */
.order{
  background:var(--cream);
  padding-bottom:78px;
}
.order::before{
  content:""; position:absolute; inset:0;
  background:radial-gradient(#d9c49a22 1px,transparent 1px);
  background-size:9px 9px; pointer-events:none;
}
.receipt{
  position:relative; z-index:1;
  margin:26px var(--pad) 0;
  background:var(--paper);
  border-radius:5px;
  padding:26px 22px 30px;
  box-shadow:0 20px 38px #00000024;
}
.receipt::after{
  content:""; position:absolute; left:0; right:0; bottom:-9px; height:9px;
  background:radial-gradient(circle at 7px 0,transparent 7px,var(--paper) 7px) repeat-x;
  background-size:14px 9px;
}
.r-top{
  display:flex; justify-content:space-between;
  font-family:var(--f-en); font-size:9.5px; letter-spacing:.18em;
  color:#a08a6c; padding-bottom:12px; border-bottom:2px dashed #e0d2b8;
}
.r-title{
  font-family:var(--f-cn); font-size:30px; margin-top:16px; letter-spacing:.02em;
}
.r-sub{ font-size:12.5px; color:#7a6448; margin-top:6px; line-height:1.6; }
.r-list{ margin-top:16px; }
.r-list div{
  display:flex; justify-content:space-between; gap:12px;
  padding:10px 0; border-bottom:1px dashed #e8dcc6;
}
.r-list div:last-child{ border-bottom:0; }
.r-list dt{
  font-family:var(--f-en); font-size:9px; letter-spacing:.16em;
  color:#a08a6c; flex:none; padding-top:3px;
}
.r-list dd{ font-size:13px; font-weight:700; text-align:right; line-height:1.55; }
.r-list dd .dim{ font-weight:400; color:#8b7a63; font-size:12px; }
.r-code{
  height:42px; margin-top:18px; border-radius:2px;
  background:repeating-linear-gradient(90deg,#2a1a10 0 2px,transparent 2px 4px,#2a1a10 4px 5px,transparent 5px 9px);
  opacity:.72;
}
.r-foot{
  text-align:center; font-family:var(--f-en); font-size:8px;
  letter-spacing:.24em; color:#a08a6c; margin-top:8px;
}
.stamp{
  position:absolute; right:-8px; bottom:64px;
  transform:rotate(-9deg);
  border:3px dashed var(--tomato); color:var(--tomato);
  border-radius:9px; padding:6px 10px;
  font-family:var(--f-en); font-size:11px; line-height:1.15;
  letter-spacing:.12em; text-align:center; opacity:.85;
  background:#fffdf7cc;
}
.order-note{
  position:relative; z-index:1;
  margin:26px var(--pad) 0; text-align:center;
  font-size:12.5px; line-height:1.9; color:#6b5a44;
  white-space:pre-line;
}

/* 邀请正文 */
.letter{
  position:relative; z-index:1;
  margin:24px var(--pad) 0;
  background:var(--paper); border:3px solid var(--ink); border-radius:18px;
  padding:22px 20px 20px; box-shadow:0 8px 0 #00000014;
}
.letter::before{
  content:"“"; position:absolute; right:20px; top:2px;
  font-family:Georgia,"Times New Roman",serif; font-size:56px;
  color:#e5d9c3; line-height:1; pointer-events:none;
}
.letter-en{
  font-family:var(--f-en); font-size:8.5px; letter-spacing:.24em;
  color:#b0a08a;
}
.letter-title{ font-family:var(--f-cn); font-size:24px; margin-top:6px; }
.letter-body{
  font-size:13px; line-height:2.05; color:#5c4a33;
  margin-top:12px; white-space:pre-line;
}
.letter-sign{
  margin-top:16px; text-align:right;
  font-family:var(--f-cn); font-size:16px; color:var(--tomato-d);
}

/* 着装色卡 */
.dress{
  position:relative; z-index:1;
  margin:28px var(--pad) 0;
  background:var(--paper); border:3px solid var(--ink); border-radius:18px;
  padding:20px 18px 22px; box-shadow:0 8px 0 #00000014;
}
.dress-head h3{ font-family:var(--f-cn); font-size:22px; margin-top:2px; }
.dress-desc{ font-size:12px; line-height:1.75; color:#7a6448; margin-top:10px; }
.swatch-row{ display:flex; gap:6px; margin-top:18px; }
.sw{ flex:1; text-align:center; min-width:0 }
.sw i{
  display:block; width:100%; aspect-ratio:1/1; border-radius:50%;
  border:2px solid #ffffff;
  box-shadow:0 0 0 1px #1a0c2a26, 0 4px 8px #00000018;
}
.sw span{ display:block; font-size:10px; color:#6b5a44; margin-top:7px; letter-spacing:.02em; }

/* ---------------- 3 关卡 ---------------- */
.levels{
  background:var(--night); color:#fff;
  padding-bottom:64px; overflow:hidden;
}
.levels-bg{
  position:absolute; inset:0;
  background:url("assets/art/levels.webp") center/cover no-repeat;
  filter:brightness(.55) saturate(1.2);
}
.levels::after{
  content:""; position:absolute; inset:0;
  background:linear-gradient(180deg,var(--night) 0%,#120c2480 24%,#120c24b3 76%,var(--night) 100%);
}
.levels > *:not(.levels-bg){ position:relative; z-index:1; }

.lv-list{ margin:28px var(--pad) 0; }
.lv-item{
  display:flex; gap:16px;
  padding:16px; margin-bottom:12px;
  background:#ffffff0d; border:2px solid #ffffff1f;
  border-radius:16px; backdrop-filter:blur(3px);
  transition:border-color .4s, background .4s;
}
.lv-item.in{ background:#ffffff14; border-color:#ffc72c66; }
.lv-time{
  font-family:var(--f-display); font-size:21px; line-height:1;
  color:var(--mustard); flex:none; width:62px; padding-top:2px;
}
.lv-body{ flex:1; }
.lv-en{ font-family:var(--f-en); font-size:8.5px; letter-spacing:.2em; color:#a595cf; }
.lv-title{ font-family:var(--f-cn); font-size:19px; margin-top:2px; }
.lv-desc{ font-size:12px; line-height:1.65; color:#cfc2e8; margin-top:6px; }

.lv-total{
  margin:6px var(--pad) 0; padding-top:16px;
  border-top:2px dashed #ffffff26;
  display:flex; justify-content:space-between; align-items:center;
  font-family:var(--f-en); font-size:10px; letter-spacing:.22em; color:#a595cf;
}
.lv-total b{ font-size:20px; color:var(--mustard); letter-spacing:.1em; }

/* ---------------- 4 料理台 ---------------- */
.stations{
  background:var(--cream); padding-bottom:70px;
}
.st-grid{
  display:grid; grid-template-columns:1fr 1fr; gap:12px;
  margin:26px var(--pad) 0;
}
.st-card{
  background:#fff; border:3px solid var(--ink); border-radius:16px;
  padding:16px 14px 18px; text-align:left;
  box-shadow:0 5px 0 #00000018;
  transition:transform .12s, box-shadow .12s;
}
.st-card:active{ transform:translateY(3px); box-shadow:0 2px 0 #00000018; }
.st-icon{ font-size:26px; line-height:1; }
.st-en{
  font-family:var(--f-en); font-size:8px; letter-spacing:.16em;
  color:#b0a08a; margin-top:10px;
}
.st-name{ font-family:var(--f-cn); font-size:19px; margin-top:2px; }
.st-desc{ font-size:11.5px; line-height:1.6; color:#7a6448; margin-top:6px; }

/* ---------------- 5 选人界面 ---------------- */
.select{
  background:#211737; padding-bottom:62px; overflow:hidden;
}
.select-bg{
  position:absolute; inset:0;
  background:url("assets/art/frames.webp") center/cover no-repeat;
  filter:brightness(.5) saturate(1.2);
}
.select::after{
  content:""; position:absolute; inset:0;
  background:linear-gradient(180deg,#211737 0%,#2117378c 30%,#211737bb 78%,#211737 100%);
}
.select > *:not(.select-bg){ position:relative; z-index:1; }

/* 选人：游戏窗口 */
.game-win{
  margin:20px var(--pad) 0;
  background:#c9c2b4;
  border:3px solid #2b2418;
  border-radius:7px;
  box-shadow:0 16px 34px #00000066;
  padding-bottom:6px;
  overflow:hidden;
}
.game-bar{
  position:relative;
  background:#2e6da4;
  color:#fff;
  font-family:var(--f-cn);
  font-size:19px;
  padding:9px 15px 10px;
  border-bottom:3px solid #1c4b76;
}
.game-bar::after{
  content:""; position:absolute; left:0; right:0; bottom:-7px; height:7px;
  background:
    linear-gradient(135deg,#2e6da4 50%,transparent 50%) 0 0/14px 7px repeat-x,
    linear-gradient(225deg,#2e6da4 50%,transparent 50%) 0 0/14px 7px repeat-x;
}

.select-grid{
  display:grid; grid-template-columns:repeat(5,1fr); gap:4px;
  padding:12px 10px 8px;
}
.face{
  position:relative; aspect-ratio:1/1; padding:0; overflow:hidden;
  border:2px solid #fdfaf3; outline:1px solid #a49c8a;
  background:#3a3126;
  transition:transform .12s, border-color .15s;
}
.face img{ width:100%; height:100%; object-fit:cover; display:block }
.face.on{ border-color:#5fb0ef; outline:2px solid #2e6da4; transform:translateY(-2px) }
.face.lock img{ opacity:.42; filter:grayscale(.7) }

.select-stage{
  position:relative; padding:10px 42px 4px;
  display:flex; align-items:center; justify-content:center;
}
.stage-photo{
  width:100%; aspect-ratio:4/3;
  background:#fff; border:5px solid #fff;
  box-shadow:0 6px 16px #0000003d;
  overflow:hidden; display:grid; place-items:center;
}
.stage-photo img{ width:100%; height:100%; object-fit:cover; display:block }
.stage-photo .ph-empty{
  text-align:center; color:#8b7a63; font-size:12px; line-height:1.9; padding:18px;
}
.stage-photo .ph-empty b{ display:block; font-family:var(--f-display); font-size:26px; color:#c9c2b4; margin-bottom:6px }
.arrow{
  position:absolute; top:50%; transform:translateY(-50%);
  width:32px; height:54px; padding:0;
  color:#4a9fe0; font-size:38px; line-height:1;
  text-shadow:0 2px 4px #00000022;
}
.arrow-l{ left:2px } .arrow-r{ right:2px }
.select-cap{
  text-align:center; font-size:12px; color:#3f3729;
  padding:8px 0 0; min-height:18px; letter-spacing:.02em;
}
.select-tip{
  text-align:center; font-size:11px; color:#5c5343;
  letter-spacing:.04em; padding:2px 0 2px;
}

/* ---------------- 6 选关 · 交通 ---------------- */
.route-list{
  position:relative; margin:24px var(--pad) 0;
}
.route-list::before{
  content:""; position:absolute; left:37px; top:34px; bottom:34px;
  border-left:2px dashed #c9b18a; z-index:0;
}
.route-item{
  position:relative; z-index:1;
  display:flex; gap:13px; align-items:flex-start;
  background:#fff; border:3px solid var(--ink); border-radius:16px;
  padding:13px 15px; margin-bottom:11px;
  box-shadow:0 5px 0 #00000018;
  transition:transform .12s, box-shadow .12s;
}
.route-item:active{ transform:translateY(3px); box-shadow:0 2px 0 #00000018 }
.route-icon{
  width:42px; height:42px; flex:none; border-radius:50%;
  display:grid; place-items:center; font-size:19px;
  background:var(--cream); border:2px solid var(--ink);
}
.route-body{ flex:1; min-width:0 }
.route-top{ display:flex; align-items:baseline; gap:7px }
.route-name{ font-family:var(--f-cn); font-size:18px; }
.route-from{ font-size:10.5px; color:#a08a6c; }
.route-time{ font-size:10.5px; font-weight:700; color:var(--tomato-d); margin-left:auto; flex:none }
.route-desc{ font-size:11.5px; line-height:1.65; color:#6b5a44; margin-top:5px; }
.route-note{ margin:4px var(--pad) 0; font-size:10.5px; line-height:1.7; color:#a08a6c; }

/* ---------------- 6 导航 ---------------- */
.arrive{ background:var(--cream); padding-bottom:72px; }

/* ---------------- 7 报到 ---------------- */
.rsvp{
  background:var(--night); padding-bottom:78px; color:#fff;
}
.rsvp-card{
  margin:26px var(--pad) 0;
  background:var(--paper); border-radius:18px;
  overflow:hidden; color:var(--ink);
  box-shadow:0 18px 40px #00000055;
}
.rsvp-bar{
  background:var(--ink); color:#fff;
  display:flex; align-items:center; gap:10px;
  padding:12px 16px; font-family:var(--f-en);
  font-size:10px; letter-spacing:.16em;
}
.rsvp-bar span{ color:var(--teal); }
.rsvp-bar b{ flex:1; font-weight:800; }
.rsvp-bar small{ font-size:9px; color:#a595cf; letter-spacing:.1em; }

#rsvp-form{ padding:18px 16px 20px; }
#rsvp-form label{ display:block; margin-bottom:14px; }
#rsvp-form label > span{
  display:block; font-size:12px; font-weight:700; color:#6b5a44; margin-bottom:6px;
}
#rsvp-form label > span b{ color:var(--tomato); }
#rsvp-form input[type=text],
#rsvp-form input:not([type]),
#rsvp-form select,
#rsvp-form textarea{
  width:100%; padding:11px 12px;
  border:2px solid #e0d2b8; border-radius:10px;
  font-size:14px; font-family:var(--f-body);
  background:#fff; color:#2a1a10;
  transition:border-color .2s;
}
#rsvp-form input:focus,
#rsvp-form select:focus,
#rsvp-form textarea:focus{
  outline:none; border-color:var(--tomato);
}
#rsvp-form textarea{ resize:vertical; line-height:1.6; }
#rsvp-form small{
  display:block; text-align:right; font-size:10px; color:#b0a08a; margin-top:4px;
}
#rsvp-form fieldset{ border:0; margin:0 0 14px; }
#rsvp-form legend{
  font-size:12px; font-weight:700; color:#6b5a44; margin-bottom:6px;
}
#rsvp-form legend b{ color:var(--tomato); }
.choice{ display:flex; gap:8px; }
.choice label{ flex:1; margin:0; position:relative; }
.choice input{ position:absolute; opacity:0; pointer-events:none; }
.choice span{
  display:block; text-align:center; padding:11px 6px;
  border:2px solid #e0d2b8; border-radius:10px;
  font-size:13.5px; font-weight:700; color:#7a6a54;
  transition:.18s;
}
.choice input:checked + span{
  background:var(--mustard); border-color:var(--ink); color:var(--ink);
}
.submit{
  width:100%; margin-top:8px;
  background:var(--tomato); color:#fff;
  border:3px solid var(--ink); border-radius:999px;
  padding:14px; font-weight:800; font-size:15px;
  box-shadow:0 5px 0 #8e2a20;
  display:flex; align-items:center; justify-content:center; gap:8px;
  transition:transform .12s, box-shadow .12s;
}
.submit:active{ transform:translateY(3px); box-shadow:0 2px 0 #8e2a20; }
.submit b{ font-size:11px; }

.rsvp-note{
  padding:0 18px 18px; font-size:10.5px; line-height:1.75; color:#9a8871;
}

.rsvp-done{ padding:30px 20px 26px; text-align:center; }
.done-mark{
  width:56px; height:56px; margin:0 auto; border-radius:50%;
  background:var(--teal); color:#fff; font-size:26px;
  display:grid; place-items:center;
  box-shadow:0 5px 0 #12867a;
}
.rsvp-done h3{ font-family:var(--f-cn); font-size:26px; margin-top:16px; }
.rsvp-done p{ font-size:12.5px; line-height:1.8; color:#6b5a44; margin-top:10px; }
.ghost{
  margin-top:16px; padding:11px 18px;
  border:2px dashed var(--tomato-d); border-radius:10px;
  color:var(--tomato-d); font-size:12.5px; font-weight:700;
}
.link{
  display:block; margin:12px auto 0;
  font-size:11.5px; color:#a08a6c; text-decoration:underline;
}

/* ---------------- 8 结尾 ---------------- */
.ending{
  min-height:100vh; min-height:100svh;
  display:flex; align-items:center; justify-content:center;
  overflow:hidden; color:#fff;
}
.ending-bg{
  position:absolute; inset:0;
  background:url("assets/art/ending.webp") center/cover no-repeat;
  filter:brightness(.85) saturate(1.1);
}
.ending::after{
  content:""; position:absolute; inset:0;
  background:radial-gradient(72% 50% at 50% 64%,#ff8a3d40,transparent 72%),
             linear-gradient(180deg,#120c24f2 0%,#120c2455 34%,#120c24aa 68%,#120c24 100%);
}
.ending-inner{
  position:relative; z-index:1; text-align:center; padding:40px 26px;
}
.ending-inner .sec-en{ color:var(--mustard); }
.ending-title{
  font-family:var(--f-cn); font-size:clamp(30px,9vw,40px);
  line-height:1.15; margin-top:14px;
  text-shadow:0 2px 0 #8e2a20, 0 8px 22px #000000aa;
}
.ending-names{
  font-family:var(--f-cn); font-size:24px; color:var(--mustard);
  margin-top:22px; display:flex; justify-content:center; gap:10px; align-items:center;
}
.ending-names i{ font-style:normal; color:#fff; font-size:.7em; }
.ending-date{ font-size:12.5px; color:#b9a9dd; margin-top:12px; letter-spacing:.08em; }
.ending-stars{
  font-size:26px; color:var(--mustard); margin-top:26px; letter-spacing:.32em;
  text-shadow:0 3px 0 #7a2f22;
  animation:pulse 2.6s ease-in-out infinite;
}
@keyframes pulse{ 50%{ transform:scale(1.06); opacity:.85 } }

/* ---------------- 页脚 ---------------- */
.site-foot{
  background:#0f0a20; color:#6d60a0;
  padding:34px var(--pad) calc(34px + env(safe-area-inset-bottom));
  text-align:center; font-size:10.5px; line-height:1.9;
}
.foot-logo{
  font-family:var(--f-en); font-size:12px; letter-spacing:.24em;
  color:#a595cf; margin-bottom:12px;
}
.foot-logo b{ color:var(--mustard); }
.foot-credit{ margin-top:8px; font-size:9.5px; color:#4f4578; }

/* ---------------- 音乐 ---------------- */
.music-btn{
  position:fixed; z-index:80;
  right:max(18px,calc(50vw - 240px + 18px));
  bottom:calc(20px + env(safe-area-inset-bottom));
  width:46px; height:46px; border-radius:50%;
  background:#1a0c2ad9;
  border:2px solid var(--mustard);
  color:var(--mustard); font-size:18px;
  display:grid; place-items:center;
  backdrop-filter:blur(6px);
  box-shadow:0 6px 18px #00000055;
  transition:opacity .3s, transform .2s;
}
.music-btn:active{ transform:scale(.94); }
.music-btn.playing{ background:var(--mustard); color:var(--ink); border-color:var(--ink); }
.music-btn.playing span{ animation:spin 3.4s linear infinite; display:block; }
@keyframes spin{ to{ transform:rotate(360deg) } }

/* ---------------- 灯箱 ---------------- */
.lightbox{
  position:fixed; inset:0; z-index:200;
  background:#07040ff2;
  display:flex; align-items:center; justify-content:center;
  padding:40px 16px;
  animation:fade .22s ease;
}
@keyframes fade{ from{ opacity:0 } }
.lightbox[hidden]{ display:none; }
.lb-stage{ max-width:100%; max-height:74vh; display:grid; place-items:center; }
.lb-stage img{
  max-width:100%; max-height:74vh; border-radius:6px;
  box-shadow:0 24px 60px #00000099; object-fit:contain;
}
.lb-empty{
  width:min(84vw,300px); aspect-ratio:3/4; border-radius:12px;
  border:3px dashed #ffffff3d; background:#ffffff0a;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:10px; color:#cfc2e8; font-size:13px; text-align:center; padding:24px; line-height:1.7;
}
.lb-empty b{ font-size:34px; opacity:.5 }
.lb-close{
  position:absolute; top:calc(16px + env(safe-area-inset-top)); right:16px;
  width:40px; height:40px; border-radius:50%;
  background:#ffffff1a; color:#fff; font-size:16px;
}
.lb-prev,.lb-next{
  position:absolute; top:50%; transform:translateY(-50%);
  width:42px; height:64px; color:#fff; font-size:32px;
  background:#ffffff14; border-radius:10px;
}
.lb-prev{ left:8px; } .lb-next{ right:8px; }
.lb-cap{
  position:absolute; bottom:calc(28px + env(safe-area-inset-bottom));
  left:0; right:0; text-align:center;
  color:#cfc2e8; font-size:12.5px; letter-spacing:.06em;
}

/* ---------------- 截图调试模式（?shot=1） ---------------- */
html.shot{ background:#000; }
html.shot body{ width:390px; max-width:390px; margin:0 auto; }
html.shot .hero,
html.shot .ending{ min-height:720px; }
html.shot .loader{ display:none !important; }
html.shot .topbar,
html.shot .music-btn{ display:none !important; }
html.shot .reveal{ opacity:1 !important; transform:none !important; }

/* ---------------- 降级 ---------------- */
@media (prefers-reduced-motion:reduce){
  *{ animation-duration:.01ms !important; transition-duration:.01ms !important; }
  .reveal{ opacity:1; transform:none; }
}


/* ============================================================
   v3.0：素材版（抠图人物 / 婚礼短片 / 小狗国王 / 切菜循环 /
          9:16 选人 / 地点前置 / 导航动画）
   ============================================================ */

/* ---------- 未接单时锁住后续内容 ---------- */
body.locked #rest,
body.locked .site-foot{ display:none }
body.locked .topbar{ opacity:0 }

/* ---------- 封面：海报式（人物铺满 + 标题压在身上） ---------- */
@keyframes cast-float{
  0%,100%{ transform:translateY(0) }
  50%    { transform:translateY(-7px) }
}
.names{ margin-top:12px }
.mini-ticket{ margin-top:16px }
.accept{ margin-top:18px }

/* ---------- 婚礼短片 ---------- */
.film{
  position:fixed; inset:0; z-index:400;
  background:#07040f;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  padding:16px;
}
.film[hidden]{ display:none }
.film-stage{
  position:relative; width:100%; max-width:460px;
  aspect-ratio:16/9; background:#000; border-radius:8px; overflow:hidden;
  box-shadow:0 20px 50px #000000aa;
}
.film-stage video{ width:100%; height:100%; object-fit:cover; display:block }
.film-bar{
  position:absolute; left:0; right:0; bottom:0; height:4px;
  background:#ffffff26;
}
.film-bar i{ display:block; height:100%; width:0; background:#ffc72c }
.film-skip{
  margin-top:16px; color:#cfc2e8; font-size:13px;
  padding:8px 18px; border:2px solid #ffffff33; border-radius:999px;
}
.film-skip b{ font-size:9px; color:#ffc72c }

/* ---------- 订单页：顶部居中的小狗与国王 ---------- */
.order-head{
  position:relative;
  padding:52px var(--pad) 0;
  text-align:center;
}
.order-head .sec-head{ padding:0 }
.mascots{
  display:flex; align-items:flex-end; justify-content:center;
  height:100px; margin:0 auto 10px;
  pointer-events:none;
}
.mascot{
  position:relative;
  filter:drop-shadow(0 6px 12px #00000055);
}
.m-dog{ height:78px; margin-right:-2px; z-index:2; animation:bob-d 3.4s ease-in-out infinite }
.m-king{ height:104px; animation:bob-k 4.4s ease-in-out infinite }
@keyframes bob-d{ 0%,100%{ transform:translateY(0) rotate(-2deg) } 50%{ transform:translateY(-5px) rotate(2deg) } }
@keyframes bob-k{ 0%,100%{ transform:translateY(-3px) rotate(1.5deg) } 50%{ transform:translateY(3px) rotate(-1.5deg) } }

/* ---------- 料理台：右上角切菜循环 ---------- */
.st-card{ position:relative; overflow:hidden }

.st-card .st-icon{ margin-top:2px }
.st-card .st-en{ margin-top:12px }

/* ---------- 选人：9:16 ---------- */
.stage-photo{ aspect-ratio:9 / 16 !important; }
.stage-photo img{ object-position:center 28% }
.select-cap{ display:none !important }
.select-tip{ padding:10px 0 4px !important }

/* ============================================================
   v3.1：导航页改成「1-1 关卡地图」——小卡车开到终点停下，
          弹窗换成酒店地址
   v3.2：去掉地图下方那行地址，重播挪到地图右下角
   ============================================================ */

/* ---------- 导航：关卡地图（小卡车开到 1-1） ---------- */
.arrive{ background:var(--cream) !important; padding-bottom:70px }

.navmap{
  position:relative; margin:22px var(--pad) 0;
  background:#0f0a20;
  border:3px solid var(--ink); border-radius:16px;
  overflow:hidden;
  box-shadow:0 6px 0 #0000001f, 0 20px 34px #0000002e;
  isolation:isolate;
}
.nm-stage{
  position:relative; aspect-ratio:1 / 1; overflow:hidden;
  background:#0f0a20; transform:translateZ(0);
}
/* 抵达后压暗地图（在视频之上、HUD 之下） */
.nm-stage::before{
  content:""; position:absolute; inset:0; z-index:1;
  background:#0f0a20; opacity:0; pointer-events:none;
  transition:opacity .55s ease;
}
.navmap.is-arrived .nm-stage::before{ opacity:.32 }

.nm-video{
  position:absolute; inset:0; width:100%; height:100%;
  object-fit:cover; display:block; background:#0f0a20;
}
/* 兜底：视频播不起来时直接用抵达画面 */
.nm-fallback{
  position:absolute; inset:0; z-index:0;
  width:100%; height:100%; object-fit:cover; display:block;
  opacity:0; visibility:hidden; pointer-events:none;
  transition:opacity .3s ease;
}
.nm-fallback.show{ opacity:1; visibility:visible }
.nm-shade{
  position:absolute; inset:0; z-index:1; pointer-events:none;
  background:linear-gradient(180deg,#0f0a20a8 0%,#0f0a2000 22%,#0f0a2000 60%,#0f0a20b8 100%);
}

/* HUD */
.nm-hud{
  position:absolute; left:0; right:0; top:0; z-index:2;
  display:flex; align-items:center; gap:8px;
  padding:10px 11px 0;
  transition:opacity .35s ease;
}
.nm-chip{
  display:inline-flex; align-items:center; gap:6px;
  background:#0f0a20d9; color:#fff;
  border:2px solid #ffffff30; border-radius:999px;
  padding:4px 10px 4px 4px;
  font-size:10px; letter-spacing:.04em;
}
.nm-chip b{
  background:var(--mustard); color:var(--ink);
  border-radius:999px; padding:2px 7px;
  font-family:var(--f-en); font-size:10px; letter-spacing:.08em;
}
.nm-state{
  margin-left:auto; display:inline-flex; align-items:baseline;
  font-size:9.5px; letter-spacing:.14em; color:#e8ddff;
  text-shadow:0 1px 6px #000;
}
.nm-state i{ font-style:normal; opacity:0; animation:nm-dot 1.2s infinite }
.nm-state i:nth-of-type(2){ animation-delay:.2s }
.nm-state i:nth-of-type(3){ animation-delay:.4s }
@keyframes nm-dot{ 0%,100%{ opacity:0 } 50%{ opacity:1 } }

/* 播放键：自动播放被拦时露出 */
.nm-play{
  position:absolute; left:50%; top:50%; z-index:3;
  width:62px; height:62px; margin:-31px 0 0 -31px;
  border-radius:50%;
  background:#0f0a20cc; border:3px solid var(--mustard);
  color:var(--mustard); font-size:19px;
  display:grid; place-items:center; padding-left:5px;
  box-shadow:0 6px 20px #00000066, 0 0 0 6px #ffc72c22;
  opacity:0; visibility:hidden; transform:scale(.86);
  transition:opacity .25s, transform .25s, visibility .25s;
}
.nm-play.show{ opacity:1; visibility:visible; transform:none }

/* 行驶进度 */
.nm-dock{
  position:absolute; left:0; right:0; bottom:0; z-index:2;
  padding:0 12px 12px;
  transition:opacity .35s ease;
}
.nm-bar{
  height:6px; border-radius:999px; overflow:hidden;
  background:#ffffff2e; border:1px solid #ffffff26;
}
.nm-bar i{
  display:block; height:100%; width:0;
  background:linear-gradient(90deg,var(--mustard),var(--tomato));
  box-shadow:0 0 10px #ffc72c88;
  transition:width .2s linear;
}

/* 抵达：金色脉冲 */
.nm-ping{
  position:absolute; left:62%; top:57%; z-index:2;
  width:22px; height:22px; margin:-11px 0 0 -11px;
  border-radius:50%; border:3px solid var(--mustard);
  opacity:0; pointer-events:none;
}
.navmap.is-arrived .nm-ping{ animation:nm-ping 1.7s ease-out 2 }
@keyframes nm-ping{
  0%{ transform:scale(.45); opacity:.95 }
  100%{ transform:scale(4.4); opacity:0 }
}

/* 抵达弹窗 */
.navpop{
  position:absolute; left:50%; bottom:51.5%; z-index:4;
  width:calc(100% - 34px);
  opacity:0; visibility:hidden; pointer-events:none;
  transform:translate(-50%,16px) scale(.9);
  transition:opacity .28s ease, transform .5s cubic-bezier(.18,1.45,.45,1), visibility .3s;
}
.navpop.on{ opacity:1; visibility:visible; pointer-events:auto; transform:translate(-50%,0) scale(1) }
.navpop-card{
  position:relative; overflow:hidden;
  background:var(--paper);
  border:3px solid var(--ink); border-radius:14px;
  padding:11px 12px 12px; text-align:center;
  box-shadow:0 6px 0 #00000038, 0 16px 28px #00000066;
}
.navpop-card::before{
  content:""; position:absolute; left:0; right:0; top:0; height:6px;
  background:var(--stripe); background-size:22px 22px;
}
.np-kicker{
  margin-top:5px;
  font-family:var(--f-en); font-size:8.5px; letter-spacing:.15em;
  color:#b08a4a;
}
.np-title{
  font-family:var(--f-cn); font-size:min(4.7vw,21px); line-height:1.2;
  margin-top:4px;
}
.np-hall{
  font-size:min(2.9vw,12.5px); font-weight:800; color:var(--tomato-d);
  margin-top:4px; letter-spacing:.02em;
}
.np-addr{
  font-size:min(2.7vw,11.5px); line-height:1.55; color:#6b5a44;
  margin-top:2px;
}
.np-go{
  display:flex; align-items:center; justify-content:center; gap:6px;
  margin-top:10px; padding:min(2.8vw,10px) 12px;
  background:var(--tomato); color:#fff;
  border:2.5px solid var(--ink); border-radius:999px;
  font-weight:800; font-size:min(3.2vw,13.5px);
  box-shadow:0 4px 0 #8e2a20;
  transition:transform .12s, box-shadow .12s;
}
.np-go:active{ transform:translateY(3px); box-shadow:0 1px 0 #8e2a20 }
.np-go span{ font-size:.85em }
.navpop-tail{
  position:absolute; left:62%; bottom:-9px;
  width:16px; height:16px;
  background:var(--paper);
  border-right:3px solid var(--ink); border-bottom:3px solid var(--ink);
  border-radius:0 0 3px 0;
  transform:rotate(45deg);
}
/* 小屏：把弹窗再压紧一点，避免顶到地图上边缘 */
@media (max-width:382px){
  .navpop{ bottom:50% }
  .navpop-card{ padding:9px 11px 10px }
  .np-kicker{ margin-top:3px; font-size:8px }
  .np-title{ font-size:min(4.7vw,18px); margin-top:3px }
  .np-hall{ font-size:min(2.9vw,11px); margin-top:3px }
  .np-addr{ font-size:min(2.8vw,10.5px) }
  .np-go{ margin-top:8px; padding:min(2.6vw,9px) 12px; font-size:min(3.2vw,12.5px) }
}

.navmap.is-arrived .nm-hud,
.navmap.is-arrived .nm-dock{ opacity:0 }

/* 抵达后右下角的「再看一遍」 */
.nm-replay{
  position:absolute; right:10px; bottom:10px; z-index:3;
  padding:6px 11px; border-radius:999px;
  background:#0f0a20cc; border:2px solid #ffffff33;
  color:#fff; font-size:10.5px; letter-spacing:.04em;
  opacity:0; visibility:hidden; transform:translateY(6px);
  transition:opacity .3s ease .2s, visibility .3s, transform .3s;
}
.navmap.is-arrived .nm-replay{ opacity:1; visibility:visible; transform:none }
.nm-replay:active{ transform:scale(.95) }

.sec-head-sub{ padding-top:34px !important }
/* 短片层限制在手机宽度内（桌面上也居中） */
.film{ left:50% !important; right:auto !important; transform:translateX(-50%); width:min(100%,480px) }

/* ============================================================
   试营业 · 内嵌小游戏
   ============================================================ */
.game-screen{ position:fixed; inset:0; z-index:200; background:#150d28; }
.game-screen[hidden]{ display:none; }
.game-screen .kg-stage{ height:100vh; height:100dvh; width:100%; }
body.game-open .music-btn,
body.game-open .topbar{ opacity:0; pointer-events:none; }

/* 结尾屏上的试营业入口 */
.ending-try{
  margin-top:30px;
  display:inline-flex; align-items:center; gap:10px;
  padding:13px 26px 14px;
  background:var(--mustard); color:#3a1c07;
  border:3px solid var(--ink); border-radius:999px;
  box-shadow:0 5px 0 rgba(0,0,0,.5);
  font-family:var(--f-cn); font-size:16px; letter-spacing:.02em;
  transition:transform .08s, box-shadow .08s;
}
.ending-try b{ font-weight:400; color:var(--tomato-d); margin-right:2px; }
.ending-try i{ font-style:normal; font-size:12px; opacity:.75; }
.ending-try:active{ transform:translateY(3px); box-shadow:0 2px 0 rgba(0,0,0,.5); }
.ending-try-note{
  margin-top:12px; font-size:10.5px; letter-spacing:.08em;
  color:rgba(255,243,207,.45);
}

.sec-head-crew{ display:flex; align-items:flex-start; gap:10px; }
.sec-copy{ flex:1; min-width:0; }
.sec-crew{ flex:none; width:160px; margin-top:4px; }
.crew-video{
  width:100%; aspect-ratio:585/355; height:auto; display:block;
  border-radius:16px; background:#2a1a12;
}
@media (max-width:380px){
  .sec-head-crew{ flex-wrap:wrap; }
  .sec-crew{ width:100%; display:flex; justify-content:flex-end; }
  .crew-video{ width:150px; }
}

/* 选人轮播：换图时淡入 */
.stage-photo img{ animation:photo-in .5s ease both; }
@keyframes photo-in{ from{ opacity:.15; transform:scale(1.02) } to{ opacity:1; transform:none } }

/* 腾讯问卷嵌入 */
.rsvp-embed{ margin-top:14px; }
.rsvp-embed iframe{
  width:100%; height:min(640px, 72vh); border:0; border-radius:14px;
  background:#fff; display:block;
}
.rsvp-open{
  display:inline-block; margin-top:10px;
  font-size:12px; color:#8a6a4a; text-decoration:underline;
}
