/* ============================================================
   Game Index — catalog.css
   Clean, utilitarian. No gradients, no glow, no badge spam.
   System font stack, one accent (#2563eb blue).
   ============================================================ */

:root {
    --accent:       #2563eb;
    --accent-dim:   #1d4ed8;
    --bg:           #0f0f0f;
    --surface:      #1a1a1a;
    --surface-2:    #242424;
    --border:       #2e2e2e;
    --text:         #e2e2e2;
    --text-muted:   #6b6b6b;
    --cover-width:  140px;
    --cover-ratio:  140.94%;   /* 342×482 */
    --radius:       3px;
    --radius-lg:    6px;
}

/* ---- Reset / base ---- */
*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
    font-size: 18px;
    line-height: 1.5;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dim); }

/* ---- Nav ---- */
.gi-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.gi-nav-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0 1.25rem;
    height: 54px;
}

.gi-nav-brand {
    font-weight: 600;
    font-size: 17px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text);
    flex-shrink: 0;
}

.gi-nav-links {
    display: flex;
    align-items: center;
    gap: 0.125rem;
    flex: 1;
}

.gi-nav-links a {
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius);
    color: var(--text-muted);
    font-size: 17px;
    transition: color 0.1s, background 0.1s;
}

.gi-nav-links a:hover { color: var(--text); background: var(--surface-2); }
.gi-nav-links a.active { color: var(--text); }

.gi-nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.gi-count {
    display: inline-block;
    min-width: 18px;
    padding: 0 4px;
    background: var(--accent);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border-radius: 9px;
    text-align: center;
    vertical-align: middle;
    margin-left: 4px;
}

/* ---- Status bar ---- */
.gi-statusbar {
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
    padding: 0.375rem 1.25rem;
    font-size: 16px;
    color: var(--text-muted);
}

/* ---- Main ---- */
.gi-main {
    padding: 1rem 1.25rem;
}

/* ---- Toolbar ---- */
.gi-toolbar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.gi-page-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.gi-search-form {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.gi-search {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.375rem 0.625rem;
    border-radius: var(--radius);
    font-size: 17px;
    width: 260px;
    outline: none;
}

.gi-search:focus { border-color: var(--accent); }

.gi-count-label {
    color: var(--text-muted);
    font-size: 16px;
    margin-left: auto;
}

.gi-cover-size {
    display: flex;
    align-items: center;
}

.gi-cover-size input[type=range] {
    width: 100px;
    accent-color: var(--accent);
}

/* ---- Buttons ---- */
.gi-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: var(--radius);
    font-size: 17px;
    cursor: pointer;
    transition: background 0.1s, border-color 0.1s;
    white-space: nowrap;
}

