* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
    --text: #2c3e50;

    --card-bg: rgba(255, 255, 255, 0.75);
    --card-bg-hover: rgba(255, 255, 255, 0.92);

    --border: rgba(255, 255, 255, 0.6);
    --shadow: 0 6px 12px rgba(0, 0, 0, 0.08);

    --tooltip-bg: rgba(255, 255, 255, 0.85);

    --accent: rgb(100, 149, 237);
    --accent-light: rgba(100, 149, 237, 0.12);
    --accent-medium: rgba(100, 149, 237, 0.25);
}

html[data-theme="dark"] {
    --bg: linear-gradient(135deg, #0f172a 0%, #020617 100%);
    --text: #e5e7eb;

    --card-bg: rgba(30, 41, 59, 0.7);
    --card-bg-hover: rgba(30, 41, 59, 0.9);

    --border: rgba(255, 255, 255, 0.08);
    --shadow: 0 8px 20px rgba(0, 0, 0, 0.6);

    --tooltip-bg: rgba(30, 41, 59, 0.95);

    --accent: rgb(147, 197, 253);
    --accent-light: rgba(147, 197, 253, 0.15);
    --accent-medium: rgba(147, 197, 253, 0.3);
}

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
}

.header {
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;

    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
}

html[data-theme="dark"] .header {
    background: rgba(15, 23, 42, 0.65);
}

.pack-icon {
    width: 64px;
    height: 64px;
    border-radius: 10px;
}

.title {
    font-size: 2.2rem;
    font-weight: 600;
}

.theme-toggle {
    position: absolute;
    right: 24px;
    width: 40px;
    height: 40px;

    border-radius: 8px;
    border: none;
    cursor: pointer;

    background: var(--accent-light);
    color: var(--accent);
    font-size: 1.2rem;
}

.container {
    max-width: 1400px;
    margin: 30px auto;
    padding: 0 30px;
}

.mod-list {
    width: 65%;
    margin: auto;
    padding: 30px 0;

    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mod-card {
    display: flex;
    align-items: center;

    padding: 24px 32px;
    border-radius: 16px;

    background: var(--card-bg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);

    transition: all 0.25s ease;
}

.mod-card:hover {
    background: var(--card-bg-hover);
    transform: translateY(-4px);
}

.mod-icon {
    width: 56px;
    height: 56px;
    margin-right: 24px;
    border-radius: 10px;
}

.mod-name {
    flex-grow: 1;
    font-size: 1.3rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.launch-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;

    background: var(--accent-light);
    color: var(--accent);

    border: none;
    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    transition: transform 0.2s ease;
}

.launch-icon:hover {
    transform: scale(1.1);
}

.custom-tooltip {
    position: absolute;
    pointer-events: none;

    padding: 6px 10px;
    font-size: 0.85rem;
    border-radius: 6px;

    background: var(--tooltip-bg);
    box-shadow: var(--shadow);

    opacity: 0;
    transition: opacity 0.15s ease;
}

.custom-tooltip.show {
    opacity: 1;
}

@media (max-width: 768px) {
    .mod-list {
        width: 90%;
    }

    .title {
        font-size: 1.8rem;
    }
}

html {
    scrollbar-width: thin;
}
