/* Progressive unlocks (lane C, js/unlocks.js): locked controls, hidden day-one panels, the unlock ceremony,
   the "locked" tip and first-visit pointers. Body classes: ul-lock-<solo|packs|social|ffa|seasons|store|riftrun>,
   ul-reveal-<id> while a ceremony plays, ul-dayone while the hub is in its calm first-day form. */
:root {
  --ul-lock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f2d58a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='10.5' width='14' height='10' rx='2'/%3E%3Cpath d='M8 10.5V8a4 4 0 0 1 8 0v2.5M12 14.3v2.6'/%3E%3C/svg%3E");
}

/* ---------- locked tabs and buttons: visible, dimmed, with a small lock ---------- */
body.ul-lock-solo .navbar [data-nav="solo"],
body.ul-lock-packs .navbar [data-nav="shop"],
body.ul-lock-social .navbar :is([data-nav="social"], [data-nav="ranks"]),
body.ul-lock-riftrun #solo .tabs [data-tab="run"],
body.ul-lock-social #solo .tabs [data-tab="quests"],
body.ul-lock-store :is(#toStore, #toMuseum, #stMuseum, #museumBtn),
body.ul-lock-packs #store .tabs [data-nav="shop"] {
  color: rgba(203, 185, 238, .42) !important; position: relative;
}
body.ul-lock-solo .navbar [data-nav="solo"] .ic, body.ul-lock-packs .navbar [data-nav="shop"] .ic,
body.ul-lock-social .navbar :is([data-nav="social"], [data-nav="ranks"]) .ic { opacity: .45; filter: grayscale(.6); }
body.ul-lock-solo .navbar [data-nav="solo"] .badge, body.ul-lock-packs .navbar [data-nav="shop"] .badge,
body.ul-lock-social .navbar :is([data-nav="social"], [data-nav="ranks"]) .badge { display: none; }
body.ul-lock-solo .navbar [data-nav="solo"]::before,
body.ul-lock-packs .navbar [data-nav="shop"]::before,
body.ul-lock-social .navbar :is([data-nav="social"], [data-nav="ranks"])::before,
body.ul-lock-riftrun #solo .tabs [data-tab="run"]::before,
body.ul-lock-social #solo .tabs [data-tab="quests"]::before,
body.ul-lock-store :is(#toStore, #toMuseum, #stMuseum, #museumBtn)::before {
  content: ""; position: absolute; top: 4px; right: 8px; width: 16px; height: 16px; border-radius: 50%; pointer-events: none;
  background: var(--ul-lock) center / 12px no-repeat, rgba(20, 10, 40, .92); box-shadow: 0 0 0 1px rgba(242, 193, 78, .45);
}
body.portrait.ul-lock-solo .navbar [data-nav="solo"]::before,
body.portrait.ul-lock-packs .navbar [data-nav="shop"]::before,
body.portrait.ul-lock-social .navbar :is([data-nav="social"], [data-nav="ranks"])::before { top: 6px; right: calc(50% - 44px); width: 30px; height: 30px; background-size: 20px; }
body.mobile:not(.portrait).ul-lock-solo .navbar [data-nav="solo"]::before,
body.mobile:not(.portrait).ul-lock-packs .navbar [data-nav="shop"]::before,
body.mobile:not(.portrait).ul-lock-social .navbar :is([data-nav="social"], [data-nav="ranks"])::before { width: 24px; height: 24px; background-size: 16px; }
body.portrait :is(.ul-lock-riftrun #solo .tabs [data-tab="run"], .ul-lock-social #solo .tabs [data-tab="quests"])::before { width: 26px; height: 26px; background-size: 17px; }

/* Play sheet: Ranked, Play a Friend and Free-for-All tiles say when they open */
body.ul-lock-social .modesheet :is(#mRanked, #mFriend), body.ul-lock-ffa .modesheet #mFFA { filter: saturate(.25) brightness(.62); }
body.ul-lock-social .modesheet :is(#mRanked, #mFriend) .mt-tag, body.ul-lock-ffa .modesheet #mFFA .mt-tag,
body.ul-lock-social .modesheet :is(#mRanked, #mFriend) .mt-lock { display: none; }
body.ul-lock-social .modesheet :is(#mRanked, #mFriend)::after, body.ul-lock-ffa .modesheet #mFFA::after {
  inset: auto; left: 50%; top: 42%; transform: translate(-50%, -50%); opacity: 1; z-index: 3; white-space: nowrap;
  padding: 8px 14px 8px 36px; border-radius: 99px; font: 700 14px/1.2 var(--font-ui, Inter, sans-serif); color: #f7e7bd; letter-spacing: .01em;
  background: var(--ul-lock) 12px 50% / 16px no-repeat, rgba(12, 6, 28, .88); border: 1px solid rgba(242, 193, 78, .5);
}
body.ul-lock-social .modesheet :is(#mRanked, #mFriend)::after { content: var(--ul-t-social); }
body.ul-lock-ffa .modesheet #mFFA::after { content: var(--ul-t-ffa); }
body.portrait :is(.ul-lock-social .modesheet :is(#mRanked, #mFriend), .ul-lock-ffa .modesheet #mFFA)::after { left: auto; right: 22px; top: 22px; transform: none; font-size: 20px; padding: 10px 18px 10px 46px; background-size: 22px, auto; background-position: 14px 50%, 0 0; }
body.mobile:not(.portrait) :is(.ul-lock-social .modesheet :is(#mRanked, #mFriend), .ul-lock-ffa .modesheet #mFFA)::after { font-size: 20px; }

/* ---------- day one: panels that are not useful yet are simply away ---------- */
body.ul-lock-solo #hub .hubquests, /* daily challenges arrive with Solo; Social (and #hFriends) is open from the start (2026-09-30) */
body.ul-lock-seasons #hub :is(.seasonHub, .locChip, #hLore),
body.ul-lock-store #hub :is(#hMuseum, .lcs-gems, .lcs-starter),
body.ul-lock-store :is(#shop, #solo, #collection) .lcs-gems,
body.ul-lock-packs .pill-packs { display: none !important; }
body.portrait.ul-lock-seasons #hub .hubright { grid-template-areas: "deck deck" "play play"; }
/* landscape: with the challenge row away, PLAY and the deck settle a little lower, next to the leader */
body.ul-dayone:not(.portrait) #hub .hubright { top: 236px; transition: top .4s; }
/* a panel coming back during its ceremony */
body[class*="ul-reveal-"] #hub :is(.seasonHub, #hMuseum, .hubquests, .locChip) { animation: ulGlowIn .9s ease-out both; } /* no transform: the ring measures it */

/* ---------- a tap on something locked ---------- */
#ulTip { position: absolute; z-index: 1150; display: none; align-items: center; gap: 10px; max-width: 520px; padding: 11px 18px 11px 14px; border-radius: 14px;
  background: rgba(14, 7, 32, .96); border: 1px solid rgba(242, 193, 78, .55); color: #fff3d6; font: 600 16px/1.3 var(--font-ui, Inter, sans-serif);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .55), 0 0 20px rgba(242, 193, 78, .18); pointer-events: none; white-space: nowrap; }
#ulTip.on { display: flex; animation: ulTipIn .22s ease-out both; }
#ulTip .ico { width: 20px; height: 20px; flex: none; }
#ulTip::after { content: ""; position: absolute; left: var(--ax, 50%); bottom: -7px; width: 12px; height: 12px; transform: translateX(-50%) rotate(45deg);
  background: rgba(14, 7, 32, .96); border: solid rgba(242, 193, 78, .55); border-width: 0 1px 1px 0; }
#ulTip.below::after { bottom: auto; top: -7px; border-width: 1px 0 0 1px; }
body.mobile #ulTip, body.portrait #ulTip { font-size: 26px; padding: 16px 26px 16px 20px; gap: 14px; max-width: 820px; white-space: normal; }
body.mobile #ulTip .ico, body.portrait #ulTip .ico { width: 30px; height: 30px; }
.ul-nudge { animation: ulNudge .42s ease-in-out; }

/* ---------- the unlock ceremony ---------- */
#ulCer { position: absolute; inset: 0; z-index: 995; pointer-events: auto; }
#ulCer .ul-veil { position: absolute; inset: 0; }
#ulCer .ul-veil.full { background: rgba(5, 2, 14, .72); opacity: 0; transition: opacity .35s; }
#ulCer.on .ul-veil.full { opacity: 1; }
#ulCer .ul-ring { position: absolute; border-radius: 22px; pointer-events: none; box-shadow: 0 0 0 4000px rgba(5, 2, 14, 0); transition: box-shadow .45s ease; }
#ulCer.on .ul-ring { box-shadow: 0 0 0 4000px rgba(5, 2, 14, .72), 0 0 0 3px #f2c14e, 0 0 34px 8px rgba(242, 193, 78, .75); }
#ulCer .ul-ring i { position: absolute; inset: -3px; border-radius: inherit; border: 3px solid #ffe6a0; opacity: 0; }
#ulCer.on .ul-ring i { animation: ulRing 1.6s ease-out .35s infinite; }
#ulCer .ul-card { position: absolute; left: 50%; top: 50%; width: 520px; max-width: calc(100% - 48px); padding: 30px 34px 26px; border-radius: 24px; text-align: center; overflow: hidden;
  background: radial-gradient(ellipse 90% 70% at 50% 0%, rgba(242, 193, 78, .2), transparent 65%), linear-gradient(180deg, rgba(44, 22, 90, .97), rgba(16, 8, 36, .98));
  border: 1px solid rgba(242, 193, 78, .6); box-shadow: 0 30px 70px rgba(0, 0, 0, .7), 0 0 50px rgba(242, 193, 78, .22);
  transform: translate(-50%, -50%) scale(.85); opacity: 0; transition: transform .45s var(--ease-back, cubic-bezier(.3, 1.4, .5, 1)) .12s, opacity .3s .12s; }
#ulCer .ul-card.above { top: var(--ty); transform: translate(-50%, -100%) scale(.85); }
#ulCer .ul-card.below { top: var(--ty); transform: translate(-50%, 0) scale(.85); }
#ulCer.on .ul-card { opacity: 1; transform: translate(-50%, -50%) scale(1); }
#ulCer.on .ul-card.above { transform: translate(-50%, -100%) scale(1); }
#ulCer.on .ul-card.below { transform: translate(-50%, 0) scale(1); }
#ulCer.out .ul-card { opacity: 0; transition-delay: 0s; }
#ulCer.out .ul-ring { box-shadow: 0 0 0 4000px rgba(5, 2, 14, 0); }
#ulCer .ul-rays { position: absolute; left: 50%; top: 58px; width: 420px; height: 420px; margin: -210px 0 0 -210px; pointer-events: none; opacity: .55; z-index: 0;
  background: repeating-conic-gradient(from 0deg, rgba(255, 214, 120, .22) 0deg 6deg, transparent 6deg 22deg); -webkit-mask: radial-gradient(circle, #000 18%, transparent 62%); mask: radial-gradient(circle, #000 18%, transparent 62%); }
#ulCer.on .ul-rays { animation: ulSpin 14s linear infinite; }
#ulCer .ul-card > :not(.ul-rays) { position: relative; z-index: 1; }
#ulCer .ul-ic { width: 76px; height: 76px; margin: 0 auto 10px; display: grid; place-items: center; border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, rgba(255, 226, 150, .35), rgba(90, 50, 170, .5) 70%); border: 1px solid rgba(242, 193, 78, .7); box-shadow: 0 0 26px rgba(242, 193, 78, .5); }
#ulCer .ul-ic .ico { width: 40px; height: 40px; }
#ulCer.on .ul-ic { animation: ulPop .7s var(--ease-back, cubic-bezier(.3, 1.4, .5, 1)) .2s both; }
#ulCer .ul-ey { font: 800 12px/1 var(--font-ui, Inter, sans-serif); letter-spacing: .22em; text-transform: uppercase; color: #f2c14e; }
#ulCer h2 { margin: 8px 0 8px; font: 900 34px/1.1 var(--font-title, Cinzel, serif); color: #fff3d6; text-shadow: 0 0 22px rgba(242, 193, 78, .45); }
#ulCer p { margin: 0 auto 20px; max-width: 420px; font: 500 17px/1.45 var(--font-ui, Inter, sans-serif); color: #d9ccf2; }
#ulCer .ul-acts { display: flex; justify-content: center; gap: 12px; }
#ulCer .ul-acts .btn { display: inline-flex; align-items: center; gap: 8px; }
#ulCer .ul-acts .ico { width: 18px; height: 18px; }
#ulCer.still *, #ulCer.still { transition: none !important; animation: none !important; }
body.mobile #ulCer .ul-card, body.portrait #ulCer .ul-card { width: 760px; padding: 44px 44px 36px; border-radius: 32px; }
body.mobile #ulCer .ul-ic, body.portrait #ulCer .ul-ic { width: 110px; height: 110px; } body.mobile #ulCer .ul-ic .ico, body.portrait #ulCer .ul-ic .ico { width: 58px; height: 58px; }
body.mobile #ulCer .ul-ey, body.portrait #ulCer .ul-ey { font-size: 18px; }
body.mobile #ulCer h2, body.portrait #ulCer h2 { font-size: 52px; }
body.mobile #ulCer p, body.portrait #ulCer p { font-size: 26px; max-width: 640px; margin-bottom: 30px; }
body.mobile #ulCer .ul-acts .btn, body.portrait #ulCer .ul-acts .btn { font-size: 24px; min-height: 84px; padding: 0 34px; }
body.mobile #ulCer .ul-acts .ico, body.portrait #ulCer .ul-acts .ico { width: 26px; height: 26px; }

/* ---------- first-visit pointers ---------- */
#ulCoach { position: absolute; inset: 0; z-index: 1000; pointer-events: none; opacity: 0; transition: opacity .3s; }
#ulCoach.on { opacity: 1; }
#ulCoach .ul-cring { position: absolute; border-radius: 16px; box-shadow: 0 0 0 2px #f2c14e, 0 0 22px 4px rgba(242, 193, 78, .55); animation: ulBeat 1.5s ease-in-out infinite; }
#ulCoach .ul-bub { position: absolute; max-width: 380px; padding: 12px 16px 12px 18px; border-radius: 14px; display: flex; align-items: center; gap: 14px;
  background: linear-gradient(180deg, #fff6dc, #f3dca0); color: #2a1648; font: 700 16px/1.35 var(--font-ui, Inter, sans-serif); box-shadow: 0 16px 34px rgba(0, 0, 0, .5); }
#ulCoach .ul-bub em { flex: none; font-style: normal; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #6a4a12; opacity: .8; }
#ulCoach .ul-bub::after { content: ""; position: absolute; left: var(--ax, 50%); width: 14px; height: 14px; transform: translateX(-50%) rotate(45deg); background: #f5e1aa; }
#ulCoach .ul-bub.above::after { bottom: -7px; }
#ulCoach .ul-bub.below::after { top: -7px; background: #fff6dc; }
#ulCoach.on .ul-bub.above { animation: ulBobUp 1.6s ease-in-out infinite; }
#ulCoach.on .ul-bub.below { animation: ulBobDn 1.6s ease-in-out infinite; }
body.mobile #ulCoach .ul-bub, body.portrait #ulCoach .ul-bub { max-width: 640px; font-size: 26px; padding: 18px 22px 18px 26px; border-radius: 20px; gap: 18px; }
body.mobile #ulCoach .ul-bub em, body.portrait #ulCoach .ul-bub em { font-size: 18px; }
body.mobile #ulCoach .ul-bub::after, body.portrait #ulCoach .ul-bub::after { width: 22px; height: 22px; }
body.mobile #ulCoach .ul-bub.above::after, body.portrait #ulCoach .ul-bub.above::after { bottom: -11px; }
body.mobile #ulCoach .ul-bub.below::after, body.portrait #ulCoach .ul-bub.below::after { top: -11px; }

@keyframes ulTipIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes ulNudge { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-5px); } 45% { transform: translateX(5px); } 70% { transform: translateX(-3px); } }
@keyframes ulRing { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.35); } }
@keyframes ulSpin { to { transform: rotate(360deg); } }
@keyframes ulPop { 0% { opacity: 0; transform: scale(.4); } 100% { opacity: 1; transform: scale(1); } }
@keyframes ulGlowIn { 0% { opacity: 0; filter: brightness(2.2) saturate(1.4); } 100% { opacity: 1; filter: none; } }
@keyframes ulBeat { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes ulBobUp { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes ulBobDn { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { #ulCer *, #ulCoach *, #ulTip, .ul-nudge { animation: none !important; } }
