@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap");

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

:root {
    --bg: #0e0e11;
    --panel: rgba(18, 18, 22, 0.82);
    --panel-solid: #121216;
    --text: #e8e8ec;
    --text-secondary: #a0a0a8;
    --text-muted: #606068;
    --accent: #d4853b;
    --accent-light: rgba(212, 133, 59, 0.15);
    --danger: #c4424b;
    --card-bg: rgba(28, 28, 34, 0.9);
    --card-border: rgba(255, 255, 255, 0.06);
    --card-selected: #d4853b;
    --section-bg: rgba(255, 255, 255, 0.03);
}

body {
    font-family:
        "DM Sans",
        -apple-system,
        BlinkMacSystemFont,
        sans-serif;
    background: var(--bg);
    color: var(--text);
    -webkit-user-select: none;
    user-select: none;
    min-height: 100vh;
}

/* ── Background image ── */
.bg-image {
    position: fixed;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.09;
    filter: blur(3px);
    pointer-events: none;
}

/* ── Top bar ── */
.top-bar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    background: rgba(14, 14, 17, 0.75);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.top-bar-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 860px;
    padding: 0 24px;
}

.top-bar .title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}
.top-bar .title .brand {
    color: var(--accent);
}
.top-bar .title .sub {
    color: rgba(255, 255, 255, 0.3);
    font-weight: 500;
}

.spacer {
    flex: 1;
}

.about-link {
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 150ms;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
}
.about-link:hover {
    color: var(--text);
}

.btn {
    padding: 8px 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 150ms;
}
.btn:hover {
    background: rgba(255, 255, 255, 0.1);
}
.btn:disabled {
    opacity: 0.3;
    cursor: default;
}
.btn:disabled:hover {
    background: rgba(255, 255, 255, 0.06);
}

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

/* ── Main content ── */
.main {
    position: relative;
    z-index: 1;
    max-width: 860px;
    margin: 0 auto;
    padding: 20px 24px 80px;
}

/* ── Filters ── */
.filters {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.filter-row {
    display: flex;
    gap: 6px;
    align-items: center;
}

.filter-row input {
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
    width: 100%;
}
.filter-row input:focus {
    outline: none;
    border-color: var(--accent);
}

.filter-toggles {
    display: flex;
    gap: 2px;
    flex-wrap: wrap;
}

.filter-toggle {
    padding: 5px 10px;
    border: none;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 120ms;
    white-space: nowrap;
    position: relative;
}
.filter-toggle:hover {
    background: rgba(255, 255, 255, 0.07);
}
.filter-toggle.active {
    color: var(--accent);
    background: rgba(212, 133, 59, 0.12);
}
.filter-toggle.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
}

.filter-switch + .filter-switch {
    margin-left: 16px;
}
.filter-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}
.filter-switch input {
    appearance: none;
    width: 32px;
    height: 16px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    cursor: pointer;
    transition: background 150ms;
    flex-shrink: 0;
}
.filter-switch input::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 12px;
    height: 12px;
    background: var(--text-secondary);
    transition: all 150ms;
}
.filter-switch input:checked {
    background: rgba(212, 133, 59, 0.3);
}
.filter-switch input:checked::after {
    left: 18px;
    background: var(--accent);
}
.filter-switch-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
}
.filter-switch input:checked + .filter-switch-label {
    color: var(--accent);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.filter-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
}

/* ── Squad sections ── */
.squad-section {
    margin-bottom: 28px;
}

.squad-header {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-secondary);
    padding: 8px 0;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    gap: 8px;
}

.squad-header img {
    width: 26px;
    height: 26px;
    object-fit: contain;
    opacity: 0.75;
}

.squad-add-all {
    margin-left: auto;
    padding: 2px 8px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 150ms;
}
.squad-add-all:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(232, 151, 62, 0.1);
}
.squad-add-all.active {
    border-color: var(--danger);
    color: var(--danger);
}
.squad-add-all.active:hover {
    background: rgba(233, 69, 96, 0.1);
}
.squad-add-all.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}
.squad-add-all.disabled:hover {
    border-color: var(--border);
    color: var(--text-secondary);
    background: transparent;
}

