/* style.css */

/* --- Global Styles --- */
:root {
  --font-primary: "Lato", sans-serif;
  --font-headings: "Lato", sans-serif;
  --color-text-default: #333333;
  --color-text-dark: #000000;
  --color-background-light: #f8f9fa;
  --color-background-white: #ffffff;
  --color-link: #3498db;
  --color-brand-accent: #6aaa64; /* Example, adjust as needed */
  --container-max-width: 984px;
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 12px;
}

* {
  box-sizing: border-box;
}

body {
  background-color: var(
    --color-background-light
  ); /* Light grey background for the body */
  font-family: var(--font-primary); /* Default sans-serif font */
  margin: 0;
  padding: 0;
  color: var(--color-text-default); /* Default text color */
  font-size: 16px; /* Explicitly set a base font size for the body */
}

h1 {
  /* Modified for game pages - smaller, left-aligned, inline for description */
  font-family: var(--font-headings);
  font-size: 1.4rem; /* Smaller than before */
  text-align: left; /* Left-aligned instead of center */
  margin-top: 20px;
  margin-bottom: 20px;
  margin-right: 15px; /* Add space before description */
  line-height: 1.2;
  display: inline; /* Make inline so description can follow on same line */
}

h2 {
  /* For main page titles like MINESWEEPER, HANGMAN GAME, or section titles */
  font-family: var(--font-headings);
  font-size: 1.6rem;
  text-align: center;
  margin: 15px 0; /* Margin for spacing */
  line-height: 1.4; /* Added line height for better readability */
}

h3 {
  /* For subheadings like "Gameplay Basics" */
  font-family: var(--font-headings);
  font-size: 1.4rem; /* Slightly larger for subheadings */
  /* text-align: center; */ /* Kept as comment if sometimes needed */
  margin-top: 20px;
  margin-bottom: 15px;
}

a {
  text-decoration: none;
}

/* Header Styles */
.top-header {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* Reverted from space-between */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  padding: 0 6px;
  box-sizing: border-box;
  height: 44px;
}

/* Legacy menu-toggle styles - kept for reference but no longer used */
/*
.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  position: static;
  margin-right: 8px;
}

.menu-toggle svg {
  display: block;
  width: 20px;
  height: 20px;
}
*/

/* Center logo group in header */
.header-center-group {
  /* position: absolute; */ /* No longer needed */
  /* left: 50%; */
  /* top: 50%; */
  /* transform: translate(-50%, -50%); */
  display: flex;
  align-items: center;
}

.logo-menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  position: static;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius-sm);
  transition: background-color 0.2s ease;
}

.logo-menu-toggle:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.logo-menu-toggle .logo-favicon {
  width: 40px; /* Updated size for menu icon */
  height: 40px;
  transition: transform 0.2s ease;
}

.logo-menu-toggle .logo-favicon:hover {
  transform: scale(1.1);
}

.game-logo {
  margin: 0;
  display: flex;
  align-items: center;
  /* justify-content: center; */ /* No longer needed */
}

.game-logo a {
  text-decoration: none;
  color: #202124; /* Dark gray, similar to Google's logo text - kept specific for logo */
  display: inline-block; /* Helps with layout if needed */
}

.logo-full {
  display: inline; /* Visible by default */
}

.logo-short {
  display: none; /* Hidden by default */
}

/* Dropdown Menu Styles */
.dropdown-menu {
  display: none; /* Hidden by default */
  position: absolute;
  top: calc(100% + 5px); /* Position below the floating header with small gap */
  left: 0; /* Reverted from right: 0 */
  right: auto; /* Make sure right is not interfering */
  background-color: var(--color-background-white);
  border: 1px solid #e0e0e0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* Match header shadow */
  border-radius: var(--border-radius-md); /* Rounded corners to match */
  z-index: 2147483647; /* Maximum z-index to appear above ads */
  width: 250px; /* Adjust as needed */
  padding: 10px 0;
  margin-top: 0; /* Ensure no gap above the dropdown */
}

.dropdown-menu.open {
  display: block;
}

.dropdown-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dropdown-menu ul li a {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  text-decoration: none;
  color: #3c4043; /* Standard Google text color - kept specific */
  font-family: var(--font-primary);
  font-size: 1em;
}

.dropdown-menu ul li a:hover {
  background-color: #f1f3f4; /* Light hover effect */
}

/* Navigation favicon styles */
.nav-favicon {
  width: 16px;
  height: 16px;
  margin-right: 8px;
  vertical-align: middle;
  display: inline-block;
}

