/* 7Rise — site público (index, guia, termos, privacidade). Tema pixel do jogo. */
:root {
  --ink: #10251a; --paper: #fbf8ea; --paper-2: #f1edd8; --gold: #f0b93a; --gold-hi: #ffe17a;
  --green: #1d5a33; --green-2: #0d2b17; --grass: #3c8a37;
  --head: 'Tiny5', system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--body); color: var(--ink); line-height: 1.55;
  background-color: #e9f0d8;
  background-image:
    linear-gradient(45deg, rgba(16,37,26,.035) 25%, transparent 25%, transparent 75%, rgba(16,37,26,.035) 75%),
    linear-gradient(45deg, rgba(16,37,26,.035) 25%, transparent 25%, transparent 75%, rgba(16,37,26,.035) 75%);
  background-size: 16px 16px; background-position: 0 0, 8px 8px;
}
img { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); font-weight: 400; line-height: 1.15; letter-spacing: .5px; }

/* ---- cabeçalho ---- */
.site-header {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 12px; padding: 10px 16px;
  background: linear-gradient(180deg, #1d5a33, #123d22); border-bottom: 3px solid var(--ink); box-shadow: 0 3px 0 var(--gold);
}
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: #fff; }
.brand img { width: 40px; height: 40px; image-rendering: pixelated; }
.brand b { font-family: var(--head); font-size: 20px; font-weight: 400; text-shadow: 0 2px 0 var(--ink); }
.site-nav { display: flex; gap: 4px; margin-left: auto; }
.site-nav a { padding: 6px 10px; font-family: var(--head); font-size: 13px; color: #e3f7e6; text-decoration: none; border-radius: 6px; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--gold-hi); background: rgba(0,0,0,.2); }
@media (max-width: 640px) { .site-nav a.hide-sm { display: none; } }

/* ---- botões ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; text-decoration: none; cursor: pointer;
  font-family: var(--head); font-size: 17px; letter-spacing: 1px; color: var(--ink);
  background: linear-gradient(180deg, #ffe98f 0%, #f0b93a 60%, #d99a12 100%); border: 3px solid var(--ink); border-radius: 10px;
  box-shadow: inset 0 3px 0 rgba(255,255,255,.55), inset 0 -4px 0 #c98a0a, 0 4px 0 var(--ink);
}
.btn:active { transform: translateY(3px); box-shadow: inset 0 3px 0 rgba(255,255,255,.55), 0 1px 0 var(--ink); }
.btn--ghost { background: var(--paper); box-shadow: 0 4px 0 var(--ink); }
.btn--sm { padding: 7px 12px; font-size: 13px; }

/* ---- hero ---- */
.hero {
  position: relative; overflow: hidden; padding: 56px 16px 0; text-align: center; color: #fff;
  background: radial-gradient(ellipse at 50% 0%, #2c7a45 0%, #164a2c 55%, #0d2b17 100%); border-bottom: 3px solid var(--ink);
}
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto; height: 120%; opacity: .14; pointer-events: none;
  background: repeating-conic-gradient(from 0deg at 50% 100%, var(--gold-hi) 0 6deg, transparent 6deg 18deg);
}
.hero-logo { position: relative; width: min(260px, 64vw); filter: drop-shadow(0 10px 20px rgba(0,0,0,.45)); }
.hero h1 { position: relative; margin: 14px auto 8px; max-width: 760px; font-size: clamp(30px, 6vw, 52px); text-shadow: 0 3px 0 var(--ink); }
.hero h1 em { display: block; font-style: normal; color: var(--gold-hi); }
.hero p { position: relative; max-width: 560px; margin: 0 auto 22px; font-size: 17px; opacity: .92; }
.hero-actions { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 30px; }
.kicker { position: relative; display: inline-block; margin-bottom: 6px; padding: 4px 10px; font-family: var(--head); font-size: 12px; letter-spacing: 1px; color: var(--ink); background: var(--gold-hi); border: 2px solid var(--ink); border-radius: 6px; }

/* relvado com o plantel (sprites reais do jogo, pintados pelo site.js) */
.hero-pitch {
  position: relative; height: 170px; margin: 0 -16px; overflow: hidden; border-top: 3px solid var(--ink);
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 60px, rgba(0,0,0,.04) 60px 120px), url('../css/images/field/pitch-turf-1.png') 0 0 / 90px 43px repeat, var(--grass);
  image-rendering: pixelated;
}
.hero-pitch::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; margin-left: -1px; background: rgba(255,255,255,.5); }
.hero-squad { position: absolute; inset: 0; display: flex; justify-content: center; align-items: flex-end; gap: clamp(0px, 2vw, 24px); padding-bottom: 6px; }
.px-player { position: relative; width: 96px; aspect-ratio: 1 / 1; overflow: hidden; image-rendering: pixelated; }
.px-player-inner { position: absolute; top: -40%; left: -130%; width: 360%; height: 180%; }
.px-player .l { position: absolute; inset: 0; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-size: 500% 100%; mask-size: 500% 100%; animation: pxIdle .85s steps(5) infinite; }
.px-player .l--img { -webkit-mask-image: none !important; mask-image: none !important; background-repeat: no-repeat; background-size: 500% 100%; animation: pxIdleBg .85s steps(5) infinite; }
@keyframes pxIdle { to { -webkit-mask-position: 125% 0; mask-position: 125% 0; } }
@keyframes pxIdleBg { to { background-position: 125% 0; } }
.px-player.flip .px-player-inner { transform: scaleX(-1); }
@media (max-width: 520px) { .px-player { width: 64px; } .hero-pitch { height: 120px; } }
@media (prefers-reduced-motion: reduce) { .px-player .l, .px-player .l--img { animation: none; } }

