/* Layered matte sleeve. Opt-in via the shared game profile, never by page URL. */
body.catalog-home .game-detail .gd-rental-panel.gd-rental-envelope{
 --envelope-cut:160px;--envelope-disc:60%;--envelope-disc-top:-10px;--envelope-disc-right:0px;
 position:relative;isolation:isolate;padding:82px 24px 22px;border:0;border-radius:22px;
 background:none;box-shadow:0 16px 30px -12px rgba(0,0,0,.6);transition:none;
}
.rental-envelope-art{position:absolute;inset:0;z-index:-1;pointer-events:none;border-radius:inherit;}
.rental-envelope-disc-wrap{position:absolute;right:var(--envelope-disc-right);top:var(--envelope-disc-top);width:var(--envelope-disc);aspect-ratio:1;transform:rotate(-8deg);filter:drop-shadow(-3px 4px 5px #0009);border-radius:50%;overflow:hidden}
.rental-envelope-disc{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:contain;transform:rotate(0deg);will-change:transform;transition:transform 850ms cubic-bezier(.4,0,.2,1)}
.rental-envelope-face{position:absolute;inset:0;border-radius:inherit;clip-path:polygon(0 0,50% 0,100% var(--envelope-cut),100% 100%,0 100%);background:linear-gradient(145deg,rgba(0,0,0,.02),rgba(0,0,0,.16) 48%,rgba(0,0,0,.30)),url('rental-matte.webp') repeat;background-size:auto,126px 39.375px;background-color:#191918;box-shadow:inset 0 1px 1px #e5dbc512,inset 1px 0 1px #c9b99408}
.game-detail .rental-envelope-edge{position:absolute;top:0;right:0;width:50%;height:var(--envelope-cut);overflow:visible}
/* Only the disc rotates; sleeve, rim and shadow remain stationary. */
@media(hover:hover) and (pointer:fine){
 .gd-rental-envelope.is-envelope-ready:hover .rental-envelope-disc{transform:rotate(180deg)}
}
.gd-rental-envelope.is-envelope-peeking .rental-envelope-disc{transform:rotate(180deg)}
@media(prefers-reduced-motion:reduce){
 .gd-rental-envelope .rental-envelope-disc{transition:none;transform:none!important;will-change:auto}
}
body.catalog-home .game-detail .gd-rental-envelope .gd-prices{grid-template-columns:1.08fr 1fr;gap:24px;margin-bottom:20px;position:relative}
body.catalog-home .game-detail .gd-rental-envelope .gd-prices strong{font-size:26px;line-height:1.3;font-weight:650;color:var(--top-accent)}
body.catalog-home .game-detail .gd-rental-envelope .gd-prices em{font-size:12px;font-weight:500}
body.catalog-home .game-detail .gd-rental-envelope .gd-prices .gd-price-label{font-size:12px;gap:5px;margin-bottom:10px;white-space:nowrap}
body.catalog-home .game-detail .gd-rental-envelope .gd-prices span:not(.gd-price-label){font-size:13px;line-height:1.5;margin-top:5px}
body.catalog-home .game-detail .gd-rental-envelope .home-game-action{height:auto;min-height:46px;padding:10px 9px;white-space:normal;font-size:14px;position:relative}
body.catalog-home .game-detail .gd-rental-envelope:not(.is-selected) .home-game-add:not(.home-game-notify){background:linear-gradient(115deg,#d0b78c,#c9b994 55%,#bfa780);border-color:#d4c19d;color:#0c0e0e;font-weight:600}
body.catalog-home .game-detail .gd-rental-envelope .gd-calculator{margin-top:12px;border-color:var(--rental-secondary-border);background:var(--rental-secondary-background)}
body.catalog-home .game-detail .gd-rental-envelope .gd-pickup{font-size:14px;gap:12px;margin-top:22px}
body.catalog-home .game-detail .gd-rental-envelope .gd-pickup>svg{width:24px;height:24px;flex:none;color:var(--top-accent)}
body.catalog-home .game-detail .gd-rental-envelope .gd-pickup small{font-size:13px;line-height:1.5;margin-top:6px}
@media(max-width:900px) and (min-width:701px){
 body.catalog-home .game-detail .gd-rental-panel.gd-rental-envelope{padding-inline:20px;--envelope-cut:140px}
 body.catalog-home .game-detail .gd-rental-envelope .gd-prices{gap:18px}
 body.catalog-home .game-detail .gd-rental-envelope .gd-prices strong{font-size:23px}
}
@media(max-width:700px){
 body.catalog-home .game-detail .gd-rental-panel.gd-rental-envelope{--envelope-cut:145px;padding:76px 20px 22px;border-radius:20px}
}
@media(max-width:360px){
 body.catalog-home .game-detail .gd-rental-panel.gd-rental-envelope{--envelope-cut:125px;padding:68px 16px 20px}
 body.catalog-home .game-detail .gd-rental-envelope .gd-prices{gap:14px}
 body.catalog-home .game-detail .gd-rental-envelope .gd-prices strong{font-size:23px}
 body.catalog-home .game-detail .gd-rental-envelope .gd-prices .gd-price-label{font-size:11px}
}

/* Status occupies the envelope's previously empty upper-left surface. */
body.catalog-home .game-detail .gd-rental-panel.gd-rental-envelope{padding-top:24px}
body.catalog-home .game-detail .gd-rental-envelope .gd-rental-availability{max-width:50%;padding-inline:12px;margin-bottom:28px}
@media(max-width:700px){
 body.catalog-home .game-detail .gd-rental-panel.gd-rental-envelope{padding-top:22px}
 body.catalog-home .game-detail .gd-rental-envelope .gd-rental-availability{font-size:13px;padding-inline:10px;gap:8px}
}

@media(min-width:1100px){
 body.catalog-home .game-detail:has(.gd-rental-envelope) .gd-content{grid-template-columns:minmax(0,1fr) 420px}
 body.catalog-home .game-detail .gd-rental-panel.gd-rental-envelope{--envelope-cut:172px}
}

/* Muted mineral colours suit the matte sleeve; dots carry the status emphasis. */
body.catalog-home .game-detail .gd-rental-envelope .gd-rental-availability{
 --availability-dot:#CFBA90;
 border-color:rgba(201,185,148,.48);
 background:rgba(12,14,14,.24);
 color:var(--top-accent);
}
body.catalog-home .game-detail .gd-rental-envelope .gd-rental-availability i{background:var(--availability-dot)}
body.catalog-home .game-detail .gd-rental-envelope .gd-rental-availability.is-available{
 --availability-dot:#A1C28F;
 border-color:rgba(151,177,136,.52);
 color:#B0C8A3;
}

/* A selected disc belongs to the basket, including on a fresh page load. */
[data-envelope-cart-motion].is-selected:not(.is-envelope-flying) .rental-envelope-disc-wrap{visibility:hidden}
[data-envelope-cart-motion].is-selected:not(.is-envelope-flying) .rental-envelope-disc{transform:rotate(0deg)!important}
.rental-envelope-cart-flight{position:fixed;z-index:10000;pointer-events:none;object-fit:contain;border-radius:50%;will-change:transform,opacity;contain:layout style paint}
.rental-envelope-extraction{position:fixed;inset:0;z-index:10000;pointer-events:none;overflow:hidden}

/* The disc stays solid until it reaches the basket; disappearance is by removal. */
.rental-envelope-disc,.rental-envelope-cart-flight{opacity:1;mix-blend-mode:normal}

/* Generated disc artwork has a lightly translucent print layer.
   A solid physical substrate follows the disc through extraction and flight;
   the centre hole and the outside of the circular rim remain transparent. */
.rental-envelope-disc,.rental-envelope-cart-flight{
 background:radial-gradient(circle closest-side at 50% 49.5%,transparent 0 11.5%,#b9c6d0 12% 98%,transparent 99%);
}

/* Return: reveal the original only at the seamless handoff into the pocket. */
[data-envelope-cart-motion].is-envelope-returning:not(.is-envelope-inserting) .rental-envelope-disc-wrap{visibility:hidden}
[data-envelope-cart-motion].is-envelope-returning .rental-envelope-disc{transform:rotate(0deg)!important;transition:none}
