:root{color-scheme:dark;--bg:#080808;--surface:#171717;--line:#303030;--muted:#aaa;--ink:#f5f5f5;font:15px/1.55 Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
*{box-sizing:border-box}body{-webkit-font-smoothing:antialiased;margin:0;background:var(--bg);color:var(--ink)}button,input,textarea,select{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit;border:1px solid var(--line);border-radius:14px;padding:12px 18px;background:var(--surface)}button:disabled{opacity:.4;cursor:default}button.primary{background:var(--ink);color:var(--bg);border-color:var(--ink)}a{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid white;outline-offset:3px}[hidden]{display:none!important}
main{width:min(980px,100%);margin:auto;padding:0 24px}.eyebrow{font-size:10px;letter-spacing:2px;color:var(--muted)}main{padding-top:28px;padding-bottom:125px}h1{font-size:36px;font-weight:700;letter-spacing:-.7px;line-height:1.15;margin:8px 0 22px}h2{font-size:20px;font-weight:700;margin:0 0 12px}h3{font-size:17px;margin:0 0 10px}p{margin:0 0 16px}.muted,small{color:var(--muted)}.panel{border:1px solid var(--line);border-radius:22px;background:var(--surface);padding:24px;margin:16px 0}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:20px 0}.stat{border:1px solid var(--line);border-radius:20px;background:var(--surface);padding:22px}.stat:first-child{background:var(--ink);color:var(--bg)}.stat strong{display:block;font-size:32px;line-height:1.2;margin-top:14px}.stat span{font-size:12px}.row{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.row>input{flex:1;min-width:120px}.card{overflow:hidden;border:1px solid var(--line);background:var(--surface);border-radius:22px;min-width:0}.card .body{padding:18px}.card img,.cover{width:100%;aspect-ratio:4/3;object-fit:cover;background:#242424}.card button{width:100%;margin-top:10px}.badge{font-size:11px;display:inline-block;padding:4px 8px;background:#ffffff0a;border-radius:20px;color:var(--muted)}.empty{padding:50px 22px;text-align:center;color:var(--muted);border:1px dashed var(--line);border-radius:22px}.field{display:grid;gap:7px;margin:16px 0}.field>span{color:var(--muted);font-size:13px}input,textarea,select{width:100%;padding:12px;border:1px solid #444;border-radius:12px;color:var(--ink);background:#101010}textarea{min-height:90px;resize:vertical}input[type=checkbox]{width:20px;height:20px;flex:none}.media-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.media-list video,.media-list img{width:100%;max-height:500px;object-fit:contain;background:#000;border-radius:14px}.media-list a{display:block;overflow-wrap:anywhere;font-size:12px}#notice{padding:14px 18px;border:1px solid #706040;border-radius:14px;color:#e4cf9e;margin-bottom:18px;overflow-wrap:anywhere}main.gate-layout{min-height:100dvh;display:grid;place-items:center;padding:40px 20px calc(32px + env(safe-area-inset-bottom))}#gate{width:min(100%,390px);padding:0;text-align:center}.gate-brand{display:flex;flex-direction:column;align-items:center;margin-bottom:30px}.gate-brand img{display:block;width:92px;height:92px;object-fit:contain;mix-blend-mode:screen}.gate-brand>span{font-size:27px;font-weight:750;letter-spacing:-1px;margin-top:3px}.gate-card{position:relative;padding:32px 23px 19px;border:1px solid #ffffff21;border-radius:27px;background:radial-gradient(ellipse at 50% 0,#ffffff09,transparent 65%),#141414;box-shadow:0 24px 70px #0005}.gate-status{display:block;width:28px;height:3px;border-radius:3px;background:#d4c49e;margin:0 auto 21px;box-shadow:0 0 12px #e9d4a12b}#gate h1{font-size:24px;line-height:1.2;letter-spacing:-.6px;margin:0 0 13px;text-wrap:balance}#gate-text{font-size:13px;line-height:1.7;color:#aaa;margin:0 auto 25px;max-width:300px;text-wrap:pretty}.gate-primary{display:flex;justify-content:center;align-items:center;min-height:51px;width:100%;padding:12px 16px;border:1px solid #fff;border-radius:15px;background:linear-gradient(130deg,#fff,#e6e6e6);color:#111;text-decoration:none;font-size:14px;font-weight:750}.gate-retry{min-height:44px;margin-top:8px;padding:10px 18px;border:0;background:transparent;color:#aaa;font-size:12px}@media(max-height:580px){main.gate-layout{padding-block:22px}.gate-brand{margin-bottom:18px}.gate-brand img{width:62px;height:62px}.gate-brand>span{font-size:23px}.gate-card{padding-top:24px}}.amount{font-variant-numeric:tabular-nums}.divider{border:0;border-top:1px solid var(--line);margin:22px 0}
@media(max-width:650px){main{padding-inline:16px}h1{font-size:31px}.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.stat{padding:17px}.stat strong{font-size:27px}.panel{padding:18px}.card .body{padding:13px}.media-list{grid-template-columns:1fr}}
@media(prefers-reduced-motion:no-preference){button{transition:background .15s}button:active{transform:scale(.98)}}
h1,h2,h3,p,.card,.step{overflow-wrap:anywhere}.row>input[type=checkbox]{min-width:20px;width:20px}.row>span{flex:1;min-width:0}

/* Floating navigation: the central circle always opens Packs. */
.ui-icon{display:block;width:24px;height:24px;flex:none}
#navigation{position:fixed;z-index:10;bottom:max(16px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);display:grid;grid-template-columns:1fr 94px 1fr;grid-template-rows:minmax(0,1fr);align-items:center;gap:16px;width:min(460px,calc(100% - 28px));height:74px;padding:8px 16px;background:#191919f5;border:1px solid #353535;border-radius:28px;box-shadow:0 12px 40px #0009;backdrop-filter:blur(18px)}
#navigation .nav-item{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;height:56px;padding:2px 0;min-width:0;border:0;background:none;color:#9e9e9e;border-radius:18px;font-size:12px;line-height:1.2}
#navigation .nav-item[aria-current=page]{color:#fff}
#navigation .nav-label{font-weight:600;max-width:100%;overflow-wrap:anywhere;text-align:center}
#navigation .nav-item[aria-current=page] .nav-label{font-weight:800}
#navigation .nav-profile .ui-icon{width:32px;height:32px}
#navigation .currency-icon{display:grid;place-items:center;width:32px;height:32px;font-size:30px;line-height:1}
#navigation .nav-earn .currency-icon{transform:translateY(-5px)}
#navigation .nav-packs{position:relative;top:-14px;justify-self:center;flex:none;width:88px;height:88px;border:7px solid var(--bg);border-radius:50%;background:linear-gradient(145deg,#fff,#dadada);color:#131313;box-shadow:0 0 0 1px #303030}
#navigation .nav-packs[aria-current=page]{color:#131313;background:#fff}
#navigation .nav-packs .ui-icon{width:38px;height:38px}
/* Profile identity and balance share one compact card, with levels directly below. */
.profile-screen{max-width:600px;margin:0 auto}
.profile-wallet{display:grid;grid-template-columns:88px minmax(0,1fr);align-items:center;gap:18px 20px;border:1px solid #333;border-radius:28px;background:linear-gradient(125deg,#202020,#121212);padding:22px;margin:0 0 26px}
.profile-emblem{width:88px;height:88px;border-radius:50%;background:#000;border:1px solid #383838;box-shadow:0 0 0 5px #ffffff03;overflow:hidden;display:grid;place-items:center}
.profile-emblem img{display:block;width:100%;height:100%;object-fit:contain}
.wallet-balance{min-width:0}
.wallet-label{font-size:12px;color:#bdbdbd;margin:0 0 6px;line-height:1.4}
.wallet-main{display:flex;align-items:center;justify-content:space-between;gap:10px}
.wallet-amount{min-width:0;font-weight:800;font-size:44px;letter-spacing:-1.5px;line-height:1.1;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.wallet-add{width:40px;height:40px;flex:none;border-radius:50%;background:#f1f1f1;color:#111;border:1px solid #fff;display:grid;place-items:center;padding:0;box-shadow:0 5px 20px #0003}
.wallet-add .ui-icon{width:21px;height:21px}
.wallet-debt{grid-column:1/-1;font-size:13px;color:#e4cf9e;margin:0}
.section-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:18px}.section-heading h2{margin:0;font-size:19px}
.level-chip{flex:none;display:inline-block;font-size:11px;font-weight:700;letter-spacing:.3px;color:#d4d4d4;padding:6px 11px;border:1px solid #353535;border-radius:20px;background:#191919}
.level-progress{margin-bottom:20px}.progress-caption{display:flex;justify-content:space-between;gap:16px;font-size:12px;margin-bottom:9px;color:#b4b4b4}.progress-caption strong{font-weight:700;color:#eee}
.level-progress progress{display:block;appearance:none;width:100%;height:5px;border:0;border-radius:8px;overflow:hidden;background:#2c2c2c;color:#e5e5e5}
.level-progress progress::-webkit-progress-bar{background:#2c2c2c;border-radius:8px}.level-progress progress::-webkit-progress-value{background:linear-gradient(90deg,#848484,#fff);border-radius:8px}.level-progress progress::-moz-progress-bar{background:#e5e5e5;border-radius:8px}
.level-progress p{font-size:11px;color:#888;margin:8px 0 0}
.levels-track{display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x proximity;scrollbar-width:thin;scrollbar-color:#383838 transparent;padding:3px 1px 12px;overscroll-behavior-inline:contain}
.level-card{flex:0 0 139px;scroll-snap-align:start;border:1px solid #2b2b2b;border-radius:23px;background:#151515;text-align:center;padding:18px 12px 12px;display:flex;flex-direction:column;align-items:center}
.level-card.is-current{background:linear-gradient(155deg,#292929,#171717);border-color:#686868}
.level-medal{width:53px;height:53px;display:grid;place-items:center;border-radius:50%;border:1px solid #424242;background:linear-gradient(150deg,#383838,#181818);box-shadow:inset 0 0 0 5px #ffffff03;margin-bottom:12px;color:#909090}
.level-medal span{font-size:21px;font-weight:800;letter-spacing:-1px}.is-current .level-medal{background:linear-gradient(145deg,#fff,#bcbcbc);border-color:#eee;color:#141414;box-shadow:0 4px 16px #0004}.is-claimed .level-medal{color:#eee}
.level-card h3{font-size:13px;font-weight:700;margin:0 0 5px}.level-condition{font-size:10px;line-height:1.4;min-height:28px;margin:0 0 8px;color:#828282}.level-reward{font-size:14px;font-weight:800;margin-bottom:14px;display:block}
.level-claim{display:flex;align-items:center;justify-content:center;gap:5px;width:100%;margin-top:auto;padding:8px 4px;border-radius:12px;font-size:11px;font-weight:700;line-height:1.3;background:#ececec;color:#151515;border-color:#ececec;min-height:34px}
.level-claim:disabled{opacity:1;background:#ffffff04;border-color:#ffffff08;color:#6f6f6f}.level-claim .ui-icon,.level-origin .ui-icon{width:12px;height:12px}.level-origin{display:flex;gap:5px;align-items:center;justify-content:center;min-height:34px;color:#a2a2a2;font-size:11px;margin-top:auto}
.level-swipe{text-align:center;font-size:11px;color:#6f6f6f;margin:7px 0 0}
@media(max-width:360px){#navigation{gap:8px;padding-inline:10px}.profile-wallet{grid-template-columns:76px minmax(0,1fr);gap:16px;padding:18px}.profile-emblem{width:76px;height:76px}.wallet-amount{font-size:38px}.wallet-add{width:36px;height:36px}.section-heading h2{font-size:17px}.level-chip{font-size:10px}}

/* Packs: one section switcher, with creation separated from browsing. */
.packs-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:8px 0 24px}
.packs-heading h1{margin:0;min-width:0}
.packs-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px;padding:5px;margin-bottom:26px;border:1px solid #292929;border-radius:20px;background:#141414}
.packs-tabs button{min-width:0;min-height:44px;padding:10px 6px;border:0;border-radius:14px;background:transparent;color:#999;font-size:13px;font-weight:700;line-height:1.3;overflow-wrap:anywhere}
.packs-tabs button[aria-current=page]{background:linear-gradient(145deg,#fafafa,#dedede);color:#111;box-shadow:0 2px 8px #0003}
.packs-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px;min-height:250px;padding:38px 22px;text-align:center;background:radial-gradient(ellipse at 50% 30%,#ffffff04,transparent 65%);color:#8e8e8e}
.packs-empty-icon{display:grid;place-items:center;width:80px;height:80px;border-radius:26px;border:1px solid #303030;background:linear-gradient(145deg,#202020,#101010);box-shadow:0 12px 28px #0004,inset 0 1px 0 #ffffff05;color:#c8c8c8;transform:rotate(-7deg)}
.packs-empty-icon .ui-icon{width:37px;height:37px}.packs-empty p{margin:0;font-size:14px}
@media(hover:hover){.packs-tabs button:not([aria-current=page]):hover{color:#eee;background:#202020}}

/* Earn starts with four compact disclosures; form state survives closing a card. */
.earn-screen{max-width:680px;margin:0 auto}
.earn-card{margin:0 0 12px;border:1px solid #303030;border-radius:22px;background:linear-gradient(125deg,#1c1c1c,#121212);overflow:hidden}
.earn-card>summary,.earn-card-link{display:flex;align-items:center;gap:14px;padding:18px;min-height:94px;cursor:pointer;list-style:none;outline-offset:-4px}
.earn-card-link{width:100%;text-align:start}
.earn-card>summary::-webkit-details-marker{display:none}
.earn-card>summary:focus-visible,.earn-card-link:focus-visible{outline:2px solid #e6d29c;border-radius:20px}
.earn-card-icon{display:grid;place-items:center;flex:none;width:46px;height:46px;border:1px solid #4a4231;border-radius:15px;background:#cda9490b;color:#e6c879}
.earn-card-icon .ui-icon{width:26px;height:26px}
.earn-card-copy{display:grid;gap:5px;flex:1;min-width:0}
.earn-card-copy>strong{font-size:17px;line-height:1.3;font-weight:800;overflow-wrap:anywhere}
.earn-card-subtitle{font-size:12px;line-height:1.5;color:#a6a6a6;overflow-wrap:anywhere}
.earn-card>summary>.ui-icon,.earn-card-link>.ui-icon{width:17px;height:17px;flex:none;color:#858585}
[dir=rtl] .earn-card>summary>.ui-icon,[dir=rtl] .earn-card-link>.ui-icon{transform:rotate(180deg)}
.earn-card[open]{border-color:#63563b}
.earn-card[open]>summary>.ui-icon{transform:rotate(90deg);color:#e6c879}
.earn-card-progress{display:block;appearance:none;width:100%;max-width:180px;height:3px;margin-top:3px;border:0;border-radius:4px;overflow:hidden;background:#343434;color:#dfc17a}
.earn-card-progress::-webkit-progress-bar{background:#343434}.earn-card-progress::-webkit-progress-value{background:#dfc17a}.earn-card-progress::-moz-progress-bar{background:#dfc17a}
.earn-card-body{padding:20px 18px 22px;border-top:1px solid #ffffff0c;font-size:13px}
.earn-card-body h3{font-size:14px;margin:18px 0 10px}
.earn-card-body p{line-height:1.6}.earn-card-body p:last-child{margin-bottom:0}
.referral-numbers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.referral-numbers>div{display:flex;flex-direction:column;gap:4px;padding:13px 15px;border:1px solid #ffffff10;border-radius:15px;background:#08080840}
.referral-numbers strong{font-size:25px;line-height:1.1;font-weight:800;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.referral-numbers span{font-size:11px;color:#a8a69f}
.referral-link{margin:20px 0 12px;gap:8px}.referral-link>span{font-size:12px;color:#b8b5ab}.referral-link input{min-width:0;font-size:12px;border-color:#3f3b30;background:#09090970;color:#dedbd3;padding:13px 12px;border-radius:13px}
.referral-copy{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;font-weight:800;border-radius:14px}.referral-copy .ui-icon{width:18px;height:18px}
.referral-rewards{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:17px 2px;border:0;border-radius:0;background:transparent;font-size:13px;font-weight:700;text-align:start;color:#d2c6a5}.referral-rewards .ui-icon{width:16px;height:16px;color:#a68f5f}[dir=rtl] .referral-rewards .ui-icon{transform:rotate(180deg)}
.creator-steps{list-style:none;counter-reset:steps;padding:0;margin:20px 0;display:grid;gap:12px}.creator-steps li{counter-increment:steps;display:flex;align-items:center;gap:12px;font-size:13px;color:#ddd}.creator-steps li::before{content:counter(steps);display:grid;place-items:center;flex:none;width:25px;height:25px;border:1px solid #524a38;border-radius:50%;color:#e7ca88;font-size:11px;font-weight:800}
.creator-create{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;font-weight:800}.creator-create .ui-icon{width:20px;height:20px}
.earn-card-body>.creator-content{margin-bottom:20px}.earn-card-body>.earn-card:last-child{margin-bottom:0}.earn-card-body>.earn-card>summary{padding:14px;gap:10px}.earn-card-body>.earn-card>.earn-card-body{padding:16px 12px}.earn-card-body>.earn-card .earn-card-copy>strong{font-size:15px}.earn-card-body>.earn-card .earn-card-icon{width:38px;height:38px;border-radius:12px}
.author-wallet .stats{gap:8px;margin-top:0}.author-wallet .stat{padding:16px 12px;border-radius:17px}.author-wallet .stat strong{font-size:26px;overflow-wrap:anywhere}.author-wallet .stat span{font-size:11px}
.author-payout{border-top:1px solid #333;padding-top:16px}.author-payout form>button{width:100%}
.payout-history{margin-top:24px}.payout-row{display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px 16px;border-top:1px solid #333;padding:14px 0;font-size:13px}.payout-row small{flex-basis:100%;overflow-wrap:anywhere}
.author-levels-track:focus-visible{outline:2px solid #e6d29c;outline-offset:3px;border-radius:18px}
.author-level-card{flex:0 0 210px;min-width:0;scroll-snap-align:start;padding:18px;border:1px solid #333;border-radius:20px;background:#191919}
.author-level-card[aria-current=step]{border-color:#8b7746;background:linear-gradient(140deg,#302b20,#1b1915)}
.author-level-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.author-level-heading h3{margin:0;font-size:13px;color:#bbb}.author-level-heading .ui-icon{width:17px;height:17px;color:#efd18c}
.author-level-share{display:block;font-size:38px;line-height:1.2;letter-spacing:-1px;margin:16px 0 2px}.author-level-card[aria-current=step] .author-level-share{color:#efd18c}.author-level-card>.muted{font-size:11px}
.author-level-terms{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px 8px;margin:18px 0 0;padding-top:14px;border-top:1px solid #ffffff10;font-size:11px}.author-level-terms dt{color:#999}.author-level-terms dd{margin:0;font-weight:800;font-variant-numeric:tabular-nums;white-space:nowrap}
.earn-screen .section-heading strong{font-size:14px}
@media(max-width:360px){.earn-card>summary,.earn-card-link{gap:11px;padding:16px;min-height:90px}.earn-card-copy>strong{font-size:16px}.earn-card-icon{width:42px;height:42px}.earn-card-body{padding:18px 16px}}
@media(max-width:650px){.author-wallet .stats{grid-template-columns:repeat(2,minmax(0,1fr))}.author-wallet .stat{padding:14px 12px}.author-wallet .stat strong{font-size:24px}.author-wallet .stat:first-child{background:var(--surface);color:var(--ink)}.author-wallet .stat:last-child{grid-column:1/-1;grid-row:1;display:flex;align-items:center;justify-content:space-between;gap:12px;background:var(--ink);color:var(--bg)}.author-wallet .stat:last-child strong{margin-top:0}}
/* Browsing uses a cover feed; the author's management cards stay separate. */
.pack-feed{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:26px 12px}
.pack-feed-card{display:flex;flex-direction:column;min-width:0;padding:0;border:0;border-radius:16px;background:transparent;text-align:start}
.pack-feed-cover{position:relative;isolation:isolate;display:grid;place-items:center;width:100%;aspect-ratio:1.22;overflow:hidden;border-radius:17px;background:radial-gradient(ellipse at 70% 10%,#414141,#181818 80%);border:1px solid #ffffff12}
.pack-feed-cover>.ui-icon{width:52px;height:52px;color:#aaa}
.pack-feed-cover>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.pack-feed-cover::after{content:"";position:absolute;inset:45% 0 0;background:linear-gradient(transparent,#000b);pointer-events:none}
.pack-feed-author{position:absolute;z-index:1;bottom:11px;inset-inline:11px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:10px;font-weight:700;letter-spacing:.05em;color:#eee}
.pack-feed-title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere;font-size:15px;line-height:1.35;font-weight:800;margin-top:11px}
.pack-feed-meta{font-size:11px;color:#999;line-height:1.5;margin-top:5px;overflow-wrap:anywhere}
.pack-feed-price{font-size:15px;font-weight:800;font-variant-numeric:tabular-nums;margin-top:7px;color:#ecd599}
.pack-feed-more{display:block;min-width:160px;margin:28px auto 0;font-size:13px}
@media(hover:hover){.pack-feed-card:hover .pack-feed-cover{border-color:#777}.pack-feed-card:hover .pack-feed-title{color:#ecd599}}
@media(min-width:700px){.pack-feed{grid-template-columns:repeat(3,minmax(0,1fr));gap:30px 20px}}
.pack-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,270px),1fr));gap:16px}
.pack-tile{display:flex;flex-direction:column;min-width:0;padding:20px;border:1px solid #353535;border-radius:24px;background:linear-gradient(135deg,#202020,#131313);box-shadow:inset 0 1px 0 #ffffff05}
.pack-tile-head{display:flex;align-items:center;gap:16px}.pack-tile-cover{display:grid;place-items:center;flex:none;width:80px;height:94px;overflow:hidden;border:1px solid #404040;border-radius:18px;background:radial-gradient(ellipse at 30% 0,#444,#252525 70%);color:#e2d5b5}.pack-tile-cover>.ui-icon{width:42px;height:42px}.pack-tile-cover img,.pack-tile-cover video{display:block;width:100%;height:100%;object-fit:cover}
.pack-tile-info{min-width:0;flex:1}.pack-tile-info h3{font-size:19px;line-height:1.3;margin:0 0 8px;overflow-wrap:anywhere}.pack-tile-price{display:block;font-size:23px;font-weight:800;line-height:1.3;margin-top:8px;font-variant-numeric:tabular-nums}
.pack-tile-status{display:inline-flex;align-items:center;gap:6px;max-width:100%;font-size:10px;line-height:1.4;padding:4px 8px;border:1px solid #ffffff10;border-radius:7px;background:#ffffff05;color:#aaa;overflow-wrap:anywhere}.pack-tile-status::before{content:"";width:4px;height:4px;flex:none;border-radius:50%;background:currentColor}.pack-tile-status[data-status=published]{color:#ddc58e;border-color:#b59b552b}.pack-tile-status[data-status=rejected]{color:#e2aaa4}
.pack-tile-count{font-size:12px;color:#999;margin:16px 0}
.pack-tile-open{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:46px;margin-top:auto;padding:12px 15px;border-color:#e8e8e8;border-radius:13px;background:linear-gradient(135deg,#fafafa,#dedede);color:#141414;font-size:13px;font-weight:800}.pack-tile-open .ui-icon{width:17px;height:17px}[dir=rtl] .pack-tile-open .ui-icon{transform:rotate(180deg)}

/* One editor: details, grouped media, then publication. */
.pack-editor{max-width:680px;margin:0 auto}.pack-editor>button:first-child{padding:7px 0;margin-bottom:14px;border:0;background:none;color:#aaa;font-size:13px}.pack-editor>h1{font-size:30px;line-height:1.2}.pack-editor>.badge{margin:-8px 0 18px}
.pack-metadata{padding:24px;border:1px solid #343434;border-radius:24px;background:linear-gradient(135deg,#1c1c1c,#131313);margin:0 0 26px}.pack-step-heading{display:flex;align-items:center;gap:12px;margin-bottom:22px}.pack-step-heading h2{margin:0;font-size:19px}.pack-step{display:grid;place-items:center;width:34px;height:34px;flex:none;border:1px solid #5b5037;border-radius:11px;background:#d8b65d0a;color:#dac185;font-size:12px;font-weight:800;font-variant-numeric:tabular-nums}
.pack-metadata .field{margin:18px 0}.pack-metadata .field>span{font-size:13px;color:#d0d0d0;font-weight:650}.pack-metadata input,.pack-metadata textarea{padding:13px 14px;border-color:#393939;background:#0c0c0c80;border-radius:13px}.pack-metadata textarea{min-height:112px}.pack-metadata .pack-price-field{max-width:260px}.pack-price-field input{font-size:24px;font-weight:750;font-variant-numeric:tabular-nums}.pack-price-field small{font-size:11px;color:#888}.pack-draft-hint{font-size:12px;color:#999;line-height:1.5;margin:20px 0}.pack-metadata>button{width:100%;margin-top:7px;font-weight:750}
.pack-materials>.pack-step-heading{margin-bottom:10px}.pack-upload-hint{font-size:12px;color:#999;line-height:1.6;margin:0 0 18px}.pack-upload-card{padding:20px;margin:0 0 14px;border:1px solid #303030;border-radius:22px;background:#151515}.pack-upload-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:16px}.pack-upload-heading h3{font-size:16px;line-height:1.3;margin:0 0 5px}.pack-upload-heading .muted{font-size:11px}.pack-file-count{flex:none;padding:5px 9px;border:1px solid #333;border-radius:10px;background:#ffffff04;color:#b8b8b8;font-size:11px;font-variant-numeric:tabular-nums}
.pack-file-picker{position:relative;display:flex;flex-direction:column;align-items:center;gap:8px;margin:12px 0;padding:22px 14px;border:1px dashed #49443a;border-radius:15px;background:#c9ab5b05;text-align:center;cursor:pointer}.pack-file-picker:focus-within{outline:2px solid #e0c78f;outline-offset:3px}.pack-file-picker>.ui-icon{width:25px;height:25px;color:#cfb57b}.pack-file-picker>span{font-size:13px;font-weight:700;color:#e0c78f}.pack-file-picker input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.pack-file-selection{max-width:100%;font-size:10px;color:#888;overflow-wrap:anywhere}.pack-upload-button{width:100%;padding:10px 14px;font-size:13px;font-weight:700;background:#222;border-color:#3b3b3b}
.pack-upload-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:16px}.pack-upload-file{min-width:0;padding:8px;border:1px solid #303030;border-radius:14px;background:#101010}.pack-upload-file img,.pack-upload-file video{display:block;width:100%;height:140px;object-fit:contain;background:#080808;border-radius:8px}.pack-file-name{display:block;font-size:10px;color:#999;overflow-wrap:anywhere;margin:8px 0}.pack-upload-file button{padding:6px;width:100%;font-size:10px;border-color:#333;background:transparent;color:#bbb}.pack-review{padding:20px;margin:22px 0;border:1px solid #49402e;border-radius:22px;background:linear-gradient(135deg,#211f18,#141414)}.pack-review p{font-size:12px;line-height:1.5}.pack-review button{width:100%;font-weight:750}.pack-editor>button:last-child{font-size:12px;color:#999;background:transparent}
@media(max-width:650px){.pack-metadata{padding:20px}.pack-upload-card{padding:17px}.pack-editor>h1{font-size:27px}.pack-metadata .pack-price-field{max-width:none}.pack-upload-file img,.pack-upload-file video{height:110px}}


/* Pack preview and single-player purchased library. */
.pack-catalog-media {
  position: relative;
  height: clamp(180px, calc(100dvh - 360px), 410px);
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.085);
  border-radius: 19px;
  background:
    radial-gradient(circle at 82% 10%, rgba(176,176,176,.16), transparent 38%),
    #141414;
  box-shadow: 0 26px 70px -48px rgba(176,176,176,.8), inset 0 1px 0 rgba(255,255,255,.045);
}
.pack-catalog-media > img,
.pack-catalog-media > video {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
}
.pack-catalog-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6,6,6,.2), transparent 30%),
    linear-gradient(0deg, rgba(6,6,6,.96) 0, rgba(6,6,6,.48) 37%, transparent 67%);
  pointer-events: none;
}
.pack-catalog-preview-play {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 50%;
  display: grid;
  width: 58px;
  height: 58px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 50%;
  background: rgba(17,17,17,.72);
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 14px 38px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.12);
  backdrop-filter: blur(12px);
  transform: translate(-50%,-50%);
  transition: transform .15s ease, background .15s ease, opacity .15s ease;
}
.pack-catalog-preview-play[hidden] { display: none; }
.pack-catalog-preview-play span { margin-left: 3px; font-size: 18px; line-height: 1; }
.pack-catalog-preview-play:active { background: rgba(176,176,176,.55); transform: translate(-50%,-50%) scale(.94); }
.pack-catalog-kicker {
  display: inline-flex;
  padding: 6px 9px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 999px;
  background: rgba(8,8,8,.54);
  color: rgba(255,255,255,.74);
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 500;
  backdrop-filter: blur(10px);
}
.pack-catalog-author {
  position: absolute;
  z-index: 2;
  top: 17px;
  inset-inline-start: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.pack-catalog-author-avatar {
  display: grid;
  width: 30px;
  height: 30px;
  overflow: hidden;
  place-items: center;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  background: rgba(176,176,176,.18);
  color: #ffffff;
  font-size: 10px;
  box-shadow: 0 7px 20px rgba(4,4,4,.3);
  backdrop-filter: blur(10px);
}
.pack-catalog-author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pack-catalog-copy {
  position: absolute;
  z-index: 2;
  inset-inline: 13px;
  bottom: 13px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.pack-catalog-copy h1 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  margin: 0;
  color: #ffffff;
  font-size: clamp(21px, 5.8vw, 29px);
  line-height: 1.1;
  letter-spacing: -.05em;
  text-overflow: ellipsis;
  text-shadow: none;
  overflow-wrap: anywhere;
}
.pack-catalog-copy h1[hidden] { display: none; }
.pack-catalog-media.is-sample .pack-catalog-copy { top: 13px; bottom: auto; justify-content: flex-end; }
.pack-catalog-media.is-sample .pack-catalog-author { display: none; }
.pack-catalog-details {
  display: flex;
  min-height: 24px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.pack-catalog-tags { display: flex; min-width: 0; flex-wrap: wrap; gap: 4px 0; }
.pack-catalog-tags span {
  color: #b3b3b3;
  font-size: 11px;
  line-height: 1.5;
}
.pack-catalog-tags span + span::before { content: "·"; margin-inline: 7px; color: #7c7c7c; }
.pack-catalog-meta-author { max-width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pack-catalog-sample {
  display: inline-flex;
  flex: 0 0 auto;
  max-width: 47%;
  min-height: 40px;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border: 1px solid rgba(176,176,176,.34);
  border-radius: 11px;
  background: rgba(54,54,54,.87);
  color: #ebebeb;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  text-align: start;
  cursor: pointer;
  box-shadow: 0 9px 24px -18px rgba(176,176,176,.95), inset 0 1px 0 rgba(255,255,255,.06);
  transition: transform .14s ease, background .14s ease, border-color .14s ease;
}
.pack-catalog-sample[hidden] { display: none; }
.pack-catalog-sample::before {
  content: "▶";
  font-size: 8px;
  line-height: 1;
}
.pack-catalog-sample.active::before { content: "←"; }
.pack-catalog-sample:hover { border-color: rgba(176,176,176,.54); background: rgba(176,176,176,.27); }
.pack-catalog-sample:active { transform: scale(.97); }
.pack-catalog-buy {
  width: 100%;
  min-height: 48px;
  padding: 10px 16px;
  border: 1px solid #f5f5f5;
  border-radius: 14px;
  background: #f5f5f5;
  color: #111111;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}
.pack-catalog-buy:active { background: #dedede; }
.pack-catalog-buy:focus-visible, .pack-catalog-sample:focus-visible { outline: 2px solid #f8f8f8; outline-offset: 3px; }
.pack-catalog-buy:disabled { opacity: .62; }
.pack-catalog-purchase-note { margin: -1px 0 0; color: #979797; font-size: 11px; line-height: 1.5; text-align: center; }
.pack-owned-empty {
  display: grid;
  min-height: 240px;
  place-content: center;
  justify-items: center;
  gap: 11px;
  padding: 28px;
  border: 1px dashed rgba(176,176,176,.18);
  border-radius: 19px;
  background: rgba(176,176,176,.025);
  text-align: center;
}
.pack-owned-empty-mark { display: grid; width: 45px; height: 45px; place-items: center; border-radius: 15px; background: rgba(176,176,176,.11); color: #e8e8e8; font-size: 22px; }
.pack-owned-empty strong { color: #f3f3f3; font-size: 16px; }
.pack-owned-empty p { max-width: 245px; margin: 0; color: #989898; font-size: 9px; line-height: 1.5; }
.pack-owned-empty button { min-height: 39px; margin-top: 4px; padding: 0 16px; border: 0; border-radius: 12px; background: #f5f5f5; color: #111111; font-size: 9px; font-weight: 900; }
.pack-catalog-back { display: flex; align-items: center; gap: 8px; min-height: 44px; width: fit-content; margin-inline: 6px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #bbbbbb; font: inherit; font-size: 12px; cursor: pointer; }
.pack-catalog-back > span:first-child { font-size: 21px; }
[dir="rtl"] .pack-catalog-back > span:first-child { transform: scaleX(-1); }
.pack-catalog-back:disabled { opacity: .55; cursor: wait; }

.pack-detail{display:flex;flex-direction:column;gap:16px;max-width:980px;margin:auto}.pack-shop-title,.packs-heading h1{margin:8px 0 0;font-size:27px;font-weight:550;letter-spacing:-.035em}.pack-detail>.pack-shop-title{margin-bottom:0}.pack-detail>.pack-catalog-back{margin-top:0}.pack-presentation{display:flex;flex-direction:column;gap:16px;margin:0}.pack-catalog-buy{font-family:inherit}.pack-watch{width:100%;margin:0}.pack-purchase-success{padding:16px;border:1px solid #555;border-radius:14px;color:#eee;background:#202020}.pack-create-fab{position:fixed;z-index:11;inset-inline-end:max(20px,calc((100vw - 980px)/2 + 24px));bottom:calc(max(16px,env(safe-area-inset-bottom)) + 102px);display:grid;place-items:center;width:52px;height:52px;padding:0;border:1px solid #ddd;border-radius:17px;background:#f5f5f5;color:#111;box-shadow:0 8px 25px #0008;font-size:29px;font-weight:400}.pack-feed-play{position:absolute;z-index:3;top:9px;inset-inline-end:9px;display:grid;width:27px;height:27px;place-items:center;border-radius:50%;background:#0c0c0c8c;color:#fff;font-size:10px}.pack-feed-cover{border:0;border-radius:15px}.pack-feed-title{font-size:14px;font-weight:650}.pack-feed-author{font-size:9px;letter-spacing:.16em;text-transform:uppercase}.pack-feed-price{font-size:13px;font-weight:650;margin-top:9px;color:#eee}.pack-feed{gap:24px 12px}.pack-editor>.pack-shop-title{display:none}
.pack-viewer{width:min(900px,calc(100vw - 20px));height:min(900px,calc(100dvh - 20px));max-width:100%;max-height:100dvh;box-sizing:border-box;padding:18px;border:1px solid #3a3a3a;border-radius:24px;background:#111;color:#f6f6f6;overflow:auto;overscroll-behavior:contain}.pack-viewer::backdrop{background:#000d;backdrop-filter:blur(8px)}.pack-viewer header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.pack-viewer h2{margin:0;font-size:18px;overflow-wrap:anywhere}.pack-viewer-close{display:grid;place-items:center;flex:none;width:42px;height:42px;padding:0;border-radius:50%}.pack-viewer-close .ui-icon{width:22px;height:22px}.pack-viewer-stage{height:min(58dvh,570px);display:grid;place-items:center;background:#050505;border-radius:16px;overflow:hidden}.pack-viewer-stage img,.pack-viewer-stage video{width:100%;height:100%;object-fit:contain}.pack-viewer-nav{display:flex;align-items:center;justify-content:center;gap:22px;margin:12px 0}.pack-viewer-nav button{width:44px;height:40px;padding:0;font-size:25px}.pack-viewer-position{font-size:13px;color:#bbb;font-variant-numeric:tabular-nums}.pack-viewer-strip{display:flex;gap:8px;overflow:auto;padding:3px 0 10px}.pack-viewer-thumb{flex:none;width:44px;height:44px;padding:0;font-size:12px}.pack-viewer-thumb.is-current{border-color:#ddd}.pack-viewer-thumb.is-selected{background:#dbc28d;border-color:#dbc28d;color:#111}.pack-viewer-send{width:100%;margin:4px 0;font-size:13px;font-weight:750}.pack-viewer-message{font-size:12px;color:#baa779;line-height:1.5;margin:8px 0;overflow-wrap:anywhere}.pack-viewer-message:empty{display:none}

/* Purchase confirmation follows Rey's modal card with WantMe colors. */
.pack-purchase-dialog{position:fixed;width:min(430px,calc(100vw - 32px));max-height:calc(100dvh - 32px);margin:auto;overflow:auto;padding:23px 20px 18px;border:1px solid #ffffff26;border-radius:22px;background:radial-gradient(circle at 92% 5%,#ffffff12,transparent 38%),#111;color:#f6f6f6;box-shadow:0 26px 82px #0009,inset 0 1px 0 #ffffff0b}.pack-purchase-dialog::backdrop{background:#000b;backdrop-filter:blur(8px)}.pack-purchase-close{position:absolute;z-index:2;top:13px;inset-inline-end:13px;display:grid;width:29px;height:29px;padding:0;place-items:center;border:1px solid #ffffff1a;border-radius:50%;background:#ffffff0b;color:#bcbcbc;line-height:1}.pack-purchase-close .ui-icon{width:16px;height:16px}.pack-purchase-mark{display:grid;width:46px;height:46px;place-items:center;border-radius:15px;background:#ffffff12;color:#eee;box-shadow:inset 0 1px 0 #ffffff0f}.pack-purchase-kicker{display:block;margin-top:17px;color:#aaa;font-size:10px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}.pack-purchase-dialog h2{margin:8px 0 0;font-size:clamp(25px,7vw,33px);line-height:1.1;letter-spacing:-.045em;overflow-wrap:anywhere}.pack-purchase-dialog p{margin:12px 0 0;color:#aaa;font-size:12px;line-height:1.55}.pack-purchase-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:22px}.pack-purchase-actions button{min-height:49px;padding:10px 12px;border:1px solid #ffffff26;border-radius:14px;background:#ffffff08;color:#f6f6f6;font-size:12px;font-weight:750;overflow-wrap:anywhere}.pack-purchase-actions button.primary{border-color:#f5f5f5;background:#f5f5f5;color:#111}@media(prefers-reduced-motion:no-preference){.pack-purchase-dialog[open]{animation:purchase-appear .2s ease-out}@keyframes purchase-appear{from{opacity:0;transform:translateY(12px) scale(.98)}to{opacity:1;transform:none}}}

/* Decorative purchase feedback never intercepts navigation or playback. */
.pack-butterflies{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;z-index:80}
@media(prefers-reduced-motion:reduce){.pack-butterflies{display:none}}

/* Visible from the first HTML paint until the initial screen is ready. */
.startup{position:fixed;inset:0;z-index:200;display:grid;place-items:center;background:#000;color:#f5f5f5}
.startup-brand{display:flex;flex-direction:column;align-items:center;transform:translateY(-24px)}
.startup-brand img{width:112px;height:112px;object-fit:contain;mix-blend-mode:screen}
.startup-brand strong{margin-top:-10px;font-size:35px;font-weight:800;line-height:1.2;letter-spacing:-1.8px}
.startup-dots{display:flex;gap:7px;margin-top:29px;height:5px}
.startup-dots i{width:5px;height:5px;border-radius:50%;background:#f5f5f5;opacity:.3}
@media(prefers-reduced-motion:no-preference){
 .startup-brand img{animation:startup-butterfly 1.8s ease-in-out infinite}
 .startup-dots i{animation:startup-dot 1.2s ease-in-out infinite}
 .startup-dots i:nth-child(2){animation-delay:.16s}.startup-dots i:nth-child(3){animation-delay:.32s}
 @keyframes startup-butterfly{0%,100%{transform:translateY(0) scaleX(1);opacity:.95}50%{transform:translateY(-6px) scaleX(.82);opacity:.65}}
 @keyframes startup-dot{0%,70%,100%{opacity:.2}35%{opacity:1}}
}

.pack-first-purchase{position:fixed;inset:0;margin:0;width:100%;max-width:none;height:100%;height:100dvh;max-height:none;padding:20px;border:0;background:transparent;color:#f5f5f5;overflow:auto}.pack-first-purchase[open]{display:grid;place-items:center}.pack-first-purchase::backdrop{background:#000b;backdrop-filter:blur(7px)}
.pack-first-card{position:relative;z-index:1;width:min(440px,100%);padding:30px 25px 23px;border:1px solid #ffffff26;border-radius:27px;background:radial-gradient(ellipse at 50% 25%,#ffffff09,transparent 65%),#101010f5;box-shadow:0 24px 90px #0009;text-align:center}
.pack-first-purchase .pack-butterflies{z-index:2}.pack-first-card .pack-purchase-actions{grid-template-columns:1fr;gap:15px;margin-top:26px}.pack-first-card .pack-purchase-close{top:12px;inset-inline-end:13px;width:30px;height:30px;padding:0;border:0;background:transparent;color:#999}.pack-first-card .pack-purchase-close .ui-icon{width:22px;height:22px}
.pack-first-reward{position:relative;display:grid;place-items:center;height:185px;margin:0 0 12px;isolation:isolate;overflow:hidden}
.pack-first-reward strong{position:relative;font-size:clamp(76px,20vw,108px);font-weight:850;line-height:1;letter-spacing:-6px;text-shadow:0 0 24px #fff2;white-space:nowrap}
.pack-gift-butterfly{position:absolute;z-index:-1;width:260px;height:260px;max-width:100%;background:#fff;opacity:.16;transform:rotate(-16deg);mask-image:url('/app/static/assets/butterfly.jpg');mask-mode:luminance;mask-size:contain;mask-repeat:no-repeat;mask-position:center}
.pack-gift-spark{position:absolute;top:20px;inset-inline-end:5%;font-size:23px;color:#f5f5f5;text-shadow:0 0 12px #fff8}
.pack-first-purchase h2{margin:0;font-size:clamp(24px,6.5vw,31px);font-weight:800;line-height:1.13;letter-spacing:-.8px;text-wrap:balance}.pack-first-purchase p{color:#b5b5b5;font-size:14px;line-height:1.6;margin:15px 0 0;white-space:pre-line}
.pack-first-card .pack-purchase-actions button.primary{display:flex;align-items:center;justify-content:center;gap:8px;min-height:54px;border-radius:17px;font-size:14px;font-weight:750;padding:12px}.pack-first-card .pack-purchase-actions .ui-icon{width:19px;height:19px;flex:none}[dir=rtl] .pack-first-card .pack-purchase-actions .ui-icon{transform:rotate(180deg)}
.pack-first-card .pack-purchase-actions .pack-first-secondary{min-height:30px;padding:5px;background:transparent;border:0;border-radius:6px;font-size:14px;font-weight:400;line-height:1.4;color:#a5a5a5;text-decoration:underline;text-underline-offset:4px}
@media(prefers-reduced-motion:no-preference){.pack-first-card{animation:purchase-appear .25s ease-out}}
.pack-discount-price{display:flex;gap:12px;align-items:center;margin:20px 0 0;font-size:12px;color:#ccc}.pack-discount-price del,.pack-feed-price del{color:#888;font-size:12px;font-weight:400}.pack-feed-price del{margin-inline-end:9px}
