/* === Reset & Base === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg-primary: #080a0f;
    --bg-secondary: #1a1d27;
    --bg-tertiary: #242836;
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent: #818cf8;
    --accent-dim: rgba(99, 102, 241, 0.15);
    --accent-border: rgba(99, 102, 241, 0.3);
    --green: #4ade80;
    --green-dim: rgba(34, 197, 94, 0.15);
    --green-border: rgba(34, 197, 94, 0.3);
    --yellow: #facc15;
    --yellow-dim: rgba(250, 204, 21, 0.15);
    --yellow-border: rgba(250, 204, 21, 0.3);
    --red: #f87171;
    --red-dim: rgba(248, 113, 113, 0.15);
    --red-border: rgba(248, 113, 113, 0.3);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: 0.25s ease;
    --glass-bg: rgba(12, 14, 22, 0.65);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: 20px;
}

body {
    font-family: 'Exo 2', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* === Orbiting Game Background === */
.bg-orbit {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    perspective: 1200px;
}

.bg-orbit-grid {
    position: absolute;
    top: -80%;
    left: -50%;
    width: 200%;
    height: 400%;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 10px;
    padding: 10px;
    transform: rotateX(25deg) rotate(-15deg);
    transform-origin: center center;
}

.bg-orbit-tile {
    aspect-ratio: 2 / 3;
    border-radius: 6px;
    background-size: cover;
    background-position: center;
    opacity: 0.25;
}

.bg-orbit-fade {
    position: absolute;
    inset: 0;
    background: rgba(8, 10, 15, 0.6);
    pointer-events: none;
}

/* Everything else sits above the background */
.navbar, .wizard-container {
    position: relative;
    z-index: 1;
}

/* === Navbar === */
.navbar {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid var(--glass-border);
    padding: 0.85rem 2rem;
}

.nav-brand {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    background: linear-gradient(135deg, var(--accent) 0%, #a78bfa 50%, var(--green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === Wizard Container === */
.wizard-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
    background: rgba(8, 10, 15, 0.10);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border-left: 1px solid rgba(255, 255, 255, 0.04);
    border-right: 1px solid rgba(255, 255, 255, 0.04);
    min-height: calc(100vh - 52px);
}

/* === Progress Bar === */
.progress-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2.5rem;
    gap: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 60px;
    padding: 0.75rem 2rem;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    position: relative;
}

.step-number {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
}

.progress-step.active .step-number {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    box-shadow: 0 0 16px rgba(129, 140, 248, 0.5);
}

.progress-step.completed .step-number {
    background: var(--green);
    border-color: var(--green);
    color: white;
    box-shadow: 0 0 12px rgba(74, 222, 128, 0.4);
}

.step-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.progress-step.active .step-label {
    color: var(--accent);
}

.progress-step.completed .step-label {
    color: var(--green);
}

.progress-line {
    height: 2px;
    width: 80px;
    background: rgba(255, 255, 255, 0.08);
    margin: 0 0.75rem;
    margin-bottom: 1.5rem;
}

/* === Wizard Steps === */
.wizard-step {
    display: none;
}

.wizard-step.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

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

.wizard-step h2 {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 1.75rem;
    text-align: center;
    letter-spacing: 0.02em;
}

/* === Saved Specs Banner === */
.saved-specs-banner {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid rgba(74, 222, 128, 0.2);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    animation: fadeIn 0.4s ease;
}

.saved-specs-content {
    margin-bottom: 1rem;
}

.saved-specs-label {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--green);
    margin-bottom: 0.75rem;
    letter-spacing: 0.02em;
}

