/* Back to Soccer's website: one stylesheet for its pages (index.html, remastered/index.html). */
:root {
  --bg: #06120a; --bg2: #0b1f12; --card: #10281a; --line: #1f4a2e; --ink: #eef6ef; --dim: #a9c4b0;
  --green: #3fbf6a; --green2: #2a9a50; --gold: #f2c94c; --blue: #3b6fe0; --purple: #7b4fd6;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--green); }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

header.top { position: sticky; top: 0; z-index: 10; background: rgba(6, 18, 10, .88); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; gap: 16px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; letter-spacing: .02em; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
nav.links { margin-left: auto; display: flex; gap: 18px; }
nav.links a { color: var(--dim); text-decoration: none; font-size: 15px; }
nav.links a:hover { color: var(--ink); }
.play-top { padding: 8px 14px; border-radius: 999px; background: var(--green); color: #04140a; font-weight: 700; text-decoration: none; font-size: 15px; white-space: nowrap; }

.masthead { position: relative; min-height: min(78vh, 720px); display: flex; align-items: flex-end; overflow: hidden; }
.masthead img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.masthead::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,18,10,.15) 0%, rgba(6,18,10,.35) 45%, var(--bg) 100%); }
.masthead .wrap { position: relative; z-index: 1; padding-bottom: 56px; }
.masthead h1 { font-size: clamp(40px, 7vw, 76px); line-height: 1; margin: 0 0 14px; font-weight: 900; letter-spacing: .01em; text-transform: uppercase; text-shadow: 0 4px 24px rgba(0,0,0,.5); }
.masthead p.lead { font-size: clamp(18px, 2.3vw, 22px); max-width: 38em; margin: 0 0 26px; color: #e3efe5; text-shadow: 0 2px 12px rgba(0,0,0,.6); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 12px; font-weight: 700; text-decoration: none; font-size: 17px; border: 1px solid transparent; }
.btn.primary { background: var(--green); color: #04140a; }
.btn.primary:hover { background: #52d37d; }
.btn.ghost { background: rgba(6,18,10,.6); color: var(--ink); border-color: rgba(238,246,239,.35); }
.btn.ghost:hover { border-color: var(--ink); }
.btn.soon { background: rgba(6,18,10,.6); color: var(--dim); border: 1px dashed rgba(238,246,239,.35); cursor: default; }

section { padding: 72px 0; }
section h2 { font-size: clamp(28px, 4vw, 38px); margin: 0 0 8px; }
section p.sub { color: var(--dim); margin: 0 0 32px; max-width: 46em; }

.platforms { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.platform { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.platform svg { width: 34px; height: 34px; color: var(--green); }
.platform h3 { margin: 0; font-size: 19px; }
.platform p { margin: 0; color: var(--dim); font-size: 14px; flex: 1; }
.platform .get { align-self: flex-start; padding: 8px 14px; border-radius: 10px; background: var(--green); color: #04140a; font-weight: 700; text-decoration: none; font-size: 15px; }
.platform .soon { align-self: flex-start; padding: 7px 13px; border-radius: 10px; border: 1px dashed var(--line); color: var(--dim); font-size: 14px; }
.platform.now { border-color: var(--green2); background: linear-gradient(180deg, #123a22, var(--card)); }

.video { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 9; background: #000; }
.video img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.video .over { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.video .over span { display: inline-block; padding: 10px 18px; border-radius: 999px; background: rgba(6,18,10,.8); border: 1px solid var(--line); color: var(--dim); }
.video video { width: 100%; height: 100%; display: block; }

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.shot { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.shot button { all: unset; cursor: zoom-in; display: block; width: 100%; }
.shot img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; transition: transform .25s; }
.shot button:hover img, .shot button:focus-visible img { transform: scale(1.03); }
.shot button:focus-visible { outline: 3px solid var(--green); outline-offset: -3px; }
.shot figcaption { padding: 12px 14px; font-size: 15px; color: var(--dim); }
.shot figcaption b { color: var(--ink); }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; border-top: 4px solid var(--green); }
.feature.team { border-top-color: var(--blue); }
.feature.hero { border-top-color: var(--purple); }
.feature.online { border-top-color: #4aa587; }
.feature.d3 { border-top-color: var(--gold); }
.feature h3 { margin: 0 0 8px; font-size: 20px; }
.feature p { margin: 0; color: var(--dim); font-size: 15px; }

.tips { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; counter-reset: tip; }
.tip { position: relative; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 18px 58px; }
.tip::before { counter-increment: tip; content: counter(tip); position: absolute; left: 16px; top: 16px; width: 28px; height: 28px; border-radius: 50%; background: var(--green); color: #04140a; font-weight: 800; display: grid; place-items: center; font-size: 15px; }
.tip h3 { margin: 0 0 4px; font-size: 17px; }
.tip p { margin: 0; color: var(--dim); font-size: 15px; }

footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--dim); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: center; }
footer a { color: var(--dim); }
footer a:hover { color: var(--ink); }
footer .copy { margin-left: auto; }

dialog.big { padding: 0; border: 0; background: transparent; max-width: 96vw; max-height: 94vh; }
dialog.big::backdrop { background: rgba(0,0,0,.85); }
dialog.big img { max-width: 96vw; max-height: 88vh; border-radius: 10px; }
dialog.big p { color: #ddd; text-align: center; margin: 10px 0 0; }
dialog.big form { position: fixed; top: 14px; right: 18px; }
dialog.big form button { font-size: 28px; line-height: 1; background: none; border: 0; color: #fff; cursor: pointer; }

@media (max-width: 720px) {
  nav.links { display: none; }
  .play-top { margin-left: auto; }
  section { padding: 52px 0; }
  .masthead { min-height: 72vh; }
  footer .copy { margin-left: 0; }
}

.badge { display: inline-block; margin: 0 0 14px; padding: 5px 12px; border-radius: 999px; background: rgba(242, 201, 76, .16); border: 1px solid var(--gold); color: var(--gold); font-weight: 700; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }
