/* ACAISAN PLAN — Lobby diário ("Meu dia"). Escopo: dialog#acLobby.lob e o botão #acLobbyOpen. */
#acLobby.lob {
  --l-bg: #08080a; --l-card: rgba(20, 20, 23, .78); --l-raise: #1a1a1d; --l-line: rgba(255, 255, 255, .08); --l-line2: rgba(255, 255, 255, .14);
  --l-text: #f4f4f5; --l-mute: #a1a1aa; --l-dim: #71717a;
  --l-acc: #a3e635; --l-acc2: #d9f99d; --l-acc-soft: rgba(163, 230, 53, .12); --l-acc-line: rgba(163, 230, 53, .35);
  --l-warn: #fbbf24; --l-red: #f87171; --l-blue: #60a5fa;
  --l-head: "Manrope", "Inter", system-ui, sans-serif; --l-body: "Inter", system-ui, sans-serif; --l-mono: "JetBrains Mono", ui-monospace, monospace;
  position: fixed; inset: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: var(--l-bg); color: var(--l-text); font-family: var(--l-body); overflow: auto; overscroll-behavior: contain;
}
#acLobby.lob.is-creator { --l-acc: #f5c451; --l-acc2: #fde68a; --l-acc-soft: rgba(245, 196, 81, .12); --l-acc-line: rgba(245, 196, 81, .38); }
#acLobby.lob::backdrop { background: #000; }
#acLobby.lob[open] { animation: lob-in .5s cubic-bezier(.2, .8, .2, 1); }
#acLobby.lob.is-leaving { animation: lob-out .22s ease forwards; }
@keyframes lob-in { from { opacity: 0; transform: scale(1.02); } }
@keyframes lob-out { to { opacity: 0; transform: scale(.99); } }
#acLobby.lob :focus-visible { outline: 2px solid var(--l-acc); outline-offset: 3px; }

/* Fundo animado */
#acLobby .lob-fx { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
#acLobby .lob-fx::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 70%); }
#acLobby .lob-fx i { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; animation: lob-float 18s ease-in-out infinite alternate; }
#acLobby .lob-fx i:nth-child(1) { width: 520px; height: 520px; left: -140px; top: -180px; background: var(--l-acc-soft); background: radial-gradient(circle, var(--l-acc) 0%, transparent 65%); opacity: .22; }
#acLobby .lob-fx i:nth-child(2) { width: 460px; height: 460px; right: -160px; top: 10%; background: radial-gradient(circle, #60a5fa 0%, transparent 65%); opacity: .12; animation-duration: 22s; }
#acLobby .lob-fx i:nth-child(3) { width: 600px; height: 600px; left: 30%; bottom: -380px; background: radial-gradient(circle, var(--l-acc) 0%, transparent 65%); opacity: .1; animation-duration: 26s; }
@keyframes lob-float { to { transform: translate(60px, 40px) scale(1.1); } }

#acLobby .lob-wrap { position: relative; max-width: 1180px; margin: 0 auto; padding: 26px 32px 32px; min-height: 100%; display: flex; flex-direction: column; gap: 22px; }
#acLobby .lob-wrap > * { animation: lob-rise .6s cubic-bezier(.2, .8, .2, 1) backwards; }
#acLobby .lob-wrap > :nth-child(2) { animation-delay: .08s; } #acLobby .lob-wrap > :nth-child(3) { animation-delay: .16s; }
#acLobby .lob-wrap > :nth-child(4) { animation-delay: .24s; } #acLobby .lob-wrap > :nth-child(5) { animation-delay: .32s; }
@keyframes lob-rise { from { opacity: 0; transform: translateY(14px); } }

