/* ==========================================================
   MADSIX TERMINAL UI
   A500          = Amiga-inspired blue / warm white
   SCPH          = original PlayStation-inspired grey / controller accents
   GT65          = green-screen home-computer phosphor
   PRO-GEAR SPEC = Neo Geo-inspired black / gold
   ========================================================== */


/* ----------------------------------------------------------
   BASE THEME VARIABLES
   ---------------------------------------------------------- */

:root {

    --font-terminal:
        "Courier New",
        Courier,
        "Lucida Console",
        monospace;

    --radius: 0px;
}


/* ----------------------------------------------------------
   A500 — AMIGA-INSPIRED LIGHT MODE
   ---------------------------------------------------------- */

:root[data-theme="a500"] {

    color-scheme: light;

    --bg: #f1f3ed;
    --bg-secondary: #fafbf7;
    --panel: #ffffff;
    --panel-hover: #edf4fa;

    --text: #07559d;
    --text-strong: #003e79;
    --text-muted: #527da4;

    --border: #8daec9;
    --border-bright: #1768ac;

    --link: #005cac;
    --link-hover: #00386c;

    --input-bg: #ffffff;

    --button-bg: #e3edf5;
    --button-text: #004e91;

    --scanline:
        rgba(0, 75, 145, 0.035);

    --screen-glow:
        rgba(0, 70, 150, 0.055);

    --text-glow: none;
    --strong-glow: none;

    --selection-bg: #07559d;
    --selection-text: #ffffff;

    --active: var(--selection-bg);
    --active-text: var(--selection-text);

    --status-good: #2f8a57;
    --status-good-bg: rgba(47, 138, 87, 0.11);
    --status-near: #a97908;
    --status-near-bg: rgba(169, 121, 8, 0.12);
    --status-above: #b6434b;
    --status-above-bg: rgba(182, 67, 75, 0.10);
}


/* ----------------------------------------------------------
   SCPH — ORIGINAL PLAYSTATION-INSPIRED GREY

   Neutral console-plastic greys with restrained controller
   accents: Square pink, Cross blue, Circle red, Triangle green.
   ---------------------------------------------------------- */

:root[data-theme="scph"] {

    color-scheme: light;

    --bg: #b9b9b5;
    --bg-secondary: #c9c9c4;
    --panel: #d5d5d0;
    --panel-hover: #dfdfda;

    --text: #3d4148;
    --text-strong: #252930;
    --text-muted: #6b7078;

    --border: #8d9095;
    --border-bright: #555b64;

    --link: #315f9d;
    --link-hover: #203f6b;

    --input-bg: #e2e2de;

    --button-bg: #c7c7c2;
    --button-text: #30343a;

    --scanline:
        rgba(42, 46, 52, 0.018);

    --screen-glow:
        rgba(255, 255, 255, 0.09);

    --text-glow: none;
    --strong-glow: none;

    --selection-bg: #3f444c;
    --selection-text: #f5f5f2;

    --active: var(--selection-bg);
    --active-text: var(--selection-text);

    --status-good: var(--ps-triangle);
    --status-good-bg: rgba(49, 150, 108, 0.12);
    --status-near: #a97908;
    --status-near-bg: rgba(169, 121, 8, 0.12);
    --status-above: var(--ps-circle);
    --status-above-bg: rgba(212, 82, 76, 0.11);

    --ps-square: #c34f8e;
    --ps-cross: #3568ad;
    --ps-circle: #d4524c;
    --ps-triangle: #31966c;
}


/* ----------------------------------------------------------
   GT65 — GREEN PHOSPHOR MONITOR

   Deliberately calmer than the former AS/400 palette:
   still unmistakably green-screen, but easier on the eyes.
   ---------------------------------------------------------- */

:root[data-theme="gt65"] {

    color-scheme: dark;

    --bg: #020502;
    --bg-secondary: #050a05;
    --panel: #071007;
    --panel-hover: #0b170b;

    --text: #79d97d;
    --text-strong: #a9efaa;
    --text-muted: #4f9858;

    --border: #2b6433;
    --border-bright: #69bd70;

    --link: #8be391;
    --link-hover: #c5f7c8;

    --input-bg: #030703;

    --button-bg: #0b190d;
    --button-text: #86dd8a;

    --scanline:
        rgba(105, 205, 115, 0.03);

    --screen-glow:
        rgba(80, 190, 95, 0.065);

    --text-glow:
        0 0 3px rgba(95, 220, 105, 0.18);

    --strong-glow:
        0 0 7px rgba(105, 220, 115, 0.12);

    --selection-bg: #83dd86;
    --selection-text: #041006;

    --active: var(--selection-bg);
    --active-text: var(--selection-text);

    --status-good: #8fe394;
    --status-good-bg: rgba(105, 189, 112, 0.10);
    --status-near: #c9b94e;
    --status-near-bg: rgba(201, 185, 78, 0.09);
    --status-above: #c56b59;
    --status-above-bg: rgba(197, 107, 89, 0.09);
}


/* ----------------------------------------------------------
   PRO-GEAR SPEC — NEO GEO-INSPIRED BLACK / GOLD

   Restrained rather than arcade-neon: warm gold typography,
   deep charcoal panels and very subtle phosphor effects.
   ---------------------------------------------------------- */

:root[data-theme="progear"] {

    color-scheme: dark;

    --bg: #070705;
    --bg-secondary: #0d0c09;
    --panel: #12110d;
    --panel-hover: #1a1710;

    --text: #d3b35f;
    --text-strong: #f0da94;
    --text-muted: #8f7842;

    --border: #665226;
    --border-bright: #c5a54f;

    --link: #e3c570;
    --link-hover: #fff0b0;

    --input-bg: #0b0a07;

    --button-bg: #1a160d;
    --button-text: #dfbf67;

    --scanline:
        rgba(218, 181, 91, 0.018);

    --screen-glow:
        rgba(210, 168, 70, 0.035);

    --text-glow: none;
    --strong-glow: none;

    --selection-bg: #d6b65b;
    --selection-text: #090805;

    --active: var(--selection-bg);
    --active-text: var(--selection-text);

    --status-good: #8ca66a;
    --status-good-bg: rgba(140, 166, 106, 0.09);
    --status-near: #d0ad52;
    --status-near-bg: rgba(208, 173, 82, 0.10);
    --status-above: #bd6751;
    --status-above-bg: rgba(189, 103, 81, 0.09);
}


/* ----------------------------------------------------------
   GLOBAL RESET
   ---------------------------------------------------------- */

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--bg);
}

