@import url("gamevault-unified-black.css");
@import url("gamevault-white-accents.css");
/* =========================
   GAMEVAULT - GLOBAL DESIGN
   ========================= */

:root {
    --background: #0b0d13;
    --surface: #151923;
    --surface-hover: #1c2230;
    --border: #2a3040;
    --text: #f1f3f9;
    --muted: #929aaf;
    --accent: #ffffff;
    --accent-hover: #e5e7eb;
    --green: #35d5a0;
    --blue: #60a5fa;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: "Segoe UI", Arial, sans-serif;
    line-height: 1.5;
    color-scheme: dark;
}

button, input, select, textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1200px, calc(100% - 40px));
    margin: auto;
}

.accent {
    color: var(--accent);
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--accent-hover);
    letter-spacing: 2px;
    font-size: 12px;
    font-weight: 800;
}

/* HEADER */

.site-header {
    background: rgba(14, 17, 25, 0.96);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 20;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 82px;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 23px;
    font-weight: 900;
    letter-spacing: 1px;
}

.logo-icon {
    display: grid;
    place-items: center;
    width: 43px;
    height: 43px;
    background: var(--accent);
    color: white;
    border-radius: 11px;
    font-size: 15px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.version-label {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
}

/* BUTTONS */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 19px;
    border-radius: 9px;
    border: 1px solid transparent;
    font-weight: 700;
    transition: 0.2s ease;
}

.button-primary {
    background: var(--accent);
    color: white;
}

.button-primary:hover {
    background: var(--accent-hover);
}

.button-secondary {
    background: var(--surface);
    border-color: var(--border);
    color: var(--text);
}

.button-secondary:hover {
    background: var(--surface-hover);
}

/* HERO */

.hero {
    position: relative;
    overflow: hidden;
    margin-top: 35px;
    min-height: 310px;
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 18px;
    background:
        radial-gradient(ellipse at 90% 20%, #ffffff14, transparent 55%),
        linear-gradient(125deg, #1a1f2a, #10141e 65%);
}

.hero-content {
    position: relative;
    max-width: 700px;
    padding: 45px;
}

.hero h1 {
    font-size: clamp(32px, 5vw, 53px);
    line-height: 1.15;
    letter-spacing: -1.5px;
    margin: 0 0 16px;
}

.hero-description {
    color: #b0b7c8;
    font-size: 16px;
    max-width: 490px;
    margin-bottom: 26px;
}

/* STATISTICS */

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin: 25px 0 60px;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 13px;
    padding: 25px;
}

.stat-label {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}

.stat-number {
    display: block;
    margin-top: 10px;
    font-size: 36px;
    line-height: 1.2;
}

/* COLLECTION */

.collection {
    padding-bottom: 100px;
    scroll-margin-top: 115px;
}

.section-heading {
    margin-bottom: 24px;
}

.section-heading h2 {
    font-size: 29px;
    margin: 0;
}

.toolbar {
    display: flex;
    gap: 14px;
    margin-bottom: 25px;
}

.toolbar input {
    flex: 1;
    min-width: 0;
}

input, select, textarea {
    padding: 13px 15px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 9px;
    color: var(--text);
    outline: none;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--accent);
}

.toolbar select {
    min-width: 190px;
}

/* GAME CARDS */

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(205px, 1fr));
    gap: 22px;
}

.game-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 13px;
    overflow: hidden;
    transition: transform 0.2s, border-color 0.2s;
}

.game-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

.game-cover {
    position: relative;
    aspect-ratio: 2 / 3;
    display: grid;
    place-items: center;
    background:
        linear-gradient(145deg, #29313d, #151827 75%);
    overflow: hidden;
}

.cover-placeholder {
    font-size: 55px;
    font-weight: 900;
    color: #ffffff33;
}

.game-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-info {
    padding: 17px;
}

.game-title {
    font-size: 17px;
    margin: 0 0 6px;
    overflow-wrap: anywhere;
}

.game-genre {
    color: var(--muted);
    font-size: 13px;
    margin: 0 0 14px;
}

.status-badge {
    display: inline-block;
    border-radius: 6px;
    padding: 5px 9px;
    font-size: 11px;
    font-weight: 800;
}

.status-playing {
    background: #173552;
    color: var(--blue);
}

.status-completed {
    background: #123b31;
    color: var(--green);
}

.status-backlog {
    background: #29313d;
    color: #e5e7eb;
}

.game-notes {
    margin: 14px 0;
    color: var(--muted);
    font-size: 13px;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.remove-button {
    display: block;
    margin-top: 15px;
    padding: 8px 0;
    border: none;
    background: transparent;
    color: #e88b95;
    font-size: 12px;
}

.remove-button:hover {
    color: #ffb4bc;
    text-decoration: underline;
}

/* EMPTY COLLECTION */

.empty-state {
    text-align: center;
    border: 1px dashed var(--border);
    border-radius: 15px;
    padding: 75px 20px;
    background: #11151e;
}

.empty-icon {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    background: #242b36;
    color: var(--accent-hover);
    border-radius: 18px;
    font-size: 25px;
    font-weight: 900;
}

.empty-state h3 {
    margin: 0 0 8px;
    font-size: 22px;
}

.empty-state p {
    color: var(--muted);
}

[hidden] {
    display: none !important;
}

/* ADD GAME DIALOG */

.game-dialog {
    width: min(520px, calc(100% - 30px));
    max-height: 90vh;
    overflow-y: auto;
    padding: 28px;
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 16px;
}

.game-dialog::backdrop {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
}

.dialog-header h2 {
    margin: 0;
}

.close-button {
    background: none;
    color: var(--muted);
    border: none;
    font-size: 30px;
    line-height: 1;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
}

.form-field label {
    font-size: 13px;
    font-weight: 700;
}

.form-field textarea {
    resize: vertical;
}

.dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 27px;
}

/* FOOTER */

.site-footer {
    border-top: 1px solid var(--border);
    padding: 30px 0;
    color: var(--muted);
    font-size: 11px;
    text-align: center;
    letter-spacing: 1px;
}

/* MOBILE */

@media (max-width: 650px) {
    .header-content {
        min-height: 72px;
    }

    .logo {
        font-size: 18px;
    }

    .version-label {
        display: none;
    }

    .hero-content {
        padding: 30px 24px;
    }

    .stats {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 45px;
    }

    .stat-card {
        padding: 18px;
    }

    .toolbar {
        flex-direction: column;
    }

    .toolbar select {
        width: 100%;
    }

    .game-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .game-info {
        padding: 12px;
    }
}

@media (max-width: 380px) {
    .game-grid {
        grid-template-columns: 1fr;
    }

    .header-actions .button {
        padding: 10px;
        font-size: 12px;
    }
}

/* ===================================
   GAMEVAULT VERSION 0.2
   GAME DETAILS PAGE
   =================================== */

/* VIEW DETAILS BUTTON */

.details-link {
    display: block;
    margin-top: 16px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-hover);
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    transition: 0.2s;
}

.details-link:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

/* DETAILS PAGE */

.details-page {
    min-height: 75vh;
    padding-top: 35px;
    padding-bottom: 90px;
}

.back-link {
    display: inline-block;
    margin-bottom: 30px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.back-link:hover {
    color: var(--accent-hover);
}

/* GAME HEADER */

.details-hero {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 35px;
    padding: 30px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
}

.details-cover {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 2 / 3;
    width: 100%;
    overflow: hidden;
    border-radius: 11px;
    background: linear-gradient(145deg, #29313d, #151827);
}

.details-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.details-cover-fallback {
    color: #ffffff33;
    font-size: 70px;
    font-weight: 900;
}

.details-intro h1 {
    margin: 0 0 12px;
    font-size: clamp(30px, 5vw, 50px);
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.details-subtitle {
    color: var(--muted);
    margin-bottom: 22px;
    font-size: 16px;
}

/* INFORMATION AND EXPERIENCE */

.details-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

.details-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 28px;
}

.details-panel h2 {
    margin: 0 0 24px;
    font-size: 22px;
}

.information-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.information-row span {
    color: var(--muted);
}

.information-row strong {
    text-align: right;
    overflow-wrap: anywhere;
}

.details-panel .form-field {
    margin-top: 20px;
}

.panel-description {
    color: var(--muted);
    margin-top: -10px;
    margin-bottom: 20px;
    font-size: 14px;
}

.details-panel textarea,
.details-panel select {
    width: 100%;
}

.save-message {
    margin: 14px 0 0;
    font-size: 13px;
    font-weight: 700;
}

/* GALLERY SECTION */

.gallery-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.gallery-heading h2 {
    margin-bottom: 20px;
}

.gallery-counter {
    color: var(--muted);
    font-size: 13px;
}

.gallery-placeholder {
    padding: 60px 20px;
    border: 1px dashed var(--border);
    border-radius: 12px;
    background: #10141d;
    text-align: center;
}

.gallery-placeholder-icon {
    display: block;
    margin-bottom: 15px;
    color: var(--accent);
    font-size: 45px;
}

.gallery-placeholder h3 {
    margin: 0 0 8px;
}

.gallery-placeholder p {
    color: var(--muted);
    margin: 0;
    font-size: 14px;
}

/* RESPONSIVE DETAILS PAGE */

@media (max-width: 750px) {
    .details-hero {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .details-cover {
        max-width: 240px;
    }

    .details-columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 450px) {
    .details-hero,
    .details-panel {
        padding: 20px;
    }

    .gallery-heading {
        align-items: flex-start;
    }

    .details-intro h1 {
        font-size: 30px;
    }
}


/* =========================================
   GAMEVAULT VERSION 0.6
   EDITABLE TITLE AND GENRE
   ========================================= */

#titleEditor,
#genreEditor {
    flex: 1;
    width: 65%;
    min-width: 0;

    padding: 11px 14px;

    background: #0e121b;
    color: #ffffff;

    border: 1px solid #3a4154;
    border-radius: 8px;

    font-size: 14px;

    pointer-events: auto;
    user-select: text;

    transition: border-color 0.2s ease;
}

#titleEditor:focus,
#genreEditor:focus {
    outline: 2px solid #ffffff;
    border-color: #ffffff;
}

#titleEditor::placeholder,
#genreEditor::placeholder {
    color: #697287;
}

@media (max-width: 600px) {
    #titleEditor,
    #genreEditor {
        width: 100%;
        font-size: 14px;
    }
}


/* ==========================================
   GAMEVAULT VERSION 0.7
   CLICKABLE GAME COVERS
   ========================================== */

/* COVER LINK */

.game-card > .cover-link {
    display: block;

    width: 100%;

    margin: 0;
    padding: 0;

    background: transparent;

    border: none;
    border-radius: 0;

    text-decoration: none;

    overflow: hidden;

    cursor: pointer;
}

/* REMOVE OLD BUTTON HOVER STYLING */

.game-card > .cover-link:hover {
    background: transparent;
    border-color: transparent;
}

/* COVER HOVER EFFECT */

.cover-link .game-cover {
    cursor: pointer;

    transition:
        filter 0.25s ease,
        transform 0.25s ease;
}

.cover-link:hover .game-cover {
    filter: brightness(1.12);
}

/* KEYBOARD ACCESSIBILITY */

.cover-link:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: -3px;
}

/* COVER IMAGE */

.cover-link .game-image {
    pointer-events: none;
}

/* COVER PLACEHOLDER */

