/* 手機設計座標：960 × 2640。上卡1824，下卡816。 */
@media(max-width:767px){
 main{max-width:none}
 .hero{aspect-ratio:960/1824;background:linear-gradient(#080633 4%,#15174a 36%,#078bc3 72%)}
 .hero>.background{display:none}
 /* .night{aspect-ratio:960/816;margin-top:0;background:linear-gradient(#061957,#006ca7)} */
 .night{margin-top:-4vw;background:linear-gradient(#061957,#006ca7)}
 .night>.background{top:auto;bottom:0;height:65%;object-fit:cover;object-position:76% bottom}
 .lantern-frame{aspect-ratio:960/1424}
 .brand{left:39.3%;top:15.1%;width:21.4%}
 #hero-ttf{left:19%;top:21.8%;width:62%}
 #hero-title{left:14%;top:23.5%;width:72%}
 #hero-ribbon{left:20%;top:39.3%;width:61%}
 #hero-new{left:36.2%;top:39.3%;width:9%}
 #hero-price{left:23.5%;top:45.1%;width:53%}
 #hero-dance{left:7.4%;top:53.4%;width:22%}
 #hero-stage{left:4.2%;top:64.8%;width:28%}
 #hero-drum{left:55%;top:55.7%;width:43%}
 #hero-open{left:31.5%;top:56.4%;width:21%}
 #hero-platform{left:0;top:69.2%;width:100%}
 #hero-fan-1{left:7%;top:70.9%;width:26%}
 #hero-fan-2{left:37%;top:70.9%;width:26%}
 #hero-fan-3{left:67%;top:70.9%;width:26%}
 #hero-fan-4{left:22%;top:81%;width:26%}
 #hero-fan-5{left:52%;top:81%;width:26%}
 #night-plane{left:40%;top:7%;width:20%}
 #night-route{left:15%;top:23%;width:70%}
 .right-nav{width:12.5vw;right:5vw;bottom:max(20px,env(safe-area-inset-bottom))}
 .index2{margin-top:-1px;position:relative;z-index:3}
}
@media(max-width:767px){#hero-firework-01{left:24.731%;top:9.483%;width:10.753%}}
@media(max-width:767px){#hero-firework-02{left:49.462%;top:9.413%;width:8.602%}}
@media(max-width:767px){#hero-firework-03{left:69.624%;top:10.262%;width:11.290%}}
@media(max-width:767px){#hero-firework-04{left:24.731%;top:16.985%;width:8.333%}}
@media(max-width:767px){#hero-firework-05{left:66.667%;top:17.693%;width:8.065%}}
@media(max-width:767px){#hero-firework-06{left:52.016%;top:51.875%;width:8.065%}}
@media(max-width:767px){#hero-firework-07{left:72.312%;top:50.248%;width:9.005%}}
@media(max-width:767px){#hero-firework-08{left:34.543%;top:54.140%;width:14.785%}}
@media(max-width:767px){#night-firework-01{left:7.392%;top:4.724%;width:9.409%}}
@media(max-width:767px){#night-firework-02{left:24.866%;top:5.984%;width:12.097%}}
@media(max-width:767px){#night-firework-03{left:63.844%;top:6.299%;width:8.737%}}
@media(max-width:767px){#night-firework-04{left:85.887%;top:4.724%;width:8.871%}}
@media(max-width:767px){#night-firework-05{left:3.360%;top:25.984%;width:12.903%}}
@media(max-width:767px){#night-firework-06{left:73.925%;top:18.898%;width:13.710%}}
@media(max-width:767px){#night-firework-07{left:63.844%;top:6.299%;width:8.737%}}

/* 依744×2048參考圖校準，座標包含各素材透明留白。 */
@media(max-width:767px){
 .hero{background:#008bc9}
 .hero>.background{display:block;inset:0 0 auto;height:auto;object-fit:contain}
 .night{background:#001458}
 .night>.background{inset:0;width:100%;height:100%;object-fit:fill}
 #hero-ttf{left:17.33871%;top:20.72722%;width:65.32258%}
 #hero-title{left:14.24731%;top:24.75948%;width:71.23656%}
 #hero-ribbon{left:18.68280%;top:38.55405%;width:64.38172%}
 #hero-new{left:36.69355%;top:39.19072%;width:9.54301%}
 #hero-price{left:22.04301%;top:45.06225%;width:55.91398%}
 #hero-dance{left:4.30108%;top:52.13639%;width:29.16667%}
 #hero-stage{left:3.49462%;top:64.65761%;width:29.16667%}
 #hero-drum{left:52.28495%;top:53.33899%;width:49.73118%}
 #hero-open{left:31.31720%;top:56.80532%;width:20.96774%}
 #hero-dance{z-index:1}
 #hero-stage{z-index:2}
 #night-route{left:5.5%;top:8.2%;width:90%}
}

/* 紅色波浪直接覆蓋夜景；透明邊緣不露出上卡底色。 */
@media(max-width:767px){
 .hero{background:transparent}
 .night>.background{top:-6%;bottom:auto;height:106%}
 /* New! 貼近限定文字，保留原圖光暈。 */
 #hero-new{left:36.2%;top:39.54%;width:10.62%}
 /* 兩個外框共用同一中心點，綻放縮放時中心不偏移。 */
 #hero-firework-08{left:34.54301%;top:54.11656%;width:14.78495%}
 #hero-open{left:31.45161%;top:55.00801%;width:20.96774%}
 #hero-firework-08 img{transform-origin:50% 50%}
}

/* 參考主視覺：大開催後方使用01款煙火，兩者等中心放大。 */
@media(max-width:767px){
 #hero-new{top:39.26%}
 #hero-firework-08{left:32.86290%;top:54.15570%;width:18.14516%}
 #hero-open{left:30.51075%;top:55.60810%;width:22.84946%}
}
