:root {
    --bg-0: #0b0b16;
    --bg-1: #10101e;
    --text: #f4f4fa;
    --text-60: rgba(244, 244, 250, 0.7);
    --text-40: rgba(244, 244, 250, 0.5);
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.16);
    --surface: rgba(255, 255, 255, 0.05);
    --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    min-height: 100%;
}

body {
    font-family: var(--font);
    color: var(--text);
    background:
        radial-gradient(1100px 700px at 85% -10%, rgba(124, 58, 237, 0.22), transparent 60%),
        radial-gradient(900px 650px at -15% 110%, rgba(217, 70, 239, 0.13), transparent 60%),
        linear-gradient(165deg, var(--bg-0), var(--bg-1) 55%, #141229);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

.wrap {
    max-width: 920px;
    margin: 0 auto;
    padding: 48px 22px calc(48px + env(safe-area-inset-bottom, 0px));
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Hero */
.hero {
    text-align: center;
    padding: 16px 0 36px;
}

.hero-mark {
    display: inline-block;
    filter: drop-shadow(0 10px 24px rgba(139, 92, 246, 0.35));
    animation: pop 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes pop {
    0% {
        transform: scale(0.5) rotate(-8deg);
        opacity: 0;
    }

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

.hero-title {
    margin-top: 8px;
    font-size: clamp(34px, 8vw, 52px);
    font-weight: 800;
    letter-spacing: -1.5px;
    background: linear-gradient(100deg, #fff 10%, #c4b5fd 55%, #f0abfc 95%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-dot {
    margin: 0 6px;
    -webkit-text-fill-color: #d946ef;
}

.hero-sub {
    margin-top: 10px;
    font-size: 15px;
    color: var(--text-60);
}

/* Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 16px;
}

.game-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 24px 22px 22px;
    border-radius: 22px;
    text-decoration: none;
    color: var(--text);
    background:
        radial-gradient(120% 100% at 0% 0%, color-mix(in srgb, var(--c1) 22%, transparent), transparent 55%),
        var(--surface);
    border: 1px solid var(--border);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

.game-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, var(--c1), var(--c2));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.5;
    pointer-events: none;
}

.game-card.live:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--c1) 60%, transparent);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.4), 0 0 30px color-mix(in srgb, var(--c1) 28%, transparent);
}

.game-card.soon {
    opacity: 0.62;
    cursor: default;
}

.game-emoji {
    font-size: 40px;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

.game-name {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.4px;
    margin-top: 4px;
}

.game-desc {
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--text-60);
    flex: 1;
}

.game-go {
    margin-top: 12px;
    align-self: flex-start;
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--c1), var(--c2));
    color: #fff;
    box-shadow: 0 6px 16px color-mix(in srgb, var(--c1) 35%, transparent);
}

.game-card.soon .game-go {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-40);
    box-shadow: none;
}

.badge-live,
.badge-soon {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.badge-live {
    background: rgba(52, 211, 153, 0.16);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.4);
}

.badge-soon {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-40);
    border: 1px solid var(--border);
}

/* Footer */
.foot {
    margin-top: auto;
    padding-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12.5px;
    color: var(--text-40);
}

.foot-link {
    color: var(--text-60);
    text-decoration: none;
}

.foot-link:hover {
    color: var(--text);
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before {
        animation: none !important;
        transition: none !important;
    }
}
