/* ACAISAN PLAN — Recompensas (Advento + Meu baú + itens equipados). Escopo: #acLobby .adv/.bag/.adv-overlay e body.cos-*. */
#acLobby .adv { position: relative; padding: 20px; border-radius: 20px; overflow: hidden;
  background: radial-gradient(420px 160px at 0 0, rgba(229, 72, 77, .16), transparent 70%), radial-gradient(420px 180px at 100% 100%, rgba(245, 196, 81, .1), transparent 70%), var(--l-card, rgba(20, 20, 23, .78));
  border: 1px solid rgba(245, 196, 81, .28); backdrop-filter: blur(10px); }
#acLobby .adv-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
#acLobby .adv-ttl { display: grid; gap: 4px; }
#acLobby .adv-ttl small { font: 700 10.5px/1 var(--l-mono, monospace); letter-spacing: .14em; text-transform: uppercase; color: #fca5a5; }
#acLobby .adv-ttl h3 { margin: 0; font: 800 20px/1.1 var(--l-head, sans-serif); color: #fff; }
#acLobby .adv-prog { margin-left: auto; display: grid; justify-items: end; gap: 2px; }
#acLobby .adv-prog b { font: 800 22px/1 var(--l-head, sans-serif); color: #f5c451; font-variant-numeric: tabular-nums; }
#acLobby .adv-prog span { font-size: 12px; color: var(--l-mute, #a1a1aa); }
#acLobby .adv-bag { height: 38px; padding: 0 16px; border-radius: 11px; border: 1px solid rgba(245, 196, 81, .45); background: rgba(245, 196, 81, .1); color: #fde68a; font: 700 13px/1 var(--l-body, sans-serif); cursor: pointer; }
#acLobby .adv-bag::before { content: "🎁 "; }
#acLobby .adv-bag:hover { background: rgba(245, 196, 81, .18); }

/* Trilha de prêmios */
#acLobby .adv-track { position: relative; height: 34px; margin: 18px 14px 6px; }
#acLobby .adv-track::before, #acLobby .adv-bar { content: ""; position: absolute; left: 0; top: 15px; height: 4px; border-radius: 4px; }
#acLobby .adv-track::before { right: 0; background: rgba(255, 255, 255, .08); }
#acLobby .adv-bar { width: var(--p); background: linear-gradient(90deg, #e5484d, #f5c451, #a3e635); box-shadow: 0 0 12px rgba(245, 196, 81, .45); }
#acLobby .adv-gem { position: absolute; left: var(--x); top: 3px; width: 28px; height: 28px; margin-left: -14px; border-radius: 9px; display: grid; place-items: center; font-size: 13px;
  background: #121214; border: 2px solid color-mix(in srgb, var(--c) 45%, transparent); color: color-mix(in srgb, var(--c) 70%, #71717a); transform: rotate(45deg); }
#acLobby .adv-gem span { transform: rotate(-45deg); line-height: 1; }
#acLobby .adv-gem.is-got { background: var(--c); border-color: var(--c); color: #0a0a0a; box-shadow: 0 0 14px color-mix(in srgb, var(--c) 70%, transparent); }

