/* ifGifts — "Para empresas" (js/empresa.js, docs/empresas.md): seção da landing, passo do criador,
 * entrada de quem joga, marca na tela do jogo, "Meus presentes" e painel da campanha. */

/* ------------------------------ landing: #empresas ------------------------------ */
.lp-biz { background: linear-gradient(180deg, #0b1140 0%, #121a5c 100%); color: #f3f1ff; overflow: hidden; }
.lp-biz .lp-kicker { color: #8fb1ff; }
.lp-biz .lp-h2 em { color: #8fd3ff; }
.lp-biz .lp-lead { color: rgba(243,241,255,.78); opacity: 1; }
.lp-biz-grid { display: grid; gap: clamp(28px, 4vw, 56px); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 960px) { .lp-biz-grid { grid-template-columns: 1.05fr .95fr; } }
.lp-biz-steps { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 14px; counter-reset: biz; }
.lp-biz-steps li { counter-increment: biz; display: grid; grid-template-columns: 44px 1fr; gap: 4px 14px; align-items: start; }
.lp-biz-steps li::before {
  content: counter(biz); grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px;
  font: 800 20px/1 var(--lp-display); color: #0b1140; background: #8fd3ff;
}
.lp-biz-steps b { font: 800 19px/1.25 var(--lp-display); letter-spacing: -.01em; }
.lp-biz-steps span { color: rgba(243,241,255,.74); line-height: 1.5; }
.lp-biz-card {
  background: rgba(255,255,255,.06); border-radius: 28px; padding: clamp(20px, 3vw, 32px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 30px 60px -40px rgba(0,0,0,.8);
}
.lp-biz-card h3 { margin: 0 0 14px; font: 800 22px/1.2 var(--lp-display); letter-spacing: -.01em; }
.lp-biz-list { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; }
.lp-biz-list li { display: flex; gap: 10px; line-height: 1.45; color: rgba(243,241,255,.86); }
.lp-biz-list li::before { content: '✓'; flex: none; font-weight: 900; color: #7ff0b0; }
.lp-biz-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.lp-biz-ctas .lp-btn { height: 54px; }
.lp-biz-free { margin: 12px 0 0; font-size: 14px; color: rgba(243,241,255,.62); }
.biz-contact { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); font-size: 16px; line-height: 1.5; color: rgba(243,241,255,.8); }
.biz-contact b { color: #fff; font-weight: 800; user-select: all; overflow-wrap: anywhere; }

/* ------------------------------ criador: chave e passo ------------------------------ */
.biz-switch {
  display: flex; align-items: center; gap: 14px; width: 100%; margin: 16px 0 0; padding: 14px 16px; border: 0; border-radius: 18px; cursor: pointer;
  text-align: left; color: var(--wz-ink, #fff); background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.14);
  font-family: var(--body); -webkit-tap-highlight-color: transparent;
}
.biz-switch[aria-pressed="true"] { background: rgba(143,177,255,.16); box-shadow: inset 0 0 0 2px #8fb1ff; }
.biz-switch-e { font-size: 26px; line-height: 1; }
.biz-switch-t { flex: 1; display: grid; gap: 2px; min-width: 0; }
.biz-switch-t b { font-size: 16px; font-weight: 800; }
.biz-switch-t small { font-size: 13px; color: var(--wz-mute, rgba(255,255,255,.7)); line-height: 1.35; }
.biz-switch-ui { flex: none; width: 46px; height: 28px; border-radius: 99px; background: rgba(255,255,255,.18); position: relative; transition: background-color .2s; }
.biz-switch-ui::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s; }
.biz-switch[aria-pressed="true"] .biz-switch-ui { background: #5b84ff; }
.biz-switch[aria-pressed="true"] .biz-switch-ui::after { transform: translateX(18px); }

.biz-logo { display: flex; align-items: center; gap: 16px; margin: 0 0 18px; }
.biz-logo-pv {
  flex: none; width: 92px; height: 92px; border-radius: 20px; background: #fff; display: grid; place-items: center; overflow: hidden;
  box-shadow: 0 0 0 1.5px rgba(255,255,255,.2);
}
.biz-logo-pv img { max-width: 80px; max-height: 80px; object-fit: contain; }
.biz-logo-ph { font-size: 38px; opacity: .55; }
.biz-logo-side { min-width: 0; flex: 1; }
.biz-logo-side .wz-label { margin-bottom: 8px; }
.biz-logo-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.biz-logo-st { margin-top: 6px; font-size: 13px; }
.biz-color { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; }
.biz-color .wz-label { margin: 0; flex: 1; }
.wz .biz-color input[type="color"] {
  width: 56px; min-height: 44px; height: 44px; padding: 4px; border-radius: 12px; cursor: pointer; background: rgba(255,255,255,.08);
}
.biz-color-hex { font: 800 14px/1 var(--body); letter-spacing: .06em; color: var(--wz-mute, #ccc); min-width: 70px; }
.wz .biz-teams textarea { min-height: 96px; font-size: 18px; }
.biz-opt {
  display: flex; align-items: flex-start; gap: 12px; margin: 0 0 12px; font: 700 16px/1.35 var(--body); cursor: pointer;
  text-transform: none; letter-spacing: 0; color: var(--wz-ink, #fff);
}
.biz-opt input[type="checkbox"] {
  flex: none; width: 22px; height: 22px; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 6px; box-shadow: none;
  accent-color: #5b84ff; cursor: pointer;
}
.biz-note { margin: 16px 0 6px; padding: 12px 14px; border-radius: 14px; background: rgba(143,177,255,.12); font-size: 14px; line-height: 1.45; color: var(--wz-ink, #fff); }
.biz-note b { overflow-wrap: anywhere; }
.biz-lgpd { margin-top: 6px; }

/* ------------------------------ quem joga: entrada ------------------------------ */
.biz-entry { z-index: 30; background: radial-gradient(circle at 50% 30%, rgba(40,40,110,.9), rgba(6,6,24,.97)); }
.biz-sheet { position: relative; border-top: 8px solid var(--brand, #2b59ff); padding-top: 22px; }
.biz-entry-lang { display: flex; justify-content: flex-end; min-height: 8px; margin: -6px -4px 4px 0; }
.biz-badge {
  width: 112px; height: 112px; margin: 0 auto 10px; border-radius: 26px; background: #fff; display: grid; place-items: center; overflow: hidden;
  box-shadow: 0 0 0 4px var(--brand, #2b59ff), 0 16px 34px -14px rgba(0,0,0,.45);
}
.biz-badge img { max-width: 92px; max-height: 92px; object-fit: contain; }
.biz-badge-ph { width: 100%; height: 100%; display: grid; place-items: center; font: 900 52px/1 var(--display); color: var(--brand-ink, #fff); background: var(--brand, #2b59ff); }
.biz-entry .kicker { color: var(--ink) !important; opacity: .7; }
.biz-entry-d { font-size: 15px !important; }
.biz-form { display: grid; gap: 12px; text-align: left; margin: 6px 0 0; }
.biz-f { display: grid; gap: 6px; font-weight: 800; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: #6a6080; }
.biz-f input, .biz-f select {
  width: 100%; min-height: 54px; padding: 12px 16px; border-radius: 16px; border: 2px solid #e6dccb; background: #fff; color: var(--ink);
  font: 700 19px/1.2 var(--body); text-transform: none; letter-spacing: 0;
}
.biz-f input:focus, .biz-f select:focus { outline: none; border-color: var(--brand, #2b59ff); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand, #2b59ff) 22%, transparent); }
.biz-form .err { margin: 0 !important; min-height: 0; color: #c21a35 !important; font-weight: 800; font-size: 15px !important; }
.biz-form .err:empty { display: none; }
.biz-go { width: 100%; background: var(--brand, #2b59ff) !important; color: var(--brand-ink, #fff) !important; box-shadow: 0 5px 0 color-mix(in srgb, var(--brand, #2b59ff) 70%, #000), 0 12px 30px -8px color-mix(in srgb, var(--brand, #2b59ff) 60%, transparent) !important; }
.biz-lgpd-p { margin: 14px 0 0 !important; font-size: 12.5px !important; line-height: 1.45 !important; color: #8a7f9e !important; }

/* tela de entrada do jogo com a marca */
#player.biz #intro .sheet { border-top: 8px solid var(--brand); }
#player.biz #btnStart { background: var(--brand); color: var(--brand-ink); box-shadow: 0 5px 0 color-mix(in srgb, var(--brand) 70%, #000), 0 12px 30px -8px color-mix(in srgb, var(--brand) 60%, transparent); }
.biz-intro-logo { display: block; max-width: 132px; max-height: 84px; margin: 0 auto 6px; object-fit: contain; }

/* ------------------------------ meus presentes ------------------------------ */
.gift-item.is-biz { border-color: #c9d6ff; }
.biz-tag { background: #e3eaff; color: #1f3fa8; }
.biz-facts { margin-top: 4px; font-weight: 800; color: #1f3fa8; }
.biz-full { color: var(--red2); }
.chip.biz-open { background: #1f3fa8; border-color: #1f3fa8; color: #fff; }

/* ------------------------------ painel da campanha ------------------------------ */
.biz-dash { z-index: 40; align-items: start; grid-template-columns: minmax(0, 1fr); justify-items: center; }
.biz-dsheet { width: min(880px, 100%); min-width: 0; max-width: 100%; text-align: left; position: relative; padding: 24px clamp(16px, 3vw, 30px) 26px; border-top: 8px solid var(--brand, #2b59ff); }
.biz-dhead { display: flex; align-items: center; gap: 14px; margin: 0 40px 16px 0; }
.biz-dhead h2 { margin: 0 !important; font-size: clamp(20px, 3vw, 26px) !important; }
.biz-dsub { margin: 2px 0 0 !important; font-size: 14px !important; }
.biz-dlogo { flex: none; width: 56px; height: 56px; border-radius: 14px; object-fit: contain; background: #fff; box-shadow: 0 0 0 2px #eee4d2; }
.biz-dlogo-ph { display: grid; place-items: center; font: 900 26px/1 var(--display); background: var(--brand, #2b59ff); color: var(--brand-ink, #fff); }
.biz-dload { padding: 30px 0; text-align: center; }
.biz-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 0 0 12px; }
.biz-tile { background: #fff; border-radius: 16px; padding: 12px 14px; box-shadow: 0 0 0 2px #efe5d3; display: grid; gap: 2px; }
.biz-tile b { font: 800 26px/1.1 var(--display); color: var(--ink); }
.biz-tile span { font-size: 13px; font-weight: 800; color: #6a6080; }
.biz-plan { margin: 0 0 14px !important; padding: 10px 14px; border-radius: 14px; background: #eef2ff; color: #1f3fa8 !important; font-size: 14px !important; font-weight: 700; }
.biz-plan.is-full { background: #ffe8ea; color: #a3122a !important; }
.biz-plan b { overflow-wrap: anywhere; }
.biz-dacts { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; }
.biz-dacts .btn { font-size: 15px; padding: 11px 16px; text-decoration: none; }
.biz-csv { background: var(--brand, #2b59ff) !important; color: var(--brand-ink, #fff) !important; box-shadow: 0 4px 0 color-mix(in srgb, var(--brand, #2b59ff) 70%, #000) !important; }
.biz-dsec { margin: 0 0 18px; }
.biz-dsec h3 { margin: 0 0 8px; font: 700 17px/1.2 var(--display); }
.biz-board { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.biz-board li { display: grid; grid-template-columns: 36px minmax(0, auto) 1fr; gap: 10px; align-items: baseline; padding: 8px 12px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 2px #efe5d3; }
.biz-board li span:last-child { color: #6a6080; font-size: 14px; font-weight: 700; text-align: right; }
.biz-rank { font-size: 18px; text-align: center; font-weight: 900; }
.biz-twrap { overflow-x: auto; border-radius: 14px; box-shadow: 0 0 0 2px #efe5d3; background: #fff; }
.biz-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.biz-table th, .biz-table td { padding: 9px 12px; text-align: left; border-bottom: 1px solid #f1e8d8; white-space: nowrap; }
.biz-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: #6a6080; background: #faf5ec; }
.biz-table tr.won td:first-child { font-weight: 800; }
.biz-pn { max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.biz-empty { color: #6a6080; }
.biz-dlgpd { color: #8a7f9e !important; font-size: 13px !important; margin: 0 !important; }

@media (max-width: 480px) {
  .biz-board li { grid-template-columns: 30px 1fr; }
  .biz-board li span:last-child { grid-column: 2; text-align: left; }
}
