@font-face {
    font-family: 'PlayFreeGames';
    src: url('../../hmg/assets/play-free-games-free-font.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    /* COLOR PALETTE: DESTRUCTION THEME */
    --bg-dark: #2d3436;          /* Asphalt */
    --bg-gradient-btm: #000000;
    --primary-red: #ff4757;      /* Crash Red */
    --accent-yellow: #ffa502;    /* Caution Yellow */
    --steel-blue: #70a1ff;       /* Metal/Glass */
    --text-light: #dfe4ea;
    --white: #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'PlayFreeGames', 'Comic Sans MS', sans-serif;
    background-color: var(--bg-dark);
    background-image: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-gradient-btm) 100%);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    overscroll-behavior-y: none;
}

/* HEADER */
header {
    background: var(--white);
    border-bottom: 6px solid var(--primary-red);
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 6px 0 rgba(0,0,0,0.5);
    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; }

.logo-link {
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s;
}
.logo-link:hover { transform: scale(1.05); }

/* HEADER BUTTON */
.more-games-btn {
    background: var(--accent-yellow);
    color: #000;
    padding: 10px 20px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: bold;
    border-bottom: 4px solid #e67e22;
    text-transform: uppercase;
    font-size: 1.1rem;
    animation: pulse-btn 2s infinite;
}
.more-games-btn:hover { transform: translateY(2px); border-bottom: 2px solid #e67e22; }

@media(min-width: 600px) { .main-logo { display: block; } }

/* HERO SECTION */
.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-red), -2px -2px 0px #000;
    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-red); padding: 12px;
    border-radius: 20px; 
    box-shadow: 0 10px 0px #b33939, 0 20px 20px rgba(0,0,0,0.5);
    touch-action: none;
}

.iframe-container {
    position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;
    border-radius: 15px; background: #000;
    border: 4px solid #fff;
}

.iframe-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