.squad-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
}

/* ── Doll cards ── */
.doll-card {
    position: relative;
    aspect-ratio: 3/4;
    border: 2px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
    overflow: hidden;
    transition: all 150ms;
    background: var(--card-bg);
}
.doll-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
}
.doll-card.in-unit {
    border-color: var(--card-selected);
    box-shadow:
        0 0 0 1px var(--card-selected),
        inset 0 0 12px rgba(212, 133, 59, 0.1);
}

.doll-card.roster-full {
    opacity: 0.35;
    cursor: not-allowed;
}

@keyframes card-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 133, 59, 0.5);
    }
    100% {
        box-shadow: 0 0 0 8px rgba(212, 133, 59, 0);
    }
}
@keyframes card-pulse-remove {
    0% {
        box-shadow: 0 0 0 0 rgba(196, 66, 75, 0.5);
    }
    100% {
        box-shadow: 0 0 0 8px rgba(196, 66, 75, 0);
    }
}
.doll-card.pulse-add {
    animation: card-pulse 350ms ease-out;
}
.doll-card.pulse-remove {
    animation: card-pulse-remove 350ms ease-out;
}

.doll-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.doll-card .card-badges {
    position: absolute;
    top: 4px;
    right: 4px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 2;
}
.card-badge {
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.8));
}
.card-badge svg {
    width: 14px;
    height: 14px;
    display: block;
}
.card-badge-ability svg {
    stroke: var(--accent);
}
.card-badge-skin svg {
    stroke: var(--text-secondary);
}
.card-badge-suppressor {
    margin-top: -3px;
}
.card-badge-suppressor svg {
    stroke: #666666;
}

.doll-card .card-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 18px 6px 5px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    text-align: center;
    color: #fff;
}

.doll-card .no-portrait {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    text-align: center;
    padding: 8px;
}

/* ── Hover tooltip ── */
.doll-tooltip {
    display: none;
    position: fixed;
    z-index: 200;
    width: 340px;
    background: rgba(18, 18, 24, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px;
    pointer-events: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}
.doll-tooltip.visible {
    display: block;
}

.tooltip-name {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
}

.tooltip-squad {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--accent);
    margin-bottom: 10px;
}

.tooltip-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 10px;
}

.tooltip-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.tooltip-stat {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.tooltip-stat-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--text-muted);
}
.tooltip-stat-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

.tooltip-ability {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.tooltip-ability-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--accent);
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.tooltip-ability-label svg {
    width: 12px;
    height: 12px;
    stroke: var(--accent);
}
.tooltip-ability-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
}
.tooltip-ability-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.tooltip-skins {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.tooltip-skins-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 4px;
}

.tooltip-skins-list {
    font-size: 14px;
    color: var(--text-secondary);
}

.tooltip-hint {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
}

.tooltip-hint.tooltip-hint-full {
    color: #e94560;
}

.squad-tab-count {
    display: inline-block;
    margin-left: 5px;
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
    opacity: 0.8;
}

/* ── Top roster bar ── */
.roster-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 19;
    background: rgba(10, 10, 13, 0.75);
    backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: center;
    max-height: 0;
    overflow: clip;
    transition:
        max-height 250ms ease,
        padding 250ms ease;
}
.roster-bar.visible {
    max-height: 80px;
    padding: 8px 0;
}
.roster-bar-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 860px;
    padding: 0 24px;
    min-width: 0;
}

.roster-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-muted);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.roster-digit {
    display: inline-block;
    width: 8px;
    height: 12px;
    overflow: hidden;
    vertical-align: -2px;
    margin-right: 1px;
}
.roster-digit:last-of-type {
    margin-right: 0;
}
.roster-digit-inner {
    display: flex;
    flex-direction: column;
    transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
}
.roster-digit-inner > span {
    height: 12px;
    line-height: 12px;
    font-size: 12px;
    text-align: center;
    flex-shrink: 0;
}

.roster-portraits {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    flex: 1;
    min-width: 0;
    scrollbar-width: none;
    cursor: grab;
}
.roster-portraits::-webkit-scrollbar {
    display: none;
}

