﻿/* Custom CSS for No I'm Not a Human Fan Site */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --primary-color: #667eea;
  --secondary-color: #764ba2;
  --accent-color: #f093fb;
  --dark-color: #1a202c;
  --light-color: #f7fafc;
  --success-color: #48bb78;
  --warning-color: #ed8936;
  --error-color: #f56565;
  --info-color: #4299e1;
  --horror-red: #8B0000;
  --horror-dark: #1a0a0a;
  --horror-gray: #2a1a1a;
  --nav-h: 64px;
  --font-hero: clamp(2.5rem, 5vw, 4rem);
  --font-heading: clamp(1.6rem, 3vw, 2.5rem);
  --font-subheading: 1.15rem;
  --font-body: 1rem;
  --font-small: 0.95rem;
  --ad-min-height: 260px;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: #2d3748;
  overflow-x: hidden;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a0a0a 50%, #0a0a0a 100%);
}

body.search-overlay-open {
  overflow: hidden;
}

img,
picture,
video,
canvas {
  max-width: 100%;
  height: auto;
  display: block;
}

iframe {
  max-width: 100%;
}

.adsbygoogle {
  display: block !important;
  width: 100% !important;
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
  min-height: var(--ad-min-height);
}

.ad-frame {
  min-height: var(--ad-min-height);
  width: 100%;
  border-radius: 1rem;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  background: rgba(10, 10, 12, 0.6);
  display: flex;
  justify-content: center;
  padding: 1rem;
  position: relative;
}

.ad-frame .adsbygoogle {
  min-height: calc(var(--ad-min-height) - 2rem);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}

