/* Luna na nuvem: o onboarding (/comecar/), no visual do onboarding do app
   no tema claro (LunaApp/src/onboarding/kit.rs e LIGHT_PAIRS de theme.rs). O céu é o da manhã de sky.js. */
.ob {
  --cream: #222124; --on-pink: #FEF1D0; --secondary: #45434A; --muted: #4B4851; --line: #DEDDD9; --control: #B9B8B4;
  --surface-soft: #EFEFEC; --recess: #FBFBFA; --glass: #FBFBFACC; --danger: #AC3632; --hair: #2221241F; --soft-ink: #222124BD;
  --pink: #FC3B7F; --pink-top: #FF4F8D; --pink-bottom: #F5357A; --pink-edge: #FF86B2;
  min-height: 100vh; margin: 0; background: linear-gradient(180deg, #BED6F9 0%, #C9D2F4 50%, #D7C2E6 100%) fixed; color: var(--cream); font-family: var(--sans);
}
.ob-sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.ob [hidden] { display: none !important; }
.ob-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* topo: o logo, as etapas no meio (a pílula do app) e o acesso remoto */
.ob-top { position: relative; z-index: 3; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 22px 28px 0; }
.ob-logo { display: flex; align-items: center; gap: 9px; color: var(--cream); text-decoration: none; font: 400 19px/1 var(--pixel); justify-self: start; }
.ob-logo img { width: 28px; height: 28px; }
.ob-remote { justify-self: end; font-size: 13px; font-weight: 750; color: var(--soft-ink); text-decoration: none; padding: 8px 10px; border-radius: 8px; }
.ob-remote:hover { color: var(--cream); }
.ob-steps { list-style: none; margin: 0; display: flex; gap: 2px; padding: 5px; border-radius: 999px; background: var(--glass); border: 1px solid var(--hair); backdrop-filter: blur(6px); box-shadow: 0 6px 14px #1b2a5a1f; }
.ob-steps li { display: flex; align-items: center; gap: 8px; height: 28px; padding: 0 15px 0 11px; border-radius: 999px; font-size: 12.5px; font-weight: 750; color: var(--soft-ink); white-space: nowrap; }
.ob-steps b { min-width: 9px; text-align: center; font-size: 13px; font-weight: 800; }
.ob-steps li.is-done { color: var(--cream); }
.ob-steps li.is-done b { width: 11px; min-width: 0; font-size: 0; height: 11px; background: var(--pink); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; }
.ob-steps li.is-now { color: var(--on-pink); background: linear-gradient(180deg, var(--pink-top), var(--pink-bottom)); box-shadow: 0 3px 6px #FC3B7F40; }

/* o conteúdo, no meio, com os botões do pé presos embaixo */
.ob-main { position: relative; z-index: 1; display: flex; justify-content: center; padding: 40px 24px 120px; }
.ob-view { width: min(760px, 100%); display: flex; flex-direction: column; align-items: center; }
.ob-view[hidden] { display: none; }
.ob-welcome { min-height: calc(100vh - 260px); justify-content: center; text-align: center; }

.ob-intro { display: flex; flex-direction: column; align-items: center; text-align: center; padding-bottom: 23px; }
.ob-title { margin: 0 0 10px; font: 400 31px/1.25 var(--pixel); color: var(--cream); letter-spacing: 0; text-wrap: balance; }
.ob-title-xl { font-size: 44px; line-height: 1.12; max-width: 640px; margin-bottom: 16px; }
.ob-detail { margin: 0; max-width: 530px; font-size: 13px; font-weight: 550; line-height: 1.7; color: var(--secondary); text-wrap: pretty; }
.ob-welcome .ob-detail { font-size: 14px; max-width: 470px; }
.ob-detail strong { color: var(--cream); }

/* os gatos do boas-vindas */
.ob-cats { display: flex; align-items: center; justify-content: center; height: 100px; margin-bottom: 26px; }
.ob-cats img { width: 62px; height: 62px; margin-left: -12px; border-radius: 50%; border: 3px solid #fff; background: #fff; box-shadow: 0 6px 16px #1b2a5a1f; translate: 0 var(--y, 0); }
.ob-cats img:first-child { margin-left: 0; }
.ob-cats img.is-lead { width: 88px; height: 88px; z-index: 1; }

/* campos (o recesso, a linha do controle, rosa no foco) */
.ob-label { display: flex; gap: 4px; align-self: stretch; font-size: 11px; font-weight: 750; line-height: 1.55; color: var(--cream); padding: 13px 0 6px; }
.ob-label:first-child { padding-top: 0; }
.ob-label em { font-style: normal; color: var(--muted); }
.ob-field { box-sizing: border-box; width: 100%; height: 41px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--control); background: var(--recess); box-shadow: inset 0 2px 0 #0000000D; color: var(--cream); font: 550 13px/1 var(--sans); outline: none; transition: border-color .14s; }
.ob-field::placeholder { color: #22212466; }
.ob-field:focus { border-color: var(--pink); }
.ob-error { min-height: 18px; margin: 8px 0 0; font-size: 12px; font-weight: 650; color: var(--danger); align-self: stretch; }
.ob-error:empty { min-height: 0; margin: 0; }
.ob-welcome .ob-error, .ob-narrow .ob-error { text-align: center; }
.ob-fine { margin: 18px 0 0; font-size: 12px; font-weight: 600; color: var(--soft-ink); }
.ob-fine a, .ob-link { color: var(--cream); font: inherit; font-weight: 750; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #22212466; }

.ob-inline { display: flex; gap: 8px; width: min(470px, 100%); margin-top: 28px; }
.ob-inline .ob-field { height: 52px; font-size: 14px; border-radius: 14px; flex: 1; min-width: 0; }
.ob-narrow { width: min(320px, 100%); display: flex; flex-direction: column; }

/* botões: o gradiente rosa com a luz no topo, e o escuro */
.ob-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 36px; padding: 0 13px; border-radius: 12px; border: 1px solid #00000012; background: linear-gradient(180deg, #FFFFFF, #F4F4F1); box-shadow: 0 3px 2px #00000024, 0 1px 0 #00000040, inset 0 1px 0 #FFFFFF; color: var(--cream); font: 750 12px/1 var(--sans); cursor: pointer; white-space: nowrap; text-decoration: none; }
.ob-btn:hover { border-color: #00000021; }
.ob-btn:active { transform: translateY(1px); }
.ob-btn .ic { width: 15px; height: 15px; }
.ob-primary { min-height: 52px; padding: 0 26px; border-radius: 14px; font-size: 15px; border-color: var(--pink-edge); background: linear-gradient(180deg, var(--pink-top), var(--pink-bottom)); box-shadow: 0 4px 4px #FC3B7F40, 0 1px 0 #7A0F3833, inset 0 1px 0 #FFFFFF47; color: var(--on-pink); }
.ob-primary:hover { border-color: var(--pink-edge); opacity: .94; }
.ob-foot .ob-primary { min-height: 36px; padding: 0 14px; border-radius: 12px; font-size: 12px; }
.ob-small { min-height: 32px; font-size: 11px; padding: 0 12px; border-radius: 10px; }
.ob-full { width: 100%; margin-top: 12px; }
.ob-google { min-height: 52px; padding: 0 24px; margin-top: 28px; border-radius: 14px; gap: 10px; font-size: 15px; color: #1F1F1F; }
.ob-g { width: 20px; height: 20px; flex: none; }
.ob-btn[disabled] { opacity: .5; cursor: default; transform: none; }
.ob-text { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 8px; border: 0; border-radius: 8px; background: none; font: 750 12px/1 var(--sans); color: var(--soft-ink); cursor: pointer; }
.ob-text:hover { color: var(--cream); }
.ob-text .ic { width: 14px; height: 14px; }
.ob-quiet { color: var(--muted); font-weight: 700; }
.ob-quiet:hover { background: var(--surface-soft); }

/* o pé: voltar à esquerda, seguir à direita, preso ao fim da janela como no app */
.ob-foot { position: fixed; z-index: 2; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 12px; padding: 20px 26px 26px; background: linear-gradient(180deg, #D3C4EA00, #D3C4EAF2 42%); }
.ob-foot > .ob-primary, .ob-foot > .ob-count + .ob-primary { margin-left: auto; }
.ob-grow { flex: 1; }
.ob-grow + .ob-text + .ob-primary { margin-left: 0; }
.ob-count { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--secondary); }

/* vidro: #0A0A0A a 80 % com o fio creme */
.ob-glass { background: var(--glass); border: 1px solid var(--hair); border-radius: 18px; backdrop-filter: blur(8px); box-shadow: 0 10px 24px #1b2a5a14; }

/* 2. time */
.ob-lead { align-self: stretch; display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin-bottom: 10px; border-radius: 16px; background: var(--glass); border: 1px solid var(--hair); }
.ob-lead img { width: 48px; height: 48px; flex: none; border-radius: 50%; }
.ob-lead strong { display: block; font-size: 14px; font-weight: 800; }
.ob-lead span { display: block; font-size: 12px; font-weight: 550; color: var(--secondary); margin-top: 2px; }
.ob-lead em { margin-left: auto; flex: none; font: 750 11px/1 var(--sans); font-style: normal; color: var(--cream); padding: 6px 10px; border-radius: 999px; background: #FC3B7F1A; border: 1px solid #FC3B7F4D; color: #B0124D; }
.ob-grid { align-self: stretch; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.ob-pick { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 14px 40px 14px 14px; text-align: left; border: 1px solid var(--hair); border-radius: 16px; background: var(--glass); cursor: pointer; font: inherit; color: inherit; transition: border-color .14s, box-shadow .14s; }
.ob-pick:hover { border-color: #22212438; }
.ob-pick[aria-pressed=true] { border-color: var(--pink); box-shadow: 0 0 0 1px #FC3B7F66, 0 10px 24px #FC3B7F1F; }
.ob-pick img { width: 40px; height: 40px; flex: none; border-radius: 50%; }
.ob-pick strong { display: block; font-size: 13px; font-weight: 800; margin: 2px 0 3px; }
.ob-pick span { display: block; font-size: 12px; font-weight: 550; line-height: 1.5; color: var(--secondary); }
.ob-pick i { position: absolute; top: 14px; right: 14px; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--control); display: grid; place-items: center; }
.ob-pick[aria-pressed=true] i { border-color: var(--pink); }
.ob-pick[aria-pressed=true] i::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--pink); }

/* 3. empresa: o formulário e a prévia, como "Criar workspace" */
.ob-split { align-self: stretch; display: grid; grid-template-columns: 1fr 330px; gap: 22px; align-items: start; }
.ob-col { display: flex; flex-direction: column; min-width: 0; }
.ob-box { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--glass); }
.ob-box p { flex-basis: 100%; margin: 6px 0 0; font-size: 11px; font-weight: 550; color: var(--secondary); }
.ob-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ob-preview { overflow: hidden; }
.ob-preview-head { display: flex; align-items: center; gap: 13px; padding: 18px; border-bottom: 1px solid var(--line); }
.ob-tile { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--surface-soft); border: 1px solid var(--hair); overflow: hidden; font: 700 20px/1 var(--pixel); color: var(--cream); }
.ob-tile img { width: 100%; height: 100%; object-fit: cover; }
.ob-preview-head strong { display: block; font-size: 15px; font-weight: 800; overflow-wrap: anywhere; }
.ob-preview-head span { display: block; font-size: 10.5px; font-weight: 600; color: var(--secondary); margin-top: 3px; }
.ob-preview-body { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.ob-preview-body p { margin: 0; font-size: 12px; font-weight: 550; line-height: 1.6; color: var(--secondary); }
.ob-row-card { display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--recess); }
.ob-row-card img { width: 36px; height: 36px; border-radius: 50%; flex: none; }
.ob-row-card strong { display: block; font-size: 12.5px; font-weight: 800; }
.ob-row-card span { display: block; font-size: 10.5px; font-weight: 600; color: var(--secondary); margin-top: 2px; }
.ob-team-row { display: flex; }
.ob-team-row img { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; margin-left: -7px; }
.ob-team-row img:first-child { margin-left: 0; }

/* 4. seu perfil: o palco com o personagem e a Luna, e as escolhas */
.ob-profile { align-self: stretch; display: grid; grid-template-columns: 270px 1fr; gap: 22px; align-items: start; margin-top: -9px; }
.ob-stage-col { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.ob-stage { width: 100%; box-sizing: border-box; padding: 22px 0; display: flex; flex-direction: column; align-items: center; gap: 14px; border-radius: 24px; box-shadow: 0 18px 22px #1b2a5a29; }
.ob-px { image-rendering: pixelated; image-rendering: crisp-edges; display: block; }
.ob-walk { position: relative; display: flex; align-items: flex-end; gap: 19.5px; padding-bottom: 6.5px; }
.ob-walk [data-me] { width: 104px; height: 156px; position: relative; }
.ob-luna { width: 64.5px; height: 96.7px; position: relative; }
.ob-floor { position: absolute; left: -31px; bottom: -1px; width: 166px; height: 14px; border-radius: 50%; background: #00000024; }
.ob-turns { display: flex; gap: 10px; }
.ob-turns canvas { width: 40px; height: 60px; }
.ob-nick { height: 26px; padding: 0 12px; display: flex; align-items: center; border-radius: 999px; background: #00000038; font-size: 13px; font-weight: 800; color: var(--cream); max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ob-nick.is-empty { color: #22212466; }
.ob-note { margin: 0; padding: 0 8px; text-align: center; font-size: 11px; font-weight: 600; line-height: 1.55; color: var(--soft-ink); }
.ob-look { display: flex; flex-direction: column; gap: 11px; padding-bottom: 12px; }
.ob-look-row { min-height: 32px; display: flex; align-items: center; gap: 12px; }
.ob-look-row > span { width: 72px; flex: none; font-size: 11px; font-weight: 750; }
.ob-look-row > div { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ob-chip { height: 30px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--line); background: none; font: 750 11px/1 var(--sans); color: var(--soft-ink); cursor: pointer; }
.ob-chip[aria-pressed=true] { border-color: var(--pink); background: var(--surface-soft); color: var(--cream); }
.ob-swatches { display: flex; flex-wrap: wrap; gap: 5px; }
.ob-swatches.is-dense { gap: 3px; }
.ob-swatch { padding: 2.5px; border-radius: 50%; border: 2px solid transparent; background: none; cursor: pointer; display: grid; }
.ob-swatch i { width: 12px; height: 12px; border-radius: 50%; border: 1px solid #0000001F; }
.ob-swatches.is-dense .ob-swatch i { width: 9px; height: 9px; }
.ob-swatch[aria-pressed=true] { border-color: var(--pink); }
.ob-select { position: relative; width: 150px; flex: none; }
.ob-select select { appearance: none; -webkit-appearance: none; width: 100%; height: 35px; padding: 0 30px 0 10px; border-radius: 10px; border: 1px solid var(--control); background: var(--recess); color: var(--cream); font: 600 12px/1 var(--sans); cursor: pointer; outline: none; }
.ob-select select:focus { border-color: var(--pink); }
.ob-select .ic { position: absolute; right: 10px; top: 50%; width: 12px; height: 12px; translate: 0 -50%; pointer-events: none; }

/* 5. pronto */
.ob-cats-team img { width: 58px; height: 58px; }
.ob-cats-team img.is-lead { width: 80px; height: 80px; }
.ob-cats-team.is-working img { animation: ob-hop 1.4s ease-in-out infinite; }
.ob-cats-team.is-working img:nth-child(2) { animation-delay: .12s; }
.ob-cats-team.is-working img:nth-child(3) { animation-delay: .24s; }
.ob-cats-team.is-working img:nth-child(4) { animation-delay: .36s; }
.ob-cats-team.is-working img:nth-child(5) { animation-delay: .48s; }
@keyframes ob-hop { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-8px); } }
.ob-actions { margin-top: 28px; display: flex; gap: 10px; }
.ob-actions:empty { display: none; }
@media (prefers-reduced-motion: reduce) { .ob-cats-team.is-working img { animation: none; } }

/* telas estreitas: uma coluna, as etapas só com o número */
@media (max-width: 860px) {
  .ob-top { grid-template-columns: 1fr auto; padding: 16px 18px 0; }
  .ob-steps { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
  .ob-split, .ob-profile { grid-template-columns: 1fr; }
  .ob-stage-col { max-width: 300px; justify-self: center; width: 100%; }
}
@media (max-width: 620px) {
  .ob-steps li { padding: 0 10px; font-size: 0; gap: 0; }
  .ob-steps li.is-now { font-size: 12px; gap: 7px; padding: 0 13px 0 10px; }
  .ob-main { padding: 28px 18px 120px; }
  .ob-title { font-size: 26px; }
  .ob-title-xl { font-size: 32px; }
  .ob-inline { flex-direction: column; }
  .ob-grid { grid-template-columns: 1fr; }
  .ob-foot { padding: 14px 16px 18px; }
  .ob-look-row { flex-wrap: wrap; }
  .ob-look-row > span { width: 100%; }
}
