/* The Binder Society collector UI contract. See THEME-STANDARD.md.
   Keep the original eight theme files intact. Use this layer for shared corrections.
   Landing loads last and retains its approved campaign composition. */
/* Pack discovery: shared release frame; artwork varies, controls do not. */
body[data-area=rip] .pack-view-tabs{display:flex;gap:24px;border-bottom:1px solid #ffffff16;margin:20px 0 24px}
body[data-area=rip] .pack-view-tabs a{min-height:44px;display:flex;align-items:center;color:var(--muted);font:600 14px 'DM Sans',sans-serif;border-bottom:3px solid transparent;text-decoration:none}
body[data-area=rip] .pack-view-tabs a.active{color:var(--text);border-color:var(--accent)}
body[data-area=rip] .pack-discovery-head h1{font:800 clamp(34px,5vw,48px)/1.04 var(--heading);text-transform:uppercase;margin:8px 0}
body[data-area=rip] .pack-discovery-head h1 em{color:var(--accent);font-style:normal}
body[data-area=rip] .pack-discovery-head>div>p:last-child{color:var(--muted);font-size:14px}
body[data-area=rip] .drop-cadence,body[data-area=rip] .pack-language-filters{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0}
body[data-area=rip] .drop-cadence a{display:inline-flex;align-items:center;padding:8px 16px;text-decoration:none}
body[data-area=rip] .drops-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
body[data-area=rip] .drop-art-card{--drop-glow:#d33c36;position:relative;isolation:isolate;display:grid;grid-template-columns:1.05fr 1fr;min-height:330px;border:1px solid #793746;border-radius:14px;background:radial-gradient(ellipse at 85% 95%,#80233288,transparent 65%),linear-gradient(125deg,#180b10,#090608 60%,#24101a);overflow:hidden;padding:28px;gap:8px}
body[data-area=rip] .drop-art-card.aurora{--drop-glow:#e586bd;background:radial-gradient(ellipse at 90% 85%,#80346b66,transparent 65%),linear-gradient(125deg,#180b10,#090608 60%,#24101a)}
body[data-area=rip] .drop-art-copy{position:relative;z-index:2;align-self:center;min-width:0}
body[data-area=rip] .drop-art-copy .eyebrow{font-size:10px;letter-spacing:.13em;margin:0 0 12px}
body[data-area=rip] .drop-art-copy h2{font:800 clamp(28px,3vw,42px)/1.05 var(--heading);text-transform:uppercase;margin:0 0 12px;overflow-wrap:anywhere;text-shadow:none}
body[data-area=rip] .drop-tagline{font-size:13px;line-height:1.6;color:#dbbdc5;margin:0 0 18px}
body[data-area=rip] .drop-status{display:block;font-size:11px;line-height:1.5;color:var(--muted);margin-bottom:18px}
body[data-area=rip] .drop-saved-label{display:block;color:var(--accent);font-size:11px;margin-top:10px}
body[data-area=rip] .drop-art-copy .button{min-height:44px;white-space:normal;padding:10px 14px}
body[data-area=rip] .drop-art-scene{position:relative;min-width:0;display:flex;justify-content:center;align-items:center}
body[data-area=rip] .drop-art-scene:before{content:'';position:absolute;inset:0 -30% -30%;background:url('assets/drop-atmosphere.svg') center bottom/100% 100% no-repeat;opacity:.85;mix-blend-mode:screen}
body[data-area=rip] .drop-art-scene:after{content:'';position:absolute;width:85%;height:22%;bottom:5%;border-radius:50%;background:var(--drop-glow);filter:blur(25px);opacity:.55;z-index:-1}
body[data-area=rip] .drop-art-scene img{position:relative;width:100%;max-width:180px;height:260px;object-fit:contain;transform:rotate(12deg);filter:drop-shadow(-10px 16px 8px #000a);transition:transform .25s ease}
body[data-area=rip] .aurora .drop-art-scene img{transform:rotate(-10deg)}
body[data-area=rip] .drop-orbit{position:absolute;width:115%;height:60%;border:1px solid #ff9baa30;border-radius:50%;transform:rotate(-35deg);box-shadow:0 0 30px #ff557722,inset 0 0 30px #ff557711}
body[data-area=rip] .drop-art-card.compact{min-height:180px;grid-template-columns:1fr 170px;padding:20px 24px;margin:0 0 24px}
body[data-area=rip] .drop-art-card.compact .drop-art-scene img{height:160px;max-width:115px}
body[data-area=rip] .drop-art-card.compact h2{font-size:30px;margin-bottom:8px}
body[data-area=rip] .drop-art-card.compact .drop-tagline{display:none}
body[data-area=rip] .drop-art-card.compact .drop-status{margin-bottom:10px}
body[data-area=rip] .drop-detail-panel,body[data-area=rip] .drop-how{margin:24px 0;padding:24px;border:1px solid #59313c;border-radius:14px;background:#100b0d}
body[data-area=rip] .drop-detail-panel p,body[data-area=rip] .drop-how p{color:var(--muted);line-height:1.6}
body[data-area=rip] .drop-detail-panel h2,body[data-area=rip] .drop-how h2{font:700 30px/1.1 var(--heading);text-transform:uppercase}
body[data-area=rip] .drop-detail-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:20px}
body[data-area=rip] .drop-how>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin:24px 0}
body[data-area=rip] .drop-how b{color:var(--accent);font-size:12px}
body[data-area=rip] .drop-how h3{font:700 24px var(--heading);margin:6px 0}
body[data-area=rip] .drop-how article p{font-size:13px;margin:0}
body[data-area=rip] .home-drop-feature{margin:32px 0}
body[data-area=rip] .pack-discovery-grid{gap:16px}
body[data-area=rip] .pack-discovery-grid .rip-shelf-pack{border:1px solid #ffffff16;border-radius:12px;background:radial-gradient(ellipse at 50% 45%,#52202b44,transparent 70%),#0b090a;overflow:hidden}
body[data-area=rip] .pack-discovery-grid .rip-pack-pick{padding:16px 12px 0}
body[data-area=rip] .pack-discovery-grid .rip-pack-art{height:220px;margin:0 0 12px}
body[data-area=rip] .pack-discovery-grid .rip-pack-price{background:none;box-shadow:none;border:0;font-size:22px;color:var(--accent);margin-top:4px;min-height:32px}
body[data-area=rip] .pack-discovery-grid .rip-top-hit{font-size:10px}
@media(max-width:700px){
 body[data-area=rip] .drops-grid{grid-template-columns:minmax(0,1fr);gap:16px}
 body[data-area=rip] .drop-art-card{padding:22px 20px;min-height:290px;grid-template-columns:1fr 45%}
 body[data-area=rip] .drop-art-scene img{height:230px;max-width:140px}
 body[data-area=rip] .drop-art-card.compact{grid-template-columns:1fr 32%;padding:18px;min-height:180px}
 body[data-area=rip] .drop-art-card.compact h2{font-size:27px}
 body[data-area=rip] .drop-art-card.compact .drop-art-scene img{height:150px;max-width:100%}
 body[data-area=rip] .drop-art-copy h2{font-size:32px}
 body[data-area=rip] .drop-how>div{grid-template-columns:1fr;gap:20px}
 body[data-area=rip] .drop-detail-panel,body[data-area=rip] .drop-how{padding:20px}
 body[data-area=rip] .drop-detail-actions{flex-direction:column}
 body[data-area=rip] .pack-discovery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 body[data-area=rip] .pack-discovery-grid .rip-pack-art{height:175px;margin-bottom:8px}
 body[data-area=rip] .pack-discovery-grid h3{font-size:22px;margin:6px 0}
}
@media(prefers-reduced-motion:reduce){body[data-area=rip] .drop-art-scene img{transition:none}}
body[data-area=rip]{
 --ui-space-1:4px;--ui-space-2:8px;--ui-space-3:12px;--ui-space-4:16px;--ui-space-5:24px;
 --ui-panel-border:#59313c;--ui-radius-control:9px;--ui-radius-panel:12px;
 --ui-title:clamp(34px,4vw,48px);--card-value-color:#ffbdc7;
}
body[data-area=rip] .combined-binder-header>h1,
body[data-area=rip] .rip-binder-empty>h1,
body[data-area=rip] .page-head h1,
body[data-area=rip] .article>h1,
body[data-area=rip] .card-details>h1{font:800 var(--ui-title)/1.04 var(--heading);letter-spacing:.015em;text-shadow:none;overflow-wrap:anywhere}
body[data-area=rip] .combined-binder-header{margin:0}
body[data-area=rip] .rip-binder-content{margin-top:20px}
body[data-area=rip] .binder-view-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:12px}
body[data-area=rip] .binder-view-toolbar .filters{margin:0}
body[data-area=rip] .rip-set-heading h2{font:700 30px/1.08 var(--heading);text-shadow:none;overflow-wrap:anywhere}
body[data-area=rip] .filter-button{font:600 13px/1.3 'DM Sans',sans-serif;min-height:44px;border-radius:var(--ui-radius-control)}
body[data-area=rip] .filter-button.active{background:var(--collector-gradient);border-color:#cf697b;color:var(--text)}
body[data-area=rip] :is(.rip-binder-tools,.binder-ownership,.rip-find)>summary{min-height:44px;align-content:center;font:500 13px/1.5 'DM Sans',sans-serif;color:var(--muted)}
body[data-area=rip] .card-price-large,
body[data-area=rip] .card-reference-block .inspection-value{font:700 36px/1.1 var(--heading);color:var(--card-value-color);font-variant-numeric:tabular-nums;letter-spacing:0}
body[data-area=rip] .card-reference-block{text-align:center;margin:20px 0}
body[data-area=rip] .card-reference-block .tiny{margin:6px 0 0;color:var(--muted);font-size:11px}
body[data-area=rip] .card-details .card-price-large{margin:16px 0 6px}
body[data-area=rip] .rip-binder-card-info .card-actions .button,
body[data-area=rip] .rip-binder-card-info .card-actions .button:first-child{background:var(--panel);border:1px solid #b04c605e;color:var(--text);box-shadow:none;border-radius:var(--ui-radius-control)}
body[data-area=rip] .rip-binder-card-info .card-actions .button:hover:not(:disabled){background:var(--panel2)}
body[data-area=rip] .button.gold{background:var(--collector-gradient);color:var(--text);border:1px solid #cf697b;box-shadow:var(--collector-halo)}
body[data-area=rip] :is(button,a,input,select,textarea,summary):focus-visible{outline:2px solid var(--focus);outline-offset:3px}
body[data-area=rip] button:disabled{cursor:not-allowed;opacity:.5}
body[data-area=rip] .button:disabled:hover{filter:none;box-shadow:none}
body[data-area=rip] .modal .close-modal,
body[data-area=rip] .modal:has(.rip-theatre) .close-modal,
body[data-area=rip] .modal:has(.rip-results-page) .close-modal{min-width:44px;min-height:44px}
body[data-area=rip] .filters{min-width:0;flex-wrap:wrap;gap:8px}
body[data-area=rip] .filters .control{min-width:0}
@media(max-width:600px){
 body[data-area=rip] .binder-view-toolbar{gap:8px}
 body[data-area=rip] .card-details>h1{font-size:34px}
 body[data-area=rip] .rip-set-heading h2{font-size:28px}
 body[data-area=rip] .filters .filter-search{flex:1 1 100%;min-width:0}
}
/* Read-only imported set library: uses the shared collector palette and buttons. */
body[data-area=rip] .library-set-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:20px;margin-top:24px}
body[data-area=rip] .library-set-tile{min-width:0;display:flex;flex-direction:column;gap:12px;padding:20px}
body[data-area=rip] .library-set-tile h2{font:700 28px/1.08 var(--heading);text-shadow:none;overflow-wrap:anywhere;margin:0}
body[data-area=rip] .library-set-tile p{margin:0}
body[data-area=rip] .library-set-tile .button{margin-top:auto}
body[data-area=rip] .library-set-fan{position:relative;isolation:isolate;display:grid;grid-template-columns:1fr;place-items:center;height:216px;padding:16px 0;background:radial-gradient(ellipse at bottom,rgba(196,33,57,.18),transparent 75%);overflow:hidden}
body[data-area=rip] .library-set-fan img{grid-area:1/1;display:block;width:40%;max-width:120px;height:auto;max-height:168px;aspect-ratio:252/352;object-fit:contain;border-radius:6px}
body[data-area=rip] .library-set-fan img:first-child{transform:translateX(-56%) rotate(-12deg)}
body[data-area=rip] .library-set-fan img:last-child{transform:translateX(56%) rotate(12deg)}
body[data-area=rip] .library-set-fan img:nth-child(2){z-index:1;transform:translateY(-8px)}
body[data-area=rip] .library-page-head{margin-bottom:16px;padding-bottom:16px}
body[data-area=rip] .library-page-head h1{text-shadow:none}
body[data-area=rip] .rip-set-detail:has(.library-search){margin-top:0}
body[data-area=rip] .rip-set-detail:has(.library-search) .back-link{display:inline-flex;align-items:center;min-height:44px;margin:0 0 12px}
body[data-area=rip] .rip-set-detail:has(.library-search) .rip-set-heading{margin:0 0 12px;gap:16px}
body[data-area=rip] .rip-set-detail:has(.library-search) .rip-set-heading p{margin:0 0 8px}
body[data-area=rip] .rip-set-detail:has(.library-search) .rip-set-heading h2{margin:0}
body[data-area=rip] .rip-set-detail:has(.library-search)>.tiny{margin:0 0 16px;font-size:12px}
body[data-area=rip] .rip-set-detail:has(.library-search)>.flex{gap:8px;flex-wrap:wrap}
body[data-area=rip] .rip-set-detail:has(.library-search)>.flex .button{min-height:44px;padding:10px 14px;font-size:16px}
body[data-area=rip] .library-search{display:flex;align-items:end;gap:8px;margin:20px 0;flex-wrap:nowrap}
body[data-area=rip] .library-search .field{flex:1;min-width:0;margin:0;display:grid;gap:8px}
body[data-area=rip] .library-search .control{width:100%;min-width:0;min-height:44px;margin:0}
body[data-area=rip] .library-search .button{min-height:44px;margin:0;padding:10px 16px;font-size:17px}
body[data-area=rip] .card-grid.library-checklist{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px 16px}
body[data-area=rip] .library-checklist-card{display:block;min-width:0;text-decoration:none;color:var(--text)}
body[data-area=rip] .library-checklist-card img{display:block;width:100%;height:auto;max-width:100%;aspect-ratio:252/352;object-fit:contain;border-radius:8px}
body[data-area=rip] .library-checklist-card h3{font:700 22px/1.1 var(--heading);text-shadow:none;margin:12px 0 6px;overflow-wrap:anywhere}
body[data-area=rip] .library-checklist-card p{margin:0;font-size:12px}
.library-card-detail-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:32px;align-items:center;margin-top:20px}
.library-card-detail-grid img{width:100%;max-width:430px;height:auto;display:block;margin:auto;object-fit:contain}
.library-card-detail-grid>div{min-width:0}
.library-card-detail-grid h1{overflow-wrap:anywhere}
.binder-tabs{flex-wrap:wrap}
@media(max-width:600px){.library-card-detail-grid{grid-template-columns:1fr;gap:24px}.library-card-detail-grid img{max-width:280px}body[data-area=rip] .card-grid.library-checklist{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 12px}body[data-area=rip] .library-checklist-card h3{font-size:20px}}

/* Japanese catalogue: one product composition shared by Packs, Drops and Binder. */
body[data-area=rip] .library-set-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
body[data-area=rip] .library-set-tile{padding:16px;gap:10px;border-color:color-mix(in srgb,var(--accent) 24%,var(--panel));background:linear-gradient(145deg,var(--panel2),var(--bg))}
.library-product-scene{position:relative;isolation:isolate;height:260px;width:100%;min-width:0;background:radial-gradient(ellipse at 50% 80%,rgba(196,33,57,.22),transparent 70%);border-radius:12px}
body[data-area=rip] .library-product-scene .library-set-fan{height:230px;overflow:visible;background:none;padding:18px 12px 45px}
body[data-area=rip] .library-product-scene .library-set-fan img{width:31%;max-width:100px;max-height:145px}
body[data-area=rip] .library-product-scene.has-pack .library-set-fan{align-items:start;padding-top:22px}
.library-pack-image{position:absolute;z-index:3;width:39%;height:170px;max-width:120px;object-fit:contain;left:50%;bottom:8px;transform:translateX(-50%) rotate(-7deg);filter:drop-shadow(0 10px 12px #0008)}
.library-price{display:flex;flex-direction:column;gap:2px;margin:4px 0 8px}
.library-coin-price{font-family:var(--heading);font-weight:700;font-size:24px;line-height:1.15;color:var(--accent);font-variant-numeric:tabular-nums}
.library-value-pending{color:var(--card-value-color);font:700 30px/1.15 var(--heading)}
.library-detail-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:24px;margin:16px 0 32px;padding:24px;border:1px solid color-mix(in srgb,var(--accent) 25%,var(--panel));border-radius:12px;background:linear-gradient(140deg,var(--panel2),var(--bg))}
.library-detail-hero>div{min-width:0}.library-detail-hero h1{font:800 clamp(30px,4vw,48px)/1.05 var(--heading);text-shadow:none;margin:8px 0 12px;overflow-wrap:anywhere}.library-detail-hero .flex{flex-wrap:wrap;gap:8px}.library-detail-hero .button{min-height:44px}
.library-availability{color:var(--muted);line-height:1.6}.library-shelf-section{margin-top:40px;padding-top:24px;border-top:1px solid var(--panel2)}
.library-catalogue-filters{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr) minmax(0,1fr) auto;gap:12px;align-items:end;margin:24px 0}.library-catalogue-filters .field{display:grid;gap:6px;min-width:0;margin:0}.library-catalogue-filters .control{min-width:0;width:100%;min-height:44px}.library-catalogue-filters .button{min-height:44px;margin:0}
.library-shelf-section .section-head,.rip-set-detail .section-head{gap:12px;flex-wrap:wrap}
@media(max-width:900px){body[data-area=rip] .library-set-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.library-catalogue-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){body[data-area=rip] .library-set-grid{gap:12px}body[data-area=rip] .library-set-tile{padding:10px;gap:8px}body[data-area=rip] .library-set-tile h2{font-size:23px;min-height:50px}.library-set-tile .eyebrow{font-size:10px;overflow-wrap:anywhere}.library-set-tile .button{font-size:15px;min-height:44px;padding:10px 7px;white-space:normal}.library-product-scene{height:190px}body[data-area=rip] .library-product-scene .library-set-fan{height:170px;padding:18px 6px 30px}body[data-area=rip] .library-product-scene .library-set-fan img{width:32%;max-height:100px}.library-pack-image{height:120px;width:44%;bottom:6px}.library-coin-price{font-size:22px}.library-detail-hero{grid-template-columns:minmax(0,1fr);gap:16px;padding:16px}.library-detail-hero .library-product-scene{max-width:300px;height:260px;margin:auto}.library-detail-hero .library-pack-image{height:180px}.library-detail-hero .library-set-fan img{max-height:150px!important}.library-detail-hero h1{font-size:34px}.library-catalogue-filters .field:first-child{grid-column:1/-1}.library-catalogue-filters .button{grid-column:1/-1}.library-card-detail-grid .panel{padding:16px}}
/* One catalogue across languages: retain shared pack, album and drop components. */
.pack-language-filters{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0}
.pack-language-filters .filter-button{min-height:44px;display:inline-flex;align-items:center}
.drop-art-scene img{object-fit:contain;max-width:100%;max-height:100%}
.rip-pack-art img{object-fit:contain}
/* Shared catalogue controls and prices across Packs, Drops and Binder Sets. */
body[data-area=rip] .pack-language-filters .language-filter{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 16px;border-radius:9px;font:600 13px/1.3 'DM Sans',sans-serif;text-decoration:none;white-space:nowrap}
body[data-area=rip] .drop-art-copy .drop-price{display:block;margin:10px 0 16px;color:var(--accent);font:700 26px/1.15 var(--heading);font-variant-numeric:tabular-nums}
body[data-area=rip] .drop-art-card.compact .drop-price{font-size:22px;margin-bottom:10px}
body[data-area=rip] .pack-discovery-grid .rip-pack-art img{width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain}
body[data-area=rip] .pack-discovery-grid h3{min-height:2.2em;line-height:1.1;overflow-wrap:anywhere}

/* Benchmark polish: a small price hierarchy, compact navigation, artwork first. */
body[data-area=rip]{--price-pack:24px;--price-total:30px;--price-reference:36px}
body[data-area=rip] :is(.rip-pack-price,.drop-art-copy .drop-price,.library-coin-price){font:700 var(--price-pack)/1.15 var(--heading);font-variant-numeric:tabular-nums;letter-spacing:0}
body[data-area=rip] .pack-discovery-grid .rip-pack-price,
body[data-area=rip] .drop-art-card.compact .drop-price{font-size:var(--price-pack)}
body[data-area=rip] .pack-selection .pack-selection-price strong{font:700 var(--price-total)/1.1 var(--heading);font-variant-numeric:tabular-nums;background:none;color:var(--accent);letter-spacing:0}
body[data-area=rip] .coin-package .coin-price{font:700 var(--price-reference)/1.1 var(--heading);font-variant-numeric:tabular-nums;letter-spacing:0}
body[data-area=rip] :is(.card-price-large,.card-reference-block .inspection-value){font-size:var(--price-reference)}
body[data-area=rip] .rip-shelf-heading{padding-bottom:0;margin-bottom:12px}
body[data-area=rip] .rip-shelf-heading .pack-view-tabs{margin:12px 0 0}
body[data-area=rip] .rip-shelf-heading~.drop-art-card.compact{min-height:116px;grid-template-columns:minmax(0,1fr) 100px;padding:12px 20px;margin-bottom:12px}
body[data-area=rip] .rip-shelf-heading~.drop-art-card.compact .drop-art-copy{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:16px;align-items:center}
body[data-area=rip] .rip-shelf-heading~.drop-art-card.compact .eyebrow{grid-column:1;margin:0 0 4px}
body[data-area=rip] .rip-shelf-heading~.drop-art-card.compact h2{grid-column:1;margin:0;font-size:26px}
body[data-area=rip] .rip-shelf-heading~.drop-art-card.compact .drop-price{grid-column:2;grid-row:1/3;margin:0}
body[data-area=rip] .rip-shelf-heading~.drop-art-card.compact .button{grid-column:1/3;justify-self:start;margin-top:4px;min-height:44px}
body[data-area=rip] .rip-shelf-heading~.drop-art-card.compact .drop-art-scene img{height:100px;max-width:72px}
body[data-area=rip] .rip-shelf-toolbar{margin:8px 0 0;flex-wrap:wrap}
body[data-area=rip] .rip-shelf-toolbar h2{margin:0}
body[data-area=rip] .rip-shelf-tools{margin-bottom:12px;align-items:center}
body[data-area=rip] .drops-grid .drop-art-copy{align-self:stretch;display:flex;flex-direction:column;justify-content:center}
body[data-area=rip] .drops-grid .drop-art-copy h2{min-height:2.1em}
body[data-area=rip] .drops-grid .drop-tagline{min-height:3.2em;margin-bottom:8px}
body[data-area=rip] .drops-grid .drop-price{margin:8px 0 12px}
body[data-area=rip] .drops-grid .drop-art-copy .button{align-self:flex-start;margin-top:auto}
body[data-area=rip] .pack-discovery-head h1{text-shadow:none}
body[data-area=rip] .combined-binder-header .rip-binder-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:16px 0}
body[data-area=rip] .combined-binder-header .rip-binder-summary> :is(div,a){min-width:0;padding:14px;overflow-wrap:anywhere}
body[data-area=rip] .combined-binder-header .rip-binder-summary strong{font-size:24px}
body[data-area=rip] .combined-binder-header .binder-tabs{display:flex;gap:8px;margin:12px 0 16px;border-bottom:1px solid #ffffff16;padding-bottom:8px}
body[data-area=rip] .combined-binder-header .binder-tabs .button{min-width:104px;min-height:44px;font-size:18px;flex:0 1 auto;box-shadow:none}
body[data-area=rip] .combined-binder-header .binder-tabs [aria-current=page]:after{display:none}
body[data-area=rip] .rip-empty-stage{padding:28px 20px;margin:16px 0}
body[data-area=rip] .rip-empty-stage>p{max-width:520px;margin:12px auto 16px}
body[data-area=rip] .binder-empty-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}
body[data-area=rip] .binder-empty-actions .button{min-height:44px;max-width:100%;white-space:normal}
body[data-area=rip] .pack-selection .pack-selection-heading{padding-bottom:4px}
body[data-area=rip] .pack-selection .pack-selection-art{height:clamp(190px,30svh,290px);padding:8px 0;margin:0}
body[data-area=rip] .pack-selection .pack-selection-art img{height:100%;max-height:100%}
body[data-area=rip] .pack-selection .pack-control-label,
body[data-area=rip] .pack-selection .pack-selection-price small{font-size:10px;line-height:1.4}
body[data-area=rip] .pack-selection .pack-choice-summary{font-size:12px}
body[data-area=rip] .pack-selection .card-orbit{--preview-card-width:132px;--preview-card-height:184px;height:236px;overflow:hidden;margin-top:4px}
body[data-area=rip] .pack-selection .orbit-card{width:var(--preview-card-width);left:calc(50% - var(--preview-card-width)/2);top:30px;transform:translateX(calc(var(--offset)*112px)) translateZ(calc(var(--offset)*var(--offset)*-45px)) rotateY(calc(var(--offset)*-30deg));min-height:var(--preview-card-height)}
body[data-area=rip] .pack-selection .orbit-card img{width:var(--preview-card-width);height:var(--preview-card-height);max-height:var(--preview-card-height);object-fit:contain}
body[data-area=rip] .orbit-card:not([data-art-state=ready]){background:linear-gradient(145deg,#24151c,#100c10);border:1px solid #59313c;border-radius:8px}
body[data-area=rip] .orbit-card:not([data-art-state=ready]) img{opacity:0}
body[data-area=rip] .orbit-card:not([data-art-state=ready])>span{visibility:hidden}
body[data-area=rip] .orbit-card:not([data-art-state=ready]):after{content:'Loading artwork…';position:absolute;inset:0;display:grid;place-content:center;padding:10px;color:var(--muted);font:500 12px/1.5 'DM Sans',sans-serif;white-space:normal}
body[data-area=rip] .orbit-card[data-art-state=error]:after{content:'Artwork unavailable · Tap for card details'}
@media(max-width:700px){
 body[data-area=rip] .combined-binder-header .rip-binder-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
 body[data-area=rip] .rip-shelf-heading~.drop-art-card.compact{grid-template-columns:minmax(0,1fr) 64px;padding:12px;gap:8px}
 body[data-area=rip] .rip-shelf-heading~.drop-art-card.compact .drop-art-copy{column-gap:8px}
 body[data-area=rip] .rip-shelf-heading~.drop-art-card.compact h2{font-size:22px}
 body[data-area=rip] .rip-shelf-heading~.drop-art-card.compact .drop-price{grid-column:1;grid-row:auto;margin-top:4px}
 body[data-area=rip] .rip-shelf-heading~.drop-art-card.compact .drop-art-scene img{height:94px;max-width:64px}
 body[data-area=rip] .pack-selection .pack-selection-art{height:clamp(180px,28svh,240px)}
 body[data-area=rip] .pack-selection .card-orbit{--preview-card-width:116px;--preview-card-height:162px;height:208px}
 body[data-area=rip] .pack-selection .orbit-card{transform:translateX(calc(var(--offset)*92px)) translateZ(calc(var(--offset)*var(--offset)*-45px)) rotateY(calc(var(--offset)*-30deg))}
 body[data-area=rip] .pack-selection .pack-selection-choice{grid-template-columns:minmax(0,1fr) auto}
 body[data-area=rip] .pack-selection .pack-selection-choice .qty-picker button{width:32px;min-height:44px}
 body[data-area=rip] .pack-language-filters .language-filter{padding:8px 12px}
}

/* Mobile opening flow: viewport-bound stage and explicit completion. */
body[data-area=rip] .modal-shade:has(.opening-session,.rip-results-page){top:var(--rip-stage-top,90px);height:calc(var(--visible-bottom,100dvh) - var(--rip-stage-top,90px));bottom:auto;padding:0;align-items:stretch;background:#030303}
body[data-area=rip] .modal:has(.opening-session,.rip-results-page){box-sizing:border-box;width:100%;height:100%;max-height:100%;max-width:none;margin:0;border:0;border-radius:0;padding:44px 16px max(16px,env(safe-area-inset-bottom));overflow-y:auto}
body[data-area=rip] .reference-opening{min-height:0;max-width:620px;margin:auto}
body[data-area=rip] .reference-opening .rip-theatre{min-height:0}
body[data-area=rip] .reference-opening .rip-stage-heading{min-height:0;margin-bottom:12px}
body[data-area=rip] .reference-opening .reveal-focus{height:clamp(140px,calc(var(--visible-bottom,100svh) - var(--rip-stage-top,90px) - 350px),360px)}
body[data-area=rip] .reference-opening .reveal-focus-info{height:auto;min-height:66px;padding:10px 0;gap:4px}
body[data-area=rip] .reference-opening .rip-final-actions{display:flex;flex-wrap:wrap;gap:4px;margin:8px 0 0;width:100%;align-items:center}
body[data-area=rip] .reference-opening.is-auto .rip-final-actions{display:none}
body[data-area=rip] .reference-opening .rip-final-actions .button{flex:1 1 140px;width:auto;margin:0;min-height:44px}
body[data-area=rip] .reference-opening .opening-pack-recap{min-height:0;padding:12px 0}
body[data-area=rip] .opening-recap-art{height:clamp(140px,25svh,240px);width:auto;max-width:200px;margin:14px auto 8px}
body[data-area=rip] .recap-best-label{max-width:100%;overflow-wrap:anywhere}
body[data-area=rip] .reference-opening .opening-pack-recap .opening-controls{margin-top:10px}
body[data-area=rip] .reference-opening .opening-card-caption .atelier-reveal-value,
body[data-area=rip] .card-price strong,
body[data-area=rip] .card-reference-amount,
body[data-area=rip] .opening-highlights span{font:700 22px/1.2 var(--heading);font-variant-numeric:tabular-nums;color:var(--card-value-color)}
body[data-area=rip] .opening-recap-total strong,
body[data-area=rip] .rip-result-total>strong{font:700 30px/1.2 var(--heading);font-variant-numeric:tabular-nums;color:var(--card-value-color)}
body[data-area=rip] .batch-reference-amount{font:700 32px/1.2 var(--heading);font-variant-numeric:tabular-nums;color:var(--card-value-color)}
body[data-area=rip] .opening-highlights{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:18px 0}
body[data-area=rip] .opening-highlights button{min-width:0;padding:0;border:0;background:none;color:var(--text);cursor:pointer;text-align:center}
body[data-area=rip] .opening-highlights img{display:block;width:100%;aspect-ratio:252/352;object-fit:contain;border-radius:7px}
body[data-area=rip] .opening-highlights strong{display:block;font-size:12px;line-height:1.3;margin:8px 0 4px;overflow-wrap:anywhere}
body[data-area=rip] .rip-completed-packs{margin:12px 0;border-bottom:1px solid #ffffff16}
body[data-area=rip] .rip-completed-packs>summary{min-height:44px;align-content:center;cursor:pointer;font-size:13px}
body[data-area=rip] .rip-results-page{margin-top:24px;padding-top:20px;border-top:1px solid #ff9baa40}
body[data-area=rip] .rip-result-decisions .button{white-space:normal}
@media(max-width:700px){
 body[data-area=rip] .rip-shelf-heading h1{margin:4px 0;font-size:32px}
 body[data-area=rip] .rip-shelf-intro{margin:4px 0 8px}
 body[data-area=rip] .opening-saved-notice{padding:10px 12px;margin:0 0 12px}
 body[data-area=rip] .opening-saved-notice .button{margin-top:2px}
 body[data-area=rip] .rip-shelf-heading~.drop-art-card.compact{min-height:96px;margin-block:10px}
 body[data-area=rip] .combined-binder-header .rip-binder-summary{gap:6px;margin:10px 0}
 body[data-area=rip] .combined-binder-header .rip-binder-summary> :is(div,a){padding:10px}
 body[data-area=rip] .combined-binder-header .binder-tabs{margin:8px 0;padding-bottom:4px}
 body[data-area=rip] .rip-binder-content{margin-top:10px}
 body[data-area=rip] .rip-duplicate-action{margin:4px 0}
 body[data-area=rip] .opening-complete{padding:16px}
}

/* One stage from the purchased stack through the final pack recap. */
body[data-area=rip] .reference-opening{--opening-art-height:clamp(160px,calc(var(--visible-bottom,100svh) - var(--rip-stage-top,90px) - 370px),350px)}
body[data-area=rip] .reference-opening .opening-stage{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:104px var(--opening-art-height) 76px minmax(64px,auto);gap:8px;align-items:center;justify-items:center;align-content:start;width:100%;min-height:0;padding:0;margin:0 auto;animation:none;text-align:center}
body[data-area=rip] .reference-opening .opening-stage> :is(header,.reveal-focus,.reveal-focus-info,.opening-action-slot){order:0;width:100%;min-width:0;margin:0}
body[data-area=rip] .reference-opening .opening-stage .rip-stage-heading{height:104px;min-height:0;display:grid;grid-template-rows:40px 20px 44px;gap:0;padding:0;align-items:center}
body[data-area=rip] .reference-opening .opening-stage .rip-stage-heading h2{font:700 18px/1.1 var(--heading);letter-spacing:.025em;min-height:0;margin:0;overflow-wrap:anywhere;color:var(--text);text-transform:uppercase}
body[data-area=rip] .reference-opening .opening-stage .opening-pack-label{font:600 11px/1.4 'DM Sans',sans-serif;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin:0}
body[data-area=rip] .reference-opening .opening-stage .rip-stage-meta{display:flex;justify-content:center;gap:10px;flex-wrap:nowrap;min-height:44px;margin:0;font-size:10px}
body[data-area=rip] .opening-stage-status{flex:1 1 120px;max-width:160px;text-align:right;overflow-wrap:anywhere}
body[data-area=rip] .reference-opening .opening-stage .opening-controls{flex:0 0 auto;margin:0}
body[data-area=rip] .reference-opening .opening-stage .reveal-focus{display:flex;justify-content:center;align-items:center;width:100%;height:var(--opening-art-height);min-height:0;margin:0;padding:0;position:relative}
body[data-area=rip] .reference-opening .opening-stage .rip-wrapper{display:block;flex:0 0 auto;height:100%;width:auto;aspect-ratio:210/330;max-width:80%;padding:0;margin:0 auto;border:0;background:none;transform:none}
body[data-area=rip] .reference-opening .opening-stage .rip-wrapper img{display:block;width:100%;height:100%;object-fit:contain}
body[data-area=rip] .reference-opening .opening-stage .opening-stack-art{flex:0 0 auto;position:relative;display:block;height:100%;width:auto;aspect-ratio:210/330;max-width:75%;padding:0;margin:0 auto;border:0;background:none;transform:none}
body[data-area=rip] .reference-opening .opening-stage .reveal-focus-info{display:flex;flex-direction:column;justify-content:center;align-items:center;height:76px;min-height:76px;max-width:100%;gap:5px;margin:0;padding:4px 0;animation:none}
body[data-area=rip] .reference-opening .opening-stage .reveal-focus-info strong{font:700 17px/1.2 'DM Sans',sans-serif;margin:0;min-height:0;overflow-wrap:anywhere}
body[data-area=rip] .reference-opening .opening-stage .reveal-focus-info p{font:400 11px/1.4 'DM Sans',sans-serif;margin:0;color:var(--muted)}
body[data-area=rip] .reference-opening .opening-stage .opening-action-slot{display:flex;min-height:64px;flex-direction:column;align-items:center;justify-content:center;gap:6px;max-width:350px}
body[data-area=rip] .opening-action-slot>.button{width:100%;max-width:260px}
body[data-area=rip] .opening-quiet-status{font-size:12px;color:var(--muted)}
body[data-area=rip] .reference-opening .opening-stage .reveal-navigation{margin:0;min-height:44px}
body[data-area=rip] .reference-opening .opening-stage .rip-final-actions{display:flex;flex-wrap:nowrap;gap:8px;margin:0;width:100%}
body[data-area=rip] .reference-opening .opening-stage .rip-final-actions .button{min-width:0;white-space:normal;font-size:15px}
body[data-area=rip] .reference-opening .opening-stage .opening-recap-art{display:block;height:100%;width:auto;aspect-ratio:252/352;max-width:100%;margin:0;padding:0}
body[data-area=rip] .reference-opening .opening-stage .opening-recap-art img{width:100%;height:100%;object-fit:contain}
body[data-area=rip] .reference-opening .opening-stage .opening-recap-total{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:10px}
body[data-area=rip] .reference-opening .opening-stage .opening-recap-next{margin:0;font-size:11px}
body[data-area=rip] .reference-opening .opening-options{margin-top:0}
body[data-area=rip] .reference-opening .opening-card-turn.is-fresh{animation:atelier-full-flip .42s cubic-bezier(.2,.65,.25,1) both}
body[data-area=rip] .reference-opening .is-first-reveal .reveal-focus-info{animation:none}
body[data-area=rip] .opening-art{position:relative;overflow:hidden;background:#1c1117;border:1px solid #ff9baa26;border-radius:9px;isolation:isolate}
body[data-area=rip] .opening-art:before{content:'Loading artwork…';position:absolute;inset:0;display:grid;place-items:center;padding:8px;font:500 10px/1.4 'DM Sans',sans-serif;color:var(--muted);text-align:center;z-index:1}
body[data-area=rip] .opening-art[data-art-state=error]:before{content:'Artwork unavailable'}
body[data-area=rip] .opening-art[data-art-state=ready]:before{display:none}
body[data-area=rip] .opening-art img{opacity:0;transition:opacity .16s ease}
body[data-area=rip] .opening-art[data-art-state=ready] img{opacity:1}
body[data-area=rip] .opening-complete{height:auto;min-height:0;max-width:640px;margin:0 auto 18px;display:block}
body[data-area=rip] .opening-complete .opening-highlights{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:start;gap:10px;height:auto;min-height:0;margin:16px 0}
body[data-area=rip] .opening-complete .opening-highlights button{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;height:auto;min-height:0;gap:6px;margin:0;padding:0}
body[data-area=rip] .opening-complete .opening-highlight-art{display:block;flex:none;position:relative;width:100%;height:auto;min-height:0;aspect-ratio:252/352;margin:0}
body[data-area=rip] .opening-complete .opening-highlight-art img{position:absolute;inset:0;display:block;width:100%;height:100%;max-height:100%;object-fit:contain;margin:0}
body[data-area=rip] .opening-complete .opening-highlights strong{font:600 11px/1.3 'DM Sans',sans-serif;min-height:2.6em;margin:0;overflow-wrap:anywhere}
body[data-area=rip] .opening-complete .button{margin-top:8px}
@media(prefers-reduced-motion:reduce){
 body[data-area=rip] .reference-opening .opening-card-turn.is-fresh{animation:none}
 body[data-area=rip] .opening-art img{transition:none}
}
