/* Site de entrada do Truco Animado: o céu azul da home do app, cartões brancos e botões de cor chapada com a sombra sólida
   embaixo (sem contorno). Sem JavaScript; as animações são só CSS e param com "reduzir movimento". */

@font-face {
  font-family: 'Lilita One';
  src: url('/assets/fonts/lilita-one.woff') format('woff');
  font-display: swap;
}

:root {
  --sky1: #3fb0ff;
  --sky2: #1e7bf0;
  --sky3: #1554c8;
  --ink: #0b2559;
  --ink2: #4a5d82;
  --soft: #e6f1ff;
  --white-sh: #a9c9f5;
  --gold: #ffc531;
  --gold-sh: #c98a00;
  --green: #34d399;
  --green-sh: #0f9d6b;
  --green-ink: #0b3b24;
  --dark: #0f3e99;
  --dark-sh: #0a2a6b;
  --red: #ff4d5e;
  --display: 'Lilita One', 'Arial Rounded MT Bold', system-ui, sans-serif;
  --body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --radius: 22px;
  --gutter: 16px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--sky3);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--sky3); text-underline-offset: 3px; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.12; margin: 0 0 .5em; letter-spacing: .2px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; border-radius: 10px; z-index: 10; }
.skip:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 8px; }

/* ---------- céu: o mesmo fundo da home do app (azul, brilho e o T andando em diagonal) ---------- */