.gi-btn:hover { background: var(--surface); border-color: #3e3e3e; }

.gi-btn-sm { padding: 0.25rem 0.5rem; font-size: 16px; }

.gi-btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.gi-btn-primary:hover { background: var(--accent-dim); border-color: var(--accent-dim); }

.gi-btn-ghost {
    background: transparent;
    border-color: transparent;
    color: var(--text-muted);
}
.gi-btn-ghost:hover { background: var(--surface-2); color: var(--text); }

.gi-btn-danger {
    background: transparent;
    border-color: #5a1e1e;
    color: #f87171;
}
.gi-btn-danger:hover { background: #3b0f0f; }

/* ---- Inputs ---- */
.gi-input {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.375rem 0.625rem;
    border-radius: var(--radius);
    font-size: 17px;
    width: 100%;
    outline: none;
}
.gi-input:focus { border-color: var(--accent); }
.gi-input-sm { padding: 0.25rem 0.5rem; font-size: 16px; }

.gi-select {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.375rem 0.5rem;
    border-radius: var(--radius);
    font-size: 17px;
    width: 100%;
    outline: none;
}
.gi-select:focus { border-color: var(--accent); }
.gi-select-sm { width: auto; padding: 0.25rem 0.5rem; font-size: 14px; }

.gi-label { font-size: 13px; color: var(--text-muted); text-transform: uppercase;
            letter-spacing: 0.04em; display: block; margin-bottom: 4px; }

.gi-input-row { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.gi-input-row .gi-label { margin-bottom: 0; flex-shrink: 0; }
.gi-input-row .gi-input { flex: 1; min-width: 0; }

/* ---- Game grid (public) ---- */
#games {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(var(--cover-width), max-content));
    gap: 10px;
    justify-content: center;
}

.gi-game {
    width: var(--cover-width);
    position: relative;
    background: var(--surface);
    background-size: cover;
    background-position: center;
    cursor: pointer;
    border-radius: var(--radius);
    box-shadow: 0 1px 3px rgba(0,0,0,0.4);
    transition: box-shadow 0.15s;
    overflow: hidden;
}

.gi-game::after {
    content: '';
    display: block;
    padding-top: var(--cover-ratio);
}

.gi-game:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.gi-game-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.35rem 0.5rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    font-size: 14px;
    color: #fff;
    opacity: 0;
    transition: opacity 0.15s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gi-game:hover .gi-game-title { opacity: 1; }

/* ---- Table (admin) ---- */
.gi-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 17px;
}

.gi-table th {
    text-align: left;
    padding: 0.375rem 0.5rem;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid var(--border);
}

.gi-table td {
    padding: 0.375rem 0.5rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

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

.gi-table tr:hover td { background: var(--surface-2); }

.gi-col-cover { width: 40px; }
.gi-col-actions { width: 80px; }

.gi-thumb {
    width: 34px;
    height: 48px;
    object-fit: cover;
    border-radius: 2px;
    display: block;
}

.gi-thumb-empty {
    background: var(--surface-2);
    border-radius: 2px;
}

.gi-game-title-link {
    cursor: pointer;
    color: var(--text);
}
.gi-game-title-link:hover { color: var(--accent); }

.gi-meta { font-size: 14px; color: var(--text-muted); margin-top: 1px; }
.gi-muted { color: var(--text-muted); }
.gi-small { font-size: 14px; }
.gi-mono { font-family: ui-monospace, monospace; }

/* ---- Store tags ---- */
.gi-store-tag {
    display: inline-block;
    padding: 3px 8px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    border: 1px solid var(--border);
    color: var(--text-muted);
}
.gi-store-steam          { border-color: #1b4a7a; color: #5ba3e0; }
.gi-store-gog            { border-color: #4a1a7a; color: #a05de0; }
.gi-store-epic_game_store{ border-color: #3a3a3a; color: #a0a0a0; }
.gi-store-generic        { border-color: #2a3a1a; color: #7ab05d; }

/* ---- Actions ---- */
.gi-actions { display: flex; gap: 2px; align-items: center; }

.gi-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: var(--radius);
    font-size: 17px;
    transition: color 0.1s, background 0.1s;
}
.gi-action:hover { background: var(--surface-2); color: var(--text); }
.gi-action-danger:hover { color: #f87171; }

/* ---- Queue cards ---- */
.gi-queue-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 0.875rem 1.125rem;
    margin-bottom: 0.5rem;
}

.gi-queue-meta {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.gi-queue-title { font-weight: 500; }

.gi-queue-stores {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
    font-size: 16px;
}

/* ---- Candidates ---- */
.gi-candidates {
    display: flex;
    gap: 0.375rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.gi-candidate {
    padding: 0.3rem 0.75rem;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: var(--radius);
    font-size: 16px;
    cursor: pointer;
    transition: border-color 0.1s, background 0.1s;
}
.gi-candidate:hover { border-color: var(--accent); background: var(--surface); }
.gi-candidate-exact { border-color: #1a5a2a; color: #7ab05d; }

.gi-score { color: var(--text-muted); margin-left: 4px; font-size: 13px; }

/* ---- Chips ---- */
.gi-chip {
    display: inline-block;
    padding: 1px 8px;
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-muted);
}
.gi-chip-reason { font-size: 13px; }
.gi-chip-clear { color: var(--text-muted); }
.gi-chip-clear:hover { color: var(--text); }

/* ---- Ext links ---- */
.gi-ext-link { color: var(--text-muted); font-size: 14px; }
.gi-ext-link:hover { color: var(--accent); }

/* ---- Empty ---- */
.gi-empty {
    color: var(--text-muted);
    text-align: center;
    padding: 3rem;
    font-size: 17px;
}

/* ---- Pagination ---- */
.gi-pagination {
    display: flex;
    align-items: center;
    gap: 3px;
    justify-content: center;
    margin-top: 1.5rem;
    padding-bottom: 2rem;
}

.gi-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-muted);
    border-radius: var(--radius);
    font-size: 16px;
    transition: background 0.1s, color 0.1s;
}
.gi-page-btn:hover { background: var(--surface-2); color: var(--text); }
.gi-page-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.gi-page-gap { color: var(--text-muted); padding: 0 4px; font-size: 14px; }

/* ---- Modals ---- */
.gi-modal-content {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    color: var(--text);
}

.gi-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
}

.gi-modal-title { font-weight: 500; font-size: 18px; }

.gi-modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
}
.gi-modal-close:hover { color: var(--text); }

.gi-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--border);
}

/* ---- Form grid ---- */
.gi-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}
.gi-full { grid-column: 1 / -1; }
.gi-form-field { display: flex; flex-direction: column; }

