/* ==========================================================================
   SPIDER-GAMES POLAR - MAIN PORTAL STYLESHEET
   Inspired by Cyber Arcade & Modern Dark Gaming Portals
   ========================================================================== */

:root {
  --bg-primary: #070913;
  --bg-secondary: #0d1127;
  --bg-card: rgba(16, 22, 48, 0.75);
  --bg-card-hover: rgba(24, 33, 70, 0.9);
  --border-card: rgba(0, 229, 255, 0.18);
  --border-card-hover: rgba(255, 23, 68, 0.6);
  --accent-red: #ff1744;
  --accent-red-hover: #d50000;
  --accent-cyan: #00e5ff;
  --accent-cyan-hover: #00b0ff;
  --accent-gold: #ffb300;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --glow-red: 0 0 20px rgba(255, 23, 68, 0.45);
  --glow-cyan: 0 0 20px rgba(0, 229, 255, 0.35);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(circle at 10% 15%, rgba(255, 23, 68, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 45%, rgba(0, 229, 255, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(124, 77, 255, 0.06) 0%, transparent 50%);
  background-attachment: fixed;
  color: var(--text-main);
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

/* ==========================================================================
   HEADER & NAVBAR
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(8, 11, 24, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0, 229, 255, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.header-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-logo {
  display: flex;
  align-items: center;
  height: 48px;
}

.brand-logo img {
  height: 44px;
  width: auto;
  filter: drop-shadow(0 0 8px rgba(255, 23, 68, 0.5));
}

.header-search {
  flex: 1;
  max-width: 440px;
  position: relative;
}

.search-input {
  width: 100%;
  background: rgba(17, 23, 47, 0.8);
  border: 1px solid var(--border-card);
  border-radius: 30px;
  padding: 10px 20px 10px 44px;
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: var(--transition);
}

.search-input:focus {
  border-color: var(--accent-cyan);
  box-shadow: var(--glow-cyan);
  background: rgba(22, 30, 62, 0.95);
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link:hover, .nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.nav-btn-highlight {
  background: linear-gradient(135deg, var(--accent-red), #b71c1c);
  color: #fff !important;
  border-radius: 20px;
  padding: 8px 18px;
  font-weight: 700;
  box-shadow: var(--glow-red);
}

.nav-btn-highlight:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 25px rgba(255, 23, 68, 0.7);
}

/* ==========================================================================
   ADSENSE PLACEHOLDER SLOTS
   ========================================================================== */
.ad-slot-wrapper {
  max-width: 1360px;
  margin: 16px auto;
  padding: 0 20px;
  text-align: center;
}

.adsense-box {
  background: rgba(14, 18, 38, 0.6);
  border: 1px dashed rgba(0, 229, 255, 0.3);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  color: var(--text-dim);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.adsense-box.sidebar-ad {
  min-height: 300px;
  width: 100%;
}

.adsense-badge {
  font-size: 10px;
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
  color: var(--text-muted);
}

/* ==========================================================================
   HERO BANNER SHOWCASE
   Inspired by MarioGaming & GreenCasino Hero Promos
   ========================================================================== */
.hero-section {
  max-width: 1360px;
  margin: 16px auto 28px;
  padding: 0 20px;
}

.hero-banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, #130a24, #0b1129 60%, #060917);
  border: 1px solid rgba(255, 23, 68, 0.3);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), inset 0 0 30px rgba(0, 229, 255, 0.1);
  display: flex;
  align-items: center;
  min-height: 340px;
  padding: 40px;
}

.hero-banner-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  opacity: 0.85;
  pointer-events: none;
  background-size: cover;
  background-position: right center;
  mask-image: linear-gradient(to right, transparent, black 40%);
  -webkit-mask-image: linear-gradient(to right, transparent, black 40%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 23, 68, 0.15);
  border: 1px solid var(--accent-red);
  color: #ff5252;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.hero-title {
  font-size: 38px;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}

.hero-title span {
  background: linear-gradient(135deg, var(--accent-red), #ff5252);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 24px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-red), var(--accent-red-hover));
  color: #fff;
  padding: 13px 32px;
  border-radius: 30px;
  font-weight: 800;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--glow-red);
  cursor: pointer;
  border: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(255, 23, 68, 0.7);
}

.btn-secondary {
  background: rgba(15, 22, 46, 0.85);
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
  padding: 12px 26px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-secondary:hover {
  background: var(--accent-cyan);
  color: #060b1e;
  box-shadow: var(--glow-cyan);
}

/* ==========================================================================
   CATEGORY PILL BAR
   Inspired by PinWin & MarioGaming Icon Navigation
   ========================================================================== */
.categories-section {
  max-width: 1360px;
  margin: 0 auto 30px;
  padding: 0 20px;
}

.categories-bar {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-cyan) transparent;
}

.categories-bar::-webkit-scrollbar {
  height: 4px;
}
.categories-bar::-webkit-scrollbar-thumb {
  background: rgba(0, 229, 255, 0.3);
  border-radius: 4px;
}

.cat-btn {
  background: rgba(16, 22, 48, 0.75);
  border: 1px solid var(--border-card);
  color: var(--text-muted);
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.cat-btn:hover, .cat-btn.active {
  background: linear-gradient(135deg, rgba(255, 23, 68, 0.2), rgba(0, 229, 255, 0.15));
  border-color: var(--accent-cyan);
  color: #fff;
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.25);
}

.cat-btn .cat-icon {
  font-size: 16px;
}

/* ==========================================================================
   SECTION HEADER
   ========================================================================== */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-icon {
  font-size: 22px;
  color: var(--accent-red);
}

.section-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: #fff;
}