body {

    margin: 0;

    min-height: 100vh;

    background:
        radial-gradient(
            ellipse at center,
            var(--bg-secondary) 0%,
            var(--bg) 78%
        );

    color: var(--text);

    font-family: var(--font-terminal);

    font-size: 14px;

    line-height: 1.45;

    letter-spacing: 0.012em;

    text-shadow: var(--text-glow);
}


/* ----------------------------------------------------------
   CRT SCANLINES
   ---------------------------------------------------------- */

body::before {

    content: "";

    position: fixed;

    z-index: 9999;

    inset: 0;

    pointer-events: none;

    background:
        repeating-linear-gradient(
            to bottom,

            transparent 0px,
            transparent 2px,

            var(--scanline) 3px,

            transparent 4px
        );

    animation:
        scanline-drift 8s linear infinite;
}


/* Subtle CRT edge/vignette */

body::after {

    content: "";

    position: fixed;

    z-index: 9998;

    inset: 0;

    pointer-events: none;

    box-shadow:
        inset 0 0 90px var(--screen-glow);
}


/* Slight line movement */

@keyframes scanline-drift {

    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(4px);
    }
}


/* ----------------------------------------------------------
   SELECTION
   ---------------------------------------------------------- */

::selection {

    background: var(--selection-bg);

    color: var(--selection-text);

    text-shadow: none;
}


/* ----------------------------------------------------------
   PAGE WIDTH
   ---------------------------------------------------------- */

body > header,
body > main {

    width: min(
        1180px,
        calc(100% - 40px)
    );

    margin-left: auto;
    margin-right: auto;
}


/* ----------------------------------------------------------
   HEADER
   ---------------------------------------------------------- */

.site-header {

    padding-top: 18px;

    margin-bottom: 28px;

    border-bottom:
        1px solid var(--border);
}


/* Header upper area */

.header-top {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    padding-bottom: 14px;
}


/* ----------------------------------------------------------
   LOGO / BRAND
   ---------------------------------------------------------- */

.brand {

    display: flex;

    align-items: center;

    gap: 16px;

    color: var(--text);

    text-decoration: none;
}


.site-logo {

    display: block;

    width: 138px;

    max-height: 74px;

    object-fit: contain;
}


.brand-copy {

    display: flex;

    flex-direction: column;

    gap: 2px;

    text-transform: uppercase;
}


.brand-system {

    color: var(--text-strong);

    font-size: 0.9rem;

    font-weight: bold;

    letter-spacing: 0.12em;
}


.brand-status {

    color: var(--text-muted);

    font-size: 0.76rem;

    letter-spacing: 0.08em;
}


/* Blinking terminal cursor */

.cursor {

    color: var(--text-strong);

    animation:
        terminal-blink 1s steps(1) infinite;
}


@keyframes terminal-blink {

    0%,
    48% {

        opacity: 1;
    }

    49%,
    100% {

        opacity: 0;
    }
}


/* ----------------------------------------------------------
   NAVIGATION
   ---------------------------------------------------------- */

.main-nav {

    display: flex;

    flex-wrap: wrap;

    gap: 0;

    border-top:
        1px solid var(--border);
}


.main-nav a {

    display: inline-block;

    padding: 8px 14px;

    color: var(--text);

    text-decoration: none;

    text-transform: uppercase;

    font-size: 0.8rem;

    font-weight: bold;

    letter-spacing: 0.055em;

    border-right:
        1px solid var(--border);
}


.main-nav a:first-child {

    border-left:
        1px solid var(--border);
}


.main-nav a::before {

    content: "> ";

    color: var(--text-muted);
}


.main-nav a:hover {

    color: var(--text-strong);

    background: var(--panel-hover);

    text-shadow: var(--strong-glow);
}

.main-nav a.active {

    color: var(--bg);

    background: var(--text);

    text-shadow: none;
}


.main-nav a.active::before {

    color: var(--bg);
}

/* ----------------------------------------------------------
   THEME SWITCH
   ---------------------------------------------------------- */

.theme-toggle {

    appearance: none;

    padding: 7px 11px;

    white-space: nowrap;

    background: var(--button-bg);

    color: var(--button-text);

    border:
        1px solid var(--border-bright);

    border-radius: var(--radius);

    font-family: var(--font-terminal);

    font-size: 0.75rem;

    font-weight: bold;

    letter-spacing: 0.05em;

    cursor: pointer;

    text-transform: uppercase;

    text-shadow: var(--text-glow);
}


.theme-toggle::before {

    content: "[ ";
}


.theme-toggle::after {

    content: " ]";
}


.theme-toggle:hover {

    background: var(--text);

    color: var(--bg);

    text-shadow: none;
}


/* ----------------------------------------------------------
   MAIN CONTENT
   ---------------------------------------------------------- */

main {

    padding-bottom: 56px;
}


h1,
h2,
h3,
h4 {

    color: var(--text-strong);

    font-family: var(--font-terminal);

    font-weight: bold;

    text-shadow: var(--strong-glow);
}


h1,
h2 {

    text-transform: uppercase;

    letter-spacing: 0.06em;
}


h2 {

    margin-top: 0;

    margin-bottom: 16px;

    padding-bottom: 6px;

    font-size: 1.2rem;

    border-bottom:
        1px solid var(--border);
}


h2::before {

    content: ":: ";

    color: var(--text-muted);
}


h3 {

    margin-top: 0;
}


p {

    color: var(--text);
}


/* ----------------------------------------------------------
   LINKS
   ---------------------------------------------------------- */

a {

    color: var(--link);

    text-decoration: none;
}


a:hover {

    color: var(--link-hover);

    text-decoration: underline;
}


/* ----------------------------------------------------------
   GENERIC SECTIONS
   ---------------------------------------------------------- */

.section {

    margin-top: 32px;
}


/* ----------------------------------------------------------
   TERMINAL PANELS / CARDS
   ---------------------------------------------------------- */

.detail-card,
.game-card {

    position: relative;

    background: var(--panel);

    color: var(--text);

    border:
        1px solid var(--border);

    border-radius: var(--radius);

    box-shadow:
        inset 0 0 24px var(--screen-glow);

    transition:
        background 120ms linear,
        border-color 120ms linear;
}


.detail-card:hover,
.game-card:hover {

    background: var(--panel-hover);

    border-color: var(--border-bright);
}


/* terminal-style upper-left marker */

.detail-card::before,
.game-card::before {

    content: "SYS";

    position: absolute;

    top: -9px;

    left: 12px;

    padding: 0 6px;

    background: var(--bg);

    color: var(--text-muted);

    font-size: 0.58rem;

    letter-spacing: 0.12em;
}


.detail-card {

    padding: 13px 14px;

    margin-bottom: 10px;
}


/* ----------------------------------------------------------
   COLLECTION GRID
   ---------------------------------------------------------- */