/* Gradient Backgrounds */
.gradient-bg {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.gradient-bg-alt {
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
}

/* Hero Pattern */
.hero-pattern {
  background-image: 
    radial-gradient(circle at 25% 25%, rgba(255,255,255,0.1) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(255,255,255,0.1) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

@keyframes bounce {
  0%, 20%, 53%, 80%, 100% {
    transform: translate3d(0,0,0);
  }
  40%, 43% {
    transform: translate3d(0, -30px, 0);
  }
  70% {
    transform: translate3d(0, -15px, 0);
  }
  90% {
    transform: translate3d(0, -4px, 0);
  }
}

@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: var(--primary-color) }
}

@keyframes button-press {
  0% { transform: scale(1); }
  50% { transform: scale(0.95); }
  100% { transform: scale(1); }
}

/* Animation Classes */
.animate-fadeInUp {
  animation: fadeInUp 0.8s ease-out;
}

.animate-fadeInLeft {
  animation: fadeInLeft 0.8s ease-out;
}

.animate-fadeInRight {
  animation: fadeInRight 0.8s ease-out;
}

.animate-pulse {
  animation: pulse 2s infinite;
}

.animate-bounce {
  animation: bounce 2s infinite;
}

/* Typing Animation */
.typing-animation {
  border-right: 2px solid var(--primary-color);
  animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
  white-space: nowrap;
  overflow: hidden;
}

/* Card Hover Effects */
.card-hover {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Glass Effect */
.glass-effect {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Neon Glow Effect */
.neon-glow {
  box-shadow: 
    0 0 5px var(--primary-color),
    0 0 10px var(--primary-color),
    0 0 15px var(--primary-color),
    0 0 20px var(--primary-color);
}

/* Enhanced Button Styles */
.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(102, 126, 234, 0.4);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
  animation: button-press 0.2s ease;
}

.btn-primary:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-secondary:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-secondary:active {
  transform: translateY(0) scale(0.98);
  animation: button-press 0.2s ease;
}

.btn-secondary:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Horror-themed buttons */
.btn-horror {
  background: linear-gradient(45deg, var(--horror-red), #a00000);
  border: 2px solid var(--horror-red);
  color: white;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.btn-horror:hover {
  background: linear-gradient(45deg, #a00000, var(--horror-red));
  box-shadow: 0 8px 15px rgba(139, 0, 0, 0.4);
  transform: translateY(-2px);
  color: white;
}

.btn-horror:active {
  transform: translateY(0) scale(0.98);
  animation: button-press 0.2s ease;
}

.btn-horror:focus {
  outline: 2px solid var(--horror-red);
  outline-offset: 2px;
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #f5f5f5;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.06);
  transition: all 0.25s ease;
  min-height: 44px;
}

.btn-ghost:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.btn-ghost:active {
  transform: translateY(1px);
}

.btn-ghost:focus {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 2px;
}

.btn-outline-accent {
  border: 2px solid var(--horror-red);
  color: var(--horror-red);
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 600;
  background: transparent;
  text-decoration: none;
  transition: all 0.25s ease;
  min-height: 44px;
}

.btn-outline-accent:hover {
  background: rgba(248, 113, 113, 0.12);
  color: #ffffff;
  box-shadow: 0 6px 14px rgba(139, 0, 0, 0.3);
}

.btn-outline-accent:focus {
  outline: 2px solid rgba(248, 113, 113, 0.8);
  outline-offset: 2px;
}

.btn-nav {
  background: linear-gradient(45deg, #333, #444);
  border: 1px solid #555;
  color: #e0e0e0;
  padding: 8px 16px;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
  overflow: hidden;
}

.btn-nav:hover {
  background: linear-gradient(45deg, var(--horror-red), #a00000);
  border-color: var(--horror-red);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(139, 0, 0, 0.3);
}

.btn-nav:active {
  transform: translateY(0) scale(0.98);
  animation: button-press 0.2s ease;
}

/* Home page refinements */
.home-page {
  background: radial-gradient(circle at top, rgba(32, 8, 16, 0.7), #050305 60%);
  color: #f5f5f5;
}

.home-page main {
  padding-top: 2rem;
}

.home-section {
  position: relative;
  padding: 3.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.home-section:first-of-type {
  border-top: none;
}

.home-page .section-heading {
  letter-spacing: -0.02em;
  font-size: var(--font-heading);
}

.home-page .section-eyebrow {
  letter-spacing: 0.35em;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: #f47171;
}

.home-page p {
  font-size: var(--font-body);
}

.hero-section {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-buttons a {
  flex: 1 1 220px;
  text-align: center;
}

.hero-buttons .btn-ghost {
  background: linear-gradient(120deg, #7f5dff, #ff4fd8);
  border: none;
  color: #fff;
  box-shadow: 0 15px 40px rgba(255, 79, 216, 0.35);
}

.hero-buttons .btn-ghost:hover {
  background: linear-gradient(120deg, #ff4fd8, #ff8a4f);
  border: none;
  box-shadow: 0 20px 45px rgba(255, 138, 79, 0.45);
}

.hero-title {
  text-shadow: 0 10px 45px rgba(0, 0, 0, 0.45);
  font-size: var(--font-hero);
}

.hero-subtitle {
  color: rgba(247, 247, 255, 0.8);
  font-size: var(--font-subheading);
}

.hero-meta {
  letter-spacing: 0.4em;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
}

.hero-visual {
  aspect-ratio: 16 / 9;
  width: 100%;
  min-height: 220px;
  background: #050505;
  border: 1px solid rgba(148, 163, 184, 0.2);
  position: relative;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
}

@media (min-width: 768px) {
  .hero-visual {
    min-height: 320px;
  }
}

.home-section-header {
}

.home-section-cta {
  min-width: 200px;
  justify-content: center;
}

.home-page .content-card,
.home-page .horror-card {
  background: rgba(15, 8, 12, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
}

.home-page .content-card h3,
.home-page .horror-card h3 {
  letter-spacing: -0.01em;
}

.home-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.home-gallery .content-card {
  display: flex;
  flex-direction: column;
  border-radius: 1rem;
  overflow: hidden;
}

.home-gallery .content-card img {
  height: 260px;
  object-fit: cover;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.home-gallery .content-card--placeholder {
  background: rgba(255, 255, 255, 0.02);
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.category-pills .pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
  color: #f5f5f5;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
}

.category-pills .pill:hover {
  border-color: var(--horror-red);
  color: #ffffff;
}

.hero-carousel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.hero-carousel-grid .game-card {
  background: rgba(15, 8, 12, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 1rem;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
  height: 100%;
}

.hero-carousel-grid .game-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.18);
}

.hero-carousel-grid .game-thumb img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.hero-carousel-grid .game-info {
  background: rgba(0, 0, 0, 0.35);
}

.game-card-snippet {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  margin-top: 0.75rem;
}

.game-card-snippet-line {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.85rem;
  line-height: 1.4;
  color: #d1d5db;
}

.game-card-snippet-label {
  display: inline-block;
  min-width: 5.5rem;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: #f87171;
}

.game-card-snippet-copy {
  flex: 1;
}

.strategy-notes-section {
  border-radius: 1rem;
}

.strategy-notes-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  gap: 1rem;
}

.strategy-note-toggle {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(248, 113, 113, 0.6);
  background: transparent;
  color: #f87171;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.strategy-note-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.strategy-note-list.strategy-notes-collapsed {
  max-height: 9rem;
  overflow: hidden;
}

.strategy-note-item {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.85rem;
  background: rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.strategy-note-accordion {
  width: 100%;
}

.strategy-note-accordion summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  cursor: pointer;
}

.strategy-note-accordion summary::-webkit-details-marker {
  display: none;
}

.strategy-note-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: #f87171;
}

.strategy-note-icon {
  font-size: 1rem;
}

.strategy-note-summary-text {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

.strategy-note-accordion[open] .strategy-note-summary-text {
  color: rgba(255, 255, 255, 0.85);
}

.strategy-note-accordion .strategy-note-copy {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1rem;
  color: #e5e7eb;
  line-height: 1.5;
}

.recommended-guides-section {
  border-radius: 1rem;
}

.recommended-guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.recommended-guide-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.9rem;
  text-decoration: none;
  background: rgba(0, 0, 0, 0.35);
  color: #f3f4f6;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.recommended-guide-card:hover {
  border-color: rgba(248, 113, 113, 0.8);
  transform: translateY(-3px);
}

.recommended-guide-title {
  font-weight: 600;
  letter-spacing: 0.03em;
}

.recommended-guide-arrow {
  font-size: 0.85rem;
  color: #f87171;
}

.about-ctas .btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.25);
}

.about-ctas .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
}

.home-category-grid a {
  text-align: center;
  padding: 2rem 1.5rem;
  gap: 0.75rem;
  display: flex;
  flex-direction: column;
}

.home-category-grid .text-gray-400 {
  font-size: var(--font-small);
}

.footer-link-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  align-items: flex-start;
}

.footer-link-columns ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-link-columns ul li a {
  color: rgba(229, 229, 235, 0.85);
  transition: color 0.2s ease;
}

.footer-link-columns ul li a:hover {
  color: var(--horror-red);
}

.footer-link-columns h4 {
  font-size: 1.1rem;
}

.footer-link-columns ul li a {
  font-size: 0.95rem;
}

.footer-bottom-row {
  gap: 0.75rem;
}

.footer-bottom-links {
  gap: 1.25rem;
}

.home-page footer .text-sm {
  font-size: var(--font-small);
}

@media (max-width: 640px) {
  footer .footer-link-columns {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.5rem;
  }

  footer .footer-link-columns ul {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
  }

  footer .footer-link-columns ul li a {
    font-size: 1rem;
    width: 100%;
  }

  footer .footer-bottom-row {
    text-align: center;
  }

  footer .footer-bottom-links {
    flex-direction: column;
    gap: 0.4rem;
  }
}
.feature-card {
  background: rgba(15, 10, 14, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 1rem;
}

.home-guides-grid .guide-card {
  background: rgba(14, 8, 10, 0.9);
  border-radius: 1.25rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.guide-card__hero {
  height: 130px;
  display: flex;
  justify-content: center;
  padding: 1.1rem;
}

.guide-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  text-align: center;
  padding: 1.1rem;
  gap: 0.4rem;
}

.guide-card__body h3 {
  letter-spacing: -0.01em;
}









@media (max-width: 768px) {
  .hero-buttons a {
    flex: 1 1 100%;
  }

  .home-section {
    padding: 2.5rem 0;
  }

  
  .home-category-grid {
    grid-template-columns: 1fr;
  }

  }

.btn-nav:focus {
  outline: 2px solid var(--horror-red);
  outline-offset: 2px;
}

/* Navigation Enhancements */
.nav-link {
  position: relative;
  transition: all 0.3s ease;
  display: inline-block;
  padding: 8px 16px;
  border-radius: 4px;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 50%;
  background: var(--primary-color);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link:hover {
  color: var(--horror-red);
  background: rgba(139, 0, 0, 0.1);
}

.nav-link:focus {
  outline: 2px solid var(--horror-red);
  outline-offset: 2px;
}

/* Section Spacing */
.section-padding {
  padding: 80px 0;
}

/* Text Gradients */
.text-gradient {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Loading Animation */
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive Design Enhancements */
@media (max-width: 768px) {
  .typing-animation {
    font-size: 2rem;
  }
  
  .card-hover:hover {
    transform: translateY(-4px) scale(1.01);
  }
  
  .section-padding {
    padding: 60px 0;
  }
  
  /* Touch-friendly buttons */
  .btn-primary, .btn-secondary, .btn-horror, .btn-nav {
    min-height: 44px;
    min-width: 44px;
    padding: 12px 20px;
  }
  
  /* Improved touch targets */
  a, button, input, select, textarea {
    min-height: 44px;
    min-width: 44px;
    -webkit-tap-highlight-color: transparent;
  }
  
  /* Touch-friendly navigation */
  .nav-links a {
    padding: 12px 16px;
    margin: 4px 0;
  }
  
  /* Mobile dropdown improvements */
  .dropdown-content {
    min-width: 200px;
  }
  
  .dropdown-content a {
    padding: 12px 16px;
    min-height: 44px;
  }
  
  /* Touch-friendly cards */
  .content-card, .horror-card, .game-card {
    transition: transform 0.2s ease;
  }
  
  .content-card:active, .horror-card:active {
    transform: scale(0.98);
  }
}

@media (max-width: 480px) {
  .typing-animation {
    font-size: 1.5rem;
  }
  
  .section-padding {
    padding: 40px 0;
  }
  
  /* Larger touch targets for mobile */
  .btn-primary, .btn-secondary, .btn-horror, .btn-nav {
    min-height: 48px;
    padding: 14px 24px;
    font-size: 16px; /* Minimum font size for accessibility */
  }
  
  /* Mobile-specific touch improvements */
  .mobile-menu .btn-nav {
    display: block;
    width: 100%;
    text-align: center;
    margin: 8px 0;
    padding: 14px;
  }
  
  /* Improved mobile navigation */
  nav {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
  }
  
  /* Mobile menu touch enhancements */
  #mobile-menu-btn {
    padding: 12px;
    border-radius: 4px;
  }
  
  #mobile-menu-btn:active {
    transform: scale(0.95);
  }
  
  .mobile-menu .btn-nav:active {
    transform: scale(0.98);
  }
  
  .mobile-menu a.btn-horror:active {
    transform: scale(0.98);
  }
  
  /* Touch-friendly dropdowns */
  .dropdown .dropbtn {
    padding: 12px 16px;
    min-height: 44px;
  }
  
  .dropdown-content a {
    padding: 12px 16px;
    min-height: 44px;
    display: block;
  }
}

/* Custom Utilities */
.text-shadow {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.border-gradient {
  border: 2px solid;
  border-image: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) 1;
}

/* Particle Background */
.particles-bg {
  position: relative;
  overflow: hidden;
}

.particles-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.3), transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.2), transparent),
    radial-gradient(1px 1px at 90px 40px, rgba(255,255,255,0.4), transparent),
    radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.3), transparent);
  background-repeat: repeat;
  background-size: 150px 100px;
  animation: particles 20s linear infinite;
  pointer-events: none;
}

@keyframes particles {
  0% { transform: translateY(0); }
  100% { transform: translateY(-100px); }
}

/* Code Block Styling */
.code-block {
  background: #1a202c;
  color: #e2e8f0;
  font-family: 'JetBrains Mono', monospace;
  padding: 20px;
  border-radius: 8px;
  overflow-x: auto;
  border-left: 4px solid var(--primary-color);
}

/* Status Indicators */
.status-online {
  color: var(--success-color);
}

.status-offline {
  color: #a0aec0;
}

.status-busy {
  color: var(--warning-color);
}

/* Progress Bars */
.progress-bar {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transition: width 0.3s ease;
}

/* Tooltip Styles */
.tooltip {
  position: relative;
  cursor: help;
}

.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  background: #1a202c;
  color: white;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
}

.tooltip:hover::after {
  opacity: 1;
  visibility: visible;
}

/* Custom Scrollbar for Code Blocks */
.code-block::-webkit-scrollbar {
  height: 8px;
}

.code-block::-webkit-scrollbar-track {
  background: #2d3748;
}

.code-block::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

/* Focus visible styles for accessibility */
*:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Skip to content link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-color);
  color: white;
  padding: 8px;
  text-decoration: none;
  transition: top 0.3s;
  z-index: 1000;
}