/* Styles for the game logo */
.game-logo {
  margin: 0; /* Remove margins for compact design */
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.game-logo a {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-favicon {
  width: 60px; /* Slightly larger logo for better visibility */
  height: 60px;
  transition: transform 0.2s ease;
}

.logo-favicon:hover {
  transform: scale(1.1);
}

/* SSG Logo Styles */
.ssg-logo-container {
  margin-left: 1px; /* Restored margin-left */
  padding: 6px;
  opacity: 1;
  transition: opacity 0.3s ease, transform 0.3s ease;
  /* order: -1; */ /* Removed order property */
  /* margin-right: 8px; */ /* Removed margin-right */
}

.ssg-logo {
  height: 20px;
  width: auto;
  transition: transform 0.2s ease;
}
/* Hide SSG logo when scrolling */
.ssg-logo-container.hidden {
  opacity: 0;
  transform: translateX(-20px);
}

/* Styles for the main content area (wraps all page content) */
.main-content {
  width: 100%;
  margin: 0 auto 20px auto; /* Remove top margin since header is now floating */
  padding: 40px 5px 0 5px; /* Add top padding to avoid overlap with floating header */
}

/* Wrapper for content on non-game pages (like index, about, privacy, terms, contact) */
.page-content-wrapper {
  padding: 2rem; /* Kept the 2rem, removed the earlier 20px */
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto 0 auto; /* Remove top margin since main-content now has padding */
  color: var(--color-text-default);
}

.homepage-content {
  margin: 0 auto; /* Center the homepage content */
}

/* --- Styles for Static Text Content Pages (About, Privacy, Terms) --- */
/* Apply these styles to the wrapper div on About, Privacy, and Terms pages */
.static-text-content p,
.static-text-content ul,
.static-text-content li,
.static-text-content strong,
.static-text-content a {
  font-family: var(
    --font-primary
  ); /* Inherits from body, but explicit here for clarity */
  color: var(--color-text-default); /* Inherits, but explicit */
  font-size: 1rem;
}

.static-text-content p,
.static-text-content ul {
  margin-bottom: 15px; /* Space between paragraphs and lists */
  line-height: 1.6; /* Improved line height for body text */
}

.static-text-content ul {
  padding-left: 20px; /* Indent lists */
  list-style-type: none; /* Remove default list bullets */
}

.static-text-content li {
  margin-bottom: 8px; /* Space between list items */
}

.static-text-content a {
  color: var(--color-link);
  text-decoration: underline; /* Add underline for clarity */
}

.static-text-content a:hover {
  text-decoration: none;
}

/* --- Featured Games Section (Retro Styling) --- */
.featured-games-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  padding: 0 10px;
  margin-bottom: 30px;
}

.game-card {
  background-color: #efefef; /* Specific color, could be a variable e.g., --color-card-background */
  /* border-style: solid; */ /* Removed commented out */
  /* border-width: 1px; */ /* Removed commented out */
  /* border-color: #d8d8d8;  */ /* Removed commented out */
  /* box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24); */ /* Removed commented out */
  box-shadow: 2px 3px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.06);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  text-decoration: none;
  color: var(--color-text-dark);
  display: flex;
  flex-direction: column;
  transition: background-color 0.2s, box-shadow 0.3s, border-color 0.2s,
    transform 0.2s ease-out;
  cursor: pointer;
  /* Add these lines to disable text selection */
  -webkit-user-select: none; /* Safari */
  -moz-user-select: none; /* Firefox */
  -ms-user-select: none; /* Internet Explorer/Edge */
  user-select: none; /* Standard syntax */
  -webkit-tap-highlight-color: rgba(
    0,
    0,
    0,
    0
  ); /* Optional: Removes tap highlight on mobile */
}

.game-card:hover {
  background-color: #efefef;
  /* box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23); */ /* Removed commented out */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
  /* border-color: #cccccc; */ /* Removed commented out */
}

.game-card:active {
  background-color: #a0a0a0;
  /* box-shadow: inset 0 1px 2px rgba(0,0,0,0.2); */ /* Removed commented out */
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
  border-color: #bbbbbb; /* Kept as specific, could be a variable */
  transform: translateY(0);
}

.game-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  /* background-color: #333; */ /* Removed commented out */
}

.game-card .game-name {
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: bold;
  text-align: center;
  padding: 12px 10px;
  background-color: #efefef; /* Match card background */
  color: var(--color-text-default);
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.3;
  min-height: 50px;
}