.collection-grid {

    display: grid;

    grid-template-columns:
        repeat(
            auto-fill,
            minmax(210px, 1fr)
        );

    gap: 12px;
}


.game-card {

    padding: 14px;
}


.game-card h3 {

    margin-bottom: 8px;

    font-size: 0.98rem;
}


.game-card h3::before {

    content: "> ";

    color: var(--text-muted);
}


.game-card h3 a {

    color: var(--text-strong);

    text-decoration: none;
}


.game-card p {

    margin: 3px 0;

    color: var(--text-muted);

    font-size: 0.84rem;
}


/* ----------------------------------------------------------
   FILTER AREA
   ---------------------------------------------------------- */

.filters {

    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(175px, 1fr)
        );

    gap: 10px;

    padding: 14px;

    margin-bottom: 20px;

    background: var(--panel);

    border:
        1px solid var(--border);

    box-shadow:
        inset 0 0 25px var(--screen-glow);
}


.filters::before {

    content: "QUERY PARAMETERS";

    grid-column: 1 / -1;

    color: var(--text-muted);

    font-size: 0.72rem;

    letter-spacing: 0.1em;
}


.filters div {

    display: flex;

    flex-direction: column;

    gap: 6px;
}


.filters label {

    color: var(--text-muted);

    font-size: 0.73rem;

    font-weight: bold;

    text-transform: uppercase;

    letter-spacing: 0.06em;
}


/* ----------------------------------------------------------
   FORM CONTROLS
   ---------------------------------------------------------- */

input,
select,
textarea {

    width: 100%;

    padding: 7px 9px;

    background: var(--input-bg);

    color: var(--text);

    border:
        1px solid var(--border);

    border-radius: 0;

    outline: none;

    font-family: var(--font-terminal);

    font-size: 0.84rem;

    text-shadow: var(--text-glow);
}


input:focus,
select:focus,
textarea:focus {

    border-color: var(--border-bright);

    box-shadow:
        0 0 8px var(--screen-glow);
}


input::placeholder {

    color: var(--text-muted);

    opacity: 0.7;
}


button {

    font-family: var(--font-terminal);
}


.filters button {

    padding: 10px 15px;

    background: var(--button-bg);

    color: var(--button-text);

    border:
        1px solid var(--border-bright);

    cursor: pointer;

    text-transform: uppercase;

    font-weight: bold;

    letter-spacing: 0.05em;
}


.filters button:hover {

    background: var(--text);

    color: var(--bg);

    text-shadow: none;
}


.filter-buttons {

    justify-content: flex-end;
}


/* ----------------------------------------------------------
   TABLES
   ---------------------------------------------------------- */

table {

    width: 100%;

    border-collapse: collapse;

    background: var(--panel);

    border:
        1px solid var(--border);
}


thead {

    background: var(--button-bg);
}


th {

    color: var(--text-strong);

    text-transform: uppercase;

    font-size: 0.77rem;

    letter-spacing: 0.05em;
}


th,
td {

    padding: 8px 10px;

    text-align: left;

    border-bottom:
        1px solid var(--border);
}


tbody tr:hover {

    background: var(--panel-hover);
}


td {

    color: var(--text);
}


/* ----------------------------------------------------------
   GAME DETAIL META
   ---------------------------------------------------------- */

.game-meta {

    color: var(--text-muted);

    text-transform: uppercase;

    font-size: 0.82rem;

    letter-spacing: 0.05em;
}


/* ----------------------------------------------------------
   TERMINAL STATUS / SMALL UTILITY TEXT
   ---------------------------------------------------------- */

.system-line {

    color: var(--text-muted);

    font-size: 0.8rem;

    text-transform: uppercase;

    letter-spacing: 0.06em;
}


.system-line::before {

    content: "> ";
}


/* ----------------------------------------------------------
   HR
   ---------------------------------------------------------- */

hr {

    height: 1px;

    background: var(--border);

    border: 0;

    margin: 35px 0;
}


/* ----------------------------------------------------------
   SCROLLBAR
   ---------------------------------------------------------- */

* {

    scrollbar-width: thin;

    scrollbar-color:
        var(--border-bright)
        var(--bg);
}


::-webkit-scrollbar {

    width: 9px;

    height: 9px;
}


::-webkit-scrollbar-track {

    background: var(--bg);
}


::-webkit-scrollbar-thumb {

    background: var(--border);

    border:
        1px solid var(--bg);
}


::-webkit-scrollbar-thumb:hover {

    background: var(--border-bright);
}

/* ----------------------------------------------------------
   FOOTER
   ---------------------------------------------------------- */

.site-footer {

    width: min(
        1180px,
        calc(100% - 40px)
    );

    margin:
        20px auto 0;

    padding:
        18px 0 30px;

    border-top:
        1px solid var(--border);
}


.footer-inner {

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 20px;
}


.footer-status {

    color: var(--text-muted);

    font-size: 0.75rem;

    letter-spacing: 0.06em;

    text-transform: uppercase;
}

/* ----------------------------------------------------------
   MOBILE
   ---------------------------------------------------------- */

@media (max-width: 700px) {

    body {

        font-size: 13.5px;
    }


    body > header,
	body > main {

		width:
			calc(100% - 20px);
	}


    .header-top {

        flex-direction: column;

        align-items: flex-start;

        gap: 15px;
    }


    .brand {

        gap: 14px;
    }


    .site-logo {

		width: 105px;
	}


    .brand-copy {

        display: none;
    }


    .theme-toggle {

        width: 100%;
    }


    .main-nav a {

		flex: 1;

		min-width: 50%;

		padding: 8px 6px;

		text-align: center;

		border-bottom:
			1px solid var(--border);
	}


    .collection-grid {

        grid-template-columns: 1fr;
    }


    table {

        display: block;

        overflow-x: auto;

        white-space: nowrap;
    }
	
	.site-footer {

    width:
        calc(100% - 24px);
}


	.footer-inner {

    flex-direction: column;

    align-items: flex-start;

    gap: 5px;
}


}


/* ----------------------------------------------------------
   ACCESSIBILITY
   ---------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

    body::before,
    .cursor {

        animation: none;
    }

}

/* --------------------------------------------------
   Responsive tables
-------------------------------------------------- */

.table-scroll {
    width: 100%;
    overflow-x: auto;
}

/* --------------------------------------------------
   Admin forms
-------------------------------------------------- */

.admin-form {
    max-width: 760px;
}

.admin-form > div {
    margin-bottom: 1rem;
}

.admin-form label {
    display: block;
    margin-bottom: 0.35rem;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
    width: 100%;
    font: inherit;
}

.admin-form textarea {
    min-height: 8rem;
    resize: vertical;
}

.admin-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

