/* Mobsmile Games — site styles */
:root {
    --navy: #101A3B;
    --navy-2: #16234D;
    --navy-3: #1B2A5C;
    --cyan: #15DFFD;
    --white: #FFFFFF;
    --muted: #B7C1E0;
    --muted-2: #A9B4D6;
    --line: rgba(255, 255, 255, 0.12);
    --chip: rgba(255, 255, 255, 0.08);
    --font-display: "Fredoka", system-ui, sans-serif;
    --font-body: "Nunito", system-ui, sans-serif;
    --radius-lg: 26px;
    --radius-md: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
    margin: 0;
    background: var(--navy);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: var(--white); }
a:hover { color: var(--cyan); }
h1, h2, h3 { font-family: var(--font-display); margin: 0; }
p { margin: 0; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding-top: 96px; padding-bottom: 96px; }
.stack-lg { display: flex; flex-direction: column; gap: 40px; }
.muted { color: var(--muted); }
.accent { color: var(--cyan); }

h2 { font-weight: 700; font-size: clamp(38px, 5vw, 58px); line-height: 1; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.section-head p { color: var(--muted); font-size: 17px; max-width: 380px; }

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 20;
    background: var(--navy);
    border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.nav-logo img { height: 28px; width: auto; }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
    padding: 10px 16px;
    font-weight: 700; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase;
    text-decoration: none; border-radius: 999px;
}
.nav-toggle {
    display: none;
    width: 44px; height: 44px; border-radius: 12px;
    border: 1px solid var(--line); background: transparent; color: var(--white); cursor: pointer;
    align-items: center; justify-content: center;
}

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 52px; padding: 0 28px; border: none; border-radius: 16px;
    font: 700 16px var(--font-body); cursor: pointer; text-decoration: none;
}
.btn-primary { background: var(--cyan); color: var(--navy); }
.btn-primary:hover { color: var(--navy); filter: brightness(1.08); }
.btn-primary:disabled { opacity: 0.6; cursor: wait; }