/* Responsive adjustments for featured games */
@media (min-width: 500px) {
  .featured-games-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 499px) {
  .featured-games-container {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
  }
  .game-card .game-name {
    font-size: 0.9rem;
    padding: 10px;
    min-height: 40px;
  }
  .game-card {
    border-radius: 6px; /* Overrides var(--border-radius-md) on small screens, could be var(--border-radius-sm) or a new var */
  }
}

.game-app-container {
  width: 100%; /* Takes full width up to its max-width */
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 1rem 1rem 1rem; /* Enhanced padding for breathing room */
  margin-left: auto; /* Add auto margins for centering by default */
  margin-right: auto; /* Add auto margins for centering by default */

  /* Flat background to match main content */
  background-color: var(--color-background-light);
}

@media (max-width: 767px) {
  /* For mobile screens */
  .game-app-container {
    width: 100%; /* Full width on mobile */
    padding: 0;
  }
}

/* MODIFIED: Responsive adjustments for Game App Container */

@media (max-width: 768px) {
  /* For tablet and smaller screens */
  .top-header {
    top: 0; /* Slightly closer to edge on mobile */
    left: 1px;
    /* justify-content: center; */ /* Removed to keep favicon left */
  }

  .ssg-logo-container {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin-left: 0; /* Reset margin */
  }

  .logo-favicon {
    width: 50px; /* Proportionally larger on mobile too */
    height: 50px;
  }

  .logo-menu-toggle .logo-favicon {
    width: 35px; /* Proportional menu icon size on mobile */
    height: 35px;
  }

  /* Legacy menu-toggle mobile styles - no longer used */
  /*
  .menu-toggle {
    margin-right: 6px;
    padding: 3px;
  }

  .menu-toggle svg {
    width: 18px;
    height: 18px;
  }
  */

  .main-content {
    padding-top: 50px; /* Less top padding on mobile since header is smaller */
  }
}