/* --------------------------------------------------
   Collection media
-------------------------------------------------- */

.media-grid {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fill,
            minmax(180px, 1fr)
        );

    gap: 1rem;
}


.media-card {
    padding: 1rem;
    border: 1px solid currentColor;
}


.media-card img {
    display: block;

    width: 100%;
    height: auto;

    margin-bottom: 0.75rem;
}


.game-cover {
    width: min(280px, 100%);
    height: auto;
    display: block;
}

/* --------------------------------------------------
   Game heading + own cover photos
-------------------------------------------------- */

.game-heading {
    margin-bottom: 1.5rem;
}


.game-cover-row {
    display: flex;

    flex-wrap: wrap;

    gap: 1.5rem;

    align-items: flex-start;

    margin:
        0
        0
        2rem;
}


.game-cover-item {
    margin: 0;
}


.game-cover {
    display: block;

    width: auto;

    max-width: 280px;

    max-height: 420px;

    object-fit: contain;
}


.game-cover-item figcaption {
    margin-top: 0.5rem;

    max-width: 280px;
}

.game-cover-release {
    margin-top: 0.6rem;
}


.game-cover-edition {
    margin-top: 0.2rem;
}


.game-cover-caption {
    margin-top: 0.5rem;
    font-style: italic;
}

@media (max-width: 600px) {

    .game-cover {
        max-width: 100%;
        height: auto;
    }

}

/* --------------------------------------------------
   Terminal buttons
-------------------------------------------------- */

button,
input[type="submit"],
input[type="button"],
input[type="reset"] {
    appearance: none;
    -webkit-appearance: none;

    font: inherit;

    color: inherit;
    background: transparent;

    border:
        1px solid
        currentColor;

    border-radius: 0;

    padding:
        0.45rem
        0.75rem;

    cursor: pointer;
}


button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
input[type="reset"]:hover {
    text-decoration: underline;

    box-shadow:
        inset
        0 0 0 1px
        currentColor;
}


button:focus-visible,
input[type="submit"]:focus-visible,
input[type="button"]:focus-visible,
input[type="reset"]:focus-visible {
    outline:
        2px solid
        currentColor;

    outline-offset:
        2px;
}


button:disabled,
input[type="submit"]:disabled,
input[type="button"]:disabled,
input[type="reset"]:disabled {
    opacity: 0.5;

    cursor: not-allowed;
}

/* --------------------------------------------------
   Haul blog
-------------------------------------------------- */

.haul-post {
    margin-bottom: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid currentColor;
}


.haul-post-header {
    margin-bottom: 1.5rem;
}


.haul-photo-grid {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(260px, 1fr)
        );

    gap: 1.5rem;

    margin-bottom: 2rem;
}


.haul-photo {
    margin: 0;
}


.haul-photo img {
    display: block;

    width: 100%;
    height: auto;
}


.haul-photo figcaption {
    margin-top: 0.5rem;
}


.haul-acquired {
    margin-top: 2rem;
}


.haul-item-list {
    list-style: none;
    padding: 0;
    margin: 0;
}


.haul-item {
    padding:
        0.75rem
        0;

    border-bottom:
        1px dotted
        currentColor;
}


.haul-story {
    margin-top: 2rem;
}


/* --------------------------------------------------
   Collection reference links
-------------------------------------------------- */

.collection-reference-links {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}


.collection-reference-links ul {
    margin-top: 0.5rem;
}

/* --------------------------------------------------
   Personal game notes
-------------------------------------------------- */

.personal-notes-form textarea {
    min-height: 10rem;
}

/* --------------------------------------------------
   Collection item preview
-------------------------------------------------- */

.collection-preview-link {
    display: block;
    margin-bottom: 1rem;
}


.collection-preview {
    display: block;
    width: auto;
    max-width: 100%;
    height: 180px;
    object-fit: contain;
    object-position: left top;
}

/* --------------------------------------------------
   Content prep
-------------------------------------------------- */

.content-prep-packet {
    width: 100%;
    min-height: 32rem;
    font: inherit;
    white-space: pre-wrap;
    resize: vertical;
}

/* --------------------------------------------------
   Gameplay media
-------------------------------------------------- */

.gameplay-media-grid {

    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(
                220px,
                320px
            )
        );

    gap: 10px;

    justify-content: start;

    align-items: start;
}


.gameplay-media-card {

    margin: 0;

    padding: 7px;

    border:
        1px solid var(--border);

    background:
        var(--panel);

    box-sizing:
        border-box;
}


.gameplay-media-card a {

    display: block;

    width: 100%;
}


.gameplay-media-image,
.gameplay-media-video {

    display: block;

    width: 100%;

    height: 200px;

    object-fit: contain;

    background: #000;
}


.gameplay-media-card--video {

    grid-column: auto;

    max-width: none;
}


.gameplay-media-card figcaption {

    display: flex;

    flex-direction: column;

    gap: 2px;

    margin-top: 7px;

    line-height: 1.3;
}


.gameplay-media-card figcaption strong {

    font-size: 0.82rem;
}


.gameplay-media-card figcaption span {

    color:
        var(--text-muted);

    font-size:
        0.68rem;
}

/* --------------------------------------------------
   Archive
-------------------------------------------------- */

.archive-grid {
    display: grid;
    grid-template-columns:
        repeat(
            auto-fit,
            minmax(220px, 1fr)
        );
    gap: 1rem;
}


.archive-card {
    border: 1px solid currentColor;
    padding: 1rem;
}


.archive-card-link {
    display: block;
}


.archive-card h3 {
    margin-top: 0.75rem;
}


.archive-preview {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: contain;
    object-position: center;
}


.archive-detail-media {
    display: grid;
    grid-template-columns:
        repeat(
            auto-fit,
            minmax(240px, 1fr)
        );
    gap: 1rem;
    margin-bottom: 1rem;
}


.archive-detail-media img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
}

.wishlist-price-form {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) 80px 90px auto;
    gap: 0.5rem;
    align-items: center;
    min-width: 470px;
}

.wishlist-price-form input,
.wishlist-price-form select,
.wishlist-price-form button {
    width: 100%;
    margin: 0;
}

.wishlist-price-form button {
    white-space: nowrap;
}


/* ==================================================
   VIRTUAL SHELF EDITOR
   ================================================== */

.shelf-editor {
    position: relative;

    width: 100%;
    max-width: 100%;

    overflow: hidden;

    user-select: none;
    touch-action: none;

    cursor: crosshair;
	
	scroll-margin-top: 1rem;
}


.shelf-editor > img {
    display: block;

    width: 100%;
    height: auto;

    pointer-events: none;
}


.shelf-selection,
.shelf-existing-hotspot {
    position: absolute;

    box-sizing: border-box;

    pointer-events: none;
}


