/* GARIMPADA DO CLAYTON — página de links (tema escuro, cores da logo). Sem fontes externas. */
:root {
  --fundo: #0a1020; --fundo2: #0d1730; --cartao: #111a2e; --cartao2: #17223a; --linha: #263657;
  --texto: #eef2f8; --suave: #a9b6cc; --azul: #2f7bff; --azul2: #1b4fd1; --ouro: #f5b301; --ouro2: #ffd24a;
  --verde: #25d366; --vermelho: #ff6b6b; --escuro: #0a1020;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--texto); font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: radial-gradient(ellipse at top, #16306b 0%, var(--fundo2) 45%, var(--fundo) 100%) fixed, var(--fundo);
  min-height: 100vh;
}
a { color: var(--ouro2); }
:focus-visible { outline: 3px solid var(--ouro2); outline-offset: 3px; border-radius: 8px; }
.pular { position: absolute; left: -999px; top: 8px; background: var(--ouro); color: var(--escuro); padding: 8px 12px; border-radius: 8px; z-index: 9; font-weight: 700; }
.pular:focus { left: 8px; }

.pagina { max-width: 560px; margin: 0 auto; padding: 28px 16px calc(28px + env(safe-area-inset-bottom)); }

/* ---------- perfil ---------- */
.perfil { text-align: center; display: grid; justify-items: center; gap: 6px; }
.logo { width: 132px; height: 132px; border-radius: 50%; border: 3px solid var(--ouro); box-shadow: 0 0 0 4px rgba(245, 179, 1, .18), 0 8px 30px rgba(47, 123, 255, .45); background: var(--cartao); object-fit: cover; }
h1 { font-size: 1.35rem; letter-spacing: .08em; margin: 8px 0 0; font-weight: 800; }
.frase { margin: 0; color: var(--suave); max-width: 40ch; }
.redes { list-style: none; display: flex; gap: 10px; padding: 0; margin: 6px 0 0; }
.redes a { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 50%; background: var(--cartao2); border: 1px solid var(--linha); color: var(--texto); }
.redes a:hover { border-color: var(--ouro); color: var(--ouro2); }
.redes svg { width: 22px; height: 22px; }

/* ---------- botões de links ---------- */
.botoes { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.botao {
  display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 12px 18px; border-radius: 16px;
  background: linear-gradient(135deg, var(--azul), var(--azul2)); color: #fff; text-decoration: none; font-weight: 700; font-size: 1.05rem;
  border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 4px 16px rgba(0, 0, 0, .3); transition: transform .15s ease, box-shadow .15s ease;
}
.botao:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(47, 123, 255, .35); }
.botao .icone { font-size: 1.45rem; width: 1.8rem; text-align: center; flex: none; }
.botao .icone.marca { width: 38px; height: 38px; border-radius: 50%; background: #fff; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); }
.botao .icone.marca img { width: 24px; height: 24px; display: block; }
.botao .texto { flex: 1; text-align: center; padding-right: 38px; }
.botao.destaque { background: linear-gradient(135deg, var(--ouro2), var(--ouro)); color: var(--escuro); }

/* ---------- promoções ---------- */
.promocoes { margin-top: 34px; }
.promocoes:focus { outline: none; }
h2 { font-size: 1.2rem; text-align: center; margin: 0 0 4px; }
.aviso-preco { text-align: center; color: var(--suave); font-size: .8rem; margin: 0 0 12px; }
.carrossel { position: relative; }
.trilho { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 4px 2px 10px; scrollbar-width: none; overscroll-behavior-x: contain; }
.trilho::-webkit-scrollbar { display: none; }
.oferta {
  flex: 0 0 86%; scroll-snap-align: center; background: var(--cartao); border: 1px solid var(--linha); border-radius: 18px; overflow: hidden;
  display: flex; flex-direction: column;
}
@media (min-width: 520px) { .oferta { flex-basis: 70%; } }
.oferta .foto { position: relative; background: #fff; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; }
.oferta .foto img { width: 100%; height: 100%; object-fit: contain; }
.oferta .sem-foto { color: #5a6b8c; font-size: 3rem; }
.selo { position: absolute; top: 10px; left: 10px; background: var(--vermelho); color: #fff; font-weight: 800; padding: 4px 10px; border-radius: 999px; font-size: .95rem; }
.loja { position: absolute; top: 10px; right: 10px; background: rgba(10, 16, 32, .85); color: #fff; font-weight: 600; padding: 4px 10px; border-radius: 999px; font-size: .78rem; }
.oferta .corpo { padding: 14px; display: grid; gap: 6px; flex: 1; align-content: start; }
.oferta h3 { font-size: 1rem; margin: 0; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.de { color: var(--suave); font-size: .9rem; margin: 0; }
.de s { color: var(--suave); }
.por { font-size: 1.6rem; font-weight: 800; color: var(--ouro2); margin: 0; }
.cupom { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .9rem; margin: 0; }
.cupom code { background: var(--cartao2); border: 1px dashed var(--ouro); color: var(--ouro2); padding: 3px 8px; border-radius: 8px; font-weight: 700; font-family: ui-monospace, Consolas, monospace; }
.cupom button { background: none; border: 1px solid var(--linha); color: var(--texto); border-radius: 8px; padding: 4px 10px; font: inherit; font-size: .8rem; cursor: pointer; min-height: 32px; }
.visto { color: var(--suave); font-size: .78rem; margin: 0; }
.ver { margin: 4px 14px 14px; justify-content: center; min-height: 50px; }
.ver .texto { padding: 0; }

.controles { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 6px; }
.seta { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--linha); background: var(--cartao2); color: var(--texto); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.bolinhas { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; max-width: 70%; }
.bolinhas button { width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.bolinhas button::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--linha); transition: background .2s, transform .2s; }
.bolinhas button[aria-current="true"]::before { background: var(--ouro); transform: scale(1.25); }

.vazio { text-align: center; background: var(--cartao); border: 1px solid var(--linha); border-radius: 18px; padding: 20px 16px; display: grid; gap: 12px; }
.vazio p { margin: 0; color: var(--suave); }
.vazio .botao .texto { padding: 0; }
.vazio .botao { justify-content: center; }

.rodape { margin-top: 36px; text-align: center; color: var(--suave); font-size: .78rem; display: grid; gap: 6px; }
.rodape p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  .trilho { scroll-behavior: auto; }
  .botao, .bolinhas button::before { transition: none; }
  .botao:hover { transform: none; }
}
