/* ogemca styles. dark theme, orange + blue accents. */

/* vars */
:root {
    --bg:          #0a0a0d;
    --bg-elev:     #141419;   /* cards */
    --bg-elev-2:   #1c1c24;
    --border:      rgba(255, 255, 255, 0.08);
    --border-soft: rgba(255, 255, 255, 0.05);

    --text:        #f5f5f7;
    --text-dim:    #a1a1aa;
    --text-faint:  #6b6b76;

    --orange:      #ff5e00;
    --blue:        #00b2ff;
    --accent-grad: linear-gradient(120deg, #ff5e00, #00b2ff);

    --maxw:        1120px;
    --radius:      16px;
    --radius-sm:   10px;
    --nav-h:       72px;

    --ease:        cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); overflow-x: hidden; }

body {
    font-family: "Inter", system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
    font-family: "Space Grotesk", "Inter", sans-serif;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

/* shared bits */
.container {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
}

section { position: relative; }

.eyebrow {
    display: inline-block;
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 18px;
}

.section-head { text-align: center; margin-bottom: 56px; }

.section-head h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    text-transform: uppercase;
}

/* triple stop so the shimmer loops without a seam */
.gradient-text {
    background: linear-gradient(120deg, #ff5e00, #00b2ff, #ff5e00);
    background-size: 220% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: shimmer 4.5s linear infinite;
}
@keyframes shimmer {
    to { background-position: 220% center; }
}

/* buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 13px 26px;
    border-radius: var(--radius-sm);
    font-family: "Space Grotesk", sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease),
                background 0.2s var(--ease), border-color 0.2s var(--ease);
}

/* solid orange on purpose: the orange/blue gradient gets muddy in the middle */
.btn-primary {
    background: var(--orange);
    color: #0a0a0d;
    font-weight: 700;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -8px rgba(255, 94, 0, 0.55);
    filter: brightness(1.08);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}
.btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-2px);
}

.btn-ghost {
    padding: 11px 20px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-dim);
    border-color: var(--border);
    font-size: 0.9rem;
}
.btn-ghost:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.25); }

.btn-disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* nav */
#navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-h);
    z-index: 100;
    display: flex;
    align-items: center;
    transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
    border-bottom: 1px solid transparent;
}
#navbar.scrolled {
    background: rgba(10, 10, 13, 0.8);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom-color: var(--border-soft);
}

.nav-container {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-link { display: flex; align-items: center; }
.logo-link img { height: 26px; width: auto; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
    list-style: none;
}
.nav-links a {
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dim);
    transition: color 0.2s var(--ease);
}
.nav-links a:hover { color: var(--text); }

.nav-back {
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dim);
    transition: color 0.2s var(--ease);
}
.nav-back:hover { color: var(--text); }

/* hamburger (mobile) */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
}
.menu-toggle span {
    width: 24px; height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* hero */
.hero {
    position: relative;       /* so overflow:hidden actually clips the glows inside */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: calc(var(--nav-h) + 40px) 24px 80px;
    overflow: hidden;
}

/* the two blurry color blobs behind the hero */
.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.3;
    z-index: 0;
    pointer-events: none;
}
.hero::before {
    width: 520px; height: 520px;
    background: var(--orange);
    top: 8%; left: -8%;
}
.hero::after {
    width: 560px; height: 560px;
    background: var(--blue);
    bottom: 0%; right: -10%;
}

/* faint wolf in the background */
.hero-watermark {
    position: absolute;
    z-index: 0;
    width: min(620px, 80vw);
    opacity: 0.015;
    pointer-events: none;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
}

.hero-inner { position: relative; z-index: 2; max-width: 760px; }

.hero-title {
    font-size: clamp(1.15rem, 2.6vw, 1.6rem);
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 16px;
}

.hero-sub {
    font-size: clamp(1rem, 1.6vw, 1.1rem);
    color: var(--text-dim);
    max-width: 540px;
    margin: 0 auto 38px;
}

.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.scroll-hint {
    position: absolute;
    bottom: 30px; left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: var(--text-faint);
    font-size: 1.4rem;
    animation: bounce 2s infinite;
}
@keyframes bounce {
    0%, 100% { transform: translate(-50%, 0); }
    50%      { transform: translate(-50%, 8px); }
}

