/* 十三城 · 江苏 主面板样式 */
#csj-app { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; color: #1f2937; }

.csj-panel {
    max-width: 920px;
    margin: 24px auto;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 4px 16px rgba(15,23,42,0.05);
}

/* Hero */
.csj-hero {
    background: linear-gradient(135deg, var(--c, #2c5530), #0f172a);
    color: #fff;
    border-radius: 12px;
    padding: 18px 22px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}
.csj-hero-team { display: flex; align-items: center; gap: 16px; }
.csj-hero-mascot { font-size: 44px; line-height: 1; width: 58px; height: 58px; border-radius: 14px; }
.csj-hero-team small { display: block; opacity: 0.7; font-size: 12px; }
.csj-hero-team strong { display: block; font-size: 20px; margin: 2px 0; }
.csj-hero-team em { font-style: normal; opacity: 0.75; font-size: 13px; }
.csj-hero-empty { font-size: 18px; opacity: 0.8; }
.csj-hero-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.csj-btn {
    background: #fff; color: #1f2937; border: none;
    padding: 8px 16px; border-radius: 999px; font-weight: 600;
    cursor: pointer; font-size: 14px; text-decoration: none;
    display: inline-flex; align-items: center;
}
.csj-btn:hover { background: #f1f5f9; }
.csj-btn-ghost { background: rgba(255,255,255,0.15); color: #fff; }
.csj-btn-ghost:hover { background: rgba(255,255,255,0.25); }

/* Region rings */
.csj-regions {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px;
}
.csj-region {
    background: #f8fafc; border: 1px solid #e2e8f0;
    border-radius: 10px; padding: 10px 12px;
}
.csj-region-label { font-weight: 700; color: #0f172a; margin-bottom: 6px; }
.csj-region-bar { background: #e2e8f0; height: 6px; border-radius: 999px; overflow: hidden; margin-bottom: 4px; }
.csj-region-bar i { display: block; height: 100%; background: #16a34a; transition: width .3s ease; }
.csj-region small { color: #64748b; font-size: 12px; }

/* Matches + revenge */
.csj-matches, .csj-revenge {
    background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px;
    padding: 10px 14px; margin-bottom: 12px;
}
.csj-revenge { background: #fef2f2; border-color: #fecaca; }
.csj-matches h4, .csj-revenge h4 { margin: 0 0 6px; font-size: 13px; color: #92400e; }
.csj-revenge h4 { color: #991b1b; }
.csj-match, .csj-revenge-item { font-size: 13px; color: #1f2937; line-height: 1.7; }
.csj-match small, .csj-revenge-item small { color: #6b7280; margin-left: 6px; }

/* City grid */
.csj-city-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px; margin-bottom: 14px;
}
.csj-city {
    background: #fff; border: 2px solid #e2e8f0;
    border-radius: 10px; padding: 12px 8px; cursor: pointer;
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    transition: transform .15s ease, border-color .15s ease;
    --c: #94a3b8;
}
.csj-city:hover { transform: translateY(-2px); border-color: var(--c); }
.csj-city.is-team { border-color: var(--c); box-shadow: 0 0 0 3px rgba(0,0,0,0.04); }
.csj-city-mascot { font-size: 26px; }
.csj-city-icon {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 10px;
    background: color-mix(in srgb, var(--c, #2563eb) 10%, #fff);
}
.csj-city-icon-svg {
    width: 100%;
    height: 100%;
    display: block;
    filter: drop-shadow(0 2px 3px rgba(15,23,42,.12));
}
.csj-city-name { font-weight: 700; font-size: 14px; color: #1f2937; }
.csj-stars { color: #f59e0b; font-size: 13px; letter-spacing: 1px; }

/* Badges */
.csj-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.csj-badge {
    background: #f1f5f9; color: #94a3b8;
    border-radius: 999px; padding: 4px 12px;
    font-size: 12px; font-weight: 600;
}
.csj-badge.is-got {
    background: linear-gradient(135deg, #16a34a, #2c5530); color: #fff;
}

/* Modal base */
.csj-modal {
    position: fixed; inset: 0; background: rgba(15,23,42,0.55);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px); z-index: 9999;
    display: flex; align-items: center; justify-content: center; padding: 16px;
}
.csj-modal-card {
    background: #fff; border-radius: 14px; padding: 24px;
    max-width: 460px; width: 100%; max-height: 90vh; overflow-y: auto;
    position: relative; animation: csj-pop .22s ease-out;
}
@keyframes csj-pop { from { transform: scale(.96) translateY(10px); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.csj-close {
    position: absolute; top: 8px; right: 10px;
    background: none; border: none; font-size: 24px;
    color: #94a3b8; cursor: pointer; line-height: 1;
}

/* Team picker */
.csj-modal-team .csj-modal-card { max-width: 720px; }
.csj-modal-team h3 { margin: 0 0 4px; }
.csj-sub { color: #64748b; font-size: 13px; margin: 0 0 16px; }
.csj-team-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px;
}
.csj-team-card {
    border: 2px solid #e2e8f0; background: #fff;
    border-radius: 10px; padding: 12px 8px; cursor: pointer;
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    transition: transform .15s ease, border-color .15s ease;
    --c: #94a3b8;
}
.csj-team-card:hover { transform: translateY(-2px); border-color: var(--c); }
.csj-team-card.is-active { border-color: var(--c); background: rgba(0,0,0,0.02); }
.csj-team-card.is-loading { opacity: 0.5; pointer-events: none; }
.csj-team-mascot { font-size: 30px; width: 42px; height: 42px; }
.csj-team-name { font-weight: 700; font-size: 15px; }
.csj-team-tag { font-size: 12px; color: #64748b; }
.csj-team-region { font-size: 11px; color: var(--c); font-weight: 600; }

/* Meme modal */
.csj-modal-meme .csj-modal-card { border-top: 4px solid var(--c, #2c5530); }
.csj-meme-head { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.csj-meme-mascot { font-size: 34px; width: 44px; height: 44px; }
.csj-meme-head strong { display: block; font-size: 16px; }
.csj-meme-head small { display: block; color: #64748b; font-size: 12px; }
.csj-meme-q { font-size: 16px; line-height: 1.6; margin: 8px 0; }
.csj-meme-hint {
    background: #fffbeb; border-left: 3px solid #f59e0b;
    padding: 8px 12px; border-radius: 6px;
    font-size: 13px; color: #92400e; margin-bottom: 12px;
}
.csj-meme-form { display: flex; gap: 8px; }
.csj-meme-form input {
    flex: 1; padding: 10px 12px; font-size: 15px;
    border: 2px solid #e2e8f0; border-radius: 8px; outline: none;
}
.csj-meme-form input:focus { border-color: var(--c, #2c5530); }
.csj-meme-form button {
    background: var(--c, #2c5530); color: #fff; border: none;
    padding: 0 18px; border-radius: 8px; font-weight: 600; cursor: pointer;
}
.csj-meme-form.is-loading { opacity: 0.6; pointer-events: none; }
.csj-meme-msg { margin-top: 10px; font-size: 13px; color: #dc2626; line-height: 1.5; min-height: 1em; }
.csj-meme-msg.is-ok { color: #16a34a; }

/* Share modal */
.csj-modal-share .csj-modal-card { max-width: 380px; text-align: center; }
.csj-share-img { width: 100%; border-radius: 10px; }
.csj-share-hint { color: #64748b; font-size: 12px; margin: 10px 0; }

/* Toast */
.csj-toast {
    position: fixed; left: 50%; bottom: 80px; transform: translateX(-50%) translateY(20px);
    background: rgba(15,23,42,0.92); color: #fff;
    padding: 10px 18px; border-radius: 999px;
    font-size: 14px; opacity: 0; pointer-events: none;
    transition: opacity .24s ease, transform .24s ease;
    z-index: 10000;
}
.csj-toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.csj-toast-success { background: #16a34a; }
.csj-toast-error { background: #dc2626; }
.csj-toast-info { background: #0ea5e9; }

/* 🔫 Cannon (城市炮击) */
.csj-cannon-card { max-width: 560px; }
.csj-cannon-head h3 { margin: 0 0 12px; }
.csj-cannon-tabs {
    display: flex; gap: 4px; background: #f1f5f9; padding: 4px;
    border-radius: 10px; margin-bottom: 10px;
}
.csj-cannon-tab {
    flex: 1; padding: 8px 10px; border: none; background: transparent;
    border-radius: 8px; cursor: pointer; font-weight: 600;
    color: #64748b; font-size: 13px;
}
.csj-cannon-tab.is-active { background: #fff; color: #1f2937; box-shadow: 0 1px 2px rgba(0,0,0,.06); }

.csj-cannon-disclaimer {
    background: #fffbeb; border: 1px solid #fde68a; color: #92400e;
    border-radius: 8px; padding: 8px 12px; font-size: 12px; margin-bottom: 10px;
}
.csj-cannon-quota {
    text-align: center; font-size: 13px; color: #64748b; margin-bottom: 12px;
}
.csj-cannon-quota b { color: #1f2937; }

.csj-btn-fire {
    width: 100%; background: linear-gradient(135deg, #dc2626, #991b1b);
    color: #fff; padding: 12px;
    font-size: 16px; margin-bottom: 14px;
    border: none; border-radius: 10px; font-weight: 700; cursor: pointer;
}
.csj-btn-fire:hover { filter: brightness(1.05); }
.csj-btn-fire:disabled { opacity: .6; cursor: not-allowed; }

.csj-cannon-feed {
    max-height: 60vh; overflow-y: auto;
    display: flex; flex-direction: column; gap: 10px;
}
.csj-cannon-empty { text-align: center; color: #94a3b8; padding: 32px 0; font-size: 14px; }

.csj-shot {
    background: #f8fafc; border: 1px solid #e2e8f0;
    border-radius: 10px; padding: 12px 14px;
}
.csj-shot-arrow { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; flex-wrap: wrap; }
.csj-chip {
    background: var(--c, #94a3b8); color: #fff;
    padding: 2px 10px; border-radius: 999px;
    font-size: 12px; font-weight: 700;
}
.csj-arrow { color: #94a3b8; font-weight: 700; }
.csj-mine-tag {
    background: #1f2937; color: #fff;
    font-size: 11px; padding: 2px 8px; border-radius: 999px; margin-left: 4px;
}
.csj-shot-text {
    margin: 8px 0; font-size: 14px; line-height: 1.6; color: #1f2937;
}
.csj-shot-foot {
    display: flex; align-items: center; justify-content: space-between;
    font-size: 11px; color: #94a3b8;
}
.csj-shot-rx { display: flex; gap: 6px; }
.csj-rx {
    background: #fff; border: 1px solid #e2e8f0;
    border-radius: 999px; padding: 4px 10px; cursor: pointer; font-size: 13px;
    transition: all .15s ease;
}
.csj-rx:hover { border-color: #94a3b8; }
.csj-rx.is-mine { background: #1f2937; color: #fff; border-color: #1f2937; }
.csj-rx b { font-weight: 600; margin-left: 2px; }

.csj-shot-preview { justify-content: center; margin: 12px 0; }
.csj-draft-text {
    background: #fef2f2; border-left: 4px solid #dc2626;
    padding: 14px; border-radius: 8px;
    font-size: 15px; line-height: 1.6; color: #1f2937;
    margin: 14px 0;
}
.csj-draft-actions { display: flex; gap: 8px; }
.csj-draft-actions .csj-btn { flex: 1; justify-content: center; }

/* 🏯 Towers */
.csj-towers-card { max-width: 700px; }
.csj-towers-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px; margin-top: 12px;
}
.csj-tower {
    background: #fff; border: 2px solid #e2e8f0;
    border-radius: 12px; padding: 12px 10px;
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    position: relative; overflow: hidden;
    transition: border-color .15s ease, transform .15s ease;
    --c: #94a3b8;
}
.csj-tower:hover { transform: translateY(-2px); border-color: var(--c); }
.csj-tower-emoji { font-size: 32px; line-height: 1; }
.csj-tower-name { font-weight: 700; font-size: 14px; color: #1f2937; }
.csj-tower-hp { width: 100%; }
.csj-tower-hp-bar {
    background: #e2e8f0; height: 8px; border-radius: 999px; overflow: hidden;
}
.csj-tower-hp-bar i {
    display: block; height: 100%; background: var(--c);
    transition: width .3s ease;
}
.csj-tower-hp small {
    display: block; text-align: center; margin-top: 4px;
    font-size: 11px; color: #64748b;
}
.csj-tower-gold .csj-tower-hp-bar i { background: linear-gradient(90deg, #f59e0b, #d97706); }
.csj-tower-silver .csj-tower-hp-bar i { background: linear-gradient(90deg, #94a3b8, #64748b); }
.csj-tower-critical { animation: csj-tower-pulse 1.4s infinite; }
.csj-tower-critical .csj-tower-hp-bar i { background: linear-gradient(90deg, #ef4444, #dc2626); }
@keyframes csj-tower-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
    50% { box-shadow: 0 0 0 6px rgba(220, 38, 38, .18); }
}

.csj-tower.is-occupied {
    background: linear-gradient(180deg, var(--c) 0%, var(--c) 30%, #fff 30%);
    border-color: var(--c);
    color: #fff;
}
.csj-tower.is-occupied .csj-tower-name { color: #1f2937; }
.csj-tower.is-occupied .csj-tower-emoji { filter: drop-shadow(0 0 4px rgba(0,0,0,.3)); }
.csj-tower-flag {
    margin-top: 4px;
    font-size: 11px;
    background: var(--c);
    color: #fff;
    padding: 2px 8px;
    border-radius: 999px;
    font-weight: 700;
}

/* 🛡 江苏十三城守卫战独立页面 */
.csj-suchao-page { background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%); min-height: 60vh; padding-bottom: 40px; }
.csj-container { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

.csj-suchao-hero-banner {
    background: linear-gradient(135deg, #2c5530 0%, #1e3a8a 100%);
    color: #fff;
    padding: 48px 0;
    text-align: center;
    margin-bottom: 24px;
}
.csj-suchao-eyebrow {
    display: inline-block;
    background: rgba(255,255,255,0.16);
    border-radius: 999px;
    padding: 4px 14px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 12px;
}
.csj-suchao-hero-banner h1 {
    font-size: 36px; margin: 0 0 8px; color: #fff;
}
.csj-suchao-hero-banner p {
    margin: 0; opacity: 0.85; font-size: 15px;
}

.csj-suchao-map-section { margin-bottom: 24px; }
.csj-suchao-map {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 480px;
    background: #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #cbd5e1;
}
.csj-map-wrap {
    position: relative;
}
.csj-map-actions {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 650;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    pointer-events: none;
}
.csj-map-actions .csj-qa {
    min-height: 76px;
    padding: 10px 12px;
    border: 1px solid rgba(255,255,255,.72);
    background: rgba(255,255,255,.92);
    box-shadow: 0 12px 32px rgba(15, 23, 42, .18);
    backdrop-filter: blur(12px);
    pointer-events: auto;
}
.csj-map-actions .csj-qa-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    font-size: 26px;
}
.csj-map-actions .csj-qa-text strong {
    font-size: 15px;
}
.csj-map-actions .csj-qa-text small {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.csj-map-actions .csj-qa-meta {
    min-width: 44px;
    padding: 5px 8px;
}
.csj-map-loading {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.82);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.24);
    pointer-events: none;
}
.csj-map-loading.is-hidden {
    display: none;
}
.csj-map-layer-toggle {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 680;
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    border-radius: 999px;
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(148,163,184,.34);
    box-shadow: 0 10px 28px rgba(15,23,42,.16);
    backdrop-filter: blur(12px);
}
.csj-map-layer-toggle button {
    border: 0;
    border-radius: 999px;
    padding: 7px 12px;
    min-width: 46px;
    background: transparent;
    color: #475569;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
}
.csj-map-layer-toggle button.is-active {
    background: #111827;
    color: #fff;
}
.csj-suchao-map.is-satellite::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 460;
    background: linear-gradient(180deg, rgba(15,23,42,.08), rgba(15,23,42,.16));
}
.csj-suchao-map-tip {
    text-align: center;
    color: #64748b;
    font-size: 13px;
    margin: 10px 0 0;
}
.csj-map-legend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 10px 0 0;
}
.csj-map-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    padding: 5px 9px;
    background: rgba(255,255,255,0.92);
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    color: #334155;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}
.csj-map-legend i {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}
.csj-map-legend .is-safe { background: #16a34a; }
.csj-map-legend .is-warn { background: #f59e0b; }
.csj-map-legend .is-critical { background: #dc2626; box-shadow: 0 0 0 3px rgba(220,38,38,0.16); }
.csj-map-legend .is-occupied { background: #475569; }

/* 战场页主结构：地图作为主舞台，指挥面板承载行动 */
.csj-game-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 14px;
    align-items: start;
    padding-top: 14px;
}
.csj-game-stage {
    min-width: 0;
}
.csj-stage-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}
.csj-stage-head h1 {
    margin: 4px 0 0;
    font-size: 28px;
    line-height: 1.1;
    color: #111827;
    letter-spacing: 0;
}
.csj-stage-head p {
    margin: 0 0 2px;
    max-width: 360px;
    color: #64748b;
    font-size: 13px;
    text-align: right;
}
.csj-game-shell .csj-suchao-eyebrow {
    margin-bottom: 0;
    background: #e2e8f0;
    color: #334155;
    letter-spacing: 1px;
}
.csj-command-panel {
    position: sticky;
    top: 116px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}
.csj-map-hud-slot,
.csj-map-mission-slot {
    position: absolute;
    z-index: 680;
    pointer-events: none;
}
.csj-map-hud-slot {
    top: 14px;
    left: 14px;
    width: min(430px, calc(100% - 150px));
}
.csj-map-mission-slot {
    right: 14px;
    bottom: 106px;
    width: min(320px, calc(100% - 28px));
}
.csj-map-hud-slot > *,
.csj-map-mission-slot > * { pointer-events: auto; }
.csj-map-hud-slot .csj-golden-card {
    display: grid;
    grid-template-columns: auto minmax(120px, 1fr) auto;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid rgba(255,255,255,.76);
    border-radius: 10px;
    background: rgba(255,255,255,.93);
    box-shadow: 0 14px 34px rgba(15,23,42,.2);
    backdrop-filter: blur(14px);
}
.csj-map-hud-slot .csj-golden-card::before,
.csj-map-hud-slot .csj-golden-cta-row { display: none; }
.csj-map-hud-slot .csj-golden-team { gap: 8px; min-width: 0; }
.csj-map-hud-slot .csj-golden-mascot { width: 42px; height: 42px; font-size: 24px; }
.csj-map-hud-slot .csj-golden-team small,
.csj-map-hud-slot .csj-golden-team span { display: none; }
.csj-map-hud-slot .csj-golden-team strong { font-size: 15px; white-space: nowrap; }
.csj-map-hud-slot .csj-golden-hp { min-width: 120px; margin: 0; }
.csj-map-hud-slot .csj-golden-hp-label { font-size: 10px; }
.csj-map-hud-slot .csj-golden-hp-num { margin-top: 2px; font-size: 18px; }
.csj-map-hud-slot .csj-golden-hp-num small { font-size: 11px; }
.csj-map-hud-slot .csj-golden-hp-bar { height: 5px; margin-top: 3px; }
.csj-map-hud-slot .csj-golden-stats {
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: 8px;
    margin: 0;
}
.csj-map-hud-slot .csj-golden-stats > div { min-width: 38px; text-align: center; }
.csj-map-hud-slot .csj-golden-stats b { font-size: 16px; }
.csj-map-hud-slot .csj-golden-stats small { font-size: 9px; white-space: nowrap; }
.csj-map-hud-slot .csj-visitor-start { grid-template-columns: auto 1fr auto; }
.csj-map-hud-slot .csj-visitor-steps { display: none; }
.csj-map-hud-slot .csj-visitor-actions { min-width: 122px; }
.csj-map-mission-slot .csj-solo-ops {
    margin: 0;
    padding: 11px;
    border: 1px solid rgba(255,255,255,.16);
    box-shadow: 0 16px 38px rgba(15,23,42,.3);
    backdrop-filter: blur(14px);
}
.csj-map-mission-slot .csj-solo-threatline strong { font-size: 17px; }
.csj-map-mission-slot .csj-solo-threatline p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 12px;
}
.csj-map-mission-slot .csj-solo-big-cta { min-height: 42px; margin-top: 9px; font-size: 14px; }
.csj-map-mission-slot .csj-solo-secondary-actions button { min-height: 32px; font-size: 11px; }
.csj-command-panel .csj-solo-card { margin-top: 0; }
.csj-command-panel .csj-solo-rule { margin-top: 6px; }
.csj-command-panel .csj-golden-hero {
    margin: 0;
    padding: 0;
}
.csj-command-panel .csj-golden-card {
    display: block;
    padding: 16px;
    border-radius: 12px;
}
.csj-command-panel .csj-golden-card::before {
    display: none;
}
.csj-command-panel .csj-golden-team,
.csj-command-panel .csj-golden-empty {
    width: 100%;
}
.csj-command-panel .csj-golden-hp,
.csj-command-panel .csj-golden-stats,
.csj-command-panel .csj-golden-cta-row {
    margin-top: 12px;
}
.csj-command-panel .csj-golden-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.csj-command-panel .csj-golden-cta-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.csj-command-panel .csj-golden-cta {
    width: 100%;
}
.csj-command-panel .csj-event-banner {
    margin-top: 10px;
    border-radius: 10px;
}
.csj-command-panel .csj-golden-highlights {
    margin-top: 10px;
}
.csj-command-panel .csj-empty-states {
    margin: 0;
}
.csj-command-panel .csj-empty-card {
    margin: 0 0 8px;
    padding: 12px;
}
.csj-command-panel .csj-empty-emoji {
    width: 54px;
    height: 54px;
    font-size: 28px;
}
.csj-collection-drawer {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}
.csj-collection-drawer summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    user-select: none;
}
.csj-collection-drawer summary::-webkit-details-marker {
    display: none;
}
.csj-collection-drawer summary::after {
    content: '⌄';
    color: #64748b;
    font-size: 18px;
    transition: transform 0.18s ease;
}
.csj-collection-drawer[open] summary::after {
    transform: rotate(180deg);
}
.csj-collection-drawer summary span {
    display: block;
    color: #111827;
    font-weight: 800;
    font-size: 14px;
}
.csj-collection-drawer summary small {
    color: #64748b;
    font-size: 11px;
    line-height: 1.2;
    text-align: right;
}
.csj-collection-drawer #csj-app {
    border-top: 1px solid #e2e8f0;
}
.csj-collection-drawer .csj-panel {
    box-shadow: none;
    border: 0;
    border-radius: 0;
}
.csj-collection-drawer .csj-hero {
    display: none;
}
.csj-warn {
    background: #fef2f2; color: #991b1b;
    border: 1px solid #fecaca; border-radius: 10px;
    padding: 14px; text-align: center;
}

/* 江苏十三城守卫战入口卡片 */
.csj-entry-card {
    display: flex; align-items: center; gap: 14px;
    background: linear-gradient(135deg, #2c5530 0%, #1e3a8a 100%);
    color: #fff !important;
    border-radius: 14px;
    padding: 16px 18px;
    text-decoration: none !important;
    box-shadow: 0 6px 20px rgba(44,85,48,0.18);
    transition: transform .15s ease, box-shadow .15s ease;
    max-width: 560px;
}
.csj-entry-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(44,85,48,0.28);
    color: #fff !important;
}
.csj-entry-mascot {
    font-size: 36px; line-height: 1;
    background: rgba(255,255,255,0.15);
    width: 56px; height: 56px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.csj-entry-body { flex: 1; min-width: 0; }
.csj-entry-body strong { display: block; font-size: 18px; }
.csj-entry-body p {
    margin: 4px 0 8px;
    opacity: 0.85;
    font-size: 13px;
}
.csj-entry-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.csj-entry-chip {
    background: rgba(255,255,255,0.2);
    border-radius: 999px;
    padding: 2px 10px;
    font-size: 11px;
    font-weight: 600;
}
.csj-entry-chip-warn { background: #dc2626; }
.csj-entry-arrow { font-size: 24px; opacity: 0.7; }

.csj-entry-card-warn {
    background: #fffbeb; color: #92400e;
    border: 1px solid #fde68a; border-radius: 10px;
    padding: 10px 14px; font-size: 13px;
}
.csj-entry-floating {
    position: fixed;
    bottom: 84px;
    right: 16px;
    z-index: 9000;
    max-width: 360px;
}
.csj-entry-floating .csj-entry-card {
    padding: 12px 14px;
}
.csj-entry-floating .csj-entry-mascot {
    width: 44px; height: 44px; font-size: 28px;
}
.csj-entry-floating .csj-entry-body p { display: none; }

/* ============================
   📱 全局移动端优化（H5 适配）
   ============================ */

/* iOS Safari input focus 触发整页 zoom：font-size 必须 ≥ 16px */
input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
textarea,
select,
.csj-meme-form input,
.csj-cannon-card input {
    font-size: 16px !important;
}

/* 移除按钮 300ms tap 延迟 + 双击放大高亮 */
button,
.csj-btn,
.csj-qa,
[role="button"],
.csj-feed-card,
.csj-task-claim,
.csj-task-row,
.csj-hl-chip,
.csj-rx,
.csj-action-btn,
.csj-defense-act,
.csj-cannon-tab,
.csj-lb-tab-group button,
.csj-close,
.csj-help-fab,
.csj-rc-btn,
.csj-golden-cta,
.csj-tour-dot,
.csj-team-card,
.csj-city,
.csj-meme-form button,
.csj-cannon-card button {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* iPhone X+ 安全区 */
.csj-hud { padding-top: env(safe-area-inset-top); }
.csj-help-fab {
    bottom: calc(90px + env(safe-area-inset-bottom));
    right: calc(20px + env(safe-area-inset-right));
}
.csj-entry-floating {
    bottom: calc(84px + env(safe-area-inset-bottom));
    right: calc(16px + env(safe-area-inset-right));
}
.csj-toast { bottom: calc(80px + env(safe-area-inset-bottom)); }

/* 模态打开时锁定 body 滚动（iOS 安全） */
body.csj-modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* 触控目标 ≥ 44px（关闭 ×、反应、tab） */
.csj-close {
    width: 44px; height: 44px;
    line-height: 44px; text-align: center;
    font-size: 28px;
}
.csj-rx {
    min-height: 32px;
    padding: 6px 12px;
}
.csj-cannon-tab,
.csj-lb-tab-group button {
    min-height: 36px;
}
.csj-task-claim {
    min-height: 36px; min-width: 64px;
}

/* ============================
   🎮 江苏十三城守卫战 · 游戏感优化层
   ============================ */

/* HUD — sticky 顶栏 */
.csj-hud {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(180deg, rgba(15,23,42,0.96) 0%, rgba(15,23,42,0.92) 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
.csj-hud-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 6px 16px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}
.csj-hud-cell {
    position: relative;
    padding: 6px 10px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    --csj-team-color: #94a3b8;
    transition: background 0.2s ease;
}
.csj-hud-cell:hover { background: rgba(255,255,255,0.10); }
.csj-hud-cell.is-empty { background: rgba(220, 38, 38, 0.18); border-color: rgba(220, 38, 38, 0.4); }
.csj-hud-cell.is-critical { background: rgba(220, 38, 38, 0.18); }
.csj-hud-cell.is-occupied { background: rgba(71, 85, 105, 0.32); }
.csj-hud-cell.is-hometown { background: rgba(34, 197, 94, 0.18); border-color: rgba(34, 197, 94, 0.4); }
.csj-hud-icon { position: absolute; top: 8px; right: 10px; font-size: 16px; opacity: 0.7; }
.csj-hud-label {
    font-size: 10px;
    opacity: 0.7;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 2px;
}
.csj-hud-value {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.csj-hud-bar {
    height: 4px;
    background: rgba(255,255,255,0.15);
    border-radius: 999px;
    overflow: hidden;
    margin-top: 4px;
}
.csj-hud-bar i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #16a34a, #22c55e);
    transition: width 0.4s ease;
    width: 0%;
}
.csj-hud-cell.is-critical .csj-hud-bar i {
    background: linear-gradient(90deg, #ef4444, #dc2626);
    animation: csj-hud-pulse 1.2s infinite;
}
@keyframes csj-hud-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* 战场实况 marquee */
.csj-hud-marquee {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 16px;
    background: rgba(0,0,0,0.25);
    border-top: 1px solid rgba(255,255,255,0.06);
    font-size: 12px;
    overflow: hidden;
    white-space: nowrap;
}
.csj-hud-marquee-label {
    flex-shrink: 0;
    background: #dc2626;
    color: #fff;
    padding: 2px 8px;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 1px;
}
.csj-hud-marquee-track {
    overflow: hidden;
    text-overflow: ellipsis;
    color: rgba(255,255,255,0.85);
}
.csj-mq-item b { font-weight: 700; }
.csj-mq-sep { margin: 0 8px; opacity: 0.4; }

/* Hero shimmer */
.csj-suchao-hero-banner {
    position: relative;
    overflow: hidden;
}
.csj-suchao-hero-banner::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 80%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
    animation: csj-hero-shimmer 4s infinite;
}
@keyframes csj-hero-shimmer {
    0% { left: -80%; }
    100% { left: 180%; }
}

/* 空状态卡片 */
.csj-empty-states {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
    margin: 20px auto;
}
.csj-empty-card {
    background: #fff;
    border: 2px dashed #cbd5e1;
    border-radius: 14px;
    padding: 18px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    transition: border-color 0.2s ease, transform 0.2s ease;
}
.csj-empty-card:hover { transform: translateY(-2px); border-color: #2c5530; }
.csj-empty-team { border-color: #f59e0b; background: linear-gradient(135deg, #fffbeb 0%, #fff 100%); }
.csj-empty-login { border-color: #dc2626; background: linear-gradient(135deg, #fef2f2 0%, #fff 100%); }
.csj-empty-gps { border-color: #2c5530; background: linear-gradient(135deg, #f0fdf4 0%, #fff 100%); }
.csj-empty-emoji {
    font-size: 40px;
    width: 60px; height: 60px;
    background: rgba(0,0,0,0.04);
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.csj-empty-body strong { display: block; font-size: 16px; margin-bottom: 4px; }
.csj-empty-body p { font-size: 13px; color: #64748b; margin: 0 0 10px; line-height: 1.6; }

/* 快捷动作大按钮（3 个） */
.csj-quick-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 24px auto;
}
.csj-qa {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: #fff;
    border: 2px solid transparent;
    border-radius: 14px;
    cursor: pointer;
    text-align: left;
    box-shadow: 0 4px 12px rgba(15,23,42,0.06);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    overflow: hidden;
}
.csj-qa::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--c, transparent);
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 0;
}
.csj-qa > * { position: relative; z-index: 1; }
.csj-qa:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(15,23,42,0.12);
    border-color: var(--c);
}
.csj-qa.is-pressed {
    transform: translateY(1px) scale(0.98);
    box-shadow: 0 2px 6px rgba(15,23,42,0.08);
}
.csj-qa-cannon { --c: #dc2626; }
.csj-qa-meme { --c: #f59e0b; }
.csj-qa-tower { --c: #2c5530; }
.csj-qa-icon {
    font-size: 38px;
    width: 64px; height: 64px;
    background: var(--c);
    color: #fff;
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.csj-qa-text { flex: 1; min-width: 0; }
.csj-qa-text strong { display: block; font-size: 17px; color: #1f2937; }
.csj-qa-text small { font-size: 12px; color: #64748b; }
.csj-qa-meta {
    flex-shrink: 0;
    background: var(--c);
    color: #fff;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.csj-map-wrap .csj-map-actions {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 650;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    pointer-events: none;
}
.csj-map-wrap .csj-map-actions .csj-qa {
    min-height: 76px;
    padding: 10px 12px;
    border: 1px solid rgba(255,255,255,.72);
    background: rgba(255,255,255,.92);
    box-shadow: 0 12px 32px rgba(15, 23, 42, .18);
    backdrop-filter: blur(12px);
    pointer-events: auto;
}
.csj-map-wrap .csj-map-actions .csj-qa-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    font-size: 26px;
}
.csj-map-wrap .csj-map-actions .csj-qa-text strong {
    font-size: 15px;
}
.csj-map-wrap .csj-map-actions .csj-qa-text small {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.csj-map-wrap .csj-map-actions .csj-qa-meta {
    min-width: 44px;
    padding: 5px 8px;
    text-align: center;
}

/* 浮动 ❓ 帮助按钮 */
.csj-help-fab {
    position: fixed;
    bottom: 90px;
    right: 20px;
    z-index: 9000;
    width: 48px; height: 48px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #2c5530, #1e3a8a);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(44,85,48,0.32);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.csj-help-fab:hover {
    transform: scale(1.08);
    box-shadow: 0 10px 24px rgba(44,85,48,0.48);
}

/* 🎓 引导 overlay */
.csj-tour {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(15,23,42,0.85);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.csj-tour[hidden] { display: none; }
.csj-tour-card {
    background: #fff;
    border-radius: 18px;
    padding: 32px 28px 20px;
    max-width: 440px;
    width: 100%;
    text-align: center;
    box-shadow: 0 24px 60px rgba(0,0,0,0.4);
    animation: csj-tour-in .28s ease-out;
}
@keyframes csj-tour-in {
    from { transform: scale(0.9) translateY(20px); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.csj-tour-emoji {
    font-size: 64px;
    line-height: 1;
    margin-bottom: 12px;
    animation: csj-bounce 1s ease;
}
@keyframes csj-bounce {
    0%, 100% { transform: translateY(0); }
    30% { transform: translateY(-12px); }
    60% { transform: translateY(0); }
}
.csj-tour-card h3 {
    font-size: 22px;
    margin: 0 0 10px;
    color: #1f2937;
}
.csj-tour-card p {
    font-size: 15px;
    line-height: 1.7;
    color: #475569;
    margin: 0 0 20px;
}
.csj-tour-card p strong { color: #2c5530; }

.csj-tour-pager {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}
.csj-tour-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #e2e8f0;
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}
.csj-tour-dot.is-active {
    width: 24px;
    background: #2c5530;
    border-radius: 999px;
}

.csj-tour-actions {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: center;
}
.csj-tour-btn-skip {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 13px;
    padding: 6px 12px;
}
.csj-tour-btn-skip:hover { color: #64748b; }
.csj-tour-btn-prev, .csj-tour-btn-next, .csj-tour-btn-done {
    background: #2c5530;
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
}
.csj-tour-btn-prev {
    background: #f1f5f9;
    color: #1f2937;
}
.csj-tour-btn-prev:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.csj-tour-btn-prev:hover:not(:disabled) { background: #e2e8f0; }
.csj-tour-btn-next:hover, .csj-tour-btn-done:hover { background: #1f3d22; }
.csj-tour-btn-done {
    background: linear-gradient(135deg, #f59e0b, #dc2626);
}

/* ============================
   👆 地图点击 · 作战指令小卡
   ============================ */
.csj-action-card {
    max-width: 420px;
    border-top: 4px solid var(--c, #2c5530);
}
.csj-action-head {
    display: flex; gap: 12px; align-items: center; margin-bottom: 8px;
}
.csj-action-mascot {
    font-size: 36px;
    background: var(--c);
    color: #fff;
    width: 52px; height: 52px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.csj-action-head strong {
    display: block; font-size: 18px; color: #1f2937;
}
.csj-action-head strong em {
    font-style: normal;
    background: var(--c); color: #fff;
    padding: 1px 8px; border-radius: 999px;
    font-size: 11px; margin-left: 6px; vertical-align: middle;
}
.csj-action-head small { color: #64748b; font-size: 12px; }
.csj-action-occupied {
    display: block; text-align: center;
    background: #475569; color: #fff;
    padding: 6px 12px; border-radius: 8px;
    font-size: 13px; font-weight: 700;
    margin-bottom: 10px;
}
.csj-action-grid {
    display: flex; flex-direction: column; gap: 8px;
    margin-bottom: 12px;
}
.csj-action-btn {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    text-align: left;
    transition: transform .15s ease, border-color .15s ease;
}
.csj-action-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    border-color: #1f2937;
}
.csj-action-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.csj-action-btn b { display: block; font-size: 15px; color: #1f2937; font-weight: 700; }
.csj-action-btn small { display: block; font-size: 12px; color: #64748b; }
.csj-action-icon {
    font-size: 24px;
    width: 44px; height: 44px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.csj-action-fire .csj-action-icon { background: #fef2f2; color: #dc2626; }
.csj-action-defense .csj-action-icon { background: #fffbeb; color: #b45309; }
.csj-action-meme .csj-action-icon { background: #fef3c7; color: #d97706; }
.csj-action-tower .csj-action-icon { background: #f0fdf4; color: #16a34a; }
.csj-action-hint {
    margin: 0;
    font-size: 12px;
    color: #94a3b8;
    text-align: center;
    padding: 8px 0 0;
    border-top: 1px dashed #e2e8f0;
}

/* ============================
   🛡 十三城战况 · 防御指南
   ============================ */
.csj-defense-guide {
    margin: 16px 0;
    padding: 14px;
    background: linear-gradient(135deg, #fffbeb 0%, #fff 100%);
    border: 2px solid var(--c, #2c5530);
    border-radius: 12px;
}
.csj-defense-head {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 10px;
}
.csj-defense-head strong {
    font-size: 15px; color: #1f2937;
}
.csj-defense-warn {
    background: #dc2626; color: #fff;
    padding: 2px 10px; border-radius: 999px;
    font-size: 12px; font-weight: 700;
    animation: csj-hud-pulse 1.2s infinite;
}
.csj-defense-mid {
    background: #f59e0b; color: #fff;
    padding: 2px 10px; border-radius: 999px;
    font-size: 12px; font-weight: 700;
}
.csj-defense-actions {
    display: flex; flex-direction: column; gap: 6px;
}
.csj-defense-act {
    display: flex; align-items: center; gap: 10px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 12px;
    cursor: pointer;
    text-align: left;
    transition: border-color .15s ease, transform .15s ease;
}
.csj-defense-act:hover:not(.csj-defense-act-passive) {
    transform: translateX(2px);
    border-color: var(--c);
}
.csj-defense-act-passive {
    cursor: default;
    opacity: 0.7;
    background: #f8fafc;
}
.csj-defense-emoji {
    font-size: 22px;
    width: 36px; height: 36px;
    background: rgba(0,0,0,0.04);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.csj-defense-act > span:nth-child(2) {
    flex: 1; min-width: 0;
}
.csj-defense-act b { display: block; font-size: 13px; color: #1f2937; font-weight: 700; }
.csj-defense-act small { display: block; font-size: 11px; color: #64748b; }
.csj-defense-cta {
    flex-shrink: 0;
    font-size: 12px;
    color: var(--c);
    font-weight: 700;
}

/* ============================
   🎮 游戏感大升级（v0.5）
   ============================ */

/* 🎬 入场剧场动画 */
.csj-entrance {
    position: fixed; inset: 0; z-index: 99999;
    background: radial-gradient(circle at center, #1e3a8a 0%, #0f172a 100%);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    transition: opacity .6s ease;
}
.csj-entrance.is-leaving { opacity: 0; pointer-events: none; }
.csj-entrance-inner {
    text-align: center; padding: 24px;
}
.csj-entrance-title {
    font-size: 28px; font-weight: 800;
    letter-spacing: 4px; margin-bottom: 24px;
    animation: csj-glow 2s ease infinite;
}
@keyframes csj-glow {
    0%, 100% { text-shadow: 0 0 0 rgba(251, 191, 36, 0); }
    50% { text-shadow: 0 0 16px rgba(251, 191, 36, 0.6); }
}
.csj-entrance-progress {
    width: 280px; height: 4px;
    background: rgba(255,255,255,0.15);
    border-radius: 999px; margin: 0 auto 24px;
    overflow: hidden;
}
.csj-entrance-progress i {
    display: block; height: 100%;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    width: 0%;
    animation: csj-progress 1.5s ease forwards;
}
@keyframes csj-progress {
    to { width: 100%; }
}
.csj-entrance-dots {
    display: flex; justify-content: center; gap: 6px;
    flex-wrap: wrap; max-width: 320px; margin: 0 auto 16px;
}
.csj-edot {
    display: block;
    width: 10px; height: 10px; border-radius: 50%;
    background: rgba(255,255,255,0.1);
    transition: all .3s ease;
    --c: #94a3b8;
}
.csj-edot.is-on {
    background: var(--c);
    box-shadow: 0 0 12px var(--c);
    transform: scale(1.4);
}
.csj-entrance-tip {
    font-size: 13px; opacity: 0.7;
    letter-spacing: 1px;
}

/* 🌟 黄金 3 秒首屏 hero 卡 */
.csj-golden-hero { margin: 16px auto; }
.csj-golden-card {
    background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 18px 22px;
    display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
    box-shadow: 0 6px 20px rgba(15,23,42,0.08);
    position: relative; overflow: hidden;
    --c: #2c5530;
}
.csj-golden-card.csj-golden-active {
    border-color: var(--c);
    background:
        linear-gradient(135deg, rgba(255,255,255,0.95), rgba(255,255,255,0.85)),
        linear-gradient(135deg, var(--c), #1e3a8a);
    background-blend-mode: overlay;
}
.csj-golden-card::before {
    content: '';
    position: absolute; top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: csj-hero-shine 4s ease infinite;
}
@keyframes csj-hero-shine {
    0% { left: -60%; }
    60%, 100% { left: 160%; }
}
.csj-golden-empty .csj-golden-emoji {
    font-size: 48px;
    background: linear-gradient(135deg, #f59e0b, #dc2626);
    width: 70px; height: 70px;
    border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    box-shadow: 0 4px 12px rgba(220,38,38,0.32);
}
.csj-golden-info { flex: 1; min-width: 200px; }
.csj-golden-info strong { display: block; font-size: 19px; color: #1f2937; }
.csj-golden-info p { margin: 4px 0 0; font-size: 13px; color: #64748b; }
.csj-golden-team { display: flex; gap: 14px; align-items: center; }
.csj-golden-mascot {
    font-size: 40px;
    background: var(--c); color: #fff;
    width: 70px; height: 70px;
    border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 16px rgba(0,0,0,0.18);
    flex-shrink: 0;
}
.csj-golden-team small { font-size: 11px; color: #64748b; letter-spacing: 1px; }
.csj-golden-team strong { display: block; font-size: 22px; color: #1f2937; line-height: 1.1; }
.csj-golden-team span { font-size: 12px; color: #64748b; }
.csj-golden-hp { flex: 1; min-width: 180px; }
.csj-golden-hp-label { font-size: 11px; color: #64748b; letter-spacing: 1px; display: flex; gap: 8px; align-items: center; }
.csj-golden-tag {
    font-style: normal; font-size: 11px;
    padding: 1px 8px; border-radius: 999px; font-weight: 700;
}
.csj-golden-tag-safe { background: #d1fae5; color: #065f46; }
.csj-golden-tag-warn { background: #fef3c7; color: #b45309; }
.csj-golden-tag-critical { background: #fecaca; color: #991b1b; animation: csj-hud-pulse 1.2s infinite; }
.csj-golden-tag-fallen { background: #475569; color: #fff; }
.csj-golden-hp-num {
    font-size: 32px; font-weight: 800;
    color: #1f2937; line-height: 1.1;
    margin: 2px 0;
}
.csj-golden-hp-num small { font-size: 14px; opacity: 0.5; font-weight: 600; }
.csj-golden-hp-bar {
    background: #e2e8f0; height: 6px;
    border-radius: 999px; overflow: hidden;
}
.csj-golden-hp-bar i {
    display: block; height: 100%;
    background: linear-gradient(90deg, #16a34a, #22c55e);
    transition: width .5s ease;
}
.csj-golden-stats {
    display: flex; gap: 18px;
}
.csj-golden-stats > div {
    text-align: center;
}
.csj-golden-stats b {
    display: block; font-size: 24px;
    color: #1f2937; font-weight: 800;
}
.csj-golden-stats small {
    font-size: 11px; color: #64748b;
}
.csj-golden-cta {
    background: linear-gradient(135deg, var(--c), #1e3a8a);
    color: #fff; border: none;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 15px; font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(0,0,0,0.18);
    transition: transform .15s ease, box-shadow .15s ease;
}
.csj-golden-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.28);
}

/* 📐 地图摇晃 */
.csj-suchao-map.csj-map-shake {
    animation: csj-map-shake .35s cubic-bezier(.36, .07, .19, .97) both;
}

/* 地图守卫：精灵始终使用地图容器坐标，不拦截地图操作 */
.csj-map-avatar {
    position: absolute;
    z-index: 720;
    width: 68px;
    height: 82px;
    pointer-events: none;
    transform: translate(-50%, -86%);
    filter: drop-shadow(0 8px 8px rgba(15,23,42,.25));
}
.csj-map-avatar[hidden] { display: none; }
.csj-map-avatar-sprite {
    position: absolute;
    left: 0;
    bottom: 5px;
    width: 68px;
    height: 68px;
    background-image: url('images/csj-guard-sprites.png');
    background-repeat: no-repeat;
    background-size: 400% 200%;
    background-position: 0 100%;
    transform-origin: 50% 85%;
    will-change: transform, background-position;
}
.csj-map-avatar.is-facing-left .csj-map-avatar-sprite { transform: scaleX(-1); }
.csj-map-avatar.is-idle .csj-map-avatar-sprite { background-position: 0 100%; animation: csj-avatar-idle 1.7s ease-in-out infinite; }
.csj-map-avatar.is-repair .csj-map-avatar-sprite { background-position: 33.333% 100%; animation: csj-avatar-action .36s ease-in-out 3; }
.csj-map-avatar.is-cannon .csj-map-avatar-sprite { background-position: 66.666% 100%; animation: csj-avatar-recoil .42s ease-in-out 2; }
.csj-map-avatar.is-chest .csj-map-avatar-sprite { background-position: 100% 100%; animation: csj-avatar-action .5s ease-in-out 2; }
.csj-map-avatar-shadow {
    position: absolute;
    left: 14px;
    bottom: 1px;
    width: 40px;
    height: 9px;
    border-radius: 50%;
    background: rgba(15,23,42,.28);
    filter: blur(2px);
}
.csj-map-avatar-label {
    position: absolute;
    left: 50%;
    bottom: 76px;
    max-width: 130px;
    padding: 3px 7px;
    border: 1px solid rgba(255,255,255,.8);
    border-radius: 999px;
    background: rgba(15,23,42,.88);
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    line-height: 1.2;
    white-space: nowrap;
    box-shadow: 0 5px 14px rgba(15,23,42,.2);
    transform: translateX(-50%);
}
.csj-map-avatar.is-walking .csj-map-avatar-label { background: rgba(220,38,38,.92); }
@keyframes csj-avatar-idle {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -2px; }
}
@keyframes csj-avatar-action {
    0%, 100% { translate: 0 0; }
    45% { translate: 2px -3px; }
}
@keyframes csj-avatar-recoil {
    0%, 100% { translate: 0 0; }
    45% { translate: -5px 1px; }
}
@media (max-width: 640px) {
    .csj-map-avatar { width: 54px; height: 68px; }
    .csj-map-avatar-sprite { width: 54px; height: 54px; }
    .csj-map-avatar-label { bottom: 61px; font-size: 9px; }
    .csj-map-avatar-shadow { left: 11px; width: 32px; }
}
@media (prefers-reduced-motion: reduce) {
    .csj-map-avatar-sprite { animation: none !important; }
}
@keyframes csj-map-shake {
    0%, 100% { transform: translate3d(0, 0, 0); }
    10%      { transform: translate3d(-6px, 2px, 0) rotate(-0.4deg); }
    20%      { transform: translate3d(7px, -2px, 0) rotate(0.4deg); }
    30%      { transform: translate3d(-7px, 1px, 0) rotate(-0.3deg); }
    50%      { transform: translate3d(5px, -1px, 0) rotate(0.2deg); }
    70%      { transform: translate3d(-4px, 0, 0); }
    90%      { transform: translate3d(2px, 0, 0); }
}

/* 🔥💨 三层粒子（暴击专用） */
.csj-particle-flame {
    font-size: 28px;
    text-shadow: 0 0 8px #f59e0b, 0 0 16px #dc2626;
    transition: transform .9s cubic-bezier(.55, .06, .68, .19), opacity .9s ease;
}
.csj-particle-smoke {
    font-size: 30px;
    opacity: 0.85;
    filter: blur(0.6px);
    transition: transform 1.4s ease-out, opacity 1.4s ease-out;
}

/* 🌗 昼夜滤镜（覆盖在 .csj-suchao-map 上） */
.csj-suchao-page[data-csj-period="dawn"]  .csj-suchao-map { filter: sepia(0.18) hue-rotate(-10deg) saturate(1.1) brightness(1.05); }
.csj-suchao-page[data-csj-period="dusk"]  .csj-suchao-map { filter: sepia(0.32) hue-rotate(-18deg) saturate(1.15) brightness(0.95); }
.csj-suchao-page[data-csj-period="night"] .csj-suchao-map {
    filter: brightness(0.84) contrast(1.06) hue-rotate(-12deg) saturate(0.92);
}
.csj-suchao-page[data-csj-period="night"] .csj-stage-head h1 { color: #f8fafc; }
.csj-suchao-page[data-csj-period="night"] .csj-stage-head p { color: #cbd5e1; }
.csj-suchao-page[data-csj-period="night"] .csj-suchao-map-section::after {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(30, 27, 75, 0.25) 100%);
    pointer-events: none;
    mix-blend-mode: multiply;
}
.csj-suchao-page[data-csj-period="night"] {
    background: linear-gradient(180deg, #1e1b4b 0%, #0f172a 100%);
}
.csj-suchao-page[data-csj-period="night"] .csj-empty-card { background: rgba(255,255,255,0.96); }

/* 🥁 BGM 切换按钮 */
.csj-bgm-btn {
    position: fixed;
    bottom: calc(146px + env(safe-area-inset-bottom));
    right: calc(20px + env(safe-area-inset-right));
    z-index: 9001;
    width: 44px; height: 44px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #dc2626, #7f1d1d);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(220,38,38,0.32);
    transition: transform .15s ease, opacity .15s ease;
}
.csj-bgm-btn:hover { transform: scale(1.08); }
.csj-bgm-btn.is-muted {
    background: linear-gradient(135deg, #64748b, #334155);
    opacity: 0.7;
}

/* 🔥 复仇 banner */
.csj-revenge-banner {
    display: flex; align-items: center; gap: 10px;
    background: linear-gradient(135deg, #dc2626 0%, #7f1d1d 100%);
    color: #fff;
    border-radius: 12px;
    padding: 10px 14px;
    margin: 12px auto;
    max-width: 1080px;
    box-shadow: 0 6px 20px rgba(220,38,38,0.32);
    animation: csj-revenge-in .35s ease-out;
    position: relative; overflow: hidden;
}
@keyframes csj-revenge-in {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: translateY(0); }
}
.csj-revenge-banner::before {
    content: '';
    position: absolute; inset: 0;
    background: repeating-linear-gradient(45deg, rgba(255,255,255,0.05) 0 8px, transparent 8px 16px);
    pointer-events: none;
}
.csj-revenge-flag {
    font-size: 28px;
    animation: csj-flag-wave 1s ease infinite;
    flex-shrink: 0;
}
@keyframes csj-flag-wave {
    0%, 100% { transform: rotate(-6deg); }
    50% { transform: rotate(6deg); }
}
.csj-revenge-body { flex: 1; min-width: 0; }
.csj-revenge-body strong {
    display: block; font-size: 15px; font-weight: 800;
    letter-spacing: .5px;
}
.csj-revenge-body small {
    display: block;
    font-size: 12px; opacity: 0.85;
}
.csj-revenge-body .csj-lb-chip-mini { vertical-align: middle; }
.csj-revenge-btn {
    background: #fff;
    color: #dc2626;
    border: none;
    padding: 8px 16px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.18);
    flex-shrink: 0;
    animation: csj-revenge-pulse 1.4s ease infinite;
}
@keyframes csj-revenge-pulse {
    0%, 100% { box-shadow: 0 2px 6px rgba(0,0,0,0.18); }
    50% { box-shadow: 0 2px 6px rgba(0,0,0,0.18), 0 0 12px rgba(255,255,255,0.45); }
}
.csj-revenge-dismiss {
    background: rgba(0,0,0,0.18);
    border: none;
    color: #fff;
    width: 28px; height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    flex-shrink: 0;
}

/* 🧨 连击 combo 大字 */
.csj-combo-burst {
    position: fixed;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10001;
    text-align: center;
    pointer-events: none;
    animation: csj-combo-pop .7s cubic-bezier(.4, 1.6, .4, 1);
}
.csj-combo-text {
    display: block;
    font-size: 88px;
    font-weight: 900;
    color: #fff;
    -webkit-text-stroke: 3px #dc2626;
    text-stroke: 3px #dc2626;
    text-shadow:
        0 0 12px #fbbf24,
        0 0 32px #f59e0b,
        4px 4px 0 #000;
    letter-spacing: 4px;
    line-height: 1;
}
.csj-combo-sub {
    display: block;
    margin-top: 8px;
    font-size: 24px; font-weight: 800;
    color: #fbbf24;
    text-shadow: 2px 2px 0 #000, 0 0 12px #dc2626;
    letter-spacing: 6px;
}
@keyframes csj-combo-pop {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.3) rotate(-12deg); }
    30% { opacity: 1; transform: translate(-50%, -50%) scale(1.25) rotate(0deg); }
    60% { transform: translate(-50%, -50%) scale(1) rotate(0deg); }
    100% { opacity: 0; transform: translate(-50%, -80%) scale(0.95); }
}

/* 🚩 沦陷大动画 */
.csj-fall-cinematic {
    position: fixed;
    inset: 0;
    z-index: 99999;
    pointer-events: none;
    animation: csj-fall-in .5s ease forwards;
}
.csj-fall-cinematic.is-leaving { animation: csj-fall-out .55s ease forwards; }
@keyframes csj-fall-in {
    0%   { background: rgba(0,0,0,0); }
    100% { background: rgba(0,0,0,0.88); }
}
@keyframes csj-fall-out {
    0%   { background: rgba(0,0,0,0.88); opacity: 1; }
    100% { background: rgba(0,0,0,0); opacity: 0; }
}
.csj-fall-bg {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at center, rgba(220,38,38,0.4) 0%, transparent 60%);
    animation: csj-fall-bg-pulse 1.4s ease-out 1;
}
@keyframes csj-fall-bg-pulse {
    0%   { opacity: 0; transform: scale(0.8); }
    50%  { opacity: 1; transform: scale(1); }
    100% { opacity: 0.7; transform: scale(1); }
}
.csj-fall-flag {
    position: absolute;
    top: -200px; left: 50%;
    transform: translateX(-50%);
    width: 80px; height: 200px;
    animation: csj-fall-flag-drop 1.6s cubic-bezier(.65, 1.6, .4, 1) forwards;
    animation-delay: .4s;
}
@keyframes csj-fall-flag-drop {
    0%   { top: -200px; opacity: 0; }
    50%  { top: 32%; opacity: 1; }
    65%  { top: 28%; }   /* 弹跳 */
    100% { top: 30%; opacity: 1; }
}
.csj-fall-flag-pole {
    position: absolute; left: 50%; top: 0;
    transform: translateX(-50%);
    width: 4px; height: 200px;
    background: linear-gradient(180deg, #fbbf24, #92400e);
    border-radius: 2px;
}
.csj-fall-flag-cloth {
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(8px);
    font-size: 72px;
    line-height: 1;
    color: var(--c, #dc2626);
    text-shadow: 0 0 16px rgba(0,0,0,0.6);
    animation: csj-flag-flutter 0.6s ease infinite;
    animation-delay: 2s;
}
@keyframes csj-flag-flutter {
    0%, 100% { transform: translateX(8px) rotate(-3deg); }
    50%      { transform: translateX(12px) rotate(3deg); }
}
.csj-fall-title {
    position: absolute;
    top: 55%; left: 0; right: 0;
    text-align: center;
    color: #fff;
    font-size: 36px;
    font-weight: 800;
    letter-spacing: 6px;
    text-shadow: 4px 4px 0 #000, 0 0 24px rgba(220,38,38,0.8);
    opacity: 0;
    animation: csj-fall-title-in .6s ease forwards;
    animation-delay: 1.6s;
}
.csj-fall-title strong {
    color: #fbbf24;
    margin-left: 8px;
}
.csj-fall-title .csj-fall-occupier { margin-right: 8px; }
@keyframes csj-fall-title-in {
    from { opacity: 0; transform: scale(0.7); }
    to   { opacity: 1; transform: scale(1); }
}
.csj-fall-sub {
    position: absolute;
    top: 64%; left: 0; right: 0;
    text-align: center;
    color: rgba(255,255,255,0.75);
    font-size: 14px;
    letter-spacing: 4px;
    opacity: 0;
    animation: csj-fall-title-in .5s ease forwards;
    animation-delay: 1.9s;
}

/* 🎉 今日事件 banner */
.csj-event-banner {
    width: 100%;
    display: flex; align-items: center; gap: 12px;
    background: linear-gradient(135deg, #fbbf24 0%, #dc2626 100%);
    color: #fff;
    border-radius: 12px;
    padding: 12px 14px;
    margin-top: 12px;
    box-shadow: 0 4px 14px rgba(220,38,38,0.18);
    position: relative; overflow: hidden;
}
.csj-event-banner::before {
    content: '';
    position: absolute; top: 0; left: -60%;
    width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.32), transparent);
    animation: csj-event-shine 3.5s infinite;
}
@keyframes csj-event-shine {
    0% { left: -60%; }
    60%, 100% { left: 160%; }
}
.csj-event-emoji {
    font-size: 28px; line-height: 1;
    background: rgba(255,255,255,0.18);
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.csj-event-text strong {
    display: block; font-size: 16px; font-weight: 800;
    letter-spacing: .3px;
}
.csj-event-text small { display: block; font-size: 12px; opacity: 0.92; }

/* 💥 暴击视觉 */
.csj-boom {
    position: absolute; pointer-events: none; z-index: 1001;
    width: 120px; height: 120px;
    transform: translate(-50%, -50%);
    left: 0; top: 0;
}
.csj-boom-text {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 28px; font-weight: 900;
    text-shadow: 0 0 12px #f59e0b, 0 0 24px #dc2626, 2px 2px 0 #000;
    animation: csj-boom-text-pop .9s cubic-bezier(.5, 1.6, .4, 1) forwards;
    letter-spacing: 2px;
}
@keyframes csj-boom-text-pop {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.4) rotate(-12deg); }
    30% { opacity: 1; transform: translate(-50%, -50%) scale(1.4) rotate(0deg); }
    100% { opacity: 0; transform: translate(-50%, -120%) scale(1) rotate(0deg); }
}
.csj-boom-ring {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 4px solid rgba(251, 191, 36, 0.9);
    animation: csj-boom-ring-grow .9s ease-out forwards;
}
.csj-boom-ring-2 {
    border-color: rgba(220, 38, 38, 0.8);
    animation-delay: .15s;
}
@keyframes csj-boom-ring-grow {
    0% { opacity: 1; width: 20px; height: 20px; }
    100% { opacity: 0; width: 200px; height: 200px; }
}

/* ⚡ 难题徽章 */
.csj-hard-badge {
    display: inline-block;
    background: linear-gradient(135deg, #facc15, #f59e0b);
    color: #000; font-weight: 800; font-size: 12px;
    padding: 3px 10px; border-radius: 999px;
    margin: 0 0 6px;
    animation: csj-hard-glow 1.4s ease infinite;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}
@keyframes csj-hard-glow {
    0%, 100% { box-shadow: 0 2px 8px rgba(245,158,11,.4); }
    50% { box-shadow: 0 4px 16px rgba(245,158,11,.85); }
}

/* 战斗等级 */
.csj-profile-level {
    background: linear-gradient(135deg, #1e3a8a 0%, #2c5530 100%);
    color: #fff;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 12px;
}
.csj-profile-level-head {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 8px;
}
.csj-profile-level-rank {
    font-size: 17px; font-weight: 800;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.csj-profile-level-head small { opacity: 0.75; font-size: 12px; }
.csj-profile-level-bar {
    background: rgba(255,255,255,0.18);
    height: 8px;
    border-radius: 999px;
    overflow: hidden;
}
.csj-profile-level-bar i {
    display: block; height: 100%;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    transition: width .5s ease;
}

/* 最强对手 */
.csj-profile-rival {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 12px;
}
.csj-profile-rival small { color: #991b1b; font-size: 11px; font-weight: 600; letter-spacing: 1px; }
.csj-profile-rival-row {
    display: flex; align-items: center; gap: 10px;
    margin-top: 4px;
}
.csj-profile-rival-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 2px solid #fecaca;
    object-fit: cover;
}
.csj-profile-rival-row b { display: block; font-size: 14px; color: #1f2937; }
.csj-profile-rival-row .csj-lb-chip-mini { margin-top: 2px; }
.csj-profile-rival-cnt {
    margin-left: auto;
    color: #dc2626;
    font-weight: 800; font-size: 14px;
}

/* 🎯 每日任务条 */
.csj-tasks-strip {
    width: 100%;
    background: linear-gradient(135deg, #fffbeb 0%, #fff 100%);
    border: 1px solid #fde68a;
    border-radius: 12px;
    padding: 12px 14px;
    margin-top: 12px;
}
.csj-tasks-placeholder {
    color: #94a3b8; text-align: center; padding: 16px 0; font-size: 13px;
}
.csj-tasks-head {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 8px;
}
.csj-tasks-head strong { color: #92400e; font-size: 13px; }
.csj-rc-btn {
    background: linear-gradient(135deg, #16a34a, #166534);
    color: #fff; border: none;
    padding: 6px 14px; border-radius: 999px;
    font-size: 12px; font-weight: 700; cursor: pointer;
    box-shadow: 0 2px 6px rgba(22,163,74,0.32);
    transition: transform .15s ease;
}
.csj-rc-btn:hover { transform: translateY(-1px); }
.csj-task-row {
    display: flex; align-items: center; gap: 12px;
    padding: 8px 10px;
    background: rgba(255,255,255,0.7);
    border-radius: 8px;
    margin-bottom: 6px;
}
.csj-task-row.is-done { background: rgba(34,197,94,0.10); }
.csj-task-row.is-claimed { opacity: 0.55; }
.csj-task-info { flex: 1; min-width: 0; }
.csj-task-info strong { display: block; font-size: 13px; color: #1f2937; }
.csj-task-info small { display: block; font-size: 11px; color: #64748b; margin: 2px 0 4px; }
.csj-task-bar {
    background: #fde68a; height: 4px; border-radius: 999px; overflow: hidden;
}
.csj-task-bar i {
    display: block; height: 100%;
    background: linear-gradient(90deg, #f59e0b, #d97706);
    transition: width .3s ease;
}
.csj-task-claim {
    background: linear-gradient(135deg, #dc2626, #991b1b);
    color: #fff; border: none;
    padding: 6px 14px; border-radius: 999px;
    font-weight: 700; font-size: 12px;
    cursor: pointer;
    animation: csj-pulse-glow 1.6s ease infinite;
}
@keyframes csj-pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.6); }
    50%  { box-shadow: 0 0 0 6px rgba(220, 38, 38, 0); }
}
.csj-task-progress {
    font-size: 13px; color: #92400e; font-weight: 700;
    background: #fef3c7; padding: 4px 10px; border-radius: 999px;
}
.csj-task-claimed {
    font-size: 11px; color: #16a34a; font-weight: 700;
    background: #dcfce7; padding: 3px 10px; border-radius: 999px;
}

/* 👤 个人战绩卡 */
.csj-modal-profile .csj-modal-card { max-width: 520px; }
.csj-profile-loading { text-align: center; color: #94a3b8; padding: 40px 0; }
.csj-profile-head {
    display: flex; gap: 14px; align-items: center;
    padding: 12px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--c, #2c5530), #1e3a8a);
    color: #fff;
    margin-bottom: 14px;
}
.csj-profile-avatar {
    width: 64px; height: 64px; border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.5);
    object-fit: cover;
    background: #e2e8f0;
}
.csj-profile-id strong { display: block; font-size: 19px; }
.csj-profile-id small { display: block; opacity: 0.7; font-size: 12px; }
.csj-profile-id .csj-lb-chip { margin-top: 4px; display: inline-block; }
.csj-profile-titles {
    display: flex; flex-wrap: wrap; gap: 6px;
    padding: 10px 0; margin-bottom: 12px;
    border-bottom: 1px dashed #e2e8f0;
}
.csj-title-chip {
    background: var(--c, #2c5530);
    color: #fff;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px; font-weight: 700;
    cursor: help;
}
.csj-profile-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 8px; margin-bottom: 14px;
}
.csj-profile-stat {
    background: #f8fafc;
    border-radius: 10px;
    padding: 10px 6px;
    text-align: center;
}
.csj-profile-stat b {
    display: block; font-size: 22px; font-weight: 800; color: #1f2937;
}
.csj-profile-stat small { font-size: 11px; color: #64748b; }
.csj-profile-section {
    margin-bottom: 12px;
}
.csj-profile-section h4 {
    margin: 0 0 6px; font-size: 13px; color: #475569;
}
.csj-profile-mini {
    display: flex; justify-content: space-between; align-items: center;
    padding: 6px 8px;
    background: #f8fafc; border-radius: 8px;
    margin-bottom: 4px;
    font-size: 13px;
}
.csj-profile-mini b { color: #2c5530; }

/* Golden CTA 行 */
.csj-golden-cta-row { display: flex; gap: 8px; flex-wrap: wrap; }
.csj-golden-cta-ghost {
    background: rgba(255,255,255,0.85) !important;
    color: var(--c, #2c5530) !important;
    border: 2px solid var(--c, #2c5530) !important;
    box-shadow: none !important;
}
.csj-golden-cta-ghost:hover { background: #fff !important; }

/* 📊 Hero highlights 角标 */
.csj-golden-highlights {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed rgba(0,0,0,0.08);
    align-items: center;
}
.csj-hl-chip {
    background: var(--c, #94a3b8);
    color: #fff;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .3px;
}
.csj-hl-more {
    margin-left: auto;
    background: #1f2937;
    color: #fff;
    border: none;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}
.csj-hl-more:hover { background: #111827; }

/* 📊 排行榜 modal */
.csj-modal-lb .csj-modal-card { max-width: 560px; }
.csj-lb-tabs {
    display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px;
}
.csj-lb-tab-group {
    display: flex; gap: 4px; flex-wrap: wrap;
    background: #f1f5f9; padding: 4px; border-radius: 10px;
}
.csj-lb-tab-group button {
    flex: 1; min-width: 60px;
    padding: 7px 6px; border: none; background: transparent;
    border-radius: 8px; cursor: pointer; font-weight: 600;
    font-size: 12px; color: #64748b;
    transition: all .12s ease;
}
.csj-lb-tab-group button.is-active {
    background: #fff; color: #1f2937;
    box-shadow: 0 1px 2px rgba(0,0,0,.06);
}
.csj-lb-sub {
    display: block;
    color: #64748b;
    font-size: 11px;
    margin-bottom: 8px;
    letter-spacing: .5px;
}
.csj-lb-body { max-height: 50vh; overflow-y: auto; }
.csj-lb-loading, .csj-lb-empty { text-align: center; color: #94a3b8; padding: 40px 0; font-size: 13px; }
.csj-lb-row {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px;
    background: #f8fafc;
    border-radius: 10px;
    margin-bottom: 6px;
}
.csj-lb-row:hover { background: #f1f5f9; }
.csj-lb-rank {
    width: 28px; text-align: center;
    font-size: 16px; font-weight: 800;
    color: #1f2937;
}
.csj-lb-chip {
    background: var(--c, #94a3b8);
    color: #fff;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}
.csj-lb-chip-mini { font-size: 11px; padding: 1px 8px; }
.csj-lb-region {
    font-size: 11px;
    color: #94a3b8;
}
.csj-lb-avatar {
    width: 32px; height: 32px; border-radius: 50%;
    object-fit: cover;
    background: #e2e8f0;
}
.csj-lb-name {
    font-weight: 700; color: #1f2937; font-size: 14px;
    flex-shrink: 0;
}
.csj-lb-total {
    margin-left: auto;
    font-size: 18px; font-weight: 800;
    color: #2c5530;
}

/* 📡 Live feed 卡片化 */
.csj-live-feed {
    display: flex; align-items: center; gap: 12px;
    padding: 5px 16px;
    background: rgba(0,0,0,0.25);
    border-top: 1px solid rgba(255,255,255,0.06);
    overflow: hidden;
}
.csj-live-feed-label {
    flex-shrink: 0;
    background: #dc2626; color: #fff;
    padding: 2px 8px; border-radius: 999px;
    font-size: 11px; font-weight: 700; letter-spacing: 1px;
    animation: csj-live-blink 2s ease infinite;
}
@keyframes csj-live-blink {
    0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.6); }
    50% { box-shadow: 0 0 12px 4px rgba(220, 38, 38, 0); }
}
.csj-live-feed-track {
    flex: 1; min-width: 0;
    display: block;
    overflow: hidden;
    scrollbar-width: none;
}
.csj-live-feed-track::-webkit-scrollbar { display: none; }
.csj-live-feed-placeholder {
    color: rgba(255,255,255,0.5); font-size: 12px;
}
.csj-broadcast-card {
    width: 100%;
    min-height: 38px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 8px;
    padding: 6px 10px;
    background: linear-gradient(90deg, rgba(15,23,42,.72), rgba(30,41,59,.46));
    color: #fff;
    text-align: left;
    cursor: pointer;
    animation: csj-feed-in .35s ease-out;
}
.csj-broadcast-card:hover { border-color: rgba(250, 204, 21, .35); background: rgba(15,23,42,.68); }
.csj-broadcast-card span {
    padding: 3px 8px;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
}
.csj-broadcast-card strong {
    min-width: 0;
    color: #e5e7eb;
    font-size: 12px;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.csj-broadcast-card strong i { color: #fbbf24; font-style: normal; }
.csj-broadcast-card em {
    color: rgba(255,255,255,.58);
    font-size: 11px;
    font-style: normal;
    white-space: nowrap;
}
.csj-broadcast-card.is-empty strong { color: rgba(255,255,255,.72); }
.csj-feed-card {
    flex-shrink: 0;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 6px 10px;
    display: flex; align-items: center; gap: 8px;
    color: #fff;
    min-width: 200px;
    animation: csj-feed-in .4s ease-out;
}
@keyframes csj-feed-in {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}
.csj-feed-icon { font-size: 16px; flex-shrink: 0; }
.csj-feed-body { flex: 1; min-width: 0; }
.csj-feed-line { font-size: 12px; line-height: 1.4; }
.csj-feed-line b { font-weight: 700; }
.csj-feed-arrow { color: #fbbf24; }
.csj-feed-body small {
    display: block;
    font-size: 11px;
    opacity: 0.65;
    white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis;
}
.csj-feed-time {
    flex-shrink: 0;
    font-size: 10px;
    opacity: 0.5;
}

/* 💥 飘字 + 命中闪光 */
.csj-floater {
    position: absolute;
    pointer-events: none;
    font-weight: 800;
    font-size: 20px;
    z-index: 1000;
    transform: translate(-50%, -100%);
    animation: csj-float-up 1.3s ease-out forwards;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.csj-floater-dmg { color: #dc2626; }
.csj-floater-heal { color: #16a34a; }
.csj-floater-alarm { color: #f59e0b; animation-duration: 1.6s; }
.csj-floater-fall { color: #475569; font-size: 16px; }
@keyframes csj-float-up {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
    20% { opacity: 1; transform: translate(-50%, -100%) scale(1.2); }
    80% { opacity: 1; transform: translate(-50%, -150%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -200%) scale(0.8); }
}
.csj-hit-flash {
    position: absolute;
    pointer-events: none;
    width: 72px; height: 72px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(239,68,68,0.6) 0%, rgba(239,68,68,0) 70%);
    z-index: 999;
    animation: csj-hit-pop .6s ease-out forwards;
}
@keyframes csj-hit-pop {
    0% { opacity: 1; transform: scale(0.5); }
    100% { opacity: 0; transform: scale(2); }
}
.csj-repair-pulse {
    position: absolute;
    z-index: 1002;
    pointer-events: none;
    width: 92px;
    height: 92px;
    margin-left: -46px;
    margin-top: -74px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(34,197,94,.55) 0%, rgba(34,197,94,.2) 38%, rgba(34,197,94,0) 70%);
    border: 2px solid rgba(34,197,94,.6);
    animation: csj-repair-pulse .95s ease-out forwards;
}
.csj-repair-pulse span {
    position: absolute;
    left: 50%;
    top: 5px;
    transform: translateX(-50%);
    padding: 3px 8px;
    border-radius: 999px;
    background: #16a34a;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
    box-shadow: 0 8px 18px rgba(22, 163, 74, .28);
}
@keyframes csj-repair-pulse {
    0% { opacity: 0; transform: scale(.35); }
    18% { opacity: 1; transform: scale(.9); }
    100% { opacity: 0; transform: scale(1.8); }
}
.csj-chest-claim-fx {
    position: absolute;
    z-index: 1003;
    pointer-events: none;
    transform: translate(-50%, -96%);
    display: grid;
    gap: 4px;
    justify-items: center;
    animation: csj-chest-claim-pop 1.35s ease-out forwards;
}
.csj-chest-claim-fx::before {
    content: "";
    width: 68px;
    height: 68px;
    border-radius: 999px;
    background: radial-gradient(circle, #fff7ed 0%, #facc15 36%, rgba(245,158,11,0) 70%);
    box-shadow: 0 0 28px rgba(250,204,21,.48);
}
.csj-chest-claim-fx span,
.csj-chest-claim-fx small {
    display: inline-block;
    margin-top: -14px;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(15,23,42,.88);
    color: #fff;
    font-weight: 900;
    white-space: nowrap;
}
.csj-chest-claim-fx small {
    margin-top: 0;
    background: #f59e0b;
    font-size: 11px;
}
@keyframes csj-chest-claim-pop {
    0% { opacity: 0; transform: translate(-50%, -70%) scale(.45); }
    18% { opacity: 1; transform: translate(-50%, -96%) scale(1.08); }
    72% { opacity: 1; transform: translate(-50%, -104%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -128%) scale(.92); }
}
.csj-cannon-trail {
    position: absolute;
    height: 0;
    z-index: 1001;
    pointer-events: none;
    transform-origin: 0 0;
}
.csj-cannon-line {
    position: absolute;
    left: 0;
    top: -2px;
    width: 100%;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(220,38,38,.95), rgba(245,158,11,.75), rgba(255,255,255,0));
    box-shadow: 0 0 12px rgba(245, 158, 11, .55);
    transform-origin: 0 50%;
    animation: csj-cannon-line-grow .72s ease-out forwards;
}
.csj-cannon-shell {
    position: absolute;
    left: 0;
    top: -8px;
    width: 16px;
    height: 16px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #111827;
    color: #facc15;
    font-size: 8px;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, .22), 0 0 18px rgba(239, 68, 68, .75);
    animation: csj-cannon-shell-fly .72s cubic-bezier(.24,.72,.25,1) forwards;
}
.csj-cannon-muzzle,
.csj-cannon-impact {
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}
.csj-cannon-muzzle {
    left: 0;
    top: 0;
    background: radial-gradient(circle, #fff 0%, #facc15 35%, rgba(239,68,68,0) 72%);
    animation: csj-cannon-pop .42s ease-out forwards;
}
.csj-cannon-impact {
    right: -8px;
    top: 0;
    background: radial-gradient(circle, #fff 0%, #f97316 36%, rgba(220,38,38,0) 72%);
    opacity: 0;
    animation: csj-cannon-impact .35s ease-out .62s forwards;
}
.csj-cannon-trail.is-critical .csj-cannon-line {
    height: 6px;
    top: -3px;
    background: linear-gradient(90deg, #dc2626, #facc15, rgba(255,255,255,0));
    box-shadow: 0 0 18px rgba(220, 38, 38, .75), 0 0 28px rgba(245, 158, 11, .55);
}
.csj-cannon-trail.is-critical .csj-cannon-shell {
    width: 20px;
    height: 20px;
    top: -10px;
    animation-duration: .62s;
}
.csj-cannon-trail.is-misfire .csj-cannon-line {
    background: linear-gradient(90deg, rgba(100,116,139,.9), rgba(245,158,11,.35), rgba(255,255,255,0));
}
.csj-cannon-trail.is-misfire .csj-cannon-shell {
    background: #475569;
    box-shadow: 0 0 0 4px rgba(100,116,139,.2), 0 0 16px rgba(245,158,11,.45);
}
@keyframes csj-cannon-line-grow {
    0% { transform: scaleX(0); opacity: 0; }
    18% { opacity: 1; }
    100% { transform: scaleX(1); opacity: 0; }
}
@keyframes csj-cannon-shell-fly {
    0% { transform: translateX(0) scale(.75); opacity: 0; }
    12% { opacity: 1; }
    76% { opacity: 1; }
    100% { transform: translateX(calc(var(--trail-distance, 120px) - 8px)) scale(1.08); opacity: 0; }
}
@keyframes csj-cannon-pop {
    0% { transform: translate(-50%, -50%) scale(.2); opacity: 0; }
    35% { opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(2.2); opacity: 0; }
}
@keyframes csj-cannon-impact {
    0% { transform: translate(50%, -50%) scale(.2); opacity: 0; }
    30% { opacity: 1; }
    100% { transform: translate(50%, -50%) scale(2.8); opacity: 0; }
}

/* ✨ 奖励粒子 */
.csj-particle {
    position: fixed;
    font-size: 22px;
    pointer-events: none;
    z-index: 9999;
    transition: transform .9s cubic-bezier(.55, .06, .68, .19), opacity .9s ease;
    transform: translate(0, 0) scale(1);
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.csj-hud-flash {
    animation: csj-flash-cell .7s ease;
}
@keyframes csj-flash-cell {
    0%, 100% { background: rgba(255,255,255,0.06); }
    30% { background: rgba(34, 197, 94, 0.35); box-shadow: 0 0 16px rgba(34, 197, 94, 0.5); }
}

@media (max-width: 900px) {
    .csj-game-shell {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    .csj-command-panel {
        position: static;
        width: 100%;
    }
    .csj-map-hud-slot,
    .csj-map-mission-slot { display: none; }
}

/* Mobile */
@media (max-width: 640px) {
    .csj-game-shell {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding-top: 10px;
    }
    .csj-stage-head {
        display: block;
        margin-bottom: 10px;
    }
    .csj-stage-head h1 {
        font-size: 24px;
    }
    .csj-stage-head p {
        max-width: none;
        margin-top: 6px;
        text-align: left;
    }
    .csj-command-panel {
        position: static;
        width: 100%;
    }
    .csj-command-panel .csj-golden-card {
        display: block;
    }
    .csj-command-panel .csj-golden-cta-row {
        grid-template-columns: 1fr;
    }
    .csj-collection-drawer summary {
        align-items: flex-start;
    }
    .csj-collection-drawer summary small {
        text-align: left;
    }
    .csj-regions { grid-template-columns: 1fr; }
    .csj-hero { flex-direction: column; align-items: flex-start; }
    .csj-hero-actions { width: 100%; flex-wrap: wrap; }
    .csj-cannon-tab { font-size: 12px; padding: 6px 8px; }
    .csj-towers-grid { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
    .csj-suchao-hero-banner { padding: 32px 0; }
    .csj-suchao-hero-banner h1 { font-size: 28px; }
    .csj-suchao-map { height: 58vh; min-height: 360px; }
    .csj-entry-floating { bottom: 64px; right: 8px; max-width: calc(100% - 16px); left: 8px; }

    .csj-hud-inner { grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 6px 8px; }
    .csj-hud-cell { padding: 6px 8px; }
    .csj-hud-label { font-size: 9px; }
    .csj-hud-value { font-size: 13px; }
    .csj-hud-cell[data-hud="gps"], .csj-hud-cell[data-hud="cannon"] { display: none; }
    .csj-live-feed { font-size: 11px; padding: 4px 8px; gap: 8px; }
    .csj-live-feed-label { padding: 2px 7px; }

    .csj-quick-actions { grid-template-columns: 1fr; }
    .csj-qa { padding: 14px 16px; }
    .csj-qa-icon { width: 48px; height: 48px; font-size: 28px; }
    .csj-map-wrap .csj-map-actions {
        left: 8px;
        right: 8px;
        bottom: 8px;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
    }
    .csj-map-wrap .csj-map-actions .csj-qa {
        min-height: 58px;
        padding: 8px 7px;
        gap: 7px;
        border-radius: 12px;
    }
    .csj-map-wrap .csj-map-actions .csj-qa-icon {
        width: 36px;
        height: 36px;
        font-size: 20px;
        border-radius: 9px;
    }
    .csj-map-wrap .csj-map-actions .csj-qa-text strong {
        font-size: 13px;
        line-height: 1.1;
    }
    .csj-map-wrap .csj-map-actions .csj-qa-text small {
        display: none;
    }
    .csj-map-wrap .csj-map-actions .csj-qa-meta {
        position: absolute;
        right: 6px;
        top: 6px;
        min-width: 0;
        padding: 2px 6px;
        font-size: 10px;
    }

    .csj-help-fab { bottom: 78px; right: 12px; width: 42px; height: 42px; font-size: 18px; }

    .csj-tour-card { padding: 24px 20px 16px; }
    .csj-tour-emoji { font-size: 48px; }
    .csj-tour-card h3 { font-size: 18px; }
    .csj-tour-card p { font-size: 14px; }

    /* 移动端 modal 几乎满屏，避免左右挤出页面 */
    .csj-modal {
        padding: 0;
        align-items: flex-end;
    }
    .csj-modal-card {
        max-width: 100% !important;
        width: 100% !important;
        max-height: 90vh !important;
        margin: 0;
        border-radius: 16px 16px 0 0;
        padding: 20px 16px calc(20px + env(safe-area-inset-bottom)) 16px;
        animation: csj-sheet-up .25s ease-out;
    }
    @keyframes csj-sheet-up {
        from { transform: translateY(100%); }
        to   { transform: translateY(0); }
    }
    /* 分享卡片例外 — 还是居中显示，方便长按保存 */
    .csj-modal-share { align-items: center; padding: 16px; }
    .csj-modal-share .csj-modal-card {
        max-width: 92% !important;
        border-radius: 16px;
        animation: csj-pop .22s ease-out;
    }
    /* tour 居中保留 */
    .csj-tour { align-items: center; padding: 16px; }
    .csj-tour-card {
        max-width: 92% !important;
        border-radius: 16px;
        max-height: 80vh;
        overflow-y: auto;
    }

    /* HUD 紧凑 */
    .csj-hud-inner { padding: 6px 10px; gap: 6px; }
    .csj-hud-cell { padding: 5px 6px; }
    .csj-hud-icon { display: none; }   /* 移动端 emoji 太挤，去掉右上 icon */

    /* 火药库 tab 文字断行避免溢出 */
    .csj-cannon-tab { white-space: nowrap; }
    .csj-cannon-tabs { flex-wrap: nowrap; overflow-x: auto; }
    .csj-cannon-tabs::-webkit-scrollbar { display: none; }

    /* 排行榜 tab 横向滚动 */
    .csj-lb-tab-group {
        flex-wrap: nowrap;
        overflow-x: auto;
    }
    .csj-lb-tab-group::-webkit-scrollbar { display: none; }
    .csj-lb-tab-group button { white-space: nowrap; flex-shrink: 0; }

    /* 黄金 hero 在小屏紧凑 */
    .csj-golden-card { padding: 14px 16px; gap: 12px; }
    .csj-golden-mascot { width: 56px; height: 56px; font-size: 32px; }
    .csj-golden-team strong { font-size: 18px; }
    .csj-golden-hp-num { font-size: 26px; }
    .csj-golden-stats { gap: 12px; }
    .csj-golden-stats b { font-size: 20px; }
    .csj-golden-cta-row { width: 100%; }
    .csj-golden-cta { flex: 1; padding: 12px 14px; font-size: 14px; }
}

/* 超小屏（< 360 px）：iPhone SE 等老机 */
@media (max-width: 360px) {
    .csj-stage-head h1 { font-size: 22px; }
    .csj-hud-inner { grid-template-columns: repeat(2, 1fr); }
    .csj-hud-cell[data-hud="points"] { display: none; }
    .csj-suchao-hero-banner h1 { font-size: 22px; }
}

.csj-today-card {
    margin: 10px 0;
    padding: 14px;
    border: 1px solid rgba(15, 23, 42, .1);
    border-left: 5px solid #2563eb;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .08);
}
.csj-today-hot { border-left-color: #dc2626; background: linear-gradient(135deg, #fff 0%, #fff7ed 100%); }
.csj-today-danger { border-left-color: #b91c1c; background: linear-gradient(135deg, #fff 0%, #fef2f2 100%); }
.csj-today-warn, .csj-today-urgent { border-left-color: #f59e0b; background: linear-gradient(135deg, #fff 0%, #fffbeb 100%); }
.csj-today-kicker { font-size: 12px; font-weight: 800; color: #64748b; letter-spacing: .08em; }
.csj-today-card h3 { margin: 5px 0 4px; font-size: 18px; line-height: 1.25; color: #111827; }
.csj-today-card p { margin: 0; color: #475569; font-size: 13px; line-height: 1.55; }
.csj-today-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.csj-today-meta span { padding: 4px 8px; border-radius: 999px; background: #f1f5f9; color: #334155; font-size: 12px; font-weight: 700; }
.csj-today-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.csj-today-primary, .csj-today-secondary { min-height: 40px; border-radius: 8px; border: 1px solid transparent; font-weight: 800; cursor: pointer; }
.csj-today-primary { background: #111827; color: #fff; }
.csj-today-secondary { background: #fff; color: #334155; border-color: #cbd5e1; }

.csj-solo-card {
    margin-top: 12px;
    padding: 14px;
    border-radius: 8px;
    border: 1px solid color-mix(in srgb, var(--c, #dc2626) 26%, #e2e8f0);
    background: linear-gradient(180deg, #fff, color-mix(in srgb, var(--c, #dc2626) 6%, #fff));
    box-shadow: 0 10px 28px rgba(15, 23, 42, .08);
}
.csj-solo-loading, .csj-solo-empty { color: #64748b; font-weight: 800; }
.csj-solo-empty p { margin: 6px 0 10px; color: #64748b; font-weight: 500; }
.csj-solo-empty button {
    border: none;
    border-radius: 8px;
    padding: 9px 12px;
    background: #111827;
    color: #fff;
    font-weight: 900;
    cursor: pointer;
}
.csj-solo-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.csj-solo-head strong { color: #111827; font-size: 17px; line-height: 1.25; }
.csj-solo-badge {
    flex: 0 0 auto;
    padding: 4px 8px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--c, #dc2626) 12%, #fff);
    color: var(--c, #dc2626);
    font-size: 12px;
    font-weight: 900;
}
.csj-solo-hp, .csj-solo-progress { display: grid; gap: 6px; margin-top: 10px; }
.csj-solo-hp { grid-template-columns: 1fr auto; align-items: center; }
.csj-solo-hp span, .csj-solo-progress span { color: #64748b; font-size: 12px; font-weight: 800; }
.csj-solo-hp b, .csj-solo-progress b { color: #111827; font-size: 13px; }
.csj-solo-hp i, .csj-solo-progress i {
    grid-column: 1 / -1;
    height: 7px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}
.csj-solo-hp em, .csj-solo-progress em {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #22c55e, var(--c, #dc2626));
}
.csj-solo-rule {
    margin: 8px 0 0;
    padding: 8px 10px;
    border-radius: 8px;
    background: color-mix(in srgb, var(--c, #dc2626) 9%, #fff);
    color: #334155;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.45;
}
.csj-solo-phases {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-top: 10px;
}
.csj-solo-phases > div {
    position: relative;
    min-width: 0;
    padding: 8px 6px 8px 32px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
}
.csj-solo-phases i {
    position: absolute;
    left: 8px;
    top: 50%;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #cbd5e1;
    color: #fff;
    font-size: 11px;
    font-style: normal;
    font-weight: 900;
    line-height: 18px;
    text-align: center;
    transform: translateY(-50%);
}
.csj-solo-phases span,
.csj-solo-phases small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.csj-solo-phases span { color: #334155; font-size: 12px; font-weight: 900; }
.csj-solo-phases small { margin-top: 1px; color: #94a3b8; font-size: 10px; }
.csj-solo-phases .is-current { border-color: #f59e0b; background: #fffbeb; box-shadow: 0 0 0 2px rgba(245,158,11,.12); }
.csj-solo-phases .is-current i { background: #f59e0b; box-shadow: 0 0 0 4px rgba(245,158,11,.14); }
.csj-solo-phases .is-done { border-color: #bbf7d0; background: #f0fdf4; }
.csj-solo-phases .is-done i { background: #16a34a; }
.csj-solo-ops {
    margin-top: 12px;
    padding: 12px;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(15,23,42,.96), rgba(30,41,59,.94)),
        linear-gradient(135deg, var(--c, #dc2626), #facc15);
    color: #fff;
    box-shadow: 0 14px 32px rgba(15, 23, 42, .18);
}
.csj-solo-threatline span {
    display: block;
    color: #facc15;
    font-size: 12px;
    font-weight: 900;
}
.csj-solo-threatline strong {
    display: block;
    margin-top: 3px;
    color: #fff;
    font-size: 20px;
    line-height: 1.2;
}
.csj-solo-threatline p {
    margin: 6px 0 0;
    color: #e2e8f0;
    font-size: 13px;
    line-height: 1.5;
}
.csj-solo-threatline small {
    display: inline-flex;
    margin-top: 8px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    color: #f8fafc;
    font-size: 12px;
    font-weight: 800;
}
.csj-solo-big-cta {
    width: 100%;
    min-height: 48px;
    margin-top: 12px;
    border: none;
    border-radius: 8px;
    background: #facc15;
    color: #111827;
    font-size: 16px;
    font-weight: 1000;
    cursor: pointer;
    box-shadow: 0 12px 26px rgba(250, 204, 21, .24);
    animation: csj-solo-cta-pulse 1.8s ease-in-out infinite;
}
@keyframes csj-solo-cta-pulse {
    0%, 100% { transform: translateY(0); box-shadow: 0 12px 26px rgba(250, 204, 21, .22); }
    50% { transform: translateY(-1px); box-shadow: 0 16px 32px rgba(250, 204, 21, .34); }
}
.csj-solo-secondary-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 8px;
}
.csj-solo-secondary-actions button {
    min-height: 36px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(255,255,255,.08);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
}
.csj-solo-secondary-actions button:disabled { opacity: .5; cursor: not-allowed; }

.csj-visitor-start { align-items: center; }
.csj-visitor-kicker {
    display: inline-flex !important;
    margin-bottom: 5px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #fef3c7;
    color: #92400e !important;
    font-size: 11px !important;
    font-weight: 900;
}
.csj-visitor-steps { display: flex; gap: 6px; margin-top: 10px; }
.csj-visitor-steps span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #475569;
    font-size: 12px;
    font-weight: 900;
}
.csj-visitor-steps i {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #111827;
    color: #fff;
    font-size: 10px;
    font-style: normal;
    line-height: 18px;
    text-align: center;
}
.csj-visitor-actions { display: grid; gap: 7px; min-width: 150px; }
.csj-visitor-demo {
    min-height: 36px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: #334155;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
}
.csj-solo-mission {
    margin-top: 10px;
    padding: 10px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e2e8f0;
}
.csj-solo-mission > div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: #111827;
    font-size: 13px;
    font-weight: 900;
}
.csj-solo-mission span { color: #64748b; }
.csj-solo-mission ol {
    display: grid;
    gap: 6px;
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
}
.csj-solo-mission li {
    position: relative;
    min-height: 28px;
    padding: 6px 8px 6px 28px;
    border-radius: 8px;
    background: #f8fafc;
    color: #475569;
    font-size: 12px;
    font-weight: 900;
}
.csj-solo-mission li::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cbd5e1;
    transform: translateY(-50%);
}
.csj-solo-mission li.is-done { color: #166534; background: #dcfce7; }
.csj-solo-mission li.is-done::before { background: #22c55e; }
.csj-solo-mission li.is-ready { color: #92400e; background: #fef3c7; }
.csj-solo-mission li.is-ready::before { background: #f59e0b; box-shadow: 0 0 0 4px rgba(245,158,11,.16); }
.csj-solo-threat {
    margin-top: 12px;
    padding: 10px;
    border-radius: 8px;
    background: color-mix(in srgb, var(--threat, #dc2626) 9%, #fff);
    border-left: 4px solid var(--threat, #dc2626);
}
.csj-solo-threat small { display: block; color: var(--threat, #dc2626); font-size: 12px; font-weight: 900; }
.csj-solo-threat b { display: block; margin-top: 2px; color: #111827; }
.csj-solo-threat p { margin: 4px 0 0; color: #475569; font-size: 13px; line-height: 1.5; }
.csj-solo-progress > div { display: flex; justify-content: space-between; align-items: center; }
.csj-solo-progress small { color: #64748b; font-size: 12px; line-height: 1.4; }
.csj-solo-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.csj-solo-actions button {
    min-height: 38px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #111827;
    font-weight: 900;
    cursor: pointer;
}
.csj-solo-actions button:first-child { background: #111827; border-color: #111827; color: #fff; }
.csj-solo-actions button:disabled { opacity: .55; cursor: not-allowed; }
.csj-solo-campaign {
    margin-top: 12px;
    padding: 12px;
    border-radius: 8px;
    background: #0f172a;
    color: #fff;
}
.csj-solo-campaign h3 {
    margin: 8px 0 4px;
    color: #fff;
    font-size: 20px;
    line-height: 1.2;
}
.csj-solo-campaign-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
}
.csj-solo-campaign small { color: #cbd5e1; font-size: 12px; font-weight: 800; }
.csj-solo-campaign b { color: #fff; font-size: 13px; }
.csj-solo-campaign p { margin: 7px 0 0; color: #dbeafe; font-size: 12px; line-height: 1.45; }
.csj-solo-campaign p strong { color: #facc15; }
.csj-solo-campaign .csj-solo-progress span,
.csj-solo-campaign .csj-solo-progress small { color: #cbd5e1; }
.csj-solo-campaign .csj-solo-progress b { color: #fff; }
.csj-solo-campaign .csj-solo-progress i { background: rgba(255,255,255,.16); }
.csj-solo-campaign .csj-solo-progress em { background: linear-gradient(90deg, #facc15, #22c55e); }
.csj-solo-campaign button {
    width: 100%;
    min-height: 38px;
    margin-top: 10px;
    border: none;
    border-radius: 8px;
    background: #facc15;
    color: #111827;
    font-weight: 900;
    cursor: pointer;
}
.csj-solo-campaign button:disabled { opacity: .58; cursor: not-allowed; }
.csj-solo-campaign.is-finished { background: linear-gradient(135deg, #15803d, #0f766e); }
.csj-solo-campaign.is-failed { background: linear-gradient(135deg, #991b1b, #7f1d1d); }
.csj-solo-main-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 10px;
}
.csj-solo-main-actions button { margin-top: 0; }
.csj-solo-main-cta {
    min-height: 44px;
    background: #facc15 !important;
    color: #111827 !important;
    box-shadow: 0 10px 24px rgba(250, 204, 21, .22);
}
.csj-solo-main-alt {
    background: rgba(255,255,255,.08) !important;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,.18) !important;
}
.csj-solo-daily {
    margin-top: 10px;
    padding: 10px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}
.csj-solo-daily summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    list-style: none;
}
.csj-solo-daily summary::-webkit-details-marker { display: none; }
.csj-solo-daily summary span {
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
}
.csj-solo-daily summary b {
    color: #111827;
    font-size: 13px;
}
.csj-solo-daily .csj-solo-threat {
    margin-top: 8px;
    padding: 8px;
}
.csj-solo-settle-btn {
    width: 100%;
    min-height: 36px;
    margin-top: 8px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #334155;
    font-weight: 900;
    cursor: pointer;
}
.csj-solo-settle-btn:disabled { opacity: .55; cursor: not-allowed; }

.csj-action-report .csj-action-icon { background: #eff6ff; color: #2563eb; }
.csj-tower-card { max-width: 500px; border-top: 4px solid var(--c, #2563eb); }
.csj-tower-head { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.csj-tower-head-icon {
    width: 58px;
    height: 58px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: color-mix(in srgb, var(--c, #2563eb) 12%, #fff);
    box-shadow: 0 10px 24px rgba(15, 23, 42, .1);
}
.csj-tower-head small { display: block; color: var(--c, #2563eb); font-size: 12px; font-weight: 900; letter-spacing: .08em; }
.csj-tower-head strong { display: block; color: #111827; font-size: 24px; line-height: 1.15; }
.csj-tower-head em { display: block; margin-top: 3px; color: #64748b; font-style: normal; font-size: 13px; line-height: 1.45; }
.csj-tower-status { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.csj-tower-status > div { padding: 10px; border-radius: 8px; background: #f8fafc; border: 1px solid #e2e8f0; }
.csj-tower-status small { display: block; color: #64748b; font-size: 11px; font-weight: 800; }
.csj-tower-status b { display: block; color: #111827; margin-top: 2px; }
.csj-tower-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.csj-tower-act {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 10px;
    align-items: center;
    min-height: 70px;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    text-align: left;
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.csj-tower-act:hover { transform: translateY(-1px); border-color: var(--c, #2563eb); box-shadow: 0 10px 24px rgba(15, 23, 42, .08); }
.csj-tower-act:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.csj-tower-act b {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: #f1f5f9;
    color: #111827;
    font-size: 14px;
    font-weight: 900;
}
.csj-tower-act strong { display: block; color: #111827; font-size: 16px; }
.csj-tower-act small { display: block; margin-top: 2px; color: #64748b; line-height: 1.35; }
.csj-tower-repair b { background: #ecfdf5; color: #16a34a; }
.csj-tower-fire b { background: #fef2f2; color: #dc2626; }
.csj-tower-report b { background: #eff6ff; color: #2563eb; }
.csj-tower-detail b { background: #f8fafc; color: #475569; }
.csj-tower-tip { margin: 12px 0 0; color: #64748b; font-size: 12px; line-height: 1.5; }
.csj-city-report-card { max-width: 520px; border-top: 4px solid var(--c, #2563eb); }
.csj-city-report-head { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.csj-city-report-mascot { width: 54px; height: 54px; border-radius: 8px; display: grid; place-items: center; background: #eff6ff; font-size: 32px; }
.csj-city-report-head small, .csj-city-report-status small { display: block; color: #64748b; font-size: 12px; }
.csj-city-report-head strong { display: block; font-size: 22px; color: #111827; }
.csj-city-report-head em { display: block; margin-top: 2px; color: #475569; font-style: normal; font-size: 13px; }
.csj-city-report-status { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.csj-city-report-status > div { padding: 10px; border-radius: 8px; background: #f8fafc; }
.csj-city-report-status b { font-size: 15px; color: #111827; }
.csj-city-report-list { display: grid; gap: 8px; margin: 12px 0; }
.csj-city-report-row, .csj-city-report-empty { padding: 10px; border-radius: 8px; background: #f8fafc; color: #475569; }
.csj-city-report-row { display: grid; grid-template-columns: auto 16px auto; gap: 6px; align-items: center; }
.csj-city-report-row small { grid-column: 1 / -1; color: #64748b; }
.csj-city-report-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.csj-modal-chest .csj-modal-card { max-width: 520px; }
.csj-chest-card { border-top: 4px solid var(--c, #f59e0b); }
.csj-chest-head { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.csj-chest-icon { width: 62px; height: 62px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, #facc15, #f97316); box-shadow: 0 10px 24px rgba(245, 158, 11, .28); font-size: 34px; }
.csj-chest-head small { display: block; color: #b45309; font-size: 12px; font-weight: 900; letter-spacing: .08em; }
.csj-chest-head strong { display: block; color: #111827; font-size: 22px; line-height: 1.2; }
.csj-chest-head span { display: block; color: #64748b; margin-top: 4px; font-size: 13px; line-height: 1.5; }
.csj-chest-rewards { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 14px; }
.csj-chest-rewards span { padding: 5px 9px; border-radius: 999px; background: #fffbeb; color: #92400e; border: 1px solid #fde68a; font-size: 12px; font-weight: 800; }
.csj-chest-form { display: flex; gap: 8px; margin-top: 12px; }
.csj-chest-form input { flex: 1; min-width: 0; border: 1px solid #cbd5e1; border-radius: 8px; padding: 12px; font-size: 15px; }
.csj-chest-form button { border: none; border-radius: 8px; padding: 0 18px; background: #f59e0b; color: #fff; font-weight: 900; cursor: pointer; }
.csj-chest-form button:disabled { opacity: .65; cursor: wait; }
.csj-scenic-card { max-width: 460px; border-top: 4px solid var(--c, #2563eb); }
.csj-scenic-head { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.csj-scenic-dot {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 5px solid #fff;
    background: var(--c, #2563eb);
    box-shadow: 0 10px 24px rgba(15, 23, 42, .18), 0 0 0 1px rgba(15, 23, 42, .08);
    flex: 0 0 auto;
}
.csj-scenic-head small { display: block; color: #64748b; font-size: 12px; font-weight: 900; letter-spacing: .08em; }
.csj-scenic-head strong { display: block; color: #111827; font-size: 22px; line-height: 1.2; }
.csj-scenic-head em { display: block; margin-top: 3px; color: #64748b; font-size: 13px; font-style: normal; }
.csj-scenic-actions { display: grid; gap: 10px; }
.csj-scenic-btn {
    width: 100%;
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    text-align: left;
    cursor: pointer;
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.csj-scenic-btn:hover { transform: translateY(-1px); border-color: var(--c, #2563eb); box-shadow: 0 8px 20px rgba(15, 23, 42, .08); }
.csj-scenic-btn b {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: color-mix(in srgb, var(--c, #2563eb) 12%, #fff);
    color: var(--c, #2563eb);
    font-size: 18px;
    font-weight: 900;
    flex: 0 0 auto;
}
.csj-scenic-btn strong { display: block; color: #111827; font-size: 16px; }
.csj-scenic-btn small { display: block; margin-top: 2px; color: #64748b; line-height: 1.45; }
.csj-scenic-story {
    display: none;
    margin-top: 12px;
    padding: 12px;
    border-radius: 8px;
    background: #f8fafc;
    color: #334155;
    line-height: 1.65;
    border: 1px solid #e2e8f0;
}
.csj-scenic-story.is-open { display: block; }
.csj-chest-reveal {
    position: absolute;
    z-index: 1002;
    transform: translate(-50%, -84%);
    pointer-events: none;
    text-align: center;
    animation: csj-chest-reveal-pop 1.25s ease-out forwards;
}
.csj-chest-reveal-ring {
    position: absolute;
    left: 50%;
    top: 42px;
    width: 86px;
    height: 86px;
    border-radius: 999px;
    border: 3px solid color-mix(in srgb, var(--c, #f59e0b) 70%, #fff);
    transform: translate(-50%, -50%);
    opacity: .7;
    animation: csj-chest-ring 1.1s ease-out forwards;
}
.csj-chest-reveal-box {
    position: relative;
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    margin: 0 auto;
    border-radius: 16px;
    background: linear-gradient(135deg, #facc15, #f97316);
    box-shadow: 0 16px 36px rgba(245, 158, 11, .35);
    font-size: 36px;
}
.csj-chest-reveal-label {
    display: inline-block;
    margin-top: 7px;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(15, 23, 42, .86);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}
@keyframes csj-chest-reveal-pop {
    0% { opacity: 0; transform: translate(-50%, -56%) scale(.35); }
    18% { opacity: 1; transform: translate(-50%, -84%) scale(1.1); }
    72% { opacity: 1; transform: translate(-50%, -84%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -98%) scale(.92); }
}
@keyframes csj-chest-ring {
    0% { opacity: .75; transform: translate(-50%, -50%) scale(.2); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(1.55); }
}

.csj-rookie-card { max-width: 560px; }
.csj-rookie-head small { display: block; color: #dc2626; font-size: 12px; font-weight: 900; letter-spacing: .08em; }
.csj-rookie-head strong { display: block; margin-top: 4px; font-size: 24px; color: #111827; }
.csj-rookie-head span { display: block; margin-top: 4px; color: #64748b; }
.csj-rookie-steps { display: grid; gap: 10px; margin: 16px 0; }
.csj-rookie-step { display: grid; grid-template-columns: 34px 1fr; gap: 6px 10px; align-items: center; width: 100%; padding: 12px; border: 1px solid #e2e8f0; border-radius: 8px; background: #fff; text-align: left; cursor: pointer; }
.csj-rookie-step b { grid-row: 1 / 3; width: 34px; height: 34px; border-radius: 999px; display: grid; place-items: center; background: #111827; color: #fff; }
.csj-rookie-step strong { color: #111827; font-size: 16px; }
.csj-rookie-step small { color: #64748b; }
.csj-rookie-step.is-active { border-color: #f59e0b; background: #fffbeb; }
.csj-rookie-step.is-done { border-color: #22c55e; background: #f0fdf4; }
.csj-rookie-step.is-locked { opacity: .65; }
.csj-rookie-foot { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }

@media (max-width: 640px) {
    .csj-today-actions, .csj-city-report-status, .csj-tower-status, .csj-tower-actions { grid-template-columns: 1fr; }
    .csj-city-report-actions .csj-btn { flex: 1; }
    .csj-broadcast-card { grid-template-columns: 1fr; gap: 4px; }
    .csj-broadcast-card strong { white-space: normal; }
}

/* v0.10：全地图战场 + 地图内任务抽屉 */
.csj-game-shell.csj-container {
    display: block;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    padding: 12px clamp(8px, 1.6vw, 24px) 20px;
}
.csj-game-stage { width: 100%; }
.csj-game-stage .csj-suchao-map {
    height: calc(100vh - 232px);
    min-height: 560px;
    border-radius: 8px;
}
.csj-game-stage .csj-map-wrap {
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 20px 52px rgba(15,23,42,.16);
}
.csj-game-stage .csj-map-legend {
    position: absolute;
    left: 14px;
    bottom: 106px;
    z-index: 670;
    justify-content: flex-start;
    margin: 0;
    pointer-events: none;
}
.csj-game-stage .csj-map-legend span {
    min-height: 24px;
    padding: 3px 7px;
    background: rgba(255,255,255,.88);
    font-size: 10px;
    backdrop-filter: blur(10px);
}
.csj-game-stage .csj-map-legend i { width: 8px; height: 8px; }
.csj-command-drawer-toggle {
    position: absolute;
    top: 66px;
    right: 16px;
    z-index: 735;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    padding: 4px;
    border: 1px solid rgba(255,255,255,.72);
    border-radius: 8px;
    background: rgba(15,23,42,.9);
    color: #fff;
    box-shadow: 0 12px 30px rgba(15,23,42,.26);
    backdrop-filter: blur(12px);
    cursor: pointer;
}
.csj-command-drawer-toggle span { font-size: 12px; font-weight: 900; }
.csj-command-drawer-toggle b {
    position: absolute;
    top: -5px;
    right: -5px;
    display: grid;
    place-items: center;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: #dc2626;
    color: #fff;
    font-size: 11px;
    box-shadow: 0 0 0 3px rgba(255,255,255,.86);
}
.csj-command-panel {
    position: absolute;
    top: 14px;
    right: 14px;
    bottom: 96px;
    z-index: 790;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: min(360px, calc(100% - 28px));
    min-width: 0;
    padding: 12px;
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid rgba(255,255,255,.74);
    border-radius: 8px;
    background: rgba(248,250,252,.96);
    box-shadow: 0 24px 64px rgba(15,23,42,.3);
    backdrop-filter: blur(18px);
    opacity: 0;
    pointer-events: none;
    transform: translateX(calc(100% + 30px));
    transition: transform .26s ease, opacity .2s ease;
}
.csj-command-panel.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}
.csj-command-drawer-head {
    position: sticky;
    top: -12px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: -12px -12px 0;
    padding: 12px;
    border-bottom: 1px solid #e2e8f0;
    background: rgba(248,250,252,.98);
}
.csj-command-drawer-head small,
.csj-command-drawer-head strong { display: block; }
.csj-command-drawer-head small { color: #dc2626; font-size: 10px; font-weight: 900; }
.csj-command-drawer-head strong { margin-top: 2px; color: #111827; font-size: 16px; }
.csj-command-drawer-head button {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: #111827;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}
.csj-map-wrap.is-command-open .csj-map-mission-slot {
    opacity: 0;
    pointer-events: none;
}
.csj-map-mission-slot { transition: opacity .18s ease; }

@media (max-width: 900px) {
    .csj-game-shell.csj-container { display: block; padding: 8px 8px 14px; }
    .csj-stage-head { margin-bottom: 8px; }
    .csj-game-stage .csj-suchao-map { height: calc(100vh - 188px); min-height: 520px; }
    .csj-command-panel {
        position: absolute;
        top: auto;
        right: 8px;
        bottom: 8px;
        left: 8px;
        width: auto;
        max-height: min(72vh, 640px);
        border-radius: 8px;
        opacity: 0;
        transform: translateY(calc(100% + 18px));
    }
    .csj-command-panel.is-open { opacity: 1; transform: translateY(0); }
    .csj-command-drawer-toggle { top: auto; right: 10px; bottom: 76px; }
    .csj-game-stage .csj-map-legend { left: 8px; bottom: 74px; }
}

@media (max-width: 640px) {
    .csj-stage-head p { display: none; }
    .csj-stage-head h1 { font-size: 22px; }
    .csj-game-stage .csj-suchao-map { height: calc(100vh - 164px); min-height: 500px; }
    .csj-game-stage .csj-map-legend { display: none; }
    .csj-command-drawer-toggle { width: 46px; height: 46px; bottom: 70px; }
    .csj-command-panel { max-height: 76vh; }
}

/* v0.11: guest tutorial battle and live city threats */
.csj-crisis-layer { position:absolute; inset:0; z-index:420; overflow:hidden; pointer-events:none; }
.csj-crisis-route { position:absolute; height:3px; transform-origin:0 50%; filter:drop-shadow(0 0 5px color-mix(in srgb,var(--crisis) 65%,transparent)); }
.csj-crisis-route::before { content:""; position:absolute; inset:-5px 0; border-top:2px dashed color-mix(in srgb,var(--crisis) 88%,white); animation:csj-crisis-route 1.1s linear infinite; }
.csj-crisis-route i { display:block; width:100%; height:3px; background:linear-gradient(90deg,transparent,var(--crisis),transparent); opacity:.6; }
.csj-crisis-target { position:absolute; width:34px; height:34px; border:3px solid var(--crisis); border-radius:50%; transform:translate(-50%,-50%); box-shadow:0 0 0 5px color-mix(in srgb,var(--crisis) 20%,transparent),0 0 18px var(--crisis); animation:csj-crisis-pulse 1s ease-out infinite; }
.csj-crisis-enemy { position:absolute; display:grid; place-items:center; width:38px; height:38px; transform:translate(-50%,-50%); border:2px solid #fff; border-radius:7px; color:#fff; background:var(--crisis); box-shadow:0 5px 16px rgba(15,23,42,.35),0 0 14px var(--crisis); animation:csj-enemy-march .58s ease-in-out infinite alternate; }
.csj-crisis-enemy b { font-size:15px; line-height:1; }
.csj-crisis-enemy span { position:absolute; top:40px; left:50%; padding:2px 6px; transform:translateX(-50%); border-radius:4px; white-space:nowrap; color:#fff; background:rgba(15,23,42,.9); font-size:10px; font-weight:800; }
.csj-crisis-enemy.is-boss { width:46px; height:46px; border-width:3px; }
.csj-crisis-hud { position:absolute; top:14px; left:50%; width:min(390px,calc(100% - 430px)); min-width:290px; padding:10px 116px 10px 13px; border:1px solid color-mix(in srgb,var(--crisis) 55%,#fff); border-left:5px solid var(--crisis); border-radius:7px; text-align:left; color:#e2e8f0; background:rgba(15,23,42,.92); box-shadow:0 10px 28px rgba(15,23,42,.3); transform:translateX(-50%); backdrop-filter:blur(8px); pointer-events:auto; cursor:pointer; }
.csj-crisis-hud:hover { border-color:var(--crisis); transform:translateX(-50%) translateY(-1px); }
.csj-crisis-hud span,.csj-crisis-hud strong,.csj-crisis-hud small { display:block; }
.csj-crisis-hud .csj-crisis-live { color:#fca5a5; font-size:10px; font-weight:900; }
.csj-crisis-hud strong { margin-top:2px; color:#fff; font-size:14px; }
.csj-crisis-hud small { margin-top:2px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#94a3b8; font-size:11px; }
.csj-crisis-hud em { position:absolute; top:50%; right:12px; padding:6px 8px; border-radius:4px; transform:translateY(-50%); color:#fff; background:var(--crisis); font-size:11px; font-style:normal; font-weight:900; }
@keyframes csj-crisis-route { to { transform:translateX(16px); } }
@keyframes csj-crisis-pulse { 0% { opacity:1; transform:translate(-50%,-50%) scale(.75); } 100% { opacity:.18; transform:translate(-50%,-50%) scale(1.35); } }
@keyframes csj-enemy-march { from { margin-top:-3px; } to { margin-top:3px; } }

.csj-guest-guide { position:absolute; top:82px; left:14px; z-index:760; width:min(310px,calc(100% - 28px)); padding:14px; border:1px solid rgba(255,255,255,.42); border-left:5px solid #facc15; border-radius:7px; color:#e2e8f0; background:rgba(15,23,42,.94); box-shadow:0 14px 34px rgba(15,23,42,.36); backdrop-filter:blur(10px); }
.csj-guest-guide > div { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.csj-guest-guide > div span { color:#facc15; font-size:11px; font-weight:900; }
.csj-guest-guide > div b { color:#fff; font-size:18px; font-variant-numeric:tabular-nums; }
.csj-guest-guide > strong { display:block; margin-top:10px; color:#94a3b8; font-size:11px; }
.csj-guest-guide h3 { margin:4px 0; color:#fff; font-size:18px; }
.csj-guest-guide p { margin:0; color:#cbd5e1; font-size:12px; line-height:1.6; }
.csj-guest-guide button { width:100%; margin-top:12px; padding:10px; border:0; border-radius:5px; color:#111827; background:#facc15; font-weight:900; }
.csj-guest-cannon-card,.csj-guest-result-card { max-width:440px; border-top:5px solid #ef4444; }
.csj-guest-cannon-card > small,.csj-guest-result-card > small { color:#dc2626; font-weight:900; }
.csj-guest-cannon-card h3,.csj-guest-result-card h2 { margin:6px 0; }
.csj-guest-cannon-card p,.csj-guest-result-card p { color:#64748b; line-height:1.65; }
.csj-guest-fire { display:flex; align-items:center; justify-content:space-between; width:100%; margin-top:18px; padding:15px 16px; border:0; border-radius:6px; color:#fff; background:#dc2626; box-shadow:0 8px 20px rgba(220,38,38,.28); font-weight:900; }
.csj-guest-fire b { font-size:11px; opacity:.8; }
.csj-guest-loot { position:absolute; z-index:780; display:flex; flex-direction:column; align-items:center; gap:3px; transform:translate(-50%,-50%); border:0; color:#fff; background:transparent; filter:drop-shadow(0 6px 10px rgba(15,23,42,.4)); animation:csj-guest-loot 1s ease-in-out infinite; }
.csj-guest-loot i { display:grid; place-items:center; width:42px; height:36px; border:3px solid #fff; border-radius:6px; color:#7c2d12; background:#facc15; box-shadow:0 0 0 5px rgba(250,204,21,.2),0 0 20px #f59e0b; font-size:18px; font-style:normal; font-weight:900; }
.csj-guest-loot span { padding:2px 7px; border-radius:4px; background:#b45309; font-size:10px; font-weight:900; }
@keyframes csj-guest-loot { 50% { transform:translate(-50%,-62%); filter:drop-shadow(0 10px 14px rgba(15,23,42,.45)); } }
.csj-guest-rewards { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin:18px 0; }
.csj-guest-rewards span { padding:12px 6px; border:1px solid #e2e8f0; border-radius:6px; text-align:center; color:#475569; background:#f8fafc; font-size:11px; }
.csj-guest-rewards b { display:block; color:#dc2626; font-size:20px; }
.csj-guest-save-note { padding:10px; border-left:4px solid #facc15; background:#fffbeb; }
.csj-guest-save,.csj-guest-replay { width:100%; padding:12px; border-radius:6px; font-weight:900; }
.csj-guest-save { border:0; color:#fff; background:#111827; }
.csj-guest-replay { margin-top:8px; border:1px solid #cbd5e1; color:#334155; background:#fff; }

.csj-solo-phases-five { grid-template-columns:repeat(5,minmax(0,1fr)); }
.csj-solo-phases-five > div { min-width:0; padding:8px 2px; }
.csj-solo-phases-five > div span { font-size:10px; }
.csj-solo-mechanic { display:flex; gap:10px; margin-top:10px; padding:10px; border:1px solid color-mix(in srgb,var(--c) 28%,#e2e8f0); border-radius:6px; background:color-mix(in srgb,var(--c) 7%,#fff); }
.csj-solo-mechanic > b { display:grid; place-items:center; flex:0 0 34px; height:34px; border-radius:5px; color:#fff; background:var(--c); }
.csj-solo-mechanic span,.csj-solo-mechanic strong,.csj-solo-mechanic small,.csj-solo-mechanic em { display:block; }
.csj-solo-mechanic strong { font-size:12px; }
.csj-solo-mechanic small { margin-top:2px; color:#64748b; font-size:10px; line-height:1.45; }
.csj-solo-mechanic em { margin-top:3px; color:var(--c); font-size:10px; font-style:normal; font-weight:900; }
.csj-campaign-route { display:flex; gap:5px; margin-top:10px; padding:8px; overflow-x:auto; scrollbar-width:none; }
.csj-campaign-route::-webkit-scrollbar { display:none; }
.csj-campaign-route span { flex:0 0 45px; text-align:center; color:#94a3b8; opacity:.55; }
.csj-campaign-route span i { display:grid; place-items:center; width:23px; height:23px; margin:auto; border:2px solid #cbd5e1; border-radius:50%; font-size:9px; font-style:normal; font-weight:900; }
.csj-campaign-route span b { display:block; margin-top:3px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:9px; }
.csj-campaign-route span.is-cleared { color:#16a34a; opacity:1; }
.csj-campaign-route span.is-cleared i { border-color:#16a34a; background:#dcfce7; }
.csj-campaign-route span.is-current { color:#111827; opacity:1; }
.csj-campaign-route span.is-current i { border-color:#facc15; background:#facc15; box-shadow:0 0 0 4px rgba(250,204,21,.2); }

@media (max-width:900px) {
    .csj-crisis-hud { top:10px; left:10px; width:calc(100% - 76px); min-width:0; padding-right:100px; transform:none; }
    .csj-crisis-hud:hover { transform:translateY(-1px); }
    .csj-guest-guide { top:82px; }
}
@media (max-width:560px) {
    .csj-crisis-hud { padding:8px 88px 8px 10px; }
    .csj-crisis-hud small { display:none; }
    .csj-crisis-hud em { right:8px; font-size:10px; }
    .csj-guest-guide { top:72px; }
    .csj-guest-rewards { grid-template-columns:1fr; }
    .csj-solo-phases-five > div i { width:20px; height:20px; }
}

/* v0.12: 江苏十三城守卫战品牌与地图驾驶舱 */
.csj-map-brand {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 710;
    max-width: min(330px, calc(100% - 160px));
    padding: 10px 14px 11px;
    border-left: 4px solid #facc15;
    border-radius: 6px;
    color: #fff;
    background: rgba(15, 23, 42, .91);
    box-shadow: 0 12px 30px rgba(15, 23, 42, .24);
    backdrop-filter: blur(10px);
    pointer-events: none;
}
.csj-map-brand span {
    display: block;
    color: #facc15;
    font-size: 10px;
    font-weight: 900;
}
.csj-map-brand h1 {
    margin: 2px 0 0;
    color: #fff;
    font-size: clamp(20px, 2vw, 28px);
    line-height: 1.08;
    letter-spacing: 0;
}
.csj-map-brand p {
    margin: 5px 0 0;
    color: #cbd5e1;
    font-size: 11px;
}
.csj-game-stage .csj-suchao-map {
    height: calc(100vh - 178px);
    min-height: 620px;
}
.csj-map-hud-slot { top: 108px; }
.csj-command-drawer-toggle { top: 14px; }
.csj-map-wrap .csj-map-actions .csj-qa {
    border-bottom: 3px solid var(--c);
}
.csj-map-wrap .csj-map-actions .csj-qa:focus-visible,
.csj-command-drawer-toggle:focus-visible {
    outline: 3px solid #facc15;
    outline-offset: 2px;
}

@media (max-width: 900px) {
    .csj-game-stage .csj-suchao-map {
        height: calc(100vh - 132px);
        min-height: 560px;
    }
    .csj-map-brand { top: 8px; left: 8px; }
    .csj-crisis-hud { top: 82px; }
    .csj-guest-guide { top: 150px; }
    .csj-command-drawer-toggle { top: auto; }
}

@media (max-width: 560px) {
    .csj-map-brand {
        max-width: calc(100% - 74px);
        padding: 8px 10px 9px;
    }
    .csj-map-brand h1 { font-size: 20px; }
    .csj-map-brand p { display: none; }
    .csj-game-stage .csj-suchao-map {
        height: calc(100vh - 118px);
        min-height: 520px;
    }
    .csj-crisis-hud { top: 68px; }
    .csj-guest-guide { top: 126px; }
}

/* v0.13: 江苏城市人格测试 */
.csj-map-brand { pointer-events: none; }
.csj-personality-launch {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    margin-top: 9px;
    padding: 5px 10px 5px 6px;
    border: 1px solid rgba(250, 204, 21, .7);
    border-radius: 5px;
    color: #111827;
    background: #facc15;
    box-shadow: 0 6px 16px rgba(15, 23, 42, .22);
    font-weight: 900;
    cursor: pointer;
    pointer-events: auto;
}
.csj-map-brand .csj-personality-launch b {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 4px;
    color: #facc15;
    background: #111827;
    font-size: 12px;
}
.csj-map-brand .csj-personality-launch span {
    display: inline;
    color: #111827;
    font-size: 11px;
}
.csj-personality-launch:hover { background: #fde047; }
.csj-personality-launch:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.csj-map-hud-slot { top: 154px; }

.csj-personality-card {
    width: min(620px, calc(100vw - 28px));
    max-height: min(90vh, 760px);
    padding: 28px;
    overflow-x: hidden;
    overflow-y: auto;
    border-top: 5px solid var(--personality-color, #b91c1c);
    text-align: center;
}
.csj-personality-intro-mark {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 4px;
    color: #991b1b;
    background: #fee2e2;
    font-size: 11px;
    font-weight: 900;
}
.csj-personality-card h2 {
    margin: 12px 0 8px;
    color: #111827;
    font-size: 28px;
    line-height: 1.25;
    letter-spacing: 0;
}
.csj-personality-card > p {
    max-width: 480px;
    margin: 0 auto;
    color: #64748b;
    line-height: 1.7;
}
.csj-personality-card > small {
    display: block;
    margin-top: 10px;
    color: #94a3b8;
}
.csj-personality-intro-map {
    display: grid;
    place-items: center;
    min-height: 180px;
    margin: 20px 0;
    border: 1px solid #dbe3ee;
    border-radius: 7px;
    background: #f8fafc;
}
.csj-personality-intro-map b {
    display: grid;
    place-items: center;
    width: 94px;
    height: 94px;
    border: 8px double #b91c1c;
    border-radius: 50%;
    color: #b91c1c;
    background: #fff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .12);
    font-size: 50px;
}
.csj-personality-intro-map span {
    margin-top: -24px;
    color: #475569;
    font-size: 12px;
    font-weight: 800;
}
.csj-personality-primary,
.csj-personality-secondary {
    min-height: 48px;
    padding: 11px 18px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
}
.csj-personality-primary {
    border: 0;
    color: #fff;
    background: var(--personality-color, #b91c1c);
    box-shadow: 0 9px 20px color-mix(in srgb, var(--personality-color, #b91c1c) 28%, transparent);
}
.csj-personality-secondary {
    border: 1px solid #cbd5e1;
    color: #111827;
    background: #fff;
}
.csj-personality-primary:disabled,
.csj-personality-secondary:disabled { opacity: .6; cursor: wait; }
.csj-personality-link {
    display: block;
    margin: 12px auto 0;
    padding: 4px;
    border: 0;
    color: #475569;
    background: transparent;
    text-decoration: underline;
    cursor: pointer;
}
.csj-personality-progress {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px 12px;
    color: #64748b;
    text-align: left;
    font-size: 11px;
    font-weight: 800;
}
.csj-personality-progress b { color: #b91c1c; }
.csj-personality-progress i {
    grid-column: 1 / -1;
    height: 7px;
    overflow: hidden;
    border-radius: 4px;
    background: #e2e8f0;
}
.csj-personality-progress em {
    display: block;
    height: 100%;
    background: #b91c1c;
    transition: width .22s ease;
}
.csj-personality-question { margin: 26px 0 18px; }
.csj-personality-question small { color: #b91c1c; font-weight: 900; }
.csj-personality-question h2 { margin-top: 6px; font-size: 24px; }
.csj-personality-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.csj-personality-options button {
    display: grid;
    grid-template-columns: 34px 1fr;
    align-items: center;
    gap: 10px;
    min-height: 70px;
    padding: 11px;
    border: 1px solid #dbe3ee;
    border-radius: 7px;
    color: #1f2937;
    background: #fff;
    text-align: left;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.csj-personality-options button:hover {
    border-color: #b91c1c;
    background: #fff7f7;
    transform: translateY(-1px);
}
.csj-personality-options button b {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 5px;
    color: #fff;
    background: #111827;
}
.csj-personality-options button span { font-size: 13px; font-weight: 800; line-height: 1.45; }

.csj-personality-result-head {
    margin: -28px -28px 0;
    padding: 28px 24px 24px;
    color: #fff;
    background: var(--personality-color, #b91c1c);
}
.csj-personality-result-head > small { color: rgba(255,255,255,.82); font-weight: 900; }
.csj-personality-city-icon {
    width: 92px;
    height: 92px;
    margin: 14px auto 8px;
    border: 5px solid rgba(255,255,255,.9);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 12px 26px rgba(15, 23, 42, .22);
}
.csj-personality-result-head h2 { margin: 4px 0; color: #fff; font-size: 40px; }
.csj-personality-result-head strong { display: block; font-size: 21px; }
.csj-personality-keywords { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
.csj-personality-keywords span {
    padding: 4px 9px;
    border: 1px solid rgba(255,255,255,.46);
    border-radius: 4px;
    color: #fff;
    background: rgba(15,23,42,.18);
    font-size: 11px;
    font-weight: 900;
}
.csj-personality-line {
    margin: 18px auto 0 !important;
    color: #334155 !important;
    font-size: 15px;
    font-weight: 700;
}
.csj-personality-relations {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}
.csj-personality-relations > div {
    padding: 13px;
    border: 1px solid #dbe3ee;
    border-radius: 6px;
    background: #f8fafc;
}
.csj-personality-relations small,
.csj-personality-relations b,
.csj-personality-relations span { display: block; }
.csj-personality-relations small { color: #64748b; font-size: 10px; }
.csj-personality-relations b { margin-top: 3px; color: #111827; font-size: 20px; }
.csj-personality-relations span { margin-top: 3px; color: #64748b; font-size: 10px; }
.csj-personality-rarity {
    margin-top: 12px;
    padding: 10px;
    border-left: 4px solid #facc15;
    color: #475569;
    background: #fffbeb;
    font-size: 12px;
}
.csj-personality-rarity b { color: #b91c1c; font-size: 18px; }
.csj-personality-result-actions {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 10px;
    margin-top: 16px;
}
.csj-personality-share-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.csj-personality-share-actions .csj-btn { margin: 0; text-align: center; }

@media (max-width: 900px) {
    .csj-map-hud-slot { top: 14px; }
}
@media (max-width: 560px) {
    .csj-map-brand .csj-personality-launch { min-height: 30px; margin-top: 6px; }
    .csj-map-brand .csj-personality-launch span { display: inline; font-size: 10px; }
    .csj-crisis-hud { top: 102px; }
    .csj-guest-guide { top: 160px; }
    .csj-personality-card { padding: 22px 16px; }
    .csj-personality-card h2 { font-size: 23px; }
    .csj-personality-options { grid-template-columns: 1fr; }
    .csj-personality-options button { min-height: 58px; }
    .csj-personality-result-head { margin: -22px -16px 0; padding: 24px 16px 20px; }
    .csj-personality-result-head h2 { font-size: 34px; }
    .csj-personality-city-icon { width: 78px; height: 78px; }
    .csj-personality-relations,
    .csj-personality-result-actions { grid-template-columns: 1fr; }
    .csj-personality-share-actions { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .csj-personality-progress em,
    .csj-personality-options button { transition: none; }
}