.saved-specs-list {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.saved-spec-item {
    padding: 0.45rem 0.75rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
}

.saved-spec-item-label {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.6rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    display: block;
}

.saved-spec-item-value {
    font-weight: 600;
    font-size: 0.85rem;
    margin-top: 0.1rem;
}

.saved-specs-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

/* === Input Paths (Step 1) === */
.input-paths {
    display: flex;
    gap: 1.25rem;
    align-items: stretch;
}

.input-path {
    flex: 1;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 1.75rem;
    transition: var(--transition);
}

.input-path:hover {
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

.path-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.6rem;
    flex-wrap: wrap;
}

.path-icon {
    font-size: 1.4rem;
}

.path-header h3 {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: 0.02em;
}

.path-badge {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.6rem;
    font-weight: 600;
    background: var(--green-dim);
    color: var(--green);
    border: 1px solid var(--green-border);
    padding: 0.2rem 0.65rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.path-description {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
}

.path-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 0 0.25rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* === Tutorial Steps === */
.tutorial-steps {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.tutorial-step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    padding: 0.4rem 0.6rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: var(--transition);
}

.tutorial-step:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

.tutorial-step-num {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: var(--accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
}

kbd {
    background: rgba(255, 255, 255, 0.08);
    padding: 0.15rem 0.55rem;
    border-radius: 5px;
    font-size: 0.8rem;
    font-family: 'Chakra Petch', sans-serif;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
}

code {
    color: var(--green);
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 500;
}

/* === Drop Zone === */
.drop-zone {
    border: 2px dashed rgba(129, 140, 248, 0.25);
    border-radius: var(--radius);
    padding: 2rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: rgba(129, 140, 248, 0.03);
}

.drop-zone:hover,
.drop-zone.drag-over {
    border-color: var(--accent);
    background: rgba(129, 140, 248, 0.08);
    box-shadow: 0 0 30px rgba(129, 140, 248, 0.1);
}

.drop-zone-text {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.drop-zone-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.drop-zone.success {
    border-color: var(--green);
    background: rgba(74, 222, 128, 0.06);
    box-shadow: 0 0 24px rgba(74, 222, 128, 0.1);
}

/* === Manual Form === */
.manual-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    position: relative;
}

.form-group label {
    display: block;
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.search-input {
    width: 100%;
    padding: 0.7rem 0.9rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: 'Exo 2', sans-serif;
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
}

.search-input:focus {
    border-color: var(--accent);
    background: rgba(129, 140, 248, 0.05);
    box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.1), 0 0 20px rgba(129, 140, 248, 0.08);
}

.search-input::placeholder {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.search-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    max-height: 280px;
    overflow-y: auto;
    z-index: 10;
    display: none;
    padding: 0.4rem;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
}

.search-dropdown.open {
    display: block;
}

.search-dropdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0.75rem;
    margin: 0.15rem 0;
    cursor: pointer;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    transition: var(--transition);
}

.search-dropdown-item:hover {
    background: rgba(129, 140, 248, 0.1);
    border-color: rgba(129, 140, 248, 0.25);
    box-shadow: 0 0 16px rgba(129, 140, 248, 0.12);
}

.search-dropdown-item .item-name {
    font-weight: 500;
}

.search-dropdown-item .item-meta {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    margin-left: 0.75rem;
}

/* === Toggle Group === */
.toggle-group {
    display: flex;
    gap: 0.4rem;
}

.toggle-btn {
    flex: 1;
    padding: 0.55rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.toggle-btn.active {
    background: rgba(129, 140, 248, 0.12);
    border-color: rgba(129, 140, 248, 0.35);
    color: var(--accent);
    box-shadow: 0 0 12px rgba(129, 140, 248, 0.1);
}

.toggle-btn:hover:not(.active) {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
}

/* === Buttons === */
.btn-primary {
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, var(--accent) 0%, #a78bfa 100%);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    box-shadow: 0 4px 20px rgba(129, 140, 248, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(129, 140, 248, 0.45);
}

.btn-primary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    padding: 0.65rem 1.25rem;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    border-color: var(--accent-border);
    background: rgba(129, 140, 248, 0.08);
    box-shadow: 0 0 16px rgba(129, 140, 248, 0.1);
}

/* === Salami Score Gauge === */
.salami-score-section {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
}

.salami-gauge {
    position: relative;
    width: 140px;
    height: 140px;
    flex-shrink: 0;
}

.salami-gauge svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

.salami-gauge .gauge-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.06);
    stroke-width: 10;
}

.salami-gauge .gauge-fill {
    fill: none;
    stroke-width: 10;
    stroke-linecap: round;
    transition: stroke-dasharray 1s ease, stroke 0.5s ease;
}

.salami-gauge-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.salami-gauge-number {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
}

.salami-gauge-label {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.55rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-top: 0.25rem;
    font-weight: 600;
}

.salami-score-details {
    flex: 1;
}

.salami-score-title {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    letter-spacing: 0.03em;
}

.salami-score-verdict {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.salami-score-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.breakdown-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
}

.breakdown-label {
    width: 55px;
    color: var(--text-muted);
    flex-shrink: 0;
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 500;
    letter-spacing: 0.04em;
}

.breakdown-bar-bg {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
    overflow: hidden;
}

.breakdown-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.8s ease;
}

.breakdown-value {
    width: 28px;
    text-align: right;
    font-weight: 600;
    font-size: 0.75rem;
}