/* --- Modal Styles (Shared by Minesweeper & potentially Hangman) --- */
.modal {
  display: none;
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(192, 192, 192, 0.75);
  justify-content: center;
  align-items: center;
}
.modal.visible {
  display: flex;
}
.modal-content {
  background-color: #c0c0c0;
  padding: 25px;
  border: 3px solid;
  border-top-color: #ffffff;
  border-left-color: #ffffff;
  border-right-color: #808080;
  border-bottom-color: #808080;
  width: 85%;
  max-width: 380px;
  text-align: center;
  border-radius: 0;
  font-family: var(--font-headings); /* Using headings font for modal titles */
  color: var(--color-text-dark);
}
.modal-content h2 {
  font-family: var(--font-headings);
  font-size: 1.6rem;
  margin-bottom: 15px;
  margin-top: 0;
  color: var(--color-text-dark);
}
.modal-content p {
  font-size: 0.85rem;
  margin-bottom: 20px;
  font-family: var(--font-primary);
  color: var(--color-text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.modal-button {
  font-family: var(--font-headings);
  background-color: #c0c0c0;
  color: var(--color-text-dark);
  padding: 10px 15px;
  border: 3px solid;
  border-top-color: #ffffff;
  border-left-color: #ffffff;
  border-right-color: #808080;
  border-bottom-color: #808080;
  border-radius: 0;
  cursor: pointer;
  font-size: 0.75rem;
}
.modal-button:hover {
  background-color: #d1d1d1;
}
.modal-button:active {
  background-color: #a0a0a0;
  border-top-color: #808080;
  border-left-color: #808080;
  border-right-color: #ffffff;
  border-bottom-color: #ffffff;
}

/* --- Game Instructions Section --- */
.game-instructions-section {
  font-family: var(--font-headings); /* Main section heading font */
  line-height: 1.8;
  padding: 1rem;
  margin: 10px auto 0 auto;
  color: var(--color-text-default);
  max-width: var(--container-max-width);
}

.game-navigation {
  margin: 10px auto 0 auto;
  padding: 20px;
  max-width: var(--container-max-width);
}

.game-instructions-section p,
.game-instructions-section ul,
.game-instructions-section li {
  font-family: var(--font-primary);
  text-align: left;
  line-height: 1.6;
  color: var(--color-text-default);
  font-size: 1rem;
}

.game-instructions-section strong {
  color: var(--color-text-default); /* Or a specific emphasis color */
}

.game-instructions-section p {
  margin-bottom: 1rem; /* Changed from em to rem */
}

.game-instructions-section ul {
  padding-left: 0;
  margin-bottom: 1rem; /* Changed from em to rem */
  list-style-type: none; /* Remove default list bullets */
}

.game-instructions-section li {
  margin-bottom: 0.5rem; /* Changed from em to rem */
}

/* --- Contact Form Styles --- */
.contact-page-content h1 {
  font-family: var(--font-headings);
  font-size: 2.2rem;
  text-align: center; /* Keep contact page H1 centered */
  margin-bottom: 20px;
  display: block; /* Override the inline display for contact page */
}

.contact-page-content p {
  font-family: var(--font-primary);
  text-align: center;
  margin-bottom: 30px;
  font-size: 1.1rem; /* Changed from em to rem */
  line-height: 1.6;
}

.contact-form-container {
  max-width: 500px;
  margin: 20px auto;
  padding: 20px;
  background-color: #f0f0f0; /* Specific color, could be --color-background-grey or similar */
  border-radius: var(--border-radius-md);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  font-family: var(--font-primary);
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: var(--color-text-default);
  font-size: 0.9rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #cccccc;
  border-radius: var(--border-radius-sm);
  font-family: var(--font-primary);
  font-size: 1rem;
}

.form-group textarea {
  resize: vertical;
}

.submit-button {
  font-family: var(--font-headings);
  background-color: #c0c0c0;
  color: var(--color-text-dark);
  padding: 10px 20px;
  border: 3px solid;
  border-top-color: #ffffff;
  border-left-color: #ffffff;
  border-right-color: #808080;
  border-bottom-color: #808080;
  border-radius: 0; /* Keeping the retro button style */
  cursor: pointer;
  font-size: 0.9rem; /* Changed from em to rem */
  display: block;
  width: 100%;
  margin-top: 20px;
  transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out;
}

.submit-button:hover {
  background-color: #d1d1d1;
}

.submit-button:active {
  background-color: #a0a0a0;
  border-top-color: #808080;
  border-left-color: #808080;
  border-right-color: #ffffff;
  border-bottom-color: #ffffff;
}

.form-message {
  margin-top: 20px;
  padding: 10px;
  border-radius: var(--border-radius-sm);
  text-align: center;
  font-family: var(--font-primary);
  font-size: 1rem;
}

.form-message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* --- Terms of Service Page Specific Styles --- */
.terms-page-content {
  font-family: var(--font-primary);
  line-height: 1.6;
  padding: 20px;
}

.terms-page-content h1 {
  font-family: var(--font-headings);
  text-align: center; /* Keep terms page H1 centered */
  margin-bottom: 20px;
  font-size: 2.2rem; /* Changed from em to rem */
  display: block; /* Override the inline display for terms page */
}

.terms-page-content h3,
.terms-page-content p,
.terms-page-content ul,
.terms-page-content li,
.terms-page-content strong,
.terms-page-content a {
  font-family: var(
    --font-primary
  ); /* Ensures all children use primary font unless overridden */
}

/* Added rule for terms page lists */
.terms-page-content ul {
  list-style-type: none; /* Remove default list bullets */
  padding-left: 20px; /* Maintain existing padding */
}

/* CSS to disable text selection on game elements */
/* Consider making this a utility class .no-select and applying it more specifically */
.game-app-container *,
canvas {
  /* Combined these as they had identical properties */
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none; /* Modern Firefox supports user-select directly well */
  /* -ms-user-select: none; */ /* IE specific, often can be removed */
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.game-iframe-container {
  text-align: center; /* Centers the iframe if it's an inline-block or has auto margins */
  width: 100%; /* Container takes full available width */
}

.game-iframe {
  display: block; /* Removes extra space below iframe if it were inline */
  width: 100%; /* Iframe takes full width of its container */
  height: 600px; /* Initial height, JavaScript will override this */
  margin: 10px auto; /* Centers the iframe block */
  border: 0;
  background-color: #f0f0f0; /* Background for the iframe element itself before content loads */
  overflow: hidden; /* Prevents scrollbars on the iframe element itself if content overflows slightly before JS resize */
}

/* Responsive adjustments for the iframe's max-width if needed */
@media (max-width: 480px) {
  .game-iframe {
    max-width: 100%; /* Allow iframe to be full width on small screens */
    margin-left: 0;
    margin-right: 0;
  }
  .main-content-area > h1 {
    /* Example: reduce heading size on small screens */
    font-size: 1.3rem;
  }
  .main-content {
    margin: 0;
    padding: 50px 0 0 0; /* Ensure mobile padding is maintained for floating header */
    /* border-radius: 0; */ /* Kept commented if sometimes needed */
    /* box-shadow: none; */ /* Kept commented if sometimes needed */
    overflow: hidden;
  }
}

/* === SHARED GAME CONTROL STYLES === */
/* These styles provide consistent game control elements across all games */

/* Icon button container - centers game controls like restart, share, sound toggle */
.game-icon-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
}

/* Base style for all game control icon buttons */
.game-icon-button {
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: #555; /* Specific icon color, could be a variable --color-icon-default */
  line-height: 0; /* Prevents extra space if button has text/descenders */
  transition: opacity 0.2s ease, transform 0.1s ease;
}

.game-icon-button:hover {
  opacity: 0.7; /* Consistent hover effect across all games */
}

.game-icon-button:active {
  transform: scale(0.9); /* Subtle press effect */
}

.game-icon-button svg {
  width: 28px;
  height: 28px;
  display: block; /* Removes any extra space below the SVG if it were inline */
  fill: currentColor; /* SVG color will be inherited from button's color property */
}

/* Responsive icon sizing */
@media (max-width: 480px) {
  .game-icon-button svg {
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 360px) {
  .game-icon-button svg {
    width: 22px;
    height: 22px;
  }
}

/* === END SHARED GAME CONTROL STYLES === */

/* === RELATED GAMES SECTION STYLES === */
.related-games-section {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
  text-align: center;
}

.related-games-section h3 {
  margin-bottom: 1.5rem;
}

.related-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.related-game-card {
  display: flex;
  align-items: center;
  background: var(--color-background-white);
  border-radius: var(--border-radius-lg);
  padding: 1rem;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 2px solid transparent;
}

.related-game-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  border-color: var(--color-brand-accent);
}

.related-game-card img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--border-radius-md);
  margin-right: 1rem;
  flex-shrink: 0;
}

