/* Frog go 游戏页：在品牌外壳上换上游戏自己的「绿色放射光 + 美式漫画」皮肤 */
.fg { --c: var(--green); }

/* ---------- 头图 ---------- */
.fg-hero { position: relative; min-height: 100svh; padding: 7.375rem 0 0; overflow: hidden; color: #fff; border-bottom: var(--line);
  background: #2f9a2a; }
.fg-hero .burst { position: absolute; left: 50%; top: 42%; width: 260vmax; height: 260vmax; margin: -130vmax 0 0 -130vmax; animation: spin 90s linear infinite;
  background: repeating-conic-gradient(from 0deg, #2f9a2a 0 6deg, #3cad35 6deg 12deg); }
.fg-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle, rgba(0, 0, 0, .17) 0.0875rem, transparent 0.1062rem) 0 0 / 0.8125rem 0.8125rem, radial-gradient(ellipse at 50% 40%, transparent 30%, rgba(0, 50, 0, .45)); }
@keyframes spin { to { transform: rotate(360deg); } }
.fg-hero { display: flex; flex-direction: column; }
.fg-hero-grid { position: relative; z-index: 2; flex: 1; display: grid; grid-template-columns: .82fr 1.18fr; gap: 1.875rem; align-items: center; padding-bottom: 9.375rem; }
.fg-hero .inner { position: relative; z-index: 3; }
.fg-hero .tag { background: var(--yellow); font-size: 1rem; padding: 0.4375rem 1rem 0.375rem; box-shadow: 0.1875rem 0.25rem 0 var(--ink); }
.fg-logo { margin-top: 1.375rem; font-family: "HJ Title"; font-size: clamp(4.75rem, 9vw, 9.375rem); line-height: .84; letter-spacing: -.01em; color: var(--yellow); -webkit-text-stroke: .085em var(--ink); paint-order: stroke fill; text-shadow: .04em .06em 0 var(--ink); }
.fg-logo .ln { display: block; white-space: nowrap; }
.fg-logo .ln > span { display: inline-block; }
.fg-logo .ln:nth-child(2) { padding-left: .5em; color: var(--lime); }
.fg-logo .bang { color: var(--red); transform: rotate(12deg); margin-left: .02em; }
.fg-sub { margin-top: 1.125rem; font-family: "HJ Title"; font-size: clamp(1.5rem, 2.6vw, 2.375rem); line-height: 1; }
.fg-sub span { display: inline-block; padding: .32em 1.1em .28em; background: var(--red); color: #fff; -webkit-text-stroke: .16em var(--ink); paint-order: stroke fill; letter-spacing: .04em; border: 0.1875rem solid var(--ink);
  transform: rotate(-3deg); clip-path: polygon(0 0, 100% 0, calc(100% - .6em) 50%, 100% 100%, 0 100%, .6em 50%); box-shadow: inset 0 -.18em 0 rgba(0, 0, 0, .22); }
.fg-hero .lead { margin-top: 1.5rem; max-width: 25em; color: var(--ink); background: #fffdf6; border: var(--line); border-radius: 1.125rem; padding: 0.875rem 1.25rem; box-shadow: var(--shadow-s); font-size: 1.0625rem; }
.fg-hero .cta { display: flex; flex-wrap: wrap; gap: 0.875rem; margin-top: 1.625rem; }

/* 宣传海报：画框缓慢推镜，骰子、卡片和星星飞出画框 */
.poster { position: relative; z-index: 2; }
.poster [data-depth] { will-change: translate; }
.poster-frame { position: relative; transform: rotate(2.5deg); border: var(--line); border-radius: 1.375rem; overflow: hidden; background: #ffd84a;
  box-shadow: 0 0 0 0.5rem #fff4dc, 0 0 0 0.6875rem var(--ink), 0.875rem 1rem 0 0.6875rem rgba(0, 0, 0, .55); }
.poster .kb { aspect-ratio: 1672 / 941; overflow: hidden; }
.poster .kb img { width: 100%; height: 100%; object-fit: cover; transform-origin: 55% 60%; animation: kenburns 16s ease-in-out infinite alternate; }
@keyframes kenburns { from { scale: 1; translate: 0 0; } to { scale: 1.08; translate: -1.5% -1%; } }
.poster .shine { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .45) 47%, transparent 56%) -150% 0 / 250% 100% no-repeat; animation: shine 6s ease-in-out 2.2s infinite; }
@keyframes shine { 0% { background-position: -150% 0; } 30%, 100% { background-position: 250% 0; } }
.poster .fly { position: absolute; z-index: 3; filter: drop-shadow(0.3125rem 0.4375rem 0 rgba(0, 0, 0, .45)); }
.poster .die-w { width: 15%; left: -7%; top: -12%; animation: bob 4.6s ease-in-out infinite, tumble 9s ease-in-out infinite; }
.poster .die-b { width: 12%; right: -4%; bottom: -10%; animation: bob 5.4s ease-in-out .8s infinite, tumble 11s ease-in-out 1s infinite reverse; }
@keyframes tumble { 0%, 100% { rotate: -14deg; } 50% { rotate: 22deg; } }
.poster .cd-1 { width: 13%; right: -5%; top: -16%; rotate: 14deg; animation: bob 5s ease-in-out .4s infinite; }
.poster .cd-2 { width: 11%; left: -4%; bottom: -14%; rotate: -12deg; animation: bob 6s ease-in-out 1.2s infinite; }
.poster .star { animation: twinkle 2.4s ease-in-out infinite; filter: none; }
.poster .s1 { left: 12%; top: -8%; width: 2.875rem; } .poster .s2 { right: 16%; bottom: -8%; width: 2.125rem; animation-delay: .8s; } .poster .s3 { right: -5%; top: 42%; width: 2.5rem; animation-delay: 1.5s; }
@keyframes twinkle { 50% { scale: .55; rotate: 45deg; } }
.poster .stamp { left: 14%; bottom: -15%; width: 7rem; height: 7rem; border-radius: 50%; background: var(--red); color: #fff; border: var(--line); box-shadow: var(--shadow-s); rotate: -10deg;
  display: grid; place-items: center; align-content: center; text-align: center; font-family: "HJ Title"; font-size: 0.875rem; line-height: 1.15; filter: none; }
.poster .stamp b { display: block; font-weight: normal; font-size: 2.5rem; line-height: .9; color: var(--yellow); -webkit-text-stroke: 0.3125rem var(--ink); paint-order: stroke fill; }

/* 头图底部：四辆小车列队开过 */
.parade { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; height: 7.5rem; overflow: hidden; background: linear-gradient(transparent 62%, #3b3b3b 62%); border-top: 0; }
.parade::after { content: ""; position: absolute; z-index: 0; left: 0; right: 0; bottom: 0; height: 38%; border-top: var(--line); background: repeating-linear-gradient(90deg, #ffe08a 0 1.875rem, transparent 1.875rem 4.125rem) 0 50% / 100% 0.25rem no-repeat; }
.parade-track { position: relative; z-index: 1; display: flex;  /* 车队在路面边线之上 */ gap: 7.5rem; width: max-content; padding-left: 2.5rem; animation: marquee 34s linear infinite reverse; }
.parade-track img { position: relative; z-index: 1; width: 8rem; margin-top: 0.375rem; filter: drop-shadow(0.25rem 0.3125rem 0 rgba(0, 0, 0, .4)); animation: drive2 1s ease-in-out infinite; }
.parade-track img:nth-child(odd) { animation-delay: -.5s; }
@keyframes drive2 { 50% { translate: 0 -0.25rem; } }

/* ---------- 大标语（滚动逐字点亮） ---------- */
.manifesto { padding: 10rem 0 7.5rem; }
.manifesto p { font-family: "HJ Title"; font-size: clamp(2.25rem, 5.4vw, 5rem); line-height: 1.22; letter-spacing: -.01em; }
.manifesto .w { color: rgba(20, 20, 20, .14); transition: color .2s; }
.manifesto .w.on { color: var(--ink); }
.manifesto .w.k.on { color: var(--green); }
.manifesto .w.k2.on { color: var(--red); }

/* ---------- 城市跑马灯 ---------- */
.cities { padding: 0.625rem 0 2.5rem; overflow: hidden; }
.city-row { display: flex; gap: 1.375rem; width: max-content; animation: marquee 60s linear infinite; padding: 0.875rem 0; }
.city-row.rev { animation-direction: reverse; animation-duration: 70s; }
.cities:hover .city-row { animation-play-state: paused; }
.city { position: relative; width: 20.625rem; flex: none; border: var(--line); border-radius: 1.125rem; overflow: hidden; box-shadow: var(--shadow-s); background: #222; transform: rotate(var(--r, 0deg)); transition: transform .3s var(--ease); }
.city:hover { transform: rotate(0) scale(1.04); }
.city img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.city span { position: absolute; left: 0.75rem; bottom: 0.75rem; background: var(--paper); border: 0.1562rem solid var(--ink); border-radius: 0.625rem; padding: 0.1875rem 0.75rem 0.125rem; font-family: "HJ Title"; font-size: 1.125rem; box-shadow: 0.125rem 0.1875rem 0 var(--ink); }
.city span small { font-size: 0.75rem; color: var(--ink-2); margin-left: 0.375rem; letter-spacing: .05em; }

/* ---------- 软硬件联动 ---------- */
.sync { padding: 8.75rem 0 2.5rem; }
.sync-grid { display: grid; grid-template-columns: 1fr 7.5rem 1.25fr; align-items: center; gap: 0; margin-top: 3.75rem; }
.sync .phys { transform: rotate(-2.5deg); }
.sync .scr { transform: rotate(1.8deg); }
.sync .phys .sticker, .sync .scr .sticker { box-shadow: 0 0 0 0.4375rem #f6e7c6, 0 0 0 0.625rem var(--ink), 0.625rem 0.75rem 0 0.625rem var(--ink); }
.sync .lbl { margin-top: 1.625rem; text-align: center; font-family: "HJ Title"; font-size: 1.375rem; }
.sync .lbl small { display: block; font-family: "HJ Body"; font-size: 0.875rem; color: var(--ink-2); }
.wire { position: relative; height: 0.75rem; margin: 0 -0.5rem; }
.wire::before { content: ""; position: absolute; inset: 0.25rem 0; border-top: 0.25rem dashed var(--ink); }
.wire i { position: absolute; top: 0; width: 0.75rem; height: 0.75rem; border-radius: 50%; background: var(--yellow); border: 0.1562rem solid var(--ink); animation: pulse 2.2s linear infinite; }
.wire i:nth-child(2) { animation-delay: .73s; background: var(--red); } .wire i:nth-child(3) { animation-delay: 1.46s; background: var(--blue); }
@keyframes pulse { from { left: 0; } to { left: calc(100% - 0.75rem); } }
.sync-feats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.375rem; margin-top: 4.375rem; }
.sync-feat { padding: 1.625rem 1.5rem; }
.sync-feat .ic { width: 3.375rem; height: 3.375rem; border-radius: 1rem; border: var(--line); background: var(--c); display: grid; place-items: center; box-shadow: var(--shadow-s); font-size: 1.625rem; }
.sync-feat .ic img { width: 2.125rem; }
.sync-feat h3 { font-size: 1.375rem; margin: 1.125rem 0 0.375rem; }
.sync-feat p { font-size: 0.9375rem; color: var(--ink-2); }

/* ---------- 角色 ---------- */
.crew { margin-top: 9.375rem; padding: 6.875rem 0 7.5rem; border-block: var(--line); position: relative; overflow: hidden; transition: background .5s; background: var(--cc, #4e9a35); color: #fff; }
.crew .rays { position: absolute; left: 30%; top: 55%; width: 220vmax; height: 220vmax; margin: -110vmax 0 0 -110vmax; animation: spin 80s linear infinite; opacity: .6;
  background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, .13) 0 7deg, transparent 7deg 14deg); }
.crew::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle, rgba(0, 0, 0, .15) 0.0813rem, transparent 0.1rem) 0 0 / 0.75rem 0.75rem; }
.crew .wrap { position: relative; z-index: 2; }
.crew .eyebrow::before { background: var(--yellow); }
.crew .sec-title { color: #fff4dc; -webkit-text-stroke: .1em var(--ink); paint-order: stroke fill; text-shadow: .05em .07em 0 var(--ink); }
.crew-tabs { display: flex; gap: 0.875rem; margin-top: 2.125rem; flex-wrap: wrap; }
.crew-tab { display: flex; align-items: center; gap: 0.625rem; padding: 0.375rem 1.125rem 0.375rem 0.375rem; border-radius: 62.4375rem; border: var(--line); background: rgba(255, 255, 255, .92); color: var(--ink); font-family: "HJ Title"; font-size: 1.125rem; box-shadow: var(--shadow-s); transition: transform .2s var(--ease), background .2s; }
.crew-tab img { width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 0.1562rem solid var(--ink); }
.crew-tab:hover { transform: translateY(-0.1875rem); }
.crew-tab[aria-selected="true"] { background: var(--yellow); transform: translateY(-0.1875rem) rotate(-2deg); }
.crew-body { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3.125rem; align-items: center; margin-top: 2.5rem; min-height: 38.75rem; }
.crew-art { position: relative; height: 38.75rem; }
.crew-art img { position: absolute; left: 50%; bottom: 0; height: 100%; width: auto; max-width: none; transform: translateX(-50%); filter: drop-shadow(0.625rem 0.75rem 0 rgba(0, 0, 0, .4)); }
.crew-art .ult { left: auto; right: -2%; bottom: 4%; height: 46%; transform: rotate(9deg); filter: drop-shadow(0.375rem 0.5rem 0 rgba(0, 0, 0, .45)); }
.crew-name { font-family: "HJ Title"; font-size: clamp(4rem, 8vw, 7.375rem); line-height: 1; color: #fff4dc; -webkit-text-stroke: .09em var(--ink); paint-order: stroke fill; text-shadow: .05em .07em 0 var(--ink); }
.crew-en { font-family: "HJ Title"; letter-spacing: .3em; margin-top: 0.625rem; opacity: .9; }
.crew-quote { margin-top: 1.25rem; font-size: 1.1875rem; max-width: 28em; background: #fffdf6; color: var(--ink); border: var(--line); border-radius: 1.125rem; padding: 1rem 1.375rem; box-shadow: var(--shadow-s); position: relative; }
.crew-quote::before { content: ""; position: absolute; left: 2.125rem; top: -1rem; border: 0.5rem solid transparent; border-bottom: 0.625rem solid var(--ink); }
.skills { display: grid; gap: 0.875rem; margin-top: 1.625rem; }
.skill { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; align-items: start; background: rgba(0, 0, 0, .26); border: 0.1562rem solid rgba(0, 0, 0, .5); border-radius: 1rem; padding: 0.875rem 1.125rem; }
.skill > b { font-family: "HJ Title"; font-weight: normal; text-align: center; background: #fff4dc; color: var(--ink); border: 0.1562rem solid var(--ink); border-radius: 62.4375rem; padding: 0.1875rem 0 0.125rem; box-shadow: 0.125rem 0.1875rem 0 var(--ink); font-size: 0.9375rem; }
.skill.u > b { background: var(--yellow); }
.skill p b { color: var(--yellow); font-weight: 800; }
.skill p { font-size: 1rem; line-height: 1.6; }
.skill p strong { font-family: "HJ Title"; font-weight: normal; font-size: 1.1875rem; display: block; }
.skill p strong small { font-size: 0.75rem; letter-spacing: .2em; opacity: .75; margin-left: 0.5rem; }

/* ---------- 棋盘探索 ---------- */
.explore { padding: 9.375rem 0 2.5rem; }
.explore-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 3.125rem; align-items: start; margin-top: 3.375rem; }
.bmap { position: relative; filter: drop-shadow(0.625rem 0.75rem 0 rgba(0, 0, 0, .55)); }
.bmap img { width: 100%; }
.sq { position: absolute; cursor: pointer; }
.sq i { position: absolute; inset: 0; background: center / 100% 100% no-repeat; pointer-events: none; opacity: 0; transition: opacity .2s; }
.sq:hover .g, .sq.on .g { opacity: 1; }
.sq:focus-visible { outline: none; }
.sq:focus-visible .g { opacity: 1; }
.sq.dim .dk { opacity: 1; }
.bmap .base-dk { position: absolute; inset: 0; pointer-events: none; background: url(../assets/board/sq/base-d.png) center / 100% 100% no-repeat; opacity: 0; transition: opacity .2s; }
.bmap.filtering .base-dk { opacity: 1; }
.bmap .center { position: absolute; left: 22%; right: 22%; top: 24%; text-align: center; color: #fff4dc; pointer-events: none; }
.bmap .center .t { font-size: clamp(1.375rem, 2.6vw, 2.375rem); line-height: 1.15; -webkit-text-stroke: 0.3125rem var(--ink); paint-order: stroke fill; }
.bmap .center p { font-size: 0.875rem; color: #bdb3a0; margin-top: 0.5rem; }
.dfilter { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem; }
.dfilter button { min-width: 2.875rem; padding: 0.375rem 0.75rem 0.3125rem; border-radius: 0.75rem; border: 0.1562rem solid var(--ink); background: #fff; font-family: "HJ Title"; font-size: 0.9375rem; box-shadow: 0.125rem 0.1875rem 0 var(--ink); transition: .2s var(--ease); }
.dfilter button:hover { transform: translateY(-0.125rem); }
.dfilter button[aria-pressed="true"] { background: var(--yellow); }
.info { padding: 0; overflow: hidden; position: sticky; top: 6.875rem; }
.info .pic { aspect-ratio: 16 / 9; background: #222 center / cover; border-bottom: var(--line); position: relative; transition: background-image .3s; }
.info .pic .kind { position: absolute; left: 1rem; top: 1rem; }
.info .txt { padding: 1.5rem 1.75rem 1.75rem; }
.info h3 { font-size: 2.25rem; line-height: 1.1; display: flex; align-items: baseline; gap: 0.75rem; flex-wrap: wrap; }
.info h3 small { font-family: "HJ Body"; font-size: 0.875rem; color: var(--ink-2); letter-spacing: .08em; }
.info p { margin-top: 0.75rem; color: var(--ink-2); }
.info .hint { margin-top: 1rem; font-size: 0.8125rem; color: #9a8b6e; }

/* ---------- 回合流程（横向滚动） ---------- */
.flow { padding: 9.375rem 0 0; }
.flow-pin { overflow: hidden; }
.flow-track { display: flex; gap: 2.125rem; padding: 3.75rem max(1.5rem, calc((100vw - 77.5rem) / 2)) 5rem; width: max-content; }
.flow-step { width: min(35rem, 82vw); flex: none; padding: 1.125rem 1.125rem 1.75rem; transform: rotate(var(--r, 0deg)); }
.flow-step .img { border: var(--line); border-radius: 0.875rem; overflow: hidden; aspect-ratio: 16 / 9; background: #222; }
.flow-step .img img { width: 100%; height: 100%; object-fit: cover; }
.flow-step .n { display: inline-grid; place-items: center; width: 3.25rem; height: 3.25rem; border-radius: 50%; background: var(--yellow); border: var(--line); box-shadow: var(--shadow-s); font-family: "HJ Title"; font-size: 1.5rem; margin: -2rem 0 0 0.875rem; position: relative; }
.flow-step h3 { font-size: 1.875rem; margin: 0.75rem 0.5rem 0.375rem; }
.flow-step p { margin: 0 0.5rem; color: var(--ink-2); }

/* ---------- 地产与街区 ---------- */
.estate { padding: 9.375rem 0 2.5rem; }
.estate-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.625rem; margin-top: 3.5rem; }
.estate-card { padding: 1rem 1rem 1.625rem; }
.estate-card .img { border: var(--line); border-radius: 0.875rem; overflow: hidden; }
.estate-card h3 { font-size: 1.5rem; margin: 1.125rem 0.5rem 0.375rem; }
.estate-card p { margin: 0 0.5rem; color: var(--ink-2); font-size: 1rem; }
.lamps { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; margin-top: 2.5rem; padding: 1.5rem 1.75rem; }
.lamp { display: inline-flex; align-items: center; gap: 0.625rem; font-weight: 700; }
.lamp i { width: 2.125rem; height: 0.8125rem; border-radius: 0.25rem; border: 0.1562rem solid var(--ink); background: var(--l); box-shadow: 0 0 0.75rem var(--l); }
.lamp.off i { box-shadow: none; }
.combo { display: grid; grid-template-columns: 1fr 1fr; gap: 1.625rem; margin-top: 1.625rem; }
.combo .card { padding: 1.875rem 2rem; }
.combo h3 { font-size: 1.625rem; display: flex; align-items: center; gap: 0.75rem; }
.combo h3 .num { width: 2.5rem; height: 2.5rem; border-radius: 50%; display: inline-grid; place-items: center; background: var(--c); color: #fff; border: var(--line); font-size: 1.125rem; flex: none; }
.combo p { margin-top: 0.625rem; color: var(--ink-2); }

/* ---------- 特殊地块 ---------- */
.spots { padding: 9.375rem 0 2.5rem; }
.spot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.375rem; margin-top: 3.5rem; }
.spot { position: relative; overflow: hidden; border: var(--line); border-radius: 1.25rem; box-shadow: var(--shadow-s); background: #222; color: #fff; min-height: 20.625rem; display: flex; flex-direction: column; justify-content: flex-end; transition: transform .35s var(--ease), box-shadow .35s; }
.spot:hover { transform: translateY(-0.5rem) rotate(-1deg); box-shadow: 0.5rem 0.75rem 0 var(--ink); }
.spot img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.spot:hover img.bg { transform: scale(1.08); }
.spot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 30%, rgba(10, 10, 10, .88)); }
.spot .ico { position: absolute; z-index: 2; top: 1rem; right: 1rem; width: 5.125rem; filter: drop-shadow(0.1875rem 0.25rem 0 rgba(0, 0, 0, .5)); }
.spot .c { position: relative; z-index: 2; padding: 1.375rem; }
.spot .tag { background: var(--yellow); color: var(--ink); }
.spot.fun .tag { background: #e9c98a; }
.spot h3 { font-size: 1.75rem; margin-top: 0.625rem; }
.spot p { font-size: 0.9375rem; color: #e7dcc6; margin-top: 0.25rem; }

/* ---------- 道具卡 ---------- */
.items { margin-top: 9.375rem; padding: 7.5rem 0 8.125rem; background: var(--ink); color: var(--paper); border-block: var(--line); position: relative; overflow: hidden; }
.items::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle, rgba(255, 255, 255, .06) 0.0813rem, transparent 0.1rem) 0 0 / 0.875rem 0.875rem; }
.items .wrap { position: relative; }
.items .sec-title { color: var(--paper); }
.items .lead { color: #c9bc9f; }
.cfilter { display: flex; flex-wrap: wrap; gap: 0.625rem; margin-top: 1.875rem; }
.cfilter button { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem 0.4375rem; border-radius: 62.4375rem; border: 0.1562rem solid var(--paper); color: var(--paper); font-family: "HJ Title"; font-size: 0.9375rem; transition: .2s; }
.cfilter button i { width: 0.75rem; height: 0.75rem; border-radius: 50%; background: var(--cc); border: 0.125rem solid var(--paper); }
.cfilter button[aria-pressed="true"] { background: var(--paper); color: var(--ink); }
.deck { display: grid; grid-template-columns: repeat(auto-fill, minmax(10.625rem, 1fr)); gap: 1.75rem 1.375rem; margin-top: 2.75rem; }
.icard { perspective: 56.25rem; aspect-ratio: 382 / 484; cursor: pointer; transition: opacity .3s, transform .3s; }
.icard.hide { display: none; }
.icard.pop { animation: cardpop .55s var(--ease) var(--pd, 0s) both; }
@keyframes cardpop { from { opacity: 0; transform: translateY(1.875rem) rotate(var(--rot, 0deg)) scale(.9); } to { opacity: 1; transform: none; } }
/* 翻转是 3D 动画：正反两面都不能用 filter / box-shadow / border-radius（Chrome 会在翻转途中留下残影切片），
   投影和卡背外形都直接画在图片里（prepare.py 生成），两面再前后错开 1px，免得互相穿插 */
.icard .in { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .7s var(--ease); }
.icard:hover .in, .icard.flip .in { transform: rotateY(180deg); }
.icard .face, .icard .back { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.icard .face { transform: translateZ(1px); }
.icard .face img { width: 100%; height: 100%; }
.icard .face-name { position: absolute; left: 0; right: 0; top: 7%; text-align: center; font-family: "HJ Title"; font-size: clamp(1rem, 1.6vw, 1.375rem); color: #fff; -webkit-text-stroke: 0.3125rem var(--ink); paint-order: stroke fill; }
.icard .back { transform: rotateY(180deg) translateZ(1px); background: center / 100% 100% no-repeat; color: #fff; padding: 10% 13.3% 14%; display: flex; flex-direction: column; }  /* 顶部 10% 正好贴着卡背内框 */
.cc-blue .back { background-image: url(../assets/cards/back/blue.webp); } .cc-green .back { background-image: url(../assets/cards/back/green.webp); }
.cc-purple .back { background-image: url(../assets/cards/back/purple.webp); } .cc-gold .back { background-image: url(../assets/cards/back/gold.webp); }
.cc-red .back { background-image: url(../assets/cards/back/red.webp); }
.icard .back b { padding: 0.5rem 0; text-align: center; font-family: "HJ Title"; font-weight: normal; font-size: 1.1875rem; line-height: 1.3; -webkit-text-stroke: 0.25rem var(--ink); paint-order: stroke fill; }
.icard .back p { font-size: 0.8438rem; line-height: 1.55; background: rgba(0, 0, 0, .28); clip-path: polygon(0.5rem 0, calc(100% - 0.5rem) 0, 100% 0.5rem, 100% calc(100% - 0.5rem), calc(100% - 0.5rem) 100%, 0.5rem 100%, 0 calc(100% - 0.5rem), 0 0.5rem); padding: 0.625rem 0.5rem; flex: 1; overflow: hidden; text-align: center; }  /* 效果文字居中，行尾长短不一时左右也对称 */
.cc-blue { --cc: #2f86e0; } .cc-green { --cc: #3f9a43; } .cc-purple { --cc: #8e3fc0; } .cc-gold { --cc: #e09a10; } .cc-red { --cc: #d33a2c; } .cc-all { --cc: linear-gradient(90deg, #2f86e0, #3f9a43, #8e3fc0, #e09a10, #d33a2c); }

/* ---------- 事件 ---------- */
.events { padding: 9.375rem 0 2.5rem; overflow: hidden; }
.ev-row { display: flex; gap: 1.375rem; width: max-content; animation: marquee 80s linear infinite; padding: 0.75rem 0; }
.ev-row.rev { animation-direction: reverse; animation-duration: 95s; }
.events:hover .ev-row { animation-play-state: paused; }
.ev { width: 27.5rem; flex: none; position: relative; transition: transform .3s var(--ease); }
.ev:hover { transform: scale(1.05) rotate(-1deg); z-index: 2; }
.ev img { width: 100%; filter: drop-shadow(0.3125rem 0.375rem 0 rgba(0, 0, 0, .55)); }
.ev span { position: absolute; left: 50%; bottom: -0.625rem; transform: translateX(-50%); background: var(--yellow); border: 0.1562rem solid var(--ink); border-radius: 0.625rem; padding: 0.125rem 0.875rem 0.0625rem; font-family: "HJ Title"; box-shadow: 0.125rem 0.1875rem 0 var(--ink); white-space: nowrap; }

/* ---------- 购买 / 下载 ---------- */
.buy { padding: 9.375rem 0 0; }
.buy-box { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 3.125rem; align-items: center; padding: 4rem; border: var(--line); border-radius: 2.25rem; box-shadow: 0.75rem 0.875rem 0 var(--ink); overflow: hidden; color: #fff;
  background: repeating-conic-gradient(from 0deg at 80% 60%, #2f9a2a 0 7deg, #3aab33 7deg 14deg); }
.buy-box::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle, rgba(0, 0, 0, .15) 0.0813rem, transparent 0.1rem) 0 0 / 0.75rem 0.75rem; }
.buy-box > * { position: relative; z-index: 1; }
.buy-box .sec-title { color: #fff4dc; -webkit-text-stroke: .1em var(--ink); paint-order: stroke fill; text-shadow: .05em .07em 0 var(--ink); font-size: clamp(2.5rem, 5vw, 4.375rem); }
.buy-box p { margin-top: 1rem; color: #effbe6; font-size: 1.125rem; }
.dl { display: grid; gap: 0.875rem; margin-top: 1.875rem; }
.dl a { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; border-radius: 1.125rem; border: var(--line); background: var(--paper); color: var(--ink); box-shadow: var(--shadow-s); transition: transform .2s var(--ease); }
.dl a:hover { transform: translate(-0.125rem, -0.1875rem); }
.dl a b { font-family: "HJ Title"; font-weight: normal; font-size: 1.1875rem; display: block; }
.dl a small { color: var(--ink-2); }
.dl a .i { width: 2.875rem; height: 2.875rem; border-radius: 0.75rem; border: 0.1562rem solid var(--ink); display: grid; place-items: center; background: var(--yellow); font-family: "HJ Title"; flex: none; }
.dl a::after { content: "↗"; margin-left: auto; font-family: "HJ Title"; font-size: 1.375rem; }
/* 包装盒：正面为主，背面插画错位叠在后面，右下角是侧视提手细节 */
.buy-art { position: relative; }
.box-stack { position: relative; aspect-ratio: 1068 / 640; }
.box-stack .bx { position: absolute; border: var(--line); border-radius: 0.875rem; box-shadow: 0.5rem 0.625rem 0 rgba(0, 0, 0, .5); transition: transform .6s var(--ease); }
.box-stack .back { width: 82%; right: 0; top: 0; transform: rotate(4deg); }
.box-stack .front { width: 88%; left: 0; bottom: 7%; transform: rotate(-3deg); z-index: 1; }
.box-stack .side { width: 30%; right: 2%; bottom: 0; transform: rotate(6deg); z-index: 2; border-radius: 0.75rem; box-shadow: 0 0 0 0.3125rem #fff4dc, 0 0 0 0.5rem var(--ink), 0.375rem 0.5rem 0 0.5rem rgba(0, 0, 0, .45); }
.buy-box:hover .box-stack .back { transform: rotate(6deg) translate(0.625rem, -0.625rem); }
.buy-box:hover .box-stack .front { transform: rotate(-1.5deg) translateY(-0.5rem); }
.buy-art figcaption { margin-top: 1.625rem; text-align: center; font-size: 0.8125rem; color: #dff3d4; }
.buy-status { margin-top: 1.125rem; display: inline-flex; align-items: center; gap: 0.625rem; background: rgba(0, 0, 0, .3); border: 0.125rem solid rgba(255, 255, 255, .45); border-radius: 62.4375rem; padding: 0.375rem 1rem; font-size: 0.9375rem; }
.buy-status i { width: 0.625rem; height: 0.625rem; border-radius: 50%; background: var(--yellow); animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .2; } }

@media (max-width: 1100px) {
  .fg-hero-grid { grid-template-columns: 1fr; gap: 4.375rem; padding-bottom: 10.625rem; }
  .fg-hero .inner { text-align: center; }
  .fg-hero .lead { margin-inline: auto; }
  .fg-hero .cta { justify-content: center; }
  .poster { width: min(45rem, 100%); margin: 0 auto; }
  .sync-grid { grid-template-columns: 1fr; gap: 1.875rem; }
  .wire { display: none; }
  .sync-feats { grid-template-columns: 1fr 1fr; }
  .crew-body, .explore-grid, .buy-box { grid-template-columns: 1fr; }
  .crew-art { height: 27.5rem; }
  .info { position: static; }
  .estate-grid, .spot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .sync-feats, .estate-grid, .spot-grid, .combo { grid-template-columns: 1fr; }
  .city { width: 15rem; }
  .ev { width: 18.75rem; }
  .buy-box { padding: 1.875rem; }
  .parade { height: 5.625rem; }
  .parade-track img { width: 5.75rem; }
  .parade-track { gap: 4.375rem; }
  .poster .stamp { width: 5.25rem; height: 5.25rem; font-size: 0.6875rem; }
  .poster .stamp b { font-size: 1.875rem; }
  .poster .s1 { width: 1.875rem; } .poster .s2 { width: 1.5rem; } .poster .s3 { width: 1.625rem; }
  .skill { grid-template-columns: 1fr; gap: 0.5rem; }
  .skill b { justify-self: start; padding: 0.1875rem 0.875rem 0.125rem; }
  .deck { grid-template-columns: repeat(2, 1fr); }
}
