/* B v5 is confined to the home tab. Real navigation/financial dialogs stay intact. */
body.soft-velvet.home-b-active{background:radial-gradient(ellipse at 50% 30%,#30203844,transparent 70%),#100c17}
.soft-velvet.home-b-active .app-header{min-height:38px;margin-bottom:14px;gap:7px}.soft-velvet.home-b-active .brand{gap:8px}.soft-velvet.home-b-active .brand-mark{width:37px;height:37px}.soft-velvet.home-b-active .brand h1{font-size:11px;letter-spacing:1.25px;white-space:nowrap}.soft-velvet.home-b-active .wallet-strip{min-height:35px}.soft-velvet.home-b-active .rules-button,.soft-velvet.home-b-active #settings-open{height:36px;min-height:36px;width:36px;min-width:36px}
.soft-velvet #drop{position:relative;isolation:isolate;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto auto minmax(58px,max-content);gap:10px;align-items:stretch;height:var(--hb-height,calc(100dvh - 180px));min-height:0;max-width:620px;margin:0 auto;padding:0}
.soft-velvet #drop>.heading{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden;margin:0;padding:0}.soft-velvet #drop>.season-line{grid-column:1;grid-row:1;display:flex;justify-content:space-between;align-items:center;gap:8px;margin:0;font-size:10px;color:#bda6d2;order:initial;letter-spacing:1px}.soft-velvet #drop .season-tag{font-size:10px}.soft-velvet #drop #active-season-title{font-size:10px;letter-spacing:.2px;color:#ad95bf}
.soft-velvet #drop #reel-window{grid-column:1;grid-row:2;width:100%;height:100%;min-height:0;--card-height:calc(100% - 42px);--card-width:calc(var(--card-height)*2/3);background:radial-gradient(ellipse at 50% 47%,#7b4b9738,transparent 66%),linear-gradient(155deg,#42305066,#251b31a3);border:1px solid #d9acf838;border-radius:27px;box-shadow:inset 0 1px #ffffff09,0 14px 40px #0002;touch-action:pan-y;user-select:none}
/* A card's percentage sizes must resolve against the stage, not a max-content strip. */
.soft-velvet #drop #reel{height:100%;top:0!important;margin-top:0!important;align-items:center;gap:12px}.soft-velvet #drop #reel img{height:calc(var(--hb-art-height,300px));width:calc(var(--hb-art-height,300px)*2/3);aspect-ratio:2/3;object-fit:contain;border-radius:11px;opacity:.6;filter:brightness(.75);transform:scale(.87);transition:transform .4s ease,opacity .4s ease;flex:0 0 auto;pointer-events:none}.soft-velvet #drop #reel img.hb-center{opacity:1;filter:none;transform:scale(1);box-shadow:0 7px 28px #04010e70}
.soft-velvet #drop .sv-roll img,.soft-velvet #drop .sv-reel-card{height:var(--hb-art-height,300px);width:calc(var(--hb-art-height,300px)*2/3)}.soft-velvet #drop .sv-roll{align-items:center}.soft-velvet #drop .sv-rolling:after{height:calc(var(--hb-art-height,300px) + 10px);width:calc(var(--hb-art-height,300px)*2/3 + 10px)}.soft-velvet #drop .sv-last-card{height:var(--hb-art-height,300px);width:calc(var(--hb-art-height,300px)*2/3);max-width:82%;top:50%;object-fit:contain;transform:translate(-50%,-50%);animation:hb-last-in .35s ease both}.soft-velvet #drop .hb-swipe-tip{position:absolute;bottom:5px;left:0;right:0;text-align:center;color:#ad90c2;pointer-events:none;font-size:20px;z-index:6;line-height:22px}.soft-velvet #drop .sv-rolling .hb-swipe-tip{visibility:hidden}
.soft-velvet #drop #result{grid-column:1;grid-row:3;margin:0;min-height:0;font-size:11px;line-height:1.35;max-height:2.8em;overflow:auto;text-align:center;color:#cdb5de}.soft-velvet #drop #result.hb-quiet,.soft-velvet #drop #result:empty{display:none}.soft-velvet #drop #sv-skip{grid-column:1;grid-row:4;justify-self:center;margin:0;padding:0 12px;min-height:24px;font-size:11px;line-height:24px}.soft-velvet #drop #sv-skip[hidden]{display:none}
.soft-velvet #drop #hb-actions{grid-column:1;grid-row:5;display:grid;grid-template-columns:minmax(0,1fr) 110px;gap:10px;min-height:58px}.hb-main-action{min-width:0;display:grid}.soft-velvet #drop #open{grid-column:1;grid-row:1;width:100%;min-width:0;height:auto;min-height:58px;margin:0;padding:7px 12px;border:0;border-radius:18px;background:linear-gradient(110deg,#c6a5f5,#e1c9ff 55%,#be9ef3);color:#2e1d40;font-size:16px;font-weight:750;box-shadow:0 5px 22px #ba8cf538,inset 0 1px #ffffff66;line-height:1.25;white-space:normal}.soft-velvet #drop #open[hidden]{display:none}.soft-velvet #drop #countdown{grid-column:1;grid-row:1;display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;height:auto;min-height:58px;margin:0;border:1px solid #d5aafb6b;border-radius:18px;background:linear-gradient(135deg,#462c5ee3,#2b1e3ef0);box-shadow:inset 0 1px #fdf0ff12,0 0 22px #c077ec29;color:#ebd5ff;font-variant-numeric:tabular-nums;line-height:1.2;animation:hb-timer 5s ease-in-out infinite}.soft-velvet #drop #countdown[hidden]{display:none}.soft-velvet #drop #countdown>span{font-size:10px;color:#cdb7da}.soft-velvet #drop #countdown>strong{font-size:22px;letter-spacing:1.5px}.soft-velvet #drop #paid-open{grid-column:2;grid-row:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;height:auto;min-height:58px;width:100%;min-width:0;margin:0;padding:4px 5px;align-self:stretch;border:1px solid #cca1ed5e;border-radius:18px;background:#31223fab;color:#ddc6eb;font-size:11px;line-height:1.2}.soft-velvet #drop #paid-open>strong{font-size:16px;font-weight:700}.soft-velvet #drop #paid-open>small{font-size:8px;color:#baa2cd}.soft-velvet #drop #paid-open:disabled{opacity:.7}.soft-velvet #drop .drop-meta{display:none}.soft-velvet #drop #paid-open-status{grid-row:3;grid-column:1;max-height:2.8em;overflow:auto;font-size:11px;margin:0;line-height:1.35}.soft-velvet #drop #paid-open-status:empty{display:none}
.hb-screen-reader{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important;margin:0!important;padding:0!important;border:0!important}
.hb-background{position:absolute;inset:-60px -10px 0;z-index:-1;overflow:hidden;pointer-events:none;border-radius:25px}.hb-background:before{content:'';position:absolute;width:110%;height:65%;left:-5%;top:10%;background:radial-gradient(ellipse,#ae72d211,transparent 70%)}.hb-ghost{position:absolute;width:100px;height:150px;border:1px solid #cba6f119;border-radius:14px;background:linear-gradient(145deg,#f1d1ff08,#78509b03);left:calc(var(--i)*30% - 8%);top:calc(var(--i)*18% + 2%);transform:rotate(calc(var(--i)*13deg - 20deg));animation:hb-ghost 18s ease-in-out infinite alternate;animation-delay:calc(var(--i)*-4s)}.hb-ghost:before{content:'✦';display:grid;place-items:center;height:100%;font-size:22px;color:#d1b0ff14}.hb-background>b{position:absolute;width:3px;height:3px;border-radius:50%;left:var(--x);top:var(--y);background:#e3c5f3;opacity:.24;animation:hb-dot 20s linear infinite;animation-delay:calc(var(--i)*-1.7s)}.hb-background.hb-paused *{animation-play-state:paused!important}.hb-background.hb-static *{animation:none!important}.hb-background.hb-paused{visibility:hidden}
@keyframes hb-ghost{to{translate:7px -20px}}@keyframes hb-dot{50%{transform:translate(12px,-18px);opacity:.4}to{transform:translate(-5px,-35px);opacity:.1}}@keyframes hb-timer{50%{box-shadow:inset 0 1px #ffffff12,0 0 27px #c077ec33}}@keyframes hb-last-in{from{opacity:0;transform:translate(-50%,-50%) scale(.95)}to{opacity:1;transform:translate(-50%,-50%) scale(1)}}
@media(max-width:350px){.soft-velvet.home-b-active .brand h1{font-size:9px;letter-spacing:.7px}.soft-velvet.home-b-active .app-header{gap:5px}.soft-velvet.home-b-active .brand{gap:6px}.soft-velvet.home-b-active .brand-mark{width:31px;height:31px}.soft-velvet.home-b-active .wallet-strip{padding:3px 6px}.soft-velvet.home-b-active .rules-button,.soft-velvet.home-b-active #settings-open{width:30px;min-width:30px;height:32px;min-height:32px}.soft-velvet #drop #hb-actions{grid-template-columns:minmax(0,1fr) 96px;gap:8px}.soft-velvet #drop #open{font-size:13px}.soft-velvet #drop #countdown>strong{font-size:19px}.soft-velvet #drop #countdown>span{font-size:9px}}
/* Wide home scene; the moving strip is fitted by its stationary frame. */
@media(min-width:900px){.soft-velvet #drop{max-width:none;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto auto minmax(58px,max-content);padding:0}.soft-velvet #drop #reel-window{grid-column:1;grid-row:2;max-height:none}.soft-velvet #drop .sv-rolling:after{transform:translate(-50%,-50%)}.soft-velvet #drop #hb-actions{max-width:580px;width:100%;justify-self:center;grid-template-columns:minmax(0,1fr) 130px}.soft-velvet #drop .season-line{grid-column:1;grid-row:1}}
@media(prefers-reduced-motion:reduce){.soft-velvet #drop .hb-background *,.soft-velvet #drop #countdown{animation:none!important}.soft-velvet #drop #reel img,.soft-velvet #drop .sv-last-card{animation:none!important;transition:none!important}}

.soft-velvet #drop.hb-no-motion #countdown,.soft-velvet #drop.hb-no-motion .sv-last-card{animation:none!important}.soft-velvet #drop.hb-no-motion #reel img{transition:none!important}

body.soft-velvet.home-b-active{padding-bottom:var(--hb-reserve,92px)}.soft-velvet #drop #hb-notices{grid-column:1;grid-row:3;display:flex;flex-direction:column;gap:2px;min-height:0;max-height:3.5em;overflow:auto}.soft-velvet #drop #hb-notices:has(>#result.hb-quiet):not(:has(>#paid-open-status:not(:empty))){display:none}.soft-velvet #drop #hb-notices>#result,.soft-velvet #drop #hb-notices>#paid-open-status{flex:0 0 auto;margin:0}

.soft-velvet #drop #reel img{position:relative;z-index:1;transform:translateX(var(--hb-side-shift,0px)) scale(.87)}.soft-velvet #drop #reel img.hb-center{z-index:2;transform:translateX(0) scale(1)}

.soft-velvet #market-review.hb-opening-review{width:calc(100% - 24px);max-width:420px;border:1px solid #d9b4f24d;border-radius:24px;background:linear-gradient(135deg,#352641,#21182d);box-shadow:0 12px 60px #08040c88}.soft-velvet #market-review.hb-opening-review .market-toolbar{display:grid;grid-template-columns:1fr 1fr;gap:9px}.soft-velvet #market-review.hb-opening-review .market-toolbar button{min-height:46px;font-size:13px;min-width:0}.soft-velvet #market-review.hb-opening-review #market-review-confirm{background:#d8bbf7;color:#271934;border-color:transparent;font-weight:700}.soft-velvet #market-review.hb-opening-review .market-copy{font-size:13px;line-height:1.55}.soft-velvet #market-review.hb-opening-review h3{font-size:20px;margin-bottom:12px}

/* Season selection and quotas belong to the same home row, across phone/desktop. */
.soft-velvet #drop>.season-line.season-choice{display:grid;gap:6px;letter-spacing:normal;font-size:11px;grid-template-columns:minmax(0,1fr)}
.season-choice label{color:#bba6cd;font-size:11px}
#opening-season-wrap{position:relative;min-width:0}
#opening-season-wrap img{position:absolute;left:10px;top:7px;height:38px;width:26px;border-radius:4px;object-fit:cover;pointer-events:none}
#opening-season{width:100%;max-width:100%;height:52px;padding:6px 24px 6px 46px;border:1px solid #665175;border-radius:14px;background:#281f34;font-size:12px;font-weight:600;color:#f0e5fb}
.opening-season-single{display:flex;gap:8px;align-items:center;min-height:22px}
.opening-shared{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 12px;padding:7px 10px;border:1px solid #4f3c5d;border-radius:12px;background:#241c2e}
.opening-shared strong{font-size:10px;font-weight:500;color:#e4d0f5}.opening-shared span{font-size:10px;color:#bda6cf}

/* Approved compact layout: preserve the scene when viewport height is short. */
@media(max-width:600px) and (max-height:650px){
 body.soft-velvet #drop{gap:6px}
 body.soft-velvet #drop>.season-choice{gap:4px}
 body.soft-velvet #drop .opening-shared{padding:5px 8px}
}
@media(orientation:landscape) and (min-width:560px) and (max-height:520px){
 body.soft-velvet.home-b-active{padding-top:calc(4px + var(--sv-safe-top,0px))}
 body.soft-velvet.home-b-active .app-header{min-height:30px;margin-bottom:4px}
 body.soft-velvet.home-b-active .brand-mark{width:28px;height:28px;min-height:28px;font-size:21px}
 body.soft-velvet.home-b-active .brand h1{font-size:10px}
 body.soft-velvet.home-b-active .wallet-strip{min-height:28px;padding:3px 7px}
 body.soft-velvet.home-b-active .rules-button,body.soft-velvet.home-b-active #settings-open{width:30px;min-width:30px;height:30px;min-height:30px}
 body.soft-velvet #drop{max-width:none;grid-template-columns:minmax(0,1fr) minmax(250px,44%);grid-template-rows:minmax(0,1fr) auto;gap:4px 12px}
 body.soft-velvet #drop #reel-window{grid-column:1;grid-row:1 / 3;border-radius:18px}
 body.soft-velvet #drop>.season-choice{grid-column:2;grid-row:1;display:flex;flex-direction:column;gap:4px;overflow-y:auto;min-height:0;align-items:stretch}
 body.soft-velvet #drop>.season-choice>label,body.soft-velvet #drop .opening-shared strong{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden;white-space:nowrap}
 body.soft-velvet #opening-season{height:44px;min-height:44px;padding:5px 23px 5px 40px}
 body.soft-velvet #opening-season-wrap img{height:32px;width:22px;top:6px;left:8px}
 body.soft-velvet #drop .opening-shared{padding:3px 6px;gap:2px;font-size:10px;line-height:1.25;min-width:0}
 body.soft-velvet #drop #hb-actions{grid-column:2;grid-row:2;grid-template-columns:minmax(0,1fr) 84px;min-height:44px;gap:6px;max-width:none;width:100%}
 body.soft-velvet #drop #open,body.soft-velvet #drop #countdown,body.soft-velvet #drop #paid-open{height:auto;min-height:44px;border-radius:13px}
 body.soft-velvet #drop #open{font-size:13px;padding:6px 7px}
 body.soft-velvet #drop #paid-open{font-size:10px;padding:3px}
 body.soft-velvet #drop #paid-open strong{font-size:13px}
 body.soft-velvet #drop #countdown strong{font-size:17px}
 body.soft-velvet #drop #hb-notices{grid-column:2;grid-row:1;align-self:end;z-index:2;background:#22182de8;border-radius:8px;max-height:2.6em}
 body.soft-velvet #drop #hb-notices:empty,body.soft-velvet #drop #hb-notices:not(:has(p:not(:empty):not(.hb-quiet))){display:none}
 body.soft-velvet #drop #sv-skip{grid-column:1;grid-row:2;align-self:end;z-index:6;background:#21182de8}
 body.soft-velvet #drop .hb-swipe-tip{bottom:1px;font-size:14px;line-height:16px}
}

@media(orientation:portrait) and (max-width:600px) and (max-height:650px){
 body.soft-velvet #drop>.season-choice>label{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden;white-space:nowrap}
 body.soft-velvet #opening-season{height:44px;min-height:44px;padding-top:4px;padding-bottom:4px}
 body.soft-velvet #opening-season-wrap img{top:5px;height:34px}
 body.soft-velvet #drop{grid-template-rows:auto minmax(0,1fr) auto auto minmax(50px,max-content)}
 body.soft-velvet #drop #hb-actions{min-height:50px}
 body.soft-velvet #drop #open,body.soft-velvet #drop #countdown,body.soft-velvet #drop #paid-open{height:auto;min-height:50px}
}