.skip-link:focus {
  top: 0;
}

/* Mobile Menu: unified off-canvas drawer - 鏃ц鍒欏凡鍒犻櫎锛岃瑙佷笅鏂圭粺涓€瑙勫垯 */

/********************************
  绉诲姩鑿滃崟 - 缁熶竴瑙勫垯锛堟柟妗圓閲嶅啓锛?
  瑙ｅ喅涓ゅ瑙勫垯鍐茬獊闂
  鏈€鍚庝慨鏀癸細2025-11-10
********************************/

/* 绉诲姩鑿滃崟瀹瑰櫒 - 缁熶竴鍩虹鏍峰紡 */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.95);
  color: #e0e0e0;
  transform: translateX(-100%);
  transition: transform 0.3s ease-in-out;
  will-change: transform;
  pointer-events: none;  /* 榛樿绂佺敤鎵€鏈夌偣鍑?*/
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* 绉诲姩鑿滃崟婵€娲荤姸鎬?*/
.mobile-menu.active {
  transform: translateX(0) !important;
  pointer-events: auto;  /* 婵€娲绘椂鍚敤鐐瑰嚮 */
}

/* 鍏抽棴鎸夐挳锛氬缁堝彲鐐瑰嚮锛堟渶楂樹紭鍏堢骇锛?*/
.mobile-menu #mobile-menu-close {
  pointer-events: auto !important;
  z-index: 61 !important;
}