/* games */
.games { padding: 110px 0; }

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    gap: 28px;
    max-width: 860px;
    margin: 0 auto;
}

.game-card {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.3s var(--ease), border-color 0.3s var(--ease),
                box-shadow 0.3s var(--ease);
}
.game-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.7);
}

/* video / image / embed all go in here, forced to 16:9 */
.game-media {
    position: relative;
    aspect-ratio: 16 / 9;
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 94, 0, 0.18), transparent 60%),
        radial-gradient(circle at 75% 70%, rgba(0, 178, 255, 0.18), transparent 60%),
        var(--bg-elev-2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.game-media img,
.game-media video { width: 100%; height: 100%; object-fit: cover; }
.game-media iframe { width: 100%; height: 100%; border: 0; display: block; }

.games-note {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-faint);
    font-family: "Space Grotesk", sans-serif;
    padding: 30px 0;
}

.media-placeholder {
    text-align: center;
    color: var(--text-faint);
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}
.media-placeholder .ph-icon { font-size: 1.8rem; display: block; margin-bottom: 6px; }

.badge {
    position: absolute;
    top: 14px; left: 14px;
    padding: 5px 12px;
    border-radius: 999px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    background: rgba(10, 10, 13, 0.7);
    backdrop-filter: blur(6px);
    border: 1px solid var(--border);
    color: var(--text);
}

.game-body { padding: 26px; }
.game-body h3 { font-size: 1.45rem; margin-bottom: 12px; }
.game-body p { color: var(--text-dim); font-size: 0.98rem; margin-bottom: 22px; }

.game-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* contact */
.contact {
    padding: 110px 0 120px;
    text-align: center;
    border-top: 1px solid var(--border-soft);
}
.contact h2 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    text-transform: uppercase;
    margin-bottom: 18px;
}
.contact-lead {
    color: var(--text-dim);
    font-size: 1.1rem;
    max-width: 520px;
    margin: 0 auto 34px;
}
.contact-email {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(1.3rem, 3.5vw, 2rem);
    font-weight: 700;
    margin-bottom: 40px;
}
.contact-email a { transition: opacity 0.2s var(--ease); }
.contact-email a:hover { opacity: 0.8; }

.socials { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.social-link {
    width: 46px; height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    color: var(--text-dim);
    transition: transform 0.2s var(--ease), color 0.2s var(--ease),
                border-color 0.2s var(--ease);
}
.social-link:hover {
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
}
.social-link svg { width: 20px; height: 20px; fill: currentColor; }

/* footer */
footer {
    border-top: 1px solid var(--border-soft);
    padding: 44px 0;
}
.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.footer-content img { height: 22px; width: auto; opacity: 0.85; }
.footer-meta { text-align: right; }
.footer-links { display: flex; gap: 22px; justify-content: flex-end; margin-bottom: 6px; }
.footer-links a {
    font-size: 0.9rem;
    color: var(--text-dim);
    transition: color 0.2s var(--ease);
}
.footer-links a:hover { color: var(--text); }
.copyright { font-size: 0.82rem; color: var(--text-faint); }

/* big 404 number */
.error-code {
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    font-size: clamp(5rem, 18vw, 11rem);
    line-height: 1;
    letter-spacing: -0.04em;
    margin-bottom: 6px;
}

/* privacy page */
.policy {
    max-width: 820px;
    margin: 0 auto;
    padding: calc(var(--nav-h) + 70px) 24px 90px;
}
.policy h1 {
    font-size: clamp(2.2rem, 6vw, 3.2rem);
    text-transform: uppercase;
    margin-bottom: 12px;
}
.policy .updated {
    color: var(--text-faint);
    font-size: 0.9rem;
    margin-bottom: 40px;
}
.policy h2 {
    font-size: 1.3rem;
    margin: 40px 0 14px;
    padding-top: 8px;
}
.policy p { color: var(--text-dim); margin-bottom: 16px; }
.policy strong { color: var(--text); font-weight: 600; }
.policy a { color: var(--blue); transition: opacity 0.2s var(--ease); }
.policy a:hover { opacity: 0.8; text-decoration: underline; }
.policy .intro {
    font-size: 1.1rem;
    color: var(--text);
    padding: 22px 24px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 36px;
}
.policy .closing {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--border-soft);
    color: var(--text-faint);
    font-size: 0.85rem;
}

