/* Optional color studies, activated only by an explicit preview URL. */
[data-games-color] .game-album { --study-color:#b93825; --study-tint:#ebd1bd; }
[data-games-color] .game-album:nth-child(3n+2) { --study-color:#d9a12e; --study-tint:#eee0b6; }
[data-games-color] .game-album:nth-child(3n) { --study-color:#647d60; --study-tint:#d8dfc6; }
[data-games-color='spines'] .game-album { box-shadow: inset 8px 0 0 var(--study-color); }
[data-games-color='spines'] .games-heading { border-bottom: 8px solid #b93825; }
[data-games-color='spines'] .game-album-top > :first-child { color:var(--study-color); border-bottom:3px solid var(--study-color); padding-bottom:5px; }
[data-games-color='labels'] .game-album-info { background:var(--study-tint); color:#302720; padding:1.25rem; margin-inline:-1.25rem; margin-bottom:-1.25rem; border-top:5px solid var(--study-color); }
[data-games-color='labels'] .games-heading h1 { text-shadow:3px 3px #d9a12e55; }
[data-games-color='halos'] .game-disc-art { isolation:isolate; }
[data-games-color='halos'] .game-disc-art::before { content:''; position:absolute; inset:-7%; z-index:-1; border-radius:50%; background:var(--study-tint); box-shadow:0 0 0 8px var(--study-color); opacity:.7; }
[data-games-color='halos'] .game-album-top { color:var(--study-color); }
.color-study-note { padding:12px 20px; background:#302720; color:#f3ead2; font:12px Arial,sans-serif; display:flex;justify-content:space-between;gap:12px; }
.color-study-note a { color:inherit; text-underline-offset:3px; }
[data-games-color='sleeves'] .game-album { background: var(--study-tint); border-top: 9px solid var(--study-color); }
[data-games-color='sleeves'] .game-album:nth-child(3n+1) { --study-tint: #e2b39b; }
[data-games-color='sleeves'] .game-album:nth-child(3n+2) { --study-tint: #e1c36f; }
[data-games-color='sleeves'] .game-album:nth-child(3n) { --study-tint: #a9ba9a; }
[data-games-color='night'] { background-color: #1e302e; color: #f3ead2; }
body[data-games-color='night'] { --body-color: #f3ead2; --ink: #f3ead2; --line: #f3ead255; }
[data-games-color='night'] .game-album { background: #2c423b; border-color: #d9a12e66; }
[data-games-color='night'] .game-album-info { background: #f3ead2; color: #302720; padding: 18px; border-top: 5px solid #d9a12e; }
[data-games-color='night'] .game-album-top > :first-child, [data-games-color='night'] .games-heading h1 { color: #e1b758; }
[data-games-color='night'] .nav-dropdown { color: #302720; }
[data-games-color='night'] .portfolio-logo-disc { filter: brightness(0) invert(90%) sepia(18%); }
[data-games-color='bands'] .game-album { background: linear-gradient(transparent 0 22%,#b93825 22% 32%,#dc632d 32% 42%,#d9a12e 42% 52%,transparent 52%); }
[data-games-color='bands'] .game-album-info { background: #f3ead2; }
[data-games-color='bands'] .games-heading { border-bottom: 10px solid #b93825; }

/* Background-only studies: the shelf stays opaque cream beneath existing cards. */
body[data-games-color^='bg-'] .games-shelf { background: #f3ead2; box-shadow: 0 0 0 16px #f3ead2; }
[data-games-color='bg-rails'] { background-image: linear-gradient(90deg,#b93825 0 1.2%,#dc632d 1.2% 2.4%,#d9a12e 2.4% 3.6%,transparent 3.6% 96.4%,#d9a12e 96.4% 97.6%,#dc632d 97.6% 98.8%,#b93825 98.8%),radial-gradient(#906b4314 .55px,transparent .8px); background-size: 100% 100%,4px 4px; }
body[data-games-color='bg-rails'] .games-main { width: min(90%,1240px); }
[data-games-color='bg-orbits'] { background-image: radial-gradient(circle at -10% 16%,#647d60 0 13%,#d9a12e 13% 16%,transparent 16%),radial-gradient(circle at 115% 70%,#d9a12e 0 18%,#b93825 18% 21%,transparent 21%),radial-gradient(#906b4314 .55px,transparent .8px); background-size: 100% 100vh,100% 100vh,4px 4px; background-attachment: fixed; }
.background-study[data-games-color='bg-orbits'] { background-size: 100% 100%,100% 100%,4px 4px; background-attachment: scroll; }
[data-games-color='bg-field'] { background-image: linear-gradient(#a9ba9a 0 360px,#f3ead2 360px); background-size: 100% 100%; }
.background-study[data-games-color='bg-field'] { background-image: linear-gradient(#a9ba9a 0 100px,#f3ead2 100px); }
@media(max-width:600px) { body[data-games-color^='bg-'] .games-shelf { box-shadow: 0 0 0 8px #f3ead2; } }