.store-buttons { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.store-buttons a { display: inline-block; border-radius: 10px; }
.store-buttons img { height: 48px; width: auto; }
.store-buttons.small img { height: 34px; }

/* Hero */
.hero { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 112px; }
.hero-text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.eyebrow {
    align-self: flex-start; padding: 6px 14px; border-radius: 999px;
    font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
    background: rgba(21, 223, 253, 0.14); color: var(--cyan);
}
.hero h1 { font-weight: 700; font-size: clamp(48px, 7vw, 88px); line-height: 0.95; letter-spacing: -1px; }
.hero-text > p { font-size: 19px; line-height: 1.6; max-width: 480px; color: var(--muted); }
.hero-media { flex: 1 1 420px; min-width: 0; position: relative; display: flex; justify-content: center; }
.hero-smile {
    position: absolute; left: 50%; bottom: -56px; transform: translateX(-50%);
    width: 86%; max-width: 460px; aspect-ratio: 2 / 1;
    border-radius: 0 0 999px 999px; background: var(--cyan);
}
.hero-frame { position: relative; width: 100%; max-width: 540px; display: flex; justify-content: center; }
.phone {
    position: relative; width: min(300px, 70%); aspect-ratio: 9 / 16;
    border-radius: 40px; border: 8px solid #0A1130; background: #0A1130; overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}
.phone img, .phone video { width: 100%; height: 100%; object-fit: cover; }
.phone img.icon-fallback { object-fit: contain; padding: 30%; }
.hero-icon {
    position: absolute; left: calc(50% + 90px); bottom: 40px;
    width: 104px; height: 104px; border-radius: 26px; border: 4px solid var(--navy);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

/* New releases */
.band { background: var(--navy-2); padding: 96px 0; }
.new-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.new-card {
    background: var(--navy); border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: 12px; display: flex; flex-direction: column; gap: 14px;
}
/* 9:16 frame: gameplay videos fill it exactly; store screenshots are trimmed slightly top and bottom */
.new-card .media {
    aspect-ratio: 9 / 16; border-radius: var(--radius-md); background: var(--navy-3);
    display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.new-card .media img, .new-card .media video { width: 100%; height: 100%; object-fit: cover; }
.new-card .media img.icon-fallback { width: 40%; height: auto; border-radius: 22%; }
.new-card .title-row { display: flex; align-items: center; gap: 10px; }
.new-card .title-row .app-icon { width: 40px; height: 40px; }
.app-icon { flex: none; border-radius: 22%; background: var(--navy-3); object-fit: cover; }
.new-card .body { padding: 0 4px; display: flex; flex-direction: column; gap: 8px; }
.new-card h3 { font-weight: 600; font-size: 19px; line-height: 1.2; }
.new-card p {
    color: var(--muted); font-size: 14px; line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.new-card .store-buttons { padding: 0 4px 4px; gap: 8px; margin-top: auto; }

@media (max-width: 1100px) {
    .new-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .new-grid { grid-template-columns: minmax(0, 1fr); }
    .new-card .media { width: min(100%, 320px); align-self: center; }
}

.tag {
    align-self: flex-start; padding: 3px 10px; border-radius: 999px;
    background: var(--chip); color: var(--muted); font-size: 12px; font-weight: 700;
}

/* All games */
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters button {
    min-height: 44px; padding: 0 18px; border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.3); background: transparent; color: var(--white);
    font: 700 15px var(--font-body); cursor: pointer;
}
.filters button[aria-pressed="true"] { background: var(--cyan); border-color: var(--cyan); color: var(--navy); }
.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.game-card {
    background: var(--navy-2); border: 1px solid var(--line); border-radius: 22px;
    padding: 14px; display: flex; flex-direction: column; gap: 14px;
}
.game-card { padding: 18px; gap: 16px; }
.game-card .head { display: flex; align-items: center; gap: 16px; }
.game-card .info { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.game-card h3 { font-weight: 600; font-size: 19px; }
.game-card .meta { color: var(--muted-2); font-size: 13px; }
.game-card .store-buttons { gap: 8px; margin-top: auto; }

/* About */
.about { background: var(--cyan); color: var(--navy); padding: 96px 0; }
.about-inner { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.about-text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.about-text p { font-size: 18px; line-height: 1.6; font-weight: 600; }
.stats { flex: 1 1 380px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.stat { background: var(--navy); color: var(--white); border-radius: 22px; padding: 24px; display: flex; flex-direction: column; }
.stat strong { font-family: var(--font-display); font-weight: 700; font-size: 40px; line-height: 1.2; }
.stat span { color: var(--muted); font-size: 15px; }

/* Careers */
.careers { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.careers-text { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.careers-text p { font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 420px; }
.card { background: var(--navy-2); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.form { flex: 1 1 480px; min-width: 0; padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.form h3 { font-weight: 600; font-size: 24px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; font-weight: 700; }
.field input {
    min-height: 48px; padding: 0 16px; border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2); background: var(--navy); color: var(--white);
    font: 400 15px var(--font-body);
}
.field input::placeholder { color: #8C97BC; }
.field input:focus { outline: none; border-color: var(--cyan); }
.upload {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    padding: 28px 16px; border: 2px dashed rgba(21, 223, 253, 0.5); border-radius: 16px;
    cursor: pointer; text-align: center; color: var(--cyan);
}
.upload.dragover, .upload:hover { background: rgba(21, 223, 253, 0.06); }
.upload-title { color: var(--white); font-weight: 700; font-size: 15px; }
.upload-hint { color: var(--muted-2); font-size: 13px; word-break: break-all; }
.form .btn { align-self: flex-start; }
.form-message { font-weight: 700; min-height: 1.5em; }
.form-message.error { color: #FF8FA3; }
.form-message.success { color: #7EF0B0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.footer-top { display: flex; flex-wrap: wrap; gap: 48px; justify-content: space-between; padding-top: 64px; padding-bottom: 40px; }
.footer-brand { flex: 1 1 300px; max-width: 360px; display: flex; flex-direction: column; gap: 20px; }
.footer-brand img { height: 30px; width: auto; align-self: flex-start; }
.footer-brand p { color: var(--muted); line-height: 1.6; }
.socials { display: flex; gap: 12px; }
.socials a {
    width: 44px; height: 44px; border-radius: 999px; background: var(--chip);
    display: flex; align-items: center; justify-content: center;
}
.footer-col { flex: 0 1 200px; display: flex; flex-direction: column; gap: 14px; }
.footer-col h3 { font-weight: 600; font-size: 20px; margin-bottom: 4px; }
.footer-col a { color: var(--muted); text-decoration: none; }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom { border-top: 1px solid var(--line); padding: 20px 0; color: var(--muted-2); font-size: 14px; }

/* Mobile */
@media (max-width: 720px) {
    .nav-toggle { display: inline-flex; }
    .nav-links {
        display: none;
        position: absolute; left: 0; right: 0; top: 100%;
        flex-direction: column; gap: 0;
        background: var(--navy); border-bottom: 1px solid var(--line);
        padding: 8px 16px 16px;
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 14px 8px; border-radius: 10px; }
    .section, .band, .about { padding-top: 64px; padding-bottom: 64px; }
    .hero { padding-top: 40px; padding-bottom: 88px; gap: 40px; }
    .form { padding: 22px; }
    .form-row { grid-template-columns: minmax(0, 1fr); }
    .stat strong { font-size: 32px; }
    .hero-icon { width: 80px; height: 80px; border-radius: 20px; left: calc(50% + 60px); bottom: 24px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
