/* YENZ V2D 官網 v3
   顏色、字、按鈕照 V2D 大廳「晴空」皮膚（E:\yenz-v2d\live\lobby.css 的變數）。
   架構學 Live2D 首頁：滿版角色大圖＋大標題 → 消息卡 → 一個功能一段、一段一個顏色 → 手冊入口。 */
:root {
  --ink: #26355d; --ink2: #5b6b93; --ink3: #8a97b8;
  --sky: linear-gradient(180deg, #4fb8ff 0%, #8fd8ff 38%, #d6f3ff 72%, #fff4d6 100%);
  --go: linear-gradient(100deg, #ff5f8f 0%, #ff8a3d 100%);
  --blue: #2f86d6; --blue2: #58a6ff; --pink: #ff6f91; --sun: #ffd447; --orange: #ff9a3d; --mint: #23c9a6; --violet: #8a7bff;
  --card-sh: 0 14px 34px rgba(40, 90, 160, .16);
  --font: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  --num: "Fredoka", "Noto Sans TC", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; font: 500 17px/1.8 var(--font); color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
.wrap { width: min(1240px, 100% - 64px); margin-inline: auto; position: relative; }

/* ───── 導覽列 ───── */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); box-shadow: 0 2px 16px rgba(40,90,160,.12); }
.nav-in { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { font: 700 24px/1 var(--num); letter-spacing: .06em; color: #2f9bf0; white-space: nowrap; }
.brand span { display: inline-block; margin-left: 8px; padding: 3px 9px 4px; border-radius: 8px; background: #2f9bf0; color: #fff; font-size: 13px; letter-spacing: .12em; vertical-align: 3px; }
.nav-links { display: flex; gap: 2px; flex: 1; }
.nav-links a { padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: 16px; white-space: nowrap; }
.nav-links a:hover { background: #eef6ff; color: var(--blue); }
.lang { display: flex; padding: 3px; border-radius: 999px; background: #eef6ff; font: 600 14px var(--num); }
.lang a, .lang span { padding: 4px 13px; border-radius: 999px; color: var(--ink2); }
.lang .on { background: #fff; color: var(--blue); box-shadow: 0 2px 6px rgba(40,90,160,.22); }
.lang .off { opacity: .4; cursor: default; }
.nav .mini { padding: 9px 20px; border-radius: 999px; background: var(--go); color: #fff; font-weight: 700; font-size: 15px; box-shadow: 0 4px 0 #d9456f; white-space: nowrap; }

/* ───── 共用的小零件 ───── */
.tag { display: inline-block; padding: 4px 16px 5px; border-radius: 10px 4px 10px 4px; transform: skewX(-8deg); color: #fff; font: 700 14px/1.5 var(--num); letter-spacing: .2em; box-shadow: 0 6px 14px rgba(40,90,160,.2); }
.tag > span { display: inline-block; transform: skewX(8deg); }
.tag.blue { background: linear-gradient(90deg, #58a6ff, #6fd0ff); }
.tag.pink { background: linear-gradient(90deg, #ff8fb0, #ff6f91); }
.tag.orange { background: linear-gradient(90deg, #ffb52e, #ff8a3d); }
.tag.mint { background: linear-gradient(90deg, #23c9a6, #5fe0c2); }
.tag.white { background: #fff; color: var(--violet); }
.tag.green { background: linear-gradient(90deg, #1f8f72, #2fb08c); }
h2 { font-weight: 900; font-size: clamp(32px, 3.5vw, 50px); line-height: 1.28; letter-spacing: .01em; margin: 18px 0 16px; }
h2 em { font-style: normal; background: linear-gradient(transparent 62%, rgba(255,212,71,.75) 62%); }
.lede { font-size: 19px; color: var(--ink2); font-weight: 500; max-width: 30em; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 26px 0 0; }
.chips li { padding: 5px 16px; border-radius: 999px; background: #fff; border: 2px solid #d3e8ff; color: var(--blue); font-weight: 700; font-size: 15px; }
.spark { position: absolute; width: 44px; height: 44px; pointer-events: none; background: #fff; clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); filter: drop-shadow(0 0 10px rgba(255,255,255,.9)); }
.dots { position: absolute; width: 300px; height: 220px; background: radial-gradient(circle, rgba(255,255,255,.85) 3px, transparent 3.5px) 0 0 / 26px 26px; pointer-events: none; }
.stripes::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(112deg, rgba(255,255,255,.14) 0 70px, transparent 70px 190px); }
.ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; flex: none; color: #fff; box-shadow: 0 5px 0 rgba(0,0,0,.12); }
.ico svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* 一段一段疊上去的大區塊 */
.band { position: relative; z-index: 1; padding: 120px 0 170px; margin-top: -60px; border-radius: 60px 60px 0 0; overflow: hidden; }
.band:first-of-type { margin-top: 0; }

/* ───── 首屏 ───── */
.hero { position: relative; overflow: hidden; background: var(--sky); min-height: 800px; }
.hero .rays { position: absolute; inset: 0; background: repeating-linear-gradient(112deg, rgba(255,255,255,.14) 0 70px, transparent 70px 190px); -webkit-mask: linear-gradient(90deg, transparent 28%, #000 78%); mask: linear-gradient(90deg, transparent 28%, #000 78%); }
.hero .sun { position: absolute; right: -180px; top: -240px; width: 760px; height: 760px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.75), rgba(255,255,255,0) 68%); }
.cloud { position: absolute; fill: #fff; filter: drop-shadow(0 10px 18px rgba(60,130,210,.14)); }
.hero-in { display: grid; grid-template-columns: 1fr 1fr; min-height: 800px; }
.hero-text { align-self: center; padding: 20px 0 150px; position: relative; z-index: 3; }
.tagchip { display: inline-flex; align-items: center; gap: 10px; padding: 7px 18px 7px 14px; border-radius: 999px; background: #fff; color: var(--blue); font-weight: 700; font-size: 15px; box-shadow: 0 6px 18px rgba(40,90,160,.2); }
.tagchip i { width: 10px; height: 10px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 4px rgba(255,212,71,.35); }
h1 { margin: 22px 0 22px; font-weight: 900; font-size: clamp(46px, 6vw, 92px); line-height: 1.14; letter-spacing: .01em; color: #fff; text-shadow: 0 4px 0 rgba(30,110,200,.35), 0 12px 32px rgba(30,100,190,.35); white-space: nowrap; }
h1 em { font-style: normal; color: #fff7c2; }
.hero .lead { margin: 0 0 34px; font-size: 21px; font-weight: 700; line-height: 1.8; color: #fff; text-shadow: 0 2px 8px rgba(30,100,190,.5); max-width: 22em; }
.cta { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.go { display: inline-flex; align-items: center; gap: 16px; padding: 16px 34px 16px 18px; border-radius: 30px; border: 3px solid #fff; background: var(--go); color: #fff; font-weight: 900; font-size: 24px; line-height: 1.2; box-shadow: 0 8px 0 #d9456f, 0 20px 30px rgba(255,95,143,.42); text-shadow: 0 3px 0 rgba(190,50,90,.45); position: relative; overflow: hidden; }
.go::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(112deg, rgba(255,255,255,.16) 0 22px, transparent 22px 60px); }
.go b { width: 46px; height: 46px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--pink); font-size: 20px; text-shadow: none; position: relative; z-index: 1; padding-left: 4px; }
.go span { position: relative; z-index: 1; }
.go small { display: block; font: 600 12px/1 var(--num); letter-spacing: .22em; opacity: .95; margin-top: 6px; text-shadow: none; }
.ghost { padding: 15px 28px; border-radius: 999px; background: rgba(255,255,255,.92); border: 2px solid #fff; color: var(--blue); font-weight: 700; font-size: 18px; box-shadow: 0 8px 20px rgba(40,90,160,.2); }
.hero-art { position: relative; }
.hero-art .floor { position: absolute; left: 50%; bottom: 20px; width: 640px; height: 150px; transform: translateX(-50%); border: 6px solid #ffd447; border-radius: 50%; box-shadow: 0 0 30px rgba(255,212,71,.6); }
.hero-art .rana { position: absolute; left: 50%; bottom: -170px; width: 1440px; max-width: none; transform: translateX(-50%); filter: drop-shadow(0 18px 26px rgba(40,90,160,.25)); animation: bob 6s ease-in-out infinite; }
.bubble { position: absolute; left: -30px; top: 170px; z-index: 3; background: #fff; border-radius: 22px 22px 22px 6px; padding: 12px 22px 13px; font-weight: 700; font-size: 18px; line-height: 1.5; box-shadow: 0 10px 24px rgba(40,90,160,.2); }
.bubble small { display: block; font-weight: 500; color: var(--ink2); font-size: 13.5px; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes twinkle { 0%, 100% { scale: 1; opacity: 1; } 50% { scale: .7; opacity: .6; } }
.spark { animation: twinkle 3.2s ease-in-out infinite; }

/* 消息卡 */
.newsrow { z-index: 5; margin-top: -92px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ncard { background: #fff; border-radius: 22px; padding: 20px 24px 22px; box-shadow: 0 12px 30px rgba(40,90,160,.2); border: 2px solid #fff; display: block; transition: translate .2s; }
.ncard:hover { translate: 0 -4px; }
.ncard time { font: 600 14px var(--num); color: var(--ink2); letter-spacing: .06em; }
.ncard .t { display: inline-block; margin-left: 8px; padding: 1px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: #fff; }
.ncard p { margin-top: 8px; font-weight: 700; line-height: 1.55; }
.t1 { background: var(--pink); } .t2 { background: var(--blue2); } .t3 { background: var(--mint); }
.newsmore { text-align: right; margin-top: 14px; font-weight: 700; color: var(--blue); font-size: 15px; }

/* ───── A 直播間 ───── */
.b-room { background: #fff; padding-top: 110px; margin-top: 0; border-radius: 0; }
.b-room::before { content: ""; position: absolute; right: -120px; top: 180px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, #e9f6ff, rgba(233,246,255,0) 70%); }
.split { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; }
.split.rev { grid-template-columns: 7fr 5fr; }
.split.half { grid-template-columns: 1fr 1fr; }
.split.wide-r { grid-template-columns: 4.3fr 7.7fr; gap: 20px; }
.split + .split { margin-top: 110px; }
.win { position: relative; border-radius: 26px; border: 8px solid #fff; background: #fff; box-shadow: 0 30px 60px -18px rgba(40,90,160,.42), 0 0 0 1px rgba(40,90,160,.08); }
.win img { border-radius: 18px; width: 100%; }
.win.tilt { transform: rotate(1.6deg); }
.float { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 10px; padding: 9px 18px; border-radius: 999px; background: #fff; font-weight: 700; font-size: 15px; box-shadow: 0 12px 26px rgba(40,90,160,.26); white-space: nowrap; }
.float i { width: 12px; height: 12px; border-radius: 50%; }
h3.big { font-weight: 900; font-size: clamp(26px, 2.5vw, 36px); line-height: 1.35; margin: 16px 0 14px; }
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.steps li { display: flex; gap: 16px; align-items: center; font-weight: 700; }
.steps b { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none; background: linear-gradient(135deg, #58a6ff, #6fd0ff); color: #fff; font: 700 18px var(--num); box-shadow: 0 4px 0 #3b84d8; }
/* 疊在遊戲上的示意 */
.stream { position: relative; border-radius: 26px; overflow: hidden; aspect-ratio: 16 / 9; box-shadow: 0 30px 60px -18px rgba(30,40,90,.55); border: 8px solid #fff;
  background:
    radial-gradient(60% 55% at 78% 18%, rgba(255,170,120,.55), transparent 70%),
    radial-gradient(50% 50% at 14% 86%, rgba(90,110,255,.5), transparent 70%),
    linear-gradient(160deg, #2b2f6b 0%, #4a3f8f 45%, #8a4f9c 100%); }
.stream::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px) 0 0 / 100% 46px, linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px) 0 0 / 46px 100%; }
.stream .gamelabel { position: absolute; left: 80%; top: 44%; transform: translate(-50%, -50%); white-space: nowrap; text-align: center; color: rgba(255,255,255,.5); font-weight: 900; font-size: 24px; letter-spacing: .2em; line-height: 1.5; }
.stream .gamelabel small { display: block; font: 600 13px var(--num); letter-spacing: .4em; }
.stream img { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ───── B 表情 ───── */
.b-face { background: linear-gradient(135deg, #ffe0ea 0%, #fff0d8 100%); }
.b-face .dots { background-image: radial-gradient(circle, rgba(255,111,145,.3) 3px, transparent 3.5px); right: 40px; top: 70px; }
.head-center { text-align: center; }
.head-center .lede { margin-inline: auto; }
.faces { display: grid; grid-template-columns: repeat(4, 1fr); gap: 96px 34px; margin: 120px 0 0; padding: 0 10px; }
.face { text-align: center; position: relative; margin: 0; }
.face:nth-child(even) { translate: 0 30px; }
/* 圓底＋角色從上面探出來：頭頂的特效（燈泡、烏雲）露在圓的外面 */
.face .pic { position: relative; aspect-ratio: 1; }
.face .bg { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 16px 30px rgba(255,111,145,.28); }
.face .in { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; }
.face .in img { position: absolute; max-width: none; width: 168%; left: -34%; top: -26.6%; }
.face .ring { position: absolute; inset: 0; border-radius: 50%; border: 6px solid #fff; }
.face .up { position: absolute; left: -15%; right: -15%; top: -30%; height: 80%; overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent), linear-gradient(to bottom, transparent, #000 16%); -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent), linear-gradient(to bottom, transparent, #000 16%); mask-composite: intersect; }
.face .up img { position: absolute; max-width: none; width: 129.2%; left: -14.6%; top: 4.25%; }
.face kbd { position: absolute; left: 3%; bottom: 3%; z-index: 2; min-width: 50px; height: 50px; padding: 0 12px; border-radius: 15px; background: #fff; border: 2px solid #ffd1dc; box-shadow: 0 5px 0 #ffb6c8; display: grid; place-items: center; font: 700 22px var(--num); color: var(--pink); text-transform: uppercase; }
.face b { display: inline-block; margin-top: 18px; padding: 4px 22px; border-radius: 999px; background: #fff; font-weight: 900; font-size: 19px; box-shadow: 0 6px 14px rgba(255,111,145,.2); }
.f1 { background: linear-gradient(160deg, #ffc2d4, #ffe9f0); } .f2 { background: linear-gradient(160deg, #ffe08a, #fff6d6); } .f3 { background: linear-gradient(160deg, #a9d8ff, #e6f4ff); } .f4 { background: linear-gradient(160deg, #ffd0b0, #fff0e2); }
.f5 { background: linear-gradient(160deg, #ffb3a8, #ffe6e0); } .f6 { background: linear-gradient(160deg, #c9c2ff, #efedff); } .f7 { background: linear-gradient(160deg, #b9c6ee, #e9eefc); } .f8 { background: linear-gradient(160deg, #a8ecd8, #e6fbf4); }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 90px; }
.note { display: flex; gap: 18px; align-items: center; background: rgba(255,255,255,.86); border: 2px solid #fff; border-radius: 22px; padding: 20px 24px; box-shadow: 0 10px 24px rgba(255,111,145,.16); }
.note h4 { margin: 0; font-weight: 900; font-size: 19px; }
.note p { color: var(--ink2); font-size: 15.5px; line-height: 1.6; }

/* ───── C 手機 ───── */
.b-phone { background: linear-gradient(120deg, #7f6dff 0%, #5c9dff 52%, #58d6c6 100%); color: #fff; }
.b-phone h2, .b-phone h3 { text-shadow: 0 3px 0 rgba(40,40,140,.25); }
.b-phone .lede { color: rgba(255,255,255,.95); font-weight: 700; }
.promises { display: grid; gap: 14px; margin-top: 30px; }
.promise { display: flex; gap: 16px; align-items: center; background: rgba(255,255,255,.94); color: var(--ink); border-radius: 20px; padding: 14px 20px; font-weight: 900; font-size: 18px; box-shadow: 0 10px 24px rgba(40,40,140,.2); }
.promise small { display: block; font-weight: 500; font-size: 14.5px; color: var(--ink2); line-height: 1.5; }
.b-phone .chips li { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.7); color: #fff; }
.phones { position: relative; height: 640px; }
.phone { position: absolute; background: #171d3a; border-radius: 46px; padding: 12px; box-shadow: 0 34px 60px -14px rgba(20,20,90,.6), inset 0 0 0 2px rgba(255,255,255,.14); }
.phone img { border-radius: 35px; width: 100%; }
.phone.p1 { width: 300px; right: 60px; top: 0; transform: rotate(4deg); z-index: 2; }
.phone.p2 { width: 560px; left: -20px; bottom: 10px; transform: rotate(-5deg); border-radius: 40px; }
.phone.p2 img { border-radius: 29px; }

/* ───── D 聊天室・字幕 ───── */
.b-talk { background: linear-gradient(180deg, #eafaf5 0%, #cdf3e6 100%); }
.cards2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 54px; }
.fcard { background: #fff; border-radius: 30px; border: 2px solid #fff; box-shadow: var(--card-sh); overflow: hidden; display: flex; flex-direction: column; }
.fcard .vis { position: relative; aspect-ratio: 16 / 9.2; overflow: hidden; }
.fcard .txt { padding: 26px 30px 30px; }
.fcard h3 { font-weight: 900; font-size: 26px; line-height: 1.4; margin-bottom: 8px; }
.fcard p { color: var(--ink2); }
.fcard .mini { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; list-style: none; padding: 0; }
.fcard .mini li { padding: 2px 14px; border-radius: 999px; background: #eafaf5; color: #128c72; font-weight: 700; font-size: 14px; }
.vis.sky { background: linear-gradient(180deg, #4fb8ff, #a8e1ff 60%, #e3f6ff); }
.vis.forest { background: radial-gradient(60% 50% at 22% 18%, rgba(255,255,236,.9), rgba(255,255,236,0) 70%), radial-gradient(42% 36% at 80% 28%, rgba(218,247,229,.85), rgba(218,247,229,0) 70%), linear-gradient(180deg, #c3e8d2 0%, #72c1a0 48%, #2d7d67 100%); }
.vis .cut { position: absolute; max-width: none; }
.vis .cutbox { position: absolute; overflow: hidden; }
.vis .cutbox img { position: absolute; left: 0; bottom: 0; width: 100%; max-width: none; }

/* ───── E 梟子 ───── */
.b-crowd { background: linear-gradient(180deg, #d5eee2 0%, #a9d8c3 70%, #8fc9b0 100%); padding-bottom: 34px; }
.b-crowd .tagline { color: #2a6a56; }
.b-crowd .lede { color: #3b6b5c; }
.say { display: flex; flex-wrap: wrap; gap: 12px 12px; margin-top: 28px; list-style: none; padding: 0; }
.say li { position: relative; padding: 6px 18px; border-radius: 18px 18px 18px 5px; background: #fff; font: 700 17px var(--num); color: #1f7f66; box-shadow: 0 6px 14px rgba(30,110,85,.2); }
.say li:nth-child(3n) { border-radius: 18px 18px 5px 18px; }
.seesaw { position: relative; aspect-ratio: 3.55; overflow: hidden; margin: 0 -90px 0 0; }
.seesaw img { position: absolute; max-width: none; width: 135.2%; left: -17.6%; top: -45%; }
.games { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 64px; }
.game { background: rgba(255,255,255,.9); border: 2px solid #fff; border-radius: 24px; padding: 22px 22px 24px; box-shadow: 0 12px 26px rgba(30,110,85,.18); }
.game .ico { margin-bottom: 14px; }
.game h4 { margin: 0 0 4px; font-weight: 900; font-size: 20px; }
.game p { color: #4f7568; font-size: 15px; line-height: 1.6; }
.parade { margin-top: -110px; position: relative; pointer-events: none; }
.parade img { width: 100%; }

/* ───── F 斗內・遮擋 ───── */
.b-more { background: #fff; }
.fcard.warm .txt .mini li { background: #fff3d6; color: #b57400; }
.fcard.tape { position: relative; }
.fcard.tape .mini li { background: #fff3d6; color: #8a6400; }
.vis.sunny { background: linear-gradient(180deg, #58bcff, #b6e6ff 70%, #fff1cf); }

/* ───── G 手冊入口 ───── */
.b-learn { background: #eef7ff; }
.doors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 50px; }
.door { border-radius: 30px; padding: 32px 30px 28px; color: #fff; position: relative; overflow: hidden; min-height: 270px; display: flex; flex-direction: column; box-shadow: 0 14px 30px rgba(40,90,160,.22); transition: translate .2s; }
.door:hover { translate: 0 -6px; }
.door::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(112deg, rgba(255,255,255,.13) 0 26px, transparent 26px 74px); }
.door > * { position: relative; z-index: 1; }
.d1 { background: linear-gradient(120deg, #58a6ff, #6fd0ff); } .d2 { background: linear-gradient(120deg, #ffb52e, #ff8a3d); } .d3 { background: linear-gradient(120deg, #8a7bff, #6fb1ff); }
.door .en { font: 700 13px var(--num); letter-spacing: .22em; opacity: .95; }
.door h3 { font-weight: 900; font-size: 34px; line-height: 1.3; margin: 4px 0 8px; text-shadow: 0 3px 0 rgba(0,0,0,.1); }
.door p { font-weight: 700; margin-bottom: 20px; }
.door ul { list-style: none; margin: auto 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.door li { padding: 3px 13px; border-radius: 999px; background: rgba(255,255,255,.94); color: var(--ink); font-size: 14px; font-weight: 700; }
.door .arr { position: absolute; right: 24px; top: 24px; width: 46px; height: 46px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; font-weight: 900; box-shadow: 0 4px 0 rgba(0,0,0,.12); }

/* ───── H 開發中 ───── */
.b-now { background: var(--sky); text-align: center; padding-bottom: 150px; }
.b-now h2 { color: #fff; text-shadow: 0 4px 0 rgba(30,110,200,.3), 0 10px 26px rgba(30,100,190,.3); }
.b-now p { color: #fff; font-weight: 700; font-size: 20px; text-shadow: 0 2px 8px rgba(30,100,190,.5); }
.b-now .cta { justify-content: center; margin-top: 34px; }

/* ───── 頁尾 ───── */
footer { position: relative; z-index: 2; margin-top: -60px; border-radius: 60px 60px 0 0; background: #26355d; color: #c9d4f0; padding: 70px 0 44px; font-size: 15px; }
.foot { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
footer .brand { color: #fff; } footer .brand span { background: #fff; color: #26355d; }
footer h5 { margin: 0 0 12px; color: #fff; font-size: 16px; font-weight: 900; }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
footer a:hover { color: #fff; }
.legal { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: #93a2c9; font-size: 13.5px; }

@media (prefers-reduced-motion: reduce) { .rana, .spark { animation: none !important; } }
@media (max-width: 1020px) {
  .nav-links { display: none; } .lang { margin-left: auto; }
  .hero-in { grid-template-columns: 1fr; }
  .hero-text { padding: 44px 0 0; }
  h1 { white-space: normal; }
  .hero-art { height: 480px; } .hero-art .rana { width: 900px; bottom: -120px; } .hero-art .floor { width: 400px; }
  .bubble { left: 0; top: 10px; }
  .newsrow, .doors, .cards2, .duo, .split, .split.rev, .split.half, .split.wide-r { grid-template-columns: 1fr; gap: 40px; } .newsrow { margin-top: -30px; gap: 14px; }
  .nav .mini { display: none; } .nav-in { gap: 14px; }
  .hero .c-main { display: none; } .hero .cloud { opacity: .4 !important; }
  .win.tilt { transform: none; } .float { display: none; }
  .split.rev > :first-child { order: 2; }
  .faces { grid-template-columns: repeat(2, 1fr); } .games { grid-template-columns: 1fr 1fr; }
  .phones { height: auto; aspect-ratio: 1 / 1.25; } .phone.p1 { width: 54%; right: 0; border-radius: 34px; padding: 8px; } .phone.p1 img { border-radius: 27px; } .phone.p2 { width: 88%; left: 0; bottom: 0; border-radius: 26px; padding: 7px; } .phone.p2 img { border-radius: 20px; }
  .band { padding: 90px 0 130px; border-radius: 40px 40px 0 0; margin-top: -40px; }
  .foot { grid-template-columns: 1fr 1fr; }
  .seesaw { margin: 20px 0 0; }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 36px); }
  .go { font-size: 20px; } .games { grid-template-columns: 1fr; }
}

/* 手機寬度：上面的選單改成第二排、可以左右滑（不然手機上沒有選單可以按） */
@media (max-width: 1020px) {
  .nav-in { height: auto; flex-wrap: wrap; gap: 4px 14px; padding: 12px 0 8px; }
  .nav-links { display: flex; order: 3; flex-basis: 100%; overflow-x: auto; margin: 0 -8px; scrollbar-width: none; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { padding: 6px 12px; font-size: 15px; }
  .hero .spark { display: none; }
  .article h2 { scroll-margin-top: 124px; }
}
/* 最後那一段：字不要壓到雲 */
.b-now p { max-width: 30em; margin-inline: auto; }
/* 英文版：字比較長，標題小一點、放字的那一欄寬一點 */
html[lang="en"] h1 { font-size: clamp(40px, 4.6vw, 72px); letter-spacing: -.01em; }
html[lang="en"] h2 { font-size: clamp(30px, 3.1vw, 44px); }
html[lang="en"] .hero .lead { max-width: 27em; font-size: 20px; }
html[lang="en"] .hero .c-main { left: 38%; top: 46px; width: 290px; }
html[lang="en"] .lede { max-width: 34em; }
html[lang="en"] .head-center .lede { max-width: 46em; }
html[lang="en"] .split { grid-template-columns: 6fr 7fr; gap: 48px; }
html[lang="en"] .split.rev { grid-template-columns: 7fr 6fr; }
html[lang="en"] .split.half { grid-template-columns: 1fr 1fr; }
html[lang="en"] .split.wide-r { grid-template-columns: 4.6fr 7.4fr; gap: 20px; }
html[lang="en"] .go { font-size: 21px; }
html[lang="en"] .face b { font-size: 17px; }
html[lang="en"] .door h3 { font-size: 30px; }
html[lang="en"] .promise { font-size: 17px; }
html[lang="en"] .bubble { font-size: 16.5px; }
@media (max-width: 1020px) { html[lang="en"] .split, html[lang="en"] .split.rev, html[lang="en"] .split.half, html[lang="en"] .split.wide-r { grid-template-columns: 1fr; gap: 40px; } }

/* ───── 搜尋（上面那顆按鈕＋跳出來的框。框是 assets/search.js 按了才做的） ───── */
.srch-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px 0 14px; border-radius: 999px; border: 2px solid #d3e8ff; background: #f5faff; color: var(--ink2); font: 700 15px var(--font); cursor: pointer; white-space: nowrap; transition: border-color .15s, color .15s, background .15s; }
.srch-btn:hover, .srch-btn:focus-visible { border-color: var(--blue2); color: var(--blue); background: #fff; outline: none; }
.srch-btn svg, .srch-top svg, .faq-find svg { flex: none; width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
.srch-btn kbd { font: 600 12.5px/1 var(--num); padding: 4px 8px; border-radius: 7px; background: #fff; border: 1px solid #d3e8ff; color: var(--ink3); }
.srch { position: fixed; inset: 0; z-index: 200; display: none; align-items: flex-start; justify-content: center; padding: 9vh 20px 20px; background: rgba(38,53,93,.45); backdrop-filter: blur(5px); }
.srch.on { display: flex; }
html.srch-open { overflow: hidden; }
.srch-box { width: min(720px, 100%); max-height: 78vh; display: flex; flex-direction: column; background: #fff; border-radius: 26px; box-shadow: 0 30px 80px rgba(20,50,110,.42); overflow: hidden; }
.srch-top { display: flex; align-items: center; gap: 12px; padding: 16px 16px 16px 22px; border-bottom: 2px solid #eef4fb; color: var(--blue); }
.srch-top svg { width: 24px; height: 24px; }
.srch-top input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: 700 20px/1.6 var(--font); color: var(--ink); -webkit-appearance: none; appearance: none; }
.srch-top input::placeholder { color: var(--ink3); font-weight: 500; }
.srch-top input::-webkit-search-cancel-button { display: none; }
.srch-x { flex: none; border: 2px solid #d3e8ff; background: #f5faff; color: var(--ink2); font: 600 13px/1 var(--num); padding: 8px 12px; border-radius: 10px; cursor: pointer; }
.srch-x:hover { border-color: var(--blue2); color: var(--blue); }
.srch-list { overflow: auto; padding: 10px; overscroll-behavior: contain; }
.srch-item { display: block; padding: 11px 16px 12px; border-radius: 16px; }
.srch-item.cur { background: #eef6ff; }
.srch-item small { display: block; font-size: 13px; font-weight: 700; line-height: 1.6; color: var(--ink3); }
.srch-item b { display: block; font-weight: 900; font-size: 18px; line-height: 1.5; color: var(--ink); }
.srch-item.cur b { color: var(--blue); }
.srch-item span { display: block; font-size: 14.5px; line-height: 1.7; color: var(--ink2); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.srch mark { background: #fff0a8; color: inherit; border-radius: 4px; padding: 0 1px; }
.srch-hint { padding: 16px 16px 10px; color: var(--ink2); font-size: 15.5px; }
.srch-foot { display: flex; gap: 18px; padding: 10px 22px; border-top: 2px solid #eef4fb; background: #f8fbff; color: var(--ink3); font-size: 13px; font-weight: 700; }
.srch-foot kbd { display: inline-block; font: 600 12px/1 var(--num); padding: 4px 7px; margin-right: 5px; border-radius: 6px; background: #fff; border: 1px solid #d3e8ff; color: var(--ink2); }
.foot { grid-template-columns: 1.4fr repeat(4, 1fr); gap: 34px; }
@media (max-width: 1240px) { .srch-btn kbd { display: none; } .srch-btn { padding-right: 14px; } .nav-in { gap: 18px; } .nav-links a { padding: 8px 12px; } }
@media (max-width: 1020px) {
  .srch-btn { margin-left: auto; height: 36px; } .srch-btn + .lang { margin-left: 0; }
  .srch { padding: 12px; } .srch-box { max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); border-radius: 20px; } .srch-top input { font-size: 17px; } .srch-foot { display: none; }
  .foot { grid-template-columns: 1fr 1fr; }
}
/* 首頁「從這裡開始」下面那一條：卡住了？ */
.helprow { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 12px; margin-top: 30px; padding: 16px 24px; border-radius: 24px; background: #fff; box-shadow: var(--card-sh); }
.helprow b { font-weight: 900; font-size: 19px; margin-right: 8px; }
.helprow a { padding: 6px 18px; border-radius: 999px; background: #eef6ff; color: var(--blue); font-weight: 700; font-size: 16px; }
.helprow a:hover { background: #dcedff; }
.helprow .srch-btn { margin-left: 8px; }
@media (max-width: 1020px) { .helprow .srch-btn { margin-left: 0; } }
/* 手機上如果旁邊還有語言切換（英文版做了之後），搜尋那顆只留圖示，才不會擠成兩排 */
@media (max-width: 560px) { .srch-btn:has(+ .lang) span { display: none; } .srch-btn:has(+ .lang) { padding: 0 12px; } }
