/* Site do IdlePoke: mesma identidade do jogo (tema Bolsa HG/SS, paleta Grafite, fonte pixel). Só CSS, sem imagem de interface. */
@font-face { font-family: 'Idlepoke Pixel'; src: url('/assets/fonts/idlepoke-pixel.ttf') format('truetype'); font-display: swap; }

:root {
  --px: 'Idlepoke Pixel', 'Courier New', monospace;
  --bg: #1c2026; --bg2: #23282f;
  --panel: #3c4149; --panel-d: #2a2e35; --card: #4a5059; --in: #4d535c;
  --dot: #a9b1bc; --ink: #eef1f4; --ink2: #b9c2cc; --frame: #16181d;
  --band: linear-gradient(180deg, #a9b6be 0 2px, #8796a0 2px, #6f7f89 55%, #5b6a74); --band-edge: #2b353c;
  --blue-hi: #8aa2ff; --blue: #5573ea; --blue-lo: #3550c8; --blue-edge: #1a2370;
  --red: #e0262c; --gold: #f2cb4f; --teal: #17929a;
  --dots-h: repeating-linear-gradient(90deg, var(--dot) 0 2px, transparent 2px 5px);
  --r: 10px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; color: var(--ink); font: 16px/1.55 system-ui, "Segoe UI", Roboto, sans-serif;
  background:
    radial-gradient(1200px 600px at 75% -10%, #2f3a4a 0, transparent 60%),
    radial-gradient(900px 500px at -10% 30%, #2a2433 0, transparent 60%),
    var(--bg);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: #9cc4ff; }
.muted { color: var(--ink2); } .small { font-size: 14px; }
[hidden] { display: none !important; }

/* ---------- peças do tema ---------- */
.win {
  background: var(--panel); border: 2px solid var(--frame); border-radius: var(--r);
  box-shadow: inset 0 0 0 2px var(--in), 0 3px 0 rgba(0,0,0,.28), 0 10px 24px rgba(0,0,0,.35);
  overflow: hidden;
}
.band {
  background: var(--band); border-bottom: 2px solid var(--band-edge);
  font-family: var(--px); font-size: 18px; line-height: 1.2; padding: 6px 12px; color: var(--ink);
  text-shadow: 2px 2px 0 rgba(0,0,0,.5); letter-spacing: .5px;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  font-family: var(--px); font-size: 18px; line-height: 1; text-decoration: none; color: #fff;
  padding: 10px 18px; border: 2px solid var(--blue-edge); border-radius: 8px;
  background: linear-gradient(180deg, var(--blue-hi) 0 2px, var(--blue) 2px 50%, var(--blue-lo) 50%);
  text-shadow: 1px 1px 0 var(--blue-edge); box-shadow: 0 3px 0 rgba(0,0,0,.35);
  transition: transform .08s, filter .15s;
}
.btn:hover { filter: brightness(1.1); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0,0,0,.35); }
.btn:focus-visible { outline: none; border-color: var(--red); box-shadow: 0 0 0 2px var(--red); }
.btn.ghost { background: var(--card); border-color: var(--frame); text-shadow: 1px 1px 0 #000; }
.btn.play { background: linear-gradient(180deg, #ffb77a 0 2px, #f0782e 2px 50%, #d2561a 50%); border-color: #5a1e05; text-shadow: 1px 1px 0 #5a1e05; }

/* ---------- botão Jogar: o mais chamativo da página ---------- */
.tri { display: inline-block; width: 0; height: 0; border-style: solid; border-width: .45em 0 .45em .7em; border-color: transparent transparent transparent #fff; filter: drop-shadow(1px 1px 0 #5a1e05); flex: none; }
.top-play { font-size: 17px; padding: 8px 16px; box-shadow: 0 3px 0 rgba(0,0,0,.35), 0 0 0 0 rgba(255,140,60,.6); animation: play-glow 2.4s ease-in-out infinite; }
.btn.mega {
  position: relative; overflow: hidden; isolation: isolate;
  font-size: clamp(26px, 3.2vw, 34px); padding: 18px 38px 18px 32px; gap: 14px; border-radius: 12px; border-width: 3px;
  letter-spacing: 1px; text-transform: uppercase;
  box-shadow: 0 5px 0 #5a1e05, 0 0 0 0 rgba(255,140,60,.55), 0 10px 30px rgba(240,120,46,.35);
  animation: play-glow 2.4s ease-in-out infinite;
}
.btn.mega .tri { animation: play-nudge 1.2s ease-in-out infinite; }
/* brilho que passa pelo botão */
.btn.mega::after {
  content: ""; position: absolute; inset: -20% auto -20% -40%; width: 30%; z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-20deg); animation: play-shine 3.2s ease-in-out infinite;
}
.btn.mega:hover { filter: brightness(1.12); transform: translateY(-2px); }
.btn.mega:active { transform: translateY(3px); box-shadow: 0 2px 0 #5a1e05; }
.btn.play:focus-visible { border-color: #fff; box-shadow: 0 0 0 3px var(--red); }
@keyframes play-glow {
  0%, 100% { box-shadow: 0 5px 0 #5a1e05, 0 0 0 0 rgba(255,140,60,.55), 0 10px 30px rgba(240,120,46,.35); }
  50% { box-shadow: 0 5px 0 #5a1e05, 0 0 0 10px rgba(255,140,60,0), 0 10px 40px rgba(240,120,46,.6); }
}
@keyframes play-nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(4px); } }
@keyframes play-shine { 0%, 55% { left: -40%; } 100% { left: 130%; } }
.top-play { animation-name: play-glow-sm; }
@keyframes play-glow-sm {
  0%, 100% { box-shadow: 0 3px 0 rgba(0,0,0,.35), 0 0 0 0 rgba(255,140,60,.55); }
  50% { box-shadow: 0 3px 0 rgba(0,0,0,.35), 0 0 0 6px rgba(255,140,60,0); }
}
.cta.play-cta { flex-direction: column; align-items: flex-start; gap: 12px; }
.cta.play-cta.center { align-items: center; }
.play-sub { margin: 0; color: var(--ink2); font-size: 15px; }
.play-sub a, .linkish { color: #ffc08a; font-weight: 600; }
.linkish { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-decoration: underline; }
.login-why { margin: 0; text-align: center; }
/* celular: o Jogar fica preso embaixo depois que o botão do topo sai da tela */
.sticky-play { display: none; }
@media (max-width: 640px) {
  .sticky-play {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, transparent, rgba(20,23,28,.92) 35%);
    transform: translateY(110%); transition: transform .25s;
  }
  .sticky-play.on { transform: none; }
  .sticky-play .btn.mega { width: 100%; font-size: 24px; padding: 14px; }
  body { padding-bottom: 84px; }
  .cta.play-cta { align-items: stretch; }
  .play-cta .btn.mega { width: 100%; }
  .top-play { font-size: 15px; padding: 7px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .btn.mega, .top-play, .btn.mega .tri, .btn.mega::after { animation: none; }
}
.btn.small { font-size: 15px; padding: 7px 12px; }
.btn.big { font-size: 21px; padding: 13px 22px; }
.btn.full { width: 100%; }
.btn[disabled] { filter: grayscale(.7) brightness(.8); cursor: wait; }

.sec-title {
  font-family: var(--px); font-weight: normal; font-size: clamp(26px, 4vw, 36px); line-height: 1.1;
  text-align: center; margin: 0 0 28px; text-shadow: 3px 3px 0 rgba(0,0,0,.5);
}
.sec-title::after { content: ""; display: block; width: 120px; height: 2px; margin: 12px auto 0; background: var(--dots-h); }
.sec-title.left { text-align: left; } .sec-title.left::after { margin-left: 0; }

/* ---------- topo ---------- */
.top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px;
  padding: 10px max(16px, calc((100vw - 1180px) / 2)); background: rgba(28,32,38,.88);
  backdrop-filter: blur(8px); border-bottom: 2px solid var(--frame);
  box-shadow: 0 1px 0 #3a4048;
}
.brand img { display: block; height: 52px; width: auto; filter: drop-shadow(0 2px 4px rgba(0,0,0,.5)); }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--px); font-size: 24px; color: var(--ink); text-decoration: none; text-shadow: 2px 2px 0 rgba(0,0,0,.5); }
.ball { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--frame); background: linear-gradient(180deg, var(--red) 0 44%, var(--frame) 44% 56%, #f4f5f7 56%); position: relative; flex: none; }
.ball::after { content: ""; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -5px 0 0 -5px; border-radius: 50%; background: #f4f5f7; border: 2px solid var(--frame); }
.top-nav { display: flex; gap: 18px; margin-left: 12px; }
.top-nav a { color: var(--ink2); text-decoration: none; font-family: var(--px); font-size: 16px; }
.top-nav a:hover { color: var(--ink); }
.top-acc { margin-left: auto; display: flex; align-items: center; gap: 8px; min-width: 0; }
.who { color: var(--ink2); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }

main, .foot { width: min(1180px, 100% - 32px); margin: 0 auto; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: center; padding: 56px 0 40px; }
.kicker { font-family: var(--px); color: var(--gold); margin: 0 0 12px; font-size: 16px; letter-spacing: .5px; }
.hero h1 { font-family: var(--px); font-weight: normal; font-size: clamp(34px, 5vw, 54px); line-height: 1.08; margin: 0 0 18px; text-shadow: 3px 3px 0 rgba(0,0,0,.55); }
.hl { color: #ffb15a; }
.lead { color: var(--ink2); font-size: 18px; margin: 0 0 26px; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.hero-shot { margin: 0; transform: rotate(.6deg); }
.hero-logo { display: block; width: 100%; max-width: 420px; height: auto; margin: 0 0 14px; filter: drop-shadow(0 6px 14px rgba(0,0,0,.55)); }
.shot { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.shot img { width: 100%; height: auto; }
button.shot.win { padding: 0; }
button.shot.win:focus-visible { outline: none; border-color: var(--red); }

/* ---------- números ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 8px 0 72px; }
.stat {
  background: var(--panel-d); border: 2px dotted var(--dot); border-radius: var(--r); padding: 14px 16px; text-align: center;
}
.stat b { display: block; font-family: var(--px); font-weight: normal; font-size: 38px; line-height: 1; color: var(--gold); text-shadow: 2px 2px 0 rgba(0,0,0,.5); }
.stat span { color: var(--ink2); font-size: 14px; }

/* ---------- recursos ---------- */
.features { display: grid; gap: 64px; margin-bottom: 80px; }
.feat { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: center; }
.feat.rev .feat-text { order: 2; }
.feat-text p { color: var(--ink2); margin: 0 0 12px; }
.feat-text ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.feat-text li { position: relative; padding-left: 20px; color: var(--ink); }
.feat-text li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 8px; height: 8px; border-radius: 2px; background: var(--c, #6ec0f0); box-shadow: 0 0 0 1px var(--frame), inset 0 0 0 1px #fff; }

.tag {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px;
  font-family: var(--px); font-weight: normal; font-size: clamp(24px, 3vw, 30px); line-height: 1.1;
  text-shadow: 2px 2px 0 rgba(0,0,0,.5);
}
.tag::before { content: ""; width: 18px; height: 18px; border-radius: 5px; background: var(--c); box-shadow: inset 0 0 0 2px #fff, 0 0 0 2px var(--frame); flex: none; }
.feat-media { display: grid; gap: 14px; }
.feat-media.two { grid-template-columns: 1fr 1fr; align-items: start; }
.feat-media.badges { grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 26px; background: var(--panel); border: 2px solid var(--frame); border-radius: var(--r); box-shadow: inset 0 0 0 2px var(--in), 0 10px 24px rgba(0,0,0,.35); }
.badges img { width: 100%; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(2px 3px 0 rgba(0,0,0,.45)); transition: transform .2s; }
.badges img:hover { transform: scale(1.12) rotate(-6deg); }
.careers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.careers figure { margin: 0; position: relative; border: 2px solid var(--frame); border-radius: 8px; overflow: hidden; box-shadow: inset 0 0 0 2px var(--in); }
.careers img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.careers figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 4px 8px; font-family: var(--px); font-size: 15px; background: linear-gradient(transparent, rgba(0,0,0,.75)); text-shadow: 1px 1px 0 #000; }

/* ---------- como começar ---------- */
.how { margin-bottom: 80px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps li { padding: 22px 20px 20px; position: relative; }
.steps h3 { font-family: var(--px); font-weight: normal; font-size: 22px; margin: 6px 0 8px; }
.steps p { margin: 0; color: var(--ink2); }
.n { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 8px; font-family: var(--px); font-size: 22px; color: #fff; background: linear-gradient(180deg, var(--blue-hi) 0 2px, var(--blue) 2px 50%, var(--blue-lo) 50%); border: 2px solid var(--blue-edge); }

/* ---------- celular ---------- */
.mobile { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 40px; align-items: center; margin-bottom: 80px; }
.mobile p { color: var(--ink2); }

/* ---------- chamada final e janela da conta ---------- */
.final { margin-bottom: 72px; }
.final-box { padding: 36px 20px; text-align: center; background: var(--panel) radial-gradient(600px 200px at 50% 0, #4b5462 0, transparent 70%); }
.final-box p { margin: 0 0 22px; }
.cta.center { justify-content: center; }
.auth-dlg { padding: 0; border: 0; background: none; width: min(420px, calc(100vw - 32px)); max-height: calc(100dvh - 24px); overflow-y: auto; color: var(--ink); }
.auth-dlg::backdrop { background: rgba(10,12,16,.78); }
.auth { position: relative; }
.auth-dlg .x-form { position: absolute; right: 6px; top: 4px; z-index: 1; }
.auth-dlg .x { padding: 4px 9px; font-size: 14px; }
.auth { width: 100%; }
.auth-body { padding: 18px; display: grid; gap: 14px; background: var(--dots-h) top / 100% 2px no-repeat; }
.auth-body p { margin: 0; }
.auth-form { display: grid; gap: 12px; }
.field { display: grid; gap: 4px; }
.field span { font-family: var(--px); font-size: 15px; color: var(--ink2); }
.input { width: 100%; font: inherit; padding: 10px 12px; border-radius: 8px; border: 2px solid var(--frame); background: #e9ecef; color: #202228; }
.input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue-hi); }
.hint { font-size: 13px; color: var(--ink2); }
.msg { min-height: 1.2em; color: #ff8a8a; font-size: 14px; }
.msg.ok { color: #7fe09a; }
.switch { text-align: center; font-size: 14px; color: var(--ink2); }
.reg-intro { margin: 0; }
.field label { font-family: var(--px); font-size: 15px; color: var(--ink2); }
.fmsg { margin: 0; font-size: 13px; color: var(--ink2); min-height: 1.3em; }
.field.bad .input { border-color: #c0303a; box-shadow: 0 0 0 2px #ff8a8a55; }
.field.bad .fmsg { color: #ff8a8a; }
.field.good .input { border-color: #2f8a4a; }
.field.good .fmsg { color: #7fe09a; }
.fmsg button { font: inherit; color: #9cc4ff; background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }
.rules { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--ink2); }
.rules li::before { content: "○ "; }
.rules li.ok { color: #7fe09a; } .rules li.ok::before { content: "✓ "; }
.field.bad .rules li:not(.ok) { color: #ff8a8a; }
.check-mail { text-align: center; }
.check-mail h3 { font-family: var(--px); font-weight: normal; font-size: 24px; margin: 0; }
.envelope { width: 64px; height: 44px; margin: 4px auto 0; position: relative; border: 3px solid var(--frame); border-radius: 6px; background: #f4f5f7; overflow: hidden; }
.envelope::before { content: ""; position: absolute; left: 50%; top: -34px; width: 48px; height: 48px; margin-left: -24px; transform: rotate(45deg); border: 3px solid var(--frame); background: #dfe4ea; }
.envelope::after { content: ""; position: absolute; right: 4px; bottom: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--red); border: 2px solid var(--frame); }

/* ---------- rodapé ---------- */
.foot { border-top: 2px solid #2f353d; padding: 24px 0 40px; color: #8a939e; font-size: 13px; text-align: center; }
.foot a { color: var(--ink2); }

/* ---------- imagem ampliada ---------- */
.zoom { padding: 0; border: 2px solid var(--frame); border-radius: var(--r); background: var(--panel); color: var(--ink); max-width: min(1400px, 96vw); max-height: 94vh; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.zoom::backdrop { background: rgba(10,12,16,.82); }
.zoom img { max-height: calc(94vh - 60px); width: auto; margin: 0 auto; }
.zoom .cap { margin: 0; padding: 10px 52px 12px 14px; font-size: 14px; color: var(--ink2); }
.zoom form { position: absolute; right: 8px; bottom: 6px; }

/* ---------- telas menores ---------- */
@media (max-width: 900px) {
  .hero, .feat, .mobile { grid-template-columns: 1fr; gap: 24px; }
  .feat.rev .feat-text { order: 0; }
  .hero { padding-top: 32px; }
  .hero-shot { transform: none; }
  .stats { grid-template-columns: repeat(2, 1fr); margin-bottom: 48px; }
  .steps { grid-template-columns: 1fr; }
  .features { gap: 48px; }
}
@media (max-width: 640px) {
  .top { gap: 10px; }
  .top-nav { display: none; }
  .brand { font-size: 20px; }
  .brand img { height: 44px; }
  .who { display: none; }
  .top-acc .btn.ghost { display: none; }
  .feat-media.two { grid-template-columns: 1fr; }
  .feat-media.badges { padding: 16px; gap: 12px; }
  .lead { font-size: 16px; }
  .stat b { font-size: 30px; }
  .cta .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
.careers.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 560px) { .careers.four { grid-template-columns: repeat(2, 1fr); } }
