/* =========================================================
   Bingo Victory Clash — official website
   Layout: dark top bar → hero key art → highlight carousel → footer
   ========================================================= */

@font-face { font-family: 'Lilita'; src: url('../assets/font/LilitaOne-Regular.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Fredoka'; src: url('../assets/font/Fredoka.ttf') format('truetype'); font-weight: 300 700; font-display: swap; }

:root {
	--plum-900: #1c0a29;
	--plum-800: #2b1142;
	--plum-700: #3d1a5c;
	--pink: #ff5fa2;
	--pink-d: #e8418a;
	--berry: #b3175f;
	--cream: #fff7fa;
	--ink: #3b2242;
	--muted: #7a6680;
	--line: #f2dce8;
	--gold: #ffb72e;
	--shadow: 0 18px 40px -18px rgba(91, 26, 90, .45);
	--ease-out: cubic-bezier(.22, .8, .2, 1);
	--ease-pop: cubic-bezier(.3, 1.6, .5, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0; min-height: 100vh; overflow-x: hidden;
	font-family: 'Fredoka', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
	font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--cream);
	animation: pageIn .45s ease both;
}
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }
img { max-width: 100%; display: block; -webkit-user-drag: none; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-family: 'Lilita', 'Fredoka', sans-serif; font-weight: 400; line-height: 1.15; letter-spacing: .3px; }
p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 999; background: #fff; color: var(--ink); padding: 8px 14px; border-radius: 10px; }
.skip:focus { left: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 描边字（与游戏内同一写法：多方向 text-shadow + 底部厚度） */
.ol2 { text-shadow: 2px 0 0 var(--oc), -2px 0 0 var(--oc), 0 2px 0 var(--oc), 0 -2px 0 var(--oc), 1.4px 1.4px 0 var(--oc), -1.4px 1.4px 0 var(--oc), 1.4px -1.4px 0 var(--oc), -1.4px -1.4px 0 var(--oc), 0 4px 0 var(--oc); }
.ol3 { text-shadow: 3px 0 0 var(--oc), -3px 0 0 var(--oc), 0 3px 0 var(--oc), 0 -3px 0 var(--oc), 2.1px 2.1px 0 var(--oc), -2.1px 2.1px 0 var(--oc), 2.1px -2.1px 0 var(--oc), -2.1px -2.1px 0 var(--oc), 0 6px 0 var(--oc); }

/* ---------- 游戏按钮（复用游戏按钮图，按原比例显示，文字由代码渲染） ---------- */
.gbtn {
	--h: 58px; --oc: #1f7a14;
	display: inline-flex; align-items: center; justify-content: center; flex: none;
	height: var(--h); width: calc(var(--h) * 3.0476);
	background: url('../assets/img/game/btn_green.webp') center / contain no-repeat;
	transition: transform .18s var(--ease-pop), filter .18s;
}
.gbtn > span { padding-bottom: calc(var(--h) * .1); font-family: 'Lilita', sans-serif; font-size: calc(var(--h) * .36); color: #fff; letter-spacing: .5px; white-space: nowrap; }
.gbtn:hover { transform: translateY(-2px) scale(1.04); filter: brightness(1.06); }
.gbtn:active { transform: scale(.96); }
.gbtn.pink { --oc: #a8185c; background-image: url('../assets/img/game/btn_pink.webp'); }
.gbtn.blue { --oc: #0c5fa8; background-image: url('../assets/img/game/btn_blue.webp'); }
.gbtn.sm { --h: 46px; }

/* =========================================================
   Header
   ========================================================= */
.site-header { position: sticky; top: 0; z-index: 60; height: 80px; color: #fff; background: var(--plum-800); transition: box-shadow .3s, background .3s; }
.site-header.is-scrolled { background: rgba(43, 17, 66, .94); box-shadow: 0 8px 28px rgba(28, 10, 41, .35); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.brand { display: block; flex: none; width: 112px; transition: transform .25s var(--ease-pop); }
.brand:hover { transform: rotate(-3deg) scale(1.05); }
.brand img { width: 100%; height: auto; aspect-ratio: 440 / 270; filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .18)); }

.nav { flex: auto; display: flex; justify-content: center; align-items: center; height: 80px; }
.nav a { display: flex; flex-direction: column; align-items: center; padding: 0 16px; font-size: 16px; font-weight: 500; line-height: 36px; color: rgba(255, 255, 255, .82); transition: color .3s ease; }
.nav a::after { content: ''; width: 20px; height: 4px; border-radius: 2px; background: var(--pink); opacity: 0; transform: translateY(4px) scaleX(.4); transition: .3s ease; }
.nav a:hover, .nav a[aria-current='page'] { color: #fff; }
.nav a:hover::after, .nav a[aria-current='page']::after { opacity: 1; transform: none; }

.menu-btn { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; flex-direction: column; gap: 6px; border-radius: 12px; }
.menu-btn i { display: block; width: 26px; height: 3px; border-radius: 2px; background: #fff; }

/* 移动端侧滑菜单（右侧滑入 + 遮罩） */
.drawer { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 100; visibility: hidden; transition: visibility 0s .35s; }
.drawer.is-open { visibility: visible; transition: none; }
.drawer-shade { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(20, 6, 30, .6); opacity: 0; transition: opacity .35s; }
.drawer.is-open .drawer-shade { opacity: 1; }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(84vw, 340px); padding: 22px 22px 32px; overflow-y: auto; color: #fff; background: linear-gradient(180deg, var(--plum-700), var(--plum-800) 40%); transform: translateX(100%); transition: transform .35s var(--ease-out); }
.drawer.is-open .drawer-panel { transform: none; }
.drawer-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.drawer-close { width: 44px; height: 44px; font-size: 30px; line-height: 44px; text-align: center; }
.drawer-panel a.item { display: flex; align-items: center; gap: 12px; padding: 14px 6px; font-size: 18px; font-weight: 500; border-bottom: 1px solid rgba(255, 255, 255, .09); }
.drawer-panel a.item img { width: 30px; height: 30px; object-fit: contain; }
.drawer-panel a.item[aria-current='page'] { color: var(--pink); }
.drawer-panel .gbtn { margin-top: 26px; }

@media (max-width: 1100px) {
	.nav, .head-cta { display: none; }
	.menu-btn { display: flex; }
}
@media (max-width: 480px) {
	.wrap { padding: 0 18px; }
	.intro .gbtn { --h: 50px; }
	.intro .ctas { gap: 12px; }
	.brand { width: 100px; }
}

/* =========================================================
   Hero key art（整图等比显示，不裁切）
   ========================================================= */
.hero { position: relative; overflow: hidden; background: #fbc9de; }
.hero-art { width: 100%; height: auto; aspect-ratio: 1824 / 960; animation: heroIn 1.8s var(--ease-out) both; }
@keyframes heroIn { from { transform: scale(1.06); opacity: .3; } to { transform: none; opacity: 1; } }
.hero .spark { position: absolute; width: 3%; height: auto; pointer-events: none; opacity: 0; animation: twinkle 2.8s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(.3) rotate(0); } 50% { opacity: 1; transform: scale(1) rotate(35deg); } }

/* 主视觉下方的标题条 */
.intro { position: relative; padding-top: 46px; padding-bottom: 10px; text-align: center; }
.intro .tag { display: inline-block; margin-bottom: 12px; padding: 4px 14px; border-radius: 99px; font-size: 14px; font-weight: 600; letter-spacing: .6px; color: var(--berry); background: #ffe3ef; }
.intro h1 { font-size: clamp(34px, 5.2vw, 60px); color: var(--plum-800); }
.intro h1 span { color: var(--pink); }
.intro p { max-width: 720px; margin: 14px auto 0; font-size: clamp(16px, 1.6vw, 19px); color: var(--muted); }
.intro .ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 18px; margin-top: 26px; }

/* =========================================================
   Sections
   ========================================================= */
.sec { padding: 64px 0; }
.sec-head { text-align: center; margin-bottom: 34px; }
.sec-head h2 { font-size: clamp(30px, 4vw, 44px); color: var(--plum-800); }
.sec-head p { max-width: 640px; margin: 10px auto 0; font-size: 17px; color: var(--muted); }
.ballrow { display: flex; justify-content: center; gap: 4px; margin-bottom: 14px; }
.mball { position: relative; width: 34px; height: 34px; flex: none; }
.mball img { width: 100%; height: 100%; }
.mball b { position: absolute; top: 0; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; padding-top: 1px; font-family: 'Lilita', sans-serif; font-weight: 400; font-size: 16px; color: var(--c); }
.ballrow .mball { animation: ballHop 2.4s ease-in-out infinite; }
.ballrow .mball:nth-child(2) { animation-delay: .12s; } .ballrow .mball:nth-child(3) { animation-delay: .24s; }
.ballrow .mball:nth-child(4) { animation-delay: .36s; } .ballrow .mball:nth-child(5) { animation-delay: .48s; }
@keyframes ballHop { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(-9px); } }

/* 滚动进入 */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }

/* =========================================================
   Highlight carousel
   尺寸单位 --u = 轮播宽度的 1%（由 site.js 按实际宽度写入），整张 banner 等比缩放
   ========================================================= */
.showcase { padding-top: 40px; }
.carousel { --u: 12px; position: relative; max-width: 1200px; margin: 0 auto; }
.car-view { position: relative; overflow: hidden; border-radius: 28px; background: #fff; box-shadow: 0 30px 70px -28px rgba(91, 26, 90, .55), 0 0 0 6px #fff; touch-action: pan-y; }
.car-track { display: flex; transition: transform .75s var(--ease-out); will-change: transform; }
.car-track.is-dragging { transition: none; }

.slide { --tint: #ffe6f0; --accent: #ff5fa2; --deep: #b3175f; position: relative; flex: 0 0 100%; aspect-ratio: 1536 / 832; overflow: hidden; background: var(--tint); }
.slide-art { position: absolute; top: 0; left: 0; right: 0; bottom: 0; }
.slide-bg { position: absolute; top: 0; left: 0; width: 100%; height: auto; aspect-ratio: 1536 / 832; }

/* 文案（左） */
.slide-copy { position: absolute; left: calc(var(--u) * 6); top: 50%; width: calc(var(--u) * 36); transform: translateY(-50%); z-index: 3; }
.slide-copy .head { display: flex; align-items: center; gap: calc(var(--u) * 1.6); }
.app-icon { width: calc(var(--u) * 7.4); height: calc(var(--u) * 7.4); border-radius: 22%; box-shadow: 0 calc(var(--u) * .6) calc(var(--u) * 1.6) rgba(91, 26, 90, .28), 0 0 0 calc(var(--u) * .3) #fff; }
.chip { display: inline-block; padding: calc(var(--u) * .3) calc(var(--u) * 1.1); border-radius: 99px; font-size: calc(var(--u) * 1.08); font-weight: 600; letter-spacing: .4px; color: #fff; background: var(--accent); }
.slide-copy .bar { display: block; width: calc(var(--u) * 3.6); height: calc(var(--u) * .42); margin: calc(var(--u) * 2.2) 0 calc(var(--u) * 1.8); border-radius: 9px; background: var(--deep); }
.slide-copy h3 { font-size: calc(var(--u) * 3.5); color: var(--plum-800); }
.slide-copy p { margin-top: calc(var(--u) * 1.4); font-size: calc(var(--u) * 1.42); line-height: 1.62; color: #4d3653; }

/* 手机样机（中右），截图按原比例放入，不裁切 */
.phone { position: absolute; left: calc(var(--u) * 46.5); top: calc(var(--u) * 3.4); width: calc(var(--u) * 22.8); padding: calc(var(--u) * .9); border-radius: calc(var(--u) * 3.4); background: linear-gradient(145deg, #4a3a55, #18111f 55%, #2d2237); box-shadow: 0 calc(var(--u) * 2.4) calc(var(--u) * 4) calc(var(--u) * -1.2) rgba(40, 10, 50, .55), inset 0 0 0 calc(var(--u) * .18) rgba(255, 255, 255, .18); z-index: 2; }
.phone img { width: 100%; height: auto; aspect-ratio: 540 / 1171; border-radius: calc(var(--u) * 2.5); background: #f7c3d9; }

/* 卖点标签（右） */
.slide-tags { position: absolute; right: calc(var(--u) * 3.6); top: 50%; width: calc(var(--u) * 23); transform: translateY(-50%); display: flex; flex-direction: column; gap: calc(var(--u) * 1.5); z-index: 3; }
.slide-tags li { display: flex; align-items: center; gap: calc(var(--u) * 1.1); padding: calc(var(--u) * .9) calc(var(--u) * 1.3); border-radius: calc(var(--u) * 1.5); background: rgba(255, 255, 255, .93); border: calc(var(--u) * .2) solid var(--accent); box-shadow: 0 calc(var(--u) * .7) 0 rgba(91, 26, 90, .12), 0 calc(var(--u) * 1) calc(var(--u) * 2) rgba(91, 26, 90, .12); }
.slide-tags img { width: calc(var(--u) * 3.6); height: calc(var(--u) * 3.6); object-fit: contain; flex: none; }
.slide-tags b { display: block; font-family: 'Lilita', sans-serif; font-weight: 400; font-size: calc(var(--u) * 1.42); line-height: 1.15; color: var(--deep); }
.slide-tags span { display: block; font-size: calc(var(--u) * 1.08); line-height: 1.3; font-weight: 500; color: #5c4762; }

/* 漂浮道具：浮动动画用 transform，鼠标视差用独立的 translate 属性，两者叠加 */
.prop { position: absolute; left: var(--l); top: var(--t); width: calc(var(--u) * var(--w, 4.6)); z-index: 1; pointer-events: none; translate: calc(var(--mx, 0) * var(--dp, 1) * 14px) calc(var(--my, 0) * var(--dp, 1) * 10px); animation: bob 4.6s ease-in-out infinite; }
.prop.fg { z-index: 4; }
.prop.spin { animation: bobSpin 6s ease-in-out infinite; }
.prop img { width: 100%; height: auto; }
.prop.lb { --w: 5.4; }
.prop.lb b { position: absolute; top: 0; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; padding-top: 2%; font-family: 'Lilita', sans-serif; font-weight: 400; font-size: calc(var(--u) * 2.5); color: var(--c); }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(calc(var(--u) * -1.3)) rotate(calc(var(--r, 0deg) + 6deg)); } }
@keyframes bobSpin { 0%, 100% { transform: translateY(0) rotate(-12deg); } 50% { transform: translateY(calc(var(--u) * -1.6)) rotate(14deg); } }

/* 切换时的入场编排 */
.slide.is-active .slide-copy > * { animation: copyIn .7s var(--ease-out) both; }
.slide.is-active .slide-copy > :nth-child(2) { animation-delay: .1s; }
.slide.is-active .slide-copy > :nth-child(3) { animation-delay: .18s; }
.slide.is-active .slide-copy > :nth-child(4) { animation-delay: .26s; }
@keyframes copyIn { from { opacity: 0; transform: translateX(calc(var(--u) * -3)); } to { opacity: 1; transform: none; } }
.slide.is-active .phone { animation: phoneIn .9s .12s var(--ease-out) both, phoneFloat 5.5s 1.05s ease-in-out infinite; }
@keyframes phoneIn { from { opacity: 0; transform: translateY(calc(var(--u) * 6)) rotate(4deg); } to { opacity: 1; transform: none; } }
@keyframes phoneFloat { 0%, 100% { transform: none; } 50% { transform: translateY(calc(var(--u) * -.8)); } }
.slide.is-active .slide-tags li { animation: tagIn .6s var(--ease-pop) both; animation-delay: calc(.4s + var(--i, 0) * .12s); }
@keyframes tagIn { from { opacity: 0; transform: translateX(calc(var(--u) * 4)) scale(.8); } to { opacity: 1; transform: none; } }
.slide.is-active .prop { animation-name: bob, propIn; animation-duration: 4.6s, .8s; animation-timing-function: ease-in-out, var(--ease-pop); animation-iteration-count: infinite, 1; animation-delay: 0s, var(--pd, .3s); animation-fill-mode: none, backwards; }
.slide.is-active .prop.spin { animation-name: bobSpin, propIn; animation-duration: 6s, .8s; }
@keyframes propIn { from { opacity: 0; scale: .2; } to { opacity: 1; scale: 1; } }

/* 左右箭头（悬停显示） */
.car-arrow { position: absolute; top: 50%; z-index: 6; width: 50px; height: 50px; margin-top: -25px; border-radius: 50%; background: rgba(43, 17, 66, .55); opacity: 0; transition: opacity .3s, background .2s, transform .2s; }
.car-arrow::before { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -8px; border: solid #fff; border-width: 3px 3px 0 0; transform: rotate(45deg); }
.car-arrow.prev { left: 18px; } .car-arrow.prev::before { margin-left: -3px; transform: rotate(-135deg); }
.car-arrow.next { right: 18px; }
.carousel:hover .car-arrow, .car-arrow:focus-visible { opacity: 1; }
.car-arrow:hover { background: rgba(232, 65, 138, .9); transform: scale(1.08); }

/* 指示器：五颗宾果球，当前球带倒计时圈（同游戏叫号球的圈） */
.car-dots { display: flex; justify-content: center; gap: 14px; margin-top: 26px; }
.dot { position: relative; width: 46px; height: 46px; transition: transform .35s var(--ease-pop), filter .3s; filter: saturate(.55) brightness(1.05); opacity: .8; }
.dot img { position: absolute; top: 4px; left: 4px; width: 38px; height: 38px; }
.dot b { position: absolute; top: 0; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; padding-top: 1px; font-family: 'Lilita', sans-serif; font-weight: 400; font-size: 18px; color: var(--c); }
.dot svg { position: absolute; top: 0; left: 0; width: 46px; height: 46px; transform: rotate(-90deg); }
.dot circle { fill: none; stroke: var(--c); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 138.2; stroke-dashoffset: 138.2; opacity: 0; }
.dot:hover { opacity: 1; filter: none; transform: translateY(-3px); }
.dot.is-active { opacity: 1; filter: drop-shadow(0 6px 10px rgba(91, 26, 90, .3)); transform: scale(1.22); }
.dot.is-active circle { opacity: 1; animation: ring var(--dur, 6s) linear forwards; }
.carousel.is-paused .dot.is-active circle { animation-play-state: paused; }
@keyframes ring { to { stroke-dashoffset: 0; } }

/* 窄屏：banner 图整幅在上，手机放大居中跨过底边，文案与标签移到下方 */
@media (max-width: 760px) {
	.car-view { border-radius: 22px; }
	.slide { aspect-ratio: auto; display: flex; flex-direction: column; }
	.slide-art { position: relative; height: calc(var(--u) * 100); flex: none; }
	.slide-art::after { content: ''; position: absolute; left: 0; right: 0; top: calc(var(--u) * 30); height: calc(var(--u) * 24.2); background: linear-gradient(180deg, transparent, var(--tint)); }
	.phone { left: calc(var(--u) * 28); top: calc(var(--u) * 4); width: calc(var(--u) * 44); padding: calc(var(--u) * 1.6); border-radius: calc(var(--u) * 6.4); }
	.phone img { border-radius: calc(var(--u) * 4.8); }
		.prop { left: var(--ml, var(--l)); top: var(--mt, var(--t)); width: calc(var(--u) * var(--w, 4.6) * 1.9); }
	.prop.lb b { font-size: calc(var(--u) * 5); }
	.prop.m-hide { display: none; }
	.slide-copy { position: relative; left: auto; top: auto; width: auto; transform: none; padding: calc(var(--u) * 2) calc(var(--u) * 6) calc(var(--u) * 4); }
	.app-icon { width: 54px; height: 54px; }
	.chip { font-size: 13px; padding: 3px 12px; }
	.slide-copy .bar { width: 36px; height: 4px; margin: 16px 0 14px; }
	.slide-copy h3 { font-size: 28px; }
	.slide-copy p { margin-top: 10px; font-size: 15.5px; }
	.slide-tags { position: relative; right: auto; top: auto; width: auto; transform: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 calc(var(--u) * 6) calc(var(--u) * 7); }
	.slide-tags li { gap: 8px; padding: 8px 10px; border-radius: 14px; border-width: 2px; box-shadow: 0 4px 0 rgba(91, 26, 90, .1); }
	.slide-tags img { width: 30px; height: 30px; }
	.slide-tags b { font-size: 14px; }
	.slide-tags span { font-size: 12px; }
	.car-arrow { display: none; }
	.car-dots { gap: 8px; }
}

/* =========================================================
   Steps (home)
   ========================================================= */
.steps { padding-bottom: 80px; }
.step-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: st; }
.step { position: relative; padding: 30px 22px 26px; text-align: center; border-radius: 26px; background: #fff; box-shadow: var(--shadow); border-top: 6px solid var(--c, var(--pink)); transition: transform .3s var(--ease-pop); }
.step:hover { transform: translateY(-6px); }
.step .num { position: absolute; top: -18px; left: 50%; width: 36px; height: 36px; margin-left: -18px; border-radius: 50%; font-family: 'Lilita', sans-serif; font-size: 19px; line-height: 36px; color: #fff; background: var(--c, var(--pink)); box-shadow: 0 4px 0 rgba(0, 0, 0, .12); }
.step .ic { height: 86px; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.step .ic img { max-height: 86px; width: auto; transition: transform .4s var(--ease-pop); }
.step:hover .ic img { transform: scale(1.12) rotate(-6deg); }
.step h3 { font-size: 22px; color: var(--plum-800); }
.step p { margin-top: 8px; font-size: 15px; color: var(--muted); }
.steps .more { display: flex; justify-content: center; margin-top: 38px; }
@media (max-width: 960px) { .step-grid { grid-template-columns: 1fr 1fr; gap: 34px 18px; } }
@media (max-width: 480px) {
	.step-grid { gap: 30px 12px; }
	.step { padding: 26px 12px 18px; border-radius: 20px; }
	.step .ic { height: 62px; margin-bottom: 8px; }
	.step .ic img { max-height: 62px; }
	.step h3 { font-size: 18px; }
	.step p { font-size: 13.5px; }
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer { color: #fff; background: var(--plum-900); }
.site-footer .wrap { padding-top: 18px; padding-bottom: 18px; }
.f-row { padding: 20px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.f-row:last-child { border-bottom: 0; }
.f-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.f-links { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 14px; }
.f-links a { color: #cbbcd3; transition: color .2s; }
.f-links a:hover { color: #fff; }
.f-copy { font-size: 13px; color: #a596ad; }
.f-text { font-size: 13px; line-height: 1.8; color: #a596ad; }
.f-text + .f-text { margin-top: 8px; }
.f-text a { color: #f7a8cb; }

/* =========================================================
   Inner pages: page hero + document
   ========================================================= */
.page-hero { position: relative; overflow: hidden; padding: 64px 0 74px; text-align: center; color: #fff; background: radial-gradient(120% 140% at 50% 0%, #c2307a 0%, #6a2185 55%, var(--plum-800) 100%); }
.page-hero .eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: #ffc4de; }
.page-hero h1 { --oc: #5a1a7a; margin-top: 8px; font-size: clamp(36px, 5.6vw, 60px); }
.page-hero .meta { margin-top: 12px; font-size: 15px; color: #ead6f2; }
.page-hero .deco { position: absolute; width: 64px; opacity: .9; animation: bob 5s ease-in-out infinite; --u: 6px; }
@media (max-width: 640px) { .page-hero .deco { width: 42px; top: 14px !important; } }
.page-hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 34px; background: var(--cream); clip-path: ellipse(60% 100% at 50% 100%); }

.doc-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 36px; align-items: start; max-width: 1180px; padding-top: 34px; padding-bottom: 80px; }
.toc { position: sticky; top: 104px; padding: 20px 18px; border-radius: 20px; background: #fff; box-shadow: var(--shadow); font-size: 14px; }
.toc h2 { margin-bottom: 10px; font-size: 17px; color: var(--plum-800); }
.toc a { display: block; padding: 5px 8px; border-radius: 8px; color: var(--muted); transition: background .2s, color .2s; }
.toc a:hover, .toc a.is-on { color: var(--berry); background: #ffe8f2; }
.doc { padding: 44px 52px; border-radius: 28px; background: #fff; box-shadow: var(--shadow); }
.doc h2 { margin: 40px 0 12px; padding-top: 6px; font-size: 26px; color: var(--plum-800); scroll-margin-top: 100px; }
.doc h2:first-of-type { margin-top: 26px; }
.doc h3 { margin: 22px 0 8px; font-size: 19px; color: var(--berry); }
.doc p, .doc li { font-size: 16.5px; color: #4a3550; }
.doc p + p { margin-top: 12px; }
.doc ul { margin: 10px 0 0; }
.doc ul + p { margin-top: 14px; }
.doc ul li { position: relative; padding-left: 26px; margin-top: 8px; }
.doc ul li::before { content: ''; position: absolute; left: 6px; top: .62em; width: 9px; height: 9px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 3px #ffe3ef; }
.doc a { color: var(--pink-d); text-decoration: underline; text-underline-offset: 3px; }
.doc strong { color: var(--ink); font-weight: 600; }
.doc.legal h2 { font-size: 22px; letter-spacing: .4px; }
.doc .bw { font-weight: 600; color: var(--ink); }
.doc h3 { font-family: 'Fredoka', sans-serif; font-weight: 500; font-size: 16.5px; line-height: 1.6; color: #4a3550; }
.doc .indent { padding-left: 28px; }
.doc .indent ul { margin-top: 4px; }
.doc .indent ul li::before { background: #fff; box-shadow: 0 0 0 2px var(--pink); }
.doc hr.rule { margin: 34px 0 0; border: 0; border-top: 3px double #e7c9d8; }
.table-wrap { margin-top: 14px; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 14px; border: 1px solid var(--line); }
.doc-table { width: 100%; border-collapse: collapse; font-size: 15px; color: #4a3550; }
.doc-table th, .doc-table td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
.doc-table th:last-child, .doc-table td:last-child { border-right: 0; }
.doc-table tr:last-child td { border-bottom: 0; }
.doc-table th { font-weight: 600; color: #fff; background: linear-gradient(135deg, #e8418a, #9b3cc4); }
.doc-table tr:nth-child(even) td { background: #fdf6fa; }
.table-wrap.narrow { max-width: 620px; }
.doc-table .ok { font-size: 18px; }
.doc-table .states { margin: 0; columns: 3 140px; column-gap: 18px; }
.doc-table .states li { margin: 0 0 4px; padding-left: 0; font-size: 14.5px; break-inside: avoid; }
.doc-table .states li::before { display: none; }
.glance { padding: 22px 24px; border-radius: 20px; background: linear-gradient(135deg, #fff0f6, #f3ecff); border: 2px dashed #f4b8d4; }
.glance h2 { margin: 0 0 6px !important; font-size: 20px; }
.contact-card { margin-top: 14px; padding: 18px 22px; border-radius: 16px; background: #fbf4fd; border: 1px solid var(--line); }
.contact-card p { margin: 0 !important; }
@media (max-width: 960px) {
	.doc-layout { grid-template-columns: 1fr; gap: 20px; }
	.toc { position: static; }
	.toc nav { display: flex; flex-wrap: wrap; gap: 4px; }
	.doc { padding: 30px 22px; border-radius: 22px; }
}

/* =========================================================
   How to Play
   ========================================================= */
.guide { padding-bottom: 40px; }
.guide .sec { padding: 46px 0; }
.cards { display: grid; gap: 20px; }
.cards.c2 { grid-template-columns: repeat(2, 1fr); }
.cards.c3 { grid-template-columns: repeat(3, 1fr); }
.cards.c4 { grid-template-columns: repeat(4, 1fr); }
.card { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: 22px; background: #fff; box-shadow: var(--shadow); transition: transform .3s var(--ease-pop); }
.card:hover { transform: translateY(-4px); }
.card.col { flex-direction: column; align-items: center; text-align: center; }
.card .ic { flex: none; width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; }
.card .ic img { max-width: 100%; max-height: 100%; width: auto; height: auto; }
.card h3 { font-size: 20px; color: var(--plum-800); }
.card p { margin-top: 6px; font-size: 15px; color: var(--muted); }

/* 花型 5×5 小卡 */
.pattern .grid5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; width: 118px; padding: 8px; border-radius: 14px; background: #ffd5e6; box-shadow: inset 0 0 0 3px #ff8fbf; }
.pattern .grid5 i { aspect-ratio: 1; border-radius: 4px; background: #fff8f0; }
.pattern .grid5 i.on { background: var(--pink) url('../assets/img/game/daub_1.webp') center / 92% no-repeat; }
.pattern .grid5 i.free { background: #ffe9a8 url('../assets/img/game/cell_free.webp') center / 88% no-repeat; }
.pattern h3 { margin-top: 12px; }

.chapters .card { border-top: 6px solid var(--c); }
.chapters .lv { display: inline-block; margin-top: 10px; padding: 2px 12px; border-radius: 99px; font-size: 13px; font-weight: 600; color: #fff; background: var(--c); }

.showpair { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 48px; align-items: center; }
.showpair.flip { grid-template-columns: minmax(0, 1fr) 300px; }
.showpair.flip .mock { order: 2; }
.mock { --u: 13.2px; position: relative; width: 300px; padding: 12px; border-radius: 44px; background: linear-gradient(145deg, #4a3a55, #18111f 55%, #2d2237); box-shadow: 0 30px 50px -24px rgba(40, 10, 50, .6); }
.mock img { width: 100%; height: auto; aspect-ratio: 540 / 1171; border-radius: 33px; }
.showpair h2 { font-size: clamp(28px, 3.4vw, 38px); color: var(--plum-800); }
.showpair p { margin-top: 12px; font-size: 17px; color: var(--muted); }
.ticks { margin-top: 16px; }
.ticks li { position: relative; padding-left: 30px; margin-top: 10px; font-size: 16px; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; background: url('../assets/img/game/icon_star.webp') center / contain no-repeat; }
.note { margin-top: 26px; padding: 16px 20px; border-radius: 16px; font-size: 15px; color: #6b4a1d; background: #fff4d6; border: 1px solid #ffdf8f; }

@media (max-width: 960px) {
	.cards.c3, .cards.c4 { grid-template-columns: 1fr 1fr; }
	.showpair, .showpair.flip { grid-template-columns: 1fr; gap: 28px; justify-items: center; text-align: center; }
	.showpair.flip .mock { order: 0; }
	.ticks { display: inline-block; text-align: left; }
}
@media (max-width: 560px) {
	.cards.c2, .cards.c3 { grid-template-columns: 1fr; }
	.cards.c4 { grid-template-columns: 1fr 1fr; }
	.mock { width: 250px; border-radius: 38px; }
}

/* =========================================================
   Support (FAQ)
   ========================================================= */
.faq { max-width: 860px; margin: 0 auto; }
.faq details { margin-top: 14px; border-radius: 20px; background: #fff; box-shadow: var(--shadow); overflow: hidden; }
.faq summary { position: relative; list-style: none; padding: 20px 60px 20px 24px; cursor: pointer; font-weight: 600; font-size: 17px; color: var(--plum-800); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 20px; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%; text-align: center; line-height: 29px; font-size: 22px; color: #fff; background: var(--pink); transition: transform .3s var(--ease-pop); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .ans { padding: 0 24px 22px; font-size: 16px; color: #4a3550; }
.faq .ans p + p { margin-top: 10px; }
.faq .ans a { color: var(--pink-d); text-decoration: underline; }
.support-contact { max-width: 860px; margin: 36px auto 0; display: flex; align-items: center; gap: 24px; padding: 26px 30px; border-radius: 26px; color: #fff; background: linear-gradient(135deg, #e8418a, #7b2fa8); box-shadow: var(--shadow); }
.support-contact img { width: 110px; flex: none; }
.support-contact h2 { font-size: 26px; }
.support-contact p { margin-top: 6px; color: #ffe3f0; }
.support-contact a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; word-break: break-all; }
@media (max-width: 560px) { .support-contact { flex-direction: column; text-align: center; } }

/* =========================================================
   404 + toast
   ========================================================= */
.lost { padding: 60px 0 90px; text-align: center; }
.lost img { width: 220px; margin: 0 auto; animation: bob 4s ease-in-out infinite; --u: 8px; }
.lost h1 { margin-top: 18px; font-size: clamp(34px, 5vw, 52px); color: var(--plum-800); }
.lost p { margin: 10px auto 26px; max-width: 480px; color: var(--muted); font-size: 17px; }

.toast { position: fixed; left: 50%; bottom: 34px; z-index: 200; padding: 12px 22px; border-radius: 99px; font-weight: 600; color: #fff; background: rgba(43, 17, 66, .94); box-shadow: 0 12px 30px rgba(28, 10, 41, .35); transform: translate(-50%, 30px); opacity: 0; transition: .35s var(--ease-pop); pointer-events: none; }
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	.reveal { opacity: 1; transform: none; }
}