.section-count {
  font-size: 13px;
  color: var(--accent-cyan);
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.3);
  padding: 2px 10px;
  border-radius: 20px;
  font-weight: 700;
}

/* ==========================================================================
   GAME CARDS GRID
   ========================================================================== */
.games-grid-section {
  max-width: 1360px;
  margin: 0 auto 40px;
  padding: 0 20px;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}

.game-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(10px);
}

.game-card:hover {
  transform: translateY(-6px);
  background: var(--bg-card-hover);
  border-color: var(--border-card-hover);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 23, 68, 0.35);
}

.game-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #090c1a;
}

.game-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.game-card:hover .game-thumb {
  transform: scale(1.06);
}

.game-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg, var(--accent-red), #b71c1c);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.game-badge.badge-hot {
  background: linear-gradient(135deg, #ff9100, #ff3d00);
}
.game-badge.badge-new {
  background: linear-gradient(135deg, #00e5ff, #0091ea);
  color: #060b1e;
}
.game-badge.badge-featured {
  background: linear-gradient(135deg, #ff1744, #d50000);
  box-shadow: 0 0 10px rgba(255, 23, 68, 0.6);
}
.game-badge.badge-3d {
  background: linear-gradient(135deg, #7c4dff, #651fff);
  box-shadow: 0 0 10px rgba(124, 77, 255, 0.6);
}

.game-play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(8, 11, 24, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.game-card:hover .game-play-overlay {
  opacity: 1;
}

.play-hover-btn {
  background: linear-gradient(135deg, var(--accent-red), #d50000);
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 0 20px rgba(255, 23, 68, 0.8);
  transform: scale(0.85);
  transition: transform 0.2s ease;
}

.game-card:hover .play-hover-btn {
  transform: scale(1);
}

.game-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.game-card-title {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
  line-height: 1.3;
}

.game-card-category {
  font-size: 12px;
  color: var(--accent-cyan);
  font-weight: 600;
  margin-bottom: 12px;
}

.game-card-meta {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 10px;
}

.meta-rating {
  color: var(--accent-gold);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

.meta-plays {
  color: var(--text-dim);
}

/* ==========================================================================
   LIVE ACTIVITY TICKER (COMMUNITY ARCADE ATMOSPHERE)
   Inspired by PinWin & GreenCasino high-roller stats
   ========================================================================== */
.ticker-section {
  max-width: 1360px;
  margin: 0 auto 40px;
  padding: 0 20px;
}

.ticker-card {
  background: rgba(14, 19, 42, 0.7);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.ticker-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 800;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.ticker-list {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  flex: 1;
  padding: 4px 0;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  white-space: nowrap;
}

.ticker-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-red), #9c27b0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.ticker-user {
  font-weight: 700;
  color: #fff;
}

.ticker-score {
  color: var(--accent-gold);
  font-weight: 800;
}

/* ==========================================================================
   SEO CONTENT SECTION (TARGETED FOR USA & CANADA)
   ========================================================================== */
.seo-section {
  max-width: 1360px;
  margin: 40px auto;
  padding: 0 20px;
}

.seo-card {
  background: rgba(14, 18, 38, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 36px;
  color: var(--text-muted);
}

.seo-card h2 {
  font-size: 24px;
  color: #fff;
  margin-bottom: 14px;
  font-weight: 800;
}

.seo-card h3 {
  font-size: 18px;
  color: var(--accent-cyan);
  margin: 22px 0 10px;
  font-weight: 700;
}

.seo-card p {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 14px;
}

.seo-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.seo-feat-item {
  background: rgba(18, 24, 52, 0.6);
  border: 1px solid rgba(0, 229, 255, 0.15);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.seo-feat-item strong {
  color: #fff;
  display: block;
  margin-bottom: 6px;
}

/* ==========================================================================
   GAME PLAYER MODAL & STANDALONE PAGE
   ========================================================================== */
.game-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 6, 15, 0.94);
  backdrop-filter: blur(12px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.game-modal.active {
  display: flex;
}

.modal-content {
  position: relative;
  background: #090c1a;
  border: 2px solid var(--accent-red);
  box-shadow: 0 0 40px rgba(255, 23, 68, 0.4);
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 1100px;
  height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-header {
  height: 52px;
  background: rgba(15, 20, 44, 0.95);
  border-bottom: 1px solid rgba(0, 229, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.modal-title {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-actions {
  display: flex;
  gap: 10px;
}

.modal-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  font-weight: 600;
}

.modal-btn:hover {
  background: var(--accent-cyan);
  color: #060b1e;
}

.modal-close-btn {
  background: var(--accent-red);
  border: none;
  color: #fff;
}
.modal-close-btn:hover {
  background: #d50000;
}

.modal-iframe-wrap {
  flex: 1;
  width: 100%;
  height: 100%;
  background: #000;
}

.modal-iframe-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ==========================================================================
   FOOTER & LEGAL PAGES
   ========================================================================== */
.site-footer {
  background: #050711;
  border-top: 1px solid rgba(0, 229, 255, 0.15);
  margin-top: 60px;
  padding: 50px 20px 30px;
}

.footer-container {
  max-width: 1360px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 14px;
  line-height: 1.6;
  max-width: 360px;
}

.footer-col h4 {
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--accent-cyan);
  padding-left: 4px;
}

.footer-disclaimer-card {
  background: rgba(14, 18, 38, 0.6);
  border: 1px solid rgba(255, 23, 68, 0.2);
  border-radius: var(--radius-sm);
  padding: 16px;
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.6;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 14px;
}

/* ==========================================================================
   STATIC LEGAL CONTENT PAGES (About, Privacy, DMCA, Contact)
   ========================================================================== */
.legal-page-container {
  max-width: 960px;
  margin: 40px auto 80px;
  padding: 0 20px;
}

.legal-card {
  background: rgba(13, 17, 36, 0.85);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 44px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.legal-card h1 {
  font-size: 32px;
  color: #fff;
  margin-bottom: 8px;
  font-weight: 900;
}

.legal-card .updated-date {
  font-size: 13px;
  color: var(--accent-cyan);
  margin-bottom: 30px;
}

.legal-card h2 {
  font-size: 20px;
  color: var(--accent-red);
  margin: 28px 0 12px;
  font-weight: 800;
}

.legal-card h3 {
  font-size: 16px;
  color: #fff;
  margin: 18px 0 8px;
  font-weight: 700;
}

.legal-card p, .legal-card ul {
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.8;
  margin-bottom: 16px;
}

.legal-card ul {
  padding-left: 24px;
}

.legal-card li {
  margin-bottom: 8px;
}

.highlight-box {
  background: rgba(0, 229, 255, 0.08);
  border-left: 4px solid var(--accent-cyan);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 20px 0;
  font-size: 14px;
  color: #e2e8f0;
}

/* Contact Form */
.contact-form {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.form-input, .form-textarea {
  background: rgba(18, 24, 52, 0.8);
  border: 1px solid var(--border-card);
  border-radius: 8px;
  padding: 12px 16px;
  color: #fff;
  font-size: 14px;
  outline: none;
  font-family: inherit;
  transition: var(--transition);
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--accent-cyan);
  box-shadow: var(--glow-cyan);
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (DESKTOP, TABLET & MOBILE VIEWPORTS)
   ========================================================================== */
@media(max-width: 992px) {
  .hero-banner {
    flex-direction: column;
    padding: 28px 20px;
    min-height: auto;
  }
  .hero-banner-bg {
    width: 100%;
    opacity: 0.25;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
  }
}

@media(max-width: 768px) {
  html, body {
    overflow-x: hidden;
    width: 100%;
  }

  /* Compact Mobile Header */
  .header-container {
    padding: 8px 14px;
    gap: 8px;
    flex-wrap: wrap;
  }
  .brand-logo img {
    height: 36px;
  }
  .header-nav {
    gap: 8px;
  }
  .nav-link {
    padding: 6px 10px;
    font-size: 12px;
  }
  .header-search {
    order: 3;
    max-width: 100%;
    width: 100%;
    margin-top: 4px;
  }
  .search-input {
    padding: 8px 16px 8px 38px;
    font-size: 13px;
  }

  /* Compact Hero */
  .hero-section {
    margin: 10px auto 20px;
    padding: 0 12px;
  }
  .hero-banner {
    padding: 22px 16px;
    border-radius: var(--radius-md);
  }
  .hero-pill {
    font-size: 10px;
    padding: 4px 10px;
    margin-bottom: 10px;
  }
  .hero-title {
    font-size: 24px;
    margin-bottom: 10px;
  }
  .hero-desc {
    font-size: 13px;
    margin-bottom: 16px;
    line-height: 1.5;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  .btn-primary, .btn-secondary {
    width: 100%;
    justify-content: center;
    padding: 11px 18px;
    font-size: 13px;
  }

  /* Mobile Categories Scroll */
  .categories-section {
    margin: 0 auto 20px;
    padding: 0 12px;
  }
  .categories-bar {
    gap: 8px;
    padding-bottom: 4px;
  }
  .cat-btn {
    padding: 8px 14px;
    font-size: 12px;
  }

  /* Mobile 2-Column Game Grid */
  .games-grid-section {
    padding: 0 12px;
    margin-bottom: 30px;
  }
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .game-card {
    border-radius: 10px;
  }
  .game-badge {
    top: 6px;
    left: 6px;
    font-size: 8.5px;
    padding: 3px 7px;
  }
  .game-info {
    padding: 10px;
  }
  .game-card-title {
    font-size: 13px;
    margin-bottom: 4px;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .game-card-category {
    font-size: 10.5px;
    margin-bottom: 6px;
  }
  .game-card-meta {
    font-size: 10.5px;
    padding-top: 6px;
  }
  .game-info .btn-primary, .game-info .btn-secondary {
    padding: 6px 8px !important;
    font-size: 11px !important;
  }

  /* Mobile Modal Player (Full Viewport) */
  .game-modal {
    padding: 0;
  }
  .modal-content {
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    border-radius: 0;
    border: none;
  }
  .modal-header {
    height: 48px;
    padding: 0 12px;
  }
  .modal-title {
    font-size: 13px;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .modal-actions {
    gap: 6px;
  }
  .modal-btn {
    padding: 5px 10px;
    font-size: 11px;
  }

  /* Mobile Footer */
  .site-footer {
    padding: 30px 14px 20px;
    margin-top: 40px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-bottom: 24px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  /* Mobile Legal Pages */
  .legal-page-container {
    margin: 16px auto 40px;
    padding: 0 12px;
  }
  .legal-card {
    padding: 22px 16px;
    border-radius: 12px;
  }
  .legal-card h1 {
    font-size: 24px;
  }
  .legal-card h2 {
    font-size: 18px;
    margin: 20px 0 8px;
  }
  .legal-card p, .legal-card ul {
    font-size: 13.5px;
    line-height: 1.6;
  }
}

@media(max-width: 380px) {
  .games-grid {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   GEOMETRYDASH.IE STYLE EXPANDED SEO & FAQ COMPONENTS
   ========================================================================== */
.controls-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 24px 0 32px;
}
.control-key-card {
  background: rgba(18, 24, 52, 0.7);
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
  transition: var(--transition);
}
.control-key-card:hover {
  border-color: var(--accent-cyan);
  box-shadow: var(--glow-cyan);
  transform: translateY(-2px);
}
.control-key-badge {
  display: inline-block;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(0, 229, 255, 0.6);
  color: var(--accent-cyan);
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 14px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 6px;
  margin-bottom: 10px;
  letter-spacing: 1px;
}
.control-key-action {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

/* Multiverse Hero Suits Grid */
.suits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin: 20px 0 32px;
}
.suit-card {
  background: rgba(16, 21, 46, 0.7);
  border: 1px solid rgba(255, 23, 68, 0.2);
  border-radius: var(--radius-sm);
  padding: 18px;
  transition: var(--transition);
}
.suit-card:hover {
  border-color: var(--accent-red);
  box-shadow: var(--glow-red);
  transform: translateY(-2px);
}
.suit-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.suit-icon {
  font-size: 24px;
}
.suit-name {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}
.suit-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* FAQ Accordion */
.faq-accordion {
  margin: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: rgba(15, 20, 44, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: var(--transition);
}
.faq-item:hover {
  border-color: rgba(0, 229, 255, 0.4);
}
.faq-question {
  padding: 16px 20px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
.faq-toggle-icon {
  color: var(--accent-cyan);
  font-size: 13px;
  transition: transform 0.25s ease;
}
.faq-item.active .faq-toggle-icon {
  transform: rotate(180deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out;
  padding: 0 20px;
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.7;
}
.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 20px 18px;
}

/* SEO Comparison Table */
.seo-table-wrap {
  overflow-x: auto;
  margin: 24px 0 32px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.seo-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13.5px;
  background: rgba(13, 17, 38, 0.7);
}
.seo-table th {
  background: rgba(22, 29, 64, 0.9);
  color: var(--accent-cyan);
  padding: 12px 16px;
  font-weight: 700;
  border-bottom: 1px solid rgba(0, 229, 255, 0.2);
}
.seo-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-main);
}
.seo-table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

/* Pro Tips Callout Box */
.pro-tips-box {
  background: linear-gradient(135deg, rgba(255, 23, 68, 0.08) 0%, rgba(0, 229, 255, 0.08) 100%);
  border-left: 4px solid var(--accent-red);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 20px;
  margin: 24px 0;
}
.pro-tips-box h4 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