@keyframes roster-slide-in {
    from {
        opacity: 0;
        transform: translateX(-12px) scale(0.85);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.roster-slot {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    overflow: hidden;
    transition: all 120ms;
    position: relative;
}
.roster-slot.new {
    animation: roster-slide-in 200ms ease-out;
}
.roster-slot:hover {
    border-color: var(--danger);
}
.roster-slot:hover::after {
    content: "\00d7";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(196, 66, 75, 0.7);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
}
.roster-slot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── No results ── */
.no-results {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 14px;
}

/* ── Modal ── */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 100;
    align-items: center;
    justify-content: center;
}
.modal-overlay.visible {
    display: flex;
}
body.modal-open {
    overflow: hidden;
}

.modal {
    background: var(--panel-solid);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 32px 36px;
    max-width: 500px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
    -webkit-user-select: text;
    user-select: text;
}

.modal h2 {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.modal .modal-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.modal p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
}

.modal ol {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.8;
    padding-left: 20px;
    margin-bottom: 16px;
}

.modal code {
    font-size: 11px;
    color: var(--accent);
    background: rgba(212, 133, 59, 0.08);
    border: 1px solid rgba(212, 133, 59, 0.15);
    padding: 3px 8px;
    display: inline-block;
    word-break: break-all;
}

.modal .note {
    font-size: 13px;
    color: var(--accent);
    background: rgba(212, 133, 59, 0.06);
    border-left: 2px solid var(--accent);
    padding: 10px 14px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.modal-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 20px 0;
}

.advanced-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    padding: 0;
    margin-bottom: 12px;
    transition: color 150ms;
}
.advanced-toggle:hover {
    color: var(--text);
}
.advanced-toggle svg {
    transition: transform 200ms;
}
.advanced-toggle.open svg {
    transform: rotate(90deg);
}
.advanced-body {
    display: none;
    max-height: 260px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}
.advanced-body.open {
    display: block;
}
.stat-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.stat-row:last-child {
    border-bottom: none;
}
.stat-row-portrait {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    overflow: hidden;
}
.stat-row-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.stat-row-name {
    width: 80px;
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 600;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.stat-row-fields {
    display: flex;
    gap: 6px;
    flex: 1;
    min-width: 0;
}
.stat-field {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}
.stat-field-label {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--text-muted);
}
.stat-field input {
    width: 100%;
    padding: 3px 6px;
    font-size: 12px;
    font-family: inherit;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    box-sizing: border-box;
}
.stat-field input:focus {
    border-color: var(--accent);
    outline: none;
}
.stat-field input.modified {
    border-color: var(--accent);
    background: rgba(232, 151, 62, 0.08);
}

.modal-field {
    margin-bottom: 18px;
}
.modal-field label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}
.modal-field input[type="text"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
}
.modal-field input[type="text"]:focus {
    outline: none;
    border-color: var(--accent);
}
.colour-preview-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}
.colour-preview-wrapper {
    position: relative;
    width: 100%;
    height: 36px;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.12);
    overflow: hidden;
}
.colour-preview-wrapper input[type="color"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    border: none;
    padding: 0;
}
.colour-preview-bar {
    width: 100%;
    height: 100%;
    background: #e3f6fd;
    pointer-events: none;
}
.colour-hex {
    font-family: monospace;
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 65px;
}
.colour-swatches {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}
.colour-swatch {
    width: 24px;
    height: 24px;
    border: 2px solid transparent;
    cursor: pointer;
    transition:
        border-color 150ms,
        transform 150ms;
}
.colour-swatch:hover {
    transform: scale(1.15);
}
.colour-swatch.active {
    border-color: #fff;
}
.colour-hint {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
    margin-top: -4px;
    margin-bottom: 8px;
}

.modal-install {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
}
.modal-install strong {
    color: var(--text);
    font-weight: 600;
}