/* Score colors */
.score-excellent { color: var(--green); }
.score-smooth { color: var(--yellow); }
.score-struggling { color: #fb923c; }
.score-unplayable { color: var(--red); }

/* === Salami Score Game Section (Step 3) === */
.salami-score-game {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.salami-score-top {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

/* === Game Threshold Bar (Step 3) === */
.game-threshold {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.threshold-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.threshold-title {
    font-weight: 700;
    font-size: 1rem;
}

.threshold-your-score {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.threshold-your-score strong {
    font-size: 1.1rem;
}

.threshold-bar {
    position: relative;
    height: 32px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    overflow: visible;
    display: flex;
    margin-bottom: 0.5rem;
}

.threshold-zone {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: rgba(255, 255, 255, 0.8);
}

.threshold-zone:first-child {
    border-radius: 16px 0 0 16px;
}

.threshold-zone:last-child {
    border-radius: 0 16px 16px 0;
}

.zone-cant-run {
    background: rgba(248, 113, 113, 0.3);
}

.zone-minimum {
    background: rgba(251, 146, 60, 0.3);
}

.zone-recommended {
    background: rgba(250, 204, 21, 0.3);
}

.zone-excellent {
    background: rgba(74, 222, 128, 0.3);
}

.threshold-marker {
    position: absolute;
    top: -6px;
    bottom: -6px;
    width: 3px;
    background: white;
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
    z-index: 2;
    transition: left 0.8s ease;
}

.threshold-marker-label {
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    font-weight: 700;
    white-space: nowrap;
}

.threshold-verdict {
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
    margin-top: 1.25rem;
}

/* === Game Card Score Badge === */
.game-card-score {
    font-size: 0.7rem;
    margin-top: 0.5rem;
    color: var(--text-muted);
}

.game-card-status {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.1rem 0.5rem;
    border-radius: 10px;
    margin-top: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.status-excellent {
    background: var(--green-dim);
    color: var(--green);
}

.status-recommended {
    background: var(--yellow-dim);
    color: var(--yellow);
}

.status-minimum {
    background: rgba(251, 146, 60, 0.15);
    color: #fb923c;
}

.status-cant-run {
    background: var(--red-dim);
    color: var(--red);
}

/* === Specs Summary (Step 2) === */
.specs-summary {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.spec-chip {
    flex: 1;
    min-width: 120px;
    padding: 0.65rem 0.75rem;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    text-align: center;
}

.spec-chip-label {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.spec-chip-value {
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 0.15rem;
}

/* === Game Grid (Step 2) === */
.game-search {
    margin-bottom: 1.25rem;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
}

.game-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 1.1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.game-card:hover {
    border-color: rgba(129, 140, 248, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.game-card.selected {
    border-color: var(--accent);
    background: rgba(129, 140, 248, 0.1);
    box-shadow: 0 0 20px rgba(129, 140, 248, 0.15);
}

.game-card-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.game-card-name {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* === Results (Step 3) === */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.results-header h2 {
    text-align: left;
    margin-bottom: 0;
}

.results-verdict {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.verdict-good {
    background: var(--green-dim);
    color: var(--green);
    border: 1px solid var(--green-border);
}

.verdict-okay {
    background: var(--yellow-dim);
    color: var(--yellow);
    border: 1px solid var(--yellow-border);
}

.verdict-poor {
    background: var(--red-dim);
    color: var(--red);
    border: 1px solid var(--red-border);
}

.results-fps {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.settings-table {
    width: 100%;
    border-collapse: collapse;
}

.settings-table th {
    text-align: left;
    padding: 0.75rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.settings-table td {
    padding: 0.85rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.9rem;
}

.settings-table tr:last-child td {
    border-bottom: none;
}

.setting-name {
    font-weight: 600;
}

.setting-level {
    font-weight: 600;
}

.level-high { color: var(--green); }
.level-medium { color: var(--yellow); }
.level-low { color: var(--red); }

.setting-reason {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.results-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    justify-content: center;
}

/* === Upgrade Cards (Step 4) === */
.bottleneck-info {
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    border-left: 3px solid var(--red);
}

.bottleneck-info p {
    color: var(--text-secondary);
}

.bottleneck-info strong {
    color: var(--red);
}

.upgrade-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.upgrade-card {
    padding: 1.25rem;
    border-radius: var(--radius);
    border: 1px solid;
}

.upgrade-budget {
    background: var(--green-dim);
    border-color: var(--green-border);
}

.upgrade-midrange {
    background: var(--accent-dim);
    border-color: var(--accent-border);
}

.upgrade-highend {
    background: var(--yellow-dim);
    border-color: var(--yellow-border);
}

.upgrade-tier-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.35rem;
}

.upgrade-budget .upgrade-tier-label { color: var(--green); }
.upgrade-midrange .upgrade-tier-label { color: var(--accent); }
.upgrade-highend .upgrade-tier-label { color: var(--yellow); }

.upgrade-card-name {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.upgrade-card-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* === Wizard Actions === */
.wizard-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

/* === Loading State === */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    gap: 1rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--bg-tertiary);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* === Responsive === */
@media (max-width: 700px) {
    /* Wizard container */
    .wizard-container {
        padding: 1.25rem 0.75rem;
    }

    /* Navbar */
    .navbar {
        padding: 0.7rem 1rem;
    }

    .nav-brand {
        font-size: 1.1rem;
    }

    /* Progress bar */
    .progress-bar {
        padding: 0.6rem 1rem;
        margin-bottom: 1.5rem;
    }

    .step-number {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }

    .step-label {
        font-size: 0.6rem;
    }

    .progress-line {
        width: 30px;
        margin: 0 0.3rem;
    }

    /* Headings */
    .wizard-step h2 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    /* Saved specs banner */
    .saved-specs-banner {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .saved-specs-label {
        font-size: 0.85rem;
    }

    .saved-specs-list {
        gap: 0.4rem;
    }

    .saved-spec-item {
        padding: 0.35rem 0.6rem;
        font-size: 0.75rem;
    }

    .saved-specs-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .saved-specs-actions .btn-primary,
    .saved-specs-actions .btn-secondary {
        width: 100%;
        text-align: center;
    }

    /* Input paths - stack vertically */
    .input-paths {
        flex-direction: column;
        gap: 0.75rem;
    }

    .input-path {
        padding: 1.25rem;
    }

    .path-divider {
        writing-mode: horizontal-tb;
        padding: 0.25rem 0;
    }

    .path-header h3 {
        font-size: 0.95rem;
    }

    .path-description {
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }

    .tutorial-step {
        font-size: 0.8rem;
        padding: 0.35rem 0.5rem;
    }

    .drop-zone {
        padding: 1.5rem 0.75rem;
    }

    .drop-zone-text {
        font-size: 0.85rem;
    }

    /* Specs summary chips */
    .specs-summary {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .spec-chip {
        min-width: unset;
        padding: 0.5rem;
    }

    .spec-chip-value {
        font-size: 0.8rem;
        word-break: break-word;
    }

    /* Game grid */
    .game-search {
        margin-bottom: 0.75rem;
    }

    .game-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 0.6rem;
    }

    .game-card {
        padding: 0.85rem 0.5rem;
    }

    .game-card-icon {
        font-size: 1.5rem;
    }

    .game-card-name {
        font-size: 0.75rem;
    }

    /* Salami Score section */
    .salami-score-section,
    .salami-score-game {
        padding: 1rem;
    }

    .salami-score-top {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        text-align: center;
        margin-bottom: 1rem;
    }

    .salami-gauge {
        width: 110px;
        height: 110px;
    }

    .salami-gauge-number {
        font-size: 1.8rem;
    }

    .salami-score-details {
        width: 100%;
    }

    .salami-score-title {
        text-align: center;
        margin-bottom: 0.5rem;
    }

    .breakdown-row {
        font-size: 0.75rem;
    }

    .breakdown-label {
        width: 50px;
    }

    /* Threshold bar */
    .threshold-bar {
        height: 26px;
    }

    .threshold-zone {
        font-size: 0.55rem;
        letter-spacing: 0;
    }

    .threshold-verdict {
        font-size: 0.8rem;
        margin-top: 1rem;
    }

    /* Results header */
    .results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    .results-header h2 {
        font-size: 1.1rem;
        text-align: left;
    }

    .results-fps {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }

    .results-verdict {
        font-size: 0.75rem;
        padding: 0.3rem 0.75rem;
    }

    /* Settings table - card layout on mobile */
    .settings-table {
        display: block;
    }

    .settings-table thead {
        display: none;
    }

    .settings-table tbody {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .settings-table tr {
        display: flex;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid rgba(255, 255, 255, 0.04);
        border-radius: var(--radius-sm);
        padding: 0.75rem;
    }

    .settings-table td {
        padding: 0.15rem 0;
        border-bottom: none;
        font-size: 0.85rem;
    }

    .settings-table .setting-name {
        font-size: 0.75rem;
        color: var(--text-muted);
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    .settings-table .setting-level {
        font-size: 1rem;
    }

    .settings-table .setting-reason {
        display: block;
        font-size: 0.8rem;
        margin-top: 0.25rem;
        line-height: 1.4;
    }

    /* Buttons */
    .btn-primary {
        padding: 0.7rem 1rem;
        font-size: 0.85rem;
    }

    .btn-secondary {
        padding: 0.55rem 1rem;
        font-size: 0.8rem;
    }

    .results-actions {
        flex-direction: column;
    }

    .results-actions .btn-primary {
        width: 100%;
    }

    /* Upgrade cards */
    .bottleneck-info {
        padding: 1rem;
        font-size: 0.85rem;
    }

    .upgrade-card {
        padding: 1rem;
    }

    .upgrade-card-name {
        font-size: 0.95rem;
    }

    .upgrade-card-desc {
        font-size: 0.8rem;
    }

    /* Wizard actions */
    .wizard-actions {
        flex-direction: column;
    }

    .wizard-actions .btn-secondary {
        width: 100%;
        text-align: center;
    }

    /* Loading */
    .loading-spinner {
        padding: 2rem 1rem;
    }
}
