/* Incremental homepage additions. The existing Matrix hero and desktop layout stay intact. */
@media (max-width: 960px) {
    #px-home .px-hero__showcase { display: block !important; width: 100%; max-width: 600px; margin: 0 auto; }
}
@media (max-width: 720px) {
    #px-home .px-hero { padding: 28px 0 32px !important; }
    #px-home .px-hero__inner { gap: 16px !important; }
    #px-home .px-hero__copy { display: contents; }
    #px-home .px-hero__live-pill { order: 0; justify-self: center; margin: 0; }
    #px-home .px-hero__title { order: 1; margin: 0; font-size: clamp(28px, 7.8vw, 48px); text-align: center; }
    #px-home .px-hero__lead { order: 2; margin: 0 auto; max-width: 38ch; text-align: center; font-size: 15px; line-height: 1.4; }
    #px-home .px-hero__showcase { order: 3; aspect-ratio: 4 / 3; border-radius: 16px; }
    #px-home .px-hero__showcase img { object-position: center 70%; }
    #px-home .px-hero__live { display: block !important; order: 4; margin: 0; padding: 0; border: 0; width: 100%; }
    #px-home .px-hero__featured { margin-bottom: 10px; }
    #px-home .px-hero__featured-title { font-size: 16px; line-height: 1.4; }
    #px-home .px-live__meta { gap: 7px; margin-top: 9px; }
    #px-home .px-live__chip { font-size: 11px; padding: 5px 7px; }
    #px-home .px-live__chip strong { font-size: 10px; }
    #px-home .px-hero__cta-row { order: 5; margin: 0; }
    #px-home .px-hero__cta-row .px-btn { width: 100%; font-size: 12px; line-height: 1.4; padding: 17px 12px; }
    #px-home .px-hero__showcase-tag { top: 12px; left: 12px; font-size: 9px; letter-spacing: .1em; }
}

