/* RetroRivals Football website. Colours, fonts and boxes copied from the
   game's menu theme (scripts/ui/ui_theme.gd): dark pitch-green square panels,
   1 px lines, header bands, green accent buttons, gold highlights. */
@font-face { font-family: "Chakra Petch"; src: url(fonts/ChakraPetch-Regular.ttf) format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Chakra Petch"; src: url(fonts/ChakraPetch-SemiBold.ttf) format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Bebas Neue"; src: url(fonts/BebasNeue-Regular.otf) format("opentype"); font-display: swap; }
@font-face { font-family: "Play"; src: url(fonts/Play-Bold.ttf) format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --ink: #06100a; --bg: #0a1a10; --panel: #0f2417; --panel-hi: #183422; --line: #2b5037;
  --text: #eaf2e8; --dim: #92aa96; --accent: #60d250; --accent-hi: #b0f082; --gold: #f6c840;
  --red: #e85648; --band: #143e24; --online: #60d660; --offline: #687a6c;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.55 "Chakra Petch", system-ui, sans-serif;
}
img.px, .px { image-rendering: pixelated; }
a { color: var(--accent-hi); }
a:hover { color: #fff; }
h1, h2, h3 { font-family: "Bebas Neue", Impact, sans-serif; font-weight: 400; letter-spacing: .02em; margin: 0; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* ---------- prototype strip */
.proto {
  background: repeating-linear-gradient(135deg, var(--gold) 0 18px, #e8b92c 18px 36px);
  color: var(--ink); font-weight: 600; text-align: center; padding: 8px 16px; font-size: 15px;
  border-bottom: 2px solid var(--ink);
}
.proto b { font-family: "Bebas Neue", sans-serif; font-weight: 400; font-size: 20px; letter-spacing: .06em;
  background: var(--ink); color: var(--gold); padding: 1px 8px 0; margin-right: 8px; vertical-align: -1px; }

/* ---------- top bar (like the game's side bar) */
.top { background: var(--ink); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 58px; }
.top .logo img { height: 22px; display: block; }
.top nav { display: flex; gap: 2px; margin-left: auto; flex-wrap: wrap; }
.top nav a {
  color: var(--dim); text-decoration: none; font-weight: 600; font-size: 14px; padding: 7px 12px;
  border-left: 3px solid transparent;
}
.top nav a:hover { color: var(--text); background: rgba(255,255,255,.05); }
.top nav a.on { color: #fff; background: rgba(96,210,80,.16); border-left-color: var(--accent); }

/* ---------- buttons (game's Button / AccentButton) */
.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; cursor: pointer;
  font: 600 16px "Chakra Petch", sans-serif; padding: 11px 20px; color: var(--text);
  background: var(--panel-hi); border: 1px solid var(--line); box-shadow: 3px 3px 0 var(--ink);
}
.btn:hover { color: #fff; background: #283546; border-color: rgba(96,210,80,.6); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn.accent { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn.accent:hover { background: var(--accent-hi); border-color: var(--accent-hi); color: var(--ink); }
.btn.big { font-size: 19px; padding: 14px 26px; }
.btn.off { background: rgba(24,52,34,.5); border-color: rgba(43,80,55,.5); color: var(--offline); cursor: default; box-shadow: none; }
.btn .ic { width: 20px; height: 20px; }
.ic { display: inline-block; width: 18px; height: 18px; background: currentColor;
  -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; flex: none; }

/* ---------- hero: a piece of the game's pitch */
.hero { position: relative; border-bottom: 2px solid var(--ink); overflow: hidden; }
.hero .pitch { position: absolute; inset: 0; background: url(img/hero-pitch.png) center / cover; image-rendering: pixelated; }
.hero .pitch::after { content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(6,16,10,.15), rgba(6,16,10,.55)); }
.hero .wrap { position: relative; padding: 64px 20px 72px; display: flex; justify-content: center; }
.hero .card {
  background: rgba(10,26,16,.93); border: 2px solid var(--line); box-shadow: 6px 6px 0 var(--ink);
  padding: 34px 40px 30px; text-align: center; max-width: 720px; width: 100%;
}
.hero .title { width: min(560px, 100%); display: block; margin: 0 auto 18px; }
.hero .tag { font-size: 20px; margin: 0 0 6px; font-weight: 600; }
.hero .sub { color: var(--dim); margin: 0 0 22px; }
.hero .cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero .meta { margin-top: 18px; color: var(--dim); font-size: 14px; display: flex; gap: 8px 18px; justify-content: center; flex-wrap: wrap; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--panel); padding: 3px 10px; }
.dot { width: 9px; height: 9px; background: var(--offline); display: inline-block; }
.dot.up { background: var(--online); box-shadow: 0 0 8px var(--online); }
.dot.down { background: var(--red); }

/* ---------- panels with header bands */
section { padding: 46px 0 8px; }
.panel { background: var(--panel); border: 1px solid var(--line); box-shadow: 4px 4px 0 var(--ink); }
.band {
  background: var(--band); border-bottom: 1px solid var(--line); padding: 7px 16px 5px;
  display: flex; align-items: center; gap: 10px;
}
.band h2 { font-size: 28px; line-height: 1; color: #fff; }
.band .ic { color: var(--accent-hi); width: 20px; height: 20px; }
.band small { margin-left: auto; color: var(--dim); font-size: 13px; }
.body { padding: 20px 22px 22px; }
.lead { font-size: 18px; margin: 0 0 18px; max-width: 760px; }

.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.feature { background: var(--panel-hi); border: 1px solid var(--line); padding: 14px 16px; display: flex; gap: 12px; }
.feature .ic { color: var(--accent); width: 22px; height: 22px; margin-top: 2px; }
.feature h3 { font-size: 22px; line-height: 1.1; color: #fff; margin-bottom: 2px; }
.feature p { margin: 0; color: var(--dim); font-size: 14.5px; }

.squad { display: flex; align-items: flex-end; justify-content: center; gap: 26px; padding: 12px 0 0; }
.squad img { height: 84px; image-rendering: pixelated; }
.squad img.ball { height: 22px; margin-left: -18px; }

/* ---------- screenshots */
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }
.shot { display: block; background: var(--ink); border: 1px solid var(--line); padding: 0; cursor: zoom-in; text-align: left; color: var(--text); font: inherit; }
.shot img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.shot span { display: block; padding: 7px 12px; font-weight: 600; font-size: 14px; border-top: 1px solid var(--line); background: var(--panel-hi); }
.shot:hover { border-color: var(--accent); }
.shot:hover span { color: var(--accent-hi); }
.lightbox { position: fixed; inset: 0; background: rgba(6,16,10,.94); display: none; align-items: center; justify-content: center; z-index: 50; padding: 30px; cursor: zoom-out; flex-direction: column; gap: 10px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 110px); border: 2px solid var(--line); box-shadow: 6px 6px 0 #000; }
.lightbox p { margin: 0; font-weight: 600; }

/* ---------- download + community */
.two { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; }
.specs { list-style: none; padding: 0; margin: 16px 0 0; border-top: 1px solid var(--line); }
.specs li { display: flex; justify-content: space-between; gap: 16px; padding: 7px 2px; border-bottom: 1px solid var(--line); font-size: 15px; }
.specs li span:first-child { color: var(--dim); }
.note { background: rgba(246,200,64,.08); border: 1px solid rgba(246,200,64,.45); color: #f3e2a8; padding: 10px 14px; margin: 16px 0 0; font-size: 14.5px; }
.links { display: grid; gap: 10px; }
.link { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--panel-hi); border: 1px solid var(--line); text-decoration: none; color: var(--text); font-weight: 600; }
.link .ic { width: 22px; height: 22px; }
a.link:hover { border-color: var(--accent); color: #fff; }
.link em { margin-left: auto; font-style: normal; font-size: 13px; color: var(--dim); }
.link.soon { color: var(--dim); }
.link.soon em { color: var(--ink); background: var(--gold); padding: 1px 8px; font-weight: 600; font-family: "Bebas Neue"; font-size: 16px; letter-spacing: .05em; }
.discord .ic { color: #8b9cff; }

.rooms { margin-top: 14px; display: grid; gap: 6px; }
.room { display: flex; gap: 10px; align-items: center; font-size: 14px; background: var(--ink); border: 1px solid var(--line); padding: 6px 10px; }
.room b { font-family: "Play"; font-weight: 700; margin-left: auto; }

/* ---------- privacy page text */
.doc { max-width: 820px; }
.doc h3 { font-size: 24px; color: var(--accent-hi); margin: 20px 0 4px; }
.doc p, .doc li { color: var(--text); }
.doc ul { padding-left: 20px; }

footer { margin-top: 56px; background: var(--ink); border-top: 1px solid var(--line); padding: 26px 0; color: var(--dim); font-size: 14px; }
footer .wrap { display: flex; gap: 12px 26px; align-items: center; flex-wrap: wrap; }
footer img { height: 14px; }
footer nav { display: flex; gap: 18px; margin-left: auto; flex-wrap: wrap; }
footer a { color: var(--dim); text-decoration: none; }
footer a:hover { color: #fff; }

@media (max-width: 820px) {
  .two { grid-template-columns: 1fr; }
  .top { position: static; }
  .top .wrap { height: auto; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; gap: 8px; }
  .top nav { margin-left: 0; }
  .hero .card { padding: 26px 18px; }
  .shots { grid-template-columns: 1fr; }
  .squad img { height: 60px; }
}
