/* 新春派對 官方網站 */
:root {
  --bg: #12030a; --bg2: #1d0610; --panel: #2a0a14; --ink: #fff6e6; --muted: #e6c9a8;
  --gold: #ffd54f; --gold2: #ff9f1c; --red: #e0262b; --red2: #8e0f14; --line: rgba(255, 213, 79, .35);
  --serif: "Noto Serif TC", "PingFang TC", serif; --sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; font-family: var(--sans); background: var(--bg); color: var(--ink); line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; }
.wrap { width: min(1180px, 100% - 32px); margin: 0 auto; }
.wrap.narrow { width: min(820px, 100% - 32px); }
.gold { background: linear-gradient(180deg, #fff3b0, var(--gold) 45%, var(--gold2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* 按鈕 */
.btn-gold, .btn-ghost { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 900; border-radius: 999px; padding: 11px 22px; white-space: nowrap; transition: transform .15s, box-shadow .15s; }
.btn-gold { color: #5a1a00; background: linear-gradient(180deg, #fff1a8, var(--gold) 40%, var(--gold2)); box-shadow: 0 4px 0 #a5500a, 0 8px 24px rgba(255, 159, 28, .45), inset 0 1px 0 #fff; }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 6px 0 #a5500a, 0 12px 30px rgba(255, 159, 28, .6), inset 0 1px 0 #fff; }
.btn-ghost { color: var(--ink); background: rgba(255, 255, 255, .06); border: 2px solid var(--line); }
.btn-ghost:hover { background: rgba(255, 213, 79, .12); }
.big { font-size: 19px; padding: 15px 30px; }
.pill { display: inline-block; font-size: 14px; font-weight: 800; padding: 5px 14px; border-radius: 999px; background: rgba(255, 213, 79, .14); border: 1px solid var(--line); color: var(--gold); }
.pill.red { background: rgba(224, 38, 43, .2); border-color: rgba(255, 82, 82, .6); color: #ffb4a8; }

/* 導覽列 */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; gap: 20px; padding: 10px max(16px, calc(50% - 590px)); padding-top: calc(10px + env(safe-area-inset-top)); transition: background .25s, box-shadow .25s; }
.nav.solid { background: rgba(18, 3, 10, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 2px 0 var(--line); }
.nav-logo img { height: 46px; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .6)); }
.nav-links { display: flex; gap: 22px; margin-left: auto; font-weight: 700; font-size: 15px; }
.nav-links a { opacity: .88; position: relative; }
.nav-links a:hover { opacity: 1; color: var(--gold); }
.nav-cta { margin-left: 4px; }
.nav-burger { display: none; width: 42px; height: 42px; background: rgba(255, 255, 255, .08); border-radius: 12px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-burger i { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; }

/* 首屏 */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 110px 0 80px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: url(../img/bg/home.jpg) center/cover; transform: scale(1.05); }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 70% 40%, rgba(255, 140, 0, .18), transparent 55%), linear-gradient(90deg, rgba(18, 3, 10, .92) 0%, rgba(18, 3, 10, .65) 50%, rgba(18, 3, 10, .35) 100%), linear-gradient(0deg, var(--bg) 0%, transparent 30%); }
.coins { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.coins img { position: absolute; top: -60px; animation: fall linear infinite; opacity: .9; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .5)); }
@keyframes fall { to { transform: translateY(115vh) rotate(540deg); } }
.hero-in { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero-logo { width: min(460px, 90%); margin: 14px 0 6px; filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .6)); }
.hero h1 { font-family: var(--serif); font-size: clamp(36px, 5.4vw, 64px); line-height: 1.15; margin: 0 0 14px; text-shadow: 0 4px 18px rgba(0, 0, 0, .6); }
.lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--muted); margin: 0 0 26px; }
.lead b { color: var(--ink); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.badges { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-weight: 700; color: var(--muted); font-size: 15px; }
.hero-phones { position: relative; height: 620px; }
.phone { border-radius: 30px; overflow: hidden; background: #000; box-shadow: 0 0 0 7px #161616, 0 0 0 9px #c9a227, 0 30px 60px rgba(0, 0, 0, .6); aspect-ratio: 390 / 844; }
.phone img { width: 100%; height: 100%; object-fit: cover; }
.hero-phones .phone { position: absolute; width: 250px; }
.hero-phones .p1 { left: 50%; top: 10px; transform: translateX(-50%); z-index: 3; width: 270px; animation: float 6s ease-in-out infinite; }
.hero-phones .p2 { left: 2%; top: 90px; transform: rotate(-9deg); z-index: 2; opacity: .95; animation: float 7s ease-in-out -2s infinite; }
.hero-phones .p3 { right: 2%; top: 90px; transform: rotate(9deg); z-index: 2; opacity: .95; animation: float 7s ease-in-out -4s infinite; }
@keyframes float { 50% { translate: 0 -12px; } }
.hero-mascot { position: absolute; right: -10px; bottom: -10px; width: 190px; z-index: 4; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .6)); animation: float 4s ease-in-out infinite; }
.scroll-hint { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); font-size: 14px; color: var(--muted); animation: float 2s ease-in-out infinite; }

