:root {
    --bg-primary: #f8fafc;
    --bg-secondary: #f1f5f9;
    --card-bg: rgba(255, 255, 255, 0.9);
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --accent-blue: #3b82f6;
    --accent-gold: #f59e0b;
    --border-color: rgba(226, 232, 240, 0.8);
    --glass-shadow: 0 4px 20px 0 rgba(31, 38, 135, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
}

h1, h2, h3, .logo {
    font-family: 'Outfit', sans-serif;
}

.app-container {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

/* Sidebar (Vertical Navigation) */
.sidebar {
    background: white;
    border-right: 1px solid var(--border-color);
    padding: 2rem 1.5rem;
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Stats Bars Styling */
.stats-bars-container {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 20px;
    border: 1px solid #f1f5f9;
}

/* Bio Metadata Tags Style */
.bio-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding: 0.5rem 0;
}

.bio-tag {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(241, 245, 249, 0.7);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
}

.bio-tag i {
    color: var(--accent-blue);
    font-size: 0.85rem;
}

.bio-tag:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.bio-tag.score-tag {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-color: #fde68a;
    color: #92400e;
}

.bio-tag.score-tag i {
    color: #d97706;
}

/* V2 Tactical Skill Card Styling */
.skill-item {
    background: white;
    border-radius: 16px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    border-left: 6px solid #cbd5e1;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border: 1px solid rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
}

.skill-item:hover {
    transform: translateX(4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    background: #fafafa;
}

.skill-header-v2 {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    width: 100%;
}

.skill-icon-wrapper {
    flex: 0 0 60px;
    height: 60px;
    position: relative;
}

.skill-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f8fafc;
    border-radius: 50%;
    padding: 6px;
    border: 2px solid #f1f5f9;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.skill-info-meta {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.skill-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.skill-labels-row {
    display: flex;
    gap: 0.5rem;
}

.skill-stats-v2 {
    flex: 0 0 auto;
    display: flex;
    gap: 1rem;
    padding-left: 1rem;
}

.skill-stat-badge-v2 {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.15rem;
}

.skill-stat-badge-v2 .label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.skill-stat-badge-v2 .value {
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--accent-blue);
    font-family: 'Outfit', sans-serif;
}

.skill-desc-v2 {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
    padding: 0.85rem 1rem;
    background: rgba(248, 250, 252, 0.8);
    border-radius: 12px;
    border: 1px dashed rgba(0,0,0,0.05);
    position: relative;
}

.stat-row {
    display: grid;
    grid-template-columns: 80px 1fr 60px;
    align-items: center;
    gap: 1.5rem;
}

.stat-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-bar-outer {
    height: 10px;
    background: #e2e8f0;
    border-radius: 100px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.stat-bar-inner {
    height: 100%;
    border-radius: 100px;
    transition: width 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    background-size: 30px 30px;
    background-image: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.15) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.15) 75%,
        transparent 75%
    );
    animation: bar-stripes 2s linear infinite;
}

@keyframes bar-stripes {
    from { background-position: 0 0; }
    to { background-position: 30px 0; }
}

.stat-value {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--text-primary);
    text-align: right;
    font-family: 'Outfit', sans-serif;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-blue);
    margin-bottom: 3rem;
    padding-left: 0.5rem;
}