.sky {
  position: relative;
  isolation: isolate;
  color: #fff;
  background: linear-gradient(180deg, #2a95ee 0%, var(--sky2) 40%, var(--sky3) 100%);
  overflow: hidden;
  overflow: clip;
}

.sky::before {
  content: '';
  position: absolute;
  inset: -20%;
  z-index: -1;
  background: url('/assets/img/home-t.webp') 0 0 / clamp(84px, 18vw, 140px) repeat;
  opacity: .08;
  animation: t-walk 28s linear infinite;
}

.sky::after {
  content: '';
  position: absolute;
  left: 50%;
  top: -30%;
  width: 120%;
  aspect-ratio: 1;
  transform: translateX(-50%);
  z-index: -1;
  background: radial-gradient(closest-side, rgba(170, 230, 255, .35), rgba(170, 230, 255, 0));
}

@keyframes t-walk {
  to { transform: translate(calc(clamp(84px, 18vw, 140px) * -3), clamp(84px, 18vw, 140px)); }
}

/* ---------- topo ---------- */

.top { position: sticky; top: 0; z-index: 5; background: rgba(21, 84, 200, .92); backdrop-filter: blur(8px); }
.top-row { display: flex; align-items: center; gap: 18px; min-height: 72px; }
.brand img { width: 56px; height: auto; }
.menu { display: flex; gap: 4px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.menu::-webkit-scrollbar { display: none; }
.menu a {
  color: #fff;
  text-decoration: none;
  font-family: var(--display);
  font-size: 17px;
  padding: 8px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.menu a:hover { background: rgba(255, 255, 255, .14); }
.menu a[aria-current='page'] { background: #fff; color: var(--sky3); }

.crumb { display: flex; gap: 8px; padding-top: 14px; padding-bottom: 14px; font-size: 14px; color: var(--soft); background: transparent; }
.crumb a { color: #fff; }

/* ---------- botões: cor chapada + sombra sólida embaixo ---------- */

.btn {
  --face: var(--gold);
  --shadow: var(--gold-sh);
  --text: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 26px;
  border-radius: 18px;
  background: var(--face);
  color: var(--text);
  box-shadow: 0 6px 0 var(--shadow);
  font-family: var(--display);
  font-size: 21px;
  text-decoration: none;
  transform: translateY(0);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.btn:hover { filter: brightness(1.05); transform: translateY(-2px); box-shadow: 0 8px 0 var(--shadow); }
.btn:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--shadow); }
.btn-green { --face: var(--green); --shadow: var(--green-sh); --text: var(--green-ink); }
.btn-white { --face: #fff; --shadow: var(--white-sh); --text: var(--sky3); }
.btn-dark { --face: var(--dark); --shadow: var(--dark-sh); --text: #fff; }
.btn-small { min-height: 44px; padding: 0 18px; font-size: 18px; border-radius: 14px; box-shadow: 0 4px 0 var(--shadow); }
.btn img { width: 26px; height: 26px; }
.store { flex-direction: column; align-items: flex-start; gap: 0; line-height: 1.05; padding: 8px 22px; }
.store small { font-family: var(--body); font-size: 12px; font-weight: 600; opacity: .8; }

/* ---------- herói ---------- */

.hero { padding: 36px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 32px; align-items: center; }
.hero h1 { font-size: clamp(38px, 6vw, 64px); text-shadow: 0 4px 0 rgba(11, 37, 89, .25); }
.hero h1 em { font-style: normal; color: var(--gold); text-shadow: 0 3px 0 rgba(11, 37, 89, .45); }
.hero-lead { font-size: clamp(18px, 2.2vw, 21px); max-width: 34em; color: var(--soft); margin: 0 0 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px 16px; margin-bottom: 18px; }
.hero-note { font-size: 14px; color: var(--soft); margin: 10px 0 0; }
.hero-logo { width: clamp(150px, 22vw, 210px); margin-bottom: 8px; filter: drop-shadow(0 8px 0 rgba(11, 37, 89, .22)); animation: bob 5s ease-in-out infinite; }

/* A mesa: a arte do jogo, as manilhas em leque e os truqueiros em volta. */
.table-art { position: relative; width: min(100%, 520px); margin: 0 auto; aspect-ratio: 720 / 595; }
.table-art .table { position: absolute; inset: 0; width: 100%; filter: drop-shadow(0 18px 24px rgba(11, 37, 89, .35)); }
.table-art .fan { position: absolute; left: 50%; top: 30%; width: 64%; height: 42%; transform: translateX(-50%); }
.table-art .fan img {
  position: absolute;
  bottom: 0;
  left: calc(50% + var(--x));
  width: 31%;
  border-radius: 9%;
  box-shadow: 0 6px 14px rgba(0, 0, 0, .28);
  transform-origin: 50% 120%;
  transform: translateX(-50%) rotate(var(--r));
  animation: deal .9s cubic-bezier(.2, .9, .3, 1.2) both;
  animation-delay: var(--d);
}
.table-art .seat {
  position: absolute;
  width: 21%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 6px 0 var(--white-sh);
  animation: bob 4.6s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
.table-art .seat img { width: 78%; height: auto; }
.seat-1 { left: -2%; top: 2%; }
.seat-2 { right: -2%; top: 2%; --d: -1.2s; }
.seat-3 { left: -4%; bottom: 14%; --d: -2.1s; }
.seat-4 { right: -4%; bottom: 14%; --d: -3.3s; }
.truco-badge {
  position: absolute;
  left: 50%;
  top: 2%;
  transform: translateX(-50%) rotate(-6deg);
  font-family: var(--display);
  font-size: clamp(26px, 4.4vw, 40px);
  color: #fff;
  background: var(--red);
  padding: 2px 18px 4px;
  border-radius: 14px;
  box-shadow: 0 5px 0 #b3202f;
  animation: shout 3.2s ease-in-out infinite;
}

@keyframes bob { 50% { transform: translateY(-8px); } }
@keyframes deal { from { opacity: 0; transform: translate(-50%, 60%) rotate(0deg) scale(.6); } }
@keyframes shout { 0%, 70%, 100% { transform: translateX(-50%) rotate(-6deg) scale(1); } 80% { transform: translateX(-50%) rotate(-3deg) scale(1.12); } }

/* ---------- seções claras ---------- */

.band { background: #fff; padding: 64px 0; }
.band-soft { background: var(--soft); }
.band h2 { font-size: clamp(30px, 4.4vw, 44px); color: var(--sky3); }
.band-lead { font-size: 19px; color: var(--ink2); max-width: 46em; margin: 0 0 28px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  box-shadow: 0 6px 0 var(--white-sh);
}
.band:not(.band-soft) .card { background: var(--soft); box-shadow: 0 6px 0 #c8dcf7; }
.card h3 { font-size: 23px; color: var(--ink); margin-bottom: .3em; }
.card p { margin: 0; color: var(--ink2); }
.card .ico { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: var(--sky2); color: #fff; font-family: var(--display); font-size: 24px; margin-bottom: 12px; }
.card a.more { display: inline-block; margin-top: 10px; font-weight: 700; }

.modes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.mode {
  position: relative;
  display: block;
  padding: 20px;
  border-radius: var(--radius);
  color: #fff;
  text-decoration: none;
  background: var(--sky2);
  box-shadow: 0 6px 0 var(--sky3);
  transition: transform .15s ease;
}
.mode:hover { transform: translateY(-4px) rotate(-1deg); }
.mode h3 { font-size: 24px; margin-bottom: .2em; }
.mode p { margin: 0; font-size: 15px; color: var(--soft); }
.mode-mineiro { background: #c2620a; box-shadow: 0 6px 0 #8a4204; }
.mode-gaucho { background: #0f7a45; box-shadow: 0 6px 0 #08502c; }
.mode-argentino { background: #8b5cf6; box-shadow: 0 6px 0 #5b2fc2; }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 0; margin: 0 0 24px; list-style: none; }
.steps li { counter-increment: step; background: var(--soft); border-radius: var(--radius); padding: 20px; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--gold); box-shadow: 0 4px 0 var(--gold-sh); font-family: var(--display); font-size: 22px; margin-bottom: 10px; }
.steps strong { display: block; font-family: var(--display); font-weight: 400; font-size: 21px; }

/* As cartas em linha (a ordem de força, as manilhas). */
.card-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 18px 0 8px; padding: 0; list-style: none; }
.card-row li { width: 96px; text-align: center; font-size: 14px; font-weight: 700; color: var(--ink2); }
.card-row img { width: 96px; border-radius: 10px; box-shadow: 0 5px 0 #c8dcf7; margin-bottom: 8px; transition: transform .15s ease; }
.card-row li:hover img { transform: translateY(-6px) rotate(-3deg); }

.faq { background: #fff; border-radius: 18px; box-shadow: 0 5px 0 var(--white-sh); margin-bottom: 14px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 54px 18px 20px; font-family: var(--display); font-size: 20px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--soft); color: var(--sky3); transition: transform .2s ease; }
.faq[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq > div { padding: 0 20px 18px; color: var(--ink2); }

.cta { text-align: center; padding: 64px 0; }
.cta h2 { font-size: clamp(32px, 5vw, 50px); }
.cta p { color: var(--soft); font-size: 19px; margin: 0 auto 24px; max-width: 34em; }
.cta .hero-actions { justify-content: center; }

/* ---------- páginas de texto (regras) ---------- */

.page-hero { padding: 28px 0 48px; }
.page-hero h1 { font-size: clamp(34px, 5.2vw, 54px); }
.page-hero p { color: var(--soft); font-size: 19px; max-width: 40em; margin: 0 0 22px; }

.article { background: #fff; padding: 48px 0 64px; }
.article-grid { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: start; }
.toc { position: sticky; top: 92px; background: var(--soft); border-radius: var(--radius); padding: 18px 18px 14px; font-size: 15px; }
.toc strong { font-family: var(--display); font-weight: 400; font-size: 19px; display: block; margin-bottom: 6px; }
.toc ol { margin: 0; padding-left: 20px; }
.toc li { margin: 4px 0; }
.prose { max-width: 46em; }
.prose h2 { font-size: clamp(27px, 3.6vw, 36px); color: var(--sky3); margin-top: 1.6em; scroll-margin-top: 90px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 23px; margin-top: 1.3em; }
.prose table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 14px 0 22px; font-size: 16px; background: var(--soft); border-radius: 16px; overflow: hidden; }
.prose th, .prose td { text-align: left; padding: 10px 14px; }
.prose th { background: var(--sky2); color: #fff; font-weight: 700; }
.prose tr:nth-child(even) td { background: #d8e8fd; }
.tip { background: #fff7dc; border-radius: 16px; padding: 14px 18px; margin: 18px 0; box-shadow: 0 4px 0 #f3d98a; }
.tip strong { font-family: var(--display); font-weight: 400; }
.play-box { margin: 34px 0 6px; padding: 24px; border-radius: var(--radius); color: #fff; background: linear-gradient(135deg, var(--sky2), var(--sky3)); box-shadow: 0 6px 0 var(--dark-sh); }
.play-box h2 { color: #fff; margin-top: 0; }
.play-box p { color: var(--soft); }
.play-box .hero-actions { margin: 0; }
.related { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* ---------- rodapé ---------- */

.foot { background: var(--ink); color: #c9d6ef; padding: 48px 0 26px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.foot h2 { font-size: 19px; color: #fff; }
.foot a { display: block; color: #c9d6ef; text-decoration: none; padding: 3px 0; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot p a { display: inline; }
.foot img { width: 84px; margin-bottom: 10px; }
.foot-note { margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13px; color: #8ea3c9; }

.lost { text-align: center; padding: 80px 0; }
.lost h1 { font-size: clamp(36px, 6vw, 60px); }
.lost p { color: var(--soft); }
.lost .hero-logo { margin: 0 auto 8px; }
.lost .hero-actions { justify-content: center; }

/* ---------- telas menores ---------- */

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero-logo { margin: 0 auto 8px; }
  .hero-lead { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .cards { grid-template-columns: 1fr 1fr; }
  .modes, .steps { grid-template-columns: 1fr 1fr; }
  .article-grid { grid-template-columns: 1fr; }
  .toc { position: static; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .top-row { gap: 10px; min-height: 64px; }
  .brand img { width: 46px; }
  .top-play { display: none; }
  .menu a { font-size: 16px; padding: 7px 10px; }
  .hero { padding: 20px 0 52px; }
  .cards, .modes, .steps { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .hero-actions .btn { flex: 1 1 100%; }
  .card-row { gap: 8px; }
  .card-row li { width: calc(20% - 6.4px); font-size: 12px; line-height: 1.25; }
  .card-row img { width: 100%; border-radius: 6px; margin-bottom: 5px; }
  .band { padding: 48px 0; }
  .foot-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
