:root {
    color-scheme: dark;
    --page: #0f141f;
    --surface: #171e2b;
    --surface-2: #202938;
    --ink: #f3f6fb;
    --muted: #9ca7b7;
    --line: rgba(255, 255, 255, 0.12);
    --accent: #d2f34c;
    --accent-ink: #172000;
    --blue: #98c8ff;
    --radius: 28px;
    --font-display: "Arial Black", "Arial Narrow", Arial, sans-serif;
    --font-body: Inter, Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 77% 14%, rgba(79, 121, 87, 0.18), transparent 28rem),
        var(--page);
    font-family: var(--font-body);
    line-height: 1.5;
}

a { color: inherit; }

.skip-link {
    position: fixed;
    z-index: 20;
    top: 12px;
    left: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    color: var(--accent-ink);
    background: var(--accent);
    transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.site-header,
main,
.site-footer {
    width: min(1180px, calc(100% - 48px));
    margin-inline: auto;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 92px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand__shield {
    position: relative;
    display: grid;
    width: 42px;
    height: 48px;
    place-items: center;
    color: var(--page);
    background: var(--accent);
    clip-path: polygon(50% 0, 92% 14%, 86% 72%, 50% 100%, 14% 72%, 8% 14%);
    font-family: var(--font-display);
    font-size: 21px;
    font-weight: 900;
    font-style: italic;
}

.brand__shield::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 5px;
    right: -7px;
    top: 4px;
    border-radius: 999px;
    background: var(--accent);
    rotate: -42deg;
}

.brand__name {
    font-family: var(--font-display);
    font-size: 21px;
    font-weight: 900;
    letter-spacing: -0.06em;
}

.brand__name span { color: var(--accent); }

.button {
    display: inline-flex;
    min-height: 56px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 24px;
    border: 1px solid transparent;
    border-radius: 16px;
    font-weight: 800;
    text-decoration: none;
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover { transform: translateY(-2px); }
.button:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.button svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.button--compact { min-height: 44px; padding-inline: 18px; border-radius: 14px; font-size: 14px; }
.button--ghost { border-color: var(--line); background: rgba(255, 255, 255, 0.04); }
.button--ghost:hover { border-color: rgba(210, 243, 76, 0.5); background: rgba(210, 243, 76, 0.08); }
.button--primary { color: var(--accent-ink); background: var(--accent); box-shadow: 0 14px 34px rgba(210, 243, 76, 0.14); }
.button--primary:hover { background: #defa68; }
.button--light { color: var(--page); background: var(--ink); }

.hero {
    display: grid;
    min-height: 700px;
    grid-template-columns: minmax(0, 0.92fr) minmax(520px, 1.08fr);
    align-items: center;
    gap: clamp(40px, 7vw, 100px);
    padding: 46px 0 90px;
}

.hero__copy { position: relative; z-index: 2; }

.eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 22px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.eyebrow span { width: 30px; height: 2px; background: currentColor; }

h1,
.download h2 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 900;
    letter-spacing: -0.055em;
    text-transform: uppercase;
}

h1 { max-width: 690px; font-size: clamp(48px, 6vw, 82px); line-height: 0.98; }

.hero__lead {
    max-width: 590px;
    margin: 28px 0 34px;
    color: var(--muted);
    font-size: clamp(18px, 2vw, 22px);
    line-height: 1.55;
}

.hero__actions { display: flex; align-items: center; gap: 18px; }
.hero__hint { max-width: 150px; color: var(--muted); font-size: 12px; line-height: 1.4; }

.welcome-art {
    position: relative;
    width: min(100%, 590px);
    aspect-ratio: 1;
    justify-self: end;
}

.welcome-art::before {
    content: "";
    position: absolute;
    inset: 9%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(210, 243, 76, 0.08), transparent 68%);
}

.pitch {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    fill: none;
    stroke: rgba(255, 255, 255, 0.11);
    stroke-width: 2;
}

.pitch__soft { opacity: 0.78; }

.game-card {
    position: absolute;
    z-index: 2;
    left: 10%;
    top: 21%;
    width: 80%;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 25px;
    background: var(--surface);
    box-shadow: 0 36px 70px rgba(0, 0, 0, 0.42);
    transform: rotate(-4deg);
    animation: card-in 650ms cubic-bezier(.2, .8, .2, 1) both;
}

.game-card__field {
    position: relative;
    height: 148px;
    overflow: hidden;
    background:
        linear-gradient(to bottom, rgba(7, 17, 28, 0.15), rgba(0, 0, 0, 0.26)),
        repeating-linear-gradient(100deg, #2e7a3c 0 44px, #276b34 44px 88px);
}

.game-card__field::before {
    content: "";
    position: absolute;
    inset: 0 0 55%;
    background: linear-gradient(#071520, #183747);
}

.floodlight { position: absolute; z-index: 2; top: 4px; width: 70px; height: 70px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 245, 189, 0.9), transparent 68%); }
.floodlight--left { left: 7%; }
.floodlight--right { right: 7%; }
.field-line { position: absolute; z-index: 3; border: 1.5px solid rgba(237, 247, 235, 0.8); }
.field-line--outer { inset: 74px 20px -16px; transform: perspective(130px) rotateX(18deg); }
.field-line--middle { top: 76px; bottom: 0; left: 50%; border-width: 0 0 0 1.5px; }
.field-line--circle { width: 80px; height: 32px; left: calc(50% - 40px); top: 92px; border-radius: 50%; }

.game-card__topline,
.game-card h2,
.game-card__address,
.game-card__facts,
.game-card__footer { margin-inline: 22px; }

.game-card__topline { display: flex; align-items: center; justify-content: space-between; margin-top: 19px; color: var(--muted); font-size: 12px; font-weight: 800; }
.ranked { color: var(--accent); }
.game-card h2 { margin-top: 9px; margin-bottom: 0; font-size: 22px; line-height: 1.2; }
.game-card__address { display: flex; align-items: center; gap: 6px; margin-top: 6px; margin-bottom: 0; color: var(--muted); font-size: 13px; }
.game-card__address svg { width: 15px; fill: none; stroke: var(--accent); stroke-width: 2; }
.game-card__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }
.game-card__facts span { padding: 10px 8px; border-radius: 12px; color: var(--muted); background: var(--surface-2); font-size: 10px; text-align: center; }
.game-card__facts b { display: block; color: var(--ink); font-size: 12px; }
.game-card__footer { display: flex; align-items: center; gap: 10px; margin-top: 17px; padding: 15px 0 19px; border-top: 1px solid var(--line); }
.game-card__footer > span:last-child { display: grid; }
.game-card__footer small { color: var(--muted); font-size: 10px; }
.game-card__footer b { font-size: 12px; }
.avatar { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; color: var(--accent-ink); background: var(--accent); font-size: 11px; font-weight: 900; }

