/* v7 (Trap Tech brand art, shop, seasons, Sponsor a Host, brands). Loaded after app.css. */
/* ---- Trap Tech brand art ---- */
.ttp { display: inline-block; line-height: 0; } .ttp img { height: 100%; width: auto; max-width: 100%; }
.ttp img { filter: drop-shadow(0 0 10px rgba(57,255,20,.18)); }
.topbar .logo { height: 30px; }
.hd-tt { display: inline-flex; align-items: center; gap: 5px; color: var(--dim); font-size: .58rem; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; margin-left: -4px; }
.hd-tt .ttp img { height: 30px; }
.hd-tt .only-wide { display: none; }
@media (min-width: 900px) { .hd-tt .only-ph { display: none; } .hd-tt .only-wide { display: inline-block; } .hd-tt .ttp-horizontal img { height: 28px; } }
@media (max-width: 370px) { .hd-tt span { display: none; } .hd-tt .ttp img { height: 26px; } .topbar .logo { height: 26px; } }
.sf-brand .ttp img { height: 54px; opacity: 1; }
.dr-tt .ttp img { height: 44px; }
.gate-tt .ttp img { height: 86px; }
.tt-sig .ttp img { height: auto; max-height: 92px; width: auto; }
.tt-sig .ttp-horizontal img { max-height: 46px; }
.footer-note .ttp { display: block; margin: 0 auto 6px; } .footer-note .ttp img { height: 64px; }
.ttb-head .ttp img { height: 50px; }
.about-tt { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.about-tt .ttp img { height: 150px; width: auto; filter: drop-shadow(0 0 22px rgba(57,255,20,.28)); }
@media (max-width: 420px) { .about-tt .ab-lock img { height: auto; width: 100%; max-width: 330px; } }
.about-hero { grid-template-columns: minmax(0, 1fr); } .about-tt, .about-tt .ab-lock { max-width: 100%; min-width: 0; }
.about-hero .about-tt img { width: auto; }
.about-mini .ttp img { height: 56px; width: 56px; }
.boot-tt .ttp img { height: 22px; vertical-align: -5px; }
/* ---- Sponsor a Host ---- */
.sponsor .sp-hero { display: flex; align-items: center; gap: 14px; }
.sponsor .sp-hero .sp-hero-t { flex: 1; }
.sponsor .sp-hero .ttp img { height: 72px; }
@media (max-width: 420px) { .sponsor .sp-hero .ttp { display: none; } }
.sp-how { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin-bottom: 14px; }
.sp-g { margin: 6px 0 14px; }
.sp-g h3 { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--cyan); display: flex; align-items: center; gap: 6px; margin: 4px 0 8px; }
.sp-f { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(5,8,26,.55); margin-bottom: 8px; transition: border-color .15s, background .15s; }
.sp-f.on { border-color: rgba(52,211,153,.6); background: rgba(16,185,129,.08); }
.sp-f.fixed { opacity: .92; }
.sp-chk { position: relative; flex: none; margin-top: 2px; cursor: pointer; }
.sp-chk input { position: absolute; inset: 0; opacity: 0; width: 26px; height: 26px; margin: 0; cursor: pointer; }
.sp-chk .box { width: 26px; height: 26px; border-radius: 8px; border: 2px solid rgba(99,102,241,.7); display: grid; place-items: center; color: transparent; }
.sp-chk input:checked + .box { background: var(--green); border-color: var(--green); color: #04130c; }
.sp-chk input:focus-visible + .box { outline: 2px solid var(--cyan); outline-offset: 2px; }
.sp-chk .box .ico { width: 16px; height: 16px; }
.sp-ft { flex: 1; min-width: 0; } .sp-ft b { font-size: .92rem; }
.sp-qty { display: inline-flex; align-items: center; gap: 10px; margin-top: 8px; padding: 4px; border-radius: 99px; background: rgba(99,102,241,.14); }
.sp-qty .iconbtn.sm { width: 32px; height: 32px; min-width: 32px; font-size: 1.1rem; font-weight: 800; }
.sp-qty b { min-width: 70px; text-align: center; font-size: .85rem; }
.sp-nav { display: flex; gap: 10px; margin-top: 10px; position: sticky; bottom: calc(env(safe-area-inset-bottom) + 70px); z-index: 2; }
.sp-nav .btn { flex: 1; } .sp-nav #next { flex: 2; }
.sp-count { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 99px; background: rgba(0,0,0,.25); font-size: .75rem; }
@media (min-width: 900px) { .sp-nav { bottom: 12px; } }
.sp-saved { display: flex; gap: 12px; align-items: flex-start; border-color: rgba(52,211,153,.6); }
.sp-saved > .ico { color: var(--green); width: 28px; height: 28px; flex: none; }
.sp-state { display: flex; gap: 14px; align-items: center; }
.sp-state h2 { font-size: 1.05rem; text-transform: none; margin: 0; }
.sp-state.st-accepted, .sp-state.st-paid { border-color: rgba(52,211,153,.6); } .sp-state.st-declined { border-color: rgba(239,68,68,.5); }
.sp-track { list-style: none; display: flex; padding: 0; margin: 14px 0; counter-reset: s; }
.sp-track li { flex: 1; text-align: center; font-size: .72rem; color: var(--dim); position: relative; padding-top: 30px; }
.sp-track li::before { counter-increment: s; content: counter(s); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-weight: 800; background: var(--card); }
.sp-track li::after { content: ''; position: absolute; top: 12px; left: calc(50% + 14px); right: calc(-50% + 14px); height: 2px; background: var(--line); }
.sp-track li:last-child::after { display: none; }
.sp-track li.on { color: var(--text); } .sp-track li.on::before { background: var(--grad); border-color: transparent; }
.sp-track li.x::before { content: '×'; background: rgba(239,68,68,.25); border-color: var(--red); }
.sp-lines { width: 100%; border-collapse: collapse; margin: 6px 0 10px; font-size: .88rem; }
.sp-lines td { padding: 8px 4px; border-bottom: 1px solid rgba(99,102,241,.2); vertical-align: top; }
.sp-lines .amt { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sp-lines .disc td { color: var(--green); } .sp-lines .tot td { font-weight: 800; font-size: 1.05rem; border-bottom: 0; padding-top: 12px; }
.sp-asked { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 6px; }
.sp-asked li { display: flex; gap: 8px; align-items: center; font-size: .88rem; } .sp-asked .ico { color: var(--green); flex: none; }
.rv .rv-row { display: flex; gap: 12px; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid rgba(99,102,241,.18); font-size: .86rem; }
.rv .rv-row span:last-child { text-align: right; }
/* ---- brands ---- */
.br-logo { border-radius: 12px; object-fit: cover; flex: none; background: rgba(255,255,255,.04); }
.br-ph { display: inline-grid; place-items: center; font-weight: 800; background: var(--bc, #8b5cf6); color: #fff; border-radius: 12px; }
.br-join .br-card { border-color: var(--bc); box-shadow: 0 0 26px color-mix(in srgb, var(--bc) 35%, transparent); }
.br-join .br-card .br-logo { margin: 0 auto 8px; display: block; }
.br-join h1 { margin: 6px 0 2px; }
.br-stats { display: flex; justify-content: center; gap: 16px; margin: 6px 0 14px; font-size: .85rem; color: var(--muted); }
.br-stats span { display: inline-flex; gap: 5px; align-items: center; }
.br-how { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 4px; font-size: .88rem; }
.br-mine { display: flex; gap: 12px; align-items: center; margin: 4px 0 10px; } .br-mine > div { flex: 1; }
.br-form { display: grid; grid-template-columns: 1fr; gap: 8px; } .br-form .field { margin: 0; }
@media (min-width: 640px) { .br-form { grid-template-columns: 1fr 1fr auto; align-items: center; } }
.su-brand { margin: 4px 0 6px; }
.tier-pill.aud { background: rgba(99,102,241,.18); color: #c4b5fd; border-color: rgba(99,102,241,.45); }
.tier-pill.aud.brand { background: color-mix(in srgb, var(--bc) 22%, transparent); border-color: var(--bc); color: #fff; }
.tier-pill.aud.open { background: rgba(34,211,238,.12); color: #67e8f9; border-color: rgba(34,211,238,.45); }
#v7-brand { scroll-margin-top: 84px; }

/* ---------- v7 shop + seasons (public/js/economy.js) ---------- */
.ec .back-row { align-items: center; } .ec-how { margin-left: auto; display: inline-flex; gap: 4px; align-items: center; }
.ec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .ec-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .ec-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ec-card { position: relative; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.ec-card:hover, .ec-card:focus-visible { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.35); outline: none; }
.ec-card.r-legendary::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.16) 50%, transparent 65%); background-size: 300% 100%; animation: v7-sweep 4.5s linear infinite; }
.ec-tag { position: absolute; z-index: 3; top: 8px; left: 8px; font-size: .6rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 3px 7px; border-radius: 99px; background: rgba(5,8,26,.85); color: #fff; border: 1px solid rgba(255,255,255,.25); }
.ec-tag.t-new { background: linear-gradient(90deg, #22d3ee, #a855f7); border: 0; } .ec-tag.t-vault { background: linear-gradient(90deg, #f59e0b, #db2777); border: 0; }
.ec-tag.t-event { background: linear-gradient(90deg, #f97316, #ec4899); border: 0; } .ec-tag.t-returning { background: rgba(250,204,21,.25); color: #fde68a; border-color: rgba(250,204,21,.6); }
.ec-prev { display: block; position: relative; height: 104px; overflow: hidden; background-color: #0b1030; isolation: isolate; }
.ec-prev.lg { height: 190px; border-radius: 14px; } .ec-prev.sm { height: 64px; border-radius: 10px; }
.ec-prev::after { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; box-shadow: inset 0 -30px 40px -20px rgba(0,0,0,.55); }
.ec-stage { display: grid; place-items: center; background: radial-gradient(circle at 50% 35%, rgba(124,77,255,.32), transparent 65%), radial-gradient(circle at 80% 100%, rgba(34,211,238,.16), transparent 50%), #080b22; }
.ec-stage.r-legendary { background: radial-gradient(circle at 50% 35%, rgba(250,204,21,.28), transparent 65%), radial-gradient(circle at 15% 100%, rgba(219,39,119,.22), transparent 55%), #0c0a1e; }
.ec-stage.r-epic { background: radial-gradient(circle at 50% 35%, rgba(232,121,249,.3), transparent 65%), #0b0820; }
.ec-col { grid-auto-flow: row; gap: 2px; align-content: center; } .ec-nm { font-weight: 800; color: #e2e8f0; font-size: .9rem; }
.ec-big { font-size: 1.35rem; font-weight: 900; letter-spacing: .01em; }
.ec-prev.lg .ec-big { font-size: 2rem; } .ec-prev.lg .ptitle.big { font-size: 1.3rem; }
.ec-mini { position: absolute; z-index: 3; left: 10px; bottom: 8px; display: flex; align-items: center; gap: 6px; font-size: .78rem; text-shadow: 0 1px 3px #000; }
.ec-mini .frame .av, .ec-mini .frame > * { width: 22px; height: 22px; font-size: .62rem; }
.ec-prev.lg .ec-mini { font-size: 1rem; } .ec-prev.lg .ec-mini .frame > * { width: 34px; height: 34px; }
.ec-medal { width: 76px; height: 76px; filter: drop-shadow(0 4px 12px rgba(0,0,0,.5)); } .ec-prev.lg .ec-medal { width: 140px; height: 140px; } .ec-prev.sm .ec-medal { width: 48px; height: 48px; }
.eqbadge.big { width: 44px; height: 44px; border-radius: 12px; } .eqbadge.big .ico { width: 26px; height: 26px; }
.ec-price s { opacity: .6; font-weight: 600; }
.ec-event { padding: 12px; margin: 12px 0; border: 1px solid rgba(249,115,22,.5); background: linear-gradient(135deg, rgba(249,115,22,.14), rgba(236,72,153,.1)); }
.ec-ev-h { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; } .ec-ev-h > .ico { width: 28px; height: 28px; color: #fdba74; }
.ec-at { opacity: .75; }
.ec-earned { display: grid; grid-template-columns: 1fr; gap: 8px; margin-bottom: 14px; }
@media (min-width: 720px) { .ec-earned { grid-template-columns: 1fr 1fr; } }
.ec-earn { display: grid; grid-template-columns: 110px 1fr; gap: 10px; padding: 8px; align-items: center; cursor: pointer; } .ec-earn .ec-prev { height: 70px; }
.ec-earn.owned { border-color: rgba(74,222,128,.5); } .ec-earn-b { display: grid; gap: 4px; min-width: 0; }
.ec-peek { display: grid; grid-auto-flow: column; grid-auto-columns: 130px; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 12px; }
.ec-peek-i { display: grid; gap: 4px; background: none; border: 0; color: inherit; text-align: left; font-size: .75rem; cursor: pointer; padding: 0; }
.ec-sheet .sheet-in { max-height: 92vh; width: min(100%, 560px); padding: 0 14px 18px; }
.ec-detail .ec-big { margin: 10px 0; font-size: inherit; font-weight: inherit; }
.ec-tabs { margin: 4px 0 0; }
.ec-facts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 4px 0 8px; }
.ec-h { font-size: .9rem; margin: 14px 0 6px; }
.ec-why { width: 100%; border-collapse: collapse; font-size: .82rem; } .ec-why td { padding: 5px 4px; border-bottom: 1px solid rgba(255,255,255,.07); } .ec-why td:last-child { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ec-why tr.tot td { font-weight: 800; color: #fde68a; border-bottom: 0; }
.ec-hist { margin: 0 0 0 16px; padding: 0; line-height: 1.7; }
.ec-pp { border-radius: 14px; min-height: 150px; }
.ec-perks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
@media (min-width: 720px) { .ec-perks { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ec-perk { display: grid; gap: 3px; padding: 10px; opacity: .78; } .ec-perk.on { opacity: 1; border-color: rgba(74,222,128,.55); background: rgba(22,163,74,.1); }
.ec-pl { font-family: Orbitron, sans-serif; font-size: .66rem; color: var(--gold); letter-spacing: .08em; }
.ec-track .tier { min-height: 118px; cursor: default; } .ec-track .tier.next { border-color: #22d3ee; box-shadow: 0 0 0 1px #22d3ee inset; }
.ec-track .ec-tr { cursor: pointer; } .ec-perk-mini { display: flex; gap: 3px; align-items: center; justify-content: center; font-size: .58rem; color: #86efac; } .ec-perk-mini .ico { width: 10px; height: 10px; }
.ec-od { border-style: dashed; }
.ec-hof { display: grid; gap: 10px; grid-template-columns: 1fr; margin-bottom: 14px; } @media (min-width: 720px) { .ec-hof { grid-template-columns: 1fr 1fr; } }
.ec-hof-l { margin: 8px 0 0 18px; padding: 0; line-height: 1.7; font-size: .86rem; }
.ec-list { margin: 6px 0 6px 18px; padding: 0; line-height: 1.65; font-size: .92rem; } .ec .card.pad { margin-bottom: 12px; } .ec .card.pad h2 { font-size: 1.02rem; display: flex; gap: 6px; align-items: center; margin-bottom: 6px; }
@media (prefers-reduced-motion: reduce) { .ec-card.r-legendary::after { animation: none; } .ec-card { transition: none; } }
.ec-sheet .sheet-in { background: linear-gradient(180deg, #121640, #0a0d26); }

/* v7 Phase 2: official giveaway notice + event label (current theme variables only) */
.official-notice { margin: 14px 0; border-left: 3px solid var(--brand); }
.official-notice b { display: inline-flex; align-items: center; gap: 6px; letter-spacing: .04em; font-size: .78rem; }
.sf-note.official-notice { border: 0; margin: 6px 0; }
.event-label { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; font-size: .72rem; margin: 0 0 8px; opacity: .92; }
.event-page h1 { margin-top: 2px; }

/* v7 Phase 4: Hub Store + Prestige */
.store-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.st-pack, .px-card { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.st-pack > b { font-size: 1.4rem; }
.st-price { font-weight: 800; font-size: 1.05rem; }
.na-note { border-left: 3px solid var(--green); margin-bottom: 12px; }
.pq-list { padding-left: 20px; max-height: 320px; overflow: auto; } .pq-list li.done b { color: var(--green); }
.ord-qr { max-width: 240px; background: #fff; border-radius: 12px; padding: 8px; margin: 10px 0; }
.copyrow { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .copyrow code { word-break: break-all; font-size: .9rem; }
.ord-st { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; } .st-granted { color: var(--green); } .st-underpaid, .st-expired { color: var(--gold); }
.px-wall { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 10px; } .px-owners { padding-left: 18px; margin: 6px 0 0; }
.px-art { position: relative; width: var(--s); height: var(--s); border-radius: 18px; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at 50% 40%, #3b2a05, #0b0b12 70%); }
.px-art svg { width: 50%; height: 50%; color: #facc15; filter: drop-shadow(0 0 10px rgba(250, 204, 21, .6)); position: relative; z-index: 1; }
.px-glow { position: absolute; inset: 0; background: conic-gradient(from 0deg, transparent, rgba(250, 204, 21, .35), transparent 40%); animation: px-spin 6s linear infinite; }
.px-art i { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px #fff; animation: px-tw 2.4s ease-in-out infinite; }
.px-art i:nth-of-type(1) { top: 20%; left: 25%; } .px-art i:nth-of-type(2) { top: 65%; left: 72%; animation-delay: .8s; } .px-art i:nth-of-type(3) { top: 30%; left: 78%; animation-delay: 1.6s; }
.px-cash { background: radial-gradient(circle at 50% 40%, #0f3d1e, #07130b 70%); } .px-cash svg { color: #4ade80; filter: drop-shadow(0 0 10px rgba(74, 222, 128, .6)); }
.px-gold .px-glow { background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%); animation: px-sweep 3s ease-in-out infinite; }
@keyframes px-spin { to { transform: rotate(360deg); } } @keyframes px-tw { 50% { opacity: .2; transform: scale(.5); } } @keyframes px-sweep { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .px-glow, .px-art i { animation: none; } }
.store-grid > .card { margin: 0; }

/* v7 Phase 5: avatars */
.av { position: relative; overflow: hidden; } .av .av-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.av-ed { display: grid; grid-template-columns: 260px 1fr; gap: 14px; align-items: start; } @media (max-width: 720px) { .av-ed { grid-template-columns: 1fr; } }
.av-prev { display: flex; flex-direction: column; gap: 10px; align-items: center; position: sticky; top: 70px; } .av-prev img { border-radius: 28px; width: 220px; height: 220px; }
.av-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; } .av-tabs .tab { padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); }
.av-tabs .tab.on { background: var(--grad); color: #fff; border-color: transparent; }
.av-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.av-opt { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border-radius: 14px; border: 1px solid var(--line); background: var(--card2); color: var(--text); cursor: pointer; }
.av-opt img { border-radius: 14px; } .av-opt.on { border-color: var(--cyan); box-shadow: 0 0 0 2px var(--cyan) inset; } .av-opt.locked img { filter: grayscale(.7) brightness(.7); } .av-opt .lock { color: var(--gold); display: inline-flex; gap: 3px; align-items: center; }
.av-big { width: 120px; height: 120px; border-radius: 28px; }
/* v7 phase 7: landing feature strip */
.splash-feats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;max-width:520px;margin:22px auto 0;text-align:left}
.splash-feats .sf{display:grid;grid-template-columns:22px 1fr;column-gap:8px;padding:10px 12px;border:1px solid var(--line,#2a2f6a);border-radius:12px;background:rgba(20,22,60,.55)}
.splash-feats .sf svg{grid-row:span 2;color:var(--cyan,#2dd4f5);width:20px;height:20px}
.splash-feats b{font-size:.85rem}.splash-feats span{font-size:.75rem;opacity:.75}
@media(min-width:760px){.splash-feats{grid-template-columns:repeat(4,minmax(0,1fr));max-width:860px}}
.splash .logo-stack{display:block;margin-left:auto;margin-right:auto}
/* v7 i18n: language picker, legal summary, RTL */
.lang-pick{display:inline-flex;gap:8px;align-items:center;font-size:.85rem;margin-top:10px}
.lang-pick select{background:rgba(20,22,60,.8);color:inherit;border:1px solid var(--line,#2a2f6a);border-radius:8px;padding:6px 8px;font:inherit}
.splash .lang-pick{justify-content:center;width:100%}
.i18n-legal{margin-bottom:14px;border-color:rgba(45,212,245,.4)}
.i18n-legal p{margin:6px 0 0}
[dir=rtl] body{text-align:right}
[dir=rtl] .center,[dir=rtl] .splash,[dir=rtl] .cta{text-align:center}
[dir=rtl] .tbl th,[dir=rtl] .tbl td{text-align:right}
[dir=rtl] svg.lucide,[dir=rtl] .icon{transform:none}
[dir=rtl] .sf-links,[dir=rtl] .bnav,[dir=rtl] .hd-nav{direction:rtl}
[dir=rtl] .gcanvas,[dir=rtl] canvas{direction:ltr}
[dir=rtl] [dir=ltr]{text-align:left}

/* Interactive WebGL avatar stage (SVG fallback remains available) */
.avatar-stage{width:min(100%,320px);height:320px;aspect-ratio:1/1;border-radius:24px;overflow:hidden;position:relative;border:1px solid rgba(255,255,255,.18);box-shadow:0 18px 46px rgba(0,0,0,.28);isolation:isolate}
.avatar-stage canvas{display:block;width:100%;height:100%;touch-action:pan-y}
.av-prev .avatar-stage+p{margin:0}
@media(max-width:480px){.avatar-stage{width:100%;height:min(78vw,320px);min-height:240px;border-radius:20px}.av-prev{position:static}}

.avatar-profile-stage{position:absolute;inset:0;display:block;width:100%;height:100%;border-radius:inherit;overflow:hidden;z-index:1}
.avatar-profile-stage canvas{display:block;width:100%;height:100%;touch-action:pan-y}

.avatar-gender{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:0 0 14px}
.avatar-gender>span{flex:1 1 100%}
.avatar-gender .btn.on{outline:2px solid var(--accent,#a78bfa);outline-offset:1px}

/* Shared starter-avatar storefront: preview is free, purchase and equip are separate actions. */
.av-prev{z-index:1;background:linear-gradient(165deg,rgba(22,29,57,.96),rgba(10,13,28,.99));border:1px solid rgba(183,158,255,.28);box-shadow:0 22px 50px rgba(0,0,0,.27)}
.av-prev .avatar-stage{width:min(100%,360px);height:clamp(275px,47vh,385px);aspect-ratio:auto;border-color:rgba(200,188,255,.26);background:#0c1428}
.av-selection{width:100%;display:flex;gap:8px;justify-content:space-between;align-items:center;flex-wrap:wrap;font-size:.86rem}
.av-selection .lock{color:#ffcd80}
.av-buy{background:linear-gradient(110deg,#8b5cf6,#c084fc 53%,#f5bb75);border-color:transparent;color:#100c25;font-weight:800;width:100%;min-height:46px}
#av-save{width:100%;min-height:44px}
#av-save:disabled{opacity:.48;cursor:not-allowed}
.av-opt{min-height:116px;justify-content:center;transition:transform .12s ease,border-color .12s ease,background-color .12s ease}
.av-opt:focus-visible{outline:2px solid #70e8ff;outline-offset:2px}
.av-opt.on{background:rgba(105,83,189,.23);border-color:#c5a7ff}
.av-opt.locked img{filter:saturate(.65) brightness(.85)}
.av-opt .tiny{font-size:.69rem;line-height:1.15}
@media(max-width:720px){.av-prev{position:static}.av-prev .avatar-stage{height:clamp(285px,75vw,370px)}.av-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Game-asset-led avatar inventory. Never render 150 nearly identical portrait heads in item cards. */
.av-item-visual{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;width:100%;height:93px;min-height:93px;border:1px solid rgba(169,156,255,.24);border-radius:14px;background:radial-gradient(circle at 50% 15%,rgba(139,92,246,.24),transparent 68%),#10172a;color:#d6c6ff;position:relative;overflow:hidden}
.av-item-visual .ico{width:34px;height:34px;stroke-width:1.6}
.av-item-visual small{font-size:10px;text-transform:uppercase;letter-spacing:.09em;max-width:92%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-weight:700}
.av-item-asset img{width:78px;height:78px;object-fit:contain;filter:drop-shadow(0 7px 10px rgba(0,0,0,.55))}
.av-item-asset{background:radial-gradient(circle at 50% 35%,rgba(74,94,185,.45),transparent 73%),#0d1226}
.av-item-swatch i{display:block;width:48px;height:48px;border:3px solid rgba(255,255,255,.3);border-radius:50%;background:var(--sample);box-shadow:inset 0 6px 12px rgba(255,255,255,.2),0 6px 14px rgba(0,0,0,.3)}
.av-item-swatch .ico{width:17px;height:17px}
.av-item-bg .ico{width:29px;height:29px;color:#fff;filter:drop-shadow(0 2px 10px rgba(0,0,0,.7))}
.av-opt{justify-content:initial;min-height:155px;padding:8px;gap:6px;text-align:center}
.av-opt>.small{line-height:1.15;font-size:.82rem}
.av-opt .tiny{max-width:100%;overflow-wrap:anywhere}
.av-balances{display:flex;gap:12px;flex-wrap:wrap;justify-content:center;color:#aebad2;font-size:.76rem}
.av-balances b{color:#e6efff;font-weight:900;margin-left:5px}
.av-buy-credits{width:100%;min-height:45px;background:linear-gradient(115deg,#0e7490,#2563eb 56%,#7c3aed);border-color:rgba(137,238,255,.55);font-weight:800}
.av-buy-credits:focus-visible{outline:2px solid white;outline-offset:3px}
@media(max-width:720px){.av-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.av-item-visual{height:105px}}

/* Compact Android avatar layout. Artwork is still in remediation. */
@media (max-width:720px) {
  .avatar-ed { padding-bottom: 108px; }
  .avatar-ed .av-ed { gap: 9px; }
  .avatar-ed .av-prev { position:static; padding:10px; gap:7px; }
  .avatar-ed .av-prev .avatar-stage {
    width:min(100%,340px);height:clamp(205px,49vw,262px);min-height:0;
    border-radius:17px;margin:0 auto;
  }
  .avatar-ed .avatar-gender { gap:5px;margin-bottom:8px; }
  .avatar-ed .avatar-gender .btn { flex:1 1 0;min-width:0;padding:8px 2px;font-size:.82rem;min-height:40px; }
  .avatar-ed .av-tabs { flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin; }
  .avatar-ed .av-tabs .tab { flex:0 0 auto;min-height:42px; }
  .avatar-ed .av-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .avatar-ed .av-opt { min-height:132px; }
}
@media(max-width:360px) {
  .avatar-ed .av-prev .avatar-stage { height:210px; }
  .avatar-ed .avatar-gender .btn { font-size:.75rem; }
}

/* Mobile-first settings navigation: all controls remain accessible without a long menu hunt. */
.hub-settings .settings-quick-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:0 0 15px}
.hub-settings .settings-quick-nav a{display:flex;align-items:center;gap:8px;min-height:48px;min-width:0;padding:10px 12px;border:1px solid rgba(131,155,212,.22);border-radius:13px;background:linear-gradient(145deg,rgba(28,43,88,.78),rgba(10,15,39,.83));color:#e4eaff;font-size:.84rem;font-weight:700;text-decoration:none;overflow-wrap:anywhere}
.hub-settings .settings-quick-nav a svg{flex-shrink:0;width:18px;height:18px;color:#d7bd83}
.hub-settings .settings-quick-nav a:focus-visible{outline:2px solid #d8b877;outline-offset:2px}
.hub-settings #set-account,.hub-settings #set-app,.hub-settings #v7-brand,.hub-settings #set-legal{scroll-margin-top:calc(88px + env(safe-area-inset-top,0px))}
@media(max-width:360px){.hub-settings .settings-quick-nav{grid-template-columns:1fr}.hub-settings .settings-quick-nav a{min-height:44px}}
/* v8: simplified price line + collapsed explainer */
.ec-priceline { margin: 10px 0 4px; font-size: 1rem; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ec-priced { margin: 0 0 10px; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; background: rgba(255,255,255,.03); }
.ec-priced > summary { cursor: pointer; padding: 9px 12px; font-size: .82rem; color: #9bd7ff; list-style: none; min-height: 44px; display: flex; align-items: center; }
.ec-priced > summary::-webkit-details-marker { display: none; }
.ec-priced > summary::after { content: '\25BE'; margin-left: auto; transition: transform .2s; }
.ec-priced[open] > summary::after { transform: rotate(180deg); }
.ec-priced > .ec-why { margin: 0 8px 8px; width: calc(100% - 16px); }
/* v8: six-tab bottom nav (Home, Games, Leaderboard, Giveaways, Community, Shop) must fit 320px */
.bottomnav { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; }
.bottomnav a { min-width: 0; padding: 0 1px; font-size: .66rem !important; }
.bottomnav a .ico { width: 22px !important; height: 22px !important; }
.bottomnav a span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bottomnav .nl-s { display: none; font-style: normal; } .bottomnav .nl-f { font-style: normal; }
@media (max-width: 400px) { .bottomnav .nl-f { display: none; } .bottomnav .nl-s { display: inline; } .bottomnav a:not(:has(.nl-s)) .nl-f { display: inline; } }
.gw-head { flex-wrap: wrap; gap: 8px; } .gw-head-act { display: flex; gap: 6px; flex-wrap: wrap; }
/* ---- profile v9: tabs + posed 3D avatar stage (right), wardrobe tiles ---- */
.pf2{max-width:1180px;margin:0 auto;display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,40%);grid-template-areas:"top top" "main stage";gap:16px;padding-bottom:24px}
.pf2-top{grid-area:top}.pf2-logo{display:inline-flex;opacity:.9}
.pf2-stage-wrap{grid-area:stage;position:sticky;top:12px;align-self:start;display:flex;flex-direction:column;gap:10px}
.pf2-stage{position:relative;height:min(78vh,720px);border-radius:22px;overflow:hidden;background:radial-gradient(120% 80% at 50% 0%,rgba(139,92,246,.35),transparent 60%),radial-gradient(90% 60% at 50% 100%,rgba(34,211,238,.18),transparent 70%),linear-gradient(180deg,#121633,#070914);border:1px solid rgba(168,85,247,.35);box-shadow:inset 0 0 60px rgba(34,211,238,.08),0 18px 50px rgba(0,0,0,.45)}
.pf2-stage::after{content:"";position:absolute;left:15%;right:15%;bottom:5%;height:9%;border-radius:50%;background:radial-gradient(closest-side,rgba(34,211,238,.35),transparent);pointer-events:none}
.pf2-stage .av-poster{position:absolute;inset:12% 20% 8%;width:60%;height:80%;object-fit:contain;opacity:.55;filter:blur(1px) saturate(.8)}
.pf2-stage-foot{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.pf2-rank{display:flex;flex-direction:column;margin-right:auto}.pf2-rank b{font-family:'Orbitron',sans-serif;font-size:1.4rem;color:var(--gold)}.pf2-rank small{color:var(--muted);font-size:.7rem}
.pf2-main{grid-area:main;display:grid;grid-template-columns:150px minmax(0,1fr);gap:14px;align-items:start;min-width:0}
.pf2-tabs{display:flex;flex-direction:column;gap:6px;position:sticky;top:12px}
.pf2-tabs button{display:flex;gap:10px;align-items:center;padding:11px 12px;border-radius:12px;border:1px solid transparent;background:rgba(255,255,255,.03);color:var(--muted);font-weight:700;text-align:left;cursor:pointer}
.pf2-tabs button.on{color:var(--text);background:linear-gradient(90deg,rgba(139,92,246,.35),rgba(34,211,238,.12));border-color:rgba(168,85,247,.5);box-shadow:inset 3px 0 0 var(--cyan)}
.pf2-body{min-width:0}.pf2-body section[hidden]{display:none}
.pf2-panels{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:12px 0}.pf2-panel{padding:12px}.pf2-panel h3{font-size:.78rem;display:flex;gap:6px;align-items:center;color:var(--muted);margin:0 0 8px}.pf2-big{font-family:'Orbitron',sans-serif;font-size:1.6rem;color:var(--gold)}
.medals{display:flex;gap:6px;flex-wrap:wrap}.medal{display:inline-flex;align-items:center;gap:3px;padding:3px 7px;border-radius:999px;font-size:.75rem;background:rgba(255,255,255,.05)}
.md-legendary{color:#f5c542;box-shadow:0 0 0 1px #f5c54288}.md-epic{color:#c084fc;box-shadow:0 0 0 1px #c084fc66}.md-gold{color:#fbbf24}.md-silver{color:#cbd5e1}.md-bronze{color:#d08a4f}
.pf2-album{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:10px;padding:12px}.alb{margin:0;text-align:center;font-size:.7rem;padding:8px;border-radius:12px;background:rgba(255,255,255,.04)}.alb img{width:56px;height:56px}
.pf2-h3{font-size:.8rem;display:flex;gap:6px;align-items:center;margin:10px 12px 4px;color:var(--muted)}.lbr.me{background:rgba(139,92,246,.18)}
@media (max-width:860px){.pf2{grid-template-columns:1fr;grid-template-areas:"top" "stage" "main"}.pf2-stage-wrap{position:relative;top:0}.pf2-stage{height:45vh;min-height:300px}
 .pf2-main{grid-template-columns:1fr}.pf2-tabs{flex-direction:row;overflow-x:auto;position:relative;top:0;scrollbar-width:none}.pf2-tabs button{flex:0 0 auto;padding:9px 12px}.pf2-panels{grid-template-columns:1fr 1fr}.pf2-panels .pf2-panel:last-child{grid-column:1/-1}}
.wd-slots{display:flex;gap:6px;overflow-x:auto;padding-bottom:6px;scrollbar-width:none}.wd-slots button{flex:0 0 auto;padding:7px 12px;border-radius:999px;border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.04);color:var(--muted);font-weight:700;font-size:.78rem}.wd-slots button.on{color:var(--text);border-color:var(--cyan)}
.wd-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(104px,1fr));gap:10px;margin-top:10px}
.wd-tile{position:relative;aspect-ratio:1;border-radius:14px;border:2px solid var(--rc,#64748b);background:radial-gradient(circle at 50% 35%,color-mix(in srgb,var(--rc) 30%,transparent),rgba(10,12,28,.9) 70%);color:var(--text);display:flex;flex-direction:column;justify-content:flex-end;padding:8px;text-align:left;cursor:pointer;overflow:hidden}
.wd-tile b{font-size:.74rem;line-height:1.15;position:relative}.wd-tile small{font-size:.66rem;color:var(--muted);position:relative}.wd-tile .wd-ic{position:absolute;top:16%;left:50%;transform:translateX(-50%);opacity:.9}.wd-tile .wd-ic .ico{width:34px;height:34px;color:var(--rc)}
.wd-tile.r-common{--rc:#94a3b8}.wd-tile.r-rare{--rc:#38bdf8}.wd-tile.r-epic{--rc:#a855f7}.wd-tile.r-legendary{--rc:#f59e0b}
.wd-tile.r-prestige{--rc:#f5c542;box-shadow:0 0 18px rgba(245,197,66,.45)}.wd-tile.r-prestige::before{content:"";position:absolute;inset:-50%;background:linear-gradient(115deg,transparent 40%,rgba(255,236,170,.45) 50%,transparent 60%);animation:wdshim 2.6s linear infinite;pointer-events:none}
@keyframes wdshim{from{transform:translateX(-40%)}to{transform:translateX(40%)}}
.wd-tile.on::after{content:"✓";position:absolute;top:6px;right:8px;color:var(--green);font-weight:900}.wd-tile.locked{opacity:.75}.wd-tile .wd-price{position:absolute;top:6px;left:8px;font-size:.66rem;color:var(--gold);font-weight:800}
@media (prefers-reduced-motion:reduce){.wd-tile.r-prestige::before{animation:none}}
@media (max-width:520px){.wd-grid{grid-template-columns:repeat(3,1fr)}}
.pf2-stage .avatar-profile-stage{z-index:2}

/* Mobile Legends-style hero HUD over the profile stage */
.pf2-hud{position:absolute;inset:0;z-index:3;pointer-events:none;font-family:'Orbitron',sans-serif}
.pf2-emblem{position:absolute;top:12px;left:12px;display:flex;flex-direction:column;align-items:center;min-width:64px;padding:8px 8px 6px;clip-path:polygon(50% 0,100% 18%,100% 78%,50% 100%,0 78%,0 18%);background:linear-gradient(180deg,#f5c84b,#9a6b12);color:#1a1205;box-shadow:0 6px 18px rgba(0,0,0,.4)}
.pf2-emblem i{display:flex}.pf2-emblem b{font-size:1rem;line-height:1.1}.pf2-emblem small{font-size:.55rem;font-weight:700;text-transform:uppercase}
.pf2-hstats{position:absolute;top:12px;right:12px;display:flex;flex-direction:column;gap:6px}
.pf2-hstats span{display:flex;flex-direction:column;align-items:flex-end;padding:5px 10px;border-radius:10px 2px 10px 2px;background:rgba(7,9,20,.62);border:1px solid rgba(34,211,238,.35);font-size:.55rem;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}
.pf2-hstats b{font-size:.95rem;color:var(--text);letter-spacing:0}
.pf2-plate{position:absolute;left:12px;right:12px;bottom:12px;display:flex;gap:10px;align-items:center;padding:8px 14px 8px 8px;background:linear-gradient(90deg,rgba(76,29,149,.88),rgba(7,9,20,.7));border:1px solid rgba(168,85,247,.55);border-radius:14px 4px 14px 4px;box-shadow:inset 3px 0 0 var(--cyan)}
.pf2-lv{flex:0 0 auto;width:38px;height:38px;display:grid;place-items:center;border-radius:50%;background:radial-gradient(circle at 35% 30%,#67e8f9,#0e7490);color:#04121a;font-weight:900;font-size:1rem;border:2px solid rgba(255,255,255,.6)}
.pf2-pname{font-size:1.05rem;font-weight:800;color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pf2-ptitle{font-size:.62rem;color:var(--gold);text-transform:uppercase;letter-spacing:.08em}
.pf2-plate>div{min-width:0}
.pf2-plate-m{display:none}
@media (max-width:860px){
 .pf2-plate-d{display:none}.pf2-plate-m{display:flex;position:static;flex:1 1 100%;order:-1}
 .pf2-hstats{flex-direction:row;gap:4px;max-width:calc(100% - 92px);top:10px;right:10px}
 .pf2-hstats span{padding:4px 7px;font-size:.5rem;align-items:center;min-width:0}.pf2-hstats b{font-size:.8rem}
 .pf2-emblem{min-width:54px;padding:6px 6px 5px;top:10px;left:10px}.pf2-emblem b{font-size:.85rem}
 .pf2-stage-foot{display:grid;grid-template-columns:auto 1fr 1fr;gap:8px}.pf2-stage-foot .pf2-plate-m{grid-column:1/-1}
 .pf2-stage-foot .btn{min-width:0;padding-left:8px;padding-right:8px;font-size:.68rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;justify-content:center}
}
/* AAA profile polish: light rays + drifting motes behind the rig, namecard plate with XP bar, animated chips, emblem */
.pf2-fx{position:absolute;inset:0;z-index:1;pointer-events:none;overflow:hidden}
.pf2-rays{position:absolute;left:50%;top:-30%;width:160%;height:120%;transform:translateX(-50%);background:repeating-conic-gradient(from 180deg at 50% 0%,rgba(155,143,255,.10) 0deg 4deg,transparent 4deg 13deg);mask-image:radial-gradient(60% 80% at 50% 0%,#000,transparent 75%);-webkit-mask-image:radial-gradient(60% 80% at 50% 0%,#000,transparent 75%);animation:pf2ray 18s ease-in-out infinite alternate}
@keyframes pf2ray{to{transform:translateX(-50%) rotate(6deg)}}
.pf2-fx i{position:absolute;bottom:-6px;left:calc(4% + var(--i) * 6.8%);width:4px;height:4px;border-radius:50%;background:#b9b0ff;box-shadow:0 0 8px #8f7dff;opacity:0;animation:pf2mote calc(7s + var(--i) * .45s) linear infinite;animation-delay:calc(var(--i) * -.83s)}
.pf2-fx i:nth-child(3n){background:#67e8f9;box-shadow:0 0 8px #22d3ee}
@keyframes pf2mote{10%{opacity:.8}80%{opacity:.5}100%{transform:translate(18px,-620px);opacity:0}}
.pf2-hstats span{animation:pf2chip .6s cubic-bezier(.2,.9,.3,1.3) both;position:relative;overflow:hidden}
.pf2-hstats span:nth-child(2){animation-delay:.12s}.pf2-hstats span:nth-child(3){animation-delay:.24s}
.pf2-hstats span::after{content:"";position:absolute;inset:0;background:linear-gradient(110deg,transparent 35%,rgba(255,255,255,.18) 50%,transparent 65%);transform:translateX(-120%);animation:pf2shine 5s ease-in-out 1s infinite}
@keyframes pf2chip{from{opacity:0;transform:translateY(-10px) scale(.85)}}
@keyframes pf2shine{30%,100%{transform:translateX(120%)}}
.pf2-emblem{filter:drop-shadow(0 0 10px rgba(250,204,21,.55));animation:pf2pulse 3.2s ease-in-out infinite}
@keyframes pf2pulse{50%{filter:drop-shadow(0 0 18px rgba(250,204,21,.85))}}
.pf2-plate-m{position:relative;left:auto;right:auto;bottom:auto}.pf2-plate{overflow:hidden;isolation:isolate;border:1px solid rgba(168,85,247,.6);box-shadow:0 0 22px rgba(139,92,246,.35),inset 0 0 0 1px rgba(255,255,255,.06)}
.pf2-plate-art{position:absolute!important;inset:0;z-index:-1;opacity:.55;background-size:cover!important}
.pf2-plate::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(7,9,20,.85),rgba(7,9,20,.35))}
.pf2-pmain{min-width:0;flex:1}
.pf2-lv{display:flex!important;flex-direction:column;align-items:center;justify-content:center;line-height:1}.pf2-lv small{font-size:.5em;opacity:.8;letter-spacing:.08em}
.pf2-xp{position:relative;height:12px;margin-top:6px;border-radius:7px;background:rgba(255,255,255,.1);overflow:hidden;min-width:150px}
.pf2-xp i{position:absolute;inset:0 auto 0 0;border-radius:7px;background:linear-gradient(90deg,#8b5cf6,#22d3ee);box-shadow:0 0 10px rgba(34,211,238,.6);animation:pf2xp 1.2s cubic-bezier(.2,.8,.2,1) both}
.pf2-xp em{position:absolute;inset:0;font-style:normal;font-size:.55rem;line-height:12px;text-align:center;color:#fff;text-shadow:0 1px 2px #000;font-family:'Orbitron',sans-serif}
@keyframes pf2xp{from{width:0}}
.pf2-stage::after{display:none}
@media (max-width:860px){
  .pf2-tabs{flex-direction:row;overflow-x:auto;position:static;gap:4px;padding:4px;border-radius:14px;background:rgba(10,12,30,.8);border:1px solid rgba(168,85,247,.3)}
  .pf2-tabs button{flex:1 0 auto;flex-direction:column;gap:3px;padding:8px 10px;font-size:.66rem;text-align:center}
  .pf2-tabs button.on{box-shadow:inset 0 -3px 0 var(--cyan)}
  .pf2-xp{min-width:0}
  .pf2-stage-foot .pf2-rank{display:none}.pf2-stage-foot{grid-template-columns:1fr 1fr}.pf2-plate-m{box-sizing:border-box;max-width:100%}
}
@media (prefers-reduced-motion:reduce){.pf2-fx i,.pf2-rays,.pf2-hstats span,.pf2-hstats span::after,.pf2-emblem,.pf2-xp i{animation:none}.pf2-fx i{display:none}}
/* admin-booking: per-feature scope + brand setup on the booking form */
.sp-scope { margin-top: 4px; } .sp-scope summary { cursor: pointer; color: var(--cyan, #22d3ee); }
.sp-scope dl { display: grid; grid-template-columns: max-content 1fr; gap: 2px 10px; margin: 6px 0 0; } .sp-scope dt { font-weight: 700; color: #c4b5fd; } .sp-scope dd { margin: 0; color: #cbd5e1; }
.sp-brand { margin: 12px 0; } .sp-logo-row { display: flex; gap: 12px; align-items: center; }
.sp-logo-prev { width: 64px; height: 64px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; background: linear-gradient(135deg, var(--c1), var(--c2)); overflow: hidden; flex: none; }
.sp-logo-prev img { width: 100%; height: 100%; object-fit: cover; }
.sp-code{display:flex;flex-direction:column;gap:4px;margin:10px 0;padding:10px 12px;border:1px dashed #a78bfa;border-radius:10px}.sp-code b{font:700 22px/1.2 ui-monospace,monospace;letter-spacing:2px;color:#e9d5ff}
.sp-confirm{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:8px;margin:8px 0}.sp-confirm label{display:flex;flex-direction:column;gap:4px}
/* 2026-10-27 profile v3: game-profile layout, left tab rail at every width (phone first) */
.pf2.pf3{grid-template-columns:1fr;grid-template-areas:"top" "main";max-width:980px}
.pf3 .pf2-main{display:grid!important;grid-template-columns:72px minmax(0,1fr)!important;gap:10px;align-items:start}
.pf3 .pf2-tabs{flex-direction:column!important;position:sticky!important;top:calc(8px + env(safe-area-inset-top));overflow:visible!important;gap:6px;padding:6px 4px;border-radius:16px;background:linear-gradient(180deg,rgba(24,16,52,.92),rgba(8,10,26,.92));border:1px solid rgba(168,85,247,.35)}
.pf3 .pf2-tabs button{flex:0 0 auto!important;flex-direction:column!important;gap:4px!important;min-height:58px;padding:8px 2px!important;font-size:.64rem!important;letter-spacing:.02em;text-align:center;justify-content:center;border-radius:12px;width:100%}
.pf3 .pf2-tabs button svg{width:22px;height:22px}
.pf3 .pf2-tabs button.on{box-shadow:inset 0 -3px 0 var(--cyan),0 0 16px rgba(139,92,246,.45)}
.pf3 .pf2-body{min-width:0}
.pf3 .pf2-stage-wrap{position:relative!important;top:0!important;margin-bottom:10px}
.pf3 .pf2-stage{height:min(62vh,560px)!important;min-height:340px}
.pf3 .pf2-rays{width:120%;left:50%;max-width:none}
.pf3 .pf2-fx{overflow:hidden}
.pf3-eq-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px}
.pf3-eq-list span,.pf3-wd-row{display:flex;flex-direction:column;padding:9px 11px;border-radius:12px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);min-width:0}
.pf3-eq-list small,.pf3-wd-row small{color:var(--muted);font-size:.66rem;text-transform:uppercase;letter-spacing:.06em}
.pf3-eq-list b,.pf3-wd-row b{text-transform:capitalize;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pf3-wd-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:8px}
.pf3-wd-row em{font-style:normal;font-size:.68rem;text-transform:capitalize;color:var(--cyan)}
.pf3-wd-row.r-epic{border-color:rgba(168,85,247,.55)}.pf3-wd-row.r-legendary{border-color:rgba(250,204,21,.6)}.pf3-wd-row.r-rare{border-color:rgba(34,211,238,.5)}
.pf3 .pf2-stage-foot{flex-wrap:wrap;gap:8px}
@media (max-width:400px){.pf3 .pf2-main{grid-template-columns:62px minmax(0,1fr)!important;gap:8px}.pf3 .pf2-tabs button{min-height:54px;font-size:.6rem!important}.pf3 .pf2-stage{min-height:300px;height:52vh!important}.pf3-eq-list{grid-template-columns:1fr}}
.pf3 .pf2-tabs button span{white-space:nowrap;font-size:.6rem}
.pf3 .pf2-stage-foot{display:grid!important;grid-template-columns:1fr 1fr;align-items:stretch}
.pf3 .pf2-stage-foot .pf2-plate-m{grid-column:1/-1}.pf3 .pf2-stage-foot .pf2-rank{display:none}
.pf3 .pf2-stage-foot .btn{min-height:44px;justify-content:center;font-size:.72rem;padding:8px 6px;white-space:nowrap}
.pf3 .pf2-hstats span{min-width:0;padding:4px 6px}.pf3 .pf2-hstats b{font-size:.95rem}
.pf3 .prof-actions{flex-wrap:wrap;gap:8px}.pf3 .prof-actions .fcount{min-height:44px;white-space:nowrap;padding:6px 10px}
.pf3 .prof-actions .btn{white-space:nowrap}
.wd-tile .wd-th{width:64px;height:64px;object-fit:cover;border-radius:10px;background:radial-gradient(circle at 50% 35%,rgba(139,92,246,.35),rgba(10,12,30,.6));display:block;margin:0 auto 4px}
.pf3-wd-row img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:10px;margin-bottom:6px;background:radial-gradient(circle at 50% 35%,rgba(139,92,246,.35),rgba(10,12,30,.6))}
.av:has(.av-img.hs) { color: transparent; text-shadow: none; } .av .av-img.hs { object-position: 50% 30%; background: radial-gradient(circle at 50% 35%, #3b2a6b, #14102a); }
@media (max-width: 420px) { .about-hero .about-tt .ab-lock { display: block; } .about-hero .about-tt .ab-lock img { max-width: 100%; height: auto; } }
@media (min-width: 900px) and (max-width: 1199px) { .topbar .hd-tt { display: none; } .topbar { gap: 8px; } .desk-nav { margin-left: 8px; gap: 2px; } .desk-nav a { padding: 9px 8px; font-size: .78rem; gap: 5px; } .desk-nav a.dn-x { display: none; } .topbar .more-btn { display: inline-grid; } }
@media (min-width: 900px) { .topbar .desk-nav { flex: none; overflow: visible; } } @media (min-width: 900px) and (max-width: 1599px) { .topbar .hd-tt { display: none; } }
@media (min-width: 900px) { .topbar > .iconbtn, .topbar > .streak-chip, .topbar > .hub-home-link, .topbar > .hd-tt { flex: none; } } @media (min-width: 900px) and (max-width: 1099px) { .topbar .hub-brand-name { display: none; } } @media (min-width: 1200px) and (max-width: 1439px) { .desk-nav a.dn-x { padding: 9px 7px; } }
@media (min-width: 900px) and (max-width: 1439px) { .desk-nav a.dn-x { display: none; } .topbar .more-btn { display: inline-grid; } }
@media (min-width: 1440px) { .desk-nav a.dn-x span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .desk-nav a.dn-x { padding: 9px; } }
/* Collection + catalog pages, price fix, curated effect previews (Nov 2026) */
.ec-price{white-space:nowrap;font-variant-numeric:tabular-nums;display:flex;align-items:center;justify-content:center;gap:4px;min-width:0;overflow:hidden}
.ec-price .ec-amt{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ec-chips{display:flex;gap:6px;overflow-x:auto;padding:4px 0 6px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.ec-chips::-webkit-scrollbar{display:none}
.ec-chips .chip{flex:0 0 auto;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.04);color:inherit;border-radius:999px;padding:6px 12px;font:inherit;font-size:.8rem;cursor:pointer;white-space:nowrap}
.ec-chips .chip.on{background:var(--accent,#7c5cff);border-color:transparent;color:#fff}
.ec-search{display:flex;align-items:center;gap:8px;border:1px solid rgba(255,255,255,.14);border-radius:12px;padding:8px 12px;margin:6px 0 8px;background:rgba(255,255,255,.03)}
.ec-search input{flex:1;min-width:0;background:none;border:0;color:inherit;font:inherit;outline:none}
.ec-pager{display:flex;justify-content:center;align-items:center;gap:12px;margin:16px 0}
.pf-coll-links{display:flex;gap:8px;flex-wrap:wrap;margin:4px 0 10px}
.ec-fxstage{position:relative;overflow:hidden;background:radial-gradient(120% 90% at 50% 100%,#1b1f33,#090b14)}
.ec-fxstage .ec-fxart{position:absolute;pointer-events:none;mix-blend-mode:screen}
.ec-fxstage .ec-fxart.a{left:4%;top:4%;width:46%;animation:cfx-drift 7s ease-in-out infinite}
.ec-fxstage .ec-fxart.b{right:4%;bottom:2%;width:38%;animation:cfx-pulse 4s ease-in-out infinite}
.ec-fxstage .ec-mini{position:relative;z-index:1}
@media (prefers-reduced-motion:reduce){.ec-fxstage .ec-fxart{animation:none}}
.shop-sw:has(> a:nth-child(3)){grid-template-columns:repeat(auto-fit,minmax(0,1fr))}
.shop-sw:has(> a:nth-child(3)) a{font-size:.76rem;padding:0 4px;min-width:0}
.ec-fxstage .ec-mini{position:absolute;left:10px;bottom:8px}


/* Frame fit (Nov 2026): .frame box === headshot; RF plates expand via measured aperture insets in cosmetics.css */
.frame{position:relative;display:inline-grid;place-items:center;flex:none;border-radius:50%;isolation:isolate;line-height:0}
.frame .av{position:relative;z-index:1;overflow:hidden}
.frame .av .av-img,.frame .av.av-hs .av-img{object-fit:cover;object-position:center 28%;width:100%;height:100%}
.frame.f-xs .av,.frame.f-xs{width:28px;height:28px}
.frame.f-sm .av,.frame.f-sm{width:40px;height:40px}
.frame.f-lg .av,.frame.f-lg{width:72px;height:72px}
.frame:not([class*="f-"]) .av{width:36px;height:36px}
.hd-me .frame,.hd-me .frame .av{width:30px;height:30px}
.pc-av .frame,.pc-av .frame .av{width:84px;height:84px}
.pf3-frame-peek{position:absolute;top:10px;right:10px;z-index:4;filter:drop-shadow(0 4px 10px rgba(0,0,0,.45))}
.pf3-frame-peek .frame,.pf3-frame-peek .frame .av{width:52px;height:52px}
.ec-hsf .frame,.ec-hsf .frame .av{width:88px;height:88px}
.ec-mini .frame .av,.ec-mini .frame{width:22px;height:22px}
.ec-prev.lg .ec-mini .frame,.ec-prev.lg .ec-mini .frame .av{width:34px;height:34px}
/* Creator crown: ring hugs the av; floating crown centered above */
.fr-creator-crown{padding:3px!important;overflow:visible}
.fr-creator-crown::before{inset:-6%!important;border-radius:50%;z-index:0}
.fr-creator-crown .av{z-index:1}
.fr-creator-crown::after{top:-34%!important;width:70%!important;height:42%!important;z-index:3}


/* computerUse QA fixes (Nov 2026) — reserve REAL layout space for RF plate overhang
   ::before uses inset:-N% so plate extends avSize*N/100 past the .frame box on every side.
   --rf-over (from cosmetics.css / profile-art) is that fraction. Margin on the .frame
   makes flex/grid parents grow so spikes are not clipped by viewport y=0 or overflow:hidden.
   Shadow 0.833 / Wild 0.731 / Sacred 0.668 / Arcane 0.596 — all covered via var. */
.topbar{overflow:visible!important;background:transparent!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;isolation:auto;align-items:center}
.topbar::before{content:"";position:absolute;inset:0;z-index:0;pointer-events:none;background:rgba(5,7,20,.82);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-bottom:1px solid rgba(99,102,241,.18)}
.topbar>*{position:relative;z-index:1}
.topbar .hd-me{overflow:visible!important;display:inline-grid;place-items:center;flex:none}
/* Header av=30px: reserve full overhang (Shadow ≈25px/side) so sticky topbar grows below y=0 */
.hd-me .frame[class*="fr-rf-"],.hd-me .frame[class*="fr-illu-"],.hd-me .frame[class*="fr-hw-"],.hd-me .frame[class*="fr-frame-"],.hd-me .frame[class*="fr-rank-"]{margin:calc(30px * var(--rf-over, 0.56));z-index:6}
.drawer-me .frame[class*="fr-rf-"],.drawer-me .frame[class*="fr-illu-"],.drawer-me .frame[class*="fr-hw-"],.drawer-me .frame[class*="fr-frame-"],.drawer-me .frame[class*="fr-rank-"]{margin:calc(36px * var(--rf-over, 0.56))}
/* Profile peek lives outside .pf2-stage (overflow:hidden); wrap pads for overhang */
.pf2-stage-wrap{overflow:visible!important;position:relative}
.pf3-frame-peek{position:absolute;top:0;left:0;right:auto!important;z-index:5;filter:drop-shadow(0 4px 10px rgba(0,0,0,.45));pointer-events:none}
.pf3-frame-peek .frame,.pf3-frame-peek .frame .av{width:52px;height:52px}
.pf3-frame-peek .frame[class*="fr-rf-"],.pf3-frame-peek .frame[class*="fr-illu-"],.pf3-frame-peek .frame[class*="fr-hw-"],.pf3-frame-peek .frame[class*="fr-frame-"],.pf3-frame-peek .frame[class*="fr-rank-"]{margin:calc(52px * var(--rf-over, 0.56));pointer-events:auto}
/* Keep stage clear of peek slot: pad by peek av + max RF over (Shadow) */
/* 2026-11-12 profile fix: the peek only occupies the TOP row, so keep
   padding-top and drop padding-left. The left pad ran the full height of
   the stage and squeezed it to ~40% of the phone viewport; the stat chips
   inside then had ~18px columns and stacked digit-by-digit. See EVIDENCE.md. */
.pf3 .pf2-stage-wrap{padding-top:calc(52px + 2 * 52px * 0.833);padding-left:0}
.pf3 .pf2-hstats{right:10px;left:auto;max-width:calc(100% - 24px);z-index:4}
.pc-av .frame[class*="fr-rf-"],.pc-av .frame[class*="fr-illu-"],.pc-av .frame[class*="fr-hw-"],.pc-av .frame[class*="fr-frame-"],.pc-av .frame[class*="fr-rank-"]{margin:calc(84px * var(--rf-over, 0.56))}
/* Collection / catalog: av=88px — Arcane over 0.596 ≈ 52px; margin prevents ring/title overlap */
.ec-prev.ec-hsf,.ec-prev.ec-stage.ec-hsf{overflow:visible!important;height:auto!important;min-height:0;padding:8px;display:grid;place-items:center;background:radial-gradient(circle at 50% 45%,#1a2248,#0b1030 72%)}
.ec-hsf .frame[class*="fr-rf-"],.ec-hsf .frame[class*="fr-illu-"],.ec-hsf .frame[class*="fr-hw-"],.ec-hsf .frame[class*="fr-frame-"],.ec-hsf .frame[class*="fr-rank-"]{margin:calc(88px * var(--rf-over, 0.56));overflow:visible}
.ec-card:has(.ec-hsf),.shop-item:has(.ec-hsf){overflow:visible}
.ec-grid{overflow:visible;align-items:start}
.czp.czf{overflow:visible!important;height:auto!important;min-height:0;padding:4px;display:grid;place-items:center}
.czp.czf .frame[class*="fr-rf-"],.czp.czf .frame[class*="fr-illu-"],.czp.czf .frame[class*="fr-hw-"],.czp.czf .frame[class*="fr-frame-"],.czp.czf .frame[class*="fr-rank-"]{margin:calc(36px * var(--rf-over, 0.56))}
.czg{padding:8px!important;overflow-x:hidden;overflow-y:auto}
.czg .czi:has(.czf){overflow:visible}
@media (max-width:430px){
  .hd-me .frame[class*="fr-rf-"],.hd-me .frame[class*="fr-illu-"],.hd-me .frame[class*="fr-hw-"],.hd-me .frame[class*="fr-frame-"],.hd-me .frame[class*="fr-rank-"]{margin:calc(28px * var(--rf-over, 0.56))}
  .hd-me .frame,.hd-me .frame .av{width:28px;height:28px}
  .pf3-frame-peek .frame,.pf3-frame-peek .frame .av{width:44px;height:44px}
  .pf3-frame-peek .frame[class*="fr-rf-"],.pf3-frame-peek .frame[class*="fr-illu-"],.pf3-frame-peek .frame[class*="fr-hw-"],.pf3-frame-peek .frame[class*="fr-frame-"],.pf3-frame-peek .frame[class*="fr-rank-"]{margin:calc(44px * var(--rf-over, 0.56))}
  .pf3 .pf2-stage-wrap{padding-top:calc(44px + 2 * 44px * 0.833);padding-left:0}
  .ec-hsf .frame,.ec-hsf .frame .av{width:72px;height:72px}
  .ec-hsf .frame[class*="fr-rf-"],.ec-hsf .frame[class*="fr-illu-"],.ec-hsf .frame[class*="fr-hw-"],.ec-hsf .frame[class*="fr-frame-"],.ec-hsf .frame[class*="fr-rank-"]{margin:calc(72px * var(--rf-over, 0.56))}
}
@media (min-width:431px) and (max-width:900px){
  .pf3-frame-peek .frame,.pf3-frame-peek .frame .av{width:48px;height:48px}
  .pf3-frame-peek .frame[class*="fr-rf-"],.pf3-frame-peek .frame[class*="fr-illu-"],.pf3-frame-peek .frame[class*="fr-hw-"],.pf3-frame-peek .frame[class*="fr-frame-"],.pf3-frame-peek .frame[class*="fr-rank-"]{margin:calc(48px * var(--rf-over, 0.56))}
  .pf3 .pf2-stage-wrap{padding-top:calc(48px + 2 * 48px * 0.833);padding-left:0}
}
