/* ═══════════════════════════════════════════════════════
   OutCast — Shared Styles
═══════════════════════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Poppins', sans-serif;
    background: #010103;
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
a { text-decoration: none; color: inherit; }
button { font-family: inherit; }
img { display: block; }
ul { list-style: none; }

/* ═══════════════════════════════════════════
   HERO (home page only)
═══════════════════════════════════════════ */
.hero {
    position: relative;
    width: 100%;
    height: 64vh;
    min-height: 480px;
    overflow: hidden;
}
.mosaic-wrap {
    position: absolute;
    inset: -60% -30%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transform: rotate(-12deg) scale(1.8);
    transform-origin: center center;
    z-index: 0;
    pointer-events: none;
}
.mosaic-row {
    display: flex;
    gap: 10px;
    animation: mosaic-scroll 60s linear infinite;
}
.mosaic-row:nth-child(even) {
    margin-left: -80px;
    animation-direction: reverse;
}
.mosaic-row img {
    width: 110px;
    height: 110px;
    border-radius: 14px;
    object-fit: cover;
    flex-shrink: 0;
    opacity: 0.7;
}
@keyframes mosaic-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-1320px); }
}
.hero-overlay-dark {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1; pointer-events: none;
}
.hero-overlay-top {
    position: absolute; left: 0; right: 0; top: 0;
    height: 120px;
    background: linear-gradient(to bottom, rgba(1,1,3,0.8), transparent);
    z-index: 2; pointer-events: none;
}
.hero-overlay-bottom {
    position: absolute; left: 0; right: 0; bottom: 0;
    height: 160px;
    background: linear-gradient(to bottom, transparent, rgba(1,1,3,0.7), #010103);
    z-index: 2; pointer-events: none;
}
.hero-content {
    position: absolute; inset: 0;
    z-index: 10;
    max-width: 780px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 24px;
}
.hero-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
}
.hero-title span {
    display: inline-block;
    opacity: 0;
    transform: translateY(12px);
    animation: word-in 0.5s cubic-bezier(0.16,1,0.3,1) forwards;
}
.hero-title span:nth-child(1) { animation-delay: 0.1s; }
.hero-title span:nth-child(2) { animation-delay: 0.18s; }
.hero-title span:nth-child(3) { animation-delay: 0.26s; }
.hero-title span:nth-child(4) { animation-delay: 0.34s; }
.hero-title span:nth-child(5) { animation-delay: 0.42s; }
@keyframes word-in {
    to { opacity: 1; transform: translateY(0); }
}
.hero-sub {
    margin-top: 16px;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.6;
    max-width: 480px;
    font-weight: 300;
}
.hero-sub span {
    display: inline-block;
    opacity: 0;
    animation: word-in 0.4s cubic-bezier(0.16,1,0.3,1) forwards;
}
.hero-row {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 28px;
}
.hero-stats {
    display: flex;
    gap: 32px;
}
.hero-stat {
    display: flex;
    flex-direction: column;
}
.hero-stat-val {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.2;
}
.hero-stat-label {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.6);
    margin-top: 2px;
}

/* ═══════════════════════════════════════════
   PAGE HEADER (subpages)
═══════════════════════════════════════════ */
.page-header {
    position: relative;
    padding: 140px 24px 60px;
    text-align: center;
    overflow: hidden;
}
.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(255,255,255,0.03) 0%, transparent 60%);
    pointer-events: none;
}
.page-header h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    position: relative;
}
.page-header p {
    margin-top: 12px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    position: relative;
}

/* ═══════════════════════════════════════════
   NAV
═══════════════════════════════════════════ */
.nav {
    position: absolute;
    top: 0; left: 0; right: 0;
    z-index: 50;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 24px 0;
}
.nav--fixed {
    position: fixed;
    background: rgba(1,1,3,0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 16px 24px;
    max-width: 100%;
}
.nav--fixed .nav-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}
.nav-brand {
    display: flex;
    align-items: center;
    gap: 6px;
}
.nav-brand span {
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -0.01em;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}
.nav-links a {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(255,255,255,0.5);
    padding: 6px 12px;
    transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: #fff; }
.nav-mobile {
    display: none;
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    padding: 8px;
}

/* ═══════════════════════════════════════════
   SHARED COMPONENTS
═══════════════════════════════════════════ */
.main {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

/* Background texture & ambient glow for content area */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.018;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 128px 128px;
}
body::after {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1000px;
    height: 1000px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.01) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

/* Subtle dot grid on content sections */
.main::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.2;
    background-image: radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: linear-gradient(to bottom, transparent, rgba(0,0,0,0.3) 20%, rgba(0,0,0,0.3) 80%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, rgba(0,0,0,0.3) 20%, rgba(0,0,0,0.3) 80%, transparent);
}