/* CONTROLS */
.controls-row {
    display: flex; gap: 15px; max-width: 900px; margin: 25px auto 0 auto; flex-wrap: wrap;
}
.action-btn {
    flex: 1; padding: 15px; color: white;
    font-family: 'PlayFreeGames', sans-serif; font-size: 1.2rem;
    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(--steel-blue); box-shadow: 0 6px 0 #1e90ff; }
.btn-more { background: var(--accent-yellow); color: #000; box-shadow: 0 6px 0 #e67e22; border: 2px solid #fff; }
.action-btn:active { transform: translateY(6px); box-shadow: none !important; }

/* ADS */
.ad-container {
    max-width: 900px; margin: 30px auto; padding: 10px;
    background: rgba(255, 255, 255, 0.9); border-radius: 15px;
    text-align: center; min-height: 100px; border: 4px solid var(--accent-yellow);
}

/* SEO CONTENT CARD */
.seo-content {
    background: white; max-width: 900px; margin: 20px auto; padding: 30px;
    border-radius: 25px; border: 5px solid var(--primary-red);
    box-shadow: 0 10px 0 rgba(0,0,0,0.3); text-align: left; color: #2d3436;
}

h2 { color: var(--primary-red); font-size: 2rem; margin-top: 30px; margin-bottom: 15px; text-shadow: 1px 1px 0 #000; border-bottom: 3px dashed var(--accent-yellow); padding-bottom: 5px; }
h3 { color: var(--bg-dark); 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: #f1f2f6; margin: 10px 0; padding: 12px; border-left: 6px solid var(--primary-red); border-radius: 8px; font-size: 1.1rem; }
.highlight { background-color: var(--accent-yellow); color: #000; padding: 2px 6px; border-radius: 4px; font-weight: bold; }

/* FAQ & TAGS */
details { margin-bottom: 12px; background: #dfe4ea; border-radius: 10px; padding: 12px; cursor: pointer; transition: background 0.2s; }
details:hover { background: #ced6e0; }
summary { font-weight: bold; color: var(--primary-red); outline: none; }

.tags-card {
    margin-top: 40px; background: #2f3542; color: #fff; padding: 20px;
    border-radius: 15px; text-align: center; border: 2px solid var(--accent-yellow);
}
.tag-pill {
    display: inline-block; background: var(--primary-red); padding: 5px 10px;
    margin: 5px; border-radius: 20px; font-size: 0.9rem; font-weight: bold;
}

/* INVISIBLE SEO (Screen Reader Accessible) */
.visually-hidden {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* FOOTER */
footer { background: var(--primary-red); color: white; text-align: center; padding: 40px 20px; margin-top: 60px; border-top: 8px solid #b33939; }
.footer-logo { height: 50px; margin-bottom: 15px; transition: transform 0.2s; filter: drop-shadow(0 4px 0 rgba(0,0,0,0.2)); }
.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); } }

@media (max-width: 768px) { 
    h1 { font-size: 1.8rem; } 
    .seo-content { margin: 20px 10px; padding: 20px; }
    .game-wrapper { width: 98%; padding: 8px; }
    .controls-row { flex-direction: column; }
}



/* Fake Chat Widget Styles */
.fake-chat-container {
  width: 100%;
  max-width: 450px;
  margin: 40px auto;
  background: var(--white);
  border-radius: 25px;
  border: 5px solid white;
  box-shadow: 0 10px 0 #ddd, 0 15px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  font-family: "PlayFreeGames", "Comic Sans MS", sans-serif;
}

.fake-chat-header {
  padding: 15px 20px;
  background: linear-gradient(135deg, var(--primary-blue) 0%, #9d50bb 100%);
  color: white;
  font-weight: bold;
  font-size: 1.2rem;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.2);
}

.fake-chat-messages {
  height: 400px;
  padding: 15px;
  overflow-y: auto;
  background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
  scrollbar-width: thin;
  scrollbar-color: var(--primary-blue) #e0e0e0;
}

.fake-chat-messages::-webkit-scrollbar {
  width: 8px;
}

.fake-chat-messages::-webkit-scrollbar-track {
  background: #e0e0e0;
  border-radius: 10px;
}

.fake-chat-messages::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, var(--primary-blue), #9d50bb);
  border-radius: 10px;
}

.fake-chat-message {
  display: flex;
  gap: 12px;
  margin-bottom: 15px;
  animation: fadeInMessage 0.4s ease;
}

.fake-chat-avatar {
  width: 45px;
  height: 45px;
  border-radius: 12px;
  border: 3px solid var(--primary-blue);
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary-pink), var(--primary-yellow));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.1);
}

.fake-chat-bubble {
  background: white;
  border-radius: 15px;
  padding: 10px 14px;
  max-width: 280px;
  border: 3px solid var(--primary-blue);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.1);
  position: relative;
}

.fake-chat-username {
  font-size: 0.9rem;
  font-weight: bold;
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.fake-chat-badge {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(to bottom, #ffd700, #ffa500);
  text-align: center;
  font-size: 0.7rem;
  line-height: 18px;
  border: 2px solid white;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.1);
}

.fake-chat-badge-discord {
  background: linear-gradient(to bottom, #5865F2, #4752C4);
  color: white;
  font-size: 0.65rem;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s;
}

.fake-chat-badge-discord:hover {
  transform: scale(1.1);
}

.fake-chat-text {
  font-size: 0.95rem;
  color: var(--text-dark);
  line-height: 1.4;
}

.fake-chat-typing {
  padding: 10px 15px;
  font-size: 0.9rem;
  color: #9d50bb;
  font-style: italic;
  background: rgba(157, 80, 187, 0.1);
  border-top: 2px dashed #9d50bb;
}

.fake-chat-disabled {
  text-align: center;
  padding: 15px;
  font-size: 1rem;
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
  color: white;
  font-weight: bold;
  border-top: 3px solid white;
}

.fake-chat-disabled a {
  color: #ffd700;
  text-decoration: underline;
  font-weight: bold;
  transition: transform 0.2s;
  display: inline-block;
}

.fake-chat-disabled a:hover {
  transform: scale(1.1);
  text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.2);
}

@keyframes fadeInMessage {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .fake-chat-container {
    max-width: 100%;
    margin: 30px auto;
  }
  
  .fake-chat-messages {
    height: 350px;
  }
  
  .fake-chat-bubble {
    max-width: 220px;
  }
}
