:root {
    --ink: #20283a;
    --muted: #697286;
    --paper: #f6f7fb;
    --white: #ffffff;
    --line: #e7e9f0;
    --green: #728f79;
    --green-dark: #55745e;
    --shadow: 0 18px 55px rgba(39, 49, 75, 0.07);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: 'DM Sans', 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.site-header {
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.brand, .footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--ink);
    text-decoration: none;
    font-family: 'Manrope', 'Segoe UI', sans-serif;
    font-size: 1.18rem;
    font-weight: 800;
    letter-spacing: -0.04em;
}
.brand-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 13px;
    color: white;
    background: var(--ink);
    font-family: 'Manrope', sans-serif;
    font-size: 1.05rem;
    letter-spacing: -0.1em;
    padding-right: 3px;
}
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a {
    color: #596174;
    text-decoration: none;
    font-size: 0.91rem;
    font-weight: 700;
    transition: color 160ms ease, background 160ms ease;
}
.main-nav a:hover { color: var(--green-dark); }
.main-nav .nav-feedback {
    padding: 10px 15px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 999px;
}
.hero {
    position: relative;
    overflow: hidden;
    width: min(1120px, calc(100% - 48px));
    min-height: 405px;
    margin: 9px auto 72px;
    padding: 58px 64px;
    display: grid;
    grid-template-columns: 1.12fr 0.88fr;
    align-items: center;
    gap: 24px;
    border: 1px solid #e8eaf2;
    border-radius: 30px;
    background: linear-gradient(120deg, #ffffff 0%, #f5f5fb 100%);
    box-shadow: var(--shadow);
}
.hero::before {
    content: '';
    position: absolute;
    width: 450px;
    height: 450px;
    right: 0;
    top: -240px;
    border-radius: 50%;
    background: rgba(193, 194, 228, 0.16);
}
.hero-copy { position: relative; z-index: 2; max-width: 570px; }
.eyebrow, .section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #6c788a;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.eyebrow { letter-spacing: 0.02em; text-transform: none; font-size: 0.87rem; }
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: #8baa8e; box-shadow: 0 0 0 4px #e8f0e8; }
h1, h2, h3, p { margin-top: 0; }
.hero h1 {
    max-width: 550px;
    margin: 20px 0 16px;
    font-family: 'Manrope', 'Segoe UI', sans-serif;
    font-size: clamp(2.6rem, 5vw, 4.15rem);
    line-height: 1.07;
    letter-spacing: -0.065em;
    font-weight: 800;
}
.hero h1 span { color: var(--green-dark); }
.hero-copy > p { max-width: 475px; color: var(--muted); font-size: 1.04rem; line-height: 1.75; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 47px;
    padding: 0 19px;
    border-radius: 12px;
    font-size: 0.91rem;
    font-weight: 800;
    text-decoration: none;
    transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: white; background: var(--ink); box-shadow: 0 7px 18px rgba(32, 40, 58, 0.14); }
.button-primary:hover { background: #303a50; }
.button-secondary { color: #394154; border: 1px solid #e4e6ef; background: white; }
.button-secondary:hover { background: #fbfbff; }
.hero-note { margin-top: 22px; color: #8a91a1; font-size: 0.82rem; }
.hero-note span { color: #b59d59; margin-right: 5px; }
.hero-art { position: relative; min-height: 290px; display: grid; place-items: center; }
.art-orbit { position: absolute; border: 1px solid #e2e2f0; border-radius: 50%; transform: rotate(-22deg); }
.orbit-one { width: 290px; height: 220px; }
.orbit-two { width: 230px; height: 305px; transform: rotate(32deg); }
.art-card { position: absolute; border: 1px solid rgba(40, 49, 69, 0.08); box-shadow: 0 20px 45px rgba(40, 49, 69, 0.13); }
.art-card-word {
    z-index: 2; top: 35px; left: 6%;
    display: flex; align-items: center; gap: 5px;
    padding: 10px; border-radius: 13px; background: white; transform: rotate(-9deg);
}
.art-card-word span { display: grid; place-items: center; width: 40px; height: 43px; border-radius: 7px; background: #e5e9ee; color: #344054; font-weight: 800; font-size: 1.2rem; }
.art-card-word .tile-yellow { background: #d7c783; color: white; }
.art-card-galo {
    right: 3%; bottom: 15px; z-index: 3;
    display: grid; grid-template-columns: repeat(3, 42px); gap: 5px;
    padding: 11px; border-radius: 17px; background: #fff; transform: rotate(8deg);
}
.art-card-galo span { display: grid; place-items: center; height: 40px; border-radius: 8px; background: #f0f1f7; color: #7b8b80; font-size: 1.4rem; font-weight: 800; }
.art-card-galo .galo-center { background: #dfeade; color: #55745e; }
.art-spark { position: absolute; color: #c1a86a; font-size: 2rem; }
.spark-one { top: 30px; right: 15%; }
.spark-two { bottom: 42px; left: 8%; color: #a8a6d3; }
.games-section, .about-section { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.section-heading h2, .about-section h2 { margin: 9px 0 0; font-family: 'Manrope', 'Segoe UI', sans-serif; font-size: clamp(1.8rem, 3vw, 2.35rem); letter-spacing: -0.055em; }
.section-heading > p { margin-bottom: 4px; color: var(--muted); font-size: 0.94rem; }
.games-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; }
.game-card {
    --accent: #7c927f;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 278px;
    padding: 24px 22px 20px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: 0 6px 22px rgba(39, 49, 75, 0.025);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.game-card:hover { transform: translateY(-5px); box-shadow: 0 16px 35px rgba(39, 49, 75, 0.08); border-color: #d9ddea; }
.card-word { --accent: #718d78; }
.card-galo { --accent: #bd9870; }
.card-memory { --accent: #8784b9; }
.card-quiz { --accent: #c07f76; }
.card-snake { --accent: #5e9a82; }
.card-dino { --accent: #b98558; }
.card-time { --accent: #6c8db7; }
.card-colour { --accent: #a17bb9; }
.card-numbers { --accent: #b6813f; }
.card-ppt { --accent: #bf766b; }
.card-reflex { --accent: #4f8d9c; }
.card-character { --accent: #8e82b5; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 19px; }
.game-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: color-mix(in srgb, var(--accent) 13%, white); font-size: 1.55rem; }
.game-tag { padding: 6px 9px; border-radius: 999px; color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, white); font-size: 0.66rem; font-weight: 800; text-align: center; }
.game-card h3 { margin-bottom: 9px; font-family: 'Manrope', 'Segoe UI', sans-serif; font-size: 1.27rem; letter-spacing: -0.04em; }
.game-card p { color: var(--muted); font-size: 0.87rem; line-height: 1.65; }
.play-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 18px; color: var(--accent); font-size: 0.88rem; font-weight: 800; text-decoration: none; }
.play-link span { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid color-mix(in srgb, var(--accent) 27%, white); border-radius: 50%; transition: transform 160ms ease; }
.play-link:hover span { transform: translate(2px, -2px); }
.about-section {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    align-items: center;
    gap: 24px;
    margin-top: 75px;
    padding: 28px 32px;
    background: #eeeff7;
    border: 1px solid #e5e6f0;
    border-radius: 22px;
}
.about-symbol { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 17px; background: white; color: #8583b5; font-size: 2rem; }
.about-section h2 { font-size: 1.55rem; margin-bottom: 7px; }
.about-section p { max-width: 620px; margin-bottom: 0; color: var(--muted); font-size: 0.88rem; line-height: 1.65; }
.about-feedback { white-space: nowrap; color: #4b576c; font-size: 0.86rem; font-weight: 800; text-decoration: none; }
.about-feedback:hover { color: var(--green-dark); }
.site-footer { width: min(1120px, calc(100% - 48px)); margin: 36px auto 0; padding: 22px 0 28px; display: flex; justify-content: space-between; align-items: center; gap: 18px; border-top: 1px solid var(--line); }
.footer-brand { font-size: 0.99rem; }
.site-footer p { margin: 0; color: #8a91a1; font-size: 0.81rem; }
.footer-secret { color: #a0a6b3; font-size: .72rem; text-decoration: none; transition: color 160ms ease; }
.footer-secret:hover { color: #626d82; text-decoration: underline; }

@media (max-width: 930px) {
    .hero { padding: 48px 40px; grid-template-columns: 1fr 0.72fr; }
    .games-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .game-card { min-height: 255px; }
    .about-section { grid-template-columns: 58px 1fr; }
    .about-feedback { grid-column: 2; }
}
@media (max-width: 650px) {
    .site-header, .hero, .games-section, .about-section, .site-footer { width: min(100% - 28px, 500px); }
    .site-header { min-height: 72px; }
    .brand { font-size: 1.05rem; }
    .brand-mark { width: 34px; height: 34px; }
    .main-nav { gap: 13px; }
    .main-nav a { font-size: 0.8rem; }
    .main-nav a[href="#sobre"] { display: none; }
    .main-nav .nav-feedback { padding: 8px 10px; }
    .hero { display: block; margin-top: 5px; margin-bottom: 50px; padding: 36px 25px 22px; border-radius: 23px; }
    .hero h1 { font-size: clamp(2.5rem, 11vw, 3.35rem); }
    .hero-copy > p { font-size: 0.96rem; }
    .hero-art { min-height: 235px; margin-top: 6px; }
    .orbit-one { width: 260px; height: 190px; }
    .orbit-two { width: 190px; height: 260px; }
    .art-card-word { left: 8%; top: 29px; }
    .art-card-galo { right: 8%; bottom: 4px; }
    .section-heading { align-items: start; flex-direction: column; gap: 7px; }
    .games-grid { grid-template-columns: 1fr; gap: 12px; }
    .game-card { min-height: auto; padding: 20px; }
    .card-top { margin-bottom: 14px; }
    .game-card p { margin-bottom: 0; }
    .play-link { padding-top: 15px; }
    .about-section { grid-template-columns: 1fr; gap: 15px; margin-top: 48px; padding: 23px; }
    .about-feedback { grid-column: auto; }
    .site-footer { flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 26px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

.card-connections{--accent:#8873ad}.card-stop{--accent:#bc8451}.card-connect4{--accent:#b96879}.card-sequence{--accent:#518b98}