.floating-tag {
    position: absolute;
    z-index: 4;
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    gap: 6px;
    padding: 0 14px;
    border-radius: 999px;
    color: var(--page);
    background: var(--ink);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
    animation: tag-in 500ms cubic-bezier(.2, .8, .2, 1) both;
}

.floating-tag svg { width: 15px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.floating-tag--distance { left: 5%; top: 12%; rotate: -3deg; animation-delay: 180ms; }
.floating-tag--distance svg { color: #648500; }
.floating-tag--level { right: 3%; top: 17%; rotate: 4deg; color: #5c84b1; animation-delay: 280ms; }
.floating-tag--joined { right: 5%; bottom: 7%; rotate: -2deg; color: var(--accent-ink); background: var(--accent); animation-delay: 380ms; }

.benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.benefits article { min-height: 250px; padding: 42px 36px; }
.benefits article + article { border-left: 1px solid var(--line); }
.benefits__number { color: var(--accent); font-family: var(--font-display); font-size: 13px; font-weight: 900; }
.benefits h2 { margin: 48px 0 10px; font-size: 21px; }
.benefits p { max-width: 280px; margin: 0; color: var(--muted); }

.download {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 40px;
    margin-top: 110px;
    padding: clamp(34px, 6vw, 72px);
    border-radius: var(--radius);
    color: var(--page);
    background: var(--accent);
}

.download .eyebrow { color: rgba(23, 32, 0, 0.7); }
.download h2 { max-width: 740px; font-size: clamp(36px, 5vw, 64px); line-height: 1; }
.download p:not(.eyebrow) { max-width: 600px; margin: 22px 0 0; font-size: 18px; }
.download .button { flex: none; }

.site-footer {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 36px;
    padding: 64px 0 44px;
    color: var(--muted);
    font-size: 13px;
}

.brand--small .brand__shield { width: 30px; height: 34px; font-size: 15px; }
.brand--small .brand__name { font-size: 16px; }
.site-footer nav { display: flex; justify-content: center; gap: 24px; }
.site-footer nav a { text-underline-offset: 4px; }
.site-footer nav a:hover { color: var(--ink); }

@keyframes card-in {
    from { opacity: 0; transform: translateY(28px) rotate(-4deg); }
}

@keyframes tag-in {
    from { opacity: 0; scale: 0.82; }
}

@media (max-width: 940px) {
    .hero { grid-template-columns: 1fr; padding-top: 70px; }
    .hero__copy { text-align: center; }
    .eyebrow, .hero__actions { justify-content: center; }
    .hero__lead { margin-inline: auto; }
    .welcome-art { justify-self: center; width: min(100%, 600px); }
    .benefits { grid-template-columns: 1fr; }
    .benefits article { min-height: 0; }
    .benefits article + article { border-top: 1px solid var(--line); border-left: 0; }
    .benefits h2 { margin-top: 24px; }
    .download { align-items: start; flex-direction: column; }
    .site-footer { grid-template-columns: 1fr; justify-items: center; text-align: center; }
}

@media (max-width: 600px) {
    .site-header,
    main,
    .site-footer { width: min(100% - 28px, 1180px); }
    .site-header { min-height: 76px; }
    .site-header .button { min-height: 40px; padding-inline: 13px; }
    .brand__shield { width: 34px; height: 39px; font-size: 17px; }
    .brand__name { font-size: 17px; }
    .hero { min-height: 0; gap: 22px; padding: 48px 0 70px; }
    h1 { font-size: clamp(39px, 12vw, 58px); }
    .hero__lead { margin-top: 22px; font-size: 17px; }
    .hero__actions { flex-direction: column; }
    .hero__hint { max-width: none; }
    .welcome-art { width: calc(100% + 14px); margin-inline: -7px; }
    .game-card { left: 6%; width: 88%; }
    .game-card__field { height: 112px; }
    .field-line--outer { top: 54px; }
    .field-line--middle { top: 56px; }
    .field-line--circle { top: 72px; }
    .game-card__topline, .game-card h2, .game-card__address, .game-card__facts, .game-card__footer { margin-inline: 15px; }
    .game-card h2 { font-size: 18px; }
    .game-card__facts { margin-top: 13px; }
    .game-card__facts span { padding-inline: 4px; }
    .game-card__footer { margin-top: 13px; padding-block: 12px; }
    .floating-tag { min-height: 33px; padding-inline: 11px; font-size: 11px; }
    .floating-tag--distance { left: 1%; top: 10%; }
    .floating-tag--level { right: 0; top: 15%; }
    .floating-tag--joined { right: 2%; bottom: 5%; }
    .benefits article { padding: 34px 22px; }
    .download { margin-top: 72px; padding: 36px 24px; }
    .download .button { width: 100%; }
    .site-footer nav { align-items: center; flex-direction: column; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