.gi-tag-list { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.gi-tag-list label { display: flex; align-items: center; gap: 0.375rem;
                     font-size: 16px; cursor: pointer; }

/* ---- Delete prompts ---- */
.gi-delete-prompt { font-size: 18px; margin: 0 0 0.25rem; }
.gi-delete-note { font-size: 14px; color: var(--text-muted); margin: 0; }

/* ---- Collection editor ---- */
.gi-drag-handle {
    cursor: grab;
    color: var(--text-muted);
    user-select: none;
    font-size: 16px;
    text-align: center;
}
.gi-drag-handle:active { cursor: grabbing; }

.gi-order-input { width: 52px; text-align: center; }

tr.sortable-ghost td { opacity: 0.4; background: var(--surface-2); }

/* ---- Add-to-collection game rows ---- */
.gi-add-game-row {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.375rem 0.5rem;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.1s;
}
.gi-add-game-row:hover { background: var(--surface-2); }
.gi-add-game-row.selected { background: var(--surface-2); outline: 1px solid var(--accent); }
.gi-add-game-row.already-in { opacity: 0.4; cursor: default; }

.gi-add-thumb {
    width: 24px;
    height: 34px;
    object-fit: cover;
    border-radius: 2px;
    background: var(--surface-2);
    flex-shrink: 0;
    display: block;
}

/* ---- Bootstrap Icons ---- */
/* Add to <head>: <link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.css" rel="stylesheet"> */

/* ---- Edit page layout ---- */
.gi-edit-layout {
    display: grid;
    grid-template-columns: 1fr 240px;
    gap: 1rem;
    align-items: start;
}

.gi-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.gi-card-header {
    padding: 0.5rem 0.875rem;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.gi-card-body {
    padding: 0.875rem;
}

.gi-sidebar-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.gi-btn-block { width: 100%; justify-content: center; }

.gi-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 0.25rem 0;
}

.mt-3 { margin-top: 0.75rem; }

/* ---- IGDB Search modal ---- */
.gi-search-row {
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
}

/* ---- Store SVG icons ---- */
.store-icon {
    display: inline-block;
    vertical-align: middle;
    fill: currentColor;
    flex-shrink: 0;
}

/* Цвет иконки совпадает с цветом текста тега */
.gi-store-steam .store-icon,
.gi-store-gog .store-icon,
.gi-store-epic_game_store .store-icon,
.gi-store-generic .store-icon {
    fill: currentColor;
}

/* Если иконка используется отдельно (без badge) */
.store-icon-steam           { color: #5ba3e0; }
.store-icon-gog             { color: #a05de0; }
.store-icon-epic_game_store { color: #a0a0a0; }
.store-icon-generic         { color: #7ab05d; }

/* ---- Edit page layout ---- */
.gi-edit-page {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 1rem;
    align-items: start;
}

.gi-edit-main {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.gi-field {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    margin-bottom: .625rem;
}
.gi-field:last-child { margin-bottom: 0; }

.gi-field-row {
    display: flex;
    gap: .75rem;
    margin-bottom: .625rem;
}
.gi-field-row .gi-field { flex: 1; margin-bottom: 0; }

.gi-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

/* ---- Dual-list ---- */
.gi-card-dl { margin-bottom: 0; }

.gi-dl-wrap {
    display: flex;
    gap: .5rem;
    padding: .625rem;
    align-items: flex-start;
}

.gi-dl-col {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: .25rem;
}

.gi-dl-colhead {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .125rem;
}

.gi-dl-filter {
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 1px 6px;
    border-radius: var(--radius);
    font-size: 13px;
    width: 100%;
    outline: none;
    flex: 1;
}
.gi-dl-filter:focus { border-color: var(--accent); }

.gi-dl-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    min-height: 120px;
    max-height: 200px;
    overflow-y: auto;
}

.gi-dl-item {
    padding: .25rem .5rem;
    font-size: 14px;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background .1s;
}
.gi-dl-item:last-child { border-bottom: none; }
.gi-dl-item:hover { background: var(--surface-2); }
.gi-dl-item.gi-dl-active {
    background: rgba(37, 99, 235, .2);
    color: #93c5fd;
}

.gi-dl-btns {
    display: flex;
    flex-direction: column;
    gap: .375rem;
    padding-top: 1.5rem;
    flex-shrink: 0;
}

/* ---- Sidebar components ---- */
.gi-sg-row {
    display: flex;
    align-items: center;
    gap: .375rem;
    padding: .25rem .75rem;
    border-bottom: 1px solid var(--border);
}
.gi-sg-row:last-child { border-bottom: none; }

.gi-kv {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    margin-bottom: .375rem;
    font-size: 14px;
}
.gi-kv:last-child { margin-bottom: 0; }
.gi-kv .gi-label { margin-bottom: 0; }

/* ---- Save status ---- */
.gi-save-status {
    padding: .375rem .75rem;
    border-radius: var(--radius);
    font-size: 14px;
    margin-bottom: .75rem;
}
.gi-save-ok  { background: #1a3a1a; color: #7ab05d; }
.gi-save-err { background: #3b0f0f; color: #f87171; }
.gi-save-info { background: var(--surface-2); color: var(--text-muted); }

/* ---- Public game modal ---- */
.gi-modal-title-block {
    display: flex;
    align-items: baseline;
    gap: .5rem;
    flex-wrap: wrap;
    flex: 1;
    min-width: 0;
}

.gi-gm-body { padding: .75rem 1rem; }

.gi-gm-top {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.gi-gm-info { flex: 1; min-width: 0; }

.gi-gm-cover {
    width: 160px;
    flex-shrink: 0;
}



.gi-gm-hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: .625rem 0;
}



.gi-gm-summary {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
    color: var(--text);
}

.gi-gm-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .375rem;
}

.gi-gm-tag {
    display: inline-block;
    padding: 2px 10px;
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-muted);
    transition: border-color .1s, color .1s;
}
.gi-gm-tag:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ---- Filter chips ---- */
.gi-filter-summary {
    display: flex;
    align-items: center;
    gap: .375rem;
    flex-wrap: wrap;
}

.gi-chip {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: 2px 8px;
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-muted);
}

.gi-chip-x {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1;
    margin-left: 2px;
}
.gi-chip-x:hover { color: var(--text); }

.gi-chip-clear {
    color: var(--text-muted);
    border-color: transparent;
}
.gi-chip-clear:hover { color: var(--text); }

/* ---- Collections page ---- */
.gi-collection-link {
    color: var(--text);
    font-size: 15px;
}
.gi-collection-link:hover { color: var(--accent); }

/* ── Store badges in modal ───────────────────────────── */
.gi-gm-stores {
    display: flex;
    gap: .375rem;
    flex-wrap: wrap;
    margin-bottom: .5rem;
    min-height: 0;
}
.gi-gm-stores:empty { display: none; }
.gi-gm-stores .gi-store-tag {
    text-decoration: none;
    transition: opacity .15s;
}
.gi-gm-stores a.gi-store-tag:hover { opacity: .8; }

/* ── Collection & genres in modal ────────────────────── */
.gi-gm-collection { margin-bottom: .2rem; }
.gi-gm-collection:empty { display: none; }
.gi-gm-collection a { color: var(--text-muted); }
.gi-gm-collection a:hover { color: var(--text); }

.gi-gm-genres { margin-bottom: .375rem; }
.gi-gm-genres:empty { display: none; }

.gi-gm-inline-link { color: var(--text-muted); }
.gi-gm-inline-link:hover { color: var(--accent); }

/* ── Companies ───────────────────────────────────────── */
.gi-gm-companies { margin: 0; color: var(--text); line-height: 1.7; }

/* ── Queue wizard ─────────────────────────────────────── */
.gi-wizard {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    max-width: 760px;
}

.gi-wizard-title {
    font-size: 20px;
    font-weight: 500;
    color: var(--text);
}

.gi-wizard-search .gi-card-body { padding-bottom: 0; }

/* Search results scrollable list */
.gi-search-results {
    margin-top: .625rem;
    max-height: 280px;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}

.gi-search-hint {
    padding: .75rem;
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
    text-align: center;
}

.gi-result-row {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .4rem .625rem;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background .1s;
}
.gi-result-row:last-child { border-bottom: none; }
.gi-result-row:hover { background: var(--surface-2); }

.gi-result-selected {
    background: rgba(34,197,94,.15) !important;
    outline: 1px solid #22c55e;
    color: #86efac;
}
.gi-result-selected .gi-result-id { color: #86efac; opacity: .7; }

.gi-result-title { flex: 1; font-size: 15px; }
.gi-result-id    { font-size: 13px; flex-shrink: 0; }
.gi-result-score { flex-shrink: 0; font-size: 13px; }

/* Candidate rows (generic queue) */
.gi-candidate-row { cursor: pointer; }
.gi-candidate-exact .gi-result-title { color: #7ab05d; }

.gi-exact-badge {
    display: inline-block;
    padding: 1px 6px;
    background: #1a3a1a;
    color: #7ab05d;
    border-radius: 10px;
    font-size: 11px;
    margin-left: 4px;
    vertical-align: middle;
}

/* Actions bar */
.gi-wizard-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .5rem 0;
}

.gi-wizard-btns {
    display: flex;
    gap: .5rem;
    align-items: center;
    margin-left: auto;
}

.gi-selected-hint {
    font-size: 14px;
    color: var(--text-muted);
}

/* Queue done state */
.gi-queue-done {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}
.gi-queue-done p { font-size: 18px; margin-bottom: 1.5rem; }

/* Queue nav */
.gi-queue-nav { display: flex; gap: .375rem; }

/* ── Queued notice ─────────────────────────────────────── */
.gi-queued-notice {
    display: flex;
    align-items: center;
    gap: .625rem;
    padding: .5rem .875rem;
    background: rgba(234, 179, 8, .1);
    border: 1px solid rgba(234, 179, 8, .3);
    border-radius: var(--radius);
    color: #fbbf24;
    font-size: 14px;
}
.gi-queued-notice .gi-btn { margin-left: auto; }

/* ── Game modal rating ────────────────────────────────── */
.gi-gm-rating {
    margin-bottom: .2rem;
    color: #fff;
}
.gi-gm-rating:empty { display: none; }

.gi-star {
    font-size: 14px;
    color: #fbbf24;
}
.gi-star-empty { color: #4b4b4b; }

.gi-gm-score {
    color: #fff;
    margin-left: .25rem;
    font-size: 13px;
}