.install-paths {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 10px;
}
.install-path {
    display: flex;
    align-items: center;
    gap: 8px;
}
.install-path-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--text-muted);
    width: 56px;
    flex-shrink: 0;
}
.install-path code {
    flex: 1;
    font-size: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: default;
}
.copy-btn {
    padding: 3px 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 120ms;
    flex-shrink: 0;
}
.copy-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
}
.copy-btn.copied {
    color: var(--accent);
    border-color: var(--accent);
}

.modal a {
    color: var(--accent);
    text-decoration: none;
}
.modal a:hover {
    text-decoration: underline;
}

.unit-summary {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 20px;
}
.unit-summary-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 60px;
}
.unit-summary-label {
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--text-muted);
}
.unit-summary-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}
.unit-summary-weapons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.unit-summary-weapon {
    font-size: 14px;
    color: var(--text-secondary);
}
.unit-summary-weapon span {
    color: var(--text);
    font-weight: 600;
}

.about-links {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}
.about-links .btn {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    font-size: 11px;
}

.modal .modal-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ── Splash screen ── */
.splash {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(8, 8, 11, 0.95);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 300ms ease;
}
.splash.hidden {
    opacity: 0;
    pointer-events: none;
}

.splash-content {
    max-width: 520px;
    padding: 0 24px;
    text-align: center;
}

.splash-title {
    font-size: 38px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 8px;
}

.splash-subtitle {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 24px;
}
.splash-subtitle a {
    color: var(--accent);
    text-decoration: none;
}
.splash-subtitle a:hover {
    text-decoration: underline;
}

.splash-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 0 auto 20px;
    width: 60px;
}

.splash-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.splash-steps {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    text-align: left;
    padding-left: 24px;
    margin-bottom: 16px;
    list-style-position: outside;
}
.splash-steps strong {
    color: var(--text);
}

.splash-note {
    font-size: 14px;
    color: var(--accent);
    margin-bottom: 20px;
}

.splash-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
}
.splash-links a {
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 150ms;
}
.splash-links a:hover {
    color: var(--text-secondary);
}

.splash-version {
    position: absolute;
    bottom: 16px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}
.splash-cta {
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    animation: pulse-cta 2s ease-in-out infinite;
}
@keyframes pulse-cta {
    0%,
    100% {
        opacity: 0.4;
    }
    50% {
        opacity: 0.8;
    }
}

/* ── Loading ── */
#loading {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    z-index: 200;
    color: rgba(255, 255, 255, 0.3);
    font-size: 13px;
    letter-spacing: 0.5px;
}
#loading.hidden {
    display: none;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}
/* ── Toast ── */
.toast {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(18, 18, 22, 0.95);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text);
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    animation: toast-in 300ms ease forwards;
}
.toast.hiding {
    animation: toast-out 300ms ease forwards;
}
@keyframes toast-in {
    0% { opacity: 0; transform: translateX(-50%) translateY(20px) scale(0.95); }
    100% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}
@keyframes toast-out {
    0% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
    100% { opacity: 0; transform: translateX(-50%) translateY(-10px) scale(0.95); }
}

/* ── Gacha mode ── */
.btn-gacha {
    background: linear-gradient(135deg, #c24fdb 0%, #e8b630 50%, #4f8ff5 100%);
    background-size: 200% 200%;
    animation: gacha-btn-pulse 3s ease-in-out infinite;
    border: none;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.8px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.btn-gacha:hover {
    background: linear-gradient(135deg, #d460ec 0%, #f0c440 50%, #6aa0ff 100%);
    background-size: 200% 200%;
    animation: gacha-btn-pulse 1.5s ease-in-out infinite;
}
.btn-gacha.locked {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    animation: none;
    cursor: default;
}
.btn-gacha.locked:hover {
    background: rgba(255, 255, 255, 0.08);
}
@keyframes gacha-btn-pulse {
    0%,
    100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.gacha-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(8px);
    z-index: 110;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
}
.gacha-overlay.visible {
    display: flex;
}

.gacha-content {
    width: 100%;
    max-width: 860px;
    padding: 28px;
    margin: auto;
}

.gacha-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.gacha-header-left {
    display: flex;
    align-items: baseline;
    gap: 10px;
}
.gacha-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
}
.gacha-close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 150ms;
    line-height: 1;
}
.gacha-close-btn:hover {
    color: var(--text);
}

.gacha-intro {
    text-align: center;
    margin-bottom: 24px;
    padding: 24px;
}
.gacha-intro.hidden {
    display: none;
}
.gacha-intro-title {
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}
.gacha-intro-sub {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 20px;
}
.gacha-intro-rules {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}
.gacha-intro-rule {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 12px 16px;
    flex: 1;
    min-width: 160px;
    max-width: 220px;
}
.gacha-intro-rule-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--accent);
    margin-bottom: 5px;
}
.gacha-intro-rule-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.gacha-pity-display {
    margin-top: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 12px;
    color: var(--text-muted);
}
.gacha-pity-label {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #e8b630;
}
.gacha-pity-bar {
    width: 150px;
    height: 5px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}
