/* Accessory detail page: builds on game-detail.css, plus the colour picker and platforms (the gallery is gallery.css). */

.game-detail-badges .badge-variant {
    border: 1px solid var(--border-strong);
}

/* made or officially licensed by Nintendo (fragments/accessory-badges.html) */
.game-detail-badges .badge-official {
    background: var(--green-bg);
    border: 1px solid var(--green-border);
    color: var(--green);
    cursor: help;
}

.game-detail-badges .badge-icon {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

/* Colour picker: one chip per sibling, linking to its own page */
.variant-picker {
    margin-bottom: 1rem;
}

.variant-picker-label {
    margin: 0 0 0.4rem;
    font-size: var(--text-small);
    color: var(--muted);
}

.variant-picker-label strong {
    color: var(--text);
    font-weight: 600;
}

.variant-picker ul {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.4rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.variant-chip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: 100%;
    box-sizing: border-box;
    padding: 0.4rem 0.6rem;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    text-decoration: none;
}

.variant-chip:hover {
    border-color: var(--muted);
}

.variant-chip:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 2px;
}

/* the colour being shown: a 2px ring, padding trimmed so nothing shifts */
.variant-chip[aria-current="page"] {
    border: 2px solid var(--link);
    padding: calc(0.4rem - 1px) calc(0.6rem - 1px);
}

/* the swatch's blue ring (game-table.css) keeps a black dot visible in the chip */
.variant-chip .swatch {
    width: 0.9rem;
    height: 0.9rem;
    flex-shrink: 0;
}

/* themes ("Mario Time") have no colour dot: a small picture instead */
.variant-chip-img {
    width: 1.75rem;
    height: 1.75rem;
    object-fit: contain;
    border-radius: 4px;
    background: #fff;
    flex-shrink: 0;
}

.variant-chip-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.25;
}

.variant-chip-name {
    font-size: var(--text-small);
    overflow-wrap: anywhere;
}

.variant-chip-price {
    font-size: var(--text-meta);
    color: var(--muted);
}

.variant-chip.sold-out .variant-chip-name {
    color: var(--muted);
}

.platform-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
}

.platform-list .badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: var(--text-label);
    font-weight: 500;
    background: var(--link-bg);
    border: 1px solid var(--link-border);
    color: var(--link);
}