.cover-link .cover-placeholder {
    pointer-events: none;
}


/* ==========================================
   GAMEVAULT VERSION 0.8
   SCREENSHOT GALLERY
   ========================================== */

/* UPLOAD AREA */

.gallery-upload-area {
    padding: 20px;
    margin-bottom: 25px;

    background: var(--surface);
    border: 1px dashed var(--border);
    border-radius: 12px;
}

.gallery-upload-area label {
    display: block;
    margin-bottom: 12px;

    font-size: 14px;
    font-weight: 700;
}

.gallery-upload-area input {
    display: block;
    width: 100%;
    max-width: 100%;
}

.gallery-help {
    margin: 12px 0 0;

    color: var(--muted);
    font-size: 12px;
}

.gallery-status {
    margin: 12px 0 0;
    font-size: 13px;
    font-weight: 700;
}

.gallery-status:empty {
    display: none;
}

/* SCREENSHOT GRID */

.gallery-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fill, minmax(170px, 1fr));

    gap: 17px;
}

/* SCREENSHOT ITEM */

.gallery-item {
    min-width: 0;
    overflow: hidden;

    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 11px;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease;
}

.gallery-item:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
}

/* THUMBNAIL */

.gallery-thumbnail-button {
    display: block;

    width: 100%;
    padding: 0;

    background: #0a0c12;
    border: none;

    cursor: pointer;
    overflow: hidden;
}

.gallery-thumbnail-button img {
    display: block;

    width: 100%;
    aspect-ratio: 16 / 9;

    object-fit: cover;

    transition: transform 0.25s ease;
}

.gallery-thumbnail-button:hover img {
    transform: scale(1.05);
}

.gallery-thumbnail-button:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: -3px;
}

/* REMOVE SCREENSHOT */

.gallery-remove-button {
    display: block;

    width: 100%;
    padding: 10px;

    background: transparent;
    color: #e88b95;

    border: none;
    border-top: 1px solid var(--border);

    font-size: 12px;
    font-weight: 700;

    cursor: pointer;
}

.gallery-remove-button:hover {
    background: rgba(220, 50, 70, 0.1);
    color: #ffb4bc;
}

/* EMPTY GALLERY */

.gallery-empty {
    padding: 55px 20px;

    text-align: center;

    background: var(--surface);
    border: 1px dashed var(--border);
    border-radius: 12px;
}

.gallery-empty-icon {
    margin-bottom: 12px;

    color: var(--accent);
    font-size: 46px;
}

.gallery-empty h3 {
    margin: 0 0 8px;
}

.gallery-empty p {
    margin: 0;
    color: var(--muted);
}

/* ==========================================
   FULLSCREEN IMAGE VIEWER
   ========================================== */

.gallery-lightbox {
    box-sizing: border-box;

    width: min(1200px, 96vw);
    height: min(850px, 92vh);

    max-width: none;
    max-height: none;

    padding: 15px;

    background: #080a10;
    color: #ffffff;

    border: 1px solid #343949;
    border-radius: 14px;

    overflow: hidden;
}

.gallery-lightbox::backdrop {
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(5px);
}

/* VIEWER TOP BAR */

.gallery-viewer-top {
    display: flex;

    justify-content: space-between;
    align-items: center;

    height: 45px;
    padding: 0 10px;

    color: #c1c7d5;
    font-size: 14px;
    font-weight: 700;
}

/* CLOSE BUTTON */

.gallery-close-button {
    display: grid;
    place-items: center;

    width: 38px;
    height: 38px;

    background: transparent;
    color: #ffffff;

    border: none;
    border-radius: 7px;

    font-size: 30px;
    cursor: pointer;
}

.gallery-close-button:hover {
    background: #242938;
}

/* MAIN IMAGE VIEWER */

.gallery-viewer-body {
    display: grid;

    grid-template-columns: 48px minmax(0, 1fr) 48px;

    align-items: center;
    justify-items: center;

    gap: 10px;

    height: calc(100% - 45px);
    min-height: 0;
}

/* ENLARGED SCREENSHOT */

.gallery-viewer-body img {
    display: block;

    max-width: 100%;
    max-height: 100%;

    width: auto;
    height: auto;

    min-width: 0;
    min-height: 0;

    object-fit: contain;
}

/* PREVIOUS / NEXT BUTTONS */

.gallery-nav-button {
    display: grid;
    place-items: center;

    width: 45px;
    height: 65px;

    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;

    border: 1px solid #363b4a;
    border-radius: 8px;

    font-size: 39px;
    cursor: pointer;
}

.gallery-nav-button:hover {
    background: var(--accent);
}

/* RESPONSIVE GALLERY */

@media (max-width: 650px) {

    .gallery-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 10px;
    }

    .gallery-lightbox {
        width: 98vw;
        height: 94vh;

        padding: 8px;
    }

    .gallery-viewer-body {
        grid-template-columns: 32px minmax(0, 1fr) 32px;
        gap: 5px;
    }

    .gallery-nav-button {
        width: 32px;
        height: 55px;

        font-size: 28px;
    }
}

@media (max-width: 380px) {

    .gallery-grid {
        grid-template-columns: 1fr;
    }
}


/* ==========================================
   GAMEVAULT VERSION 0.9
   AUTOMATIC SCREENSHOT SLIDESHOW
   ========================================== */

/* MAIN SLIDESHOW FRAME */

.gallery-slideshow-frame {
    position: relative;

    width: 100%;
    overflow: hidden;

    background: #090c13;

    border: 1px solid var(--border);
    border-radius: 13px;
}

/* OVERRIDE ORIGINAL THUMBNAIL GRID */

.gallery-slideshow-frame .gallery-grid {
    display: block !important;

    width: 100%;

    grid-template-columns: none !important;
    gap: 0 !important;
}

/* HIDE ALL SCREENSHOTS BY DEFAULT */

.gallery-slideshow-frame .gallery-item {
    display: none !important;

    width: 100%;

    margin: 0;
    padding: 0;

    background: transparent;

    border: none;
    border-radius: 0;

    overflow: hidden;

    transform: none !important;
}

/* SHOW ONLY ACTIVE SCREENSHOT */

.gallery-slideshow-frame
.gallery-item.gallery-slide-active {
    display: block !important;
}

/* LARGE IMAGE BUTTON */

.gallery-slideshow-frame .gallery-thumbnail-button {
    display: block;

    width: 100%;

    padding: 0;
    margin: 0;

    background: #090c13;

    border: none;
    border-radius: 0;

    cursor: zoom-in;
}

/* LARGE SCREENSHOT */

.gallery-slideshow-frame .gallery-thumbnail-button img {
    display: block;

    width: 100%;

    height: clamp(300px, 50vw, 640px);
    max-height: 75vh;

    aspect-ratio: auto !important;

    object-fit: contain;

    background: #090c13;

    transform: none !important;

    transition: none !important;
}

/* REMOVE OLD IMAGE HOVER ZOOM */

.gallery-slideshow-frame
.gallery-thumbnail-button:hover img {
    transform: none !important;
}

/* HIDE ALL RED REMOVE BUTTONS */

.gallery-remove-button {
    display: none !important;
}

/* ==========================================
   LEFT / RIGHT ARROWS
   ========================================== */

.gallery-slide-arrow {
    position: absolute;

    top: 50%;
    transform: translateY(-50%);

    z-index: 5;

    display: grid;
    place-items: center;

    width: 48px;
    height: 60px;

    background: rgba(0, 0, 0, 0.58);
    color: #ffffff;

    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 9px;

    font-size: 38px;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}

.gallery-slide-arrow:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.gallery-slide-arrow:disabled {
    opacity: 0.35;
    cursor: default;
}

.gallery-slide-previous {
    left: 15px;
}

.gallery-slide-next {
    right: 15px;
}

/* ==========================================
   PLAYBACK CONTROLS
   ========================================== */

.gallery-slideshow-controls {
    margin-top: 12px;

    padding: 14px 18px;

    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: 11px;
}

.gallery-slideshow-toolbar {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 15px;

    margin-bottom: 12px;
}

/* PLAY / PAUSE BUTTON */

.gallery-play-button {
    padding: 9px 17px;

    background: var(--surface-hover);
    color: var(--text);

    border: 1px solid var(--border);
    border-radius: 8px;

    font-size: 13px;
    font-weight: 700;

    cursor: pointer;

    transition: 0.2s ease;
}

.gallery-play-button:hover {
    background: var(--accent);
    color: #ffffff;
}

.gallery-play-button:disabled {
    opacity: 0.5;
    cursor: default;
}

/* CURRENT IMAGE COUNTER */

.gallery-slide-counter {
    color: var(--text);

    font-size: 14px;
    font-weight: 800;

    font-variant-numeric: tabular-nums;
}

/* DURATION LABEL */

.gallery-slide-duration {
    color: var(--muted);

    font-size: 12px;
}

/* ==========================================
   10-SECOND PROGRESS BAR
   ========================================== */

.gallery-progress-track {
    width: 100%;
    height: 5px;

    background: var(--border);

    border-radius: 10px;
    overflow: hidden;
}

.gallery-progress-bar {
    width: 0%;
    height: 100%;

    background: var(--accent);

    border-radius: inherit;
}

/* ==========================================
   MOBILE RESPONSIVENESS
   ========================================== */

@media (max-width: 650px) {

    .gallery-slideshow-frame
    .gallery-thumbnail-button img {
        height: 55vw;
        min-height: 200px;
        max-height: 400px;
    }

    .gallery-slide-arrow {
        width: 34px;
        height: 48px;

        font-size: 29px;
    }

    .gallery-slide-previous {
        left: 6px;
    }

    .gallery-slide-next {
        right: 6px;
    }

    .gallery-slideshow-controls {
        padding: 12px;
    }

    .gallery-slide-duration {
        display: none;
    }
}


/* ==========================================
   GAMEVAULT VERSION 1.0
   GALLERY FADE TRANSITIONS
   ========================================== */

/* HIDE UPLOAD AREA WHEN FULL */

.gallery-upload-area[hidden] {
    display: none !important;
}

/* ==========================================
   SLIDESHOW CONTAINER
   ========================================== */

.gallery-slideshow-frame .gallery-grid {
    position: relative;

    display: block !important;

    width: 100%;
    height: clamp(300px, 50vw, 640px);

    max-height: 75vh;

    overflow: hidden;

    background: #090c13;
}

/* ==========================================
   STACK SCREENSHOTS ON TOP OF EACH OTHER
   ========================================== */

.gallery-slideshow-frame
.gallery-grid
.gallery-item {

    display: block !important;

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    margin: 0;
    padding: 0;

    border: none;
    border-radius: 0;

    background: transparent;

    /* INVISIBLE BY DEFAULT */
    opacity: 0;
    visibility: hidden;

    pointer-events: none;

    /* SMOOTH FADE OUT */
    transition:
        opacity 0.85s ease-in-out,
        visibility 0s linear 0.85s;

    transform: none !important;
}

/* ==========================================
   ACTIVE SCREENSHOT
   ========================================== */

.gallery-slideshow-frame
.gallery-grid
.gallery-item.gallery-slide-active {

    display: block !important;

    opacity: 1;
    visibility: visible;

    pointer-events: auto;

    z-index: 1;

    /* SMOOTH FADE IN */
    transition:
        opacity 0.85s ease-in-out;
}

