:root {
    --ink: #010b2d;
    --navy: #000f55;
    --royal: #0143b9;
    --electric: #019ffc;
    --cyan: #05f9fe;
    --magenta: #e624fc;
    --text: #e8ecff;
    --muted: #a3acd6;
    --panel: rgba(12, 20, 70, 0.72);
    --border: rgba(120, 150, 255, 0.22);
    --radius: 18px;
    --max: 1040px;
    color-scheme: dark;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: radial-gradient(1200px 600px at 15% -10%, rgba(230, 36, 252, 0.18), transparent 60%),
        radial-gradient(1000px 600px at 90% 0%, rgba(5, 249, 254, 0.14), transparent 60%),
        var(--ink);
    color: var(--text);
    font-family: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
    font-size: 17px;
    line-height: 1.65;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--cyan);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    display: block;
}

.wrap {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(1, 11, 45, 0.82);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 64px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-weight: 800;
    letter-spacing: 0.04em;
}

.brand img {
    width: 36px;
    height: 36px;
    border-radius: 10px;
}

.brand:hover {
    text-decoration: none;
}

.nav {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav a {
    color: var(--muted);
    font-weight: 700;
    font-size: 15px;
    padding: 6px 12px;
    border-radius: 999px;
}

.nav a:hover,
.nav a[aria-current="page"] {
    color: var(--text);
    background: rgba(1, 159, 252, 0.16);
    text-decoration: none;
}

/* Hero */

.hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.hero img.banner {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
}

.hero .tagline {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 40px 20px 26px;
    text-align: center;
    background: linear-gradient(to top, rgba(1, 11, 45, 0.95), transparent);
    color: var(--text);
    font-size: clamp(17px, 2.4vw, 22px);
    font-weight: 700;
}

main {
    flex: 1;
}

section {
    padding: 56px 0;
}

h1,
h2,
h3 {
    line-height: 1.25;
    margin: 0 0 14px;
}

h1 {
    font-size: clamp(30px, 5vw, 44px);
    font-weight: 900;
}

h2 {
    font-size: clamp(23px, 3.4vw, 30px);
    font-weight: 900;
    margin-top: 40px;
}

h3 {
    font-size: 19px;
    font-weight: 800;
    margin-top: 26px;
}

.gradient-text {
    background: linear-gradient(90deg, var(--magenta), var(--electric) 55%, var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.lead {
    color: var(--muted);
    font-size: 19px;
    max-width: 720px;
}

/* Cards */

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
}

.card h3 {
    margin-top: 0;
}

.card p {
    margin: 0;
    color: var(--muted);
}

.game-card {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.game-card img {
    width: 112px;
    height: 112px;
    border-radius: 26px;
    box-shadow: 0 10px 30px rgba(1, 159, 252, 0.35);
}

.game-card .info {
    flex: 1;
    min-width: 220px;
}

.buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(90deg, var(--magenta), var(--electric));
    box-shadow: 0 6px 20px rgba(230, 36, 252, 0.3);
}

.button.ghost {
    background: transparent;
    border: 1px solid var(--border);
    box-shadow: none;
    color: var(--text);
}

.button:hover {
    text-decoration: none;
    filter: brightness(1.12);
}

/* Legal documents */

.doc {
    max-width: 820px;
    padding-top: 48px;
    padding-bottom: 64px;
}

.doc .meta {
    color: var(--muted);
    margin-bottom: 26px;
}

.doc p,
.doc li {
    color: #d5dbf7;
}

.doc ul {
    padding-left: 22px;
}

.doc li {
    margin: 6px 0;
}

.toc {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 22px;
    margin: 20px 0 10px;
}

.toc ol {
    margin: 0;
    padding-left: 20px;
    columns: 2 240px;
}

.doc .toc li {
    margin: 0 0 8px;
    break-inside: avoid;
}

.table-wrap {
    overflow-x: auto;
    margin: 14px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    min-width: 560px;
}

th,
td {
    text-align: left;
    vertical-align: top;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
}

th {
    color: var(--text);
    background: rgba(1, 67, 185, 0.25);
}

td {
    color: #d5dbf7;
}

.note {
    border-left: 3px solid var(--cyan);
    background: rgba(5, 249, 254, 0.06);
    padding: 12px 16px;
    border-radius: 0 12px 12px 0;
    margin: 18px 0;
}

code {
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 0.92em;
}

/* Footer */

.site-footer {
    border-top: 1px solid var(--border);
    padding: 28px 0;
    color: var(--muted);
    font-size: 15px;
}

.site-footer .wrap {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.site-footer nav {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.site-footer a {
    color: var(--muted);
}

.site-footer a:hover {
    color: var(--text);
}

@media (max-width: 640px) {
    body {
        font-size: 16px;
    }

    .site-header .wrap {
        height: auto;
        padding-top: 10px;
        padding-bottom: 10px;
        flex-direction: column;
        align-items: flex-start;
    }

    .nav {
        justify-content: flex-start;
    }

    section {
        padding: 40px 0;
    }
}