/* 绉诲姩鑿滃崟閬僵灞?*/
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: var(--z-drawer-overlay) !important;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.mobile-menu-overlay.active {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

/* 閿佹粴鍔?*/
body.no-scroll {
  overflow: hidden !important;
  touch-action: none !important;
}

/* 鍑忓皯鍔ㄧ敾妯″紡鏀寔 */
@media (prefers-reduced-motion: reduce) {
  .mobile-menu { transition: none; }
  .mobile-menu-overlay { transition: none; }
}

/* Global: Navigation scroll effect (unified dark style) */
nav.scrolled {
  background: #000000;
  transition: all 0.3s ease;
}
/* Global Z-index baseline */
:root {
  --z-nav: 1000;
  --z-search-overlay: 9998;
  --z-drawer: 900;
  --z-drawer-overlay: 800;
  --z-progress: 700;
}

/********************************
  Header/Nav and Overlays
********************************/
/ * Prefer utility classes for layout; enforce z via CSS in case of page-level overrides * /
.nav-fixed {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-nav) !important;
  background: #000000;
}

/* Main Navigation Bar - Three Section Layout */
.main-nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: 1.25rem;
  height: var(--nav-h);
  padding: 0 1.5rem;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #333;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
}

.nav-left {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
  flex: 0 0 auto;
}