/* ==========================================
   IMAGE CONTAINER
   ========================================== */

.gallery-slideshow-frame
.gallery-thumbnail-button {

    display: block;

    width: 100%;
    height: 100%;

    margin: 0;
    padding: 0;

    background: #090c13;

    border: none;

    overflow: hidden;
}

/* ==========================================
   SCREENSHOT IMAGE
   ========================================== */

.gallery-slideshow-frame
.gallery-thumbnail-button img {

    display: block;

    width: 100%;
    height: 100% !important;

    max-height: 100% !important;

    aspect-ratio: auto !important;

    object-fit: contain;

    background: #090c13;

    transform: none !important;

    transition: none !important;
}

/* ==========================================
   REMOVE OLD HOVER ANIMATION
   ========================================== */

.gallery-slideshow-frame
.gallery-thumbnail-button:hover img {

    transform: none !important;
}

/* ==========================================
   KEEP RED REMOVE BUTTONS HIDDEN
   ========================================== */

.gallery-remove-button {
    display: none !important;
}

/* ==========================================
   PLAYBACK CONTROLS
   ========================================== */

.gallery-slideshow-toolbar {
    display: grid;

    grid-template-columns: 1fr 1fr 1fr;

    align-items: center;

    gap: 10px;
}

.gallery-play-button {
    justify-self: start;
}

.gallery-slide-counter {
    grid-column: 2;

    justify-self: center;

    font-variant-numeric: tabular-nums;
}

/* ==========================================
   MOBILE
   ========================================== */

@media (max-width: 650px) {

    .gallery-slideshow-frame .gallery-grid {

        height: clamp(200px, 55vw, 400px);

        max-height: 400px;
    }
}

/* ==========================================
   ACCESSIBILITY
   ========================================== */

@media (prefers-reduced-motion: reduce) {

    .gallery-slideshow-frame
    .gallery-grid
    .gallery-item {

        transition: none !important;
    }
}

/* ==========================================
   GAMEVAULT VERSION 1.1
   GAME DESCRIPTION
   ========================================== */

.game-description-panel {
    margin-bottom: 25px;
}

.game-description-panel textarea {
    display: block;

    width: 100%;
    min-height: 180px;

    padding: 15px;

    background: var(--background);
    color: var(--text);

    border: 1px solid var(--border);
    border-radius: 9px;

    resize: vertical;

    font-size: 14px;
    line-height: 1.7;
}

.game-description-panel textarea:focus {
    outline: 2px solid var(--accent);
    border-color: var(--accent);
}

.description-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 15px;
    margin-top: 20px;
}

#descriptionStatus {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
}


/* ==========================================
   GAMEVAULT VERSION 1.1
   BACKUP & RESTORE
   ========================================== */

.backup-panel {
    margin: 10px 0 70px;
    padding: 30px;

    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: 14px;
}

.backup-panel h2 {
    margin: 0 0 10px;
    font-size: 24px;
}

.backup-panel > p {
    color: var(--muted);
    font-size: 14px;
}

.backup-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 12px;
    margin-top: 23px;
}

.backup-actions .button {
    font-size: 13px;
    cursor: pointer;
}

.backup-actions button:disabled {
    opacity: 0.5;
    cursor: wait;
}

.backup-status {
    min-height: 20px;
    margin-top: 18px;

    font-size: 13px;
    line-height: 1.6;
}

@media (max-width: 600px) {

    .backup-panel {
        padding: 20px;
    }

    .backup-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .backup-actions .button {
        width: 100%;
        text-align: center;
    }
}


/* ==========================================
   GAMEVAULT VERSION 1.2
   COMPACT GAME DESCRIPTION
   ========================================== */

/* COMPACT DESCRIPTION CONTAINER */

.compact-description {
    margin-top: 22px;

    max-width: 520px;

    padding: 15px 17px;

    background: var(--background);

    border: 1px solid var(--border);
    border-radius: 10px;
}

/* DESCRIPTION HEADER */

.compact-description-header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 15px;

    margin-bottom: 10px;
}

/* DESCRIPTION TITLE */

.compact-description-header h3 {
    margin: 0;

    color: var(--text);

    font-size: 14px;
    font-weight: 800;
}

/* SMALL EDIT BUTTON */

.compact-description-edit {
    padding: 5px 9px;

    background: transparent;
    color: var(--accent-hover);

    border: 1px solid var(--border);
    border-radius: 6px;

    font-size: 11px;
    font-weight: 700;

    cursor: pointer;

    transition: 0.2s ease;
}

.compact-description-edit:hover {
    background: var(--accent);
    color: #ffffff;

    border-color: var(--accent);
}

/* COMPACT DESCRIPTION TEXT */

#compactDescriptionText {
    margin: 0;

    color: var(--muted);

    font-size: 13px;
    line-height: 1.6;

    white-space: pre-wrap;

    overflow-wrap: anywhere;

    /* MAXIMUM 4 VISIBLE LINES */
    display: -webkit-box;

    line-clamp: 4;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;

    overflow: hidden;
}

/* SAVED NOTIFICATION */

#compactDescriptionStatus {
    display: block;

    margin-top: 7px;

    font-size: 11px;
    font-weight: 700;
}

#compactDescriptionStatus:empty {
    display: none;
}

/* ==========================================
   HIDE EDITOR WHEN NOT EDITING
   ========================================== */

.game-description-panel[hidden] {
    display: none !important;
}

/* ==========================================
   HIDE COVER UPLOAD AFTER SAVING
   ========================================== */

.form-field[hidden] {
    display: none !important;
}

/* ==========================================
   MOBILE
   ========================================== */

@media (max-width: 650px) {

    .compact-description {
        max-width: 100%;

        padding: 13px;
    }

    #compactDescriptionText {
        font-size: 12px;
    }
}


/* ==========================================
   GAMEVAULT VERSION 1.3
   SEAMLESS GAME DESCRIPTION
   ========================================== */

/* REMOVE SEPARATE DESCRIPTION BOX */

.details-intro .compact-description {
    width: 100%;
    max-width: 600px;

    margin-top: 25px;
    padding: 0;

    background: transparent;

    border: none;
    border-radius: 0;

    box-shadow: none;
}

/* DESCRIPTION HEADER */

.details-intro .compact-description-header {
    margin-bottom: 10px;
}

/* DESCRIPTION TITLE */

.details-intro .compact-description-header h3 {
    margin: 0;

    color: var(--text);

    font-size: 14px;
    font-weight: 800;
}

/* DESCRIPTION TEXT */

.details-intro #compactDescriptionText {
    margin: 0;
    padding: 0;

    background: transparent;

    color: var(--muted);

    font-size: 13px;
    line-height: 1.7;

    border: none;
    box-shadow: none;
}

/* KEEP EDIT BUTTON SMALL */

.details-intro .compact-description-edit {
    padding: 5px 9px;

    background: transparent;

    font-size: 11px;
    font-weight: 700;
}

/* MOBILE */

@media (max-width: 650px) {
    .details-intro .compact-description {
        max-width: 100%;
        margin-top: 20px;
    }
}

/* ==========================================
   GAMEVAULT VERSION 1.4
   OFFICIAL STORE LINKS
   ========================================== */

/* MAIN SECTION */

.store-links-panel {
    margin-bottom: 25px;
}

/* HEADING */

.store-links-heading {
    display: flex;

    align-items: center;
    justify-content: space-between;

    flex-wrap: wrap;

    gap: 15px;

    margin-bottom: 22px;
}

.store-links-heading h2 {
    margin: 0;
}

.store-links-heading .button {
    font-size: 12px;
    padding: 8px 13px;
}

/* STORE BUTTON CONTAINER */

.store-link-buttons {
    display: flex;

    flex-wrap: wrap;

    gap: 12px;
}

/* INDIVIDUAL STORE BUTTON */

.store-link-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 11px;

    min-height: 48px;

    padding: 11px 17px;

    background: var(--surface-hover);
    color: var(--text);

    border: 1px solid var(--border);
    border-radius: 9px;

    font-size: 13px;
    font-weight: 700;

    text-decoration: none;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.store-link-button:hover {
    background: var(--surface-hover);

    border-color: var(--accent);

    transform: translateY(-2px);
}

.store-link-button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

/* STORE ICON */

.store-icon {
    display: grid;
    place-items: center;

    width: 24px;
    height: 24px;

    flex-shrink: 0;
}

/* STORE LOGOS */

.store-brand-icon {
    display: block;

    width: 21px;
    height: 21px;

    object-fit: contain;

    /* BLACK SVG TO WHITE FOR DARK MODE */
    filter: invert(1);
}

/* LIGHT MODE COMPATIBILITY */

body.light-theme .store-brand-icon,
body[data-theme="light"] .store-brand-icon {
    filter: none;
}

/* FALLBACK ICON */

.store-icon-fallback {
    color: var(--text);

    font-size: 17px;
    font-weight: 900;
}

.store-icon-fallback[hidden] {
    display: none !important;
}

/* EMPTY MESSAGE */

.store-links-empty {
    margin: 0;

    color: var(--muted);

    font-size: 13px;
}

/* EDITOR */

.store-links-help {
    margin: 0 0 18px;

    color: var(--muted);

    font-size: 13px;
}

.store-link-fields {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(230px, 1fr));

    gap: 15px;
}

.store-link-fields .form-field {
    margin: 0;
}

.store-link-fields input {
    width: 100%;
    min-width: 0;
}

/* EDITOR ACTIONS */

.store-editor-actions {
    display: flex;

    flex-wrap: wrap;

    gap: 12px;

    margin-top: 25px;
}

/* STATUS MESSAGE */

.store-links-message {
    margin: 15px 0 0;

    font-size: 13px;
    font-weight: 700;
}

.store-links-message:empty {
    display: none;
}

/* HIDDEN EDITOR */

#storeLinksForm[hidden],
#storeLinkButtons[hidden] {
    display: none !important;
}

/* MOBILE */