/* 數字 */
.stats { background: linear-gradient(90deg, var(--red2), #b3161c, var(--red2)); border-block: 2px solid var(--gold); box-shadow: 0 0 40px rgba(224, 38, 43, .35); }
.stats-in { display: grid; grid-template-columns: repeat(5, 1fr); text-align: center; padding: 22px 0; }
.stats b { display: block; font-family: var(--serif); font-size: clamp(30px, 4vw, 46px); line-height: 1.1; color: var(--gold); text-shadow: 0 3px 0 #5a0a00; }
.stats span { font-size: 14px; font-weight: 700; color: #ffe4c4; }

/* 區塊 */
.sec { padding: 96px 0; position: relative; }
.sec.dark { background: radial-gradient(ellipse at top, #2c0913, var(--bg2) 60%); border-block: 1px solid rgba(255, 213, 79, .12); }
.h2 { font-family: var(--serif); font-size: clamp(28px, 4vw, 44px); text-align: center; margin: 0 0 10px; line-height: 1.25; }
.h2 small { display: block; font-family: var(--sans); font-size: 13px; letter-spacing: 4px; color: var(--gold2); font-weight: 900; margin-bottom: 6px; }
.h2.left, .sub.left { text-align: left; }
.sub { text-align: center; color: var(--muted); max-width: 720px; margin: 0 auto 44px; font-size: 17px; }

/* 特色 */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.why { padding: 28px 24px; border-radius: 22px; background: linear-gradient(160deg, #35101b, #1f0710); border: 1px solid var(--line); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); transition: transform .2s, box-shadow .2s; }
.why:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(0, 0, 0, .45), 0 0 0 1px var(--gold); }
.why img, .why-ic { width: 64px; height: 64px; font-size: 46px; line-height: 64px; display: block; margin-bottom: 12px; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .4)); }
.why h3 { margin: 0 0 8px; font-size: 21px; color: var(--gold); }
.why p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* 遊戲列表 */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 26px; }
.tabs button { padding: 9px 18px; border-radius: 999px; background: rgba(255, 255, 255, .06); color: var(--ink); border: 1px solid var(--line); font-weight: 800; }
.tabs button small { margin-left: 6px; font-size: 12px; padding: 0 7px; border-radius: 999px; background: rgba(0, 0, 0, .35); }
.tabs button.on { background: linear-gradient(180deg, #fff1a8, var(--gold) 40%, var(--gold2)); color: #5a1a00; }
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.game { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 20px; background: linear-gradient(180deg, #3a111c, #230812); border: 1px solid rgba(255, 213, 79, .2); transition: transform .2s, border-color .2s, box-shadow .2s; }
.game:hover { transform: translateY(-5px) scale(1.02); border-color: var(--gold); box-shadow: 0 14px 30px rgba(0, 0, 0, .5), 0 0 24px rgba(255, 213, 79, .25); }
.game img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 16px; background: radial-gradient(circle, rgba(255, 213, 79, .18), transparent 70%); }
.game b { font-size: 17px; margin-top: 4px; }
.game small { color: var(--muted); font-size: 13px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.game .meta { font-size: 12px; font-weight: 800; color: var(--gold); margin-top: auto; }
.hot { position: absolute; top: 10px; right: 10px; z-index: 1; font-size: 12px; font-weight: 900; padding: 2px 9px; border-radius: 999px; background: linear-gradient(180deg, #ff5a4f, var(--red)); box-shadow: 0 2px 8px rgba(224, 38, 43, .6); }
.showcase { display: grid; grid-template-columns: repeat(8, 1fr); gap: 14px; margin-top: 50px; }
.showcase figure { margin: 0; text-align: center; }
.showcase img { border-radius: 18px; aspect-ratio: 390 / 844; object-fit: cover; box-shadow: 0 0 0 4px #161616, 0 0 0 5px #c9a227, 0 14px 28px rgba(0, 0, 0, .5); }
.showcase figcaption { margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--muted); }

/* 連線步驟 */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-bottom: 70px; }
.step { position: relative; text-align: center; }
.step .num { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); z-index: 2; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-size: 22px; color: #5a1a00; background: linear-gradient(180deg, #fff1a8, var(--gold) 40%, var(--gold2)); box-shadow: 0 4px 12px rgba(0, 0, 0, .5); }
.step .shot { border-radius: 24px; overflow: hidden; box-shadow: 0 0 0 5px #161616, 0 0 0 7px #c9a227, 0 18px 34px rgba(0, 0, 0, .5); aspect-ratio: 390 / 600; }
.step .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.step h3 { margin: 18px 0 4px; font-size: 20px; color: var(--gold); }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

/* 功能左右圖文 */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; margin: 60px 0; }
.feature.rev .f-shots { order: 2; }
.f-shots { display: flex; justify-content: center; gap: 22px; }
.phone.sm { width: min(230px, 44%); }
.f-shots .phone:nth-child(2) { margin-top: 50px; }
.f-copy h3 { font-family: var(--serif); font-size: clamp(24px, 3vw, 34px); line-height: 1.3; margin: 14px 0 16px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 34px; color: var(--muted); font-size: 16.5px; }
.ticks li::before { content: '✓'; position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 900; color: #5a1a00; background: var(--gold); }
.ticks b { color: var(--ink); }

/* 單機 */
.booths { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-bottom: 44px; }
.booth { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 18px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 213, 79, .2); }
.booth img { width: 76px; height: 76px; object-fit: contain; flex: none; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .5)); }
.booth b { display: block; font-size: 17px; }
.booth .tag { display: inline-block; font-size: 11px; font-weight: 800; padding: 1px 8px; border-radius: 999px; background: #c62828; margin: 2px 0 4px; }
.booth .tag.lucky { background: #6a1b9a; }
.booth small { display: block; color: var(--muted); font-size: 13px; line-height: 1.45; }
.strip { display: grid; grid-template-columns: repeat(9, 1fr); gap: 12px; }
.strip img { border-radius: 16px; aspect-ratio: 390 / 844; object-fit: cover; box-shadow: 0 0 0 3px #161616, 0 0 0 4px #c9a227, 0 10px 20px rgba(0, 0, 0, .5); }

/* 我的家 */
.home-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.home-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.home-points div { padding: 18px; border-radius: 18px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 213, 79, .2); text-align: center; }
.home-points span { font-size: 36px; }
.home-points b { display: block; font-size: 18px; color: var(--gold); margin: 4px 0; }
.home-points p { margin: 0; color: var(--muted); font-size: 14px; }
.ranks { margin-top: 40px; padding: 20px; border-radius: 22px; background: linear-gradient(90deg, #2a0a14, #3d1a0a, #2a0a14); border: 1px solid var(--line); text-align: center; }
.ranks-t { display: block; color: var(--gold); margin-bottom: 12px; font-size: 18px; }
.ranks-row { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; }
.rank { display: flex; flex-direction: column; align-items: center; min-width: 92px; padding: 8px 6px; border-radius: 14px; background: rgba(0, 0, 0, .25); }
.rank span { font-size: 30px; } .rank b { font-size: 14px; } .rank small { font-size: 11px; color: var(--muted); }
.arrow { font-style: normal; color: var(--gold); font-size: 22px; }

/* 更多 */
.more-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 30px; }
.more { padding: 18px; border-radius: 24px; background: linear-gradient(160deg, #35101b, #1f0710); border: 1px solid var(--line); }
.more img { border-radius: 18px; aspect-ratio: 390 / 520; object-fit: cover; object-position: top; margin-bottom: 14px; box-shadow: 0 10px 24px rgba(0, 0, 0, .45); }
.more h3 { margin: 0 0 6px; color: var(--gold); font-size: 21px; }
.more p { margin: 0; color: var(--muted); font-size: 15px; }

/* 影片 */
.video-in { display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: center; }
.video-box { justify-self: center; width: min(360px, 100%); border-radius: 28px; overflow: hidden; box-shadow: 0 0 0 7px #161616, 0 0 0 9px #c9a227, 0 30px 60px rgba(0, 0, 0, .6); }
.video-box video { width: 100%; aspect-ratio: 9 / 16; display: block; background: #000; }

/* FAQ */
details { margin-bottom: 12px; border-radius: 16px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 213, 79, .22); overflow: hidden; }
summary { cursor: pointer; padding: 18px 22px; font-weight: 800; font-size: 17px; list-style: none; position: relative; padding-right: 52px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 24px; color: var(--gold); transition: transform .2s; }
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { margin: 0; padding: 0 22px 18px; color: var(--muted); }

/* 開始 */
.start { background: radial-gradient(ellipse at center, #5a0d12, var(--bg) 70%); }
.start-in { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: center; }
.start-mascot { width: 300px; filter: drop-shadow(0 16px 30px rgba(0, 0, 0, .6)); animation: float 4s ease-in-out infinite; }
.howto { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0 0 26px; }
.howto div { padding: 16px 18px; border-radius: 16px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); }
.howto b { color: var(--gold); font-size: 17px; } .howto p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.k { display: inline-block; padding: 0 6px; border-radius: 6px; background: rgba(255, 255, 255, .15); }

/* 頁尾 */
.foot { padding: 50px 0 120px; background: #0b0206; border-top: 1px solid var(--line); text-align: center; }
.foot-logo { height: 70px; margin: 0 auto 16px; opacity: .9; }
.foot-note { max-width: 820px; margin: 0 auto 14px; font-size: 13px; color: #b89a86; line-height: 1.8; }
.foot-links a { color: var(--gold); }
.foot-copy { font-size: 12px; color: #8a6f60; }
.sticky-cta { display: none; }
.ios-tip { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, .7); display: grid; place-items: center; padding: 16px; }
.ios-tip[hidden] { display: none; }
.ios-box { width: min(420px, 100%); padding: 24px; border-radius: 22px; background: #2a0a14; border: 2px solid var(--gold); text-align: center; display: grid; gap: 12px; }
.ios-box b { font-size: 20px; color: var(--gold); } .ios-box p { margin: 0; color: var(--muted); line-height: 1.8; }

/* 捲動淡入 */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } .coins, .hero-phones .phone, .hero-mascot { animation: none !important; } }

/* 平板 */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; margin-left: auto; }
  .nav.open .nav-links { display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: rgba(18, 3, 10, .97); border-bottom: 2px solid var(--line); }
  .nav.open .nav-links a { padding: 14px 20px; border-top: 1px solid rgba(255, 213, 79, .12); }
  .why-grid, .more-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
  .showcase { grid-template-columns: repeat(4, 1fr); }
  .strip { grid-template-columns: repeat(5, 1fr); } .strip img:nth-child(n+6) { display: none; }
  .home-grid, .home-points { grid-template-columns: repeat(2, 1fr); }
}
/* 手機 */
@media (max-width: 760px) {
  .nav-cta { display: none; }
  .nav-logo img { height: 38px; }
  .hero { padding: 92px 0 60px; min-height: auto; }
  .hero-in { grid-template-columns: 1fr; text-align: center; gap: 20px; }
  .hero-logo { margin: 12px auto 4px; width: 78%; }
  .hero-cta, .badges { justify-content: center; }
  .hero-phones { height: 430px; }
  .hero-phones .phone { width: 170px; } .hero-phones .p1 { width: 190px; }
  .hero-phones .p2 { left: 0; top: 60px; } .hero-phones .p3 { right: 0; top: 60px; }
  .hero-mascot { width: 120px; right: -6px; }
  .big { font-size: 17px; padding: 13px 22px; }
  .stats-in { grid-template-columns: repeat(3, 1fr); row-gap: 14px; }
  .stats-in div:nth-child(n+4) { grid-column: span 1; }
  .sec { padding: 64px 0; }
  .sub { margin-bottom: 30px; font-size: 16px; }
  .why-grid, .more-grid { grid-template-columns: 1fr; }
  .game-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .game { padding: 10px; } .game b { font-size: 15px; }
  .showcase { grid-template-columns: repeat(2, 1fr); }
  .feature, .feature.rev { grid-template-columns: 1fr; gap: 24px; margin: 44px 0; }
  .feature.rev .f-shots { order: 0; }
  .strip { grid-template-columns: repeat(3, 1fr); } .strip img:nth-child(n+4) { display: block; } .strip img:nth-child(n+7) { display: none; }
  .home-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .ranks .arrow { display: none; } .rank { min-width: 30%; }
  .video-in, .start-in { grid-template-columns: 1fr; text-align: center; }
  .h2.left, .sub.left { text-align: center; }
  .start-mascot { width: 180px; margin: 0 auto; }
  .howto { grid-template-columns: 1fr; text-align: left; }
  .start .hero-cta, .video-copy .btn-gold { justify-content: center; }
  .sticky-cta { display: flex; position: fixed; left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 60; justify-content: center; font-weight: 900; font-size: 18px; padding: 14px; border-radius: 999px; color: #5a1a00; background: linear-gradient(180deg, #fff1a8, var(--gold) 40%, var(--gold2)); box-shadow: 0 4px 0 #a5500a, 0 10px 30px rgba(0, 0, 0, .6); }
}
.sub.left { margin-left: 0; margin-right: 0; }
.more-btn { text-align: center; margin-top: 18px; }
.more-btn [hidden] { display: none; }
@media (max-width: 760px) { .showcase figure:nth-child(n+5) { display: none; } }

.home-feat { margin-top: 44px; }
.sub .gold { font-weight: 900; white-space: nowrap; }
/* 圖片還沒載入前就先佔好位置，避免點導覽列捲到一半版面被撐開、停錯地方 */
.showcase img, .strip img, .more img { width: 100%; height: auto; display: block; }
.emo-art { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; width: 100%; font-size: 64px; background: radial-gradient(circle, #fff3e0, #ffcc80); border-radius: 14px; }
.booth .emo-art { width: 76px; height: 76px; flex: none; font-size: 44px; }