/* Buttons */
.btn-white {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #000;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 100px;
    border: 1px solid #fff;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}
.btn-white:hover { background: #e8e8e8; }
.btn-white svg {
    width: 14px; height: 14px;
    stroke: currentColor; fill: none;
    stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 500;
    padding: 10px 24px;
    border-radius: 100px;
    border: 1px solid rgba(255,255,255,0.15);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    white-space: nowrap;
}
.btn-outline:hover {
    border-color: rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.04);
}
.btn-outline svg {
    width: 14px; height: 14px;
    stroke: currentColor; fill: none;
    stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* Section headers */
.sh-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.32em;
    color: rgba(255,255,255,0.5);
}
.sh-label::before {
    content: "";
    width: 28px;
    height: 1px;
    background: rgba(255,255,255,0.5);
}
.sh-title {
    margin-top: 14px;
    font-family: 'Montserrat', sans-serif;
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1;
    text-transform: lowercase;
    background: linear-gradient(180deg, #fff 0%, #fff 55%, rgba(255,255,255,0.35) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.sh-desc {
    margin-top: 14px;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.45);
    line-height: 1.6;
    max-width: 42ch;
}
@media (max-width: 720px) {
    .sh-title { font-size: 2rem; }
}

/* Divider */
.divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.06), transparent);
    margin: 48px 0;
}

/* ═══════════════════════════════════════════
   GAME CARDS
═══════════════════════════════════════════ */
.games-section { padding-top: 40px; }
.games-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 12px;
}
.games-header .btn-white,
.games-header .btn-outline {
    font-size: 0.72rem;
    padding: 7px 18px;
}
.games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 20px;
}
.gc {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    border-radius: 16px;
    background: #080c18;
    height: 180px;
    cursor: pointer;
    box-shadow: 0 16px 36px rgba(5,7,15,0.5);
}
.gc-bg {
    position: absolute; inset: 0; z-index: 0;
}
.gc-bg img {
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.30;
    transition: transform 0.35s ease, opacity 0.35s ease;
}
.gc:hover .gc-bg img {
    transform: scale(1.06);
    opacity: 0.42;
}
.gc-grad {
    position: absolute; left: 0; right: 0; bottom: 0;
    height: 100px;
    background: linear-gradient(to top, rgba(4,5,12,0.85), rgba(4,5,12,0.25), transparent);
    z-index: 1; pointer-events: none;
}
.gc-body {
    position: relative; z-index: 2;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.gc-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255,255,255,0.88);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.gc-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.45);
}
.gc-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}
.gc-meta svg {
    width: 12px; height: 12px;
    fill: currentColor;
}

