:root {
  --green: #1d6114;
  --yellow: #f7ec1c;
  --ink: #111;
  --panel: #14202b;
  --up: #7dff4a;
  --red: #ff4a4a;
  --link: #3aa0ff;
  --blue: #2f7dd8;
  --redc: #d8342f;
  --purple: #8a3fc9;
  --orange: #f08a1c;
  --outline: 2px 0 #000, -2px 0 #000, 0 2px #000, 0 -2px #000, 2px 2px #000, -2px -2px #000, 2px -2px #000, -2px 2px #000;
  --pixel: 'Silkscreen', monospace;
  --body: 'Pixelify Sans', monospace;
  --barH: clamp(40px, 7.5vh, 60px);
  --fs: clamp(24px, 2.7vw, 42px);
  --fs-sm: clamp(18px, 1.7vw, 26px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; background: var(--green); }
body { font-family: var(--body); color: #fff; overflow-x: hidden; }
a { color: var(--yellow); text-decoration: none; }
a:hover { color: #fff; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
[hidden] { display: none !important; }

.up { color: var(--up); }
.red { color: var(--red); }
.dim { opacity: .7; }
.c-blue { background: var(--blue); }
.c-red { background: var(--redc); }
.c-purple { background: var(--purple); }
.c-orange { background: var(--orange); }
.dark { color: var(--ink); }

/* ---------- Hero / menu ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  overflow: hidden;
  background: #1f6b14 url('assets/bg.png') left center / cover no-repeat;
  user-select: none;
}
.scanlines {
  position: absolute; inset: 0; pointer-events: none; z-index: 5;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.08) 0 2px, transparent 2px 4px);
}
.ticker {
  position: absolute; top: 14px; right: 18px; z-index: 4;
  display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end;
  font-family: var(--pixel); font-size: 13px;
}
.chip {
  display: flex; gap: 8px; align-items: center; padding: 6px 10px;
  background: rgba(20,30,40,.62); border: 2px solid rgba(255,255,255,.2);
}
.chip b { color: var(--yellow); }

.menu {
  position: absolute; right: 0; top: 18%; width: 42%; z-index: 3;
}
.view { display: flex; flex-direction: column; gap: 5px; }
.bar {
  height: var(--barH); width: 100%;
  display: flex; align-items: center; padding-left: 38px;
  font-family: var(--pixel); font-weight: 700; font-size: var(--fs); letter-spacing: 1px;
  background: linear-gradient(90deg, rgba(55,65,78,0) 0, rgba(55,65,78,.55) 14%);
  text-shadow: var(--outline);
}
.bar.on {
  background: linear-gradient(90deg, transparent 0, var(--yellow) 14%);
  color: var(--ink);
  text-shadow: 2px 2px 0 rgba(255,255,255,.45);
}
.bar.title {
  background: linear-gradient(90deg, rgba(247,236,28,0) 0, var(--yellow) 12%);
  color: var(--ink); text-shadow: none; letter-spacing: 0;
}
.bar.sub { font-size: var(--fs-sm); letter-spacing: 0; }
.bar.sub:hover { color: var(--yellow); }
.panel {
  margin-left: 38px; padding: 18px 22px;
  background: rgba(18,26,34,.8); border-left: 4px solid var(--yellow);
}
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px 20px; }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat span { font-family: var(--pixel); font-size: 11px; opacity: .65; }
.stat b { font-size: 22px; }
.steps { display: flex; flex-direction: column; gap: 10px; font-weight: 700; font-size: 18px; }
.steps div { display: flex; gap: 12px; align-items: center; }
.steps i, .card i {
  font-style: normal; display: grid; place-items: center;
  font-family: var(--pixel); border: 2px solid #000;
}
.steps i { width: 28px; height: 28px; font-size: 13px; }

.key {
  padding: 4px 8px; background: #4a525c;
  border: 2px solid #1b1f24; border-bottom-width: 5px;
  font-family: var(--pixel); font-weight: 700;
}
.ca-corner {
  position: absolute; left: 18px; bottom: 16px; z-index: 4;
  display: flex; align-items: center; gap: 10px; max-width: calc(100% - 36px);
}
.ca-corner .key { flex: none; width: 30px; height: 28px; padding: 0; display: grid; place-items: center; font-size: 13px; }
.ca-corner .ca-label {
  font-family: var(--pixel); font-weight: 700; font-size: 16px; color: var(--link); white-space: nowrap;
  text-shadow: 2px 0 #fff, -2px 0 #fff, 0 2px #fff, 0 -2px #fff;
}
.ca-text {
  font-size: 14px; padding: 3px 8px; background: rgba(20,30,40,.7);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hints {
  position: absolute; right: 18px; bottom: 16px; z-index: 4;
  display: flex; gap: 12px; align-items: center;
  font-family: var(--pixel); font-size: 12px; font-weight: 700;
}
.hints div { display: flex; gap: 6px; align-items: center; }
.hints span:not(.key) { text-shadow: var(--outline); }

.divider { height: 14px; background: var(--yellow); border-top: 4px solid var(--ink); border-bottom: 4px solid var(--ink); }

/* ---------- Sections ---------- */
main {
  background: var(--green);
  background-image:
    repeating-linear-gradient(120deg, rgba(0,0,0,.05) 0 2px, transparent 2px 60px),
    repeating-linear-gradient(60deg, rgba(0,0,0,.05) 0 2px, transparent 2px 60px);
}
section {
  max-width: 1200px; margin: 0 auto; padding: 72px 24px;
  display: flex; flex-direction: column; gap: 32px;
}
#game { padding-top: 96px; }
#faq { padding-bottom: 110px; }
.head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.head h2 {
  margin: 0; padding: 10px 28px 10px 20px;
  background: var(--yellow); color: var(--ink);
  font-family: var(--pixel); font-weight: 700; font-size: clamp(28px, 4vw, 48px);
  clip-path: polygon(0 0, 100% 0, calc(100% - 18px) 100%, 0 100%);
}
.head span { font-family: var(--pixel); font-size: 14px; opacity: .8; }

.card {
  padding: 22px; background: var(--panel);
  border: 4px solid var(--ink); box-shadow: 6px 6px 0 var(--ink);
  display: flex; flex-direction: column; gap: 6px;
}
.card > span { font-family: var(--pixel); font-size: 12px; opacity: .65; }
.card > b { font-size: 32px; }
.cards4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 18px; }

.btn {
  align-self: flex-start; padding: 14px 26px;
  background: var(--yellow); color: var(--ink);
  border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink);
  font-family: var(--pixel); font-weight: 700; font-size: 20px;
}
.btn:hover { background: #fff; color: var(--ink); }
.btn.big { display: flex; align-items: center; padding: 16px 28px; border-width: 4px; box-shadow: 6px 6px 0 var(--ink); }

/* Game */
.game-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 28px; align-items: center; }
.shot { position: relative; display: block; aspect-ratio: 16/9; border: 4px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); overflow: hidden; background: #000; }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; image-rendering: pixelated; }
.play-badge {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  padding: 12px 22px; background: var(--yellow); color: var(--ink);
  border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink);
  font-family: var(--pixel); font-weight: 700; font-size: 22px;
  opacity: 0; transition: opacity .15s;
}
.shot:hover .play-badge, .shot:focus-visible .play-badge { opacity: 1; }
.game-info { display: flex; flex-direction: column; gap: 18px; }
.game-info p { margin: 0; font-size: 22px; line-height: 1.45; text-wrap: pretty; }
.rows { display: flex; flex-direction: column; gap: 5px; }
.rows div {
  padding: 12px 18px; background: rgba(18,26,34,.7);
  display: flex; justify-content: space-between; gap: 12px;
  font-family: var(--pixel); font-size: 15px;
}
.rows b { color: var(--yellow); font-weight: 400; text-align: right; }
.heroes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 18px; margin-top: 20px; }
.hero-card { display: flex; flex-direction: column; border: 4px solid var(--ink); background: var(--panel); box-shadow: 6px 6px 0 var(--ink); }
.hero-card .art {
  aspect-ratio: 1/1; display: grid; place-items: center;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,.04) 0 10px, transparent 10px 20px);
}
.hero-card .art::after { content: attr(data-label); font-family: var(--pixel); font-size: 13px; opacity: .45; }
.tag { padding: 12px 14px; border-top: 4px solid var(--ink); display: flex; justify-content: space-between; font-family: var(--pixel); font-weight: 700; }