/* fade-in-on-scroll */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* the little animated touches */

/* hero stuff fades up one after another */
.hero-inner > * { animation: fadeUp 0.7s var(--ease) backwards; }
.hero .eyebrow  { animation-delay: 0.05s; }
.hero-title     { animation-delay: 0.18s; }
.hero-sub       { animation-delay: 0.30s; }
.hero-cta       { animation-delay: 0.42s; }
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* glow blobs drift around + pulse */
.hero::before { animation: drift1 13s ease-in-out infinite alternate; }
.hero::after  { animation: drift2 16s ease-in-out infinite alternate; }
@keyframes drift1 {
    from { transform: translate(0, 0) scale(1);        opacity: 0.24; }
    to   { transform: translate(110px, 70px) scale(1.3); opacity: 0.45; }
}
@keyframes drift2 {
    from { transform: translate(0, 0) scale(1);          opacity: 0.22; }
    to   { transform: translate(-110px, -60px) scale(1.25); opacity: 0.42; }
}

/* wolf bobs gently */
.hero-watermark { animation: floatWM 8s ease-in-out infinite; }
@keyframes floatWM {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50%      { transform: translate(-50%, calc(-50% - 28px)) scale(1.04); }
}

/* nav link underline grows on hover */
.nav-links a { position: relative; }
.nav-links a::after {
    content: "";
    position: absolute;
    left: 0; bottom: -4px;
    height: 2px; width: 0;
    background: var(--accent-grad);
    border-radius: 2px;
    transition: width 0.28s var(--ease);
}
.nav-links a:hover::after { width: 100%; }

/* shine sweep on the orange button */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
    content: "";
    position: absolute;
    top: 0; left: -130%;
    width: 60%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s var(--ease);
    pointer-events: none;
}
.btn-primary:hover::after { left: 130%; }

/* placeholder icon floats, media zooms on hover */
.media-placeholder .ph-icon { animation: floatY 2.4s ease-in-out infinite; }
@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}
.game-media img,
.game-media video { transition: transform 0.5s var(--ease); }
.game-card:hover .game-media img,
.game-card:hover .game-media video { transform: scale(1.05); }

/* badge pulse */
.badge { animation: badgePulse 2.2s ease-in-out infinite; }
@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 94, 0, 0); }
    50%      { box-shadow: 0 0 0 7px rgba(255, 94, 0, 0.22); }
}

/* if someone prefers less motion, stop all of it */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .hero-inner > * { opacity: 1; transform: none; }
    .scroll-hint { animation: none; }
}

/* mobile */
@media (max-width: 768px) {
    .menu-toggle { display: flex; }

    .nav-links {
        position: fixed;
        top: var(--nav-h); left: 0; right: 0;
        flex-direction: column;
        gap: 0;
        background: rgba(10, 10, 13, 0.96);
        backdrop-filter: blur(14px);
        border-bottom: 1px solid var(--border);
        padding: 8px 0 16px;
        transform: translateY(-120%);
        opacity: 0;              /* stay fully hidden when closed so it can't peek over the logo */
        pointer-events: none;
        transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
    }
    .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
    .nav-links li { width: 100%; text-align: center; }
    .nav-links a { display: block; padding: 14px 0; }

    .footer-content { flex-direction: column; text-align: center; }
    .footer-meta { text-align: center; }
    .footer-links { justify-content: center; }

    /* phones choke on big animated blurs + backdrop-filter, so cut the heavy
       stuff here. the glows stay (just static and smaller), everything else calms down. */
    #navbar.scrolled {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(10, 10, 13, 0.94);
    }
    /* when the menu is open, fill the nav bg so the dropdown connects to it */
    #navbar.menu-open {
        background: rgba(10, 10, 13, 0.98);
    }
    .nav-links {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(10, 10, 13, 0.98);
    }
    .hero::before,
    .hero::after {
        animation: none;
        width: 300px; height: 300px;
        filter: blur(70px);
    }
    .hero-watermark,
    .media-placeholder .ph-icon,
    .badge,
    .gradient-text { animation: none; }
}
