/* Star Paw Squad · pastel academy theme. Layout primitives live in style.css. */
:root {
  color-scheme: light;
  --bg: #f6f2fc;
  --panel: #fffdfb;
  --panel-2: #f0e9fa;
  --line: #d8cbe9;
  --line-soft: #e9e0f0;
  --ink: #413654;
  --muted: #796b8b;
  --dim: #887b99;
  --accent: #8760c5;
  --accent-bright: #b084e8;
  --green: #36836e;
  --red: #c9567b;
  --font: "Nunito", "Microsoft YaHei", "PingFang SC", sans-serif;
  --mono: "Cascadia Code", "Consolas", monospace;
}

button { border-radius: 12px; }
button:focus-visible, .v-choice-card:focus-visible { outline: 3px solid #9863d1; outline-offset: 3px; }
button:disabled { opacity: .55; }
.hub-screen {
  grid-template-columns: 188px minmax(0, 1fr);
  background: radial-gradient(ellipse at 92% 0, #fbe4ef, transparent 48%), #f6f2fc;
}
.hub-topbar {
  background: #fffdfbed;
  border-bottom-color: #e6dced;
  box-shadow: 0 4px 24px #79619508;
  padding-inline: 26px;
}
.logo-chip { gap: 10px; }
.logo-svg-wrap { width: 48px; height: 52px; filter: drop-shadow(0 3px 4px #8961a025); }
.logo-text b { color: #64478c; font-size: 20px; letter-spacing: 1px; }
.logo-text small { color: #a491b4; letter-spacing: .8px; }
.connection-status { color: #8e7b9e; }
.connection-status i, .hub-statusbar i { background: #71bc9d; box-shadow: 0 0 0 4px #71bc9d16; }
.top-currencies { gap: 12px; }
.curr-box { border-color: #e9def1; background: #f7f1fb; border-radius: 12px; padding: 7px 12px; }
.curr-box small { color: #8c789a; }
.curr-box b { color: #7756a4; font-size: 19px; }
.curr-box.cash { background: #fff6e8; border-color: #f1dec1; }
.curr-box.cash b { color: #a06a2c; }
.icon-button, .btn-round-ic {
  background: #faf5ff;
  border-color: #e4d7f0;
  color: #8c6ca8;
  border-radius: 12px;
  box-shadow: 0 3px 0 #eee4f4;
}
.icon-button:hover, .btn-round-ic:hover { background: #efe4fb; border-color: #bfa2df; color: #68438e; }
.gear-button { display: inline-grid; place-items: center; font-size: 19px; line-height: 1; padding: 0; }
.hub-bottom-dock { background: #fffdfbbd; border-right-color: #e9dff2; padding: 28px 15px 18px; }
.nav-index, .nav-number, .nav-chevron, .section-eyebrow > span:last-child { display: none; }
.hub-tab-btn { min-height: 78px; border: 1px solid transparent; border-radius: 18px; margin-bottom: 12px; gap: 12px; padding: 13px; }
.hub-tab-btn:hover { background: #f4ecfc; }
.hub-tab-btn.active { background: linear-gradient(125deg, #f5e8ff, #fceaf2); border-color: #d6b9e9; box-shadow: 0 6px 18px #bda2cf20, inset 0 1px #fff; }
.hub-tab-btn.active:before { display: none; }
.nav-label b { color: #6a5281; font-size: 15px; letter-spacing: 1px; }
.nav-label small { color: #a08aad; font-size: 10px; }
.dock-svg { width: 34px; height: 38px; }
.nav-bottom { border-top-color: #e8ddee; }
.nav-emblem { width: 76px; height: 80px; opacity: .9; }
.nav-bottom b { color: #806491; font-size: 11px; }
.nav-bottom > small, .nav-version { color: #a28eae; }
.nav-version span { color: #8d6bb3; }
.hub-main { padding: 24px clamp(20px, 3vw, 48px) 25px; }
.section-eyebrow { color: #9680a6; font-size: 11px; border: 0; padding-bottom: 0; letter-spacing: 1px; }
.hub-statusbar { background: #fffdfbbd; color: #9e8aab; border-top-color: #e9dff1; }

/* Lobby key art is framed without baking functional text into the illustration. */
.mission-hero {
  display: block;
  position: relative;
  min-height: 340px;
  margin: 16px 0 27px;
  border: 2px solid #fff;
  border-radius: 26px;
  overflow: hidden;
  isolation: isolate;
  background: #fff3f2;
  box-shadow: 0 10px 32px #ab83b322;
}
.tactical-map { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; border: 0; border-radius: 0; opacity: 1; margin: 0; mask-image: none; background: #fff3f2; }
.tactical-map:before { display: none; }
.tactical-map > img { width: 100%; height: 100%; object-fit: contain; object-position: right center; opacity: 1; }
.tactical-map:after { background: linear-gradient(90deg, #fff7f7fa 0%, #fff4f5e8 27%, #fff4f500 57%); }
.map-header, .map-reticle, .map-coordinate, .map-legend { display: none; }
.mission-copy { width: 47%; padding: 30px 28px; }
.mission-copy .eyebrow { color: #a66a95; font-size: 10px; letter-spacing: 1.5px; }
.live-dot { background: #bc86cc; box-shadow: 0 0 0 4px #bc86cc18; }
.mission-copy h1 { color: #57406f; font-size: clamp(30px, 3.1vw, 46px); line-height: 1.35; letter-spacing: 1px; margin: 18px 0 13px; text-shadow: 0 2px #fff8; }
.mission-copy h1 span { color: #a46bc0; }
.mission-copy p { font-size: 11px; line-height: 1.9; color: #8b6f8b; max-width: 310px; }
.desktop-br { display: none; }
.mission-facts { margin-top: 25px; gap: 23px; }
.mission-facts strong { color: #80609a; font-family: var(--font); font-size: 25px; font-weight: 800; }
.mission-facts strong span { font-size: 10px; color: #9c80ab; }
.mission-facts small { font-size: 9px; color: #9b85a3; }
.deployment-heading { margin-bottom: 15px; }
.deployment-heading h2 { font-size: 20px; letter-spacing: .5px; color: #5f4b78; }
.deployment-heading .eyebrow { color: #aa92b8; font-size: 9px; }
.deployment-heading h2 small { font-size: 10px; color: #a18cae; }
.selection-count { background: #ede4f9; border-color: #ded0ed; color: #9272ab; border-radius: 9px; }
.chapter-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 15px; }
.chapter-tab { flex: 1 1 0; min-width: 110px; display: flex; flex-direction: column; gap: 5px; text-align: left; padding: 10px 12px; border: 1px solid #e1d3ed; border-radius: 13px; background: #fffcff; color: #7e648f; }
.chapter-tab b { font-size: 11px; }
.chapter-tab small { font-size: 10px; color: #aa91ba; }
.chapter-tab.active { background: #eee1fc; border-color: #b99bd9; color: #745099; box-shadow: inset 0 1px #fff, 0 3px 9px #a88bbb13; }
.chapter-tab.locked { opacity: .64; }
.zone-cards-row.stage-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.zone-tile { display: block; height: 164px; min-height: 164px; padding: 0; border: 2px solid #fff; border-radius: 18px; background: #e7dcf3; overflow: hidden; box-shadow: 0 5px 15px #9575a320; }
.zone-tile.selected { border-color: #ac7ed3; box-shadow: 0 0 0 3px #d7bee84d, 0 6px 20px #aa83c22a; }
.zone-tile.selected:after { display: none; }
.zt-svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 1; margin: 0; transition: transform .25s; }
.zt-svg svg { width: 100%; height: 100%; }
.zt-svg:after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, #41305beb, #634e7d36 56%, transparent 80%); }
.zone-tile:hover .zt-svg { transform: scale(1.04); }
.zt-badge { position: absolute; top: 12px; left: 12px; z-index: 2; color: #6b4f85; font-size: 9px; padding: 4px 8px; background: #fffaf4ed; border: 1px solid #fff; border-radius: 8px; }
.zt-name { position: absolute; bottom: 34px; left: 14px; right: 10px; z-index: 2; margin: 0; color: #fff; font-size: 15px; font-weight: 700; text-shadow: 0 1px 4px #543b70; }
.zt-mult { position: absolute; bottom: 12px; left: 14px; right: 14px; z-index: 2; justify-content: space-between; font-size: 10px; }
.zt-mult b { color: #fff2c9; font-size: 10px; }
.zone-threat { color: #eee1fa; font-size: 9px; }
.zone-threat.danger { color: #ffd1de !important; }
.zt-check { top: 12px; right: 12px; z-index: 3; width: 18px; height: 18px; border-radius: 50%; line-height: 16px; background: #fff8; border-color: #fff; color: #7c579a; }
.selected .zt-check { background: #c69be8; border-color: #fff; color: #fff; }
.stage-tile.locked .zt-svg { filter: saturate(.45); opacity: .62; }
.stage-tile.locked .zt-name { color: #fff; }
.stage-stars { display: inline-flex; gap: 2px; }
.stage-stars i { font-style: normal; color: #cbb5de; font-size: 12px; }
.stage-stars i.on { color: #ffe39c; text-shadow: 0 0 5px #ffdc8d60; }
.stage-detail { margin-top: 14px; padding: 16px 18px; border: 1px solid #e1d3eb; border-radius: 16px; background: #fffcff; color: #78628c; display: grid; gap: 11px; }
.sd-main b { font-size: 14px; color: #694e82; }
.sd-main p { margin: 5px 0 0; font-size: 12px; line-height: 1.7; color: #9a83aa; }
.sd-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.sd-tag { padding: 5px 9px; background: #f4edf9; border: 1px solid #e9ddf1; border-radius: 7px; color: #9071a4; font-size: 10px; }
.sd-tag.obj { color: #9e6c39; background: #fff4e1; border-color: #f1dcb9; }
.sd-tag.mod { color: #9863af; border-color: #dcc1ef; }
.sd-tag.tempo { color: #5c8ea4; background: #edf7fa; border-color: #d6e9f0; }
.sd-foot { display: flex; flex-wrap: wrap; gap: 7px 16px; font-size: 10px; color: #a28bb0; }
.sd-foot .done { color: #b7a9c0; text-decoration: line-through; }
.sd-foot .warn { color: #c36384; font-weight: 700; }
.deploy-bottom-card { margin-top: 18px; padding-top: 0; border: 0; gap: 18px; }
.btn-supply-capsule { min-width: 290px; border: 1px solid #ead6ee; background: linear-gradient(120deg, #fff7ec, #faedff); border-radius: 17px; box-shadow: 0 4px 10px #ad8cb010; }
.supply-icon { width: 57px; height: 57px; filter: drop-shadow(0 3px 3px #ba8cc22a); }
.supply-copy b { color: #9465a3; font-size: 12px; }
.supply-copy small { color: #ae92b7; font-size: 9px; }
.badge-ad { border-color: #d8bbdd; color: #a17da9; border-radius: 5px; }
.supply-add { color: #ae88bc; }
.launch-meta { color: #92799f; }
.launch-meta small { color: #b09abb; }
.btn-big-play, .btn-mega-gold, .btn-action-gold {
  background: linear-gradient(135deg, #bb93e4, #9c74ce);
  border: 1px solid #cda9ed;
  border-radius: 16px;
  color: #fff;
  box-shadow: inset 0 2px #ffffff60, 0 4px 0 #8560b0, 0 8px 17px #a481bb30;
  text-shadow: 0 1px #7b56943b;
}
.btn-big-play:hover, .btn-mega-gold:hover, .btn-action-gold:hover { background: linear-gradient(135deg, #caa2ed, #a87bdc); }
.btn-big-play { min-width: 218px; padding: 17px 25px; }
.btn-big-play b { font-size: 23px; letter-spacing: 3px; }
.play-labels small { color: #f5eaff; }
.play-arrow { color: #fff; }

/* Equipment and companion collections. */
.panel-title-row { margin: 24px 0; }
.panel-title-row h1 { font-size: clamp(25px, 2.5vw, 37px); color: #654e7f; letter-spacing: 1px; }
.panel-title-row p { font-size: 12px; color: #9b83ac; line-height: 1.8; }
.equipment-section, .inventory-section { background: #fffcff; border: 1px solid #e3d5ee; border-radius: 22px; padding: 21px; box-shadow: 0 6px 22px #ab8bbb14; }
.subheading h2 { font-size: 15px; color: #77608e; }
.subheading small { color: #a68eb5; }
.equipped-slots-row { gap: 11px; }
.eq-tile { min-height: 155px; background: linear-gradient(#fdf9ff, #f2eafa) !important; border-radius: 14px; box-shadow: inset 0 1px #fff, 0 3px 9px #ac8ec31a; }
.eq-tier-pill { font-size: 9px; border-radius: 6px; padding: 3px 7px; }
.eq-svg { width: 91px; height: 84px; filter: drop-shadow(0 3px 3px #ac80b329); }
.eq-name, .bc-name { color: #856995; font-size: 11px; }
.eq-stat { color: #6e558a !important; font-size: 12px; }
.equipment-note { background: #f6effb; border-color: #e7d8f1; border-radius: 13px; }
.equipment-note > span { width: 38px; height: 40px; }
.equipment-note p { color: #a18aaf; font-size: 10px; }
.bag-icons-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); min-height: 320px; max-height: 400px; gap: 11px; }
.bag-cell { min-height: 128px; padding: 9px 5px; border-radius: 13px; background: #f7f0fd; box-shadow: inset 0 1px #fff; }
.bag-cell:hover { background: #eee2f9; }
.bc-svg { width: 74px; height: 68px; max-width: 100%; }
.bc-tag { font-size: 9px; border-radius: 5px; padding: 3px 6px; }
.empty-bag { color: #b3a0bf; }
.rarity-legend { color: #a48ab3; font-size: 9px; gap: 10px; }
.shop-crates-row { gap: 17px; }
.btn-crate { min-height: 126px; background: linear-gradient(110deg, #edf5ff, #faf5ff); border-color: #d9d5ef; border-radius: 20px; box-shadow: 0 5px 15px #a68bb41b; }
.btn-crate.purple { background: linear-gradient(110deg, #fff0f5, #f4e9fc); border-color: #e8cdeb; }
.btn-crate:hover { transform: translateY(-2px); border-color: #bea0dc; }
.crate-svg { width: 98px; height: 88px; filter: drop-shadow(0 4px 3px #ac80b329); }
.btn-crate b { color: #806094; font-size: 16px; }
.btn-crate small, .btn-crate p { color: #a18bb0; font-size: 10px; }
.crate-price { color: #9c77b0; font-size: 13px; }
.hero-cards-grid { gap: 20px; }
.hero-card { border: 1px solid #e0d0ed; border-radius: 22px; background: #fffdfd; box-shadow: 0 7px 22px #aa8eb51d; }
.hero-card-top { background: #fcf8ff; border-bottom-color: #ede2f5; color: #b09abc; padding: 12px 17px; }
.hero-class-tag { border-radius: 6px; background: #f6edfd; color: #9774af; font-size: 10px; padding: 3px 7px; }
.hc-visual-row { position: relative; height: 240px; padding: 23px 18px; display: block; overflow: hidden; background: radial-gradient(ellipse at 80% 55%, color-mix(in srgb, var(--unit-color) 18%, white), transparent 73%), #fbf6ff; }
.hc-svg-box { position: absolute; right: -4px; top: 12px; width: 72%; height: calc(100% - 12px); filter: drop-shadow(0 5px 5px #9671a51a); }
.hc-svg-box svg { width: 100%; height: 100%; }
.hc-identity { position: relative; z-index: 2; max-width: 59%; padding-top: 8px; pointer-events: none; }
.hc-identity h3 { font-size: 20px; color: #6b4e87; text-shadow: 0 0 9px #fff, 0 0 5px #fff; }
.hc-identity small { font-size: 9px; color: #ac90b7; }
.hc-evolution { margin-top: 100px; max-width: 142px; font-size: 11px; color: #9673ad; line-height: 1.8; text-shadow: 0 0 6px #fff; }
.hc-info-row { position: relative; z-index: 2; padding: 15px 17px; background: #fffbff; border-top: 1px solid #ede1f5; color: #a088b0; font-size: 11px; }
.hc-info-row > span:last-child { color: #6e9d8c; font-size: 12px; }
.btn-hero-up { border-radius: 11px; background: #f0e6fb; border-color: #d8c2eb; color: #8b65a7; font-size: 11px; padding: 12px; }
.btn-hero-up:hover { background: #e7d5f9; border-color: #b593d3; }
.btn-hero-up span:last-child { color: #9367af; font-size: 12px; }
.operator-count strong { color: #b48dc9; }
.operator-count span, .panel-footnote { color: #ac94b9; font-size: 11px; }

/* Dialogs use a generated pearl-paper surface. */
.modal-backdrop, .ad-overlay { background: #5e44776e; backdrop-filter: blur(9px); }
.modal-card, .ad-card { background: #fffaf5 url('assets/art/ui-panel.jpg?v=20261115hd') center / cover; border: 2px solid #fff; border-radius: 26px; padding: 30px; box-shadow: 0 24px 80px #62407745, 0 0 0 1px #dcc5ec; }
.modal-card:before, .modal-card:after { display: none; }
.modal-kicker { color: #b295c0; font-size: 10px; letter-spacing: 1px; }
.modal-symbol { width: 82px; height: 75px; margin: 0 auto 12px; }
.modal-card h2 { color: #79538f; font-size: 26px; letter-spacing: 1px; }
.modal-description { color: #a087ad; font-size: 12px; }
.visual-choices-row { gap: 13px; }
.v-choice-card { min-height: 280px; gap: 10px; padding: 15px 10px; border: 1px solid #ddc7ef; border-radius: 17px; background: linear-gradient(#f7efff, #fffaff); box-shadow: 0 4px 13px #b195c128; }
.v-choice-card:hover { background: #f0e1fd; border-color: #b489d3; }
.v-choice-card.evo-ready { background: linear-gradient(#fff0dc, #fff6ed); border-color: #e2be81; }
.v-choice-card.squad-full .vc-svg { opacity: .55; filter: saturate(.5); }
.vc-svg { width: 140px; height: 138px; max-width: 100%; }
.vc-title { font-size: 16px; color: #805998; }
.vc-stat { color: #9471aa !important; font-size: 11px; }
.vc-pill { border-radius: 7px; font-size: 9px; }
.vc-progress-dots { margin-top: auto; }
.vc-dot { background: #e4d4ef; border-radius: 5px; }
.vc-dot.filled { background: #b18bd0; }
.v-choice-card:after { content: '选择强化'; color: #ac88bf; font-size: 10px; margin-top: 0; }
.btn-flat-dark { background: #f6edf9; border-color: #dfcce9; color: #9b79ae; border-radius: 12px; box-shadow: 0 3px 0 #e6d9ee; }
.btn-flat-dark:hover { background: #eee0f6; border-color: #c6a6d9; color: #79508e; }
.btn-mega-gold .ad-label { color: #fff; border-color: #e4ccf5; border-radius: 4px; }
.modal-actions-col { gap: 14px; }
.modal-actions-row .btn-mega-gold { margin-bottom: 4px; }
.modal-footnote { color: #b9a1c4; }
.perk-box, .loot-tile, .wheel-box, .guide-grid > div { background: #f7effbd9; border-color: #e8d8f1; border-radius: 13px; }
.perk-svg { width: 70px; height: 65px; }
.perk-box b { color: #946ca8; font-size: 11px; }
.perk-box small, .loot-tile small, .guide-grid p, .wheel-label small { color: #b095bd; font-size: 10px; }
.loot-tile b { color: #8f68ab; }
.loot-tile.gold b { color: #bd8a3b; }
.loot-tile.blue b { color: #6b9ebd; }
.wheel-label, .guide-grid b { color: #9c7bae; }
.res-stars { display: flex; justify-content: center; gap: 14px; margin: 6px 0 12px; }
.res-star { display: flex; flex-direction: column; align-items: center; font-size: 36px; line-height: 1; color: #dfd0e9; text-shadow: 0 2px #fff; }
.res-star small { color: #baa5c5; font-size: 9px; margin-top: 6px; max-width: 100px; line-height: 1.5; }
.res-star.on { color: #e9b45a; text-shadow: 0 2px #fff0be; animation: star-appear .4s ease-out both; }
.res-star.on small { color: #ae8c63; }
.res-star.on:nth-child(2) { animation-delay: .12s; }
.res-star.on:nth-child(3) { animation-delay: .24s; }
@keyframes star-appear { from { opacity: 0; transform: scale(.5); } to { opacity: 1; transform: scale(1); } }
.res-firstclear, .levelup-tip { color: #aa8153; background: #fff1db; border: 1px solid #ecd7b6; border-radius: 10px; padding: 8px 12px; font-size: 12px; margin: 8px 0 12px; }
.levelup-tip { color: #9471ac; background: #f2e8fc; border-color: #dcc8ee; }
.ad-radar-icon { width: 95px; height: 90px; }
.ad-card > p { color: #a78bb6; }
.ad-card h2 { color: #8b65a3; }
.toast-banner { background: #fff7ff; color: #9564a7; border-color: #dfc4ed; border-radius: 14px; box-shadow: 0 8px 30px #8b65a33b; }

/* Battle controls stay compact around the play field. */
#game-canvas { image-rendering: auto; }
.hud-player-card, .hud-mission-clock, .mini-stat, .hud-bottom-bar { background: #fffbfff0; border-color: #e4cfee; border-radius: 15px; box-shadow: 0 4px 14px #9870a32b; }
.avatar-circle { border-radius: 12px; background: #e6d9f9; border-color: #d2b4e5; }
.hud-avatar-svg { width: 39px; height: 39px; overflow: hidden; }
.hud-player-label, .mini-stat b, .clock-time { color: #7a5795; }
.hud-player-label small, .clock-tag, .squad-count-chip small { color: #ab8fba; }
.bar-track { background: #e9deef; border-radius: 8px; }
.bar-fill.hp { background: linear-gradient(90deg, #8dceb5, #b1e4bf); }
.bar-fill.xp { background: linear-gradient(90deg, #bd9de1, #e3b9e7); }
.bar-fill.shield { background: #a9dff0; }
.btn-evac-now { background: #f2e7fb; border-color: #d8b9e9; color: #9c75b5; border-radius: 9px; }
.hud-skill-dock { gap: 18px; }
.skill-orb { width: 74px; height: 87px; border-radius: 19px; border: 1px solid #e5bad9; background: linear-gradient(#fff3fb, #f2def5); box-shadow: inset 0 2px #fff, 0 4px 0 #dfc4e7, 0 6px 14px #9870a32b; }
.skill-orb.gold { background: linear-gradient(#fffaed, #fceccb); border-color: #ead3a3; box-shadow: inset 0 2px #fff, 0 4px 0 #e5cea2; }
.skill-orb.blue { background: linear-gradient(#f0faff, #e1eafb); border-color: #bbd7ed; box-shadow: inset 0 2px #fff, 0 4px 0 #c3d2ec; }
.orb-svg { width: 52px; height: 51px; }
.skill-orb b { color: #9574a7; font-size: 10px; }
.orb-badge { background: #ba95dc; border-color: #fff; color: #fff; border-radius: 6px; }
.skill-orb kbd { color: #b69bc4; }
.skills-heading { color: #a689b4; }
.squad-count-chip b { color: #956aaf; }
.sq-slot { width: 43px; height: 43px; border-radius: 11px; background: #f0e4fa; border-color: #d6bce7; }
.sq-slot-svg { width: 37px; height: 37px; overflow: hidden; }
.sq-slot.evo { background: #fff1cf; border-color: #e7c38c; }
.sq-slot.empty { background: #fbf6ff !important; border-color: #dcc9e9 !important; border-style: dashed !important; display: grid; place-items: center; }
.sq-plus { color: #cbb3dc; font-size: 18px; }
.squad-merge-tip { color: #ad92bb; }
.combat-objective { background: #fffaffeb; border-color: #e8d1ee; color: #87649c; border-radius: 12px; text-shadow: none; padding: 8px 11px; font-size: 11px; }
.combat-objective small { color: #b499c1; }
.combat-announcement { background: #6c5288ed; border-radius: 13px; text-shadow: none; }
.skills-heading { text-shadow: none; }
.boss-hp-banner { background: #fff6fbed; border-color: #e4b6d1; border-radius: 13px; }
.boss-name-row { color: #b2719b; }
.boss-bar-track { background: #efd7e7; border-radius: 5px; }
.boss-bar-fill { background: #d49ac5; border-radius: 5px; }
.tutorial-panel { position: fixed; left: 50%; bottom: 110px; transform: translateX(-50%); width: min(460px, 92vw); padding: 13px 16px; border: 1px solid #d4b6e6; border-radius: 17px; background: #fffafff0; box-shadow: 0 8px 30px #9a77af35; color: #8d6ba1; z-index: 17; pointer-events: auto; }
.tut-head { display: flex; justify-content: space-between; align-items: center; color: #b090c1; font-size: 10px; }
.tut-skip { background: #f3e9fb; border: 1px solid #ddc9ed; color: #aa86be; border-radius: 7px; padding: 5px 9px; font-size: 10px; }
.tut-text { font-size: 16px; font-weight: 800; color: #8f68a5; margin: 7px 0 4px; }
.tut-sub { display: block; font-size: 11px; color: #b093bf; line-height: 1.6; }
.tut-bar { height: 5px; background: #eee0f4; border-radius: 5px; margin-top: 9px; overflow: hidden; }
.tut-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #cba2e7, #ecbedc); transition: width .2s; }
.tut-highlight, .coach-target { animation: gentle-highlight 1.4s ease-in-out infinite; }
@keyframes gentle-highlight { 50% { box-shadow: 0 0 0 4px #d3a4e770, 0 0 24px #c79ad057; } }
.hud-synergy { position: fixed; left: 16px; bottom: 96px; display: flex; flex-direction: column; gap: 5px; z-index: 14; pointer-events: none; max-width: 46vw; }
.syn-chip { font-size: 11px; font-weight: 700; padding: 5px 10px; border: 1px solid; border-radius: 9px; background: #5d447ee8; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fps-meter { position: fixed; left: 50%; top: 4px; transform: translateX(-50%); font: 10px var(--mono); color: #edf9f3; background: #5c846bda; padding: 3px 8px; border-radius: 6px; z-index: 40; pointer-events: none; }

/* Settings, guidance and existing age information. */
.settings-card { max-width: 560px; width: min(560px, 94vw); }
.settings-list { display: grid; gap: 2px; margin: 10px 0 16px; text-align: left; max-height: min(60vh, 520px); overflow-y: auto; padding-right: 4px; }
.set-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 11px 4px; border-bottom: 1px solid #e9ddee; color: #9374a5; font-size: 13px; font-weight: 700; }
.set-row > span small { display: block; font-size: 10px; font-weight: 400; color: #b199bf; margin-top: 3px; }
.set-row input[type=range] { width: 160px; accent-color: #b08ad3; }
.set-row output { width: 40px; text-align: right; font-size: 12px; color: #b38dc8; }
.set-row .seg, .set-row .toggle, .set-row .small-btn { grid-column: 2 / 4; justify-self: end; }
.seg { display: inline-flex; border: 1px solid #ddc9ed; border-radius: 9px; overflow: hidden; }
.seg button { background: #faf2ff; color: #ac8cbd; border: 0; border-radius: 0; padding: 7px 12px; font-size: 12px; }
.seg button + button { border-left: 1px solid #e6d8ee; }
.seg button.active { background: #c6a2e2; color: #fff; font-weight: 800; }
.toggle { width: 46px; height: 26px; border-radius: 15px; border: 1px solid #dcc8eb; background: #f0e5f7; position: relative; padding: 0; }
.toggle i { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #d3bddf; transition: transform .18s, background .18s; }
.toggle.on { background: #d4b7e9; border-color: #bd99d9; }
.toggle.on i { transform: translateX(20px); background: #fff; }
.small-btn { padding: 8px 12px !important; font-size: 11px !important; width: auto !important; }
.coach-tip { position: fixed; z-index: 60; padding: 14px 16px; border-radius: 16px; border: 1px solid #d0aae5; background: #fff9fffa; color: #9364a6; box-shadow: 0 10px 30px #9672a448; font-size: 13px; line-height: 1.65; }
.coach-tip p { margin: 0 0 10px; }
.coach-tip button { background: #bc96dd; border: 1px solid #b18ad2; border-radius: 8px; padding: 7px 15px; font-weight: 700; color: #fff; }
.age-badge-btn { height: 29px; padding: 0 9px; border: 1px solid #badbce; border-radius: 9px; background: #e3f1e9; color: #648f79; font-size: 10px; font-weight: 700; white-space: nowrap; flex-shrink: 0; }
.age-pill-large { display: inline-block; margin: 4px auto 12px; padding: 7px 17px; border: 1px solid #b3d7c7; border-radius: 12px; background: #e2f2e9; color: #6a9a80; font-size: 22px; font-weight: 900; }
.age-copy { text-align: left; background: #f7effb; border: 1px solid #e4d2ef; border-radius: 13px; padding: 14px; margin-bottom: 18px; }
.age-copy p { margin: 0 0 9px; font-size: 12px; line-height: 1.8; color: #a184b0; }
.age-copy p:last-child { margin-bottom: 0; }
.health-notice { margin: 20px auto 4px; padding: 10px 14px; max-width: 900px; color: #a997b5; font-size: 10px; line-height: 1.7; text-align: center; }

@media (min-width: 1500px) {
  .mission-hero { min-height: 390px; }
  .mission-copy { padding: 36px; }
  .mission-copy h1 { font-size: 52px; }
  .zone-tile { height: 185px; min-height: 185px; }
}
@media (max-width: 1150px) {
  .hub-main { padding: 22px; }
  .hub-screen { grid-template-columns: 150px minmax(0, 1fr); }
  .hub-tab-btn { padding: 12px 9px; }
  .mission-copy { padding: 27px 22px; width: 52%; }
  .mission-copy h1 { font-size: 35px; }
  .mission-copy p { max-width: 250px; }
  .mission-facts { gap: 17px; }
  .launch-meta { display: none; }
  .zone-cards-row.stage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .btn-supply-capsule { min-width: 240px; }
  .supply-copy small { font-size: 8px; }
  .btn-big-play { min-width: 180px; }
  .hc-identity h3 { font-size: 18px; }
  .hc-svg-box { width: 76%; right: -13px; }
  .hc-evolution { max-width: 120px; font-size: 10px; }
  .crate-svg { width: 77px; height: 75px; }
  .btn-crate b { font-size: 14px; }
  .crate-price { font-size: 11px; }
}
@media (max-width: 900px) and (min-width: 651px) {
  .hub-screen { grid-template-columns: 86px minmax(0, 1fr); }
  .hub-bottom-dock { padding-inline: 10px; }
  .hub-tab-btn { padding: 10px 7px; }
  .hub-topbar { padding-inline: 18px; }
  .mission-copy h1 { font-size: 33px; }
  .hc-visual-row { height: 225px; }
  .hc-evolution { margin-top: 88px; }
}
@media (max-width: 650px) {
  .hub-screen { grid-template-columns: minmax(0, 1fr); grid-template-rows: 69px minmax(0, 1fr) 72px; }
  .hub-topbar { padding: 0 10px; gap: 5px; }
  .logo-chip { gap: 6px; }
  .logo-svg-wrap { width: 34px; height: 39px; }
  .logo-text b { font-size: 13px; letter-spacing: .5px; }
  .logo-text small { font-size: 5px; }
  .top-currencies { gap: 6px; }
  .curr-box { padding: 4px 6px; background: transparent; border: 0; }
  .curr-box.cash { background: transparent; border: 0; }
  .curr-box b { font-size: 13px; }
  .age-badge-btn { height: 27px; padding: 0 5px; font-size: 9px; }
  .icon-button { width: 30px; height: 30px; border-radius: 10px; }
  .hub-main { grid-column: 1; padding: 16px 13px 110px; }
  .section-eyebrow { font-size: 10px; }
  .hub-bottom-dock { padding: 4px 8px 5px; background: #fffbfff5; border-top: 1px solid #e7d5ef; }
  .hub-tab-btn { min-height: 58px; margin: 0; gap: 4px; padding: 5px 8px; border-radius: 14px; }
  .nav-label b { font-size: 11px; }
  .dock-svg { width: 28px; height: 29px; }
  .mission-hero { min-height: 0; margin: 12px 0 23px; border-radius: 22px; }
  .tactical-map { height: 240px; }
  .tactical-map > img { object-fit: cover; object-position: 70% center; }
  .tactical-map:after { background: linear-gradient(0deg, #fff3f2 1%, #fff3f200 36%); }
  .mission-copy { width: 100%; padding: 223px 19px 22px; }
  .mission-copy .eyebrow { font-size: 9px; }
  .mission-copy h1 { font-size: 28px; margin: 12px 0 9px; line-height: 1.35; }
  .mission-copy h1 br { display: none; }
  .mission-copy h1 span { display: block; }
  .mission-copy p { font-size: 10px; max-width: 100%; line-height: 1.85; }
  .mission-facts { margin-top: 18px; gap: 8px; width: 100%; justify-content: space-between; }
  .mission-facts > div { min-width: 0; }
  .mission-facts strong { font-size: 23px; }
  .mission-facts strong span { font-size: 9px; }
  .mission-facts small { font-size: 8px; }
  .deployment-heading h2 { font-size: 18px; }
  .deployment-heading h2 small { font-size: 9px; }
  .chapter-tabs { gap: 6px; }
  .chapter-tab { min-width: 27%; padding: 9px; border-radius: 10px; }
  .chapter-tab b { font-size: 10px; }
  .chapter-tab small { font-size: 9px; }
  .zone-cards-row.stage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stage-grid .zone-tile { height: 138px; min-height: 138px; border-radius: 14px; }
  .zt-badge { top: 10px; left: 10px; font-size: 8px; padding: 3px 6px; }
  .zt-check { top: 10px; right: 10px; width: 15px; height: 15px; line-height: 13px; font-size: 10px; }
  .zt-name { font-size: 12px; left: 11px; bottom: 36px; }
  .zt-mult { left: 11px; right: 8px; bottom: 10px; flex-direction: column; align-items: flex-start; gap: 2px; }
  .zone-threat { font-size: 8px; }
  .stage-detail { padding: 14px; }
  .sd-main b { font-size: 13px; }
  .sd-main p { font-size: 11px; }
  .deploy-bottom-card { margin-top: 14px; }
  .btn-supply-capsule { width: 100%; min-width: 0; padding: 12px; }
  .supply-copy b { font-size: 12px; }
  .supply-copy small { font-size: 9px; }
  #panel-deploy .btn-big-play { position: fixed; bottom: calc(88px + env(safe-area-inset-bottom)); left: 13px; right: 13px; width: calc(100% - 26px); min-height: 61px; z-index: 23; padding: 12px 23px; border-radius: 17px; box-shadow: inset 0 2px #fff6, 0 4px 0 #8a61b6, 0 0 0 8px #f6f2fce8, 0 -5px 20px 8px #f6f2fca8; }
  .btn-big-play b { font-size: 22px; }
  .play-labels small { font-size: 9px; }
  .panel-title-row { margin: 22px 0; }
  .panel-title-row h1 { font-size: 25px; }
  .panel-title-row p { font-size: 11px; }
  .equipment-section, .inventory-section { padding: 15px; border-radius: 18px; }
  .eq-tile { min-height: 145px; padding: 10px 5px; gap: 7px; }
  .eq-svg { width: 75px; height: 76px; max-width: 100%; }
  .eq-name, .eq-stat { font-size: 10px; }
  .eq-tier-pill { font-size: 8px; }
  .bag-icons-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); min-height: 240px; max-height: 360px; gap: 8px; }
  .bag-cell { min-height: 116px; gap: 5px; }
  .bc-svg { width: 65px; height: 62px; }
  .bc-name, .bc-tag { font-size: 9px; }
  .rarity-legend { font-size: 8px; }
  .btn-crate { min-height: 115px; padding: 13px; gap: 12px; }
  .crate-svg { width: 82px; height: 78px; }
  .btn-crate b { font-size: 15px; }
  .hero-cards-grid { grid-template-columns: 1fr; gap: 18px; }
  .hc-visual-row { height: 255px; padding: 22px 19px; }
  .hc-svg-box { width: 75%; right: -5px; }
  .hc-identity { max-width: 57%; }
  .hc-identity h3 { font-size: 23px; }
  .hc-evolution { margin-top: 112px; font-size: 11px; max-width: 132px; }
  .hc-info-row { font-size: 11px; }
  .btn-hero-up { font-size: 12px; padding: 13px; }
  .modal-card, .ad-card { padding: 25px 18px; border-radius: 22px; }
  .modal-symbol { width: 73px; height: 66px; }
  .modal-card h2 { font-size: 22px; }
  .modal-description { font-size: 11px; margin-bottom: 18px; }
  .visual-choices-row { gap: 10px; margin-bottom: 18px; }
  .v-choice-card { min-height: 119px; padding: 11px 10px; grid-template-columns: 85px minmax(0, 1fr) auto; gap: 5px 9px; }
  .vc-svg { width: 84px; height: 91px; margin: 0; }
  .vc-title { font-size: 13px; }
  .vc-stat { font-size: 10px; }
  .vc-pill { font-size: 8px; }
  .v-choice-card:after { font-size: 8px; }
  .btn-mega-gold { font-size: 12px; }
  .perk-box b { font-size: 10px; }
  .perk-box small { font-size: 8px; }
  .perk-svg { width: 61px; height: 58px; }
  .skill-orb { width: 54px; height: 68px; padding: 7px 3px 5px; gap: 0; border-radius: 14px; }
  .orb-svg { width: 43px; height: 43px; }
  .skill-orb b { font-size: 8px; line-height: 13px; }
  .orb-badge { font-size: 7px; }
  .hud-skill-dock { gap: 16px; }
  .hud-avatar-svg { width: 31px; height: 32px; }
  .sq-slot { width: 34px; height: 35px; }
  .sq-slot-svg { width: 30px; height: 30px; }
  .tutorial-panel { bottom: 128px; padding: 11px 13px; }
  .tut-text { font-size: 14px; }
  .hud-synergy { left: 8px; bottom: 132px; }
  .syn-chip { font-size: 9px; padding: 4px 7px; }
  .set-row { grid-template-columns: minmax(0, 1fr) auto; }
  .set-row input[type=range] { width: 120px; grid-column: 1 / 2; }
  .set-row output { grid-column: 2; }
  .health-notice { font-size: 9px; margin-top: 15px; padding: 5px 4px; }
}
@media (max-width: 360px) {
  .logo-chip { flex-shrink: 0; }
  .logo-text b, .logo-text small { white-space: nowrap; }
  #btn-hub-mute, #btn-help { display: none; }
  .logo-svg-wrap { width: 28px; }
  .logo-text b { font-size: 12px; }
  .top-currencies { gap: 4px; }
  .mission-copy { padding-inline: 15px; }
  .mission-copy h1 { font-size: 27px; }
  .mission-facts small { font-size: 7px; }
  .eq-svg { width: 65px; }
  .vc-svg { width: 73px; }
  .v-choice-card { grid-template-columns: 74px minmax(0, 1fr) auto; }
}
@media (max-height: 600px) and (min-width: 651px) {
  .mission-hero { min-height: 300px; }
  .mission-copy { padding-block: 22px; }
  .mission-copy h1 { font-size: 34px; }
  .modal-card { padding: 20px 25px; }
  .modal-symbol { display: none; }
  .modal-description { margin-bottom: 14px; }
  .v-choice-card { min-height: 212px; gap: 7px; }
  .vc-svg { width: 100px; height: 95px; }
  .skill-orb { width: 50px; height: 60px; padding: 5px 3px; }
  .orb-svg { width: 36px; height: 36px; }
  .skill-orb b { font-size: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  .tut-highlight, .coach-target, .res-star.on { animation: none; }
}
