/* Kluczogry 49a: one continuous scene, then the collection. */
html { scroll-padding-top: 0; }
body { background: linear-gradient(#0b1713 0%, #0b1713b3 75%), url('assets/games/kluczogry-49a/velvet.webp') center bottom / cover fixed, #0b1713; }
body > .site-header { position: absolute; inset: 0 0 auto; background: transparent; backdrop-filter: none; border: 0; }
main { max-width: none; padding: 0; }
.chest-intro { height: 100svh; position: relative; background: #080c0b; }
.sequence-ready .chest-intro { height: 330svh; }
.chest-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; isolation: isolate; }
.chest-poster, .chest-canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.chest-canvas { opacity: 0; }
.sequence-ready .chest-canvas { opacity: 1; }
.chest-stage h1 { position: absolute; top: max(120px, 17%); left: 20px; right: 20px; margin: 0; text-align: center; color: #eee3cc; font: 400 110px/1 Georgia, serif; text-shadow: 0 3px 30px #0008; pointer-events: none; }
.chest-skip { position: absolute; right: clamp(24px, 5%, 90px); bottom: 35px; display: flex; align-items: center; gap: 18px; min-height: 44px; color: #f1e7d1; font: 17px/1.4 Georgia, serif; padding: 8px 0; border-bottom: 1px solid #c9b18680; z-index: 4; }
.chest-skip:hover { color: #fff; }
.chest-skip svg { width: 18px; height: 18px; }
.chest-scroll { position: absolute; bottom: 44px; left: calc(50% - 12px); color: #dcc9a6; }
.chest-veil { position: absolute; inset: 0; background: #0b1713; opacity: 0; pointer-events: none; }
.chest-eyes { position: absolute; left: 0; top: 0; width: 0; height: 0; opacity: 0; pointer-events: none; }
.chest-eyes span { position: absolute; width: 8px; height: 5px; border-radius: 50%; background: #ffb4a3; box-shadow: 0 0 4px 2px #e23a49, 0 0 13px 5px #c21132b0, 0 0 23px 10px #990e243d; transform: translate(-50%, -50%); }
.games-salon { position: relative; max-width: 1400px; padding: 60px 60px 45px; margin: auto; outline: none; }
.salon-heading { display: flex; align-items: end; justify-content: space-between; gap: 25px; margin-bottom: 36px; }
.salon-heading p { margin: 0 0 15px; font: 12px/1.4 Arial,sans-serif; color: #b9c7bc; }
.salon-heading h2 { font: 400 43px/1.16 Georgia,serif; color: #e9e1cf; margin: 0; }
.salon-heading > span { font: italic 16px/1.5 Georgia,serif; color: #bdc5b9; text-align: right; max-width: 230px; }
.games-grid { display: flex; align-items: stretch; gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 8px 1px 24px; scroll-padding-inline: 1px; overscroll-behavior-x: contain; }
.games-grid::-webkit-scrollbar { display: none; }
.games-grid.has-tail::after { content: ''; flex: 0 0 var(--tail-width); }
.games-grid:focus-visible { outline: 1px solid #d8c09a; outline-offset: 6px; }
.games-grid > .game-cover { flex: 0 0 calc((100% - 56px) / 3); scroll-snap-align: start; height: auto; aspect-ratio: 0.65; margin: 0; border-radius: 4px; }
.game-cover img { object-position: center; }
.game-cover.city img { object-position: 50% 36%; }
.game-cover::after { inset: 11px; border-color: #d6bc8045; }
.game-cover::before { background: linear-gradient(180deg, #060b0b55, transparent 30%, #09120f25 42%, #09120fec 77%, #09120f); }
.game-cover .cover-copy { padding: 0 27px 28px; }
.game-cover .cover-copy h2 { font-size: 33px; min-height: 74px; }
.game-cover .description { font-size: 14px; }
.game-cover .genre { font-size: 10px; }
.game-cover .cover-top { padding: 25px 27px; }
.available:hover { transform: translateY(-3px); }
.carousel-controls { display: flex; justify-content: space-between; align-items: center; color: #aab8af; font: 12px/1.5 Arial,sans-serif; }
.carousel-controls > div { display: flex; gap: 12px; }
.carousel-controls button { width: 46px; height: 46px; border: 1px solid #b6a88880; background: transparent; color: #e7d4ac; display: grid; place-items: center; border-radius: 50%; cursor: pointer; }
.carousel-controls button svg { width: 20px; height: 20px; }
.carousel-controls button:hover:not(:disabled) { background: #e8d8b512; border-color: #e8d8b5; }
.carousel-controls button:disabled { opacity: .24; cursor: default; }
.carousel-controls button:focus-visible { outline: 2px solid #eee3cc; outline-offset: 4px; }
.carousel-controls.is-single-page > div { visibility: hidden; }
footer { max-width: 1280px; margin: 0 auto; }
@media (min-width: 1700px) { .chest-stage h1 { font-size: 144px; } }
@media (max-width: 1150px) {
 .chest-stage h1 { font-size: 88px; }
 .games-salon { padding-left: 32px; padding-right: 32px; }
 .games-grid { gap: 20px; }
 .games-grid > .game-cover { flex-basis: calc((100% - 40px) / 3); aspect-ratio: .57; }
 .game-cover .cover-copy { padding: 0 20px 24px; }
 .game-cover .cover-copy h2 { font-size: 28px; min-height: 63px; }
 .game-cover .cover-top { padding: 22px 20px; }
 .game-cover .description { font-size: 12px; }
 .game-cover .genre { font-size: 9px; }
 footer { margin: 0 32px; }
}
@media (max-width: 760px) {
 .sequence-ready .chest-intro { height: 270svh; }
 .chest-stage h1 { top: 19%; font-size: 60px; }
 .chest-poster { width: 175%; height: auto; max-width: none; top: 50%; left: 50%; transform: translate(-50%, -50%); mask-image: linear-gradient(transparent, #000 22%, #000 80%, transparent); }
 .chest-canvas { mask-image: linear-gradient(transparent 24%, #000 36%, #000 64%, transparent 76%); }
 .chest-stage::after { content: ''; position: absolute; inset: 0; background: linear-gradient(#080c0b 20%, transparent 35%, transparent 65%, #080c0b 86%); pointer-events: none; z-index: -1; }
 .chest-poster, .chest-canvas { z-index: -2; }
 .chest-stage h1 { z-index: 1; }
 .chest-skip { bottom: 46px; right: 24px; }
 .chest-scroll { left: 24px; bottom: 56px; }
 .games-salon { padding: 40px 24px 30px; }
 .salon-heading { margin-bottom: 22px; }
 .salon-heading h2 { font-size: 34px; max-width: 330px; }
 .salon-heading > span { display: none; }
 .games-grid { max-width: none; gap: 20px; margin: 0; }
 .games-grid > .game-cover { flex-basis: 100%; aspect-ratio: .66; max-height: 650px; min-height: 490px; }
 .game-cover .cover-copy { padding: 0 29px 29px; }
 .game-cover .cover-copy h2 { font-size: 36px; min-height: 80px; }
 .game-cover .description { font-size: 14px; }
 .game-cover .genre { font-size: 10px; }
 .game-cover .cover-top { padding: 25px 29px; }
 footer { margin: 0 24px; }
}
@media (max-width: 360px) { .chest-stage h1 { font-size: 49px; } .game-cover .cover-copy h2 { font-size: 31px; } .game-cover .cover-copy { padding-inline: 23px; } }
@media (prefers-reduced-motion: reduce) {
 .sequence-ready .chest-intro { height: 100svh; }
 .chest-canvas, .chest-eyes { display: none; }
}