/* Game card badges */
.gc-badges {
    position: absolute;
    top: 12px; left: 12px;
    z-index: 3;
    display: flex;
    gap: 6px;
}
.gc-badge {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 5px 9px;
    border-radius: 999px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.gc-badge--new {
    background: rgba(46,204,113,0.18);
    color: #7de2a8;
    border: 1px solid rgba(46,204,113,0.35);
}
.gc-badge--trending {
    background: rgba(243,156,18,0.18);
    color: #f9c97a;
    border: 1px solid rgba(243,156,18,0.4);
}

/* Larger game card variant (for games page) */
.gc--lg {
    height: 220px;
}
.gc--featured {
    grid-column: span 2;
    height: 260px;
}

/* ═══════════════════════════════════════════
   TEAM CARDS
═══════════════════════════════════════════ */
.team-section { padding-top: 48px; }
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.tc {
    overflow: hidden;
    border-radius: 14px;
    background: #060609;
    border: 1px solid rgba(255,255,255,0.04);
    transition: border-color 0.25s;
}
.tc:hover { border-color: rgba(255,255,255,0.1); }
.tc-img {
    position: relative;
    height: 190px;
    overflow: hidden;
    background: #0a0a0f;
}
.tc-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center 20%;
}
.tc-img-grad {
    position: absolute; left: 0; right: 0; bottom: 0;
    height: 96px;
    background: linear-gradient(to top, #060609, rgba(6,6,9,0.7), transparent);
    pointer-events: none;
}
.tc-body { padding: 16px 20px 20px; }
.tc-name {
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.2;
}
.tc-role {
    margin-top: 4px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.45);
}
.tc-socials {
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.tc-socials a {
    color: rgba(255,255,255,0.55);
    transition: color 0.2s;
    display: flex;
}
.tc-socials a:hover { color: #fff; }
.tc-socials svg { width: 18px; height: 18px; }

/* ═══════════════════════════════════════════
   ABOUT (home - horizontal strip with numbers)
═══════════════════════════════════════════ */
.numbers-strip {
    padding-top: 48px;
}
.numbers-row {
    display: flex;
    gap: 0;
    margin-top: 24px;
}
.num-item {
    flex: 1;
    padding: 28px 24px;
    border-left: 1px solid rgba(255,255,255,0.06);
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.num-item:first-child { border-left: none; }
.num-val {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1;
}
.num-label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
    font-weight: 400;
    line-height: 1.4;
}

/* ═══════════════════════════════════════════
   ABOUT (detailed, about page)
═══════════════════════════════════════════ */
.about-block {
    margin-top: 40px;
}
.about-block p {
    font-size: 0.92rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.8;
    font-weight: 300;
    max-width: 600px;
}
.about-block p + p { margin-top: 16px; }
.about-block p strong {
    color: rgba(255,255,255,0.9);
    font-weight: 600;
}

/* ═══════════════════════════════════════════
   CONTACT FORM
═══════════════════════════════════════════ */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 28px;
    max-width: 600px;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.form-group--full {
    grid-column: span 2;
}
.form-group label {
    font-size: 0.72rem;
    font-weight: 500;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.form-input {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 0.88rem;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.2s, background 0.2s;
    outline: none;
    resize: vertical;
}
.form-input::placeholder { color: rgba(255,255,255,0.2); }
.form-input:focus {
    border-color: rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.06);
}
textarea.form-input { min-height: 140px; }
.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.4)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}
.form-select option {
    background: #0a0a10;
    color: #fff;
}

/* Contact info sidebar */
.contact-layout {
    display: flex;
    gap: 60px;
    align-items: flex-start;
    margin-top: 10px;
}
.contact-main { flex: 1; min-width: 0; }
.contact-side {
    flex: 0 0 280px;
    padding-top: 28px;
}
.contact-card {
    padding: 24px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.015);
}
.contact-card h3 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 16px;
}
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
}
.contact-item + .contact-item {
    border-top: 1px solid rgba(255,255,255,0.04);
}
.contact-item-icon {
    width: 32px; height: 32px;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: rgba(255,255,255,0.5);
}
.contact-item-icon svg { width: 15px; height: 15px; }
.contact-item-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.contact-item-text span:first-child {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.35);
    font-weight: 500;
}
.contact-item-text span:last-child {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.75);
}

/* ═══════════════════════════════════════════
   CTA STRIP
═══════════════════════════════════════════ */
.cta-strip {
    margin-top: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 32px 36px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.015);
}
.cta-strip h3 {
    font-size: 1.2rem;
    font-weight: 600;
}
.cta-strip p {
    margin-top: 4px;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.45);
}

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
.footer {
    margin-top: 56px;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 32px;
    padding-bottom: 40px;
}
.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 1rem;
}
.footer-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}
.footer-nav a {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.35);
    padding: 4px 10px;
    transition: color 0.2s;
}
.footer-nav a:hover { color: rgba(255,255,255,0.7); }
.footer-socials {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.footer-socials a {
    color: rgba(255,255,255,0.45);
    display: flex;
    transition: color 0.2s;
}
.footer-socials a:hover { color: #fff; }
.footer-socials svg { width: 18px; height: 18px; }
.footer-copy {
    margin-top: 14px;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.25);
}

/* ═══════════════════════════════════════════
   BACK TO TOP
═══════════════════════════════════════════ */
.btt {
    position: fixed;
    bottom: 20px; right: 20px;
    z-index: 70;
    width: 44px; height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(1,1,3,0.85);
    color: #fff;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.45);
    cursor: pointer;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s, background 0.2s;
}
.btt.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.btt:hover { background: rgba(20,20,30,1); }
.btt svg { width: 18px; height: 18px; }

/* ═══════════════════════════════════════════
   PAGE TRANSITION
═══════════════════════════════════════════ */
.page-transition {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: #010103;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
}
.page-transition img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    opacity: 0;
    transform: scale(0.7);
    filter: brightness(0.9);
}

