#expedition-modal.cultivation-expedition {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483645 !important;
    align-items: center !important;
    justify-content: center !important;
    padding: clamp(8px, 2vw, 22px) !important;
    background: var(--game-overlay, rgba(15, 23, 42, .62)) !important;
    backdrop-filter: blur(8px);
    box-sizing: border-box !important;
}

#expedition-modal .ce-shell {
    width: min(1120px, 100%);
    max-height: min(880px, calc(100dvh - 20px));
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--game-border-strong, #cbd5e1);
    border-radius: 20px;
    color: var(--game-text, #0f172a);
    background: var(--game-surface, #ffffff) !important;
    box-shadow: var(--game-shadow-lg, 0 24px 60px rgba(0, 0, 0, .25));
    font-family: Inter, "Segoe UI", Arial, sans-serif;
}

#expedition-modal .ce-shell * { box-sizing: border-box; }
#expedition-modal .ce-header { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 16px 20px 14px; background: var(--game-surface-subtle, #f1f5f9); border-bottom: 1px solid var(--game-border, #e2e8f0); }
#expedition-modal .ce-eyebrow, #expedition-modal .ce-section-head span, #expedition-modal .ce-squad-summary span, #expedition-modal .ce-soul-head span { color: var(--game-accent-text, #0f766e); font-size: 10px; font-weight: 800; letter-spacing: .12em; }
#expedition-modal .ce-header h2 { margin: 3px 0 0; color: var(--game-text, #0f172a) !important; font-size: clamp(18px, 2.3vw, 24px); }
#expedition-modal .ce-header p { margin: 4px 0 0; color: var(--game-text-secondary, #475569) !important; font-size: 12px; }
#expedition-modal .ce-close { width: 34px; height: 34px; flex: 0 0 34px; border: 1px solid var(--game-border-strong, #cbd5e1); border-radius: 10px; color: var(--game-text-secondary, #475569); background: var(--game-surface, #ffffff); cursor: pointer; font-weight: 700; text-transform: none; box-shadow: none; }
#expedition-modal .ce-tabs { display: flex; border-bottom: 1px solid var(--game-border, #e2e8f0); background: var(--game-surface-raised, #f8fafc); }
#expedition-modal .ce-tabs button { min-height: 44px; flex: 1; border: 0; border-bottom: 2px solid transparent; color: var(--game-text-secondary, #475569); background: transparent; cursor: pointer; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: none; box-shadow: none; }
#expedition-modal .ce-tabs button.active { border-color: var(--game-primary, #0f766e); color: var(--game-accent-text, #0f766e); background: var(--game-primary-soft, #f0fdfa); }
#expedition-modal .ce-content { min-height: 360px; overflow: auto; padding: 16px; color: var(--game-text, #0f172a) !important; background: var(--game-surface, #ffffff) !important; scrollbar-width: thin; }
#expedition-modal .ce-stats { display: grid; grid-template-columns: repeat(4, minmax(110px, 1fr)) auto; gap: 8px; margin-bottom: 14px; }
#expedition-modal .ce-stats > div, #expedition-modal .ce-forecast > div { padding: 10px 12px; border: 1px solid var(--game-border-strong, #cbd5e1); border-radius: 12px; background: var(--game-surface-raised, #f8fafc); }
#expedition-modal .ce-stats span, #expedition-modal .ce-forecast span { display: block; color: var(--game-text-muted, #64748b); font-size: 10px; font-weight: 700; text-transform: uppercase; }
#expedition-modal .ce-stats strong, #expedition-modal .ce-forecast strong { display: block; margin-top: 4px; color: var(--game-text, #0f172a); font-size: 14px; font-weight: 800; }
#expedition-modal .ce-stats button, #expedition-modal .ce-forecast button, #expedition-modal .ce-empty button, #expedition-modal .ce-soul-head button { min-height: 40px; padding: 8px 14px; border: 1px solid var(--game-primary, #0f766e); border-radius: 10px; color: var(--game-button-text, #ffffff); background: var(--game-primary, #0f766e); cursor: pointer; font-size: 12px; font-weight: 700; text-transform: none; letter-spacing: 0; box-shadow: none; }
#expedition-modal .ce-section-head, #expedition-modal .ce-squad-summary, #expedition-modal .ce-soul-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 4px 1px 12px; }
#expedition-modal .ce-section-head h3, #expedition-modal .ce-squad-summary h3, #expedition-modal .ce-soul-head h3 { margin: 3px 0 0; color: var(--game-text, #0f172a) !important; font-size: 15px; font-weight: 800; }
#expedition-modal .ce-section-head small { color: var(--game-text-muted, #64748b); font-size: 11px; }
#expedition-modal .ce-missions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
#expedition-modal .ce-card { position: relative; overflow: hidden; min-height: 205px; padding: 15px; border: 1px solid var(--game-border-strong, #cbd5e1); border-radius: 16px; background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(248,250,252,.92)), var(--ce-bg) center/cover; box-shadow: var(--game-shadow); }
html.dark #expedition-modal .ce-card { background: linear-gradient(135deg, rgba(15,23,42,.95), rgba(30,41,59,.9)), var(--ce-bg) center/cover; }
#expedition-modal .ce-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
#expedition-modal .ce-card-head small { color: var(--game-text-muted, #64748b); font-size: 10px; font-weight: 800; letter-spacing: .06em; }
#expedition-modal .ce-card h4 { margin: 4px 0 0; color: var(--game-text, #0f172a) !important; font-size: 16px; font-weight: 800; }
#expedition-modal .ce-risk { flex: 0 0 auto; padding: 4px 9px; border: 1px solid currentColor; border-radius: 99px; font-size: 10px; font-weight: 800; background: var(--game-surface, #ffffff); }
#expedition-modal .safe { color: #047857 !important; }
#expedition-modal .medium { color: #b45309 !important; }
#expedition-modal .danger { color: #dc2626 !important; }
html.dark #expedition-modal .safe { color: #34d399 !important; }
html.dark #expedition-modal .medium { color: #fbbf24 !important; }
html.dark #expedition-modal .danger { color: #fb7185 !important; }
#expedition-modal .ce-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 10px; }
#expedition-modal .ce-meta span { padding: 4px 8px; border: 1px solid var(--game-border); border-radius: 8px; color: var(--game-text-secondary); background: var(--game-surface-subtle); font-size: 11px; font-weight: 600; }
#expedition-modal .ce-reward { padding: 10px 12px; border: 1px solid var(--game-border); border-radius: 10px; background: var(--game-surface); }
#expedition-modal .ce-reward span { display: block; color: var(--game-text-muted); font-size: 10px; font-weight: 700; }
#expedition-modal .ce-reward b { display: block; margin-top: 3px; color: var(--game-accent-text); font-size: 12px; font-weight: 800; }
#expedition-modal .ce-start, #expedition-modal .ce-running button, #expedition-modal .ce-squad-footer button { width: 100%; min-height: 38px; margin-top: 10px; border: 1px solid var(--game-primary); border-radius: 10px; color: var(--game-button-text); background: var(--game-primary); cursor: pointer; font-size: 12px; font-weight: 800; letter-spacing: 0; text-transform: none; box-shadow: none; }
#expedition-modal button:disabled { opacity: .48; cursor: not-allowed; }
#expedition-modal .ce-running { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 8px; margin-top: 10px; color: var(--game-accent-text); font-size: 12px; font-weight: 700; }
#expedition-modal .ce-running button { margin: 0; }
#expedition-modal .ce-loading, #expedition-modal .ce-empty { min-height: 280px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--game-text-secondary); text-align: center; }
#expedition-modal .ce-loading span { width: 34px; height: 34px; margin-bottom: 12px; border: 3px solid var(--game-border); border-top-color: var(--game-primary); border-radius: 50%; animation: ce-spin .8s linear infinite; }
@keyframes ce-spin { to { transform: rotate(360deg); } }
#expedition-modal .ce-empty b { color: var(--game-text); font-size: 15px; }
#expedition-modal .ce-empty p { max-width: 380px; margin: 7px 0 14px; color: var(--game-text-secondary) !important; font-size: 12px; }
#expedition-modal .ce-back { margin: 0 0 12px; padding: 7px 12px; border: 1px solid var(--game-border-strong); border-radius: 8px; color: var(--game-text); background: var(--game-surface-raised); cursor: pointer; font-size: 11px; font-weight: 700; text-transform: none; box-shadow: none; }
#expedition-modal .ce-squad-summary > div:last-child { text-align: right; }
#expedition-modal .ce-squad-summary strong { display: block; color: var(--game-accent-text); font-size: 20px; }
#expedition-modal .ce-squad-summary small { color: var(--game-text-muted); font-size: 11px; }
#expedition-modal .ce-forecast { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 8px; margin-bottom: 12px; }
#expedition-modal .ce-roster { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
#expedition-modal .ce-cultivator { min-width: 0; display: flex; align-items: center; gap: 8px; padding: 8px; border: 1.5px solid var(--game-border-strong); border-radius: 12px; color: var(--game-text); background: var(--game-surface-raised); cursor: pointer; text-align: left; text-transform: none; letter-spacing: 0; box-shadow: none; transition: all 0.2s ease; }
#expedition-modal .ce-cultivator.selected { border-color: var(--game-primary) !important; background: var(--game-primary-soft) !important; box-shadow: 0 0 0 2px var(--game-focus-ring) !important; }

/* Cultivator Rarity Tier Color Borders (Semantic Light & Dark compatible) */
#expedition-modal .ce-cultivator[data-tier="0"], #expedition-modal .ce-cultivator.tier-0,
.cultivator-card[data-tier="0"], .cultivator-card.tier-0 { border-color: var(--game-border-strong) !important; }
#expedition-modal .ce-cultivator[data-tier="1"], #expedition-modal .ce-cultivator.tier-1,
.cultivator-card[data-tier="1"], .cultivator-card.tier-1 { border-color: #10b981 !important; }
#expedition-modal .ce-cultivator[data-tier="2"], #expedition-modal .ce-cultivator.tier-2,
.cultivator-card[data-tier="2"], .cultivator-card.tier-2 { border-color: #3b82f6 !important; }
#expedition-modal .ce-cultivator[data-tier="3"], #expedition-modal .ce-cultivator.tier-3,
.cultivator-card[data-tier="3"], .cultivator-card.tier-3 { border-color: #a855f7 !important; }
#expedition-modal .ce-cultivator[data-tier="4"], #expedition-modal .ce-cultivator.tier-4,
.cultivator-card[data-tier="4"], .cultivator-card.tier-4 { border-color: #f59e0b !important; background: var(--game-warning-soft) !important; }

/* Tier Badge Colors (Readable on both Light & Dark) */
.ce-tier-badge.tier-0, [data-tier="0"] .ce-tier-badge { color: var(--game-text-muted) !important; font-weight: 700; }
.ce-tier-badge.tier-1, [data-tier="1"] .ce-tier-badge { color: #047857 !important; font-weight: 800; }
.ce-tier-badge.tier-2, [data-tier="2"] .ce-tier-badge { color: #1d4ed8 !important; font-weight: 800; }
.ce-tier-badge.tier-3, [data-tier="3"] .ce-tier-badge { color: #7e22ce !important; font-weight: 800; }
.ce-tier-badge.tier-4, [data-tier="4"] .ce-tier-badge { color: #b45309 !important; font-weight: 800; }
html.dark .ce-tier-badge.tier-1, html.dark [data-tier="1"] .ce-tier-badge { color: #34d399 !important; }
html.dark .ce-tier-badge.tier-2, html.dark [data-tier="2"] .ce-tier-badge { color: #60a5fa !important; }
html.dark .ce-tier-badge.tier-3, html.dark [data-tier="3"] .ce-tier-badge { color: #c084fc !important; }
html.dark .ce-tier-badge.tier-4, html.dark [data-tier="4"] .ce-tier-badge { color: #fbbf24 !important; }

/* Avatar Border Accent */
#expedition-modal .ce-cultivator img.tier-0 { border: 1px solid var(--game-border-strong); }
#expedition-modal .ce-cultivator img.tier-1 { border: 1.5px solid #10b981; }
#expedition-modal .ce-cultivator img.tier-2 { border: 1.5px solid #3b82f6; }
#expedition-modal .ce-cultivator img.tier-3 { border: 1.5px solid #a855f7; }
#expedition-modal .ce-cultivator img.tier-4 { border: 1.5px solid #f59e0b; }

#expedition-modal .ce-cultivator img { width: 42px; height: 48px; flex: 0 0 42px; border-radius: 8px; object-fit: cover; object-position: top; }
#expedition-modal .ce-cultivator span { min-width: 0; flex: 1; }
#expedition-modal .ce-cultivator b { display: flex; align-items: center; gap: 4px; overflow: hidden; color: var(--game-text); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
#expedition-modal .ce-cultivator small { display: block; margin-top: 3px; color: var(--game-text-secondary); font-size: 10px; }
#expedition-modal .ce-cultivator i { color: var(--game-accent-text); font-size: 16px; font-style: normal; font-weight: 800; }
#expedition-modal .ce-squad-footer { position: sticky; bottom: -16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 14px -16px -16px; padding: 12px 16px; border-top: 1px solid var(--game-border); background: var(--game-surface-raised); }
#expedition-modal .ce-squad-footer span { color: var(--game-text-secondary); font-size: 11px; }
#expedition-modal .ce-squad-footer button { width: auto; min-width: 210px; margin: 0; }
#expedition-modal .ce-fallen { display: grid; gap: 8px; }
#expedition-modal .ce-fallen article { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--game-border-strong); border-radius: 12px; background: var(--game-surface-raised); }
#expedition-modal .ce-fallen img { width: 44px; height: 50px; border-radius: 8px; object-fit: cover; }
#expedition-modal .ce-fallen div { min-width: 0; flex: 1; }
#expedition-modal .ce-fallen b, #expedition-modal .ce-fallen span { display: block; }
#expedition-modal .ce-fallen b { color: var(--game-text); font-size: 12px; }
#expedition-modal .ce-fallen span { margin-top: 3px; color: var(--game-text-secondary); font-size: 11px; }
#expedition-modal .ce-fallen strong { color: var(--game-accent-text); font-size: 11px; }

/* Unified Modal Surface for Popups */
#tft-modal .modal-content {
    border-color: var(--game-border-strong) !important;
    border-radius: 18px !important;
    color: var(--game-text) !important;
    background: var(--game-surface) !important;
    box-shadow: var(--game-shadow-lg) !important;
}
#quiz-pvp-modal > div {
    border-color: var(--game-border-strong) !important;
    border-radius: 18px !important;
    color: var(--game-text) !important;
    background: var(--game-surface) !important;
    box-shadow: var(--game-shadow-lg) !important;
}
#tft-modal .tft-title-v2 { color: var(--game-text) !important; text-shadow: none !important; }
#tft-modal .tft-cell { border-color: var(--game-border-strong) !important; background: var(--game-surface) !important; }

@media (max-width: 760px) {
    #expedition-modal.cultivation-expedition { align-items: stretch !important; padding: 0 !important; }
    #expedition-modal .ce-shell { max-height: 100dvh; border-width: 0; border-radius: 0; }
    #expedition-modal .ce-header { padding: calc(12px + env(safe-area-inset-top, 0px)) 13px 11px; }
    #expedition-modal .ce-content { padding: 10px; }
    #expedition-modal .ce-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    #expedition-modal .ce-stats button { grid-column: 1 / -1; }
    #expedition-modal .ce-missions { grid-template-columns: 1fr; }
    #expedition-modal .ce-card { min-height: 198px; }
    #expedition-modal .ce-forecast { grid-template-columns: repeat(3, 1fr); }
    #expedition-modal .ce-forecast button { grid-column: 1 / -1; }
    #expedition-modal .ce-roster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    #expedition-modal .ce-squad-footer { bottom: -10px; margin: 11px -10px -10px; padding: 10px; }
    #expedition-modal .ce-squad-footer span { display: none; }
    #expedition-modal .ce-squad-footer button { width: 100%; min-width: 0; }
    #ladder-modal, #tft-modal { padding: 8px !important; }
}

@media (max-width: 430px) {
    #expedition-modal .ce-roster { grid-template-columns: 1fr; }
    #expedition-modal .ce-header p { max-width: 280px; }
    #expedition-modal .ce-meta span { flex: 1 0 30%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) { #expedition-modal * { animation: none !important; transition: none !important; } }

/* ==========================================================================
   GAME CORE MODALS - UNIFIED WEB LIGHT/DARK THEME OVERRIDES
   Eliminates legacy bronze/gold & forced dark rules so web modals inherit
   game-design-system.css Light and Dark tokens cleanly.
   ========================================================================== */
html.skin-tutien {
    color-scheme: inherit;
}

html.skin-tutien body.hw-game-core-active {
    color: var(--game-text, #0f172a) !important;
    background: var(--game-bg, #f8fafc) !important;
}

html.skin-tutien .hw-game-core-workspace,
html.skin-tutien #rpg-panel-activities {
    border-color: var(--game-border, #e2e8f0) !important;
    color: var(--game-text, #0f172a) !important;
    background-color: var(--game-surface, #ffffff) !important;
    background-image: none !important;
}

html.skin-tutien .hw-btn-premium.hw-btn-adventure-card {
    border-color: var(--game-border, #e2e8f0) !important;
    color: var(--game-text, #0f172a) !important;
    background: var(--game-surface, #ffffff) !important;
    box-shadow: var(--game-shadow) !important;
}

html.skin-tutien .hw-btn-premium.hw-btn-adventure-card .hw-game-card-icon {
    border: 1px solid var(--game-border, #e2e8f0) !important;
    color: var(--game-accent-text, #0f766e) !important;
    background: var(--game-surface-raised, #f8fafc) !important;
}

html.skin-tutien .hw-btn-premium.hw-btn-adventure-card strong,
html.skin-tutien .hw-game-core-workspace-header h1,
html.skin-tutien .hw-game-core-workspace-header h2 {
    color: var(--game-text, #0f172a) !important;
}

html.skin-tutien .custom-modal,
html.skin-tutien .ladder-modal,
html.skin-tutien #unified-modal,
html.skin-tutien #inv-modal,
html.skin-tutien #shop-modal,
html.skin-tutien #tft-modal,
html.skin-tutien #tft-report-modal,
html.skin-tutien #expedition-modal,
html.skin-tutien #champ-info-modal {
    background-color: var(--game-overlay, rgba(15, 23, 42, 0.56)) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

html.skin-tutien #expedition-modal.cultivation-expedition .ce-shell {
    color: var(--game-text) !important;
    background: var(--game-surface) !important;
    border-color: var(--game-border-strong) !important;
    box-shadow: var(--game-shadow-lg) !important;
}

html.skin-tutien #expedition-modal.cultivation-expedition .ce-content {
    color: var(--game-text) !important;
    background: var(--game-surface) !important;
}

html.skin-tutien .custom-modal > .modal-content,
html.skin-tutien #inv-modal > .modal-content,
html.skin-tutien #shop-modal > .modal-content,
html.skin-tutien #tft-modal .tft-shell,
html.skin-tutien #tft-report-modal .modal-content,
html.skin-tutien #champ-info-modal .modal-content {
    border: 1px solid var(--game-border-strong) !important;
    border-radius: 18px !important;
    color: var(--game-text) !important;
    background: var(--game-surface) !important;
    box-shadow: var(--game-shadow-lg) !important;
}

html.skin-tutien .modal-header,
html.skin-tutien .tft-header-v2,
html.skin-tutien .ladder-header {
    border-color: var(--game-border) !important;
    background: var(--game-surface-subtle) !important;
    color: var(--game-text) !important;
}

html.skin-tutien .modal-header h2,
html.skin-tutien .modal-header h3,
html.skin-tutien .tft-title-v2,
html.skin-tutien .ladder-title,
html.skin-tutien #dt-name {
    color: var(--game-text) !important;
    text-shadow: none !important;
}

html.skin-tutien .ladder-btn-close-x,
html.skin-tutien .btn-close,
html.skin-tutien .modal-close {
    border: 1px solid var(--game-border-strong) !important;
    border-radius: 10px !important;
    color: var(--game-text-secondary) !important;
    background: var(--game-surface) !important;
    box-shadow: none !important;
}

html.skin-tutien .filter-btn,
html.skin-tutien .btn-action,
html.skin-tutien .btn-secondary,
html.skin-tutien .ladder-tab,
html.skin-tutien .tft-btn,
html.skin-tutien #tft-header-controls > button {
    border: 1px solid var(--game-border-strong) !important;
    border-radius: 8px !important;
    color: var(--game-text) !important;
    background: var(--game-surface) !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

html.skin-tutien .filter-btn.active,
html.skin-tutien .ladder-tab.active,
html.skin-tutien .tft-btn-main,
html.skin-tutien .tft-btn-gold {
    border-color: var(--game-primary) !important;
    color: var(--game-button-text) !important;
    background: var(--game-primary) !important;
}

html.skin-tutien #tft-claim-btn {
    border-color: var(--game-primary) !important;
    color: var(--game-accent-text) !important;
    background: var(--game-primary-soft) !important;
}

html.skin-tutien #tft-online-rooms-btn {
    border-color: var(--game-primary) !important;
    color: var(--game-button-text) !important;
    background: var(--game-primary) !important;
}

html.skin-tutien .tft-btn-red,
html.skin-tutien .tft-btn.tft-btn-red {
    border-color: var(--game-danger) !important;
    color: #ffffff !important;
    background: var(--game-danger) !important;
}

html.skin-tutien .inv-item,
html.skin-tutien .inv-slot,
html.skin-tutien .equipment-slot {
    border-color: var(--game-border-strong) !important;
    background-color: var(--game-surface-subtle) !important;
}

html.skin-tutien .cultivation-stat-line {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    min-height: 24px;
    padding: 5px 8px;
    border-bottom: 1px solid var(--game-border);
    color: var(--game-text) !important;
    text-shadow: none !important;
}

html.skin-tutien .cultivation-stat-line span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.skin-tutien .cultivation-stat-line strong { flex: 0 0 auto; color: var(--game-accent-text) !important; }

html.skin-tutien #tft-modal {
    padding: clamp(7px, 2vw, 20px) !important;
    background: var(--game-overlay) !important;
}

html.skin-tutien #tft-modal .tft-shell {
    width: min(720px, 100%) !important;
    max-width: 720px !important;
    max-height: calc(100dvh - 16px) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}

html.skin-tutien #tft-synergies {
    min-height: 38px !important;
    border-color: var(--game-border) !important;
    background: var(--game-surface-raised) !important;
}

html.skin-tutien #tft-board.tft-board-style {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 62px)) !important;
    justify-content: center !important;
    gap: 5px !important;
    padding: 12px 15px !important;
    background: var(--game-surface-subtle) !important;
}

html.skin-tutien #tft-modal .tft-cell {
    min-width: 0 !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    overflow: hidden !important;
    border: 1px solid var(--game-border-strong) !important;
    border-radius: 9px !important;
    background: var(--game-surface) !important;
    box-shadow: none !important;
}

html.skin-tutien #tft-modal .tft-cell.enemy-side {
    border-color: rgba(220, 38, 38, 0.3) !important;
    background: rgba(220, 38, 38, 0.06) !important;
}

html.dark.skin-tutien #tft-modal .tft-cell.enemy-side,
html.dark .skin-tutien #tft-modal .tft-cell.enemy-side {
    border-color: rgba(244, 63, 94, 0.32) !important;
    background: rgba(225, 29, 72, 0.12) !important;
}

html.skin-tutien #tft-modal .tft-cell:nth-child(n+11):nth-child(-n+15) { margin-top: 14px !important; }

html.skin-tutien #tft-modal .tft-champ-icon {
    width: calc(100% - 8px) !important;
    height: calc(100% - 8px) !important;
    max-width: 54px !important;
    max-height: 54px !important;
    border-radius: 8px !important;
    object-fit: cover !important;
    object-position: top center !important;
}

html.skin-tutien #tft-modal .tft-name-overlay {
    color: #ffffff !important;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.45)) !important;
    font-size: 8px !important;
}

html.skin-tutien #tft-modal .tft-stat-overlay {
    color: #ffffff !important;
    background: rgba(15, 23, 42, 0.82) !important;
    padding: 1px 4px !important;
    border-radius: 4px !important;
    font-size: 8px !important;
}
html.skin-tutien #tft-modal .hp-bar-mini { background: rgba(15, 23, 42, 0.78) !important; }
html.skin-tutien #tft-modal .hp-bar-fill { background: linear-gradient(90deg, #10b981, #34d399) !important; }

html.skin-tutien #tft-modal .tft-bench-style {
    border-color: var(--game-border) !important;
    background: var(--game-surface-raised) !important;
}

html.skin-tutien #tft-modal .tft-bench-wrap {
    color: var(--game-text) !important;
    border-color: var(--game-border) !important;
    background: var(--game-surface-raised) !important;
}

html.skin-tutien #tft-modal .tft-footer-flex {
    border-color: var(--game-border) !important;
    background: var(--game-surface-subtle) !important;
}

html.skin-tutien #tft-log {
    border-color: var(--game-border) !important;
    color: var(--game-text-secondary) !important;
    background: var(--game-surface) !important;
}

@media (max-width: 760px) {
    html.skin-tutien .custom-modal,
    html.skin-tutien #inv-modal,
    html.skin-tutien #shop-modal,
    html.skin-tutien #tft-modal,
    html.skin-tutien #tft-report-modal { padding: max(6px, env(safe-area-inset-top, 0px)) 6px max(6px, env(safe-area-inset-bottom, 0px)) !important; }

    html.skin-tutien .custom-modal > .modal-content,
    html.skin-tutien #inv-modal > .modal-content,
    html.skin-tutien #shop-modal > .modal-content,
    html.skin-tutien #tft-modal .tft-shell {
        width: 100% !important;
        max-width: 100% !important;
        max-height: calc(100dvh - 12px) !important;
        border-radius: 14px !important;
    }

    html.skin-tutien .filter-btn,
    html.skin-tutien .btn-action,
    html.skin-tutien .btn-secondary,
    html.skin-tutien .tft-btn { min-height: 36px !important; touch-action: manipulation; }

    html.skin-tutien #tft-board.tft-board-style { gap: 4px !important; padding: 9px !important; }
    html.skin-tutien #tft-modal .tft-cell { height: auto !important; aspect-ratio: 1 / 1 !important; border-radius: 7px !important; }
    html.skin-tutien #tft-modal .tft-cell:nth-child(n+11):nth-child(-n+15) { margin-top: 10px !important; }
    html.skin-tutien #tft-modal .tft-champ-icon { width: calc(100% - 7px) !important; height: calc(100% - 7px) !important; }
}

@media (max-width: 480px) {
    html.skin-tutien #tft-modal .tft-header-v2 { padding: 9px 10px !important; }
    html.skin-tutien #tft-synergies { padding: 7px 10px !important; min-height: 31px !important; }
    html.skin-tutien #tft-modal .tft-bench-style { min-height: 50px !important; padding: 7px 9px !important; }
    html.skin-tutien #tft-modal .tft-footer-flex { gap: 5px !important; padding: 7px 9px !important; }
    html.skin-tutien #tft-modal .tft-btn { min-height: 32px !important; height: 32px !important; padding-inline: 8px !important; font-size: 10px !important; }
    html.skin-tutien #tft-log { height: 58px !important; padding: 7px 10px !important; font-size: 9px !important; }
    html.skin-tutien .cultivation-stat-line { gap: 8px; min-height: 22px; padding-inline: 5px; font-size: 10px; }
}

@media (max-width: 360px) {
    html.skin-tutien #tft-board.tft-board-style { gap: 3px !important; padding: 7px !important; }
    html.skin-tutien #tft-modal .tft-cell { height: auto !important; aspect-ratio: 1 / 1 !important; }
    html.skin-tutien #tft-modal .tft-cell:nth-child(n+11):nth-child(-n+15) { margin-top: 7px !important; }
    html.skin-tutien #tft-modal .tft-name-overlay,
    html.skin-tutien #tft-modal .tft-stat-overlay { font-size: 6px !important; }
}

@media (prefers-reduced-motion: reduce) {
    html.skin-tutien .custom-modal *,
    html.skin-tutien .hw-game-core-workspace * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