.nav-left .logo {
  position: relative;
  z-index: 2;
}

.nav-left .nav-play-wrapper {
  display: inline-flex;
  align-items: center;
  position: relative;
  z-index: 1;
}

.nav-center {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  justify-content: center;
  flex: 1 1 auto;
  min-width: 0;
  flex-wrap: nowrap;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  justify-content: flex-end;
}
/* Navigation Brand/Logo */
.logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: #a855f7;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.logo:hover {
  color: #9333ea;
  transform: scale(1.05);
}

/* Play Button - Special Styling */
.play-btn {
  background: linear-gradient(135deg, #8B0000 0%, #DC143C 50%, #FF6347 100%);
  position: relative;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.9rem;
  border: 2px solid #FF6347;
  box-shadow: 0 0 20px rgba(220, 20, 60, 0.6),
              0 4px 15px rgba(139, 0, 0, 0.5),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.play-btn:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.play-btn:hover {
    filter: brightness(1.15);
    transform: translateY(-2px);
    box-shadow: 0 0 10px rgba(220, 20, 60, 0.8),
                0 6px 15px rgba(139, 0, 0, 0.6),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
  border-color: #FFB6C1;
}

.play-btn:hover:before {
  left: 100%;
}

.play-btn:active {
  transform: translateY(0) scale(0.98);
}

/* Tool Buttons */
.tool-btn {
  background: transparent;
  border: 1px solid #333;
  color: #d1d5db;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 1rem;
  display: flex;
  justify-content: center;
}

.tool-btn:hover {
  border-color: #a855f7;
  color: #a855f7;
  background: rgba(168, 85, 247, 0.1);
  transform: translateY(-1px);
}

.tool-btn:active {
  transform: scale(0.95);
}

/* Hamburger Menu Button */
.hamburger-btn {
  background: transparent;
  border: 1px solid #333;
  color: #d1d5db;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s;
  display: none;
  justify-content: center;
}

.hamburger-btn:hover {
  border-color: #a855f7;
  color: #a855f7;
  background: rgba(168, 85, 247, 0.1);
}

.hamburger-btn:active {
  transform: scale(0.95);
}

/* Navigation Links */
.nav-link {
  color: #d1d5db;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s;
  padding: 4px 8px;
  border-radius: 4px;
  position: relative;
}

.nav-link:hover {
  color: #a855f7;
  background: rgba(168, 85, 247, 0.1);
}

.nav-link.active {
  color: #a855f7;
  background: rgba(168, 85, 247, 0.1);
}

.nav-link:focus {
  outline: 2px solid #a855f7;
  outline-offset: 2px;
}

/* Navigation Separator */
.nav-separator {
  color: #4a5568;
  font-weight: 300;
  padding: 0 4px;
}

/* Navigation Section Wrapper */
.nav-section {
  display: flex;
  gap: 1.5rem;
}

/* Genre Links */
.genre-link {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.5px;
}

.genre-link:hover {
  color: #ffffff;
  background: rgba(139, 0, 0, 0.3);
}

/* Site Links */
.site-link {
  font-size: 0.95rem;
}

/* Mobile Menu - Navigation Items */
.mobile-menu .nav-group {
  padding: 0 1rem !important;
}

.mobile-menu .nav-group h3 {
  font-size: 1.125rem !important;
  margin-bottom: 0.75rem !important;
  padding: 0 !important;
}

.mobile-menu .sub-group {
  margin-bottom: 1rem !important;
}

.mobile-menu .sub-group h4 {
  font-size: 0.875rem !important;
  margin-bottom: 0.5rem !important;
  padding: 0 !important;
}

.mobile-menu .nav-item {
  display: block !important;
  color: #d1d5db !important;
  text-decoration: none !important;
  padding: 0.5rem 0 !important;
  transition: color 0.3s !important;
  font-size: 0.875rem !important;
  width: 100% !important;
  box-sizing: border-box !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.mobile-menu .nav-item:last-child {
  border-bottom: none !important;
}

.mobile-menu .nav-item:hover {
  color: var(--horror-red) !important;
  padding-left: 0.5rem !important;
}

.mobile-menu .to-be-adding {
  opacity: 0.6 !important;
  font-style: italic !important;
}

/* Responsive Navigation */
@media (max-width: 1360px) {
  .main-nav {
    padding: 0 1.25rem;
    column-gap: 1rem;
  }

  .nav-left {
    gap: 1rem;
  }

  .nav-center {
    gap: 1.25rem;
  }

  .nav-link {
    font-size: 0.95rem;
    padding: 0.35rem 0.55rem;
  }
}

@media (max-width: 1200px) {
  .main-nav {
    padding: 0 1rem;
    column-gap: 0.75rem;
  }

  .nav-center {
    gap: 0.9rem;
  }

  .nav-link {
    font-size: 0.92rem;
    padding: 0.3rem 0.5rem;
  }
}

@media (max-width: 1080px) {
  .nav-left .nav-play-wrapper {
    display: none !important;
  }

  .nav-center {
    gap: 0.65rem;
  }

  .nav-link {
    font-size: 0.86rem;
    padding: 0.25rem 0.4rem;
  }
}

@media (max-width: 940px) {
  .main-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0 0.85rem;
  }

  .nav-left {
    flex: 1 1 auto;
    min-width: 0;
    gap: 0.5rem;
    display: flex;
    align-items: center;
    min-height: 40px;
  }

  .nav-center {
    display: none;
  }

  .nav-right {
    flex: 0 0 auto;
    display: inline-flex;
    gap: 0.5rem;
    position: relative;
    z-index: 5;
    align-items: center;
    min-height: 40px;
  }

  .nav-right .tool-btn {
    min-width: 44px;
    padding: 0.35rem 0.5rem;
  }

  .hamburger-btn {
    display: flex;
  }

  .logo {
    font-size: 1.08rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 767px) {
  .main-nav {
    min-height: 48px;
    padding: 0 0.5rem;
    gap: 0.35rem;
    align-items: center;
  }

  .nav-left {
    flex: 1 1 auto;
    min-width: 0;
  }

  .logo {
    font-size: clamp(0.95rem, 4vw, 1.1rem);
    max-width: 85%;
    line-height: 40px;
    display: flex;
    align-items: center;
    min-height: 36px;
  }

  .nav-right {
    gap: 0.4rem;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-end;
    padding-top: 4px;
  }

  .nav-right .tool-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 999px;
    justify-content: center;
    line-height: 36px;
    align-items: center;
  }

  .hamburger-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 999px;
    line-height: 36px;
    align-items: center;
    justify-content: center;
  }
}

.site-header {
  position: relative;
  width: 100%;
  z-index: var(--z-nav);
}

.site-header__spacer,
.nav-spacer {
  height: 72px;
}

.site-header__nav {
  width: 100%;
}

.site-header__inner {
  width: 100%;
}

.site-header__grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem;
}