@media (max-width: 650px) {

    .store-link-buttons {
        gap: 9px;
    }

    .store-link-button {
        padding: 10px 12px;
        font-size: 12px;
    }

    .store-link-fields {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   GAMEVAULT VERSION 1.5
   PLAYING STATUS BUTTONS
========================================= */

/* Hide the old status badge above My Experience */

#detailStatus {
    display: none !important;
}

/* Hide the old status dropdown */

.form-field[hidden],
.form-group[hidden] {
    display: none !important;
}

/* Status section */

.status-selector {
    grid-column: 1 / -1;
    width: 100%;
    margin-bottom: 22px;
}

.status-selector-title {
    color: var(--text, #f1f1f7);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
}

/* 3 columns, 2 rows */

.status-buttons-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
}

/* Individual buttons */

.status-choice {
    width: 100%;
    min-height: 54px;

    padding: 14px 12px;

    background: #191f2b;
    color: #e7e9f2;

    border: 1px solid #343c4e;
    border-radius: 9px;

    font-family: inherit;
    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

/* Hover */

.status-choice:hover {
    background: #252c3c;
    border-color: #e5e7eb;
    transform: translateY(-2px);
}

/* Selected button */

.status-choice.is-selected {
    color: #ffffff;
    border-width: 2px;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.15);
}

/* PLAYING */

.status-choice.is-selected[data-status="playing"] {
    background: #286a9d;
    border-color: #5ea9de;
}

/* COMPLETED */

.status-choice.is-selected[data-status="completed"] {
    background: #126744;
    border-color: #35d5a0;
}

/* ON HOLD */

.status-choice.is-selected[data-status="onhold"] {
    background: #87601f;
    border-color: #e7ad4d;
}

/* DROPPED */

.status-choice.is-selected[data-status="dropped"] {
    background: #873441;
    border-color: #ed7c91;
}

/* WISHLISTED */

.status-choice.is-selected[data-status="wishlisted"] {
    background: #4b5362;
    border-color: #e5e7eb;
}

/* BACKLOG */

.status-choice.is-selected[data-status="backlog"] {
    background: #4c5366;
    border-color: #8b95a9;
}

/* Save confirmation */

.status-choice-message {
    min-height: 16px;
    margin: 10px 0 0;
    font-size: 12px;
}

/* Additional homepage status colors */

.status-badge.status-onhold {
    background: #5b451a;
    color: #f2c36e;
}

.status-badge.status-dropped {
    background: #53232d;
    color: #f19cac;
}

.status-badge.status-wishlisted {
    background: #2c3340;
    color: #e5e7eb;
}

.status-badge.status-backlog {
    background: #29313d;
    color: #e5e7eb;
}

/* Small screens */

@media (max-width: 540px) {
    .status-buttons-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .status-choice {
        font-size: 12px;
        min-height: 48px;
        padding: 10px 6px;
    }
}
/* =========================================
   GAMEVAULT VERSION 1.6
   FIVE-STAR GAME RATING SYSTEM
========================================= */

/* Rating section */

.gv-rating-section {
    grid-column: 1 / -1;

    width: 100%;

    margin-bottom: 24px;
}

/* Heading */

.gv-rating-heading {
    display: flex;

    justify-content: space-between;
    align-items: center;

    gap: 15px;

    margin-bottom: 12px;

    font-size: 14px;
    font-weight: 700;

    color: var(--text, #f1f1f7);
}

/* Current rating number */

.gv-rating-value {
    font-size: 13px;
    font-weight: 600;

    color: #aab6ca;
}

/* Controls */

.gv-rating-controls {
    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 18px;
}

/* Five-star container */

.gv-rating-stars {
    display: flex;

    align-items: center;

    gap: 0;

    width: max-content;

    user-select: none;

    touch-action: manipulation;
}

/* Individual star buttons */

.gv-rating-star {
    position: relative;

    width: 46px;
    height: 48px;

    flex: 0 0 46px;

    padding: 0;

    border: none;

    background: transparent;

    cursor: pointer;

    overflow: hidden;

    font-family: Arial, sans-serif;

    font-size: 43px;
    line-height: 48px;

    text-align: left;

    transition: transform 0.15s ease;
}

/* Hover effect */

.gv-rating-star:hover {
    transform: scale(1.08);
}

/* Focus for keyboard navigation */

.gv-rating-star:focus-visible {
    outline: 2px solid #ffffff;

    outline-offset: 2px;

    border-radius: 6px;
}

/* Star layers */

.gv-rating-star-base,
.gv-rating-star-fill {
    position: absolute;

    top: 0;
    left: 0;

    display: block;

    height: 48px;

    white-space: nowrap;

    pointer-events: none;
}

/* Empty part of each star */

.gv-rating-star-base {
    width: 100%;

    color: #465064;
}

/* Filled part of each star */

.gv-rating-star-fill {
    width: 0;

    overflow: hidden;

    color: #ffc857;

    transition: width 0.08s linear;
}

/* Clear Rating button */

.gv-rating-clear {
    padding: 8px 12px;

    background: transparent;

    border: 1px solid #343c4e;
    border-radius: 7px;

    color: #9eacc5;

    font-family: inherit;
    font-size: 12px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.gv-rating-clear:hover {
    background: #252c3c;

    border-color: #e5e7eb;

    color: #ffffff;
}

/* Save confirmation */

.gv-rating-message {
    min-height: 15px;

    margin: 8px 0 0;

    font-size: 12px;
}

/* Responsive adjustments */

@media (max-width: 540px) {

    .gv-rating-star {
        width: 40px;
        height: 44px;

        flex-basis: 40px;

        font-size: 38px;
        line-height: 44px;
    }

    .gv-rating-star-base,
    .gv-rating-star-fill {
        height: 44px;
    }

    .gv-rating-controls {
        gap: 12px;
    }
}

/* =========================================
   GAMEVAULT VERSION 1.6.1
   WHITE STARS + PERFECT HALF-STAR ALIGNMENT
========================================= */

/* Star dimensions */

.gv-rating-star {
    --gv-star-size: 36px;
    --gv-star-x: 5px;
    --gv-star-y: 6px;
}

/* Hide original text-based stars */

.gv-rating-star-base,
.gv-rating-star-fill {
    color: transparent !important;
    font-size: 0 !important;
    line-height: 0 !important;
    text-shadow: none !important;
}

/* Empty star */

.gv-rating-star-base {
    position: absolute !important;

    left: var(--gv-star-x) !important;
    top: var(--gv-star-y) !important;

    width: var(--gv-star-size) !important;
    height: var(--gv-star-size) !important;

    background: #465064 !important;

    clip-path: polygon(
        50% 0%,
        61% 35%,
        98% 35%,
        68% 57%,
        79% 93%,
        50% 71%,
        21% 93%,
        32% 57%,
        2% 35%,
        39% 35%
    );
}

/* Filled-star clipping container */

.gv-rating-star-fill {
    position: absolute !important;

    left: 0 !important;
    top: 0 !important;

    height: 100% !important;

    background: transparent !important;

    overflow: hidden !important;

    clip-path: none !important;

    transition: width 0.08s linear;
}

/* White star inside the clipping container */

.gv-rating-star-fill::before {
    content: "";

    display: block;

    position: absolute;

    left: var(--gv-star-x);
    top: var(--gv-star-y);

    width: var(--gv-star-size);
    height: var(--gv-star-size);

    background: #ffffff;

    clip-path: polygon(
        50% 0%,
        61% 35%,
        98% 35%,
        68% 57%,
        79% 93%,
        50% 71%,
        21% 93%,
        32% 57%,
        2% 35%,
        39% 35%
    );
}

/* Smaller screens */

@media (max-width: 540px) {

    .gv-rating-star {
        --gv-star-size: 32px;
        --gv-star-x: 4px;
        --gv-star-y: 6px;
    }

}

/* =========================================
   GAMEVAULT VERSION 1.7
   GAME INFORMATION REDESIGN
========================================= */

/* Ensure hidden old fields stay hidden */

[hidden] {
    display: none !important;
}

/* New information layout */

.gv-info-readonly-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    column-gap: 35px;
    row-gap: 24px;

    grid-column: 1 / -1;

    width: 100%;

    margin-top: 20px;
}

/* Individual information fields */

.gv-info-readonly-field {
    min-width: 0;

    padding: 0;

    margin: 0;

    background: transparent;

    border: none;
}

/* Developer position */

.gv-info-developer {
    grid-column: 1;
    grid-row: 1;
}

/* Publisher position */

.gv-info-publisher {
    grid-column: 2;
    grid-row: 1;
}

/* Release Date under Developer */

.gv-info-release {
    grid-column: 1;
    grid-row: 2;
}

/* Information labels */

.gv-info-readonly-label {
    margin-bottom: 7px;

    color: #93a0b8;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 0.5px;

    text-transform: uppercase;
}

/* Information values */

.gv-info-readonly-value {
    color: var(--text, #f1f1f7);

    font-size: 15px;
    font-weight: 500;

    line-height: 1.5;

    overflow-wrap: anywhere;
}

/* Responsive layout */

@media (max-width: 540px) {

    .gv-info-readonly-grid {
        column-gap: 16px;
        row-gap: 20px;
    }

    .gv-info-readonly-value {
        font-size: 13px;
    }

}

/* =========================================
   GAMEVAULT VERSION 1.8.1
   RATING POSITION FIX
========================================= */

/* Allow rating to align with the card edges */

.game-card {
    position: relative !important;
}

/* Position rating on the far-right side */

.game-card .gv-card-rating {
    position: absolute !important;

    right: 19px !important;
    bottom: 22px !important;

    left: auto !important;
    top: auto !important;

    margin: 0 !important;
    padding: 0 !important;

    background: transparent !important;

    border: none !important;
    border-radius: 0 !important;

    box-shadow: none !important;

    transform: none !important;

    display: inline-flex !important;

    align-items: center;
    justify-content: center;

    gap: 4px;

    color: #ffffff !important;

    font-size: 13px;
    font-weight: 800;

    white-space: nowrap;

    z-index: 5;
}

/* Rating number */

.game-card .gv-card-rating-number {
    color: #ffffff !important;

    font-size: 13px;
    font-weight: 800;
}

/* White star */

.game-card .gv-card-rating-star {
    color: #ffffff !important;

    font-size: 16px;

    line-height: 1;
}

/* Continue hiding unrated games */

.game-card .gv-card-rating--hidden {
    display: none !important;
}

/* =========================================
   GAMEVAULT VERSION 1.9
   GAMING PLATFORMS
========================================= */

/* Platforms under Publisher */

.gv-info-platforms {
    grid-column: 2;
    grid-row: 2;
}

/* Heading and Edit button */

.gv-platform-heading {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 10px;

    margin-bottom: 9px;
}

/* Remove default label margin */

.gv-platform-heading .gv-info-readonly-label {
    margin-bottom: 0;
}

/* Edit button */

.gv-platform-edit {
    padding: 3px 7px;

    background: transparent;

    border: 1px solid transparent;
    border-radius: 5px;

    color: #e5e7eb;

    font-family: inherit;
    font-size: 12px;
    font-weight: 600;

    cursor: pointer;
}

.gv-platform-edit:hover {
    background: rgba(255, 255, 255, 0.12);

    border-color: rgba(255, 255, 255, 0.3);
}

/* Platform labels container */

.gv-platform-list {
    display: flex;

    flex-wrap: wrap;

    align-items: center;

    gap: 7px;

    min-height: 30px;
}

/* Individual platform labels */

.gv-platform-chip {
    display: inline-flex;

    align-items: center;

    padding: 6px 10px;

    background: rgba(255, 255, 255, 0.13);

    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 7px;

    color: var(--text, #f1f1f7);

    font-size: 12px;
    font-weight: 600;

    line-height: 1.3;

    white-space: nowrap;
}

/* Empty platform value */

.gv-platform-empty {
    color: #8290a7;

    font-size: 13px;
}

/* Editor */

.gv-platform-editor {
    width: 100%;
}

/* Input */

.gv-platform-input {
    box-sizing: border-box;

    width: 100%;

    padding: 11px 12px;

    background: var(--surface, #111722);

    border: 1px solid #343c4e;
    border-radius: 8px;

    color: var(--text, #ffffff);

    font-family: inherit;
    font-size: 13px;

    outline: none;
}

.gv-platform-input:focus {
    border-color: #e5e7eb;
}

/* Instructions */

.gv-platform-hint {
    margin: 7px 0 12px;

    color: #93a0b8;

    font-size: 11px;
    line-height: 1.5;
}

/* Save and Cancel buttons */

.gv-platform-actions {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;
}

/* Save */

.gv-platform-save {
    padding: 8px 15px;

    background: #ffffff;

    border: none;
    border-radius: 7px;

    color: #ffffff;

    font-family: inherit;
    font-size: 12px;
    font-weight: 700;

    cursor: pointer;
}

.gv-platform-save:hover {
    background: #e5e7eb;
}

/* Cancel */

.gv-platform-cancel {
    padding: 8px 15px;

    background: transparent;

    border: 1px solid #343c4e;
    border-radius: 7px;

    color: var(--text, #f1f1f7);

    font-family: inherit;
    font-size: 12px;

    cursor: pointer;
}

.gv-platform-cancel:hover {
    background: rgba(140, 150, 175, 0.12);
}

/* Save confirmation */

.gv-platform-message {
    min-height: 14px;

    margin: 7px 0 0;

    font-size: 11px;
}

/* Hidden elements */

.gv-platform-editor[hidden],
.gv-platform-list[hidden],
.gv-platform-edit[hidden] {
    display: none !important;
}

/* Mobile adjustments */

@media (max-width: 540px) {

    .gv-platform-chip {
        padding: 5px 7px;

        font-size: 11px;
    }

    .gv-platform-input {
        font-size: 12px;
    }
}

/* =========================================
   GAMEVAULT VERSION 2.0
   GAME INFORMATION + WHERE TO BUY
========================================= */

/* Horizontal divider between sections */

.gv-info-store-divider {
    display: block;

    grid-column: 1 / -1;

    width: 100%;
    height: 0;

    margin: 26px 0 24px;

    padding: 0;

    border: none;
    border-top: 1px solid #303849;

    box-sizing: border-box;
}

/* Remove separate case appearance */

.gv-store-inside-info {
    grid-column: 1 / -1 !important;

    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;

    background: transparent !important;

    border: none !important;
    border-radius: 0 !important;

    box-shadow: none !important;

    min-width: 0;
}

/* Ensure the nested panel has no extra background */

.details-panel .gv-store-inside-info {
    background: transparent !important;

    border: none !important;

    box-shadow: none !important;
}

/* Where to Buy heading */

.gv-store-inside-info .store-links-heading {
    display: flex;

    align-items: center;
    justify-content: space-between;

    flex-wrap: wrap;

    gap: 12px;

    margin-bottom: 17px;
}

/* Where to Buy title */

.gv-store-inside-info .store-links-heading h2 {
    margin: 0 !important;

    padding: 0 !important;

    color: var(--text, #f1f1f7);

    font-size: 20px !important;
    font-weight: 700;

    line-height: 1.4;
}

/* Store buttons */

.gv-store-inside-info .store-link-buttons {
    display: flex;

    flex-wrap: wrap;

    align-items: center;

    gap: 12px;

    width: 100%;
}

/* Store editor spacing */

.gv-store-inside-info .store-link-fields {
    margin-top: 14px;
}

/* Store editor actions */

.gv-store-inside-info .store-editor-actions {
    margin-top: 15px;
}

/* Mobile layout */

@media (max-width: 540px) {

    .gv-info-store-divider {
        margin: 22px 0 20px;
    }

    .gv-store-inside-info .store-links-heading h2 {
        font-size: 18px !important;
    }

    .gv-store-inside-info .store-link-buttons {
        gap: 9px;
    }
}

/* =========================================
   GAMEVAULT VERSION 2.1
   GAME ENGINE
========================================= */

/* Position under Release Date */

.gv-info-engine {
    grid-column: 1;
    grid-row: 3;
}

/* Heading and Edit button */

.gv-engine-header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 10px;

    margin-bottom: 7px;
}

/* Heading label */

.gv-engine-header .gv-info-readonly-label {
    margin-bottom: 0;
}

/* Edit button */

.gv-engine-edit {
    padding: 3px 7px;

    background: transparent;

    border: 1px solid transparent;
    border-radius: 5px;

    color: #e5e7eb;

    font-family: inherit;
    font-size: 12px;
    font-weight: 600;

    cursor: pointer;
}

.gv-engine-edit:hover {
    background: rgba(255, 255, 255, 0.12);

    border-color: rgba(255, 255, 255, 0.3);
}

/* Engine display */

.gv-engine-value {
    margin: 0;

    color: var(--text, #f1f1f7);

    font-size: 15px;
    font-weight: 500;

    line-height: 1.5;
}

/* Empty value */

.gv-engine-empty {
    color: #8290a7;
}

/* Editor */

.gv-engine-editor {
    width: 100%;
}

/* Text input */

.gv-engine-input {
    box-sizing: border-box;

    width: 100%;

    padding: 11px 12px;

    background: var(--surface, #111722);

    border: 1px solid #343c4e;
    border-radius: 8px;

    color: var(--text, #ffffff);

    font-family: inherit;
    font-size: 13px;

    outline: none;
}

.gv-engine-input:focus {
    border-color: #e5e7eb;
}

/* Save and Cancel buttons */

.gv-engine-actions {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin-top: 10px;
}

/* Save */

.gv-engine-save {
    padding: 8px 15px;

    background: #ffffff;

    border: none;
    border-radius: 7px;

    color: #ffffff;

    font-family: inherit;
    font-size: 12px;
    font-weight: 700;

    cursor: pointer;
}

.gv-engine-save:hover {
    background: #e5e7eb;
}

/* Cancel */

.gv-engine-cancel {
    padding: 8px 15px;

    background: transparent;

    border: 1px solid #343c4e;
    border-radius: 7px;

    color: var(--text, #f1f1f7);

    font-family: inherit;
    font-size: 12px;

    cursor: pointer;
}

.gv-engine-cancel:hover {
    background: rgba(140, 150, 175, 0.12);
}

/* Save confirmation */

.gv-engine-message {
    min-height: 14px;

    margin: 7px 0 0;

    font-size: 11px;
}

/* Hidden editor elements */

.gv-engine-editor[hidden],
.gv-engine-value[hidden],
.gv-engine-edit[hidden] {
    display: none !important;
}

/* Mobile */

@media (max-width: 540px) {

    .gv-engine-value {
        font-size: 13px;
    }

    .gv-engine-input {
        font-size: 12px;
    }
}

/* =========================================
   GAMEVAULT VERSION 2.1.1
   GAME ENGINE SPACING FIX
========================================= */

/* Align Game Engine directly below Release Date */

.gv-info-readonly-grid > .gv-info-engine {
    grid-column: 1 !important;

    grid-row: 2 !important;

    align-self: start !important;

    margin-top: 72px !important;
}
/* =========================================
   GAMEVAULT VERSION 2.2
   PLAYTIME
========================================= */

/* Position next to Game Engine */

.gv-info-readonly-grid > .gv-info-playtime {
    grid-column: 2 !important;

    grid-row: 2 !important;

    align-self: start !important;

    margin-top: 72px !important;
}

/* Header */

.gv-playtime-header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 10px;

    margin-bottom: 7px;
}

/* Label */

.gv-playtime-header .gv-info-readonly-label {
    margin-bottom: 0;
}

/* Edit button */

.gv-playtime-edit {
    padding: 3px 7px;

    background: transparent;

    border: 1px solid transparent;
    border-radius: 5px;

    color: #e5e7eb;

    font-family: inherit;
    font-size: 12px;
    font-weight: 600;

    cursor: pointer;
}

.gv-playtime-edit:hover {
    background: rgba(255, 255, 255, 0.12);

    border-color: rgba(255, 255, 255, 0.3);
}

/* Displayed playtime */

.gv-playtime-value {
    margin: 0;

    color: var(--text, #f1f1f7);

    font-size: 15px;
    font-weight: 500;

    line-height: 1.5;
}

/* Empty playtime */

.gv-playtime-empty {
    color: #8290a7;
}

/* Editor */

.gv-playtime-editor {
    width: 100%;
}

/* Hours and Minutes inputs */

.gv-playtime-inputs {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 8px;
}

/* Individual input group */

.gv-playtime-number-field {
    display: flex;

    flex-direction: column;

    gap: 6px;

    min-width: 0;

    color: #93a0b8;

    font-size: 11px;
}

/* Number inputs */

.gv-playtime-input {
    box-sizing: border-box;

    width: 100%;
    min-width: 0;

    padding: 10px 8px;

    background: var(--surface, #111722);

    border: 1px solid #343c4e;
    border-radius: 7px;

    color: var(--text, #ffffff);

    font-family: inherit;
    font-size: 13px;

    outline: none;
}

.gv-playtime-input:focus {
    border-color: #e5e7eb;
}

/* Action buttons */

.gv-playtime-actions {
    display: flex;

    flex-wrap: wrap;

    gap: 7px;

    margin-top: 11px;
}

/* Shared button styling */

.gv-playtime-save,
.gv-playtime-cancel,
.gv-playtime-clear {
    padding: 8px 12px;

    border-radius: 7px;

    font-family: inherit;
    font-size: 12px;
    font-weight: 600;

    cursor: pointer;
}

/* Save */

.gv-playtime-save {
    background: #ffffff;

    border: none;

    color: #ffffff;
}

.gv-playtime-save:hover {
    background: #e5e7eb;
}

/* Cancel */

.gv-playtime-cancel {
    background: transparent;

    border: 1px solid #343c4e;

    color: var(--text, #f1f1f7);
}

/* Clear */

.gv-playtime-clear {
    background: transparent;

    border: 1px solid #6b3741;

    color: #ed929f;
}

/* Confirmation */

.gv-playtime-message {
    min-height: 14px;

    margin: 7px 0 0;

    font-size: 11px;
}

/* Hidden elements */

.gv-playtime-editor[hidden],
.gv-playtime-value[hidden],
.gv-playtime-edit[hidden] {
    display: none !important;
}

/* Mobile */

@media (max-width: 540px) {

    .gv-playtime-value {
        font-size: 13px;
    }

    .gv-playtime-input {
        font-size: 12px;
    }
}
/* =========================================
   GAMEVAULT VERSION 2.3
   GAME SERIES + CLICKABLE INFORMATION
========================================= */

/* Game Series directly below Game Engine */

.gv-info-readonly-grid > .gv-info-series {
    grid-column: 1 !important;

    grid-row: 2 !important;

    align-self: start !important;

    margin-top: 144px !important;
}

/* Clickable Developer, Publisher and Series */

.gv-info-related-link {
    color: #e5e7eb !important;

    text-decoration: underline;

    text-decoration-color: rgba(255, 255, 255, 0.35);

    text-underline-offset: 3px;

    cursor: pointer;

    transition:
        color 0.2s ease,
        text-decoration-color 0.2s ease;
}

.gv-info-related-link:hover {
    color: #f1f3f6 !important;

    text-decoration-color: #f1f3f6;
}

/* Game Series heading */

.gv-series-header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 10px;

    margin-bottom: 7px;
}

.gv-series-header .gv-info-readonly-label {
    margin-bottom: 0;
}

/* Edit button */

.gv-series-edit {
    padding: 3px 7px;

    background: transparent;

    border: 1px solid transparent;
    border-radius: 5px;

    color: #e5e7eb;

    font-family: inherit;
    font-size: 12px;
    font-weight: 600;

    cursor: pointer;
}

.gv-series-edit:hover {
    background: rgba(255, 255, 255, 0.12);

    border-color: rgba(255, 255, 255, 0.3);
}

/* Empty series value */

.gv-series-empty {
    color: #8290a7;
}

/* Editor */

.gv-series-editor {
    width: 100%;
}

/* Text input */

.gv-series-input {
    box-sizing: border-box;

    width: 100%;

    padding: 11px 12px;

    background: var(--surface, #111722);

    border: 1px solid #343c4e;
    border-radius: 8px;

    color: var(--text, #ffffff);

    font-family: inherit;
    font-size: 13px;

    outline: none;
}

.gv-series-input:focus {
    border-color: #e5e7eb;
}

/* Editor action buttons */

.gv-series-actions {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin-top: 10px;
}

/* Save */

.gv-series-save {
    padding: 8px 15px;

    background: #ffffff;

    border: none;
    border-radius: 7px;

    color: #ffffff;

    font-family: inherit;
    font-size: 12px;
    font-weight: 700;

    cursor: pointer;
}

.gv-series-save:hover {
    background: #e5e7eb;
}

/* Cancel */

.gv-series-cancel {
    padding: 8px 15px;

    background: transparent;

    border: 1px solid #343c4e;
    border-radius: 7px;

    color: var(--text, #f1f1f7);

    font-family: inherit;
    font-size: 12px;

    cursor: pointer;
}

/* Save confirmation */

.gv-series-message {
    min-height: 14px;

    margin: 7px 0 0;

    font-size: 11px;
}

/* Hidden editor elements */

.gv-series-editor[hidden],
.gv-series-value[hidden],
.gv-series-edit[hidden] {
    display: none !important;
}

/* =========================================
   HOMEPAGE RELATED-GAMES FILTER
========================================= */

/* Filter information banner */

.gv-related-filter-banner {
    grid-column: 1 / -1;

    display: flex;

    align-items: center;
    justify-content: space-between;

    flex-wrap: wrap;

    gap: 15px;

    width: 100%;

    margin: 0 0 22px;

    padding: 16px 20px;

    box-sizing: border-box;

    background: #171d29;

    border: 1px solid #343c4e;
    border-radius: 10px;
}

/* Banner heading */

.gv-related-filter-heading {
    display: flex;

    flex-direction: column;

    gap: 5px;
}

.gv-related-filter-heading strong {
    color: var(--text, #f1f1f7);

    font-size: 15px;
}

.gv-related-filter-heading span {
    color: #93a0b8;

    font-size: 12px;
}

/* Show All Games button */

.gv-related-clear {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 9px 14px;

    background: #ffffff;

    border-radius: 7px;

    color: #ffffff !important;

    font-size: 12px;
    font-weight: 700;

    text-decoration: none;
}

.gv-related-clear:hover {
    background: #e5e7eb;
}

/* Hide games outside selected category */

.game-card.gv-related-hidden {
    display: none !important;
}

/* Mobile adjustments */

@media (max-width: 540px) {

    .gv-related-filter-banner {
        padding: 13px;
    }

    .gv-related-filter-heading strong {
        font-size: 13px;
    }

    .gv-series-input {
        font-size: 12px;
    }
}
/* =========================================
   GAMEVAULT VERSION 2.4
   TECHNICAL DETAILS
========================================= */

/* =========================================
   REORGANIZE MAIN GAME INFORMATION GRID
========================================= */

/* Release Date stays on the left */

.gv-info-readonly-grid > .gv-info-release {
    grid-column: 1 !important;

    grid-row: 2 !important;
}

/* Playtime moves beside Release Date */

.gv-info-readonly-grid > .gv-info-playtime {
    grid-column: 2 !important;

    grid-row: 2 !important;

    align-self: start !important;

    margin-top: 0 !important;
}

/* Game Series moves below Release Date */

.gv-info-readonly-grid > .gv-info-series {
    grid-column: 1 !important;

    grid-row: 3 !important;

    align-self: start !important;

    margin-top: 0 !important;
}

/* =========================================
   TECHNICAL DETAILS DIVIDER
========================================= */

.gv-technical-divider {
    display: block;

    grid-column: 1 / -1;

    width: 100%;
    height: 0;

    margin: 26px 0 24px;

    padding: 0;

    border: none;
    border-top: 1px solid #303849;

    box-sizing: border-box;
}

/* =========================================
   TECHNICAL DETAILS CONTAINER
========================================= */

.gv-technical-section {
    grid-column: 1 / -1;

    width: 100%;

    margin: 0;
    padding: 0;

    background: transparent;

    border: none;

    box-shadow: none;
}

/* Heading */

.gv-technical-heading {
    margin: 0 0 20px;

    padding: 0;

    color: var(--text, #f1f1f7);

    font-size: 20px;
    font-weight: 700;

    line-height: 1.4;
}

/* =========================================
   TECHNICAL DETAILS GRID
========================================= */

.gv-technical-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    column-gap: 35px;
    row-gap: 20px;

    width: 100%;
}

/* Game Engine on the left */

.gv-technical-grid > .gv-info-engine {
    grid-column: 1 !important;

    grid-row: 1 !important;

    align-self: start !important;

    margin: 0 !important;

    padding: 0 !important;
}

/* Platforms on the right */

.gv-technical-grid > .gv-info-platforms {
    grid-column: 2 !important;

    grid-row: 1 !important;

    align-self: start !important;

    margin: 0 !important;

    padding: 0 !important;
}

/* Technical Details values */

.gv-technical-grid .gv-info-readonly-value {
    color: var(--text, #f1f1f7);

    font-size: 15px;

    line-height: 1.5;
}

/* Mobile */

@media (max-width: 540px) {

    .gv-technical-grid {
        column-gap: 16px;
    }

    .gv-technical-heading {
        font-size: 18px;
    }

    .gv-technical-grid .gv-info-readonly-value {
        font-size: 13px;
    }
}
/* =========================================
   GAMEVAULT VERSION 2.4.1
   GAME SERIES + WHERE TO BUY SPACING
========================================= */

/* Game Series aligned under Release Date */

.gv-info-readonly-grid > .gv-info-series {
    grid-column: 1 !important;

    grid-row: 2 !important;

    align-self: start !important;

    margin-top: 72px !important;
}

/* Keep Playtime beside Release Date */

.gv-info-readonly-grid > .gv-info-playtime {
    grid-column: 2 !important;

    grid-row: 2 !important;

    align-self: start !important;

    margin-top: 0 !important;
}

/* Remove unused space from empty save messages */

.gv-series-message:empty,
.gv-playtime-message:empty {
    display: none !important;

    min-height: 0 !important;

    margin: 0 !important;

    padding: 0 !important;
}

/* Bring Where to Buy closer to Game Information */

.gv-info-store-divider {
    margin-top: 12px !important;

    margin-bottom: 17px !important;
}

/* Remove extra spacing above Where to Buy */

.gv-store-inside-info .store-links-heading {
    margin-top: 0 !important;
}

/* =========================================
   GAMEVAULT VERSION 2.4.2
   SECTION SPACING ADJUSTMENTS
========================================= */

/* More space between Game Series and
   the Where to Buy divider */

.gv-info-store-divider {
    margin-top: 28px !important;

    margin-bottom: 18px !important;
}

/* More space between Store Links and
   the Technical Details divider */

.gv-technical-divider {
    margin-top: 46px !important;

    margin-bottom: 24px !important;
}
/* =========================================
   GAMEVAULT VERSION 2.5
   WHITE FAVORITE HEART
========================================= */

/* Heart button */

.gv-favorite-button {
    position: absolute !important;

    top: 18px;
    right: 20px;

    z-index: 30;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;

    margin: 0;
    padding: 10px;

    background: transparent;

    border: none;
    border-radius: 50%;

    color: #ffffff;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

/* Heart icon */

.gv-favorite-button svg {
    display: block;

    width: 28px;
    height: 28px;

    fill: transparent;

    stroke: #ffffff;
    stroke-width: 1.8;

    stroke-linecap: round;
    stroke-linejoin: round;

    transition:
        fill 0.2s ease,
        stroke 0.2s ease,
        transform 0.2s ease;
}

/* Hover */

.gv-favorite-button:hover {
    background: rgba(255, 255, 255, 0.08);

    transform: scale(1.08);
}

/* Favorite selected */

.gv-favorite-button.is-favorite svg {
    fill: #ffffff;

    stroke: #ffffff;
}

/* Keyboard accessibility */

.gv-favorite-button:focus-visible {
    outline: 2px solid #ffffff;

    outline-offset: 3px;
}

/* Hidden accessibility message */

.gv-favorite-screenreader {
    position: absolute;

    width: 1px;
    height: 1px;

    padding: 0;
    margin: -1px;

    overflow: hidden;

    clip-path: inset(50%);

    white-space: nowrap;
}

/* Mobile */

@media (max-width: 540px) {

    .gv-favorite-button {
        top: 12px;
        right: 12px;

        width: 40px;
        height: 40px;

        padding: 8px;
    }

    .gv-favorite-button svg {
        width: 24px;
        height: 24px;
    }
}
/* =========================================
   GAMEVAULT VERSION 2.6
   ACHIEVEMENTS SYSTEM
========================================= */

/* Achievements case */

.gv-achievements-panel {
    grid-column: 1 / -1;

    width: 100%;
}

/* Header */

.gv-achievements-header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    flex-wrap: wrap;

    gap: 15px;

    margin-bottom: 22px;
}

/* Title */

.gv-achievements-header h2 {
    margin: 0;

    color: var(--text, #f1f1f7);

    font-size: 22px;
    font-weight: 700;
}

/* Header actions */

.gv-achievements-header-actions {
    display: flex;

    align-items: center;

    gap: 15px;
}

/* Achievement count */

.gv-achievements-count {
    color: #93a0b8;

    font-size: 12px;
}

/* Add Achievement button */

.gv-achievement-add {
    cursor: pointer;
}

/* =========================================
   ACHIEVEMENTS GRID
========================================= */

.gv-achievements-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fill, minmax(135px, 1fr));

    gap: 20px;

    width: 100%;
}

/* Individual achievement */

.gv-achievement-card {
    min-width: 0;

    background: transparent;

    border: none;
}

/* Achievement picture container */

.gv-achievement-picture {
    position: relative;

    display: block;

    width: 100%;

    aspect-ratio: 1 / 1;

    margin: 0;
    padding: 0;

    overflow: hidden;

    background: #101621;

    border: 1px solid #343c4e;
    border-radius: 10px;

    cursor: help;

    transition:
        border-color 0.2s ease,
        transform 0.2s ease;
}

/* Picture */

.gv-achievement-picture img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;

    pointer-events: none;
}

/* Hover effect */

.gv-achievement-picture:hover {
    border-color: #e5e7eb;

    transform: translateY(-2px);
}

/* =========================================
   HIDDEN ACHIEVEMENT DESCRIPTION
========================================= */

.gv-achievement-description {
    position: absolute;

    inset: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    box-sizing: border-box;

    width: 100%;
    height: 100%;

    padding: 12px;

    overflow-y: auto;

    background: rgba(8, 12, 20, 0.94);

    color: #ffffff;

    font-family: inherit;
    font-size: 12px;
    font-weight: 500;

    line-height: 1.5;

    text-align: center;

    overflow-wrap: anywhere;

    opacity: 0;
    visibility: hidden;

    pointer-events: none;

    transition:
        opacity 0.2s ease,
        visibility 0.2s ease;
}

/* Reveal description ONLY when interacting */

.gv-achievement-picture:hover
.gv-achievement-description,

.gv-achievement-picture:focus-visible
.gv-achievement-description,

.gv-achievement-picture.is-open
.gv-achievement-description {
    opacity: 1;

    visibility: visible;

    pointer-events: auto;
}

/* Keyboard focus */

.gv-achievement-picture:focus-visible {
    outline: 2px solid #e5e7eb;

    outline-offset: 3px;
}

/* =========================================
   ACHIEVEMENT TITLE
========================================= */

.gv-achievement-name {
    margin-top: 9px;

    color: var(--text, #f1f1f7);

    font-size: 13px;
    font-weight: 700;

    line-height: 1.4;

    text-align: center;

    overflow-wrap: anywhere;
}

/* Empty state */

.gv-achievements-empty {
    grid-column: 1 / -1;

    margin: 0;

    color: #93a0b8;

    font-size: 13px;
}

/* =========================================
   ADD ACHIEVEMENT FORM
========================================= */

.gv-achievement-form {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 15px;

    margin-bottom: 22px;

    padding: 18px;

    background: rgba(15, 20, 32, 0.35);

    border: 1px solid #343c4e;
    border-radius: 10px;
}

/* Hidden form */

.gv-achievement-form[hidden] {
    display: none !important;
}

/* Form fields */

.gv-achievement-form-field {
    display: flex;

    flex-direction: column;

    gap: 8px;

    min-width: 0;

    color: var(--text, #f1f1f7);

    font-size: 12px;
    font-weight: 600;
}

/* Description and picture use full width */

.gv-achievement-form-field:nth-child(2),
.gv-achievement-form-field:nth-child(3) {
    grid-column: 1 / -1;
}

/* Text inputs */

.gv-achievement-form input[type="text"],
.gv-achievement-form textarea {
    box-sizing: border-box;

    width: 100%;

    padding: 11px 12px;

    background: var(--surface, #111722);

    border: 1px solid #343c4e;
    border-radius: 8px;

    color: var(--text, #ffffff);

    font-family: inherit;
    font-size: 13px;

    outline: none;
}

/* Description input */

.gv-achievement-form textarea {
    min-height: 90px;

    resize: vertical;
}

/* Focus */

.gv-achievement-form input:focus,
.gv-achievement-form textarea:focus {
    border-color: #e5e7eb;
}

/* Image upload */

.gv-achievement-form input[type="file"] {
    box-sizing: border-box;

    width: 100%;

    padding: 10px;

    background: var(--surface, #111722);

    border: 1px solid #343c4e;
    border-radius: 8px;

    color: var(--text, #f1f1f7);

    font-size: 12px;
}

/* Save and Cancel buttons */

.gv-achievement-form-actions {
    grid-column: 1 / -1;

    display: flex;

    flex-wrap: wrap;

    gap: 10px;
}

/* Save message */

.gv-achievements-message {
    margin: 0 0 12px;

    font-size: 12px;
}

.gv-achievements-message:empty {
    display: none;
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 540px) {

    .gv-achievements-header h2 {
        font-size: 19px;
    }

    .gv-achievements-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 13px;
    }

    .gv-achievement-description {
        font-size: 11px;

        padding: 8px;
    }

    .gv-achievement-name {
        font-size: 12px;
    }

    .gv-achievement-form {
        grid-template-columns: 1fr;
    }

    .gv-achievement-form-field {
        grid-column: 1 / -1;
    }
}

/* =========================================
   GAMEVAULT VERSION 2.6.1
   ACHIEVEMENT SIZE AND SPACING
========================================= */

/* =========================================
   SPACE BETWEEN ACHIEVEMENTS AND GALLERY
========================================= */

.gv-achievements-panel {
    margin-bottom: 22px !important;

    overflow: visible !important;
}

/* =========================================
   ACHIEVEMENT GRID
========================================= */

/* Allow smaller achievements to fit in rows */

.gv-achievements-grid {
    display: flex !important;

    flex-wrap: wrap !important;

    align-items: flex-start !important;

    justify-content: flex-start !important;

    gap: 16px !important;
}

/* Individual achievement card */

.gv-achievement-card {
    flex: 0 0 73px !important;

    width: 73px !important;
    max-width: 73px !important;

    min-width: 0 !important;
}

/* =========================================
   ACHIEVEMENT IMAGES - 50% SMALLER
========================================= */

.gv-achievement-picture {
    width: 73px !important;
    height: 73px !important;

    aspect-ratio: 1 / 1 !important;

    overflow: visible !important;

    border-radius: 9px !important;
}

/* Image */

.gv-achievement-picture img {
    width: 100% !important;
    height: 100% !important;

    object-fit: contain !important;

    border-radius: 9px;
}

/* =========================================
   ACHIEVEMENT TITLES
========================================= */

.gv-achievement-name {
    margin-top: 7px !important;

    font-size: 11px !important;

    font-weight: 700 !important;

    line-height: 1.3 !important;

    text-align: center !important;

    overflow-wrap: anywhere;
}

/* =========================================
   HOVER DESCRIPTION POPUP
========================================= */

/* Keep achievement above surrounding icons */

.gv-achievement-card:hover,
.gv-achievement-card:focus-within {
    position: relative;

    z-index: 30;
}

/* Description appears above the picture */

.gv-achievement-description {
    position: absolute !important;

    inset: auto !important;

    bottom: calc(100% + 8px) !important;
    left: 50% !important;

    transform: translateX(-50%) !important;

    box-sizing: border-box;

    width: 210px !important;
    height: auto !important;

    max-height: 170px !important;

    padding: 11px !important;

    overflow-y: auto !important;

    background: rgba(10, 14, 24, 0.97) !important;

    border: 1px solid #424b61 !important;
    border-radius: 9px !important;

    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);

    color: #ffffff !important;

    font-size: 12px !important;

    line-height: 1.5 !important;

    text-align: center;

    z-index: 40;
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 540px) {

    .gv-achievements-grid {
        gap: 13px !important;
    }

    .gv-achievement-card {
        flex-basis: 70px !important;

        width: 70px !important;
        max-width: 70px !important;
    }

    .gv-achievement-picture {
        width: 70px !important;
        height: 70px !important;
    }

    .gv-achievement-description {
        width: 180px !important;

        max-height: 150px !important;

        font-size: 11px !important;
    }
}
/* =========================================
   GAMEVAULT VERSION 2.6.2
   HIDE ACHIEVEMENT COUNTER
========================================= */

.gv-achievements-count {
    display: none !important;
}
/* =========================================
   GAMEVAULT VERSION 2.5.1
   FAVORITE HEART SCROLLING FIX
========================================= */

/* Keep navigation bar above page content */

.site-header {
    z-index: 10000 !important;

    background-color: #0d111b !important;

    isolation: isolate;
}

/* Keep the first game case in its own layer */

.details-intro {
    position: relative;

    z-index: 0 !important;

    isolation: isolate;
}

/* Keep heart above content inside its case,
   but below the main navigation bar */

.gv-favorite-button {
    z-index: 2 !important;
}

/* ========================================
   GAMEVAULT - GAME TRAILER
======================================== */

.gv-gallery-trailer {
    width: 100%;
    box-sizing: border-box;

    margin-bottom: 26px;
    padding-bottom: 26px;

    border-bottom: 1px solid #303849;
}

/* HEADER */

.gv-trailer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    flex-wrap: wrap;
    gap: 12px;

    margin-bottom: 14px;
}

.gv-trailer-header h3 {
    margin: 0;

    color: var(--text, #f1f1f7);

    font-size: 18px;
    font-weight: 700;
}

/* VIDEO PLAYER */

.gv-trailer-stage {
    position: relative;

    width: 100%;
    aspect-ratio: 16 / 9;

    background: #080c14;

    border: 1px solid #303849;
    border-radius: 11px;

    overflow: hidden;
}

.gv-trailer-frame {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    border: none;
}

/* PLACEHOLDER */

.gv-trailer-placeholder {
    position: absolute;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 16px;

    text-align: center;

    color: #94a0bb;
    font-size: 14px;

    background: linear-gradient(
        135deg,
        #090c13,
        #171d2b
    );
}

/* EDITOR */

.gv-trailer-editor {
    display: grid;
    gap: 10px;

    margin-bottom: 14px;
    padding: 16px;

    background: rgba(15, 20, 32, 0.35);

    border: 1px solid #343c4e;
    border-radius: 9px;
}

.gv-trailer-input {
    box-sizing: border-box;

    width: 100%;

    padding: 11px 12px;

    background: var(--surface, #111722);

    color: var(--text, #ffffff);

    border: 1px solid #343c4e;
    border-radius: 8px;

    font: inherit;
    font-size: 13px;
}

.gv-trailer-input:focus {
    outline: 1px solid #e5e7eb;
}

.gv-trailer-help {
    margin: 0;

    color: #93a0b8;

    font-size: 12px;
}

.gv-trailer-actions {
    display: flex;
    flex-wrap: wrap;

    gap: 8px;
}

/* MESSAGES */

.gv-trailer-message {
    margin: 0 0 10px;

    font-size: 12px;
}

.gv-trailer-message:empty {
    display: none;
}

/* HIDDEN ELEMENTS */

.gv-trailer-editor[hidden],
.gv-trailer-stage[hidden],
.gv-trailer-remove[hidden],
.gv-trailer-edit[hidden],
.gv-trailer-placeholder[hidden] {
    display: none !important;
}

/* MOBILE */

@media (max-width: 540px) {
    .gv-trailer-header h3 {
        font-size: 16px;
    }

    .gv-gallery-trailer {
        margin-bottom: 20px;
        padding-bottom: 20px;
    }
}

/* ========================================
   GAMEVAULT - STEAM-STYLE GALLERY
======================================== */

/* GALLERY HEADING */

.gv-gallery-heading-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 12px;
}

/* TRAILER UPLOAD BUTTON */

.gv-trailer-upload-button {
    padding: 8px 12px;
    font-size: 12px;
}

/* UPLOAD STATUS */

.gv-trailer-status {
    margin: 0 0 12px;
    color: #35d5a0;
    font-size: 12px;
}

.gv-trailer-status:empty,
.gv-gallery-heading-actions input[hidden] {
    display: none !important;
}

/* SLIDESHOW FRAME */

.gv-media-frame {
    position: relative;
    min-height: 220px;
    overflow: hidden;
}

/* TRAILER SLIDE */

.gv-trailer-slide {
    position: absolute;
    inset: 0;
    z-index: 3;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #080c14;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity 500ms ease,
        visibility 500ms ease;
}

/* ACTIVE TRAILER */

.gv-trailer-slide.gv-trailer-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* VIDEO */

.gv-trailer-video {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;

    background: #080c14;
}

/* KEEP NAVIGATION ABOVE THE VIDEO */

.gv-media-frame > .gallery-slide-arrow {
    position: absolute;
    z-index: 5;
}

/* HIDE EMPTY MESSAGE WHEN TRAILER EXISTS */

.gallery-panel.gv-has-trailer #galleryEmpty {
    display: none !important;
}

/* RESPONSIVE */

@media (max-width: 600px) {
    .gv-gallery-heading-actions {
        gap: 8px;
    }

    .gv-trailer-upload-button {
        padding: 7px 10px;
        font-size: 11px;
    }
}
/* ========================================
   GAMEVAULT - TRAILER SOUND BUTTON
======================================== */

.gv-trailer-sound-button {
    position: absolute;

    top: 14px;
    right: 14px;

    z-index: 7;

    padding: 10px 15px;

    background: rgba(10, 14, 25, 0.88);

    color: #ffffff;

    border: 1px solid #424a60;
    border-radius: 8px;

    font-size: 13px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}

.gv-trailer-sound-button:hover {
    background: #262d40;
    border-color: #e5e7eb;
}

@media (max-width: 600px) {
    .gv-trailer-sound-button {
        top: 8px;
        right: 8px;

        padding: 8px 10px;

        font-size: 11px;
    }
}

/* ==========================================
   GAMEVAULT — FULL WIDTH HEADER
   ========================================== */

/* Allow the header to use the entire screen width */

.site-header .header-content {
    max-width: none !important;
    width: 100% !important;

    padding-left: 25px !important;
    padding-right: 25px !important;

    margin-left: 0 !important;
    margin-right: 0 !important;

    box-sizing: border-box;
}

/* Keep the GameVault logo on the far left */

.site-header .logo {
    margin-left: 0 !important;
    flex-shrink: 0;
}

/* Keep account and administrator buttons on the right */

.site-header .header-actions {
    margin-left: auto;
}

.site-header .gv-users-actions {
    margin-left: auto;
}

/* Hide any remaining version labels */

.site-header .version-label {
    display: none !important;
}

/* Mobile adjustments */

@media (max-width: 600px) {

    .site-header .header-content {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

}

/* ==========================================
   GAMEVAULT — WHITE ACCENTS
   Keep dark text legible on light accent fills.
   ========================================== */

.logo-icon,
.button-primary,
.details-link:hover,
.gallery-nav-button:hover,
.gallery-slide-arrow:hover,
.gallery-play-button:hover,
.compact-description-edit:hover,
.gv-platform-save,
.gv-engine-save,
.gv-playtime-save,
.gv-series-save,
.gv-related-clear {
    color: #11151e !important;
}

/* ==========================================
   GAMEVAULT — HOMEPAGE HEADER SEARCH
   ========================================== */

.home-header-content .header-search {
    flex: 1 1 260px;
    width: 100%;
    max-width: 580px;
    min-width: 190px;
    margin-left: 12px;
}

.home-header-content #searchGames {
    display: block;
    width: 100%;
    min-width: 0;
    height: 44px;
    box-sizing: border-box;
}

.home-header-content .header-actions {
    flex: 0 1 auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.home-header-content .gv-users-actions {
    margin-left: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* On compact screens, keep the search on its own header row. */
@media (max-width: 1100px) {
    .site-header .home-header-content {
        flex-wrap: wrap;
        row-gap: 10px;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .home-header-content .header-search {
        order: 3;
        flex: 1 0 100%;
        width: 100%;
        max-width: none;
        min-width: 0;
        margin-left: 0;
    }
}

/* ==========================================
   GAMEVAULT — COVER-ONLY COLLECTION CARDS
   ========================================== */

/* Game titles, genres, notes and ratings remain on the details page. */
.game-card > .game-info,
.game-card .gv-card-rating {
    display: none !important;
}

/* Keep the playing-status label readable over the cover artwork. */
.game-card .game-cover > .status-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    z-index: 2;
    max-width: calc(100% - 24px);
    pointer-events: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

/* ==========================================
   GAMEVAULT — WIDE EIGHT-COVER COLLECTION
   Only the homepage archive widens; details and backups keep their layout.
   ========================================== */

#collection {
    position: relative;
    left: 50%;
    width: min(1640px, calc(100vw - 50px));
    max-width: none;
    transform: translateX(-50%);
}

#collection .game-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 18px;
}

@media (max-width: 1400px) {
    #collection .game-grid {
        grid-template-columns: repeat(7, minmax(0, 1fr));
    }
}

@media (max-width: 1200px) {
    #collection .game-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

@media (max-width: 1000px) {
    #collection .game-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (max-width: 800px) {
    #collection .game-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 14px;
    }
}

@media (max-width: 640px) {
    #collection .game-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }
}

@media (max-width: 450px) {
    #collection {
        width: calc(100vw - 30px);
    }

    #collection .game-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
/* ==========================================
   GAMEVAULT — ADMIN-ONLY GAME INFORMATION
   AND MEDIA DELETE CONTROLS
========================================== */

html:not(.gv-admin) .gv-admin-only {
    display: none !important;
}

.gv-info-metadata-open,
.gv-info-metadata-editor,
.gv-info-metadata-status {
    grid-column: 1 / -1;
}

.gv-info-metadata-open {
    width: fit-content;
    justify-self: start;
    margin-top: 6px;
}

.gv-info-metadata-editor {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    padding: 16px;
    border: 1px solid var(--border, #2a3040);
    border-radius: 10px;
    background: var(--surface, #151923);
}

.gv-info-metadata-editor[hidden],
.gv-info-metadata-open[hidden] {
    display: none !important;
}

.gv-info-metadata-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
    color: var(--text, #f1f3f9);
    font-size: 12px;
    font-weight: 700;
}

.gv-info-metadata-field input {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    padding: 11px 12px;
    background: var(--background, #0b0d13);
    border: 1px solid var(--border, #2a3040);
    border-radius: 8px;
    color: var(--text, #f1f3f9);
    font: inherit;
}

.gv-info-metadata-field input:focus {
    outline: 2px solid var(--accent, #ffffff);
    outline-offset: 1px;
}

.gv-info-metadata-actions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.gv-info-metadata-status {
    min-height: 16px;
    margin: 4px 0 0;
    font-size: 12px;
}

.gv-info-metadata-status:empty {
    display: none;
}

.gv-achievement-card {
    position: relative;
}

.gv-achievement-remove {
    position: absolute;
    z-index: 2;
    top: -7px;
    right: -7px;
    display: grid;
    place-items: center;
    width: 23px;
    height: 23px;
    padding: 0;
    border: 1px solid #505a6c;
    border-radius: 50%;
    background: #151923;
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
}

.gv-achievement-remove:hover,
.gv-achievement-remove:focus-visible {
    background: #48242c;
    border-color: #ff8c8c;
}

.gv-achievement-remove:disabled {
    opacity: 0.55;
    cursor: wait;
}

@media (max-width: 700px) {
    .gv-info-metadata-editor {
        grid-template-columns: 1fr;
    }
}
/* ==========================================
   GAMEVAULT — SCREENSHOT CORNER DELETE X
   Overrides old Remove-button hiding without altering slideshow CSS.
========================================== */

.gallery-item {
    position: relative;
}

.gallery-item > .gv-gallery-delete {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 50;
    display: grid !important;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    background: rgba(12, 15, 23, 0.85);
    color: #ffffff;
    font-family: inherit;
    font-size: 26px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.gallery-item > .gv-gallery-delete:hover,
.gallery-item > .gv-gallery-delete:focus-visible {
    background: #452029;
    border-color: #ffb2b2;
}

.gallery-item > .gv-gallery-delete:disabled {
    opacity: 0.55;
    cursor: wait;
}

html:not(.gv-admin) .gallery-item > .gv-gallery-delete {
    display: none !important;
}

/* ==========================================
   GAMEVAULT — INDIVIDUAL METADATA EDIT BUTTONS
========================================== */

.gv-info-metadata-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 7px;
}

.gv-info-metadata-header .gv-info-readonly-label {
    margin-bottom: 0;
}

.gv-info-metadata-edit {
    padding: 3px 7px;
    border: 1px solid transparent;
    border-radius: 5px;
    background: transparent;
    color: #e5e7eb;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    cursor: pointer;
}

.gv-info-metadata-edit:hover,
.gv-info-metadata-edit:focus-visible {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
}

.gv-info-metadata-inline {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
    min-width: 0;
}

.gv-info-metadata-inline[hidden],
.gv-info-metadata-edit[hidden] {
    display: none !important;
}

.gv-info-metadata-inline input {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    padding: 10px;
    border: 1px solid var(--border, #2a3040);
    border-radius: 8px;
    background: var(--background, #0b0d13);
    color: var(--text, #f1f3f9);
    font: inherit;
}

.gv-info-metadata-inline input:focus {
    outline: 2px solid var(--accent, #ffffff);
}

.gv-info-metadata-inline .gv-info-metadata-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.gv-info-metadata-inline .gv-info-metadata-actions .button {
    padding: 8px 10px;
    font-size: 12px;
}

.gv-info-readonly-field > .gv-info-metadata-status {
    grid-column: auto;
    margin: 6px 0 0;
    font-size: 11px;
    line-height: 1.4;
}

/* ==========================================
   GAMEVAULT — MULTIPLE DEVELOPERS / PUBLISHERS
   A comma converts each completed name into its own editable chip.
========================================== */

.gv-info-company-list {
    display: block;
    min-width: 0;
    line-height: 1.65;
    white-space: normal;
}

.gv-info-company-name {
    display: inline;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #e5e7eb;
    text-decoration: underline;
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
}

.gv-info-company-editor {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    padding: 7px;
    min-width: 0;
    border: 1px solid var(--border, #2a3040);
    border-radius: 8px;
    background: var(--background, #0b0d13);
}

.gv-info-company-editor:focus-within {
    border-color: #ffffff;
}

.gv-info-company-chips {
    display: contents;
}

.gv-info-company-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    padding: 4px 6px 4px 9px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 6px;
    background: #242a36;
    color: #ffffff;
    font-size: 12px;
    overflow-wrap: anywhere;
}

.gv-info-company-remove {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #ffffff;
    font: inherit;
    font-size: 17px;
    line-height: 1;
    cursor: pointer;
}

.gv-info-company-remove:hover,
.gv-info-company-remove:focus-visible {
    background: rgba(255, 255, 255, 0.2);
}

.gv-info-metadata-inline .gv-info-company-input {
    flex: 1 1 155px;
    width: auto;
    min-width: 110px;
    padding: 5px;
    border: 0;
    background: transparent;
    box-shadow: none;
    outline: none;
}

.gv-info-metadata-inline .gv-info-company-input:focus {
    outline: none;
}
/* ==========================================
   GAMEVAULT — FOOTER OWNER CREDIT
   ========================================== */

.site-footer .footer-owner {
    margin-top: 6px;
    margin-bottom: 0;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 1.5px;
    color: #7f8ba3;
    text-align: center;
}

/* SMALL TRADEMARK SYMBOL */

.footer-owner sup {
    font-size: 8px;
    vertical-align: super;
    margin-left: 2px;
}
/* ==========================================
   GAMEVAULT — HIDE ACCOUNT EMAIL IN HEADER
   ========================================== */

/* Hide email button when logged in */
html.gv-signed-in #gvUserOpen {
    display: none !important;
}

/* Keep the circular profile button visible */
html.gv-signed-in .gv-account-menu {
    display: flex;
}
/* GAMEVAULT — FIX PROFILE PICTURE SILHOUETTE */

/* Keep the actual profile picture above the placeholder icon */
#gvPublicAvatarImg,
#gvSettingsAvatarImage {
    z-index: 2 !important;
}

/* Hide the white silhouette when a profile picture exists */
#gvPublicAvatar:has(#gvPublicAvatarImg[src]:not([hidden]))
#gvPublicAvatarFallback,
#gvSettingsAvatarPreview:has(#gvSettingsAvatarImage[src]:not([hidden]))
#gvSettingsAvatarFallback {
    display: none !important;
}