/* ── Leaving page: fade in overlay, then logo appears ── */
.page-transition.leaving {
    pointer-events: all;
    animation: pt-overlay-in 0.5s cubic-bezier(0.4, 0, 0.1, 1) forwards;
}
.page-transition.leaving img {
    animation: pt-logo-in 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.25s forwards;
}

/* ── Arriving on new page: logo pulses out, overlay fades ── */
.page-transition.arriving {
    opacity: 1;
    pointer-events: all;
}
.page-transition.arriving img {
    opacity: 1;
    transform: scale(1);
    animation: pt-logo-out 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.15s forwards;
}
.page-transition.arriving {
    animation: pt-overlay-out 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

@keyframes pt-overlay-in {
    0%   { opacity: 0; }
    100% { opacity: 1; }
}
@keyframes pt-overlay-out {
    0%   { opacity: 1; }
    100% { opacity: 0; pointer-events: none; }
}
@keyframes pt-logo-in {
    0%   { opacity: 0; transform: scale(0.7); }
    50%  { opacity: 1; transform: scale(1.06); }
    100% { opacity: 1; transform: scale(1); }
}
@keyframes pt-logo-out {
    0%   { opacity: 1; transform: scale(1); }
    40%  { opacity: 1; transform: scale(1.08); }
    100% { opacity: 0; transform: scale(0.85); }
}

/* ═══════════════════════════════════════════
   SCROLL REVEAL
═══════════════════════════════════════════ */
.sr {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s cubic-bezier(0.16,1,0.3,1), transform 0.55s cubic-bezier(0.16,1,0.3,1);
}
.sr.vis { opacity: 1; transform: translateY(0); }
.sr-d1 { transition-delay: 0.06s; }
.sr-d2 { transition-delay: 0.12s; }
.sr-d3 { transition-delay: 0.18s; }
.sr-d4 { transition-delay: 0.24s; }

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 768px) {
    .games-grid { grid-template-columns: repeat(2, 1fr); }
    .gc--featured { grid-column: span 2; height: 200px; }
    .hero-stats { gap: 20px; }
    .hero-stat-val { font-size: 1rem; }
    .numbers-row { flex-wrap: wrap; }
    .num-item { min-width: 50%; border-left: none; border-top: 1px solid rgba(255,255,255,0.06); }
    .num-item:nth-child(-n+2) { border-top: none; }
    .contact-layout { flex-direction: column; gap: 32px; }
    .contact-side { flex: none; width: 100%; }
    .cta-strip { flex-direction: column; text-align: center; }
}
@media (max-width: 580px) {
    .nav-links { display: none; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 60px; left: 0; right: 0;
        background: rgba(1,1,3,0.97);
        backdrop-filter: blur(16px);
        padding: 20px 24px;
        border-bottom: 1px solid rgba(255,255,255,0.06);
        gap: 4px;
        z-index: 99;
    }
    .nav--fixed .nav-links.open { top: 54px; }
    .nav-mobile { display: block; }
    .games-grid { grid-template-columns: 1fr; }
    .gc--featured { grid-column: span 1; height: 180px; }
    .hero-row { flex-direction: column; align-items: flex-start; gap: 20px; }
    .hero-stats { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); }
    .gc { height: 160px; }
    .form-grid { grid-template-columns: 1fr; }
    .form-group--full { grid-column: span 1; }
    .numbers-row { flex-direction: column; }
    .num-item { min-width: 100%; border-top: 1px solid rgba(255,255,255,0.06); border-left: none; }
    .num-item:first-child { border-top: none; }
}