.site-header__brand {
  display: flex;
}

.site-header__primary {
  justify-content: center;
}

.site-header__utility {
  justify-content: flex-end;
}

@media (max-width: 1023px) {
  .site-header__grid {
    grid-template-columns: auto auto;
    grid-template-areas:
      "brand utility"
      "primary primary";
    row-gap: 0.75rem;
  }

  .site-header__brand {
    grid-area: brand;
    justify-content: flex-start;
  }

  .site-header__primary {
    grid-area: primary;
    justify-content: flex-start;
  }

  .site-header__utility {
    grid-area: utility;
    justify-content: flex-end;
  }
}

@media (max-width: 767px) {
  .site-header__spacer,
  .nav-spacer {
    height: 64px;
  }
}

#search-overlay { z-index: var(--z-search-overlay) !important; }
.mobile-menu { z-index: var(--z-drawer) !important; }
.mobile-menu-overlay { z-index: var(--z-drawer-overlay) !important; }
.progress-bar { z-index: var(--z-progress) !important; }

/********************************
  Mobile Search Overlay Optimization
********************************/

/* Mobile-specific search overlay enhancements */
@media (max-width: 768px) {
  #search-overlay {
    z-index: 9998 !important;
    /* Ensure proper spacing for mobile browser UI */
    padding-bottom: env(safe-area-inset-bottom, 20px);
    /* Better touch targets on mobile */
    align-items: flex-start;
    padding-top: max(1rem, env(safe-area-inset-top, 20px));
  }

  /* Ensure search dialog is visible and accessible on mobile */
  #search-overlay .bg-gray-900 {
    max-height: 85vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Optimize input field for mobile */
  #search-input {
    font-size: 16px !important; /* Prevent zoom on iOS */
    padding: 12px 16px;
  }
}

/********************************
  Article sticky helpers (optional)
********************************/
.article-sticky {
  position: sticky;
  top: 64px; /* below global nav */
  z-index: 20; /* <= 40 per spec */
}

/* Game frame container - for game controls positioning */
.game-frame {
  position: relative;
  width: 100%;
  margin-bottom: 2rem;
}

/* Game controls - absolute positioned over game iframe */
.game-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.65);
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  margin-bottom: 1.5rem;
}

.game-toolbar-btn {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  gap: 0.35rem;
  transition: all 0.2s ease;
}

.game-toolbar-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-1px);
}

.game-toolbar-btn:active {
  transform: translateY(0);
}

.share-menu-wrapper {
  position: relative;
  flex: 0 0 auto;
}

.share-bottom-sheet__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
  z-index: 900;
}

.share-bottom-sheet__overlay[hidden] {
  display: none !important;
}