.related-game-info {
  text-align: left;
  flex-grow: 1;
}

.related-game-info h4 {
  font-family: var(--font-primary); /* Explicitly Inter, not Poppins */
  font-weight: 600;
  font-size: 1rem;
  margin: 0 0 0.25rem 0;
  color: var(--color-text-default);
}

.related-game-info p {
  font-family: var(--font-primary);
  font-size: 0.85rem;
  color: #666; /* Specific grey, could be --color-text-muted */
  margin: 0;
  line-height: 1.3;
}

@media (max-width: 600px) {
  .related-games-grid {
    grid-template-columns: 1fr;
  }

  .related-game-card {
    padding: 0.75rem;
  }

  .related-game-card img {
    width: 50px;
    height: 50px;
  }

  .related-games-section h3 {
    font-size: 1rem;
  }
}

/* --- Breadcrumb Navigation Styles --- */
.breadcrumb-nav {
  max-width: var(--container-max-width);
  margin: 0 auto 1rem auto;
  padding: 0 1rem;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
  color: #666;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
}

.breadcrumb-item:not(:last-child)::after {
  content: "›";
  margin: 0 0.5rem;
  color: #999;
  font-weight: bold;
}

.breadcrumb-item a {
  color: var(--color-brand-accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
  color: #5a9654; /* Darker shade of brand accent for hover */
  text-decoration: underline;
}

.breadcrumb-item span[aria-current="page"] {
  color: var(--color-text-default);
  font-weight: 500;
}

@media (max-width: 600px) {
  .breadcrumb-nav {
    padding: 0 0.5rem;
  }

  .breadcrumb-list {
    font-size: 0.8rem;
  }
}

.au1 {
  max-width: 948px; /* Specific width, not var(--container-max-width) which is 984px. Keep as is. */
  margin: 10px auto;
  text-align: center; /* Centers any inline content within the ad unit */
  display: block; /* Ensures it's treated as a block element */
}

/* Game description that appears inline after H1 title */
.game-description {
  font-family: var(--font-primary);
  font-size: 1rem;
  color: #666; /* Slightly muted color for description */
  font-style: italic;
  line-height: 1.2;
  text-align: center;
  margin: 0 0 20px 0;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.help-icon {
  width: 20px;
  height: 20px;
  color: #333;
  fill: #333;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease, fill 0.2s ease;
  flex-shrink: 0;
}

.help-icon:hover {
  color: #000;
  fill: #000;
  transform: scale(1.1);
}

/* Specific override for game page H1 titles to ensure left alignment */
.game-app-container h1,
.main-content h1:not(.contact-page-content h1):not(.terms-page-content h1) {
  text-align: left !important;
  display: inline !important;
}