.gacha-pity-fill {
    height: 100%;
    background: #e8b630;
    transition: width 600ms cubic-bezier(0.25, 0.8, 0.25, 1);
}

.gacha-cascade {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 16px;
}

.gacha-cascade-row {
    position: relative;
    height: 82px;
    background: rgba(0, 0, 0, 0.3);
}
.gacha-cascade-row-clip {
    position: absolute;
    inset: 0;
    overflow: hidden;
}
.gacha-cascade-row.waiting {
    opacity: 0.4;
}
.gacha-cascade-row.spinning,
.gacha-cascade-row.landed {
    opacity: 1;
}

.gacha-cascade-strip {
    display: flex;
    gap: 4px;
    position: absolute;
    top: 3px;
    left: 0;
    will-change: transform;
}

.gacha-cascade-cell {
    width: 62px;
    height: 76px;
    flex-shrink: 0;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.06);
    background: var(--card-bg);
    position: relative;
}
.gacha-cascade-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gacha-cascade-marker {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    margin-left: -1px;
    background: var(--accent);
    box-shadow:
        0 0 8px var(--accent),
        0 0 16px rgba(212, 133, 59, 0.3);
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    transition: opacity 300ms ease;
}
.gacha-cascade-row.spinning .gacha-cascade-marker,
.gacha-cascade-row.landed .gacha-cascade-marker {
    opacity: 1;
}
.gacha-cascade-marker::before,
.gacha-cascade-marker::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
}
.gacha-cascade-marker::before {
    top: 0;
    border-top: 6px solid var(--accent);
}
.gacha-cascade-marker::after {
    bottom: 0;
    border-bottom: 6px solid var(--accent);
}

.gacha-cascade-label {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0;
    transition: opacity 400ms ease;
    z-index: 3;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    padding: 4px 10px;
    border-radius: 3px;
}
.gacha-cascade-label.revealed {
    opacity: 1;
}
.gacha-cascade-label-name {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.gacha-cascade-label-grade {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.gacha-cascade-label-dupe {
    font-size: 11px;
    font-weight: 600;
    color: var(--accent);
}

/* Grade glow on the winning cell — soft light bloom */
.gacha-cascade-cell.glow-Rare,
.gacha-cascade-cell.glow-SR,
.gacha-cascade-cell.glow-SSR {
    overflow: visible;
    z-index: 1;
}
.gacha-cascade-cell.glow-Rare {
    box-shadow:
        0 0 20px 8px rgba(79, 143, 245, 0.3),
        0 0 50px 15px rgba(79, 143, 245, 0.12);
    animation: cascade-glow-pulse 1.2s ease-in-out infinite;
}
.gacha-cascade-cell.glow-SR {
    box-shadow:
        0 0 25px 10px rgba(194, 79, 219, 0.35),
        0 0 60px 20px rgba(194, 79, 219, 0.12);
    animation: cascade-glow-pulse 1s ease-in-out infinite;
}
.gacha-cascade-cell.glow-SSR {
    box-shadow:
        0 0 30px 12px rgba(232, 182, 48, 0.4),
        0 0 70px 25px rgba(232, 182, 48, 0.15),
        0 0 100px 40px rgba(232, 182, 48, 0.06);
    animation: cascade-glow-pulse 0.8s ease-in-out infinite;
}
@keyframes cascade-glow-pulse {
    0%,
    100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.3);
    }
}