.shelf-selection {
    border: 2px solid currentColor;

    background:
        rgba(127, 127, 127, 0.22);
}


.shelf-existing-hotspot {
    border: 1px dashed currentColor;

    background:
        rgba(127, 127, 127, 0.08);
}

/* ==================================================
   PUBLIC VIRTUAL SHELF
   ================================================== */

.virtual-shelf-grid {
    display: grid;

    grid-template-columns:
        repeat(
            var(--shelf-columns, 1),
            minmax(0, 1fr)
        );

    gap: 0.35rem;

    align-items: start;
}


.virtual-shelf-photo {
    position: relative;

    width: 100%;

    overflow: hidden;
}


.virtual-shelf-photo > img {
    display: block;

    width: 100%;
    height: auto;
}


.virtual-shelf-hotspot {
    position: absolute;

    display: block;

    box-sizing: border-box;

    border:
        1px solid transparent;

    background:
        transparent;
}


.virtual-shelf-hotspot:hover,
.virtual-shelf-hotspot:focus-visible {
    border:
        2px solid currentColor;

    background:
        rgba(127, 127, 127, 0.18);

    outline: none;
}

/* ==================================================
   VIRTUAL SHELF OVERVIEW
   ================================================== */

.shelf-overview-card {
    overflow: hidden;
}


.shelf-overview-card > a:first-child {
    display: block;
}


.shelf-overview-card img {
    display: block;

    width: 100%;
    height: auto;

    max-height: 240px;

    object-fit: cover;
}

/* ==================================================
   VIRTUAL SHELF ADMIN
   ================================================== */

.shelf-admin-photo {
    margin-bottom: 2rem;
}


.shelf-admin-photo > img {
    display: block;

    width: 100%;
    height: auto;

    max-height: 420px;

    object-fit: contain;

    margin-bottom: 1rem;
}

/* ==================================================
   PAGINATION
   ================================================== */

.pagination {

    display: flex;

    flex-wrap: wrap;

    align-items: center;

    gap: 5px;

    margin:
        12px 0 16px;
}


.pagination a,
.pagination-current,
.pagination-gap {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-width: 30px;
    min-height: 30px;

    padding: 4px 8px;

    box-sizing: border-box;
}


.pagination a {

    border:
        1px solid var(--border);

    color:
        var(--text);

    text-decoration: none;
}


.pagination a:hover,
.pagination a:focus-visible {

    color:
        var(--active-text);

    background:
        var(--active);

    border-color:
        var(--border-bright);

    outline: none;
}


.pagination-current {

    color:
        var(--active-text);

    background:
        var(--active);

    border:
        1px solid var(--border-bright);

    font-weight: bold;
}


.pagination-gap {

    min-width: auto;

    color:
        var(--text-muted);
}


.pagination-bottom {

    margin-top: 18px;
}


.collection-result-count {

    margin-bottom: 10px;
}

@media (max-width: 700px) {

    .pagination {

        gap: 4px;

        margin:
            10px 0 14px;
    }


    .pagination a,
    .pagination-current,
    .pagination-gap {

        min-width: 34px;
        min-height: 34px;

        padding: 5px 7px;
    }

}

/* ==================================================
   COMPACT ADMIN DASHBOARD
   ================================================== */

.admin-stat-grid {

    display: grid;

    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );

    gap: 10px;
}


.admin-stat-grid .detail-card {

    margin-bottom: 0;

    min-height: 70px;
}


.admin-command-grid {

    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 10px;
}


.admin-command-card {

    display: flex;

    flex-direction: column;

    justify-content: center;

    gap: 4px;

    min-height: 66px;

    margin-bottom: 0;

    color: var(--text);

    text-decoration: none;
}


.admin-command-card strong {

    font-size: 0.92rem;
}


.admin-command-card span {

    color: var(--text-muted);

    font-size: 0.78rem;
}


.admin-command-card:hover,
.admin-command-card:focus-visible {

    color: var(--active-text);

    background: var(--active);

    border-color:
        var(--border-bright);

    outline: none;
}


.admin-command-card:hover span,
.admin-command-card:focus-visible span {

    color: var(--active-text);
}


@media (max-width: 700px) {

    .admin-stat-grid {

        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );

        gap: 8px;
    }


    .admin-command-grid {

        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );

        gap: 8px;
    }


    .admin-command-card {

        min-height: 58px;

        padding:
            10px 11px;
    }


    .admin-command-card span {

        font-size: 0.72rem;
    }

}

/* ==================================================
   PLAY HISTORY TABLE
   ================================================== */

.played-table th:nth-child(1),
.played-table td:nth-child(1) {

    min-width: 220px;
}


.played-table th:nth-child(2),
.played-table td:nth-child(2) {

    min-width: 96px;

    white-space: nowrap;
}


.played-table th:nth-child(3),
.played-table td:nth-child(3) {

    min-width: 125px;
}


.played-table th:nth-child(4),
.played-table td:nth-child(4) {

    min-width: 65px;

    white-space: nowrap;
}


.played-table th:nth-child(5),
.played-table td:nth-child(5) {

    min-width: 100px;
}


.played-table th:nth-child(6),
.played-table td:nth-child(6) {

    min-width: 78px;

    white-space: nowrap;
}


.played-table th:nth-child(7),
.played-table td:nth-child(7) {

    min-width: 240px;
}

/* ==================================================
   VIRTUAL SHELF OVERVIEW GRID
   ================================================== */

.shelf-overview-grid {

    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(
                300px,
                380px
            )
        );

    gap: 12px;

    justify-content: start;

    align-items: stretch;
}


.shelf-overview-grid
.shelf-overview-card {

    margin-bottom: 0;
}


.shelf-overview-card img {

    width: 100%;

    max-height: none;

    aspect-ratio:
        16 / 5;

    object-fit: cover;
}


@media (max-width: 700px) {

    .shelf-overview-grid {

        grid-template-columns:
            1fr;

        gap: 10px;
    }

}

/* ==================================================
   COMPACT PUBLIC HAULS
   ================================================== */

.haul-post {

    margin-top: 34px;
    margin-bottom: 46px;
}


.haul-post + .haul-post {

    padding-top: 6px;

    border-top:
        1px solid var(--border);
}


.haul-post-header {

    margin-bottom: 18px;
}


.haul-post-header h2 {

    margin-bottom: 8px;
}


.haul-post-header p {

    margin:
        3px 0;

    color:
        var(--text-muted);
}


/* --------------------------------------------------
   PHOTO GALLERY
   -------------------------------------------------- */

.haul-photo-grid {

    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(240px, 360px)
        );

    gap: 10px;

    justify-content: start;

    align-items: start;

    margin:
        16px 0 22px;
}