/* ═══════════════════════════════════════════
   DEVLOG
═══════════════════════════════════════════ */
.devlog-list {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin-top: 28px;
    position: relative;
}
.devlog-list::before {
    content: "";
    position: absolute;
    left: 9px; top: 8px; bottom: 8px;
    width: 1px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.15), rgba(255,255,255,0.02));
}
.dl-entry {
    position: relative;
    padding: 18px 22px 20px 44px;
    background: rgba(255,255,255,0.015);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
}
.dl-entry::before {
    content: "";
    position: absolute;
    left: 4px; top: 24px;
    width: 11px; height: 11px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(1,1,3,1), 0 0 0 4px rgba(255,255,255,0.1);
}
.dl-meta {
    display: flex;
    gap: 14px;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: rgba(255,255,255,0.38);
    margin-bottom: 8px;
}
.dl-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 8px;
}
.dl-body {
    font-size: 0.88rem;
    line-height: 1.65;
    color: rgba(255,255,255,0.65);
    white-space: pre-wrap;
}
.dl-empty {
    padding: 40px;
    text-align: center;
    color: rgba(255,255,255,0.3);
    font-size: 0.9rem;
}
.feed-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.45);
    text-transform: uppercase;
    letter-spacing: 0.22em;
    transition: color 0.2s;
}
.feed-link:hover { color: #fff; }

/* ═══════════════════════════════════════════
   CAREERS
═══════════════════════════════════════════ */
.roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
    margin-top: 28px;
}
.role-card {
    padding: 22px 24px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    transition: border-color 0.2s, transform 0.2s;
}
.role-card:hover {
    border-color: rgba(255,255,255,0.18);
    transform: translateY(-2px);
}
.role-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 8px;
}
.role-desc {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.6;
    margin-bottom: 16px;
}
.role-apply {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}
.role-apply:hover { color: #fff; }

/* Discord CTA */
.discord-cta {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px 26px;
    background: linear-gradient(135deg, rgba(88,101,242,0.14), rgba(88,101,242,0.04));
    border: 1px solid rgba(88,101,242,0.25);
    border-radius: 16px;
    margin-top: 24px;
}
.discord-cta-icon {
    width: 44px; height: 44px;
    flex-shrink: 0;
    display: grid; place-items: center;
    border-radius: 12px;
    background: rgba(88,101,242,0.25);
    color: #c7ccf5;
}
.discord-cta-icon svg { width: 24px; height: 24px; fill: currentColor; }
.discord-cta-text { flex: 1; }
.discord-cta-text h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 700;
}
.discord-cta-text p {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    margin-top: 2px;
}
.discord-cta a {
    padding: 9px 18px;
    border-radius: 999px;
    background: #5865F2;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: background 0.2s;
}
.discord-cta a:hover { background: #6a75f5; }

/* ═══════════════════════════════════════════
   ANALYTICS
═══════════════════════════════════════════ */
.analytics-login {
    max-width: 420px;
    margin: 60px auto;
    padding: 28px 30px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
}
.analytics-panel {
    display: none;
    margin-top: 24px;
}
.analytics-panel.show { display: block; }
.chart-wrap {
    padding: 22px 24px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    margin-top: 16px;
}
.chart-wrap h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.7);
}

/* ═══════════════════════════════════════════
   404 PAGE
═══════════════════════════════════════════ */
.nf-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
    position: relative;
    overflow: hidden;
    padding: 40px;
    text-align: center;
}
.nf-code {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(6rem, 22vw, 14rem);
    font-weight: 900;
    letter-spacing: -0.05em;
    line-height: 0.9;
    background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(255,255,255,0.15));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.nf-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
}
.nf-desc {
    color: rgba(255,255,255,0.5);
    max-width: 420px;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ═══════════════════════════════════════════
   ANNOUNCEMENT BANNER (floating pill)
═══════════════════════════════════════════ */
.announce-bar {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    z-index: 500;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 18px 12px 20px;
    max-width: calc(100vw - 40px);
    background: rgba(10,10,15,0.92);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 999px;
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    box-shadow: 0 20px 60px rgba(0,0,0,0.55), 0 2px 8px rgba(0,0,0,0.4);
    font-family: 'Poppins', sans-serif;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.92);
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.2);
    animation: announce-in 0.6s ease forwards 0.4s;
}
@keyframes announce-in {
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.announce-bar.closing {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
    pointer-events: none;
}
.announce-bar-icon {
    width: 26px; height: 26px;
    flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd27a, #f9a826);
    color: #2a1d05;
    display: grid;
    place-items: center;
    font-size: 0.8rem;
    font-weight: 800;
    box-shadow: 0 0 0 3px rgba(249,168,38,0.15), 0 2px 12px rgba(249,168,38,0.4);
}
.announce-bar-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 60ch;
}
.announce-bar-close {
    width: 24px; height: 24px;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    border: none;
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1;
    display: grid;
    place-items: center;
    transition: background 0.2s, color 0.2s;
}
.announce-bar-close:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
}
@media (max-width: 520px) {
    .announce-bar { font-size: 0.75rem; padding: 10px 14px 10px 16px; }
    .announce-bar-text { max-width: calc(100vw - 140px); }
}