/* SSR cell particles while spinning */
.gacha-cell-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #e8b630;
    border-radius: 50%;
    box-shadow: 0 0 4px #e8b630;
    pointer-events: none;
    z-index: 2;
    animation: cell-particle-fly 0.8s ease-out forwards;
}
@keyframes cell-particle-fly {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(var(--dx), var(--dy)) scale(0);
    }
}

.gacha-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 20px;
}

.gacha-summary {
    width: 100%;
    max-width: 860px;
    padding: 28px;
    margin: auto;
}
.gacha-summary h2 {
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.gacha-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 28px;
}
.gacha-mini-card {
    border: 2px solid rgba(255, 255, 255, 0.08);
    background: var(--card-bg);
    padding: 8px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.gacha-mini-card[data-grade="common"] {
    border-color: #8a8a8a;
}
.gacha-mini-card[data-grade="Rare"] {
    border-color: #4f8ff5;
}
.gacha-mini-card[data-grade="SR"] {
    border-color: #c24fdb;
}
.gacha-mini-card[data-grade="SSR"] {
    border-color: #e8b630;
    box-shadow: 0 0 15px rgba(232, 182, 48, 0.2);
}
.mini-portrait {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    margin-bottom: 4px;
}
.mini-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.mini-stats-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 5px 6px;
    background: rgba(14, 14, 17, 0.45);
    backdrop-filter: blur(6px);
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.mini-stat {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.3;
}
.mini-stat-label {
    color: rgba(255, 255, 255, 0.5);
    width: 24px;
    flex-shrink: 0;
}
.mini-stat-bar {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}
.mini-stat-bar-centre {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(255, 255, 255, 0.15);
}
.mini-stat-bar-fill {
    position: absolute;
    top: 0;
    height: 100%;
}
.mini-stat-bar-fill.positive {
    background: #4fdb6a;
    left: 50%;
}
.mini-stat-bar-fill.negative {
    background: #db4f4f;
    right: 50%;
    left: auto;
}
.mini-stat-value {
    width: 26px;
    text-align: right;
    flex-shrink: 0;
}
.mini-stat.positive .mini-stat-value {
    color: #4fdb6a;
}
.mini-stat.negative .mini-stat-value {
    color: #db4f4f;
}
.gacha-mini-card .mini-name {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.gacha-mini-card .mini-grade {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}
.gacha-mini-card .mini-dupe {
    font-size: 9px;
    font-weight: 600;
    color: var(--accent);
}

.gacha-summary-form {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 20px;
    margin-bottom: 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;
}
.gacha-summary-form .modal-field {
    margin-bottom: 0;
}

.gacha-locked-msg {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 15px;
}
.gacha-locked-msg strong {
    display: block;
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.gacha-roster {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 20px;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    min-height: 72px;
    align-items: center;
}
.gacha-roster-slot {
    width: 58px;
    height: 58px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    overflow: hidden;
    opacity: 0.3;
    transition: all 300ms ease;
}
.gacha-roster-slot.filled {
    opacity: 1;
}
.gacha-roster-slot[data-grade="common"] {
    border-color: #8a8a8a;
}
.gacha-roster-slot[data-grade="Rare"] {
    border-color: #4f8ff5;
}
.gacha-roster-slot[data-grade="SR"] {
    border-color: #c24fdb;
}
.gacha-roster-slot[data-grade="SSR"] {
    border-color: #e8b630;
    box-shadow: 0 0 8px rgba(232, 182, 48, 0.3);
}
.gacha-roster-slot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
@keyframes gacha-roster-pop {
    0% {
        transform: scale(0.6);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}
.gacha-roster-slot.pop {
    animation: gacha-roster-pop 300ms ease-out;
}
@keyframes gacha-roster-merge {
    0% {
        transform: scale(1);
    }
    30% {
        transform: scale(1.2);
        filter: brightness(1.5);
    }
    100% {
        transform: scale(1);
        filter: brightness(1);
    }
}
.gacha-roster-slot.merge {
    animation: gacha-roster-merge 400ms ease-out;
}
.gacha-roster-version {
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: 9px;
    font-weight: 700;
    color: #fff;
    background: rgba(0, 0, 0, 0.7);
    padding: 1px 3px;
    line-height: 1;
}
.gacha-roster-slot {
    position: relative;
}

/* ── Games dropdown ── */
.games-dropdown {
    position: relative;
    padding-bottom: 10px;
    margin-bottom: -10px;
}
.games-trigger {
    display: flex;
    align-items: center;
    gap: 3px;
}
.games-chevron {
    transition: transform 200ms;
}
.games-dropdown:hover .games-chevron,
.games-dropdown.open .games-chevron {
    transform: rotate(180deg);
}
.games-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 220px;
    z-index: 50;
}
.games-menu-inner {
    background: rgba(18, 18, 22, 0.95);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}
.games-dropdown:hover .games-menu,
.games-dropdown.open .games-menu {
    display: block;
}
.games-menu-item {
    display: flex;
    flex-direction: column;
    padding: 10px 14px;
    color: var(--text);
    cursor: pointer;
    transition: background 150ms;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}
.games-menu-item:hover {
    background: rgba(255, 255, 255, 0.06);
}
.games-menu-desc {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 400;
    margin-top: 2px;
}

/* ── Girldle overlay ── */
/* Girldle reuses gacha-overlay, gacha-content, gacha-header, gacha-title, gacha-close-btn */
.girldle-sub {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 24px;
}
.girldle-message {
    text-align: center;
    padding: 12px 0 4px;
    font-size: 15px;
    color: var(--text-secondary);
}
.girldle-win {
    color: #4ade80;
    font-weight: 700;
    font-size: 16px;
}
.girldle-lose {
    color: var(--danger);
    font-weight: 700;
    font-size: 16px;
}
.girldle-timer {
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    padding: 12px 0;
}

.girldle-intro {
    text-align: center;
    padding: 32px 0 24px;
}
.girldle-intro-title {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}
.girldle-intro-hint {
    font-size: 14px;
    color: var(--text-muted);
}

/* ── Girldle board ── */
.girldle-row {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr 1.6fr;
    gap: 6px;
    margin-bottom: 6px;
}
.girldle-header {
    margin-bottom: 8px;
}
.girldle-header .girldle-cell {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-secondary);
    background: none;
    padding: 6px 8px;
}
.girldle-cell {
    padding: 12px 10px;
    font-size: 13px;
    text-align: center;
    background: rgba(255, 255, 255, 0.04);
    transition: background 300ms;
    word-break: break-word;
    display: flex;
    align-items: center;
    justify-content: center;
}
.girldle-name-cell {
    justify-content: flex-start;
    font-weight: 600;
    font-size: 14px;
}
.girldle-correct {
    background: rgba(74, 222, 128, 0.2);
    color: #4ade80;
    font-weight: 600;
}
.girldle-wrong {
    background: rgba(196, 66, 75, 0.2);
    color: #e8706e;
}
.girldle-partial {
    background: rgba(234, 179, 8, 0.2);
    color: #eab308;
    font-weight: 600;
}

/* ── Girldle input ── */
.girldle-input-row {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}
.girldle-autocomplete-wrapper {
    flex: 1;
    position: relative;
}
.girldle-autocomplete-wrapper input {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text);
    outline: none;
}
.girldle-autocomplete-wrapper input:focus {
    border-color: rgba(255, 255, 255, 0.15);
}
.girldle-suggestions {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(18, 18, 22, 0.95);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 4px;
    z-index: 120;
    max-height: 240px;
    overflow-y: auto;
}
.girldle-suggestion {
    padding: 10px 12px;
    cursor: pointer;
    font-size: 14px;
    transition: background 100ms;
}
.girldle-suggestion:hover,
.girldle-suggestion.highlighted {
    background: rgba(255, 255, 255, 0.06);
}

/* ── Girldle end state ── */
.girldle-end {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 4px 0 16px;
}
.girldle-end-stats {
    display: flex;
    gap: 32px;
}
.girldle-stat {
    text-align: center;
}
.girldle-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
}
.girldle-stat-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
}