.share-bottom-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 10, 0.95);
  border-radius: 1.75rem 1.75rem 0 0;
  box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.6);
  transform: translateY(100%);
  transition: transform 0.35s ease;
  z-index: 905;
}

.share-bottom-sheet--active {
  transform: translateY(0);
}

.share-bottom-sheet[hidden] {
  display: none !important;
}

body.share-sheet-open {
  overflow: hidden;
}

.share-bottom-sheet__container {
  max-width: 640px;
  margin: 0 auto;
  padding: 1.5rem 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.share-bottom-sheet__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.share-bottom-sheet__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff;
}

.share-bottom-sheet__subtitle {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.share-bottom-sheet__close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 1.25rem;
  cursor: pointer;
}

.share-bottom-sheet__copy-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.25rem;
  padding: 1rem 1.25rem;
}

.share-bottom-sheet__label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.6);
}

.share-bottom-sheet__url {
  font-size: 0.95rem;
  color: #f3f4f6;
  word-break: break-all;
}

.share-bottom-sheet__copy-btn {
  background: #dc2626;
  border: none;
  color: #fff;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  transition: opacity 0.2s ease;
}

.share-bottom-sheet__copy-btn:hover {
  opacity: 0.9;
}

.share-bottom-sheet__actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
}

.share-bottom-sheet__action {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.9rem;
  color: #f9fafb;
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.share-bottom-sheet__action:hover {
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .share-bottom-sheet__container {
    padding: 1.25rem 1.25rem 1.75rem;
  }

  .share-bottom-sheet__copy-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .share-bottom-sheet__copy-btn {
    width: 100%;
    text-align: center;
  }
}

.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.search-overlay.open {
  display: block;
}

.search-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
}

.search-overlay-panel {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: min(720px, 92vw);
  background: rgba(8, 8, 12, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 1.5rem;
  padding: 1.75rem;
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.45);
}

.search-overlay-header {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.search-overlay-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 0.85rem 1.25rem;
  color: #fff;
  font-size: 1rem;
}

.search-overlay-input:focus {
  outline: none;
  border-color: var(--horror-red);
  box-shadow: 0 0 0 1px rgba(139, 0, 0, 0.5);
}

.search-close-btn {
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.search-close-btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

.search-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.search-close-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.4);
  outline-offset: 2px;
}

.search-results {
  max-height: 360px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.search-result-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s ease, transform 0.2s ease;
  color: #fff;
}

.search-result-item:hover {
  border-color: var(--horror-red);
  transform: translateY(-2px);
}

.search-result-meta {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.search-result-title {
  font-size: 1.1rem;
  font-weight: 600;
}

.search-result-desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
}

.search-hint {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.search-empty {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  text-align: center;
  padding: 1rem 0;
}

@media (max-width: 640px) {
  .search-overlay-panel {
    top: 5%;
    padding: 1.25rem;
  }

  .search-result-item {
    padding: 0.75rem 0.85rem;
  }
}

.ui-toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%) translateY(150%);
  background: rgba(8, 8, 8, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 0.6rem 1.5rem;
  color: #fff;
  font-size: 0.9rem;
  z-index: 10000;
  transition: transform 0.3s ease;
  pointer-events: none;
}

.ui-toast.show {
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 640px) {
  .game-toolbar {
    flex-direction: row;
    justify-content: space-between;
    gap: 0.5rem;
  }

  .game-toolbar-btn,
  .share-menu-wrapper {
    flex: 1 1 calc(50% - 0.5rem);
    min-width: calc(50% - 0.5rem);
  }

  .game-toolbar-btn {
    justify-content: center;
  }

  .share-menu-wrapper .game-toolbar-btn {
    width: 100%;
  }
}

/* 绉诲姩鑿滃崟 - 缁熶竴瑙勫垯锛堟柟妗圓閲嶅啓锛?
  姝ゅ涔嬪墠鏈夐噸澶嶇殑绉诲姩鑿滃崟瑙勫垯锛岀幇宸插垹闄?
  鏂扮殑缁熶竴瑙勫垯灏嗗湪涓嬫柟鎻掑叆
*/

/* 閿佹粴鍔紙鑿滃崟鎵撳紑鏃剁粰 body 娣诲姞姝ょ被锛?*/
.no-scroll {
  overflow: hidden !important;
  touch-action: none;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #0066cc;
    --secondary-color: #990000;
    --horror-red: #cc0000;
  }

  body {
    background: #000000;
    color: #ffffff;
  }
}

/* 绉诲姩鑿滃崟鍏抽棴鎸夐挳濮嬬粓鍙偣鍑?- 鏃ц鍒欙紙宸叉暣鍚堝埌涓婃柟缁熶竴瑙勫垯涓級 */
/* ========================================
   Page theme helpers
======================================== */
body.category-page,
body.game-page {
  color: #ffffff;
  min-height: 100vh;
  background-color: #050505;
}

body.theme-horror {
  background-color: #0b0404;
}

body.theme-puzzle {
  background-color: #040b16;
}

body.theme-casual {
  background-color: #03140b;
}