/* Keys */
kbd {
  display: inline-block; padding: 1px 6px; margin: 1px 0;
  background: #4a525c; color: #fff;
  border: 2px solid #1b1f24; border-bottom-width: 4px;
  font-family: var(--pixel); font-size: .78em; font-weight: 700; line-height: 1.3;
  white-space: nowrap;
}
.quick { font-size: 15px; gap: 12px; }
.quick div { align-items: flex-start; }
.quick i { flex: none; }
.quick span { line-height: 1.6; }

/* How to play */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tabs button {
  padding: 12px 18px; background: rgba(18,26,34,.75);
  border: 3px solid var(--ink);
  font-family: var(--pixel); font-weight: 700; font-size: 15px;
}
.tabs button:hover { color: var(--yellow); }
.tabs button.on { background: var(--yellow); color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 18px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.move-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 18px; align-items: start; }
.tbl table { width: 100%; border-collapse: collapse; font-size: 16px; }
.tbl th { text-align: left; font-family: var(--pixel); font-size: 11px; font-weight: 400; opacity: .6; padding: 0 8px 6px 0; }
.tbl td { padding: 7px 8px 7px 0; border-top: 2px solid rgba(255,255,255,.07); vertical-align: top; }
.tbl td:first-child { font-weight: 700; }
.tbl td + td { opacity: .9; }
.notes ul { margin: 4px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 16px; line-height: 1.45; }
.legend-line { margin: 0; font-size: 16px; opacity: .9; }