.main-tabs {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.main-tab {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border: 1px solid transparent;
    background: transparent;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.main-tab i {
    width: 20px;
    font-size: 1.1rem;
    text-align: center;
}

.main-tab:hover {
    background: #f1f5f9;
    color: var(--accent-blue);
}

.main-tab.active {
    background: #eff6ff;
    color: var(--accent-blue);
    border-color: rgba(59, 130, 246, 0.1);
}

/* Content Area */
.content {
    background: radial-gradient(circle at top right, #eff6ff, transparent);
    overflow-y: auto;
}

/* Top Filter Bar (Horizontal) */
.top-filter-bar {
    background: white;
    padding: 1.25rem 2rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 15px rgba(0,0,0,0.02);
}

.filter-section {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 1;
}

.category-filters {
    display: flex;
    gap: 0.5rem;
    background: #f1f5f9;
    padding: 0.3rem;
    border-radius: 100px;
}

.cat-btn {
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    border-radius: 100px;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cat-btn.active {
    background: white;
    color: var(--accent-blue);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.type-scroll-container {
    flex: 1;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
}

.type-scroll-container::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.type-filters-row {
    display: flex;
    gap: 0.5rem;
    padding: 0.25rem;
}

.type-btn {
    flex: 0 0 auto;
    padding: 0.5rem 0.85rem;
    border-radius: 100px;
    border: 1px solid var(--border-color);
    background: white;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.type-btn:hover {
    border-color: var(--accent-blue);
    background: #eff6ff;
}

.type-btn.active {
    background: var(--accent-blue);
    color: white;
    border-color: var(--accent-blue);
}

/* Tactical Filters Styling */
.skill-tactical-filters {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0.5rem 0;
}

.filter-row {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.filter-label {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--text-secondary);
    width: 65px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.filter-label i {
    font-size: 0.9rem;
    color: var(--accent-blue);
    opacity: 0.8;
}

.type-filters-row {
    display: flex;
    gap: 0.6rem;
    overflow-x: auto;
    padding: 0.25rem 0.5rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.type-filters-row::-webkit-scrollbar {
    display: none;
}

.type-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.search-and-stats {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-left: 2rem;
}

/* Grid & Cards */
.pet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
}

.pet-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 1.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    box-shadow: var(--glass-shadow);
    text-align: center;
}

.pet-card:hover {
    transform: translateY(-8px);
    background: white;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-color: rgba(59, 130, 246, 0.2);
}

.pet-image-container {
    width: 100%;
    height: 180px; /* Comfortable height for standard 1.0 scale */
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible; /* Ensure nothing is ever cut off */
    position: relative;
}

.pet-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: scale(1.0); /* Back to native relative size */
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.08));
}

.pet-card:hover .pet-image {
    transform: scale(1.15); /* Subtle focus on hover without clipping risk */
}

.pet-id {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
    opacity: 0.4;
    margin-bottom: 0.5rem;
}

.pet-name {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.pet-types {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.type-tag {
    padding: 0.3rem 0.85rem;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
}

/* Asset Image Styling */
.pet-img-asset {
    max-width: 100%;
    max-height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.detail-main-img {
    width: 100%;
    height: 280px; /* Large focus area */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible; /* Never cut off the detail sprite */
    margin-bottom: 2rem;
    position: relative;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
}

.detail-img-asset {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transform: scale(1.0); /* Native size for clarity in large view */
    filter: drop-shadow(0 15px 35px rgba(0,0,0,0.15));
    transition: transform 0.5s ease;
}

.detail-main-img:hover .detail-img-asset {
    transform: scale(1.1); /* Subtle zoom in detail view */
}

.evo-img-asset {
    width: 70px;
    height: 70px;
    object-fit: contain;
    margin-bottom: 0.5rem;
    transform: scale(1.1); /* Slight boost for small icons to fill space */
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

/* Common UI Elements */
.tab-pane {
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.search-box {
    position: relative;
    width: 260px;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.search-box input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    border-radius: 100px;
    border: 1px solid var(--border-color);
    background: #f8fafc;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--accent-blue);
    background: white;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.08);
}

.stats-counter {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
}

.btn-nav {
    padding: 0.65rem 1.5rem;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.tabs-container {
    margin: 2rem 0;
}

.tabs-nav {
    display: flex;
    gap: 0.5rem;
    background: #f1f5f9;
    padding: 0.4rem;
    border-radius: 100px;
    width: fit-content;
    margin-bottom: 2rem;
}

.tab-link {
    padding: 0.6rem 1.5rem;
    border: none;
    background: transparent;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.tab-link i {
    font-size: 0.85rem;
    opacity: 0.7;
}

.tab-link:hover {
    color: var(--accent-blue);
}

.tab-link.active {
    background: white;
    color: var(--accent-blue);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.tab-link.active i {
    opacity: 1;
}

/* Drawer & Others */
.detail-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    visibility: hidden;
}

.detail-drawer.active {
    visibility: visible;
}

.drawer-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.detail-drawer.active .drawer-overlay {
    opacity: 1;
}

.drawer-content {
    position: absolute;
    right: -640px;
    top: 0;
    width: 640px;
    height: 100%;
    background: white;
    box-shadow: -20px 0 50px rgba(0,0,0,0.15);
    transition: right 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    padding: 3rem 2.5rem;
    overflow-y: auto;
}

.detail-drawer.active .drawer-content {
    right: 0;
}

.close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: #f1f5f9;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.close-btn:hover {
    background: #fee2e2;
    color: #ef4444;
}

/* Calculator & Tables */
.calculator-container {
    background: white;
    padding: 2rem;
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
    margin: 2rem;
}

.calc-inputs {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.input-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.matrix-wrapper {
    margin: 2rem;
    background: white;
    padding: 1.5rem;
    border-radius: 24px;
    overflow-x: auto;
    border: 1px solid var(--border-color);
}

.type-matrix th, .type-matrix td {
    padding: 0.75rem;
    border: 1px solid #f1f5f9;
}

.eff-200 { background: #fee2e2; color: #ef4444; font-weight: 700; }
.eff-50 { background: #f1f5f9; color: #64748b; }
.eff-0 { background: #000; color: white; }

/* Detail Specifics */
.evolution-timeline {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    overflow-x: auto;
    padding: 1rem 0;
}

.evo-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
}

.evo-node.active {
    padding: 0.75rem;
    background: #f0f9ff;
    border: 2px solid var(--accent-blue);
    border-radius: 20px;
}

.skill-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.skill-item {
    background: #f8fafc;
    border-radius: 20px;
    padding: 1.5rem;
    border-left: 6px solid var(--accent-blue);
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
    border-left-width: 6px;
}

.skill-item:hover {
    background: white;
    box-shadow: 0 10px 25px rgba(0,0,0,0.04);
    transform: translateX(4px);
}

.skill-type-tag {
    position: absolute;
    top: 0;
    right: 0;
    padding: 0.3rem 1.25rem;
    font-size: 0.7rem;
    font-weight: 800;
    border-bottom-left-radius: 15px;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--accent-blue);
}

.skill-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.skill-main {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.skill-name {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
}

.skill-labels {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.skill-tag {
    font-size: 0.7rem;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.skill-tag i {
    font-size: 0.8rem;
}

.skill-stats {
    display: flex;
    gap: 1rem;
}

.skill-stat-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: white;
    padding: 0.5rem 0.75rem;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
    min-width: 50px;
}

.skill-stat-badge .label {
    font-size: 0.6rem;
    color: var(--text-secondary);
    font-weight: 700;
    text-transform: uppercase;
}

.skill-stat-badge .value {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
}

.skill-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-secondary);
    border-top: 1px solid #f1f5f9;
    padding-top: 1rem;
}

.tag-passive { background: #64748b; }

.data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
}

.data-card {
    background: white;
    padding: 1.5rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.data-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* Stat Simulator Specific Styles */
.simulator-layout {
    display: grid;
    grid-template-columns: minmax(340px, 420px) minmax(0, 1fr);
    gap: 2rem;
    padding: 1rem 0;
    align-items: start;
}

.box-glass {
    background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(248,250,252,0.98) 100%);
    border-radius: 24px;
    border: 1px solid var(--border-color);
    box-shadow: var(--glass-shadow);
    padding: 2rem;
    overflow: hidden;
}

.sim-controls {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.sim-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.sim-panel-header h4 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-top: 0.25rem;
}

.panel-eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    color: var(--accent-blue);
    text-transform: uppercase;
}

.panel-badge,
.talent-range-tip,
.result-tip {
    flex-shrink: 0;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.08);
    color: var(--accent-blue);
    font-size: 0.78rem;
    font-weight: 700;
}

.sim-form-card,
.talent-panel {
    background: rgba(248, 250, 252, 0.85);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 20px;
    padding: 1.25rem;
}

.sim-modifier-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modifier-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.talent-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.talent-panel-header h4 {
    margin-top: 0.25rem;
    font-size: 1.05rem;
    font-weight: 800;
}

.control-row {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.control-row label {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.search-with-results {
    position: relative;
}

.results-popover {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 300px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 15px;
    margin-top: 8px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    display: none;
}

.sim-result-item {
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 1px solid #f1f5f9;
}

.sim-result-item:hover {
    background: #f0f9ff;
    padding-left: 1.5rem;
}

.sim-result-item img {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #f8fafc;
}

.talents-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.talent-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
}

.talent-item label {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 600;
}

.talent-item label span {
    color: var(--accent-blue);
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
}

.range-modern {
    -webkit-appearance: none;
    width: 100%;
    height: 10px;
    background: linear-gradient(90deg, #dbeafe 0%, #eff6ff 100%);
    border-radius: 999px;
    outline: none;
}

.range-modern::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    background: var(--accent-blue);
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
}

.sim-display {
    min-height: 100%;
}

.sim-summary {
    margin-bottom: 1.25rem;
    padding: 0.9rem 1rem;
    border-radius: 16px;
    background: rgba(59, 130, 246, 0.06);
    border: 1px solid rgba(59, 130, 246, 0.12);
    color: var(--text-secondary);
    font-size: 0.92rem;
    font-weight: 600;
}

.sim-base-stats {
    margin-bottom: 1.25rem;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.75rem;
}

.sim-base-stat-card,
.sim-base-placeholder {
    background: rgba(248, 250, 252, 0.95);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 14px;
    padding: 0.85rem 0.7rem;
    text-align: center;
}

.sim-base-stat-card strong {
    display: block;
    font-size: 1.1rem;
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.sim-base-stat-card span,
.sim-base-placeholder {
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-weight: 700;
}

.sim-base-placeholder {
    grid-column: 1 / -1;
}

.stats-result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
}

.stat-card-sim {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid #f1f5f9;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.stat-card-sim:hover {
    transform: translateY(-8px);
    background: white;
    box-shadow: 0 15px 35px rgba(0,0,0,0.06);
    border-color: var(--accent-blue);
}

.stat-val-sim {
    font-size: 3rem;
    font-weight: 900;
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    letter-spacing: -1px;
}

.stat-label-sim {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.sim-placeholder {
    grid-column: 1 / -1;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    text-align: center;
    color: var(--text-secondary);
    background: radial-gradient(circle at top, rgba(59,130,246,0.08), transparent 65%);
    border: 1px dashed rgba(59, 130, 246, 0.2);
    border-radius: 24px;
    padding: 2rem;
}

.sim-placeholder i {
    font-size: 3rem;
    opacity: 0.25;
}

.sim-placeholder small {
    font-size: 0.9rem;
    max-width: 360px;
    line-height: 1.6;
}

.input-modern, .select-modern {
    width: 100%;
    padding: 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    color: var(--text-primary);
    font-weight: 600;
    outline: none;
    transition: all 0.3s;
}

.input-modern:focus, .select-modern:focus {
    border-color: var(--accent-blue);
    background: white;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.08);
}

@media (max-width: 1100px) {
    .simulator-layout {
        grid-template-columns: 1fr;
    }

    .sim-display {
        min-height: auto;
    }
}

@media (max-width: 720px) {
    .box-glass {
        padding: 1.25rem;
    }

    .sim-panel-header,
    .talent-panel-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .talents-grid,
    .modifier-grid,
    .sim-base-stats,
    .stats-result-grid {
        grid-template-columns: 1fr;
    }

    .stat-card-sim {
        padding: 1.5rem;
    }

    .stat-val-sim {
        font-size: 2.5rem;
    }
}

/* ===== 伤害计算器 ===== */
.dmg-layout {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dmg-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.dmg-row:first-child {
    grid-template-columns: 1fr 1fr;
}

.dmg-result-area {
    min-height: 120px;
}

.dmg-mode-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 1.5rem;
}

.dmg-mode-btn {
    padding: 10px 24px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: white;
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.dmg-mode-btn.active {
    background: var(--accent-blue);
    color: white;
    border-color: var(--accent-blue);
}

.dmg-dual-input {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.dmg-inline-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.dmg-result-area {
    min-height: 200px;
}

.dmg-result-big {
    text-align: center;
    padding: 2rem 0;
}

.dmg-result-big .dmg-value {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--accent-blue);
    line-height: 1;
}

.dmg-result-big .dmg-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 8px;
}

.dmg-formula-breakdown {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem;
    margin-top: 1.5rem;
}

.dmg-formula-breakdown h5 {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.dmg-formula-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 0.9rem;
    border-bottom: 1px solid #f1f5f9;
}

.dmg-formula-row:last-child {
    border-bottom: none;
    font-weight: 700;
    color: var(--accent-blue);
}

.dmg-formula-row span:first-child {
    color: var(--text-secondary);
}

.dmg-reverse-result {
    text-align: center;
    padding: 2rem 0;
}

.dmg-reverse-result .dmg-value {
    font-size: 3rem;
    font-weight: 800;
    color: #f59e0b;
    line-height: 1;
}

.dmg-reverse-result .dmg-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 8px;
}

.sim-export-btns {
    grid-column: 1 / -1;
    display: flex;
    gap: 10px;
    justify-content: center;
    padding-top: 1rem;
}
