﻿:root {
    color-scheme: dark;
    --bg: #040303;
    --surface: #020101;
    --surface-soft: #161c28;
    --text: #fafafa;
    --muted: #9aa5c7;
    --accent: #40b5ff;
    --accent-strong: #1b72ff;
    --border: rgba(255, 255, 255, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(circle at top left, rgba(64, 181, 255, 0.14), transparent 28%),
        radial-gradient(circle at bottom right, rgba(43, 140, 245, 0.07), transparent 20%),
        var(--bg);
    color: var(--text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.page-shell {
    max-width: 1320px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.background-words {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    flex-wrap: wrap;
    gap: 4rem;
    animation: drift 16s linear infinite;
    overflow: hidden;
    background: linear-gradient(135deg,
            rgba(5, 6, 11, 0.70) 0%,
            rgba(5, 6, 11, 0.88) 100%),
        url('./images/would-you-rather-tower.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.background-words::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(5, 6, 11, 0.70) 0%,
            rgba(5, 6, 11, 0.88) 100%),
        url('./images/walk-or-die.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0;
    animation: backgroundFade 6s ease-in-out infinite alternate;
    z-index: 0;
}

.background-words span {
    position: relative;
    z-index: 1;
    font-size: clamp(5rem, 12vw, 10rem);
    line-height: 0.95;
    font-weight: 900;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    white-space: nowrap;
    text-shadow: 0 14px 36px rgba(0, 0, 0, 0.6);
    opacity: 0.72;
}

@keyframes drift {
    0% {
        transform: translate3d(-20%, 0, 0);
    }

    50% {
        transform: translate3d(20%, 8%, 0);
    }

    100% {
        transform: translate3d(-20%, 0, 0);
    }
}

@keyframes backgroundFade {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    padding: 28px clamp(24px, 4vw, 56px);
    position: sticky;
    top: 0;
    background: rgba(5, 6, 11, 0.92);
    backdrop-filter: blur(20px);
    z-index: 20;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.brand-logo {
    width: 72px;
    height: 72px;
    border-radius: 14px;
    object-fit: contain;
    background: linear-gradient(135deg, rgba(62, 176, 255, 0.10), rgba(27, 114, 255, 0.10));
    padding: 6px;
    box-shadow: 0 12px 34px rgba(27, 114, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.topnav {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.topnav a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 600;
}

.topnav a {
    position: relative;
}

.topnav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background: var(--accent);
    opacity: 0;
    transform: scaleX(0.2);
    transform-origin: left;
    transition: opacity 180ms ease, transform 180ms ease;
}

.topnav a:hover::after,
.topnav a:focus-visible::after {
    opacity: 1;
    transform: scaleX(1);
}

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

.topnav a[aria-current="page"] {
    color: var(--text);
}

.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.68s ease, transform 0.68s ease;
}

.reveal.show {
    opacity: 1;
    transform: translateY(0);
}

.hero {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(0, 1.2fr);
    gap: 46px;
    align-items: start;
    padding: 64px clamp(24px, 4vw, 56px);
}

.hero.small-hero {
    grid-template-columns: 1fr;
    padding: 64px clamp(24px, 4vw, 56px);
}

.hero-copy {
    max-width: 630px;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 1fr);
    gap: 32px;
    align-items: start;
}

.contact-form {
    display: grid;
    gap: 20px;
    padding: 32px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-form label {
    display: grid;
    gap: 10px;
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 600;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    padding: 16px 18px;
    font: inherit;
    resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: rgba(64, 181, 255, 0.85);
    background: rgba(255, 255, 255, 0.1);
}

.contact-info {
    padding: 32px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: grid;
    gap: 20px;
}

.contact-info h3 {
    margin: 0;
    font-size: 1.55rem;
}

.contact-info p {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

.info-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 16px;
}

.info-item {
    display: grid;
    gap: 8px;
}

.info-item strong {
    display: inline-block;
    color: #fff;
}

@media (max-width: 960px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.eyebrow {
    display: inline-block;
    margin: 0 0 18px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
}

.hero h1 {
    margin: 0;
    font-size: clamp(3rem, 5vw, 5rem);
    line-height: 1;
    max-width: 10ch;
}

.hero-copy p {
    margin: 24px 0 0;
    max-width: 680px;
    font-size: 1rem;
    line-height: 1.85;
    color: var(--muted);
}

.hero-tagline {
    margin: 28px 0 0;
    color: var(--muted);
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 36px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 16px 28px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button-primary {
    background: linear-gradient(135deg, #3db0ff, #1b72ff);
    color: #fff;
    box-shadow: 0 18px 40px rgba(27, 114, 255, 0.24);
}

.button-primary:hover {
    box-shadow: 0 22px 52px rgba(27, 114, 255, 0.34);
}

.button-secondary {
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
}

.hero-panel {
    display: flex;
    justify-content: flex-start;
}

.hero-card {
    width: 100%;
    min-height: 420px;
    padding: 40px;
    border-radius: 36px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
    display: grid;
    gap: 18px;
}

.hero-label {
    color: var(--accent);
    font-size: 0.85rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.hero-title {
    margin: 0;
    font-size: 1.8rem;
    line-height: 1.15;
    font-weight: 800;
}

.hero-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

.hero-card {
    position: relative;
    overflow: hidden;
}

.hero-card:hover {
    transform: translateY(-6px) scale(1.005);
    transition: transform 0.3s ease;
}

.tile,
.stats-card {
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.tile:hover,
.stats-card:hover {
    transform: translateY(-8px);
    border-color: rgba(64, 181, 255, 0.22);
    box-shadow: 0 24px 60px rgba(25, 48, 87, 0.35);
    background: rgba(255, 255, 255, 0.08);
}

.tile:hover::before {
    opacity: 1;
    transform: scale(1.03);
}

.hero-visual {
    position: relative;
    margin-top: 32px;
    padding: 26px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.visual-floating {
    position: absolute;
    border-radius: 50%;
    background: rgba(64, 181, 255, 0.24);
    filter: blur(10px);
    opacity: 0.8;
    animation: float 8s ease-in-out infinite;
}

.visual-1 {
    width: 90px;
    height: 90px;
    top: -20px;
    right: -20px;
    animation-delay: 0s;
}

.visual-2 {
    width: 60px;
    height: 60px;
    bottom: -18px;
    left: 10px;
    animation-delay: 1.2s;
}

.visual-3 {
    width: 42px;
    height: 42px;
    top: 52px;
    left: -14px;
    animation-delay: 2.2s;
}

.graph-shell {
    position: relative;
    display: grid;
    gap: 18px;
}

.graph-caption {
    text-transform: uppercase;
    color: var(--accent);
    letter-spacing: 0.18em;
    font-size: 0.7rem;
}

.graph-svg {
    width: 100%;
    height: auto;
    overflow: visible;
}

.graph-svg path {
    fill: none;
    stroke: rgba(64, 181, 255, 0.92);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    animation: draw 2.4s ease forwards;
}

.graph-svg circle {
    fill: rgba(255, 255, 255, 0.95);
    stroke: rgba(64, 181, 255, 0.9);
    stroke-width: 3;
    transform-origin: center;
    animation: pop 1.2s ease forwards;
}

.graph-svg circle:nth-child(2) {
    animation-delay: 1s;
}

.graph-svg circle:nth-child(3) {
    animation-delay: 1.6s;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.stats-row span {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
}

.stats-row p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 0.95rem;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) translateX(0);
    }

    50% {
        transform: translateY(-12px) translateX(8px);
    }
}

@keyframes draw {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes pop {
    0% {
        transform: scale(0.25);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.section {
    padding: 64px clamp(24px, 4vw, 56px);
}

.hero-copy,
.section-head,
.tile,
.stats-card {
    will-change: opacity, transform;
}

.section-head {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}

.section-head h2 {
    margin: 0;
    font-size: clamp(2.25rem, 4vw, 3.6rem);
    line-height: 1.05;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.tile {
    position: relative;
    overflow: hidden;
    padding: 32px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    min-height: 260px;
}

.tile::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(64, 181, 255, 0.18), transparent 30%);
    opacity: 0.9;
}

.tile>* {
    position: relative;
}

.tile-meta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--accent);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    margin-bottom: 20px;
}

.tile h3 {
    margin: 0 0 16px;
    font-size: 1.35rem;
}

.tile p {
    margin: 0;
    color: var(--muted);
    line-height: 1.85;
}

.section-action {
    margin-top: 32px;
}

.live-players-section {
    padding-top: 0;
}

.live-players-card {
    display: grid;
    grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
    gap: 24px;
    padding: 36px;
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035));
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.24);
}

.live-total {
    display: grid;
    align-content: center;
    gap: 12px;
    padding: 28px;
    border-radius: 24px;
    background: radial-gradient(circle at top right, rgba(64, 181, 255, 0.22), transparent 42%),
        rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.live-total span {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 900;
    line-height: 1;
}

.live-total p,
.live-updated {
    margin: 0;
    color: var(--muted);
}

.live-player-list {
    display: grid;
    gap: 14px;
}

.live-player-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border-radius: 20px;
    color: var(--text);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.live-player-row:hover {
    transform: translateY(-2px);
    border-color: rgba(64, 181, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.live-player-row strong {
    color: var(--accent);
    white-space: nowrap;
}

.live-player-row-muted {
    color: var(--muted);
}

.live-updated {
    grid-column: 1 / -1;
    font-size: 0.92rem;
}

.stats-section {
    padding-top: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1.75fr 1fr;
    gap: 24px;
}

.stats-card {
    padding: 36px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: grid;
    gap: 18px;
}

.stats-large {
    grid-column: span 1;
}

.stats-card span {
    font-size: clamp(2.5rem, 4vw, 4.5rem);
    font-weight: 800;
    line-height: 1;
}

.stats-card p,
.stats-card h3 {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

.link-arrow {
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
}

.link-arrow:hover {
    color: var(--accent);
}

.success-hero {
    align-items: center;
    min-height: calc(100vh - 180px);
}

.success-card {
    min-height: 320px;
}

.stats-dark {
    background: linear-gradient(180deg, rgba(15, 27, 48, 0.88), rgba(13, 20, 35, 0.94));
    border-color: rgba(255, 255, 255, 0.06);
}

.stats-dark h3 {
    color: #fff;
    font-size: 2rem;
}

.stats-dark p {
    color: var(--muted);
}

.site-footer {
    padding: 26px clamp(24px, 4vw, 56px);
    text-align: center;
    color: var(--muted);
}

@media (max-width: 960px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .live-players-card {
        grid-template-columns: 1fr;
    }

    .topbar {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 680px) {

    .topbar,
    .hero,
    .section,
    .site-footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .hero h1 {
        font-size: clamp(2.5rem, 10vw, 3.8rem);
    }

    .brand-logo {
        width: 56px;
        height: 56px;
    }

    .topnav {
        gap: 14px;
    }

    .topnav a {
        font-size: 0.92rem;
    }

    .hero-card,
    .contact-form,
    .contact-info,
    .live-players-card,
    .live-total,
    .stats-card,
    .tile {
        padding: 24px;
    }
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
}

.game-card {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    text-decoration: none;
    height: 380px;
    display: grid;
    grid-template-rows: 1fr auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 60px rgba(25, 48, 87, 0.35);
}

.game-background {
    grid-row: 1;
    min-height: 280px;
    background-color: rgba(17, 22, 31, 0.6);
    position: relative;
    overflow: hidden;
}

.game-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.game-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5, 6, 11, 0) 0%, rgba(5, 6, 11, 0.85) 100%);
}

.game-info {
    grid-row: 2;
    padding: 24px;
    background: rgba(5, 6, 11, 0.95);
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    z-index: 2;
}

.game-info h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
}

.game-info p {
    margin: 0;
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 600;
}

.tile-featured-game {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 380px;
}

.tile-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.tile-featured-game>a {
    position: relative;
    z-index: 2;
}

.tile-link {
    color: inherit;
    text-decoration: none;
}

.tile-featured-game::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5, 6, 11, 0) 0%, rgba(5, 6, 11, 0.95) 100%);
    z-index: 1;
    pointer-events: none;
}