/* ---- secções ---- */
.section { max-width: 1040px; margin: 0 auto; padding: 56px 16px 0; }
.section h2 { margin: 0 0 6px; font-size: clamp(24px, 4vw, 34px); text-align: center; }
.section .lead { max-width: 640px; margin: 0 auto 24px; text-align: center; opacity: .8; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.card {
  padding: 16px; background: var(--paper); border: 3px solid var(--ink); border-radius: 12px; box-shadow: 0 4px 0 var(--ink);
}
.card .ico { width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; margin-bottom: 8px; background: radial-gradient(circle at 50% 35%, #fff1b0, var(--gold)); border: 2px solid var(--ink); border-radius: 12px; }
.card .ico img { width: 42px; height: 42px; object-fit: contain; }
.card h3 { margin: 0 0 4px; font-size: 18px; }
.card p { margin: 0; font-size: 14px; opacity: .85; }
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.step { position: relative; padding: 16px 16px 16px 64px; background: var(--paper); border: 3px solid var(--ink); border-radius: 12px; box-shadow: 0 4px 0 var(--ink); }
.step::before { counter-increment: s; content: counter(s); position: absolute; left: 14px; top: 14px; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; font-family: var(--head); font-size: 20px; background: var(--gold); border: 2px solid var(--ink); border-radius: 8px; }
.step b { font-family: var(--head); font-weight: 400; font-size: 16px; }
.step p { margin: 2px 0 0; font-size: 14px; opacity: .85; }

.cta {
  margin: 56px auto 0; max-width: 1040px; padding: 32px 16px; text-align: center; color: #fff;
  background: radial-gradient(ellipse at 50% 0%, #3a64a8 0%, #1d3a6e 60%, #142a52 100%); border: 3px solid var(--ink); border-radius: 16px; box-shadow: 0 5px 0 var(--ink);
}
.cta h2 { margin: 0 0 14px; font-size: clamp(22px, 4vw, 32px); text-shadow: 0 3px 0 var(--ink); }
.disclaimer { margin: 16px auto 0; max-width: 560px; font-size: 12px; opacity: .8; }

/* ---- documentos (guia, termos, privacidade) ---- */
.doc { max-width: 820px; margin: 0 auto; padding: 32px 16px 0; }
.doc-head { padding: 22px 18px; margin-bottom: 18px; text-align: center; color: #fff; background: radial-gradient(ellipse at 50% 0%, #2c7a45, #0d2b17); border: 3px solid var(--ink); border-radius: 14px; box-shadow: 0 4px 0 var(--ink); }
.doc-head h1 { margin: 0 0 4px; font-size: clamp(26px, 5vw, 38px); text-shadow: 0 3px 0 var(--ink); }
.doc-head p { margin: 0; opacity: .85; font-size: 14px; }
.toc { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; }
.toc a { padding: 5px 10px; font-family: var(--head); font-size: 12px; text-decoration: none; background: var(--paper); border: 2px solid var(--ink); border-radius: 7px; box-shadow: 0 2px 0 var(--ink); }
.doc section { margin-bottom: 14px; padding: 18px; background: var(--paper); border: 3px solid var(--ink); border-radius: 12px; box-shadow: 0 4px 0 var(--ink); scroll-margin-top: 80px; }
.doc section h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 22px; }
.doc section h2 img { width: 36px; height: 36px; object-fit: contain; }
.doc section h3 { margin: 14px 0 4px; font-size: 16px; }
.doc p, .doc li { font-size: 15px; }
.doc ul { padding-left: 20px; }
.doc table { width: 100%; border-collapse: collapse; margin: 8px 0; font-size: 14px; }
.doc th, .doc td { padding: 7px 8px; text-align: left; border-bottom: 2px solid var(--paper-2); }
.doc th { font-family: var(--head); font-weight: 400; background: var(--paper-2); }
.note { padding: 10px 12px; font-size: 14px; background: #fff3c4; border: 2px solid var(--ink); border-radius: 8px; }

/* ---- rodapé ---- */
.footer { margin-top: 56px; padding: 24px 16px; text-align: center; color: #e3f7e6; background: var(--green-2); border-top: 3px solid var(--ink); box-shadow: 0 -3px 0 var(--gold); }
.footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin-bottom: 10px; }
.footer a { font-family: var(--head); font-size: 13px; color: var(--gold-hi); text-decoration: none; }
.footer small { opacity: .7; }
