@font-face {
    font-family: 'PlayFreeGames';
    src: url('https://hellomangames.github.io/hmg/assets/play-free-games-free-font.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary-pink: #FF69B4;
    --primary-blue: #00BFFF;
    --primary-yellow: #FFD700;
    --bg-sky: #87CEEB;
    --text-dark: #2c3e50;
    --white: #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'PlayFreeGames', 'Comic Sans MS', sans-serif;
    background-color: var(--bg-sky);
    background-image: linear-gradient(180deg, #87CEEB 0%, #E0F7FA 100%);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    overscroll-behavior-y: none;
}

/* HEADER */
header {
    background: var(--white);
    border-bottom: 5px solid var(--primary-pink);
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-container { display: flex; align-items: center; gap: 15px; }
.secondary-logo { height: 50px; width: auto; animation: bounce 2s infinite; }
.main-logo { height: 60px; width: auto; display: none; }

/* LINK WRAPPER FOR LOGOS */
.logo-link {
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s;
}
.logo-link:hover { transform: scale(1.05); }

/* MORE GAMES BUTTON */
.more-games-btn {
    background: var(--primary-yellow);
    color: #000;
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    border: 3px solid #000;
    box-shadow: 3px 3px 0px #000;
    font-size: 1.1rem;
    text-transform: uppercase;
    animation: pulse-btn 2s infinite;
}
.more-games-btn:hover { background: #ffe033; }
.more-games-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0px #000; }

@media(min-width: 600px) { .main-logo { display: block; } }

/* HERO */
.hero { text-align: center; padding: 30px 10px; max-width: 1200px; margin: 0 auto; }
h1 {
    font-size: 3rem; color: #fff;
    text-shadow: 4px 4px 0px var(--primary-pink), -2px -2px 0px var(--primary-blue);
    margin-bottom: 20px; text-transform: uppercase;
    letter-spacing: 2px; animation: pulse 3s infinite;
}

/* GAME CONTAINER */
.game-wrapper {
    position: relative; width: 100%; max-width: 900px; margin: 0 auto;
    background: var(--primary-pink); padding: 10px;
    border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    touch-action: none;
}

.iframe-container {
    position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;
    border-radius: 15px; background: #000;
}

.iframe-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

/* CONTROL BUTTONS (FULLSCREEN & MORE GAMES) */
.controls-row {
    display: flex;
    gap: 10px;
    max-width: 900px;
    margin: 15px auto 0 auto;
    flex-wrap: wrap;
}

.action-btn {
    flex: 1;
    padding: 15px;
    color: white;
    font-family: 'PlayFreeGames', sans-serif;
    font-size: 1.1rem;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    text-transform: uppercase;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 250px;
    transition: transform 0.1s;
}

.btn-fullscreen {
    background: var(--primary-blue);
    box-shadow: 0 5px 0 #0099cc;
}

.btn-more {
    background: var(--primary-pink);
    box-shadow: 0 5px 0 #d1478c;
}

.action-btn:active {
    transform: translateY(5px);
    box-shadow: none !important;
}

/* AD CONTAINER STYLE */
.ad-container {
    max-width: 900px;
    margin: 20px auto;
    padding: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    text-align: center;
    min-height: 100px;
}

/* SEO CONTENT */
.seo-content {
    background: white; max-width: 900px; margin: 20px auto; padding: 30px;
    border-radius: 20px; border: 4px solid var(--primary-yellow);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1); text-align: left;
}

h2 { color: var(--primary-pink); font-size: 2rem; margin-top: 30px; margin-bottom: 15px; text-shadow: 1px 1px 0 #000; border-bottom: 2px dashed var(--primary-blue); padding-bottom: 5px; }
h3 { color: var(--primary-blue); font-size: 1.5rem; margin-top: 25px; margin-bottom: 10px; }
p { font-size: 1.15rem; margin-bottom: 15px; }
ul { list-style-type: none; padding: 0; }
li { background: #f0f8ff; margin: 10px 0; padding: 10px; border-left: 5px solid var(--primary-pink); border-radius: 5px; font-size: 1.1rem; }
.highlight { background-color: var(--primary-yellow); padding: 0 5px; font-weight: bold; }

/* FAQ */
details { margin-bottom: 10px; background: #fff; border: 1px solid #ddd; border-radius: 8px; padding: 10px; }
summary { font-weight: bold; cursor: pointer; color: var(--primary-pink); }

.keywords-cloud { margin-top: 40px; font-size: 0.8rem; color: #888; text-align: justify; border-top: 1px solid #eee; padding-top: 20px; line-height: 1.4; }

/* FOOTER */
footer { background: var(--text-dark); color: white; text-align: center; padding: 30px 20px; margin-top: 50px; }
.footer-logo { height: 40px; margin-bottom: 10px; transition: transform 0.2s; }
.footer-logo:hover { transform: scale(1.1); }

@keyframes bounce { 0%, 20%, 50%, 80%, 100% {transform: translateY(0);} 40% {transform: translateY(-10px);} 60% {transform: translateY(-5px);} }
@keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.02); } 100% { transform: scale(1); } }
@keyframes pulse-btn { 0% { transform: scale(1); } 50% { transform: scale(1.05); } 100% { transform: scale(1); } }

/* MOBILE ADJUSTMENTS */
@media (max-width: 768px) { 
    h1 { font-size: 1.8rem; } 
    .seo-content { margin: 20px 10px; padding: 15px; }
    .game-wrapper { width: 98%; padding: 5px; }
    .controls-row { flex-direction: column; }
}

