:root {
  font-family: Inter, "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  color: #eaf7ff;
  background: #06182a;
  font-synthesis: none;
  --ink: #edf9ff;
  --muted: #8fc9eb;
  --cyan: #51d8ff;
  --blue: #1a78ca;
  --blue-deep: #082b4d;
  --panel: rgba(6, 28, 51, 0.9);
  --panel-2: rgba(12, 51, 88, 0.9);
  --line: rgba(112, 202, 255, 0.34);
  --orange: #ff9538;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: #06182a; }
body { margin: 0; min-width: 320px; min-height: 100vh; overflow-x: hidden; background: radial-gradient(circle at 20% 0%, #174d7d 0, transparent 28%), radial-gradient(circle at 86% 8%, rgba(26, 126, 201, 0.34), transparent 25%), linear-gradient(180deg, #07192b 0, #061320 54%, #04101c 100%); }
button, a { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

#app { min-height: 100vh; }
.home-page, .battle-page { min-height: 100vh; position: relative; isolation: isolate; }
.home-page::before, .battle-page::before { content: ""; position: fixed; inset: 0; z-index: -2; opacity: .36; pointer-events: none; background-image: linear-gradient(rgba(94, 190, 244, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(94, 190, 244, .05) 1px, transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(180deg, #000, transparent 78%); }
.home-page::after, .battle-page::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(circle at 50% 16%, rgba(57, 191, 255, .12), transparent 23%), radial-gradient(circle at 28% 72%, rgba(15, 105, 171, .18), transparent 24%); }

.site-header { width: min(1440px, calc(100% - 36px)); margin: 0 auto; min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid rgba(105, 202, 255, .2); }
.site-brand { display: flex; align-items: center; gap: 15px; }
.site-brand img { width: 138px; height: 52px; object-fit: contain; object-position: left center; filter: drop-shadow(0 8px 18px rgba(255, 149, 56, .18)); }
.brand-copy { display: flex; flex-direction: column; gap: 2px; border-left: 1px solid rgba(137, 211, 255, .25); padding-left: 14px; }
.brand-copy strong { font-size: 17px; letter-spacing: .09em; }
.brand-copy span { color: #69cfff; font-size: 10px; font-weight: 800; letter-spacing: .18em; }
.site-nav { display: flex; gap: 10px; }
.nav-link { border: 1px solid rgba(113, 201, 255, .32); background: rgba(9, 37, 64, .7); color: #dff6ff; min-height: 42px; padding: 0 17px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; transition: .2s ease; }
.nav-link:hover { transform: translateY(-2px); border-color: rgba(123, 220, 255, .7); background: rgba(19, 71, 116, .8); }
.nav-link.sponsor { color: #ffbd78; }

.hero-section { width: min(1440px, calc(100% - 36px)); min-height: 680px; margin: 0 auto; display: grid; grid-template-columns: minmax(440px, .88fr) minmax(560px, 1.12fr); align-items: center; gap: clamp(35px, 5vw, 80px); padding: 70px 0 48px; }
.hero-copy { position: relative; z-index: 2; }
.eyebrow { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-left: 3px solid var(--orange); background: linear-gradient(90deg, rgba(255, 149, 56, .16), transparent); color: #ffbd7e; font-size: 12px; font-weight: 900; letter-spacing: .18em; }
.game-title-wrap { margin-top: 26px; }
.game-title { margin: 0; line-height: .96; display: flex; flex-direction: column; align-items: flex-start; }
.game-title span { font-size: clamp(54px, 7vw, 104px); letter-spacing: -.08em; color: #f4fbff; text-shadow: 0 0 28px rgba(68, 197, 255, .18); }
.game-title b { font-size: clamp(56px, 7.5vw, 112px); color: var(--orange); letter-spacing: -.04em; margin-top: 4px; text-shadow: 0 0 30px rgba(255, 149, 56, .18); }
.english-title { margin-top: 14px; font-size: 11px; color: #64ccff; letter-spacing: .2em; font-weight: 800; }
.hero-tagline { margin: 27px 0 12px; color: #d6efff; font-weight: 900; font-size: clamp(17px, 2vw, 23px); letter-spacing: .04em; }
.hero-intro { max-width: 640px; margin: 0; color: #8dbad6; font-size: 14px; line-height: 1.9; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 34px; }
.primary-action, .secondary-action, .ghost-button { border: 0; border-radius: 7px; min-height: 54px; padding: 0 24px; font-weight: 900; transition: .2s ease; }
.primary-action { color: #15202a; background: linear-gradient(180deg, #ffc369, #ff8a29); box-shadow: 0 12px 30px rgba(255, 133, 37, .22), inset 0 1px rgba(255,255,255,.55); }
.primary-action:hover { transform: translateY(-3px); box-shadow: 0 18px 34px rgba(255, 133, 37, .3); }
.secondary-action { color: #e9faff; border: 1px solid rgba(105, 213, 255, .48); background: linear-gradient(180deg, rgba(30, 110, 176, .9), rgba(9, 57, 100, .92)); box-shadow: inset 0 1px rgba(255,255,255,.14); }
.secondary-action:hover, .ghost-button:hover { transform: translateY(-3px); border-color: #71dfff; }
.primary-action.compact, .secondary-action.compact { min-height: 44px; padding: 0 20px; }
.ghost-button { min-height: 44px; color: #b8def4; border: 1px solid rgba(118, 196, 239, .25); background: rgba(10, 43, 74, .65); }

.hero-visual { min-height: 580px; position: relative; overflow: hidden; border: 1px solid rgba(102, 201, 255, .3); border-radius: 14px; background: linear-gradient(180deg, rgba(26, 90, 143, .48), rgba(5, 25, 44, .9)), radial-gradient(circle at 50% 45%, rgba(57, 211, 255, .22), transparent 33%); box-shadow: var(--shadow), inset 0 0 0 1px rgba(255,255,255,.04); }
.hero-visual::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(109, 210, 255, .09) 1px, transparent 1px), linear-gradient(90deg, rgba(109, 210, 255, .08) 1px, transparent 1px); background-size: 54px 54px; transform: perspective(700px) rotateX(58deg) scale(1.25) translateY(165px); transform-origin: bottom; opacity: .75; }
.hero-visual::after { content: ""; position: absolute; inset: 0; border: 12px solid rgba(4, 19, 32, .45); box-shadow: inset 0 0 40px rgba(54, 206, 255, .17); pointer-events: none; }
.arena-grid { position: absolute; inset: 23% 7% 10%; border: 1px solid rgba(88, 209, 255, .34); background: repeating-linear-gradient(90deg, rgba(43, 81, 104, .62) 0 52px, rgba(22, 48, 67, .68) 52px 54px), repeating-linear-gradient(0deg, rgba(34, 69, 91, .72) 0 52px, rgba(17, 43, 61, .7) 52px 54px); transform: perspective(700px) rotateX(56deg); transform-origin: bottom; box-shadow: 0 0 45px rgba(44, 188, 255, .2); }
.reactor-ring { position: absolute; border: 2px solid rgba(91, 222, 255, .56); border-radius: 50%; left: 50%; top: 45%; transform: translate(-50%, -50%); box-shadow: 0 0 34px rgba(60, 215, 255, .28), inset 0 0 28px rgba(60, 215, 255, .2); }
.ring-one { width: 280px; height: 280px; animation: rotate 14s linear infinite; }
.ring-two { width: 390px; height: 390px; border-style: dashed; opacity: .42; animation: rotate-reverse 20s linear infinite; }
.energy-core { position: absolute; left: 50%; top: 44%; width: 132px; height: 132px; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle at 33% 26%, #fff, #7aeaff 18%, #1fbce9 48%, #075c95 70%, #041f38 100%); box-shadow: 0 0 34px #41d9ff, 0 0 100px rgba(34, 196, 239, .48); display: grid; place-items: center; animation: pulse 2.2s ease-in-out infinite; }
.energy-core span { font-size: 28px; font-weight: 1000; color: #eaffff; letter-spacing: .04em; text-shadow: 0 2px 10px #057ba7; }
.energy-core i { position: absolute; width: 8px; height: 8px; background: white; border-radius: 50%; box-shadow: 0 0 10px #fff; }
.energy-core i:nth-child(1) { top: 25px; left: 25px; }.energy-core i:nth-child(2) { bottom: 30px; right: 26px; }.energy-core i:nth-child(3) { top: 49px; right: 18px; }
.hero-unit { position: absolute; width: 88px; height: 122px; z-index: 3; filter: drop-shadow(0 12px 14px rgba(0,0,0,.4)); }
.hero-unit b { position: absolute; bottom: -8px; width: 100%; text-align: center; font-size: 13px; color: white; text-shadow: 0 2px 8px #000; }
.hero-viva { left: 22%; bottom: 18%; }.hero-vivaba { right: 20%; bottom: 18%; }
.unit-head { position: absolute; width: 58px; height: 54px; left: 15px; top: 4px; border: 3px solid #102b3d; border-radius: 48% 48% 42% 42%; background: linear-gradient(180deg, #e9f8ff, #8fcff4); }
.hero-vivaba .unit-head { background: linear-gradient(180deg, #ffe678, #ffad29); }
.unit-head::before { content: ""; position: absolute; left: 7px; right: 7px; top: 14px; height: 18px; border-radius: 8px; background: linear-gradient(180deg, #79efff, #1384c6); border: 2px solid #103049; box-shadow: 0 0 12px rgba(75, 220, 255, .6); }
.unit-body { position: absolute; width: 54px; height: 54px; left: 17px; top: 51px; border-radius: 14px 14px 20px 20px; border: 3px solid #102b3d; background: linear-gradient(180deg, #2fa5ee, #12568e); }
.hero-vivaba .unit-body { background: linear-gradient(180deg, #ffab2e, #d56a18); }
.unit-cannon { position: absolute; right: -2px; top: 66px; width: 32px; height: 18px; border-radius: 6px; background: linear-gradient(180deg, #70efff, #1679b1); border: 3px solid #102b3d; }
.water-orb { position: absolute; width: 42px; height: 42px; border-radius: 50%; background: radial-gradient(circle at 30% 25%, #fff, #7df2ff 22%, #1caddb 58%, #075389 100%); box-shadow: 0 0 22px rgba(66, 221, 255, .64); animation: float 2.8s ease-in-out infinite; }
.orb-a { left: 12%; top: 32%; }.orb-b { right: 12%; top: 35%; animation-delay: -.8s; }.orb-c { right: 36%; bottom: 14%; animation-delay: -1.4s; }
.water-beam { position: absolute; z-index: 2; background: linear-gradient(90deg, transparent, #96f7ff 20%, #3dd5ff 50%, #96f7ff 80%, transparent); opacity: .74; box-shadow: 0 0 28px #25c7ff; }
.beam-h { left: 8%; right: 8%; height: 9px; top: 59%; }.beam-v { top: 20%; bottom: 9%; width: 9px; left: 50%; transform: translateX(-50%); background: linear-gradient(180deg, transparent, #96f7ff 20%, #3dd5ff 50%, #96f7ff 80%, transparent); }
.visual-caption { position: absolute; left: 24px; bottom: 20px; padding-left: 12px; border-left: 3px solid #4cdcff; display: flex; flex-direction: column; gap: 2px; }
.visual-caption small { color: #65d7ff; font-size: 9px; letter-spacing: .18em; }.visual-caption strong { font-size: 14px; }

.system-strip { width: min(1440px, calc(100% - 36px)); margin: 0 auto 58px; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid rgba(104, 197, 245, .19); background: rgba(7, 29, 50, .66); }
.system-card { padding: 25px 24px; min-height: 150px; border-right: 1px solid rgba(104, 197, 245, .17); }
.system-card:last-child { border-right: 0; }
.system-card small { color: #52d1ff; font-weight: 900; letter-spacing: .16em; }.system-card h3 { margin: 10px 0 8px; font-size: 18px; }.system-card p { margin: 0; color: #789eb8; font-size: 13px; line-height: 1.7; }
.site-footer { width: min(1440px, calc(100% - 36px)); margin: 0 auto; padding: 28px 0 35px; border-top: 1px solid rgba(104, 197, 245, .18); color: #7da6bf; font-size: 12px; line-height: 1.8; }
.site-footer strong { color: #e7f8ff; }

.modal-backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(1, 9, 17, .78); backdrop-filter: blur(12px); display: grid; place-items: center; padding: 20px; }
.modal { width: min(920px, 96vw); max-height: 92vh; overflow: auto; border: 1px solid rgba(110, 204, 255, .43); background: linear-gradient(180deg, rgba(14, 54, 91, .98), rgba(5, 26, 46, .98)); box-shadow: 0 30px 90px rgba(0,0,0,.56); border-radius: 12px; }
.modal-head { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 24px; border-bottom: 1px solid rgba(110, 204, 255, .19); }
.modal-head small { color: #59d2ff; letter-spacing: .18em; font-size: 9px; }.modal-head h2 { margin: 4px 0 0; font-size: 22px; }
.close-button { width: 42px; height: 42px; border: 1px solid rgba(121, 205, 249, .3); color: #d9f4ff; background: rgba(10, 43, 72, .8); font-size: 25px; border-radius: 6px; }
.modal-intro { padding: 0 24px; color: #91b8d0; line-height: 1.8; }
.qr-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; padding: 16px 24px 28px; }
.qr-card { background: rgba(255,255,255,.95); color: #142738; padding: 18px; text-align: center; border-radius: 8px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.qr-card img { width: min(230px, 100%); aspect-ratio: 1; object-fit: contain; }.qr-card span { color: #637282; font-size: 12px; }
.hero-tabs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 18px 24px 4px; }
.hero-tab { min-height: 50px; border: 1px solid rgba(118, 204, 247, .26); border-radius: 6px; color: #a8d5ed; background: rgba(8, 36, 62, .65); font-weight: 900; }
.hero-tab.active { color: #fff; border-color: #4ed8ff; background: linear-gradient(180deg, #176ea9, #0d4b78); box-shadow: 0 0 22px rgba(54, 211, 255, .14); }
.skin-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 18px 24px 24px; }
.skin-card { min-height: 88px; text-align: left; display: grid; grid-template-columns: 48px 1fr; grid-template-rows: auto auto; gap: 4px 12px; align-items: center; color: #c7e7f7; background: rgba(7, 31, 54, .78); border: 1px solid rgba(116, 203, 247, .2); border-radius: 7px; padding: 12px; }
.skin-card.selected { border-color: #54d8ff; background: linear-gradient(180deg, rgba(21, 102, 158, .78), rgba(8, 50, 86, .84)); box-shadow: inset 0 0 0 1px rgba(111, 225, 255, .17), 0 0 25px rgba(39, 191, 239, .14); }
.skin-card strong { align-self: end; font-size: 14px; }.skin-card span { color: #729db7; font-size: 11px; align-self: start; }.skin-swatch { grid-row: 1 / 3; width: 44px; height: 44px; border: 2px solid #0e293c; border-radius: 7px; background: linear-gradient(135deg, #e8faff, #24a7e6); box-shadow: inset 0 1px rgba(255,255,255,.4); }
.skin-orange, .skin-blaze { background: linear-gradient(135deg, #ffe59a, #ff7725); }.skin-deep { background: linear-gradient(135deg, #79dbff, #052a57); }.skin-galaxy, .skin-engineer { background: linear-gradient(135deg, #78e8ff, #7756db); }.skin-support { background: linear-gradient(135deg, #fff0a0, #ffab28); }.skin-sailor { background: linear-gradient(135deg, #f2fbff, #4abcf4); }
.dual-loadout { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; padding: 18px 24px 4px; }.hero-loadout-card { border: 1px solid rgba(112, 202, 248, .2); background: rgba(8, 35, 61, .54); }.loadout-portrait { min-height: 112px; padding: 18px; background: radial-gradient(circle at 80% 20%, rgba(67, 206, 255, .2), transparent 30%), linear-gradient(135deg, #12649c, #082e52); display: flex; flex-direction: column; justify-content: flex-end; }.loadout-portrait.vivaba { background: radial-gradient(circle at 80% 20%, rgba(255, 173, 50, .23), transparent 30%), linear-gradient(135deg, #805522, #3f2b17); }.loadout-portrait span { font-size: 27px; font-weight: 1000; }.loadout-portrait small { color: #b7dbee; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 18px 24px 24px; border-top: 1px solid rgba(102, 195, 240, .16); }

.battle-page { padding-bottom: 22px; }
.battle-topbar { min-height: 82px; padding: 0 18px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; border-bottom: 1px solid rgba(93, 194, 246, .3); background: linear-gradient(180deg, rgba(9, 38, 68, .96), rgba(5, 24, 44, .94)); box-shadow: 0 12px 28px rgba(0,0,0,.22); }
.battle-brand { display: flex; align-items: center; gap: 13px; }.battle-brand img { width: 95px; height: 46px; object-fit: contain; }.battle-brand div { display: flex; flex-direction: column; }.battle-brand strong { font-size: 16px; letter-spacing: .06em; }.battle-brand span { color: #50cfff; font-size: 9px; letter-spacing: .15em; font-weight: 900; }
.battle-title { text-align: center; position: relative; min-width: 340px; }.battle-title::before, .battle-title::after { content: ""; position: absolute; top: 50%; width: 48px; height: 2px; background: linear-gradient(90deg, transparent, #51d8ff); }.battle-title::before { right: calc(100% + 16px); }.battle-title::after { left: calc(100% + 16px); transform: scaleX(-1); }.battle-title h1 { margin: 0; font-size: clamp(25px, 3vw, 39px); letter-spacing: -.05em; }.battle-title small { display: block; margin-top: 4px; color: #4bd2ff; font-size: 9px; font-weight: 900; letter-spacing: .16em; }
.battle-metrics { display: flex; justify-content: flex-end; gap: 12px; }.metric { min-width: 94px; padding-left: 13px; border-left: 1px solid rgba(116, 204, 246, .3); display: flex; flex-direction: column; }.metric small { color: #79b6d6; font-size: 9px; font-weight: 900; letter-spacing: .14em; }.metric strong { color: #fff; font-size: 23px; font-variant-numeric: tabular-nums; }.metric:last-child strong { color: #ff9a42; }
.arena-shell { width: min(1560px, calc(100% - 22px)); margin: 12px auto 0; display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 12px; }
.arena-frame { min-width: 0; border: 1px solid rgba(95, 195, 245, .38); background: linear-gradient(180deg, #0a2e51, #071b31); box-shadow: var(--shadow); }
.arena-head, .arena-foot { min-height: 38px; padding: 0 13px; display: flex; align-items: center; justify-content: space-between; gap: 18px; color: #8ed7fa; font-size: 10px; font-weight: 900; letter-spacing: .12em; background: linear-gradient(180deg, #124b7e, #092d50); border-bottom: 1px solid rgba(116, 203, 249, .2); }
.arena-live { color: #ff7c5f; }.arena-foot { justify-content: center; min-height: 30px; border-top: 1px solid rgba(116, 203, 249, .15); border-bottom: 0; background: #071d34; letter-spacing: .05em; }
.canvas-wrap { position: relative; background: #071827; overflow: hidden; }.game-canvas { display: block; width: 100%; height: auto; aspect-ratio: 13 / 9; image-rendering: auto; }
.battle-sidebar { display: flex; flex-direction: column; gap: 10px; }.hud-panel { border: 1px solid rgba(100, 201, 251, .35); background: linear-gradient(180deg, rgba(13, 58, 99, .94), rgba(5, 29, 51, .95)); box-shadow: inset 0 1px rgba(255,255,255,.06); }.hud-panel h2 { margin: 0; min-height: 35px; padding: 0 12px; display: flex; align-items: center; font-size: 11px; letter-spacing: .12em; color: #8ddcff; background: linear-gradient(180deg, rgba(29, 101, 162, .72), rgba(9, 48, 82, .72)); border-bottom: 1px solid rgba(105, 202, 250, .18); }
.player-list { padding: 8px; display: flex; flex-direction: column; gap: 8px; }.player-card { display: grid; grid-template-columns: 70px 1fr; gap: 10px; padding: 9px; border: 1px solid rgba(114, 203, 247, .17); background: rgba(1, 19, 34, .38); }.player-card.vivaba { border-color: rgba(255, 169, 67, .22); }.player-card.inactive { opacity: .45; filter: grayscale(1); }
.player-portrait { width: 70px; height: 82px; position: relative; overflow: hidden; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 7px; border: 1px solid rgba(87, 215, 255, .45); background: radial-gradient(circle at 50% 32%, #d7f7ff 0 12%, #38aee6 13% 28%, #0e5387 29% 58%, #08243c 59%); }.player-card.vivaba .player-portrait { border-color: rgba(255, 177, 62, .55); background: radial-gradient(circle at 50% 32%, #fff0b2 0 12%, #ffad2e 13% 28%, #9c551d 29% 58%, #342313 59%); }.player-portrait i { position: absolute; width: 48px; height: 48px; top: 14px; border-radius: 48% 48% 42% 42%; border: 3px solid #0c2638; background: rgba(245, 252, 255, .88); }.player-card.vivaba .player-portrait i { background: #ffd54f; }.player-portrait i::after { content: ""; position: absolute; left: 5px; right: 5px; top: 14px; height: 15px; border-radius: 7px; background: linear-gradient(180deg, #77eaff, #147daf); border: 2px solid #0c2638; }.player-portrait span { position: relative; z-index: 2; font-size: 10px; font-weight: 900; text-shadow: 0 2px 5px #000; }
.player-meta h3 { margin: 2px 0 5px; font-size: 16px; }.player-meta p { margin: 0 0 7px; color: #f5fbff; font-size: 13px; }.player-meta small { color: #78a7c2; font-size: 10px; }.stat-bars { display: flex; flex-direction: column; gap: 4px; margin-bottom: 5px; }.stat-row { display: grid; grid-template-columns: 30px 1fr; align-items: center; gap: 5px; color: #8cb9d2; font-size: 9px; }.segments { display: flex; gap: 3px; }.segments i { flex: 1; height: 5px; background: #183750; transform: skewX(-14deg); }.segments i.active.viva { background: #38bce8; box-shadow: 0 0 7px rgba(50, 203, 245, .35); }.segments i.active.vivaba { background: #ff9d31; box-shadow: 0 0 7px rgba(255, 158, 49, .28); }
.mission-panel { padding: 12px; }.mission-panel strong { font-size: 16px; }.mission-panel p { margin: 7px 0 12px; min-height: 38px; color: #91bad1; font-size: 12px; line-height: 1.6; }.mission-progress { height: 7px; overflow: hidden; background: #0d263b; border: 1px solid rgba(93, 181, 225, .15); }.mission-progress i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, #1b85cc, #59e1ff); box-shadow: 0 0 11px #38c9f2; transition: width .25s ease; }
.equipment-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 9px; }.equipment-cell { min-height: 66px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 1px solid rgba(100, 201, 250, .18); background: rgba(2, 20, 36, .35); }.equipment-cell b { font-size: 21px; }.equipment-cell span { color: #80abc5; font-size: 8px; }
.system-buttons { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; padding: 9px; }.system-button { min-height: 37px; border: 1px solid rgba(107, 204, 250, .27); color: #dcf5ff; background: linear-gradient(180deg, #1a6eaa, #0c4778); font-size: 11px; font-weight: 900; }.system-button:hover { border-color: #59d8ff; }.sponsor-system { grid-column: 1 / -1; color: #ffc07e; }
.battle-bottom { width: min(1560px, calc(100% - 22px)); min-height: 82px; margin: 10px auto 0; display: grid; grid-template-columns: 220px 1fr; border: 1px solid rgba(94, 191, 241, .34); background: linear-gradient(180deg, #0a2e50, #061b31); }.arena-id { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-right: 1px solid rgba(102, 197, 245, .17); }.arena-id i { width: 52px; height: 52px; border: 2px solid #43d6ff; border-radius: 50%; box-shadow: 0 0 17px rgba(62, 208, 255, .25), inset 0 0 18px rgba(62, 208, 255, .2); position: relative; }.arena-id i::before, .arena-id i::after { content: ""; position: absolute; background: #43d6ff; opacity: .45; }.arena-id i::before { left: 50%; top: 4px; bottom: 4px; width: 1px; }.arena-id i::after { top: 50%; left: 4px; right: 4px; height: 1px; }.arena-id div { display: flex; flex-direction: column; }.arena-id small { color: #65cbf6; font-size: 9px; }.arena-id strong { font-size: 15px; }.arena-id span { color: #6f9eb9; font-size: 9px; }
.bottom-stats { display: grid; grid-template-columns: repeat(5, 1fr); }.bottom-stat { min-width: 0; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; align-content: center; column-gap: 10px; padding: 10px 16px; border-right: 1px solid rgba(101, 198, 245, .14); }.bottom-stat:last-child { border-right: 0; }.bottom-stat small { grid-column: 1 / 3; color: #72a8c7; font-size: 8px; letter-spacing: .1em; }.bottom-stat b { font-size: 24px; align-self: center; }.bottom-stat strong { align-self: center; color: #e9f9ff; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.battle-footer { width: min(1560px, calc(100% - 22px)); min-height: 42px; margin: 0 auto; display: flex; align-items: center; justify-content: flex-end; gap: 12px; color: #318fc6; font-size: 10px; letter-spacing: .12em; }.battle-footer strong { color: #51d8ff; }.battle-footer button { border: 0; background: transparent; color: #6ebbe6; }
.mobile-controls { display: none; position: absolute; inset: 0; pointer-events: none; z-index: 10; }.mobile-dpad { position: absolute; left: 16px; bottom: 16px; width: 142px; height: 142px; }.touch-control { pointer-events: auto; touch-action: none; position: absolute; width: 46px; height: 46px; border-radius: 8px; border: 1px solid rgba(177, 229, 255, .55); color: #fff; background: rgba(8, 59, 99, .72); font-weight: 900; }.touch-control.up { left: 48px; top: 0; }.touch-control.down { left: 48px; bottom: 0; }.touch-control.left { left: 0; top: 48px; }.touch-control.right { right: 0; top: 48px; }.touch-control.bubble { right: 18px; bottom: 28px; width: 76px; height: 76px; border-radius: 50%; font-size: 27px; background: rgba(18, 126, 179, .78); }
.battle-result-backdrop { position: absolute; inset: 0; z-index: 60; display: grid; place-items: center; background: rgba(2, 10, 18, .78); backdrop-filter: blur(9px); }.battle-result { width: min(520px, 90vw); padding: 36px; text-align: center; border: 1px solid rgba(100, 207, 255, .48); background: linear-gradient(180deg, #104d7e, #071f37); box-shadow: 0 30px 80px rgba(0,0,0,.5); }.battle-result small { color: #52d5ff; letter-spacing: .17em; }.battle-result h2 { margin: 10px 0; font-size: 34px; }.battle-result p { color: #9cc4da; line-height: 1.7; }.battle-result.success h2 { color: #77f1ff; }.battle-result.failure h2 { color: #ff836e; }.result-actions { display: flex; justify-content: center; gap: 10px; margin-top: 24px; }

@keyframes rotate { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes rotate-reverse { to { transform: translate(-50%, -50%) rotate(-360deg); } }
@keyframes pulse { 50% { transform: translate(-50%, -50%) scale(1.06); } }
@keyframes float { 50% { transform: translateY(-9px); } }

@media (max-width: 1180px) {
  .hero-section { grid-template-columns: 1fr; }
  .hero-copy { max-width: 820px; }
  .hero-visual { min-height: 600px; }
  .system-strip { grid-template-columns: repeat(2, 1fr); }
  .system-card:nth-child(2) { border-right: 0; }
  .system-card:nth-child(-n+2) { border-bottom: 1px solid rgba(104, 197, 245, .17); }
  .battle-title { min-width: 260px; }
  .battle-brand div { display: none; }
  .arena-shell { grid-template-columns: minmax(0, 1fr) 280px; }
  .battle-bottom { grid-template-columns: 180px 1fr; }
  .bottom-stat { padding: 8px 10px; }
}

@media (max-width: 920px) {
  .site-header { min-height: 72px; }.site-brand img { width: 104px; }.brand-copy { display: none; }
  .hero-section { padding-top: 44px; }.hero-visual { min-height: 500px; }
  .battle-topbar { grid-template-columns: auto 1fr; }.battle-title { text-align: left; min-width: 0; }.battle-title::before, .battle-title::after { display: none; }.battle-brand div { display: none; }.battle-metrics { grid-column: 1 / -1; justify-content: stretch; padding-bottom: 9px; }.metric { flex: 1; }
  .arena-shell { grid-template-columns: 1fr; }.battle-sidebar { display: grid; grid-template-columns: repeat(2, 1fr); }.hud-panel:first-child { grid-row: span 2; }.battle-bottom { grid-template-columns: 1fr; }.arena-id { border-right: 0; border-bottom: 1px solid rgba(102,197,245,.17); }.mobile-controls { display: block; }
}

@media (max-width: 680px) {
  .site-header { width: calc(100% - 20px); }.site-nav .nav-link:first-child { display: none; }.nav-link { padding: 0 12px; min-height: 38px; font-size: 11px; }
  .hero-section, .system-strip, .site-footer { width: calc(100% - 20px); }.hero-section { display: block; min-height: 0; }.game-title span { font-size: 48px; }.game-title b { font-size: 58px; }.hero-visual { min-height: 420px; margin-top: 35px; }.ring-two { width: 300px; height: 300px; }.ring-one { width: 220px; height: 220px; }.energy-core { width: 105px; height: 105px; }.system-strip { grid-template-columns: 1fr; }.system-card { border-right: 0; border-bottom: 1px solid rgba(104,197,245,.17); }.system-card:last-child { border-bottom: 0; }
  .skin-grid, .dual-loadout, .qr-grid { grid-template-columns: 1fr; }.hero-tabs { grid-template-columns: 1fr; }.modal-actions { flex-direction: column-reverse; }.modal-actions button { width: 100%; }
  .battle-topbar { padding: 8px 10px; gap: 10px; }.battle-brand img { width: 74px; }.battle-title h1 { font-size: 22px; }.battle-title small { display: none; }.battle-metrics { gap: 4px; }.metric { min-width: 0; padding-left: 7px; }.metric strong { font-size: 18px; }.arena-shell, .battle-bottom, .battle-footer { width: calc(100% - 10px); }.battle-sidebar { grid-template-columns: 1fr; }.hud-panel:first-child { grid-row: auto; }.bottom-stats { grid-template-columns: repeat(2, 1fr); }.bottom-stat { border-bottom: 1px solid rgba(101,198,245,.14); }.arena-foot { display: none; }.canvas-wrap { min-height: 420px; display: flex; align-items: center; }.game-canvas { min-width: 650px; transform-origin: left center; }.canvas-wrap { overflow-x: auto; }
}

/* =========================================================
   水泡大作战2.0 · 视觉原型版：首页与美术资源重构
   ========================================================= */
.home-page-visual {
  min-height: 100vh;
  overflow: hidden;
  background: #020b17;
}
.home-page-visual::before,
.home-page-visual::after { display: none; }
.cinematic-header {
  position: absolute;
  z-index: 30;
  left: 0;
  right: 0;
  top: 0;
  width: 100%;
  min-height: 76px;
  padding: 10px clamp(18px, 3vw, 54px);
  border: 0;
  background: linear-gradient(180deg, rgba(2, 11, 25, .93), rgba(2, 13, 29, .58), transparent);
}
.visual-brand {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: default;
}
.visual-brand img {
  width: clamp(170px, 20vw, 310px);
  height: 68px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 4px 12px rgba(255, 139, 0, .34));
}
.visual-nav { gap: 9px; }
.sci-nav {
  min-height: 42px;
  border-radius: 3px;
  border: 1px solid rgba(60, 180, 255, .52);
  color: #f0f8ff;
  background: linear-gradient(180deg, rgba(10, 49, 88, .96), rgba(3, 22, 45, .94));
  box-shadow: inset 0 0 0 2px rgba(54, 161, 231, .08), 0 0 18px rgba(0, 133, 227, .12);
  clip-path: polygon(9px 0, calc(100% - 9px) 0, 100% 9px, 100% calc(100% - 9px), calc(100% - 9px) 100%, 9px 100%, 0 calc(100% - 9px), 0 9px);
}
.sci-nav:hover {
  color: white;
  border-color: #ff9d2e;
  background: linear-gradient(180deg, rgba(164, 72, 4, .97), rgba(72, 28, 0, .96));
  box-shadow: 0 0 24px rgba(255, 139, 25, .26), inset 0 0 0 2px rgba(255, 184, 79, .1);
}
.cinematic-hero {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 88px 20px 78px;
  position: relative;
  overflow: hidden;
}
.cinematic-stage {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(180deg, rgba(0, 7, 20, .12), rgba(0, 9, 23, .08) 55%, rgba(0, 7, 17, .88)), url('./assets/art/home-arena.webp');
  background-size: cover;
  background-position: center;
  transform: scale(1.025);
}
.stage-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 48%, transparent 0 27%, rgba(0, 5, 14, .08) 47%, rgba(0, 5, 14, .52) 100%),
    linear-gradient(90deg, rgba(0, 8, 20, .45), transparent 22%, transparent 78%, rgba(0, 8, 20, .45));
}
.stage-energy {
  position: absolute;
  left: 50%;
  top: 18%;
  width: 44vw;
  height: 44vw;
  max-width: 720px;
  max-height: 720px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(63, 212, 255, .23), rgba(26, 135, 219, .08) 42%, transparent 68%);
  filter: blur(7px);
  animation: energyPulse 3.4s ease-in-out infinite;
}
.energy-beam-art {
  position: absolute;
  left: 50%;
  top: 13%;
  width: min(44vw, 540px);
  height: 75%;
  object-fit: contain;
  transform: translateX(-50%);
  opacity: .68;
  mix-blend-mode: screen;
  filter: saturate(1.25) drop-shadow(0 0 30px rgba(40, 189, 255, .55));
  pointer-events: none;
  animation: beamBreath 2.8s ease-in-out infinite;
}
.hero-character {
  position: absolute;
  bottom: 4.5%;
  width: min(38vw, 590px);
  max-height: 78vh;
  object-fit: contain;
  z-index: 3;
  filter: drop-shadow(0 28px 34px rgba(0, 0, 0, .58)) drop-shadow(0 0 20px rgba(40, 170, 255, .16));
  user-select: none;
  pointer-events: none;
}
.hero-character-viva {
  left: -1.7%;
  transform: rotate(-3deg);
  animation: heroFloatLeft 4.6s ease-in-out infinite;
}
.hero-character-vivaba {
  right: -.8%;
  transform: rotate(3deg);
  animation: heroFloatRight 4.2s ease-in-out infinite;
}
.floating-orb {
  position: absolute;
  z-index: 2;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 24%, #fff 0 8%, #8cf2ff 18%, #169fdd 52%, #06457b 78%, rgba(0, 26, 56, .2) 100%);
  box-shadow: 0 0 18px rgba(65, 210, 255, .82), inset -10px -12px 18px rgba(0, 29, 92, .52);
  opacity: .86;
}
.orb-one { width: 34px; height: 34px; left: 16%; top: 31%; animation: orbFloat 4s ease-in-out infinite; }
.orb-two { width: 20px; height: 20px; right: 17%; top: 28%; animation: orbFloat 3.5s ease-in-out .6s infinite; }
.orb-three { width: 46px; height: 46px; left: 8%; top: 48%; animation: orbFloat 5s ease-in-out 1.2s infinite; }
.cinematic-copy {
  position: relative;
  z-index: 10;
  width: min(760px, 70vw);
  padding-top: 2vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.v-mark {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  font-size: 38px;
  line-height: 1;
  font-weight: 1000;
  font-style: italic;
  color: #dff7ff;
  text-shadow: 0 0 9px #65cfff, 0 0 28px rgba(68, 204, 255, .8);
  transform: skewX(-12deg);
  border-bottom: 4px solid #5bdcff;
  margin-bottom: -2px;
}
.cinematic-title-wrap { margin-top: 0; }
.cinematic-title {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: center;
  gap: 18px;
  margin: 0;
  filter: drop-shadow(0 14px 10px rgba(0, 13, 32, .75));
}
.cinematic-title span,
.cinematic-title b {
  font-size: clamp(54px, 7vw, 112px);
  color: #eefaff;
  letter-spacing: -.08em;
  -webkit-text-stroke: 2px #1d75ae;
  text-shadow:
    0 2px 0 #dffaff,
    0 5px 0 #6ea8cb,
    0 8px 0 #205b84,
    0 0 20px rgba(67, 202, 255, .72),
    0 18px 28px rgba(0, 0, 0, .65);
  background: linear-gradient(180deg, #ffffff 0%, #d9f5ff 30%, #83cce9 56%, #e5f9ff 74%, #72a9c9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.cinematic-title b { margin: 0; font-size: clamp(47px, 6.2vw, 98px); letter-spacing: -.03em; }
.cinematic-english {
  display: inline-block;
  margin-top: 7px;
  padding: 6px 28px;
  border-top: 1px solid rgba(82, 201, 255, .45);
  border-bottom: 1px solid rgba(82, 201, 255, .45);
  background: rgba(1, 24, 47, .56);
  color: #a8e9ff;
  font-size: clamp(11px, 1.2vw, 17px);
  letter-spacing: .34em;
  text-indent: .34em;
  text-shadow: 0 0 12px #159ad5;
}
.cinematic-tagline {
  margin: 18px 0 20px;
  font-size: clamp(15px, 1.4vw, 22px);
  color: #effaff;
  text-shadow: 0 2px 12px #00152a;
  letter-spacing: .12em;
}
.cinematic-actions { justify-content: center; margin-top: 6px; gap: 16px; }
.game-image-button {
  white-space: pre-line;
  min-width: min(270px, 34vw);
  min-height: 88px;
  border: 1px solid #58cfff;
  border-radius: 0;
  color: white;
  font-size: clamp(18px, 1.6vw, 26px);
  line-height: 1.22;
  letter-spacing: .04em;
  padding: 12px 25px;
  clip-path: polygon(18px 0, calc(100% - 18px) 0, 100% 18px, 100% calc(100% - 18px), calc(100% - 18px) 100%, 18px 100%, 0 calc(100% - 18px), 0 18px);
  background: linear-gradient(180deg, rgba(15, 112, 202, .98), rgba(4, 50, 101, .98));
  box-shadow: 0 0 0 4px rgba(38, 184, 255, .14), inset 0 0 24px rgba(93, 217, 255, .28), 0 12px 26px rgba(0, 0, 0, .36);
  text-shadow: 0 2px 5px #001529;
}
.game-image-button::first-line { font-weight: 1000; }
.game-image-button:hover,
.game-image-button:focus-visible {
  transform: translateY(-4px) scale(1.025);
  border-color: #ffbf67;
  background: linear-gradient(180deg, rgba(211, 101, 8, .98), rgba(98, 38, 0, .98));
  box-shadow: 0 0 0 4px rgba(255, 148, 39, .15), inset 0 0 28px rgba(255, 177, 56, .34), 0 0 34px rgba(255, 122, 18, .28), 0 14px 28px rgba(0, 0, 0, .42);
}
.home-menu-grid {
  width: min(800px, 88vw);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 15px;
}
.home-menu-button {
  min-height: 62px;
  border-radius: 0;
  border: 1px solid rgba(72, 193, 255, .62);
  color: #eaf8ff;
  background: linear-gradient(180deg, rgba(6, 58, 106, .94), rgba(2, 29, 59, .96));
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px);
  white-space: pre-line;
  line-height: 1.28;
  font-size: 14px;
  font-weight: 900;
  box-shadow: inset 0 0 20px rgba(55, 177, 246, .12);
}
.home-menu-button:hover {
  transform: translateY(-3px);
  border-color: #ffaf42;
  color: white;
  background: linear-gradient(180deg, rgba(159, 70, 5, .96), rgba(72, 27, 0, .97));
  box-shadow: 0 0 22px rgba(255, 135, 25, .24), inset 0 0 20px rgba(255, 168, 64, .12);
}
.home-status-row {
  width: min(800px, 88vw);
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 10px;
}
.home-bottom-panel {
  min-height: 58px;
  border: 1px solid rgba(67, 170, 232, .38);
  background: rgba(2, 22, 46, .78);
  box-shadow: inset 0 0 22px rgba(43, 159, 228, .08);
  padding: 8px 13px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.home-bottom-panel small { color: #75d4ff; font-size: 10px; letter-spacing: .1em; }
.home-bottom-panel strong { color: #effaff; font-size: 12px; }
.home-bottom-panel span { color: #7daeca; font-size: 10px; }
.season-panel { flex-direction: row; align-items: center; gap: 12px; }
.season-panel > b { font-size: 38px; color: #dffaff; font-style: italic; text-shadow: 0 0 15px #30b7ff; }
.season-panel > div { flex: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.season-panel i { width: 100%; height: 6px; background: #06172b; border: 1px solid rgba(83, 188, 246, .32); }
.season-panel em { display: block; width: 28%; height: 100%; background: linear-gradient(90deg, #1b94e5, #54e5ff); }
.cinematic-footer {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  min-height: 50px;
  padding: 8px 20px;
  border: 0;
  background: linear-gradient(180deg, transparent, rgba(1, 8, 19, .82));
  color: #7fb6d3;
  font-size: 10px;
  text-align: center;
}
.cinematic-footer strong { color: #d8f5ff; }
.cinematic-footer span { color: #9ddcff; }
.compact-info-modal { width: min(520px, calc(100vw - 28px)); }
.info-copy { color: #b7d8ea; line-height: 1.8; margin: 22px 4px 8px; }
.loadout-hero-preview {
  margin: 12px 0;
  min-height: 150px;
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: center;
  gap: 20px;
  padding: 12px 18px;
  border: 1px solid rgba(87, 199, 255, .25);
  background: linear-gradient(90deg, rgba(22, 89, 143, .42), rgba(4, 25, 48, .58));
}
.loadout-hero-preview.vivaba { border-color: rgba(255, 153, 42, .32); background: linear-gradient(90deg, rgba(139, 66, 8, .42), rgba(48, 22, 4, .58)); }
.loadout-hero-preview img { width: 145px; height: 145px; object-fit: contain; filter: drop-shadow(0 12px 12px rgba(0,0,0,.35)); }
.loadout-hero-preview div { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.loadout-hero-preview strong { font-size: 28px; color: white; }
.loadout-hero-preview span { color: #9bdcff; line-height: 1.6; }
.loadout-hero-preview.vivaba span { color: #ffc27a; }
.hero-loadout-card .loadout-hero-preview { grid-template-columns: 90px 1fr; min-height: 100px; }
.hero-loadout-card .loadout-hero-preview img { width: 90px; height: 90px; }

/* 战斗页增加正式美术氛围 */
.battle-page {
  background-image: linear-gradient(180deg, rgba(2, 12, 27, .9), rgba(2, 12, 27, .96)), url('./assets/art/home-arena.webp');
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
}
.player-card.viva .player-portrait,
.player-card.vivaba .player-portrait {
  background-size: 130%;
  background-position: 50% 18%;
  background-repeat: no-repeat;
  border-color: rgba(97, 214, 255, .65);
}
.player-card.viva .player-portrait { background-image: url('./assets/art/viva.webp'); }
.player-card.vivaba .player-portrait { background-image: url('./assets/art/vivaba.webp'); border-color: rgba(255, 167, 56, .7); }
.player-portrait i,
.player-portrait span { display: none; }

@keyframes heroFloatLeft { 0%,100%{transform:translateY(0) rotate(-3deg)} 50%{transform:translateY(-12px) rotate(-2deg)} }
@keyframes heroFloatRight { 0%,100%{transform:translateY(0) rotate(3deg)} 50%{transform:translateY(-10px) rotate(2deg)} }
@keyframes orbFloat { 0%,100%{transform:translateY(0) scale(1)} 50%{transform:translateY(-18px) scale(1.08)} }
@keyframes energyPulse { 0%,100%{opacity:.72;transform:translateX(-50%) scale(.96)} 50%{opacity:1;transform:translateX(-50%) scale(1.04)} }
@keyframes beamBreath { 0%,100%{opacity:.47;filter:saturate(1.2) drop-shadow(0 0 22px rgba(40,189,255,.42))} 50%{opacity:.82;filter:saturate(1.4) drop-shadow(0 0 42px rgba(40,189,255,.72))} }

@media (max-width: 1080px) {
  .hero-character { width: 46vw; opacity: .82; }
  .hero-character-viva { left: -12%; }
  .hero-character-vivaba { right: -12%; }
  .cinematic-copy { width: min(760px, 86vw); }
}
@media (max-width: 760px) {
  .cinematic-header { min-height: 62px; padding: 6px 12px; }
  .visual-brand img { width: 150px; height: 50px; }
  .visual-nav .sci-nav { padding: 0 9px; min-height: 36px; font-size: 11px; }
  .visual-nav .sci-nav:first-child { display: none; }
  .cinematic-hero { padding: 68px 9px 62px; min-height: 760px; }
  .hero-character { width: 58vw; bottom: 6%; opacity: .72; }
  .hero-character-viva { left: -25%; }
  .hero-character-vivaba { right: -24%; }
  .cinematic-title { flex-direction: column; gap: 0; align-items: center; }
  .cinematic-title span { font-size: clamp(48px, 14vw, 78px); }
  .cinematic-title b { font-size: clamp(44px, 12vw, 70px); }
  .cinematic-actions { width: 100%; }
  .game-image-button { min-width: 0; width: calc(50% - 8px); font-size: 16px; min-height: 76px; padding: 8px; }
  .home-menu-grid { grid-template-columns: repeat(2, 1fr); }
  .home-status-row { grid-template-columns: 1fr; }
  .announcement-panel { display: none; }
  .season-panel { min-height: 48px; }
  .cinematic-footer span { display: none; }
}

/* =========================================================
   2.0.2 首页中轴校正 + 流畅模式性能覆盖
   所有核心信息共享同一条中轴和同一内容宽度。
   ========================================================= */
:root { --home-center-width: 860px; }
.cinematic-copy {
  width: min(var(--home-center-width), calc(100vw - 48px));
  max-width: var(--home-center-width);
  margin-inline: auto;
  padding-top: clamp(8px, 2vh, 24px);
}
.cinematic-title-wrap,
.cinematic-actions,
.home-menu-grid,
.home-status-row {
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.cinematic-title-wrap { display: grid; justify-items: center; }
.cinematic-title { width: 100%; text-align: center; }
.cinematic-title span,
.cinematic-title b { display: inline-block; }
.cinematic-tagline { width: 100%; text-align: center; }
.cinematic-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 16px;
}
.game-image-button {
  width: 100%;
  min-width: 0;
  justify-self: stretch;
  text-align: center;
}
.home-menu-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.home-menu-button {
  width: 100%;
  min-width: 0;
  text-align: center;
}
.home-status-row {
  grid-template-columns: 1fr;
  gap: 8px;
}
.home-bottom-panel { width: 100%; }
.season-panel {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  justify-content: center;
  align-items: center;
  gap: 14px;
  min-height: 62px;
  padding-inline: clamp(16px, 4vw, 48px);
  text-align: center;
}
.season-panel > div { text-align: left; }
.season-panel > span { justify-self: end; white-space: nowrap; }
.announcement-panel {
  min-height: 45px;
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  justify-content: center;
  column-gap: 14px;
  text-align: center;
}
.announcement-panel span { text-align: right; }

/* 首页动画只改变 transform / opacity；避免大尺寸素材反复计算滤镜。 */
.energy-beam-art {
  filter: saturate(1.18) drop-shadow(0 0 22px rgba(40, 189, 255, .42));
  will-change: transform, opacity;
}
.hero-character { will-change: transform; }
.stage-energy,
.floating-orb { will-change: transform, opacity; }
@keyframes beamBreath {
  0%,100% { opacity: .48; transform: translateX(-50%) scale(.985); }
  50% { opacity: .76; transform: translateX(-50%) scale(1.015); }
}

/* 默认流畅画质：减少大图滤镜、粒子和装饰动画。 */
html[data-quality="smooth"] .stage-energy {
  filter: none;
  animation: none;
  opacity: .56;
}
html[data-quality="smooth"] .energy-beam-art {
  filter: none;
  animation: beamBreath 4.8s ease-in-out infinite;
  opacity: .54;
}
html[data-quality="smooth"] .hero-character {
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, .48));
}
html[data-quality="smooth"] .orb-two,
html[data-quality="smooth"] .orb-three { display: none; }
html[data-quality="smooth"] .orb-one { animation-duration: 6s; opacity: .65; }
html[data-quality="smooth"] .game-image-button,
html[data-quality="smooth"] .home-menu-button,
html[data-quality="smooth"] .sci-nav { box-shadow: inset 0 0 14px rgba(55, 177, 246, .09); }
.battle-page { background-attachment: scroll; }

@media (prefers-reduced-motion: reduce) {
  .hero-character,
  .energy-beam-art,
  .stage-energy,
  .floating-orb { animation: none !important; }
}

@media (max-width: 760px) {
  :root { --home-center-width: 680px; }
  .cinematic-copy { width: calc(100vw - 18px); }
  .cinematic-actions { gap: 8px; }
  .home-menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .season-panel { grid-template-columns: 46px 1fr; padding-inline: 12px; }
  .season-panel > span { grid-column: 2; justify-self: start; }
  .announcement-panel { display: none; }
}


/* =========================================================
   2.0.3 首页严格中轴修正
   标题、主按钮、功能按钮、等级与公告使用同一中心线、同一宽度。
   ========================================================= */
.cinematic-hero {
  position: relative;
  display: block;
}
.cinematic-copy {
  position: absolute;
  z-index: 12;
  left: 50%;
  top: 49%;
  width: min(920px, calc(100vw - 64px));
  max-width: none;
  margin: 0;
  padding: 0;
  transform: translate(-50%, -50%);
  display: block;
  text-align: center;
}
.home-center-stack {
  --home-ui-width: 820px;
  width: 100%;
  display: grid;
  justify-items: center;
  align-items: center;
  grid-auto-flow: row;
  row-gap: 0;
  margin-inline: auto;
}
.home-center-stack > .v-mark,
.home-center-stack > .cinematic-title-wrap,
.home-center-stack > .cinematic-tagline {
  justify-self: center;
}
.cinematic-title-wrap {
  width: min(var(--home-ui-width), 100%);
  margin-inline: auto;
}
.cinematic-title {
  width: 100%;
  justify-content: center;
  align-items: baseline;
  margin-inline: auto;
}
.cinematic-english {
  margin-left: auto;
  margin-right: auto;
}
.cinematic-tagline {
  width: min(var(--home-ui-width), 100%);
  margin-left: auto;
  margin-right: auto;
}
.cinematic-actions,
.home-menu-grid,
.home-status-row {
  width: min(var(--home-ui-width), 100%);
  max-width: var(--home-ui-width);
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}
.cinematic-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 6px;
}
.game-image-button {
  width: 100%;
  min-width: 0;
  margin: 0;
  display: grid;
  place-items: center;
  text-align: center;
}
.home-menu-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 15px;
}
.home-menu-button {
  width: 100%;
  min-width: 0;
  margin: 0;
  display: grid;
  place-items: center;
  text-align: center;
}
.home-status-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.home-bottom-panel {
  width: 100%;
  min-width: 0;
  margin: 0;
  box-sizing: border-box;
  text-align: center;
}
.season-panel {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  justify-content: center;
  column-gap: 12px;
  row-gap: 2px;
  padding: 8px 18px;
  text-align: center;
}
.season-panel > b {
  grid-column: 1;
  grid-row: 1 / span 2;
  justify-self: center;
}
.season-panel > div {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px 10px;
  text-align: center;
}
.season-panel > div small { justify-self: start; }
.season-panel > div strong { justify-self: end; }
.season-panel i { grid-column: 1 / -1; }
.season-panel > span {
  grid-column: 2;
  grid-row: 2;
  justify-self: center;
  white-space: nowrap;
  text-align: center;
}
.announcement-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 8px 18px;
  text-align: center;
}
.announcement-panel small,
.announcement-panel strong,
.announcement-panel span { width: 100%; text-align: center; }

@media (max-width: 900px) {
  .cinematic-copy {
    top: 50%;
    width: min(760px, calc(100vw - 28px));
  }
  .home-center-stack { --home-ui-width: 720px; }
}
@media (max-width: 760px) {
  .cinematic-copy {
    top: 48%;
    width: calc(100vw - 18px);
  }
  .home-center-stack { --home-ui-width: 100%; }
  .cinematic-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .home-menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .home-status-row { grid-template-columns: 1fr; gap: 7px; }
  .announcement-panel { display: none; }
}


.image-title-wrap {
  display: grid;
  justify-items: center;
  align-items: center;
  width: min(var(--home-ui-width), 100%);
  margin-inline: auto;
}
.home-main-logo {
  display: block;
  width: min(100%, 940px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 26px rgba(24, 170, 255, 0.18));
}
@media (max-width: 980px) {
  .home-main-logo { width: min(100%, 860px); }
}
@media (max-width: 680px) {
  .home-main-logo { width: min(100%, 96vw); }
}

/* ===== 水泡大作战2.2：30关主题战役，仅影响战斗内页 ===== */
.battle-page {
  --world-accent: #62d9ff;
  --world-glow: #35d8ff;
  --world-border: #1a8ac4;
  --world-panel: #172f45;
  --world-panel-2: #203b52;
  background:
    radial-gradient(circle at 50% 10%, color-mix(in srgb, var(--world-glow) 18%, transparent), transparent 28%),
    linear-gradient(180deg, color-mix(in srgb, var(--world-panel-2) 72%, #061729), #061421 76%);
}
.battle-page .battle-topbar,
.battle-page .battle-bottom,
.battle-page .battle-footer {
  border-color: color-mix(in srgb, var(--world-accent) 42%, transparent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--world-panel-2) 86%, #07182b), color-mix(in srgb, var(--world-panel) 88%, #041321));
}
.battle-page .arena-frame,
.battle-page .hud-panel {
  border-color: color-mix(in srgb, var(--world-accent) 52%, transparent);
  box-shadow: 0 18px 42px rgba(0,0,0,.32), inset 0 1px rgba(255,255,255,.06);
}
.battle-page .arena-head,
.battle-page .arena-foot,
.battle-page .hud-panel h2 {
  color: color-mix(in srgb, var(--world-accent) 84%, white);
  background: linear-gradient(180deg, color-mix(in srgb, var(--world-panel-2) 78%, var(--world-border)), color-mix(in srgb, var(--world-panel) 92%, #041523));
}
.battle-page .arena-live,
.battle-page .mission-progress i,
.battle-page .arena-id i::before,
.battle-page .arena-id i::after {
  background: var(--world-accent);
}
.battle-page .arena-id i {
  border-color: var(--world-accent);
  box-shadow: 0 0 18px color-mix(in srgb, var(--world-glow) 32%, transparent), inset 0 0 18px color-mix(in srgb, var(--world-glow) 24%, transparent);
}
.battle-page .level-button {
  border-color: color-mix(in srgb, var(--world-accent) 72%, transparent);
  box-shadow: inset 0 0 14px color-mix(in srgb, var(--world-glow) 12%, transparent);
}

.campaign-overlay {
  position: fixed;
  inset: 0;
  z-index: 160;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(2, 10, 20, .84);
  backdrop-filter: blur(10px);
}
.campaign-result {
  width: min(650px, 96vw);
}
.campaign-result .result-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.level-select-overlay {
  overflow: auto;
  align-items: start;
}
.level-select-panel {
  width: min(1180px, 96vw);
  margin: 18px auto;
  border: 1px solid color-mix(in srgb, var(--world-accent) 55%, transparent);
  background: linear-gradient(180deg, rgba(10, 38, 66, .98), rgba(4, 20, 36, .98));
  box-shadow: 0 28px 80px rgba(0,0,0,.54), inset 0 1px rgba(255,255,255,.06);
}
.level-select-head {
  min-height: 76px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(112, 207, 255, .18);
}
.level-select-head small {
  color: #6edcff;
  font-size: 10px;
  letter-spacing: .16em;
  font-weight: 900;
}
.level-select-head h2 {
  margin: 4px 0 0;
  font-size: 25px;
}
.campaign-worlds {
  display: grid;
  gap: 12px;
  padding: 14px;
}
.campaign-world {
  display: grid;
  grid-template-columns: 210px 1fr;
  min-height: 112px;
  border: 1px solid rgba(112, 207, 255, .17);
  background: rgba(255,255,255,.025);
  overflow: hidden;
}
.campaign-world-head {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(145deg, rgba(52, 147, 204, .22), rgba(6, 23, 42, .72));
}
.campaign-world-head span,
.campaign-world-head small {
  font-size: 9px;
  letter-spacing: .13em;
  color: #78caef;
}
.campaign-world-head strong {
  margin: 5px 0;
  font-size: 18px;
}
.campaign-world-2 .campaign-world-head { background: linear-gradient(145deg, rgba(58, 181, 132, .25), rgba(6, 35, 31, .75)); }
.campaign-world-3 .campaign-world-head { background: linear-gradient(145deg, rgba(220, 100, 62, .28), rgba(46, 19, 21, .78)); }
.campaign-world-4 .campaign-world-head { background: linear-gradient(145deg, rgba(151, 104, 221, .28), rgba(35, 24, 58, .78)); }
.campaign-world-5 .campaign-world-head { background: linear-gradient(145deg, rgba(102, 196, 235, .25), rgba(63, 31, 35, .72)); }
.campaign-world-6 .campaign-world-head { background: linear-gradient(145deg, rgba(222, 188, 82, .28), rgba(40, 40, 54, .78)); }
.campaign-level-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
}
.campaign-level {
  min-width: 0;
  min-height: 90px;
  padding: 8px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  color: #eaf8ff;
  border: 1px solid rgba(105, 201, 248, .24);
  background: linear-gradient(180deg, rgba(21, 74, 119, .72), rgba(6, 30, 52, .92));
  cursor: pointer;
}
.campaign-level b {
  color: #79dcff;
  font-size: 22px;
  line-height: 1;
}
.campaign-level span {
  font-size: 12px;
  font-weight: 800;
}
.campaign-level small {
  color: #739bb3;
  font-size: 8px;
  letter-spacing: .06em;
}
.campaign-level.unlocked:hover,
.campaign-level.current {
  transform: translateY(-2px);
  border-color: var(--world-accent);
  box-shadow: 0 0 20px color-mix(in srgb, var(--world-glow) 22%, transparent), inset 0 0 16px rgba(79, 190, 244, .11);
}
.campaign-level.current::after {
  content: "CURRENT";
  color: #ffd66d;
  font-size: 7px;
  letter-spacing: .12em;
}
.campaign-level.locked {
  opacity: .36;
  filter: grayscale(.75);
  cursor: not-allowed;
}
@media (max-width: 900px) {
  .campaign-world { grid-template-columns: 1fr; }
  .campaign-world-head { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .campaign-level-grid { grid-template-columns: repeat(5, minmax(90px, 1fr)); overflow-x: auto; }
}
@media (max-width: 560px) {
  .campaign-overlay { padding: 6px; }
  .level-select-panel { width: 100%; margin: 6px auto; }
  .campaign-worlds { padding: 8px; }
  .campaign-level-grid { grid-template-columns: repeat(5, 98px); }
}
