.historia .roteiro { margin-top: var(--respiro); }
.roteiro { position: relative; --passos: 5; }
html.js .roteiro { height: calc(var(--passos) * 75vh + 100vh); }
.roteiro-4 { --passos: 4; }
html.js .roteiro-fixo { position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); overflow: hidden; }
.roteiro-grade { height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: clamp(150px, 14vw, 200px); }

.roteiro-lado { max-width: 440px; }
.roteiro-progresso { display: grid; gap: 14px; max-width: 320px; }
.roteiro-contagem { font-size: var(--t-rotulo); font-weight: 500; color: var(--text-2); letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.roteiro-contagem b { font-size: var(--t-numero); font-weight: 300; line-height: 1; letter-spacing: var(--ls-destaque); color: var(--text); margin-right: 6px; }
.roteiro-trilho { position: relative; display: grid; grid-template-columns: repeat(var(--passos), minmax(0, 1fr)); align-items: center; height: 24px; }
.roteiro-trilho::before, .roteiro-trilho i { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; border-radius: 2px; background: var(--line); }
.roteiro-trilho i { background: var(--grad); transform-origin: left; transform: scaleX(var(--progresso, 0)); }
.roteiro-ponto { position: relative; z-index: 1; justify-self: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.roteiro-ponto::before, .roteiro-ponto::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; }
.roteiro-ponto::before { background: var(--bg); box-shadow: inset 0 0 0 2px var(--line); }
.alt .roteiro-ponto::before { background: var(--bg-2); }
.roteiro-ponto::after { background: var(--marca); transform: scale(0); transition: transform .3s var(--ease); }
.roteiro-ponto[data-estado="antes"]::after { transform: scale(1); }
.roteiro-ponto[data-estado="atual"]::after { transform: scale(1.3); box-shadow: 0 0 0 4px color-mix(in srgb, var(--marca) 24%, transparent); }

.roteiro-textos { display: grid; gap: var(--respiro); margin-top: clamp(22px, 4vh, 44px); }
html.js .roteiro-texto { grid-area: 1 / 1; opacity: 0; transform: translateY(18px); transition: opacity .45s var(--ease), transform .45s var(--ease); pointer-events: none; }
html.js .roteiro-texto[data-estado="antes"] { transform: translateY(-18px); }
html.js .roteiro-texto[data-estado="atual"] { opacity: 1; transform: none; pointer-events: auto; }
.roteiro-texto h3 { font-family: var(--display); font-weight: var(--peso-display); font-size: var(--t-h2); line-height: 1.04; letter-spacing: var(--ls-destaque); }
.roteiro-texto h3 em { font-style: italic; }
.roteiro-texto p { margin-top: 18px; font-size: var(--t-lead); line-height: 1.55; color: var(--text-2); }
.roteiro-texto p.eyebrow { margin: 0 0 14px; font-size: var(--t-rotulo); color: var(--ink); }
.roteiro-texto p strong { color: var(--text); font-weight: 600; }
.roteiro-selo { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; padding: 8px 14px; border-radius: 999px; font-size: var(--t-menor); font-weight: 500; color: var(--text); background: color-mix(in srgb, var(--marca) 12%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--marca) 28%, transparent); }
.roteiro-selo .icon { width: 16px; height: 16px; color: var(--ink); }

.roteiro-palco { --zoom: 1; --tela: calc(320px * var(--zoom)); position: relative; display: grid; grid-template-columns: auto auto; align-items: center; column-gap: 28px; }