.px-home-mystery { padding: 64px 0 72px; scroll-margin-top: 120px; background: radial-gradient(70% 35% at 50% 0, #153b242b, transparent), #000; }
.px-home-mystery__panel { position: relative; padding: 42px 24px 28px; border: 1px solid #ff414161; border-radius: 26px; text-align: center; overflow: hidden; }
.px-home-mystery__head { position: relative; z-index: 2; max-width: 740px; margin: auto; }
.px-home-mystery__head .px-section__eyebrow { color: #ffc5ba; font-size: 10px; letter-spacing: .18em; }
.px-home-mystery__head h2 { font-size: clamp(36px, 5.4vw, 68px); }
.px-home-mystery__head h2 span { color: #25ff5a; }
.px-home-mystery__rule { margin: 17px 0; color: #fff; font: 700 clamp(17px, 2vw, 23px)/1.35 "Rajdhani", sans-serif; }
.px-home-mystery__intro { margin: 0 auto 9px; font: 700 21px/1.35 "Rajdhani", sans-serif; color: #e9ffe9; }
.px-home-mystery__copy { max-width: 58ch; margin: auto; font: 500 17px/1.5 "Rajdhani", sans-serif; color: #b4beb6; }
/* The shared scene normally receives these basics from product.css. Keep them scoped here. */
#home-mystery .px-mystery__float { position: absolute; z-index: 2; align-items: center; justify-content: center; font-family: "Orbitron", sans-serif; font-weight: 800; text-align: center; color: #d3f494; }
#home-mystery .px-mystery__float--cash { color: #ffd473; }
#home-mystery .px-mystery__float--discount { color: #da9eff; }
#home-mystery .px-mystery__float--surprise { color: #ff908b; }
#home-mystery .px-mystery__float--x2 { color: #80dfff; }
.px-home-mystery__entry { position: relative; z-index: 3; margin: -18px auto 34px; }
.px-home-mystery__entry a { text-decoration: none; }
.px-home-gallery { max-width: 1050px; margin: 0 auto; padding-top: 22px; border-top: 1px solid #ffffff1f; }
.px-home-gallery__heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; text-align: left; margin-bottom: 16px; }
.px-home-gallery__heading h3 { margin: 0; font: 700 15px/1.4 "Orbitron", sans-serif; color: #fff; }
.px-home-gallery__heading > span { color: #a9b7ac; font: 600 15px/1.4 "Rajdhani", sans-serif; }
.px-home-gallery__photos { display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x mandatory; padding: 4px 2px 12px; scrollbar-width: thin; scrollbar-color: #864333 #101611; }
.px-home-gallery__photos a { display: block; position: relative; flex: 1 0 110px; min-width: 0; border: 1px solid #945650; border-radius: 12px; overflow: hidden; scroll-snap-align: start; background: #07100c; transition: border-color .2s, transform .2s; }
.px-home-gallery__photos img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; }
.px-home-gallery__photos a > span { position: absolute; right: 6px; bottom: 6px; width: 28px; height: 28px; display: grid; place-items: center; color: #fff; background: #000b; border: 1px solid #fff5; border-radius: 50%; }
.px-home-gallery__photos a:focus-visible { outline: 3px solid #25ff5a; outline-offset: -4px; }
@media (hover: hover) { .px-home-gallery__photos a:hover { border-color: #25ff5a; transform: translateY(-3px); } }
.px-home-rewards { padding-top: 34px; }
.px-home-rewards > h3 { text-align: center; color: #fff; font: 700 clamp(17px, 2vw, 23px)/1.4 "Orbitron", sans-serif; margin: 0 0 24px; }
.px-home-rewards__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.px-home-rewards__card { --reward-color: #51ff88; display: flex; flex-direction: column; padding: 27px; border: 1px solid #44ba6c4d; border-radius: 18px; background: radial-gradient(120% 90% at 0 0, #12362180, transparent), #070d09; color: #d3dfd7; text-decoration: none; transition: transform .2s, border-color .2s; }
.px-home-rewards__card--top { --reward-color: #f5d97a; border-color: #d4af3759; background: radial-gradient(120% 90% at 0 0, #30270b80, transparent), #0b0d07; }
.px-home-rewards__card--mega { --reward-color: #ff9aab; border-color: #e0546859; background: radial-gradient(120% 90% at 0 0, #3b0b1780, transparent), #0d0709; }
.px-home-rewards__icon { display: grid; place-items: center; width: 50px; height: 50px; border: 1px solid currentColor; border-radius: 14px; color: var(--reward-color); margin-bottom: 19px; box-shadow: 0 0 24px -14px currentColor; }
.px-home-rewards__card h4 { color: #fff; font: 800 16px/1.35 "Orbitron", sans-serif; margin: 0 0 11px; }
.px-home-rewards__card p { margin: 0 0 22px; font: 500 18px/1.45 "Rajdhani", sans-serif; }
.px-home-rewards__link { margin-top: auto; color: var(--reward-color); font: 700 12px/1.5 "Orbitron", sans-serif; }
.px-home-rewards__link > span { float: right; }
@media (hover: hover) { .px-home-rewards__card:hover { transform: translateY(-4px); border-color: var(--reward-color); } }
.px-home-rewards__card:focus-visible { outline: 2px solid var(--reward-color); outline-offset: 4px; }

/* Existing carousel treatment, with real winner portraits and controls on desktop too. */
#home-winners { padding: 68px 0; min-height: 0; scroll-margin-top: 120px; }
#home-winners .px-next-winner__title { font-size: clamp(30px, 4.6vw, 58px); line-height: 1.1; text-wrap: balance; }
#home-winners .px-next-winner__lead { max-width: 60ch; margin: 18px auto 24px; }
#home-winners .px-next-winner__viewport { overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-inline: contain; margin: 0; }
#home-winners .px-next-winner__viewport::-webkit-scrollbar { display: none; }
#home-winners .px-next-winner__track { display: flex; width: max-content; gap: 20px; padding: 4px 2px 22px; }
#home-winners .px-next-winner__showcase { flex: 0 0 350px; width: 350px; display: flex; flex-direction: column; scroll-snap-align: start; scroll-snap-stop: always; margin: 0; }
#home-winners .px-next-winner__media { display: block; aspect-ratio: 4 / 5; height: auto; background: #060b08; }
#home-winners .px-next-winner__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
#home-winners .px-next-winner__media[data-home-video]::after { content: "▶"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; border: 1px solid #f5d97a; border-radius: 50%; display: grid; place-items: center; color: #fff; padding-left: 3px; background: #091009bd; box-shadow: 0 0 35px #0009; font: 22px/1 Arial, sans-serif; transition: background .2s; }
#home-winners .px-next-winner__media:hover::after { background: #335e34e6; }
#home-winners .px-next-winner__card-body { display: flex; flex-direction: column; flex: 1; gap: 13px; }
#home-winners .px-next-winner__prize-title { min-height: 3.9em; margin: 0; }
#home-winners .px-next-winner__winner-name { min-height: 1.2em; font-size: 21px; overflow-wrap: anywhere; }
#home-winners .px-next-winner__card-body > .px-link { margin-top: auto; font-size: 10px; padding-top: 4px; }
#home-winners .px-next-winner__controls { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 3px; }
#home-winners .px-next-winner__controls > span { color: #bdc5bc; font: 700 10px/1.4 "Orbitron", sans-serif; }
#home-winners .px-next-winner__arrow { width: 44px; height: 44px; border-radius: 50%; border: 1px solid #d4af3766; background: #d4af371a; color: #f5d97a; font-size: 20px; cursor: pointer; }
#home-winners :is(a, button):focus-visible { outline: 2px solid #f5d97a; outline-offset: -4px; }

.px-home-media { padding: 0; width: min(1100px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); border: 1px solid #477e54; border-radius: 20px; background: #060b08; color: #effff2; overflow: auto; box-shadow: 0 30px 100px #000b; }
.px-home-media::backdrop { background: #000e; }
.px-home-media__header { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 15px 20px; }
.px-home-media__header h2 { margin: 0; font: 700 clamp(14px, 2vw, 19px)/1.4 "Rajdhani", sans-serif; }
.px-home-media button { width: 44px; height: 44px; flex: 0 0 44px; border: 1px solid #70a27a80; border-radius: 50%; color: #e9ffe9; background: #14311c; font: 24px/1 Arial, sans-serif; cursor: pointer; }
.px-home-media button:focus-visible { outline: 2px solid #25ff5a; outline-offset: 3px; }
.px-home-media__stage { display: grid; place-items: center; background: #000; min-height: 160px; }
.px-home-media__stage :is(img, video) { display: block; max-width: 100%; width: auto; height: min(72dvh, 800px); max-height: calc(100dvh - 180px); object-fit: contain; }
.px-home-media [hidden] { display: none !important; }
.px-home-media__stage p { padding: 24px; font: 600 18px/1.5 "Rajdhani", sans-serif; }
.px-home-media__nav { display: flex; align-items: center; justify-content: center; gap: 28px; padding: 12px; font: 700 14px/1 "Orbitron", sans-serif; }
body.px-home-media-open { overflow: hidden; }
@media (max-width: 760px) {
    .px-home-mystery { padding: 32px 0 40px; }
    .px-home-mystery > .px-container { padding-inline: 12px; }
    .px-home-mystery__panel { padding: 28px 8px 16px; border-radius: 20px; }
    .px-home-mystery__head { padding-inline: 8px; }
    .px-home-mystery__head .px-section__eyebrow { font-size: 8px; letter-spacing: .12em; }
    .px-home-mystery__rule { margin: 12px 0; }
    .px-home-mystery__intro { font-size: 19px; }
    .px-home-mystery__copy { font-size: 16px; }
    .px-home-mystery__entry { margin: 2px 0 27px; }
    .px-home-mystery__entry .px-mystery-mercedes__cta { font-size: 9px; line-height: 1.6; }
    .px-home-gallery { margin: 0 8px; padding-top: 17px; }
    .px-home-gallery__heading { display: block; }
    .px-home-gallery__heading h3 { font-size: 12px; margin-bottom: 8px; }
    .px-home-gallery__heading > span { font-size: 14px; }
    .px-home-gallery__photos { gap: 9px; }
    .px-home-gallery__photos a { flex: 0 0 96px; }
    .px-home-rewards { padding-top: 26px; }
    .px-home-rewards__grid { grid-template-columns: 1fr; gap: 12px; }
    .px-home-rewards__card { padding: 21px 20px 20px 82px; position: relative; }
    .px-home-rewards__icon { position: absolute; top: 22px; left: 18px; width: 44px; height: 44px; }
    .px-home-rewards__card h4 { font-size: 14px; }
    .px-home-rewards__card p { font-size: 17px; margin-bottom: 16px; }
    .px-home-rewards__link { font-size: 10px; }
    #home-winners { padding: 42px 0; }
    #home-winners .px-next-winner__viewport { margin-inline: -12px; }
    #home-winners .px-next-winner__track { gap: 14px; padding-inline: 12px; }
    #home-winners .px-next-winner__showcase { flex-basis: min(79vw, 340px); width: min(79vw, 340px); }
    #home-winners .px-next-winner__title { font-size: clamp(28px, 7.5vw, 42px); }
    #home-winners .px-next-winner__cta .px-btn { padding: 15px 16px; font-size: 10px; line-height: 1.4; }
    #home-winners .px-next-winner__controls { gap: 10px; }
    #home-winners .px-next-winner__controls > span { font-size: 8px; }
    .px-home-media { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); border-radius: 14px; }
    .px-home-media__header { padding: 10px 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .px-home-gallery__photos a, .px-home-rewards__card { transition: none; }
    #home-winners .px-next-winner__viewport { scroll-behavior: auto; }
}