.haul-photo {

    margin: 0;

    padding: 8px;

    box-sizing: border-box;

    border:
        1px solid var(--border);

    background:
        var(--panel);
}


.haul-photo-link {

    display: block;

    text-decoration: none;
}


.haul-photo img {

    display: block;

    width: 100%;
    height: 260px;

    object-fit: contain;

    background:
        var(--bg-secondary);
}


.haul-photo figcaption {

    margin-top: 7px;

    color:
        var(--text-muted);

    font-size: 0.78rem;
}


/* --------------------------------------------------
   HAUL SUBSECTIONS
   -------------------------------------------------- */

.haul-locations,
.haul-acquired,
.haul-story {

    margin-top: 18px;
}


.haul-locations h3,
.haul-acquired h3,
.haul-story h3 {

    margin-bottom: 8px;

    font-size: 0.95rem;
}


.haul-location-list,
.haul-item-list {

    margin-top: 8px;
}

@media (max-width: 700px) {

    .haul-post {

        margin-top: 28px;
        margin-bottom: 38px;
    }


    .haul-photo-grid {

        grid-template-columns:
            1fr;

        gap: 8px;
    }


    .haul-photo {

        padding: 6px;
    }


    .haul-photo img {

        height: auto;

        max-height: 320px;

        object-fit: contain;
    }

}

.haul-item-list {

    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(220px, 1fr)
        );

    gap: 6px 14px;

    padding-left: 0;

    list-style: none;
}


.haul-item {

    padding:
        6px 8px;

    border-left:
        1px solid var(--border);
}


.haul-item > a {

    font-weight: bold;
}


.haul-item > div {

    margin-top: 2px;

    color:
        var(--text-muted);

    font-size: 0.8rem;
}


@media (max-width: 700px) {

    .haul-item-list {

        grid-template-columns:
            1fr;
    }

}

.haul-location-list {

    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    padding-left: 0;

    list-style: none;
}


.haul-location {

    min-width: 200px;

    padding:
        7px 9px;

    border:
        1px solid var(--border);
}


.haul-location > div {

    margin-top: 2px;

    color:
        var(--text-muted);

    font-size: 0.78rem;
}

/* ==================================================
   STAGE 14 — HOMEPAGE
   ================================================== */

.home-intro {

    margin-bottom: 0;

    color: var(--text-muted);
}


/* --------------------------------------------------
   RANDOM GAME
   -------------------------------------------------- */

.home-random-game {

    display: grid;

    grid-template-columns:
        minmax(240px, 420px)
        minmax(220px, 1fr);

    gap: 18px;

    align-items: stretch;
}


.home-random-image {

    display: block;

    padding: 8px;

    border:
        1px solid var(--border);

    background:
        var(--panel);

    overflow: hidden;
}


.home-random-image img {

    display: block;

    width: 100%;
    height: 260px;

    object-fit: contain;

    background:
        var(--bg-secondary);

    transition:
        transform 120ms ease;
}


.home-random-image:hover img,
.home-random-image:focus-visible img {

    transform:
        scale(1.015);
}


.home-random-info {

    position: relative;

    display: flex;

    flex-direction: column;

    justify-content: center;

    padding:
        18px 20px;

    border:
        1px solid var(--border);

    background:
        var(--panel);
}


.home-random-info::before {

    content:
        "SYS";

    position: absolute;

    top: -0.7em;
    left: 12px;

    padding:
        0 6px;

    color:
        var(--text-muted);

    background:
        var(--bg);

    font-size:
        0.58rem;

    letter-spacing:
        0.12em;
}


.home-random-info h3 {

    margin:
        8px 0;

    font-size:
        1.3rem;
}


.home-random-info p {

    margin:
        3px 0;

    color:
        var(--text-muted);
}


.terminal-label {

    color:
        var(--text-muted);

    font-size:
        0.7rem;

    letter-spacing:
        0.1em;
}


/* --------------------------------------------------
   ARCHIVE NAVIGATION
   -------------------------------------------------- */

.home-archive-grid {

    display: grid;

    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );

    gap: 10px;
}


.home-archive-card {

    display: flex;

    flex-direction: column;

    gap: 5px;

    min-height: 92px;

    margin-bottom: 0;

    color:
        var(--text);

    text-decoration: none;
}


.home-archive-card strong {

    font-size:
        1.15rem;
}


.home-archive-card span {

    font-weight: bold;
}


.home-archive-card small {

    margin-top: auto;

    color:
        var(--text-muted);
}


.home-archive-card:hover,
.home-archive-card:focus-visible {

    color:
        var(--active-text);

    background:
        var(--active);

    border-color:
        var(--border-bright);

    outline: none;
}


.home-archive-card:hover small,
.home-archive-card:focus-visible small {

    color:
        var(--active-text);
}


.home-archive-stats {

    display: flex;

    flex-wrap: wrap;

    gap: 8px 20px;

    margin-top: 12px;

    padding:
        7px 9px;

    border-top:
        1px solid var(--border);

    color:
        var(--text-muted);

    font-size:
        0.8rem;

    text-transform:
        uppercase;
}


/* --------------------------------------------------
   RECENTLY PLAYED
   -------------------------------------------------- */

.home-recent-grid {

    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 10px;
}


.home-recent-card {

    display: flex;

    flex-direction: column;

    gap: 4px;

    min-height: 68px;

    margin-bottom: 0;

    color:
        var(--text);

    text-decoration: none;
}


.home-recent-card span {

    color:
        var(--text-muted);

    font-size:
        0.8rem;
}


/* --------------------------------------------------
   MOBILE
   -------------------------------------------------- */

@media (max-width: 700px) {

    .home-random-game {

        grid-template-columns:
            1fr;

        gap: 8px;
    }


    .home-random-image img {

        height: auto;

        max-height: 300px;
    }


    .home-random-info {

        padding:
            13px 14px;
    }


    .home-archive-grid {

        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );

        gap: 8px;
    }


    .home-archive-card {

        min-height: 82px;

        padding:
            11px 12px;
    }


    .home-archive-card small {

        font-size:
            0.7rem;
    }


    .home-archive-stats {

        justify-content:
            space-between;
    }


    .home-recent-grid {

        grid-template-columns:
            1fr;

        gap: 7px;
    }


    .home-recent-card {

        min-height: 0;
    }

}

/* ==================================================
   STAGE 15 — COLLECTION STOREFRONT
   ================================================== */

.collection-store-grid {

    display: grid;

    grid-template-columns:
        repeat(
            auto-fill,
            minmax(170px, 1fr)
        );

    gap: 10px;

    align-items: stretch;
}