/* Portas */
/* Fileira única: rola para o lado e abre centrada na porta de hoje */
#acLobby .adv-strip { display: flex; align-items: center; gap: 6px; margin-top: 12px; }
#acLobby .adv-doors { flex: 1; min-width: 0; display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding: 6px 2px 8px; perspective: 600px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%); }
#acLobby .adv-strip.at-start .adv-doors { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent 100%); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent 100%); }
#acLobby .adv-strip.at-end .adv-doors { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 28px); mask-image: linear-gradient(90deg, transparent 0, #000 28px); }
#acLobby .adv-strip.at-start.at-end .adv-doors { -webkit-mask-image: none; mask-image: none; }
#acLobby .adv-doors::-webkit-scrollbar { display: none; }
#acLobby .adv-doors > .adv-door { flex: 0 0 74px; height: 80px; aspect-ratio: auto; scroll-snap-align: center; }
#acLobby .adv-date { font: 600 9px/1 var(--l-mono, monospace); font-style: normal; letter-spacing: .04em; text-transform: uppercase; color: var(--l-dim, #71717a); }
#acLobby .adv-door.is-today .adv-date { color: #fca5a5; position: relative; z-index: 1; }
#acLobby .adv-door.is-opened .adv-date { color: rgba(163, 230, 53, .7); }
#acLobby .adv-nav { flex: 0 0 34px; height: 34px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .04); color: var(--l-text, #f4f4f5); font: 600 20px/1 var(--l-body, sans-serif); cursor: pointer; }
#acLobby .adv-nav:hover:not(:disabled) { border-color: rgba(245, 196, 81, .5); color: #fde68a; }
#acLobby .adv-nav:disabled { opacity: .25; cursor: default; }
#acLobby .adv-door { position: relative; aspect-ratio: 1 / 1.12; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .1); background: linear-gradient(160deg, #1d1d21, #121214);
  color: var(--l-text, #f4f4f5); display: grid; place-content: center; justify-items: center; gap: 2px; padding: 0; font: inherit; cursor: default; transform-style: preserve-3d; transition: transform .5s cubic-bezier(.3, 1.3, .5, 1), box-shadow .2s; }
#acLobby .adv-door b { font: 800 17px/1 var(--l-head, sans-serif); }
#acLobby .adv-door small { font: 700 9.5px/1 var(--l-mono, monospace); letter-spacing: .06em; text-transform: uppercase; color: var(--l-dim, #71717a); min-height: 9px; }
#acLobby .adv-door.is-opened { background: linear-gradient(160deg, rgba(163, 230, 53, .2), rgba(163, 230, 53, .05)); border-color: rgba(163, 230, 53, .45); }
#acLobby .adv-door.is-opened small { color: #a3e635; font-size: 12px; }
#acLobby .adv-door.is-missed { opacity: .38; }
#acLobby .adv-door.is-future b { color: var(--l-dim, #71717a); }
#acLobby .adv-door.is-today { cursor: pointer; border-color: #f5c451; background: linear-gradient(160deg, #3a1012, #1c0c0d); box-shadow: 0 0 0 3px rgba(245, 196, 81, .22), 0 10px 28px rgba(229, 72, 77, .35); }
#acLobby .adv-door.is-today::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(90deg, transparent 47%, rgba(245, 196, 81, .55) 47% 53%, transparent 53%), linear-gradient(0deg, transparent 47%, rgba(245, 196, 81, .55) 47% 53%, transparent 53%); }
#acLobby .adv-door.is-today b, #acLobby .adv-door.is-today small { position: relative; z-index: 1; color: #fde68a; }
#acLobby .adv-door.is-today:hover { transform: translateY(-3px) scale(1.04); }
@media (prefers-reduced-motion: no-preference) { #acLobby .adv-door.is-today { animation: adv-pulse 1.8s ease-in-out infinite; } }
#acLobby.lob-motion .adv-door.is-today { animation: adv-pulse 1.8s ease-in-out infinite; }
@keyframes adv-pulse { 50% { box-shadow: 0 0 0 7px rgba(245, 196, 81, .08), 0 10px 34px rgba(229, 72, 77, .5); } }
#acLobby .adv-door.is-opening { animation: none !important; transform: rotateY(180deg) scale(1.08); }
#acLobby .adv-foot { margin: 14px 0 0; font-size: 13px; color: var(--l-mute, #a1a1aa); }
#acLobby .adv-foot b { color: #fde68a; }
#acLobby .adv-toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 30; padding: 12px 18px; border-radius: 14px; background: #18181b; border: 1px solid rgba(245, 196, 81, .45); color: #fde68a; font: 600 14px/1.3 var(--l-body, sans-serif); box-shadow: 0 14px 40px rgba(0, 0, 0, .5); }

/* Sobreposição (revelação e baú) */
#acLobby .adv-overlay { position: fixed; inset: 0; z-index: 25; display: grid; place-items: center; padding: 16px; background: rgba(4, 4, 6, .78); backdrop-filter: blur(6px); }
#acLobby .adv-reveal { position: relative; width: min(380px, 100%); padding: 30px 26px 24px; border-radius: 26px; text-align: center; display: grid; justify-items: center; gap: 8px; overflow: hidden;
  background: radial-gradient(260px 200px at 50% 0, color-mix(in srgb, var(--c) 30%, transparent), transparent 70%), #121214; border: 1px solid color-mix(in srgb, var(--c) 60%, transparent); box-shadow: 0 0 60px color-mix(in srgb, var(--c) 30%, transparent); }
#acLobby .adv-rays { position: absolute; left: 50%; top: 92px; width: 520px; height: 520px; margin: -260px 0 0 -260px; pointer-events: none; opacity: .35;
  background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--c) 55%, transparent) 0 8deg, transparent 8deg 22deg); -webkit-mask-image: radial-gradient(circle, #000 0, transparent 60%); mask-image: radial-gradient(circle, #000 0, transparent 60%); }
#acLobby.lob-motion .adv-rays { animation: adv-spin 14s linear infinite; }
@media (prefers-reduced-motion: no-preference) { #acLobby .adv-rays { animation: adv-spin 14s linear infinite; } }
@keyframes adv-spin { to { transform: rotate(360deg); } }
#acLobby .adv-new { position: relative; font: 700 11px/1 var(--l-mono, monospace); letter-spacing: .16em; text-transform: uppercase; color: var(--c); }
#acLobby .adv-ico { position: relative; width: 96px; height: 96px; margin: 8px 0; border-radius: 28px; display: grid; place-items: center; font-size: 42px; color: #0a0a0a; background: var(--c); box-shadow: 0 0 40px color-mix(in srgb, var(--c) 70%, transparent); }
#acLobby.lob-motion .adv-ico { animation: adv-pop .7s cubic-bezier(.3, 1.6, .5, 1) backwards; }
@keyframes adv-pop { from { transform: scale(.3) rotate(-30deg); opacity: 0; } }
#acLobby .adv-rar { position: relative; padding: 5px 12px; border-radius: 999px; font: 700 11px/1 var(--l-mono, monospace); letter-spacing: .12em; text-transform: uppercase; color: var(--c); border: 1px solid color-mix(in srgb, var(--c) 55%, transparent); }
#acLobby .adv-reveal h3 { position: relative; margin: 6px 0 0; font: 800 24px/1.15 var(--l-head, sans-serif); color: #fff; }
#acLobby .adv-reveal p { position: relative; margin: 0; color: var(--l-mute, #a1a1aa); font-size: 14px; }
#acLobby .adv-kind { position: relative; font-size: 12px; color: var(--l-dim, #71717a); }
#acLobby .adv-row { position: relative; display: flex; gap: 10px; margin-top: 14px; width: 100%; }
#acLobby .adv-btn { flex: 1; height: 46px; border-radius: 13px; border: 0; background: var(--c); color: #0a0a0a; font: 800 14px/1 var(--l-head, sans-serif); cursor: pointer; }
#acLobby .adv-btn--ghost { background: rgba(255, 255, 255, .06); color: var(--l-text, #f4f4f5); border: 1px solid rgba(255, 255, 255, .14); }

/* Meu baú */
#acLobby .bag { width: min(760px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 22px; border-radius: 24px; background: #111113; border: 1px solid rgba(255, 255, 255, .12); }
#acLobby .bag-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
#acLobby .bag-head h3 { margin: 0; font: 800 22px/1 var(--l-head, sans-serif); color: #fff; }
#acLobby .bag-head h3::before { content: "🎁 "; }
#acLobby .bag-head span { font-size: 13px; color: var(--l-mute, #a1a1aa); }
#acLobby .bag-x { margin-left: auto; width: 36px; height: 36px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .04); color: #a1a1aa; font-size: 20px; cursor: pointer; }
#acLobby .bag-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
#acLobby .bag-item { display: grid; justify-items: start; gap: 6px; padding: 14px; border-radius: 16px; background: #17171a; border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); }
#acLobby .bag-item.is-on { box-shadow: 0 0 0 2px var(--c), 0 0 24px color-mix(in srgb, var(--c) 30%, transparent); }
#acLobby .bag-item.is-locked { opacity: .55; border-color: rgba(255, 255, 255, .08); }
#acLobby .bag-ico { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; font-size: 20px; background: color-mix(in srgb, var(--c) 18%, transparent); color: var(--c); }
#acLobby .bag-item.is-locked .bag-ico { background: rgba(255, 255, 255, .05); filter: grayscale(1); }
#acLobby .bag-rar { font: 700 9.5px/1 var(--l-mono, monospace); letter-spacing: .12em; text-transform: uppercase; color: var(--c); }
#acLobby .bag-item b { font: 700 14px/1.25 var(--l-head, sans-serif); color: #fff; }
#acLobby .bag-item small { font-size: 11.5px; color: var(--l-dim, #71717a); }
#acLobby .bag-eq { margin-top: 4px; height: 32px; padding: 0 12px; border-radius: 9px; border: 1px solid color-mix(in srgb, var(--c) 55%, transparent); background: color-mix(in srgb, var(--c) 12%, transparent); color: var(--c); font: 700 12px/1 var(--l-body, sans-serif); cursor: pointer; }
#acLobby .bag-item.is-on .bag-eq { background: var(--c); color: #0a0a0a; }
#acLobby .bag-how { color: #fde68a !important; }
#acLobby .bag-note { margin: 16px 0 0; font-size: 12px; color: var(--l-dim, #71717a); }

/* Aparência do lobby pelos itens equipados */
#acLobby.cos-accent-accent_dourado { --l-acc: #f5c451; --l-acc2: #fde68a; --l-acc-soft: rgba(245, 196, 81, .12); --l-acc-line: rgba(245, 196, 81, .38); }
#acLobby.cos-bg-bg_noite_natal .lob-fx i:nth-child(1) { background: radial-gradient(circle, #e5484d 0%, transparent 65%) !important; opacity: .24 !important; }
#acLobby.cos-bg-bg_noite_natal .lob-fx i:nth-child(3) { background: radial-gradient(circle, #f5c451 0%, transparent 65%) !important; opacity: .14 !important; }
#acLobby.cos-bg-bg_aurora .lob-fx i:nth-child(1) { background: radial-gradient(circle, #34d399 0%, transparent 65%) !important; opacity: .26 !important; }
#acLobby.cos-bg-bg_aurora .lob-fx i:nth-child(2) { background: radial-gradient(circle, #818cf8 0%, transparent 65%) !important; opacity: .22 !important; }
#acLobby.cos-bg-bg_aurora .lob-fx i:nth-child(3) { background: radial-gradient(circle, #22d3ee 0%, transparent 65%) !important; opacity: .16 !important; }
#acLobby .cos-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
#acLobby .cos-tags span { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px; font: 700 11.5px/1 var(--l-mono, monospace); letter-spacing: .08em; }
#acLobby .cos-title { color: #c084fc; background: rgba(192, 132, 252, .12); border: 1px solid rgba(192, 132, 252, .4); }
#acLobby .cos-badge { color: #d4d4d8; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .16); }
#acLobby .cos-frame { color: #1a1305; background: linear-gradient(110deg, #f5c451, #fde68a 40%, #f5c451 60%, #d99a1e); background-size: 220% 100%; box-shadow: 0 6px 22px rgba(245, 196, 81, .3); }
#acLobby.lob-motion .cos-frame { animation: lob-shine 4s linear infinite; }

/* Efeitos no app fora da temporada (itens "para sempre") */
body.cos-lights .workspace-bar { position: relative; }
.cos-lights-row { position: absolute; left: 0; right: 0; bottom: -9px; height: 18px; display: flex; justify-content: space-between; padding: 0 14px; pointer-events: none; z-index: 2; }
.cos-lights-row::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 9px; border-bottom: 1px solid rgba(255, 255, 255, .14); border-radius: 0 0 50% 50% / 0 0 100% 100%; }
.cos-lights-row i { position: relative; top: 4px; width: 6px; height: 9px; border-radius: 50% 50% 45% 45%; background: var(--c); box-shadow: 0 0 8px var(--c); }
.cos-lights-row i:nth-child(4n+1) { --c: #e5484d; } .cos-lights-row i:nth-child(4n+2) { --c: #f5c451; } .cos-lights-row i:nth-child(4n+3) { --c: #a3e635; } .cos-lights-row i:nth-child(4n+4) { --c: #60a5fa; }
.cos-lights-row i:nth-child(even) { top: 6px; }
@media (prefers-reduced-motion: no-preference) { .cos-lights-row i { animation: cos-blink 2.4s ease-in-out infinite; animation-delay: calc(var(--i) * -.37s); } }
@keyframes cos-blink { 50% { opacity: .25; box-shadow: none; } }
body:not(.cos-lights) .cos-lights-row { display: none; }
.cos-sky { position: fixed; left: 0; right: 0; top: 0; height: 240px; pointer-events: none; z-index: 40; -webkit-mask-image: linear-gradient(#000 40%, transparent); mask-image: linear-gradient(#000 40%, transparent); }
.cos-confetti { position: fixed; inset: 0; pointer-events: none; z-index: 2147483000; overflow: hidden; }
.cos-confetti i { position: absolute; left: var(--x); top: -20px; width: 8px; height: 14px; border-radius: 2px; background: var(--c); animation: cos-fall 2.6s cubic-bezier(.2, .6, .4, 1) var(--d) forwards; }
@keyframes cos-fall { to { transform: translateY(110vh) rotate(var(--r)); } }


@media (max-width: 560px) {
  #acLobby .adv { padding: 16px; }
  #acLobby .adv-doors { gap: 6px; }
  #acLobby .adv-doors > .adv-door { flex-basis: 62px; height: 72px; }
  #acLobby .adv-nav { display: none; }
  #acLobby .adv-door b { font-size: 15px; }
  #acLobby .adv-prog { margin-left: 0; justify-items: start; }
  #acLobby .adv-bag { margin-left: auto; }
  #acLobby .adv-track { margin: 16px 12px 4px; }
  #acLobby .adv-gem { width: 22px; height: 22px; margin-left: -11px; top: 6px; font-size: 10px; }
  #acLobby .bag-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) { #acLobby:not(.lob-motion) .adv-door { transition: none; } }