/* Growth deltas on game cards */
.gc-delta {
    position: absolute;
    top: 12px; right: 12px;
    z-index: 3;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 4px 8px;
    border-radius: 6px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.gc-delta--up {
    background: rgba(46,204,113,0.18);
    color: #7de2a8;
    border: 1px solid rgba(46,204,113,0.35);
}
.gc-delta--down {
    background: rgba(231,76,60,0.16);
    color: #f08080;
    border: 1px solid rgba(231,76,60,0.35);
}

/* Team modal */
.tm-overlay {
    position: fixed; inset: 0;
    background: rgba(1,1,3,0.86);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: none; align-items: center; justify-content: center;
    z-index: 1000;
    padding: 20px;
}
.tm-overlay.show { display: flex; }
.tm-modal {
    max-width: 480px;
    width: 100%;
    background: #07070b;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 18px;
    overflow: hidden;
}
.tm-hero {
    position: relative;
    height: 160px;
    background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.015));
    display: flex;
    align-items: flex-end;
    padding: 24px 28px;
}
.tm-hero img {
    width: 86px; height: 86px;
    border-radius: 50%;
    border: 3px solid #07070b;
    background: #0a0a10;
    object-fit: cover;
    position: absolute;
    bottom: -40px; left: 28px;
}
.tm-body {
    padding: 56px 28px 28px;
}
.tm-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
}
.tm-role {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.5);
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}
.tm-bio {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
    margin-top: 14px;
}
.tm-close {
    position: absolute;
    top: 14px; right: 18px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 1.6rem;
    cursor: pointer;
}
.tm-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    padding: 8px 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 999px;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.8);
    transition: background 0.2s;
}
.tm-link:hover { background: rgba(255,255,255,0.1); }

.tc { cursor: pointer; }

/* Presence dot */
.presence {
    display: inline-block;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    margin-right: 6px;
    flex-shrink: 0;
}
.presence--online { background: #7de2a8; box-shadow: 0 0 0 2px rgba(125,226,168,0.2); }
.presence--ingame { background: #f9c97a; box-shadow: 0 0 0 2px rgba(249,201,122,0.2); }
.presence--studio { background: #8ab4f8; box-shadow: 0 0 0 2px rgba(138,180,248,0.2); }

/* Quotes section */
.quotes-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 28px;
}
.quote-card {
    padding: 22px 24px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    position: relative;
}
.quote-card::before {
    content: "\"";
    position: absolute;
    top: 4px; left: 16px;
    font-family: 'Montserrat', serif;
    font-size: 4rem;
    color: rgba(255,255,255,0.06);
    line-height: 1;
}
.quote-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.78);
    position: relative;
    font-style: italic;
}
.quote-author {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.45);
    margin-top: 12px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

/* ═══════════════════════════════════════════
   ROADMAP
═══════════════════════════════════════════ */
.roadmap-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 28px;
}
.rm-col {
    padding: 20px 18px 22px;
    background: rgba(255,255,255,0.015);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    min-height: 200px;
}
.rm-col-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.rm-col-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    display: flex;
    align-items: center;
    gap: 10px;
}
.rm-col-title::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--dot, #888);
    box-shadow: 0 0 0 3px rgba(255,255,255,0.04);
}
.rm-col[data-status="planned"] .rm-col-title { --dot: #8ab4f8; color: #b4cdfa; }
.rm-col[data-status="progress"] .rm-col-title { --dot: #f9c97a; color: #f9d499; }
.rm-col[data-status="shipped"] .rm-col-title { --dot: #7de2a8; color: #9aecbc; }
.rm-col-count {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.4);
    font-weight: 600;
}
.rm-card {
    padding: 14px 16px;
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    margin-bottom: 10px;
    transition: border-color 0.2s, transform 0.2s;
}
.rm-card:hover { border-color: rgba(255,255,255,0.15); transform: translateY(-1px); }
.rm-card-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: rgba(255,255,255,0.92);
    margin-bottom: 4px;
}
.rm-card-desc {
    font-size: 0.76rem;
    line-height: 1.55;
    color: rgba(255,255,255,0.5);
}
.rm-empty {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.25);
    text-align: center;
    padding: 20px 0;
    font-style: italic;
}
@media (max-width: 820px) {
    .roadmap-board { grid-template-columns: 1fr; }
}

/* Live player map */
.map-wrap {
    position: relative;
    padding: 32px 30px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    overflow: hidden;
    margin-top: 28px;
}
.map-canvas {
    display: block;
    width: 100%;
    height: 240px;
}
.map-label {
    position: absolute;
    top: 20px; left: 26px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: rgba(255,255,255,0.5);
}
.map-count {
    position: absolute;
    bottom: 20px; right: 26px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.map-count span {
    display: block;
    font-size: 0.62rem;
    font-weight: 600;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-top: 2px;
}