#acLobby .lob-top { display: flex; align-items: center; gap: 18px; }
#acLobby .lob-brand { display: inline-flex; align-items: center; gap: 10px; font: 800 13px/1 var(--l-head); letter-spacing: .16em; }
#acLobby .lob-brand em { font-style: normal; color: var(--l-acc); }
#acLobby .lob-mark { width: 28px; height: 28px; border-radius: 9px; background: url("../assets/branding/simbolo-acaisan.webp") center / 70% no-repeat, var(--l-acc-soft); border: 1px solid var(--l-acc-line); }
#acLobby .lob-date { margin-left: auto; text-align: right; display: grid; gap: 3px; }
#acLobby .lob-date b { font: 700 11px/1 var(--l-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--l-acc); white-space: nowrap; }
#acLobby .lob-date span { font-size: 13px; color: var(--l-mute); }
#acLobby .lob-x { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--l-line2); background: rgba(255, 255, 255, .03); color: var(--l-mute); font-size: 22px; cursor: pointer; }
#acLobby .lob-x:hover { color: #fff; border-color: rgba(255, 255, 255, .3); }

#acLobby .lob-hero { padding: 26px 0 6px; }
#acLobby .lob-badge { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; padding: 7px 14px; border-radius: 999px; font: 700 11.5px/1 var(--l-mono); letter-spacing: .14em; text-transform: uppercase; color: #1a1305;
  background: linear-gradient(110deg, #f5c451 0%, #fde68a 40%, #f5c451 60%, #d99a1e 100%); background-size: 220% 100%; animation: lob-shine 4s linear infinite; box-shadow: 0 6px 24px rgba(245, 196, 81, .3); }
#acLobby .lob-badge i { font-style: normal; }
@keyframes lob-shine { to { background-position: -220% 0; } }
#acLobby .lob-title { margin: 0; font: 800 clamp(30px, 4.4vw, 54px)/1.04 var(--l-head); letter-spacing: -.03em; background: linear-gradient(180deg, #fff 30%, #c4c5cc); -webkit-background-clip: text; background-clip: text; color: transparent; }
#acLobby .lob-quote { margin: 16px 0 0; padding-left: 16px; border-left: 2px solid var(--l-acc); font: 500 clamp(16px, 1.6vw, 19px)/1.5 var(--l-head); color: var(--l-mute); max-width: 60ch; }

#acLobby .lob-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
#acLobby .lob-stat { display: grid; gap: 8px; text-align: left; padding: 18px 18px 16px; border-radius: 18px; border: 1px solid var(--l-line); background: var(--l-card); backdrop-filter: blur(10px); color: var(--l-text); cursor: pointer; font: inherit; transition: border-color .15s, transform .15s; }
#acLobby .lob-stat:hover { border-color: var(--l-line2); transform: translateY(-2px); }
#acLobby .lob-stat small { font: 600 10.5px/1 var(--l-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--l-dim); }
#acLobby .lob-stat strong { font: 800 clamp(22px, 2.3vw, 30px)/1 var(--l-head); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
#acLobby .lob-stat span { font-size: 12.5px; color: var(--l-mute); }
#acLobby .lob-stat.is-lime strong { color: var(--l-acc); }
#acLobby .lob-stat.is-warn strong { color: var(--l-warn); }

#acLobby .lob-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 12px; align-items: start; }
#acLobby .lob-card { padding: 20px; border-radius: 20px; border: 1px solid var(--l-line); background: var(--l-card); backdrop-filter: blur(10px); }
#acLobby .lob-card h3 { margin: 0 0 14px; font: 600 11px/1 var(--l-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--l-dim); }
#acLobby .lob-missions ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
#acLobby .lob-missions li { display: grid; grid-template-columns: 34px 1fr auto; gap: 14px; align-items: center; padding: 13px 14px; border-radius: 14px; background: rgba(255, 255, 255, .025); border: 1px solid var(--l-line); animation: lob-rise .5s ease backwards; animation-delay: calc(.4s + var(--i) * .08s); }
#acLobby .lob-num { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font: 700 13px/1 var(--l-mono); font-style: normal; background: var(--l-acc-soft); border: 1px solid var(--l-acc-line); color: var(--l-acc); }
#acLobby .lob-missions li.is-danger .lob-num { background: rgba(248, 113, 113, .12); border-color: rgba(248, 113, 113, .4); color: var(--l-red); }
#acLobby .lob-missions li.is-warn .lob-num { background: rgba(251, 191, 36, .12); border-color: rgba(251, 191, 36, .4); color: var(--l-warn); }
#acLobby .lob-missions li.is-info .lob-num { background: rgba(96, 165, 250, .12); border-color: rgba(96, 165, 250, .4); color: var(--l-blue); }
#acLobby .lob-missions li div { display: grid; gap: 3px; min-width: 0; }
#acLobby .lob-missions li b { font: 700 14.5px/1.3 var(--l-head); overflow-wrap: anywhere; }
#acLobby .lob-missions li span { font-size: 12.5px; color: var(--l-mute); }
#acLobby .lob-go { height: 34px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--l-line2); background: rgba(255, 255, 255, .04); color: var(--l-text); font: 700 12.5px/1 var(--l-body); cursor: pointer; white-space: nowrap; }
#acLobby .lob-go:hover { border-color: var(--l-acc); color: var(--l-acc); }
#acLobby .lob-creator-mission { margin-top: 12px; padding: 14px 16px; border-radius: 14px; display: grid; gap: 4px; background: linear-gradient(135deg, rgba(245, 196, 81, .14), rgba(245, 196, 81, .03)); border: 1px solid rgba(245, 196, 81, .38); }
#acLobby .lob-creator-mission small { font: 700 10px/1.4 var(--l-mono); letter-spacing: .14em; text-transform: uppercase; color: #f5c451; }
#acLobby .lob-creator-mission b { font: 700 15px/1.3 var(--l-head); }
#acLobby .lob-creator-mission span { font-size: 12.5px; color: var(--l-mute); }
#acLobby .lob-creator-mission em { font-style: normal; font-size: 11px; color: var(--l-dim); }

#acLobby .lob-agenda ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
#acLobby .lob-day { margin: 6px 0 2px; font: 700 10.5px/1 var(--l-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--l-mute); }
#acLobby .lob-day:first-child { margin-top: 0; }
#acLobby .lob-ev { display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: center; padding: 9px 10px; border-radius: 12px; background: rgba(255, 255, 255, .025); }
#acLobby .lob-ev-ico { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: rgba(255, 255, 255, .05); color: var(--l-mute); }
#acLobby .lob-ev-ico svg { width: 17px; height: 17px; }
#acLobby .lob-ev.is-meeting .lob-ev-ico { color: var(--l-blue); background: rgba(96, 165, 250, .1); }
#acLobby .lob-ev.is-shoot .lob-ev-ico { color: var(--l-acc); background: var(--l-acc-soft); }
#acLobby .lob-ev.is-overdue .lob-ev-ico { color: var(--l-red); background: rgba(248, 113, 113, .1); }
#acLobby .lob-ev.is-money .lob-ev-ico { color: #a3e635; background: rgba(163, 230, 53, .1); }
#acLobby .lob-ev.is-due .lob-ev-ico { color: var(--l-warn); background: rgba(251, 191, 36, .1); }
#acLobby .lob-ev div { display: grid; gap: 2px; min-width: 0; }
#acLobby .lob-ev b { font: 700 13.5px/1.3 var(--l-head); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#acLobby .lob-ev span { font-size: 12px; color: var(--l-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#acLobby .lob-free, #acLobby .lob-more { margin: 0; font-size: 13px; color: var(--l-mute); line-height: 1.5; }
#acLobby .lob-more { margin-top: 8px; font-size: 12px; }
#acLobby .lob-link { margin-top: 14px; padding: 0; border: 0; background: none; color: var(--l-acc); font: 700 13px var(--l-body); cursor: pointer; }

#acLobby .lob-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 6px; }
#acLobby .lob-foot p { margin: 0; font-size: 12.5px; color: var(--l-dim); }
#acLobby .lob-start { height: 50px; padding: 0 30px; border-radius: 14px; border: 0; background: var(--l-acc); color: #0a0a0a; font: 800 15px/1 var(--l-head); letter-spacing: -.01em; cursor: pointer; box-shadow: 0 10px 34px var(--l-acc-soft), 0 0 0 1px var(--l-acc) inset; transition: transform .15s, filter .15s; }
#acLobby .lob-start:hover { transform: translateY(-1px); filter: brightness(1.06); }

/* Tour */
#acLobby .lob-tour { position: relative; width: min(520px, calc(100vw - 32px)); margin: max(8vh, 40px) auto; padding: 34px 32px 26px; border-radius: 26px; text-align: center; display: grid; justify-items: center; gap: 12px; border: 1px solid var(--l-line2); background: rgba(16, 16, 19, .86); backdrop-filter: blur(16px); animation: lob-rise .45s cubic-bezier(.2, .8, .2, 1); }
#acLobby .lob-tour .lob-badge { margin-bottom: 4px; }
#acLobby .lob-tour-ico { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--l-acc-soft); border: 1px solid var(--l-acc-line); color: var(--l-acc); box-shadow: 0 0 40px var(--l-acc-soft); }
#acLobby .lob-tour-ico svg { width: 30px; height: 30px; }
#acLobby .lob-step { font: 600 10.5px/1 var(--l-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--l-dim); }
#acLobby .lob-tour h2 { margin: 0; font: 800 28px/1.12 var(--l-head); letter-spacing: -.02em; }
#acLobby .lob-tour p { margin: 0; color: var(--l-mute); line-height: 1.6; max-width: 42ch; }
#acLobby .lob-dots { display: flex; gap: 6px; margin: 6px 0 4px; }
#acLobby .lob-dots i { width: 7px; height: 7px; border-radius: 99px; background: var(--l-line2); transition: width .2s; }
#acLobby .lob-dots i.is-on { width: 22px; background: var(--l-acc); }
#acLobby .lob-tour-nav { width: 100%; display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
#acLobby .lob-skip { border: 0; background: none; color: var(--l-dim); font: 600 13px var(--l-body); cursor: pointer; padding: 10px; }
#acLobby .lob-skip:hover { color: var(--l-text); }

/* Botão "Meu dia" no topo */
#acLobbyOpen.lob-open { font-size: 12px; display: inline-flex; align-items: center; gap: 6px; }
#acLobbyOpen.lob-open span { color: #a3e635; }

@media (max-width: 900px) {
  #acLobby .lob-stats { grid-template-columns: repeat(2, 1fr); }
  #acLobby .lob-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  #acLobby .lob-wrap { padding: 16px 16px 22px; gap: 16px; }
  #acLobby .lob-date span { display: none; }
  #acLobby .lob-hero { padding-top: 8px; }
  #acLobby .lob-stat { padding: 14px; border-radius: 15px; }
  #acLobby .lob-card { padding: 16px; }
  #acLobby .lob-missions li { grid-template-columns: 30px 1fr; gap: 10px; }
  #acLobby .lob-missions .lob-go { grid-column: 2; justify-self: start; }
  #acLobby .lob-num { width: 30px; height: 30px; }
  #acLobby .lob-foot { flex-direction: column-reverse; align-items: stretch; text-align: center; }
  #acLobby .lob-start { width: 100%; }
  #acLobbyOpen.lob-open { padding-left: 10px; padding-right: 10px; }
}
/* "Reduzir movimento": versão parada, a não ser que o movimento tenha sido forçado com ?movimento=1 (classe lob-motion). */
@media (prefers-reduced-motion: reduce) {
  #acLobby.lob:not(.lob-motion)[open], #acLobby.lob:not(.lob-motion).is-leaving, #acLobby.lob:not(.lob-motion) .lob-wrap > *, #acLobby.lob:not(.lob-motion) .lob-missions li,
  #acLobby.lob:not(.lob-motion) .lob-tour, #acLobby.lob:not(.lob-motion) .lob-fx i, #acLobby.lob:not(.lob-motion) .lob-badge { animation: none !important; }
}

@media(max-width:560px){#acLobbyOpen .lob-open-txt{display:none}}
@media print{#acLobbyOpen,#acLobby{display:none!important}}