body.theme-strategy {
  background-color: #140b03;
}
/* ========================================
   Game page cards
======================================== */
.game-page .game-frame iframe {
  border-radius: 12px;
  background-color: #000000;
  width: 100%;
  min-height: 420px;
}

@media (max-width: 640px) {
  .game-page .game-frame iframe {
    min-height: 320px;
  }
}

.mobile-game-placeholder {
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.25);
  border-radius: 1rem;
  padding: 1.25rem;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mobile-game-placeholder p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
}

.mobile-load-btn {
  border: none;
  border-radius: 0.85rem;
  background: linear-gradient(135deg, #8b0000, #c53030);
  color: #fff;
  font-weight: 600;
  padding: 0.85rem 1.5rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mobile-load-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(139, 0, 0, 0.35);
}

.mobile-load-btn:active {
  transform: scale(0.98);
}

@media (min-width: 769px) {
  .mobile-game-placeholder {
    display: none !important;
  }
}

.mobile-warning-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  border-radius: 1rem;
  background: rgba(255, 166, 0, 0.12);
  border: 1px solid rgba(255, 166, 0, 0.35);
  color: #ffe5ba;
}

.mobile-warning-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.mobile-warning-title {
  margin: 0 0 0.25rem;
  font-weight: 600;
  color: #fff6df;
}

.mobile-warning-copy p {
  margin: 0;
  font-size: 0.95rem;
  color: #fff7e8;
}

@media (max-width: 640px) {
  .mobile-warning-banner {
    flex-direction: column;
    font-size: 0.9rem;
  }
}

.related-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.related-game-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.75rem;
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.related-game-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
}

.related-game-thumb img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.related-game-info {
  padding: 0.75rem 1rem 1.25rem;
}

.related-game-category {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.3rem;
}

.related-game-info h3 {
  margin: 0;
  font-size: 1rem;
  color: #ffffff;
}

.footer-link-columns ul li a {
  color: rgba(229, 229, 235, 0.85);
  transition: color 0.2s ease;
}

.footer-link-columns ul li a:hover {
  color: var(--horror-red);
}


.home-page footer .text-sm {
  font-size: var(--font-small);
}

/* Games index page */
.games-index-page .games-filter-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem 1rem;
  width: 100%;
  text-align: center;
  margin: 0 auto;
}

.games-index-page .games-filter-btn {
  gap: 0.4rem;
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  font-size: 1rem;
  font-weight: 600;
  color: #f3f4f6;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.games-index-page .games-filter-btn:hover {
  border-color: var(--horror-red);
  color: #ffffff;
  background: rgba(208, 0, 0, 0.15);
}

.games-index-page .games-category-wrapper {
  padding: 3rem 0 4.5rem;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.games-index-page .games-category-section {
  padding: 2.5rem 0;
}

.games-index-page .games-category-header {
  text-align: center;
  margin: 0 auto 1.75rem;
  max-width: 720px;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.games-index-page .games-category-header h2 {
  margin: 0.65rem 0 0;
  font-size: 2.25rem;
}

.games-index-page .games-category-header p {
  margin: 0.35rem 0 0;
  color: rgba(226, 232, 240, 0.9);
}

.games-index-page .games-index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.games-index-card {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(31, 41, 55, 0.9);
  border-radius: 1.25rem;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.55);
  min-height: 100%;
  text-decoration: none;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.games-index-card:hover {
  transform: translateY(-6px);
  border-color: rgba(139, 0, 0, 0.7);
}

.games-index-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
}

.games-index-card-content {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.games-index-card-content .games-index-meta {
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: rgba(226, 232, 240, 0.65);
  margin-bottom: 0.1rem;
}

.content-page .article-image {
  width: 100%;
  max-width: 640px;
  max-height: 360px;
  aspect-ratio: 16 / 9;
  min-height: 220px;
  object-fit: cover;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  display: block;
  margin: 1rem auto;
}

.content-page main,
.content-page article {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.content-page {
  overflow-x: hidden;
}

.content-page section,
.content-page .article-body,
.content-page .content-module {
  max-width: 100%;
}

.content-page img {
  max-width: 100%;
  height: auto;
}

.games-index-card-content h2 {
  margin: 0;
  color: white;
  font-size: 1.25rem;
}

.games-index-card-content p {
  margin: 0;
  color: rgba(226, 232, 240, 0.9);
  font-size: 0.95rem;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .games-index-page .games-category-header h2 {
    font-size: 1.75rem;
  }

  .games-index-page .games-index-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
  }
}

@media (max-width: 640px) {
  .games-index-page .games-filter-btn {
    width: 100%;
    justify-content: center;
  }

  .games-index-page .games-category-wrapper {
    gap: 3rem;
  }

  .games-index-page .games-index-grid {
    grid-template-columns: 1fr;
  }

  .games-index-card img {
    height: 180px;
  }
}


@media (max-width: 1024px) {
  }

@media (max-width: 768px) {
  }



