.aparelho { position: relative; z-index: 1; zoom: var(--zoom); width: 320px; height: 668px; padding: 10px; border-radius: 54px; background: #0f0e0d; box-shadow: inset 0 0 0 2px #34302b, 0 0 0 1px rgba(255, 255, 255, .08), 0 60px 120px -40px rgba(20, 12, 4, .6), 0 24px 40px -24px rgba(20, 12, 4, .4); }
.aparelho-tela { position: relative; height: 100%; border-radius: 44px; overflow: hidden; background: #fff; color: #1b1814; font-size: var(--t-ui-titulo); line-height: 1.4; text-align: left; }
.aparelho-tela small { display: block; color: #7a7268; font-size: var(--t-ui); }
.app-status { position: absolute; z-index: 5; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; height: 46px; padding: 6px 30px 0 34px; font-size: var(--t-ui); color: #1b1814; }
.app-ilha { position: absolute; left: 50%; top: 11px; width: 92px; height: 27px; margin-left: -46px; border-radius: 20px; background: #0f0e0d; }
.app-sinais { display: flex; align-items: flex-end; gap: 2px; height: 11px; }
.app-sinais i { width: 3px; border-radius: 1px; background: currentColor; }
.app-sinais i:nth-child(1) { height: 4px; }
.app-sinais i:nth-child(2) { height: 6px; }
.app-sinais i:nth-child(3) { height: 8px; }
.app-sinais i:nth-child(4) { height: 11px; }
html.js .aparelho-tela:has(.app-story[data-estado="atual"]) .app-status, .app-bloqueio .app-status { color: #fff; }
.aparelho-tela::after { content: ""; position: absolute; z-index: 5; left: 50%; bottom: 8px; width: 120px; height: 5px; margin-left: -60px; border-radius: 3px; background: #1b1814; }
html.js .aparelho-tela:has(.app-story[data-estado="atual"])::after, .app-bloqueio::after { background: #fff; }

.app-tela { position: absolute; inset: 0; padding-top: 46px; background: #fff; }
html.js .app-tela { transform: translateX(100%); transition: transform .6s var(--ease), opacity .6s var(--ease); }
html.js .app-tela[data-estado="antes"] { transform: translateX(-30%); opacity: .3; }
html.js .app-tela[data-estado="atual"] { transform: none; opacity: 1; }

.app-story { padding-top: 0; color: #fff; background: linear-gradient(170deg, #d9b98f, #8a6a48 62%, #2c2016); }
.story-barras { position: absolute; top: 50px; left: 14px; right: 14px; display: flex; gap: 4px; }
.story-barras i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .4); }
.story-barras .feita { background: #fff; }
.story-barras .enchendo { background: linear-gradient(90deg, #fff 60%, rgba(255, 255, 255, .4) 60%); }
.story-perfil { position: absolute; top: 64px; left: 14px; display: flex; align-items: center; gap: 8px; font-size: var(--t-ui); }
.story-perfil .avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #1b1814; font-family: var(--display); font-size: var(--t-ui-titulo); }
.app-story .story-perfil small { color: rgba(255, 255, 255, .8); }
.story-peca { position: absolute; left: 50%; top: 110px; width: 230px; height: 290px; margin-left: -115px; }
.story-legenda { position: absolute; left: 20px; top: 404px; font-family: var(--display); font-size: var(--t-h3); line-height: 1; }
.app-story .story-legenda small { margin-top: 6px; font-family: var(--sans); color: rgba(255, 255, 255, .85); }
.story-produto { position: absolute; left: 12px; right: 12px; bottom: 14px; display: grid; grid-template-columns: 48px 1fr; gap: 10px 12px; align-items: center; padding: 12px; border-radius: 18px; background: #fff; color: #1b1814; font-size: var(--t-ui-titulo); }
.story-produto .thumb { width: 48px; height: 48px; }
.story-zap { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 8px; height: 42px; border-radius: 12px; background: #1a9d55; color: #fff; font-weight: 500; }
.story-zap .icon { width: 18px; height: 18px; }

.loja-topo { display: grid; grid-template-columns: 24px 1fr 24px; align-items: center; height: 48px; padding: 0 18px; border-bottom: 1px solid #efe9e1; }
.loja-topo .icon { width: 20px; height: 20px; }
.loja-topo b { text-align: center; font-family: var(--display); font-size: var(--t-ui-destaque); letter-spacing: .3em; padding-left: .3em; }
.loja-sacola { position: relative; }
.loja-sacola i { position: absolute; right: -6px; top: -5px; display: grid; place-items: center; min-width: 16px; height: 16px; border-radius: 8px; background: #f1592b; color: #fff; font-size: var(--t-ui-rotulo); font-style: normal; font-weight: 700; }
.loja-foto { display: grid; place-items: center; height: 236px; background: radial-gradient(120% 90% at 50% 20%, #f7f1e8, #e6dac7); }
.loja-foto svg { width: 60%; height: 88%; }
.loja-corpo { padding: 16px 18px; }
.loja-nome { font-weight: 500; }
.loja-preco { margin-top: 2px; font-size: var(--t-ui-destaque); font-weight: 700; }
.provador { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; padding: 10px 12px; border-radius: 12px; background: #fdf1ea; }
.provador span { display: flex; align-items: center; gap: 6px; color: #c63f16; font-weight: 500; }
.provador .icon { width: 16px; height: 16px; }
.grade { display: flex; gap: 6px; margin-top: 12px; }
.grade span { flex: 1; display: grid; place-items: center; height: 36px; border-radius: 10px; box-shadow: inset 0 0 0 1px #e4ddd4; font-weight: 500; color: #5c554d; }
.grade .ok { background: #1b1814; color: #fff; box-shadow: none; }
.botao-app { display: grid; place-items: center; height: 48px; margin-top: 14px; border-radius: 14px; background: #1b1814; color: #fff; font-weight: 500; }

.look-fotos { display: flex; align-items: center; gap: 8px; margin: 12px 0 4px; }
.look-fotos span { flex: 1; display: grid; place-items: center; height: 118px; border-radius: 14px; background: radial-gradient(120% 90% at 50% 20%, #f7f1e8, #e6dac7); }
.look-fotos svg { width: 72%; height: 82%; }
.look-fotos b { color: #b5ab9f; font-size: var(--t-ui-destaque); font-weight: 300; }
.linha { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; }
.linha + .linha { border-top: 1px solid #efe9e1; }
.check { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #f1592b; color: #fff; }
.check .icon { width: 13px; height: 13px; }
.aparelho-tela s { margin-right: 6px; color: #9a9188; font-size: var(--t-ui); }
.total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 6px; padding-top: 12px; border-top: 1.5px dashed #e4ddd4; }
.total b { font-size: var(--t-ui-destaque); font-weight: 700; }
.etapas { display: flex; gap: 6px; margin-bottom: 14px; }
.etapas i { flex: 1; height: 4px; border-radius: 4px; background: #efe9e1; }
.etapas .feita { background: #f1592b; }
.oferta { margin: 6px 0 2px; padding: 0 12px; border: 1.5px dashed #f1592b; border-radius: 14px; background: #fff7f2; }
.oferta p { padding-top: 10px; font-size: var(--t-ui-rotulo); font-weight: 600; letter-spacing: var(--ls-rotulo); text-transform: uppercase; color: #c63f16; }
.linha-simples { display: flex; justify-content: space-between; padding: 10px 0 4px; }
.gratis { color: #1f8f4e; font-weight: 600; }

.app-feito .loja-corpo { text-align: center; }
.app-feito .loja-corpo .etapas, .app-feito .linha-simples, .app-feito .total { text-align: left; }
.feito-selo { display: grid; place-items: center; width: 68px; height: 68px; margin: 18px auto 12px; border-radius: 50%; background: var(--grad); color: #fff; box-shadow: 0 0 0 10px #fdeee7; }
.feito-selo .icon { width: 32px; height: 32px; }
.feito-titulo { font-size: var(--t-ui-destaque); font-weight: 700; }
.feito-pecas { display: flex; justify-content: center; gap: 8px; margin: 18px 0 10px; }
.feito-pecas .thumb { width: 56px; height: 56px; }
.feito-aviso { display: flex; align-items: center; gap: 8px; margin-top: 16px; padding: 10px 12px; border-radius: 12px; background: #e9f8ef; color: #17663a; font-size: var(--t-ui); text-align: left; }
.feito-aviso .icon { width: 18px; height: 18px; }

.app-bloqueio { color: #fff; background: radial-gradient(120% 60% at 50% 0%, #ecd0ad, transparent 62%), linear-gradient(175deg, #b98a60, #5a3c26 58%, #22160e); }
.bloqueio-fundo { position: absolute; left: 50%; bottom: -40px; width: 340px; height: 420px; margin-left: -170px; opacity: .16; }
.bloqueio-hora { position: relative; display: none; flex-direction: column; align-items: center; padding-top: 58px; font-size: var(--t-numero); font-weight: 300; line-height: 1; }
html.js .bloqueio-hora { display: flex; }
.bloqueio-hora .icon { order: -2; width: 16px; height: 16px; margin-bottom: 10px; }
.app-bloqueio .bloqueio-hora small { order: -1; margin-bottom: 4px; color: #fff; font-size: var(--t-ui-titulo); font-weight: 500; }
.notificacoes { position: absolute; left: 10px; right: 10px; top: 56px; display: grid; gap: 8px; }
html.js .notificacoes { top: 246px; display: block; }
.notif { padding: 12px 14px; border-radius: 20px; background: rgba(255, 255, 255, .9); color: #1b1814; font-size: var(--t-ui); }
html.js .notif { position: absolute; top: 0; left: 0; right: 0; height: 150px; opacity: 0; transform: translateY(-28px) scale(.96); transform-origin: top center; transition: opacity .5s var(--ease), transform .6s var(--ease); }
.notif > * { transition: opacity .4s var(--ease); }
html.js .notif[data-estado="atual"] { z-index: 4; opacity: 1; transform: none; }
html.js .notif[data-estado="antes"] { z-index: calc(4 - var(--ordem, 1)); opacity: calc(1 - var(--ordem, 1) * .28); transform: translateY(calc(var(--ordem, 1) * -11px)) scale(calc(1 - var(--ordem, 1) * .05)); }
.notif[data-estado="antes"] > * { opacity: 0; }
.bloqueio-mais { position: absolute; left: 0; right: 0; top: 410px; text-align: center; font-size: var(--t-ui); color: rgba(255, 255, 255, .85); opacity: 0; transition: opacity .4s var(--ease); }
.app-bloqueio:has(.notif[data-estado="antes"]) .bloqueio-mais { opacity: 1; }
.notif-topo { display: flex; align-items: center; gap: 8px; }
.notif-topo b { flex: 1; font-weight: 600; }
.aparelho-tela .notif-topo small { color: #6f675e; }
.notif[data-estado="atual"] .antes, .notif:not([data-estado="atual"]) .agora { display: none; }
.notif-app { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: #1b1814; color: #fff; }
.notif-app.zap { background: #1a9d55; }
.notif-app .icon { width: 13px; height: 13px; }
.notif > p { margin-top: 6px; line-height: 1.35; }
.notif-extra .linha { margin-top: 4px; padding: 8px 0 0; }
.notif-botao { display: grid; place-items: center; height: 36px; margin-top: 10px; border-radius: 10px; background: #1b1814; color: #fff; font-weight: 500; }
.baixou { color: #1f8f4e; }
.notif-saldo { margin-top: 8px; font-size: var(--t-ui-destaque); font-weight: 700; line-height: 1.2; }
.aparelho-tela .notif-saldo small { font-weight: 400; }

.destaque { position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; border-radius: 18px; background: #fff; color: #1b1814; font-size: var(--t-ui-titulo); line-height: 1.35; white-space: nowrap; box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .5), 0 0 0 1.5px #f1592b; opacity: 0; transform: translateX(14px) scale(.96); transition: opacity .4s var(--ease), transform .4s var(--ease); pointer-events: none; }
.destaque[data-estado="atual"] { opacity: 1; transform: none; transition-delay: .35s; }
.destaque small { display: block; color: #7a7268; font-size: var(--t-ui); }
.bola { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--grad); color: #fff; font-size: var(--t-ui-destaque); font-weight: 700; flex: none; }
.bola .icon { width: 22px; height: 22px; }
.canto-esq-cima, .canto-esq, .canto-esq-baixo { right: calc(100% - 56px); }
.canto-esq-cima { top: 18%; }
.canto-esq { top: 46%; }
.canto-esq-baixo { bottom: 12%; }
.roteiro-palco:has(.placar) .destaque { right: auto; left: -184px; }

.placar { position: relative; z-index: 2; width: 260px; padding: 22px 22px 18px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow-lg); }
.placar-rotulo { font-size: var(--t-rotulo); font-weight: 600; letter-spacing: var(--ls-rotulo); text-transform: uppercase; color: var(--text-2); }
.placar-total { margin-top: 6px; font-size: var(--t-lead); color: var(--text-2); font-variant-numeric: tabular-nums; }
.placar-total b { font-size: var(--t-h2); font-weight: 300; line-height: 1.05; color: var(--text); }
.placar-linhas { margin: 14px 0 0; padding: 0; list-style: none; }
.placar-linhas li { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 10px; align-items: center; margin-inline: -10px; padding: 8px 10px; border-radius: 12px; font-size: var(--t-ui); line-height: 1.3; }
html.js .placar-linhas li { opacity: 0; transform: translateY(8px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
html.js .placar-linhas li[data-estado="antes"], html.js .placar-linhas li[data-estado="atual"] { opacity: 1; transform: none; }
.placar-linhas li[data-estado="atual"] { background: color-mix(in srgb, var(--marca) 10%, transparent); }
.placar-linhas small { display: block; color: var(--text-2); font-size: var(--t-ui-rotulo); }
.placar-linhas b { font-weight: 600; white-space: nowrap; }
.placar-linhas .thumb { width: 36px; height: 36px; }
.placar-icone { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: color-mix(in srgb, var(--marca) 14%, transparent); color: var(--ink); font-weight: 700; }
.placar-icone .icon { width: 18px; height: 18px; }
.placar-desconto { color: var(--ok); }
.placar-ganho { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); font-size: var(--t-ui); font-weight: 600; }
html.js .placar-ganho { opacity: 0; transform: translateY(8px); transition: opacity .4s var(--ease) .2s, transform .4s var(--ease) .2s; }
html.js .placar-ganho[data-estado="atual"] { opacity: 1; transform: none; }
.placar-ganho .icon { width: 18px; height: 18px; }

@media (max-height: 880px) {
  .roteiro-palco { --zoom: .9; }
}

@media (max-height: 780px) {
  .roteiro-palco { --zoom: .8; }
}

@media (max-height: 680px) {
  .roteiro-palco { --zoom: .7; }
}

@media (max-width: 1179px) {
  .roteiro-grade { column-gap: clamp(130px, 12vw, 160px); }
  .roteiro-palco { display: block; margin-right: clamp(90px, 11vw, 140px); }
  .roteiro-palco:has(.placar) .destaque { left: auto; right: calc(100% - 56px); }
  .placar { position: absolute; top: 9%; left: calc(var(--tela) - 64px); width: auto; padding: 12px 16px; border-radius: 16px; }
  .placar p { white-space: nowrap; }
  .placar-total b { font-size: var(--t-ui-destaque); font-weight: 600; }
  .placar-linhas, .placar-ganho, .placar-motivos { display: none; }
}

@media (max-width: 900px) {
  html.js .roteiro { height: calc(var(--passos) * 60svh + 100svh); }
  html.js .roteiro-fixo { height: calc(100svh - var(--header-h)); }
  .roteiro-grade { display: flex; flex-direction: column; align-items: stretch; padding-top: 16px; }
  .roteiro-lado { max-width: none; }
  .roteiro-progresso { display: flex; align-items: center; gap: 14px; max-width: none; }
  .roteiro-contagem b { font-size: var(--t-rotulo); font-weight: 600; margin-right: 2px; }
  .roteiro-trilho { flex: 1; }
  .roteiro-textos { margin-top: 10px; }
  .roteiro-texto h3 { font-size: var(--t-h3); line-height: 1.08; }
  .roteiro-texto p { margin-top: 8px; font-size: var(--t-menor); line-height: 1.45; }
  .roteiro-texto p.eyebrow { margin-bottom: 8px; }
  .roteiro-selo { display: none; }
  .roteiro-palco { --zoom: .8; align-self: center; margin: 20px 0 0; }
  .destaque { zoom: .8; }
  .canto-esq-cima, .canto-esq, .canto-esq-baixo, .roteiro-palco:has(.placar) .destaque { right: auto; left: calc(16px + (var(--tela) - 100vw) / 2); }
  .canto-esq-cima { top: 150px; }
  .canto-esq { top: 280px; bottom: auto; }
  .canto-esq-baixo { top: 400px; bottom: auto; }
  .placar { top: -14px; left: auto; right: -20px; padding: 8px 14px; }
  .placar-rotulo { font-size: var(--t-ui-rotulo); }
  .placar-total { margin-top: 2px; font-size: var(--t-ui); }
  .placar-total b { font-size: var(--t-ui-titulo); }
}

@media (max-width: 900px) and (max-height: 720px) {
  .roteiro-palco { --zoom: .7; margin-top: 14px; }
  .roteiro-texto p { font-size: var(--t-ui-titulo); }
}