.collection-store-card {

    display: flex;

    flex-direction: column;

    min-width: 0;

    overflow: hidden;

    color:
        var(--text);

    background:
        var(--panel);

    border:
        1px solid var(--border);

    text-decoration: none;

    transition:
        transform 100ms ease,
        border-color 100ms ease,
        background 100ms ease;
}


.collection-store-card:hover,
.collection-store-card:focus-visible {

    transform:
        translateY(-2px);

    border-color:
        var(--border-bright);

    background:
        var(--panel-hover);

    outline: none;
}


/* --------------------------------------------------
   IMAGE STAGE
   -------------------------------------------------- */

.collection-store-visual {

    position: relative;

    display: flex;

    align-items: center;

    justify-content: center;

    aspect-ratio:
        1 / 1;

    padding: 6px;

    overflow: hidden;

    box-sizing: border-box;

    background:
        var(--bg-secondary);

    border-bottom:
        1px solid var(--border);
}


.collection-store-visual img {

    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;

    transition:
        transform 120ms ease;
}


.collection-store-card:hover
.collection-store-visual img,
.collection-store-card:focus-visible
.collection-store-visual img {

    transform:
        scale(1.025);
}


/* --------------------------------------------------
   TITLE STRIP
   -------------------------------------------------- */

.collection-store-caption {

    display: flex;

    flex-direction: column;

    gap: 3px;

    padding:
        8px 9px 9px;

    min-height: 58px;
}


.collection-store-title {

    display: -webkit-box;

    overflow: hidden;

    -webkit-box-orient:
        vertical;

    -webkit-line-clamp:
        2;

    line-height:
        1.25;

    font-size:
        0.88rem;
}


.collection-store-meta {

    color:
        var(--text-muted);

    font-size:
        0.73rem;

    line-height:
        1.3;
}


.collection-store-edition {

    overflow: hidden;

    color:
        var(--text-muted);

    font-size:
        0.68rem;

    white-space: nowrap;

    text-overflow: ellipsis;
}


/* --------------------------------------------------
   OPEN PROMPT
   -------------------------------------------------- */

.collection-store-open {

    position: absolute;

    right: 5px;
    bottom: 5px;

    padding:
        3px 5px;

    color:
        var(--active-text);

    background:
        var(--active);

    border:
        1px solid var(--border-bright);

    font-size:
        0.6rem;

    font-weight: bold;

    letter-spacing:
        0.06em;

    opacity: 0;

    transform:
        translateY(3px);

    transition:
        opacity 100ms ease,
        transform 100ms ease;
}


.collection-store-card:hover
.collection-store-open,
.collection-store-card:focus-visible
.collection-store-open {

    opacity: 1;

    transform:
        translateY(0);
}


/* --------------------------------------------------
   SEALED BADGE
   -------------------------------------------------- */

.collection-store-badge {

    position: absolute;

    top: 5px;
    left: 5px;

    padding:
        2px 5px;

    color:
        var(--active-text);

    background:
        var(--active);

    border:
        1px solid var(--border-bright);

    font-size:
        0.58rem;

    font-weight: bold;

    letter-spacing:
        0.05em;
}


/* --------------------------------------------------
   NO-PHOTO PLACEHOLDER
   -------------------------------------------------- */

.collection-store-placeholder {

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 7px;

    width: 100%;
    height: 100%;

    border:
        1px dashed var(--border);

    color:
        var(--text-muted);

    text-align: center;
}


.collection-store-placeholder span {

    font-weight: bold;

    letter-spacing:
        0.08em;
}


.collection-store-placeholder small {

    font-size:
        0.68rem;
}


/* --------------------------------------------------
   MOBILE STORE WALL
   -------------------------------------------------- */

@media (max-width: 700px) {

    .collection-store-grid {

        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );

        gap: 7px;
    }


    .collection-store-visual {

        padding: 4px;
    }


    .collection-store-caption {

        min-height: 52px;

        padding:
            7px 7px 8px;
    }


    .collection-store-title {

        font-size:
            0.82rem;
    }


    .collection-store-meta {

        font-size:
            0.68rem;
    }


    .collection-store-edition {

        font-size:
            0.63rem;
    }


    .collection-store-open {

        display: none;
    }

}

/* ==================================================
   COLLECTION FILTER PANEL
   ================================================== */

.collection-filter-panel {

    margin-bottom:
        18px;
}


.collection-filter-panel > summary {

    display: none;
}


.collection-filter-panel .filters {

    margin-bottom: 0;
}


@media (max-width: 700px) {

    .collection-filter-panel {

        border:
            1px solid var(--border);

        margin-bottom:
            14px;
    }


    .collection-filter-panel > summary {

        display: flex;

        align-items: center;

        justify-content: space-between;

        padding:
            10px 12px;

        cursor: pointer;

        color:
            var(--text);

        font-weight: bold;

        text-transform:
            uppercase;

        letter-spacing:
            0.05em;

        list-style: none;
    }


    .collection-filter-panel > summary::-webkit-details-marker {

        display: none;
    }


    .collection-filter-panel > summary::after {

        content:
            "[ + ]";

        color:
            var(--text-muted);
    }


    .collection-filter-panel[open]
    > summary::after {

        content:
            "[ - ]";
    }


    .collection-filter-panel .filters {

        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );

        margin: 0;

        border: 0;

        border-top:
            1px solid var(--border);
    }


    .collection-filter-panel
    .filters > div:first-child {

        grid-column:
            1 / -1;
    }


    .collection-filter-panel
    .filter-buttons {

        grid-column:
            1 / -1;
    }

}

/* ==================================================
   COLLECTION ITEM INSPECTION
   ================================================== */

.collection-item-detail {

    max-width:
        980px;

    padding:
        16px 18px;
}


.collection-item-detail > strong {

    display: block;

    margin-bottom:
        10px;

    font-size:
        1rem;
}


.collection-item-detail p {

    margin:
        4px 0;
}


.collection-item-detail .media-grid {

    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(
                190px,
                280px
            )
        );

    gap: 10px;

    justify-content: start;

    margin-top:
        14px;
}


.collection-item-detail .media-card {

    margin: 0;
}


.collection-item-detail .media-card img {

    width: 100%;
    height: 220px;

    object-fit: contain;
}


/* Main front/cover photographs */

.game-cover-row {

    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(
                240px,
                360px
            )
        );

    gap: 12px;

    justify-content: start;
}


.game-cover-item {

    margin: 0;

    padding: 8px;

    border:
        1px solid var(--border);

    background:
        var(--panel);
}


.game-cover-item .game-cover {

    display: block;

    width: 100%;
    height: 300px;

    object-fit: contain;
}