.fighters { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 18px; }
.fighter { display: flex; flex-direction: column; background: var(--panel); border: 4px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); }
.fighter-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 12px 14px;
  border-bottom: 4px solid var(--ink); color: var(--ink); font-family: var(--pixel);
}
.fighter-head b { font-size: 17px; }
.fighter-head span { font-size: 11px; }
.fighter-stats { padding: 12px 14px 4px; display: flex; flex-direction: column; gap: 4px; font-family: var(--pixel); font-size: 13px; }
.fighter-stats div { display: flex; justify-content: space-between; }
.fighter-stats b { color: var(--yellow); letter-spacing: 3px; }
.fighter ul { margin: 6px 0 14px; padding: 0 14px 0 32px; display: flex; flex-direction: column; gap: 4px; font-size: 15px; opacity: .85; }

.levels { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 5px 18px; margin-top: 8px; }
.level { display: flex; gap: 14px; align-items: center; padding: 10px 14px; background: rgba(255,255,255,.04); font-size: 17px; }
.level b { font-family: var(--pixel); color: var(--yellow); width: 30px; flex: none; }
.level span { font-weight: 700; }
.level em { margin-left: auto; font-style: normal; font-family: var(--pixel); font-size: 12px; opacity: .65; white-space: nowrap; }

.tips { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 12px; }
.tip { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; background: rgba(18,26,34,.8); border-left: 4px solid var(--yellow); }
.tip-cat { align-self: flex-start; padding: 3px 8px; border: 2px solid #000; font-family: var(--pixel); font-size: 11px; font-weight: 700; }
.tip p { margin: 0; font-size: 17px; line-height: 1.45; }

/* Tokenomics */
.alloc { gap: 18px; }
.alloc > span { font-size: 14px; opacity: .8; }
.alloc-bar { display: flex; height: 40px; border: 3px solid #000; }
.alloc-bar div + div { border-left: 3px solid #000; }
.legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; font-family: var(--pixel); font-size: 15px; }
.legend div { display: flex; gap: 10px; align-items: center; }
.legend i { width: 16px; height: 16px; border: 2px solid #000; }
.legend b { margin-left: auto; }

/* Earn */
.earn { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.earn .card { gap: 12px; }
.earn .card i { width: 48px; height: 48px; border-width: 3px; font-weight: 700; font-size: 22px; }
.earn .card b { font-size: 22px; }
.earn .card p { margin: 0; font-size: 17px; line-height: 1.4; opacity: .8; }

/* Leaderboard */
.board { display: flex; flex-direction: column; gap: 5px; font-family: var(--pixel); }
.board .row {
  display: grid; grid-template-columns: 60px minmax(0,1fr) minmax(0,1fr) minmax(0,1fr);
  gap: 12px; align-items: center; padding: 14px 20px;
  background: rgba(18,26,34,.75); font-size: 16px; font-weight: 700;
}
.board .row span:nth-child(n+3) { text-align: right; }
.board .row span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board .row.th { background: none; padding: 10px 20px; font-size: 12px; font-weight: 400; opacity: .7; }
.board .row.gold { background: var(--yellow); color: var(--ink); }
.board .row.silver { background: #d9dde3; color: var(--ink); }
.board .row.bronze { background: #e0954a; color: var(--ink); }
.board .wallet { opacity: .6; margin-left: 10px; }

/* Buy */
.buy-steps { display: flex; flex-direction: column; gap: 5px; }
.buy-steps > div {
  display: flex; gap: 20px; align-items: center; padding: 18px 22px;
  background: linear-gradient(90deg, rgba(18,26,34,.85), rgba(18,26,34,.4));
}
.buy-steps > div > b { font-family: var(--pixel); font-size: 28px; color: var(--yellow); width: 44px; flex: none; }
.buy-steps > div > div { display: flex; flex-direction: column; gap: 4px; }
.buy-steps strong { font-size: 22px; }
.buy-steps span { font-size: 17px; opacity: .8; }
.buy-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; }
.ca-box { flex: 1 1 320px; min-width: 0; flex-direction: row; align-items: center; gap: 14px; padding: 16px 20px; }
.ca-box b { font-family: var(--pixel); font-size: 16px; color: var(--link); flex: none; }
.ca-box span { font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ca-box em { margin-left: auto; flex: none; font-style: normal; font-family: var(--pixel); font-weight: 700; color: var(--yellow); }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 5px; }
.faq-item { background: rgba(18,26,34,.8); }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; gap: 16px; align-items: center;
  padding: 18px 22px; font-family: var(--pixel); font-weight: 700; font-size: 18px;
}
.faq-item.open .faq-q { background: var(--yellow); color: var(--ink); }
.faq-a { padding: 16px 22px 20px; font-size: 18px; line-height: 1.5; max-width: 780px; text-wrap: pretty; }

/* Footer */
footer { background: var(--ink); border-top: 4px solid var(--yellow); padding: 28px 24px; }
footer > div {
  max-width: 1200px; margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: center;
  font-family: var(--pixel); font-size: 14px;
}
footer b { color: var(--yellow); font-size: 20px; }
footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
footer > div > span { opacity: .6; font-family: var(--body); }

@media (max-width: 819px) {
  :root { --fs: 24px; --fs-sm: 18px; }
  .menu { top: 26%; width: 100%; }
  .hints { display: none; }
  .board .wallet { display: none; }
  .board .row { grid-template-columns: 40px minmax(0,1.2fr) minmax(0,1fr) minmax(0,1fr); padding: 12px 14px; font-size: 13px; gap: 8px; }
}
