/* The Binder Society — one identity across collecting, opening and shopping. */
:root,body[data-area]{color-scheme:dark;--bg:#171717;--panel:#222221;--panel2:#2b2b29;--surface:#222221;--line:#41413d;--edge:#41413d;--text:#f7f5ef;--muted:#b9b7af;--accent:#efc84a;--gold:#efc84a;--action:#c93236;--focus:#efc84a;--radius:16px;--heading:'Barlow Condensed','Arial Narrow',sans-serif}
html,body[data-area]{background:var(--bg);color:var(--text)}
body[data-area]{font-family:'DM Sans',Arial,sans-serif}
body[data-area] h1,body[data-area] h2,body[data-area] h3,body[data-area] .button,body[data-area] .eyebrow{font-family:var(--heading);font-weight:700;text-transform:uppercase;letter-spacing:.025em}
body[data-area] h1{font-size:clamp(42px,5.5vw,72px);line-height:1.02}
body[data-area] .section-head h2{font-size:32px;line-height:1.08}
body[data-area] .preview-banner{padding:9px 16px;background:#f7f5ef;color:#292926;border:0;font:600 11px 'DM Sans',sans-serif;letter-spacing:.12em;text-align:center}
body[data-area] .preview-banner span{font-size:11px;color:#5e5d56;letter-spacing:0;margin-left:12px}
body[data-area] .masthead{background:#171717f5;backdrop-filter:blur(18px);border-bottom:1px solid var(--line)}
body[data-area] .topbar{display:flex;position:relative;align-items:center;gap:24px;max-width:1440px;margin:auto;padding:0 28px;height:80px;background:transparent;border:0;box-shadow:none}
body[data-area] .mobile-menu{display:inline-flex;align-items:center;justify-content:center;width:44px;min-width:44px;min-height:44px;color:var(--text);font-size:23px}
body[data-area] .retail-header-search{display:none}
body[data-area] .brand{position:static;transform:none;gap:10px;flex-shrink:0;letter-spacing:.08em;font-family:var(--heading)}
body[data-area] .brand>span:last-child{display:block;font-size:13px;line-height:1.05}
body[data-area] .brand b{font-size:21px}
body[data-area] .brand-symbol{width:36px;height:36px;min-width:36px;border:2px solid #f7f5ef;background:linear-gradient(#c93236 0 44%,#171717 44% 56%,#f7f5ef 56%);box-shadow:none}
body[data-area] .brand-symbol:after{background:#f7f5ef;border-color:#171717}
body[data-area] .top-nav{position:static;display:flex;gap:24px;font:700 18px var(--heading);text-transform:uppercase;letter-spacing:.04em;margin-left:24px}
body[data-area] .top-nav a{color:var(--muted)}
body[data-area] .top-nav a.active{color:var(--text)}
body[data-area] .top-nav a.active:after{background:var(--action);transform:scaleX(1)}
body[data-area] .header-right{margin-left:auto;display:flex;flex-direction:row;gap:12px;min-width:0}
body[data-area] .avatar-button{width:44px;height:44px;min-width:44px;border:1px solid var(--line);border-radius:50%;background:var(--panel2);color:var(--text);font-size:15px;filter:none}
body[data-area] .avatar-button.guest{width:auto;padding:0 12px;border-radius:24px;font-size:12px}
body[data-area] .shop-basket-link{width:auto;min-height:44px;border:1px solid var(--line);border-radius:24px;background:var(--panel);font-size:12px;padding:9px 12px;gap:7px}
body[data-area] .shop-basket-link span{position:static;background:var(--gold);color:#171717;font-size:11px;min-width:20px;height:20px;line-height:20px;border-radius:50%;text-align:center}
body[data-area] .wallet-button{background:var(--panel);border-color:var(--line);border-radius:24px}
body[data-area] .sidebar:not(.open){display:none}
body[data-area] .sidebar.open{display:block;position:fixed;left:0;top:var(--masthead-height);bottom:0;height:calc(100dvh - var(--masthead-height));width:min(300px,85vw);z-index:45;background:#1d1d1c;border-right:1px solid var(--line);transform:none}
body[data-area] .sidebar-mask{position:fixed;inset:0;z-index:40;background:#0009}
body[data-area] .side-link.active{background:#c932361a;color:var(--text);box-shadow:inset 3px 0 var(--action)}
body[data-area] .side-link:hover{background:var(--panel2)}
body[data-area] .shell{display:block}
body[data-area] .workspace{width:100%;margin-left:0}
body[data-area] main{max-width:1360px;margin:auto;padding:32px 38px 96px}
body[data-area] .button,body[data-area]:not([data-area=shop]) .modal .button:not(.secondary):not(.ghost):not(.gold){min-height:48px;border-radius:28px;background:var(--action);border:1px solid var(--action);color:#fff;box-shadow:none;font-size:17px;letter-spacing:.055em}
body[data-area] .button:hover{background:#ae262b;filter:none}
body[data-area] .button.secondary,body[data-area] .button.ghost,body[data-area]:not([data-area=shop]) .modal .button.secondary{background:transparent;border-color:#77756e;color:var(--text)}
body[data-area] .button.secondary:hover,body[data-area] .button.ghost:hover{background:var(--panel2)}
body[data-area] .button.small{font-size:14px;min-height:44px}
body[data-area] .control,body[data-area] .field input,body[data-area] .field select,body[data-area] .field textarea{background:var(--panel);color:var(--text);border-color:var(--line);border-radius:10px}
body[data-area] .personal-tabs{justify-content:flex-start;gap:12px;flex-wrap:nowrap;overflow-x:auto;border-color:var(--line);margin-bottom:28px;padding-bottom:12px}
body[data-area] .personal-tabs a{font:600 14px 'DM Sans',sans-serif;padding:12px 16px;white-space:nowrap;color:var(--muted);border-radius:24px}
body[data-area] .personal-tabs a[aria-current=page]{background:#f7f5ef;color:#242421}
body[data-area] .filter-button.active,body[data-area] .qty-picker button.active,body[data-area] .shelf-pick.active{background:var(--text);border-color:var(--text);color:#242421}
body[data-area] .panel,body[data-area] .card-tile,body[data-area] .set-tracker,body[data-area] .set-progress,body[data-area] .step{background:var(--panel);border-color:var(--line);border-radius:16px;box-shadow:none}
body[data-area] .hero{background:radial-gradient(ellipse at 80% 40%,#c9323618,transparent 60%),#20201e;border-color:var(--line);border-radius:20px}
body[data-area] .hero h1{letter-spacing:.01em;line-height:1}
body[data-area] .hero p{color:var(--muted)}
body[data-area] .hero .eyebrow,body[data-area] .modal .eyebrow{color:var(--gold)}
body[data-area] .pack-tile{background:var(--panel);border-color:var(--line);border-radius:16px}
body[data-area] .pack-tile h3{font-size:25px}
body[data-area] .pack-art{background:radial-gradient(ellipse,#ffffff08,transparent 70%)}
body[data-area] .card-sub,body[data-area] .muted,body[data-area] .lead,body[data-area] .tiny{color:var(--muted)}
body[data-area] .progress{background:#45443f}
body[data-area] .progress>span{background:var(--gold)}
body[data-area] .mobile-bottom{background:#1b1b1af7;border-color:var(--line)}
body[data-area] .mobile-bottom a{color:var(--muted);background:transparent}
body[data-area] .mobile-bottom a.active{color:var(--text);background:#c9323614;box-shadow:inset 0 3px var(--action)}
body[data-area] .footer{border-color:var(--line)}
body[data-area] .footer-brand{font-family:var(--heading);letter-spacing:.08em;color:var(--text)}
/* Collecting opens on a quiet, warm paper surface; artwork stays in dark trays. */




body[data-area=shop] .retail-collection-hero{background:linear-gradient(0deg,#171717,transparent 85%),linear-gradient(#000a,#000a),url('assets/cards/DRI-230.png') center 35%/cover}
body[data-area=shop] .retail-collection-hero h1{text-shadow:0 2px 20px #000}
body[data-area=shop] .retail-collection-hero .eyebrow{color:var(--gold)}
body[data-area=shop] .retail-categories a{background:var(--panel);border-color:var(--line);border-radius:16px}
body[data-area=shop] .retail-categories span{color:var(--text)}
body[data-area=shop] .retail-categories img{filter:drop-shadow(0 8px 14px #0006)}
body[data-area=shop] .retail-toolbar{background:var(--panel);border-color:var(--line);box-shadow:none;border-radius:16px}
body[data-area=shop] .retail-toolbar select{background:var(--panel);color:var(--text)}
body[data-area=shop] .retail-filter-trigger,body[data-area=shop] .retail-view-controls button[aria-pressed=true]{background:var(--text);color:#242421;box-shadow:none}
body[data-area=shop] .retail-quick-add{background:#262623;border-color:var(--gold);box-shadow:none}
body[data-area=shop] .retail-quick-add:hover{background:#494637}
body[data-area=shop] .retail-story,body[data-area=shop] .retail-story.budget,body[data-area=shop] .retail-editorial,body[data-area=shop] .retail-format-guide,body[data-area=shop] .retail-set-preview{background:var(--panel);border-color:var(--line)}
body[data-area=shop] .retail-sticky-buy{background:#171717fa;border-color:var(--line)}
/* Reveal controls match the app; physical foil and rarity hues remain independent. */
body[data-area] .modal{background:#1b1b1a;border-color:var(--line)}
body[data-area] .modal:has(.cinematic-rip){background:#0b0b0c}
body[data-area] .rip-again{background:#20201e;border-color:var(--line)}
body[data-area] .rip-reload-bundles button{background:#171717;border-color:var(--line)}
body[data-area] .rip-reload-bundles strong{color:var(--gold)}
body[data-area] .reveal-thumbs button.active{border-color:var(--gold)}
body[data-area] .material-controls button[aria-pressed=true]{background:#efc84a12;border-color:var(--gold)}
body[data-area] .material-stage:focus-visible{outline-color:var(--gold)}
@media(max-width:1100px){body[data-area] .top-nav{display:none}body[data-area] .topbar{gap:16px}}
@media(max-width:600px){
 body[data-area] .preview-banner{font-size:9px;padding:8px 10px;letter-spacing:.08em}
 body[data-area] .preview-banner span{display:block;font-size:9px;margin:3px 0 0}
 body[data-area] .topbar{height:72px;padding:0 12px;gap:10px}
 body[data-area] .brand>span:last-child{display:none}
 body[data-area] .header-right{gap:8px}
 body[data-area] .brand-symbol{width:34px;height:34px;min-width:34px}
 body[data-area] main{padding:24px 16px 100px}
 body[data-area] h1{font-size:42px}
 body[data-area] .section-head h2{font-size:28px}
 body[data-area] .personal-tabs{gap:6px;justify-content:flex-start}
 body[data-area] .personal-tabs a{font-size:12px;padding:10px 13px;flex-shrink:0}

 body[data-area] .control,body[data-area] .field input,body[data-area] .field select{font-size:16px}
 body[data-area] .button{font-size:16px;padding-inline:16px}
 body[data-area] .card-actions .button{font-size:12px;padding-inline:8px}
 body[data-area] .hero{border-radius:18px}
}

/* Shared navigation icon contract; independent of shop styling. */
.chrome-icon{display:block;width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
/* Tier engine v7: reverse holo / Poke Ball / Master Ball finish (placeholder styling) */
.finish-badge{display:inline-block;margin:4px 0 0;padding:2px 8px;border-radius:999px;font-size:11px;font-weight:600;letter-spacing:.02em;max-width:100%;white-space:nowrap}
.finish-reverse{--sheen:rgba(160,220,255,.55)}.finish-pokeball{--sheen:rgba(255,120,120,.55)}.finish-masterball{--sheen:rgba(200,140,255,.65)}
.finish-badge.finish-reverse{background:linear-gradient(90deg,#9fd8ff,#e3c6ff);color:#111}
.finish-badge.finish-pokeball{background:linear-gradient(90deg,#ff8a8a,#fff);color:#111}
.finish-badge.finish-masterball{background:linear-gradient(90deg,#b98cff,#ff9ee0);color:#111}
.opening-card-face{position:relative}
.finish-sheen{position:absolute;inset:0;pointer-events:none;border-radius:inherit;mix-blend-mode:screen;background:linear-gradient(115deg,transparent 20%,var(--sheen,rgba(255,255,255,.4)) 45%,transparent 70%);background-size:250% 100%;animation:finishSheen 2.4s ease-in-out infinite}
@keyframes finishSheen{0%{background-position:100% 0}100%{background-position:-100% 0}}
@media (prefers-reduced-motion:reduce){.finish-sheen{animation:none}}
.pack-filler,.pack-tier{opacity:.75;margin-top:6px;overflow-wrap:anywhere}