@media (max-width: 700px) {

    .collection-item-detail {

        max-width: none;

        padding:
            12px;
    }


    .collection-item-detail
    .media-grid {

        grid-template-columns:
            1fr;
    }


    .collection-item-detail
    .media-card img {

        height: auto;

        max-height:
            360px;
    }


    .game-cover-row {

        grid-template-columns:
            1fr;
    }


    .game-cover-item .game-cover {

        height: auto;

        max-height:
            420px;
    }

}

/* ==================================================
   CLICKABLE GAME PHOTOS
   ================================================== */

.game-photo-link {

    display: block;

    cursor: zoom-in;

    text-decoration: none;
}


.game-photo-link img {

    transition:
        transform 120ms ease,
        opacity 120ms ease;
}


.game-photo-link:hover img,
.game-photo-link:focus-visible img {

    transform:
        scale(1.015);

    opacity:
        0.92;
}


.game-photo-link:focus-visible {

    outline:
        1px solid var(--border-bright);

    outline-offset:
        2px;
}

/* ==================================================
   HAUL ITEM LOCATION ASSIGNMENT
   ================================================== */

.haul-item-location-form {

    margin:
        10px 0;
}


.haul-item-location-form > div {

    margin-bottom:
        6px;
}


.haul-item-location-form select {

    max-width:
        560px;
}


.haul-item-location-form button {

    width:
        auto;
}

/* ==================================================
   BULK HAUL LOCATION ASSIGNMENT
   ================================================== */

.haul-bulk-location {

    margin:
        12px 0 18px;
}


.haul-bulk-actions {

    display: flex;

    gap: 6px;

    margin:
        10px 0;
}


.haul-bulk-actions button {

    width: auto;
}


.haul-bulk-items {

    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(220px, 1fr)
        );

    gap: 5px;

    margin-bottom:
        12px;
}


.haul-bulk-item {

    display: flex;

    align-items: flex-start;

    gap: 7px;

    padding:
        6px 8px;

    border:
        1px solid var(--border);

    cursor: pointer;
}


.haul-bulk-item input {

    width: auto;

    margin-top: 2px;
}


.haul-bulk-item span {

    display: flex;

    flex-direction: column;

    gap: 2px;
}


.haul-bulk-item small {

    color:
        var(--text-muted);
}


@media (max-width: 700px) {

    .haul-bulk-items {

        grid-template-columns:
            1fr;
    }

}

/* ==================================================
   WISHLIST PRICE TARGET CARDS
   ================================================== */

.wishlist-target-list {

    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 10px;
}


.wishlist-target-card {

    margin-bottom: 0;

    min-width: 0;
}


.wishlist-target-header {

    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 12px;

    margin-bottom: 12px;
}


.wishlist-target-header > div {

    display: flex;

    flex-direction: column;

    gap: 3px;

    min-width: 0;
}


.wishlist-target-title {

    font-size: 1rem;
}


.wishlist-target-release {

    color: var(--text-muted);

    font-size: 0.8rem;
}


.wishlist-target-status {

    flex: 0 0 auto;

    padding: 3px 6px;

    border:
        1px solid var(--border);

    font-size: 0.68rem;

    font-weight: bold;

    letter-spacing: 0.04em;
}


.wishlist-target-summary {

    display: grid;

    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );

    gap: 6px;

    margin-bottom: 12px;
}


.wishlist-target-summary > div {

    display: flex;

    flex-direction: column;

    gap: 2px;

    padding: 6px 7px;

    border:
        1px solid var(--border);
}


.wishlist-target-summary small {

    color: var(--text-muted);

    font-size: 0.62rem;

    letter-spacing: 0.08em;
}


.wishlist-target-summary span {

    color: var(--text-muted);

    font-size: 0.68rem;
}


.wishlist-target-actions {

    display: flex;

    flex-wrap: wrap;

    align-items: center;

    justify-content: space-between;

    gap: 8px;

    margin-bottom: 10px;
}


.wishlist-acquire-link {

    padding: 5px 8px;

    border:
        1px solid var(--border-bright);

    font-weight: bold;

    text-decoration: none;
}


.wishlist-acquire-link:hover,
.wishlist-acquire-link:focus-visible {

    color: var(--active-text);

    background: var(--active);

    outline: none;
}


.wishlist-target-editor {

    border-top:
        1px solid var(--border);

    padding-top: 8px;
}


.wishlist-target-editor > summary {

    cursor: pointer;

    color: var(--text-muted);

    font-size: 0.75rem;

    font-weight: bold;

    text-transform: uppercase;
}


.wishlist-target-form {

    display: grid;

    grid-template-columns:
        1fr
        130px
        120px
        150px;

    gap: 8px;

    align-items: end;

    margin-top: 10px;
}


.wishlist-target-form
.wishlist-target-url {

    grid-column:
        1 / -1;
}


.wishlist-target-save {

    grid-column:
        1 / -1;
}


.wishlist-target-save button {

    width: auto;
}


@media (max-width: 900px) {

    .wishlist-target-list {

        grid-template-columns:
            1fr;
    }

}


@media (max-width: 700px) {

    .wishlist-target-summary {

        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }


    .wishlist-target-form {

        grid-template-columns:
            1fr;
    }


    .wishlist-target-form
    .wishlist-target-url,
    .wishlist-target-save {

        grid-column:
            auto;
    }


    .wishlist-target-actions {

        align-items: stretch;

        flex-direction: column;
    }


    .wishlist-target-actions a {

        display: block;
    }

}

.acquire-selected-target {

    margin-top: 8px;

    padding:
        7px 9px;

    border-left:
        3px solid var(--border-bright);

    background:
        var(--panel);
}

/* ==================================================
   STAGE 19 — GAMEPLAY MEDIA
   Public Gameplay Media styles are defined once in
   the main Gameplay Media section above.
   ================================================== */

/* --------------------------------------------------
   ADMIN GAME MEDIA
   -------------------------------------------------- */

.game-media-admin-card {

    display: grid;

    grid-template-columns:
        260px
        minmax(0, 1fr);

    gap: 12px;

    align-items: start;
}


.game-media-admin-preview {

    width: 260px;
}


.game-media-admin-preview img,
.game-media-admin-preview video {

    display: block;

    width: 100%;

    height: 170px;

    object-fit: contain;

    background: #000;
}

.game-media-admin-form {

    margin: 0;
}


@media (max-width: 700px) {

    .gameplay-media-grid {

        grid-template-columns:
            1fr;
    }


    .gameplay-media-card--video {

        grid-column:
            auto;

        max-width:
            none;
    }


    .gameplay-media-image,
    .gameplay-media-video {

        width: 100%;

        height: auto;

        max-height: 300px;

        object-fit: contain;
    }


    .game-media-admin-card {

        grid-template-columns:
            1fr;
    }

}