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

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: white;
    font-family: 'Segoe UI', 'Inter', sans-serif;
}


.strip-top {
    width: 100%;
    height: clamp(26px, 4.2vw, 54px);
    object-fit: cover;
    display: block;
}


.strip-bottom {
    width: 100%;
    height: clamp(26px, 4.2vw, 54px);
    object-fit: cover;
    display: block;
}


.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 74px);
}


.content-area {
    flex: 1 1 auto;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 6px 14px 2px;
    display: flex;
    align-items: center;
    min-height: 0;
    position: relative;
}

.google-title {
    font-size: 2.1rem;
    font-weight: 800;
}

.google-title .g { color: #4285F4; }
.google-title .a { color: #EA4335; }
.google-title .m { color: #34A853; }
.google-title .e { color: #F9AB00; }
.google-title .i { color: #EA4335; }
.i1 { color: #4285F4; }
.n1 { color: #EA4335; }
.s1 { color: #34A853; }
.t1 { color: #F9AB00; }
.r1 { color: #4285F4; }
.u1 { color: #EA4335; }
.c1 { color: #34A853; }
.t2 { color: #F9AB00; }
.i2 { color: #4285F4; }
.o1 { color: #EA4335; }
.n2 { color: #34A853; }
.s2 { color: #F9AB00; }
.colon {
    color: #4285F4;
}

.character-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    min-height: 0;
    height: 100%;
}

/* الشخصية - حجم كبير */
.character {
    position: absolute;
    right: clamp(-210px, -14vw, -115px);
    bottom: -42px;
    width: clamp(340px, 34vw, 460px);
    height: auto;
    display: block;
    transform: none;
    filter: drop-shadow(0 10px 18px rgba(0,0,0,0.12));
    z-index: 3;
}

/* مربع الكلام - حجم كبير */
.speech-bubble {
    position: relative;
    background: white;
    border-radius: 28px 28px 12px 28px;
    padding: 24px 28px;
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.12);
    border: 3px solid #34A853;
    max-width: 650px;
    width: 100%;
    margin: 0 auto;
    z-index: 2;
}


.speech-bubble::before {
    content: '';
    position: absolute;
    bottom: 58px;
    right: -20px;
    width: 0;
    height: 0;
    border-top: 14px solid transparent;
    border-bottom: 14px solid transparent;
    border-left: 20px solid #34A853;
    z-index: 1;
}


.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: 59px;
    right: -14px;
    width: 0;
    height: 0;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-left: 16px solid white;
    z-index: 2;
}


.speech-bubble h2 {
    color: #1a3b5d;
    font-size: 2rem;
    margin-bottom: 14px;
    font-weight: 800;
    letter-spacing: -0.5px;
}


.speech-bubble p {
    color: #2c3e50;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 14px;
}


.rules-list {
    list-style: none;
    margin-top: 14px;
}

.rules-list li {
    margin-bottom: 12px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rule-icon {
    background: #E8F0FE;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1rem;
    color: #4285F4;
    flex-shrink: 0;
}

.highlight {
    background: #4286f434;
    padding: 4px 10px;
    border-radius: 30px;
    font-weight: 700;
    color: #4285F4;
    font-size: 1rem;
}

.steal-badge {
    background: #EA4335;
    color: white;
    padding: 3px 12px;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-left: 8px;
    display: inline-block;
}

.play-btn {
    background: linear-gradient(135deg, #4a8df6, #3b73d9);
    color: white;
    font-size: 16px;
    font-weight: 600;
    padding: 10px 32px;
    min-width: 180px;
    width: 180px;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(66, 133, 244, 0.35);
    transition: 0.3s ease;
    margin-bottom: 2px;
    margin-top: 4px;
}

.play-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(66, 133, 244, 0.45);
}

.buttons-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin: 20px 0 20px;
}

.home-link {
    background: none;
    border: none;
    color: #4285F4;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
}

.home-link:hover {
    text-decoration: underline;
}

footer.bg-\[\#403F41\] {
    padding-top: 1.75rem;
    padding-bottom: 1.75rem;
}


@media (max-width: 1000px) {
    .character-container {
        height: 100%;
    }

    .character {
        width: clamp(300px, 33vw, 360px);
        right: clamp(-155px, -11vw, -85px);
        bottom: -20px;
    }
    
    .speech-bubble {
        padding: 20px 22px;
    }
    
    .speech-bubble h2 {
        font-size: 1.7rem;
    }
    
    .rules-list li {
        font-size: 0.95rem;
    }
}

@media (min-width: 701px) and (max-width: 1000px) {
    .character-container {
        transform: none;
        overflow: visible;
    }

    .character {
        right: -48px;
        bottom: 34px;
        z-index: 2;
    }

    .speech-bubble {
        max-width: 520px;
        width: min(100%, 520px);
        padding: 34px 24px;
        transform: translateX(-92px);
        z-index: 4;
    }

    .speech-bubble h2 {
        font-size: 1.55rem;
    }

    .speech-bubble p {
        font-size: 1rem;
        line-height: 1.75;
    }

    .rules-list li {
        align-items: flex-start;
        margin-bottom: 14px;
        font-size: 0.92rem;
        line-height: 1.65;
    }
}

@media (min-width: 1001px) and (max-width: 1180px) {
    .character-container {
        transform: none;
        overflow: visible;
    }

    .character {
        right: -36px;
        bottom: 42px;
        z-index: 2;
    }

    .speech-bubble {
        max-width: 560px;
        width: min(100%, 560px);
        padding: 34px 26px;
        transform: translateX(-92px);
        z-index: 4;
    }
}

@media (max-width: 768px) {
    .play-btn {
        font-size: 15px;
        padding: 10px 28px;
    }

    .home-link {
        font-size: 15px;
    }
}


@media (max-width: 700px) {
    nav > div.max-w-7xl {
        padding: 0.75rem 0.9rem !important;
        gap: 0.6rem !important;
        justify-content: space-between !important;
    }

    nav img.h-10 {
        height: 34px !important;
        width: auto !important;
        flex: 0 0 auto;
    }

    nav .flex.items-center.gap-8 {
        gap: 0.78rem !important;
        font-size: 0.78rem !important;
        line-height: 1.1 !important;
        white-space: nowrap !important;
        min-width: 0;
    }

    nav .flex.items-center.gap-8 a {
        white-space: nowrap !important;
    }

    .strip-top,
    .strip-bottom {
        height: 28px;
    }

    .page-wrapper {
        min-height: calc(100vh - 60px);
    }

    .content-area {
        align-items: flex-start;
        padding: 2.35rem 14px 0.75rem;
    }

    .character-container {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        min-height: auto;
        height: auto;
    }
    
    .character {
        position: static;
        width: clamp(150px, 42vw, 190px);
        margin-bottom: -0.25rem;
    }

    .speech-bubble {
        width: min(100%, 340px);
        padding: 1.15rem 1.25rem;
        border-width: 2px;
        border-radius: 1.35rem;
        box-shadow: 0 12px 24px rgba(15, 23, 42, 0.10);
    }

    .speech-bubble h2,
    .google-title {
        font-size: 1.35rem !important;
        line-height: 1.35;
        margin-bottom: 0.8rem;
    }

    .speech-bubble p {
        font-size: 0.86rem;
        line-height: 1.75;
        margin-bottom: 0.7rem;
    }

    .rules-list {
        margin-top: 0.65rem;
    }

    .rules-list li {
        align-items: flex-start;
        gap: 0.55rem;
        margin-bottom: 0.65rem;
        font-size: 0.82rem;
        line-height: 1.55;
    }

    .rule-icon {
        width: 26px;
        height: 26px;
        font-size: 0.78rem;
        margin-top: 0.05rem;
    }

    .highlight {
        padding: 2px 7px;
        font-size: 0.82rem;
    }

    .buttons-group {
        margin: 0.75rem 0 1.25rem;
    }

    .play-btn {
        min-width: 150px;
        width: 150px;
        font-size: 0.9rem;
        padding: 0.62rem 1.4rem;
    }
    
    .speech-bubble::before,
    .speech-bubble::after {
        display: none;
    }
    footer.bg-\[\#403F41\] {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
}

@media (max-width: 380px) {
    nav > div.max-w-7xl {
        padding-left: 0.65rem !important;
        padding-right: 0.65rem !important;
    }

    nav .flex.items-center.gap-8 {
        gap: 0.55rem !important;
        font-size: 0.72rem !important;
    }

    nav img.h-10 {
        height: 30px !important;
    }

    .content-area {
        padding-top: 2rem;
    }

    .speech-bubble {
        padding: 1rem;
    }
}
