:root {
  --nyan-pink: #ff3366;
  --nyan-yellow: #ffcc00;
  --nyan-gold: #ffd700;
  --nyan-blue: #00ccff;
  --bg-dark: #120520;
  --glass: rgba(255, 255, 255, 0.05);
  --glass-dark: rgba(0, 0, 0, 0.6);
  --glass-light: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
}

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

body {
  font-family: 'Outfit', 'M PLUS Rounded 1c', sans-serif;
  background-color: var(--bg-dark);
  color: #fff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Header - Mobile Optimized */
header {
  padding: 15px 5%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(15px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--glass-border);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}

.wallet-pill {
  background: rgba(0, 255, 255, 0.1);
  border: 1px solid rgba(0, 255, 255, 0.4);
  padding: 5px 12px;
  border-radius: 20px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.wallet-label {
  font-size: 0.6rem;
  color: #00ffff;
  font-weight: 800;
  letter-spacing: 1px;
}

.wallet-value {
  font-size: 1rem;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.main-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--nyan-yellow);
}

.logo-text {
  font-family: 'Syncopate', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 2px;
  font-weight: 800;
}

.tagline {
  font-size: 0.65rem;
  letter-spacing: 3px;
  opacity: 0.7;
  font-weight: 600;
}

/* Hero Section - Chaos but Readable */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('/hero.png') center/cover no-repeat;
  padding: 40px 20px;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle, rgba(18,5,32,0.4) 0%, rgba(18,5,32,0.9) 100%);
}

.hero-content {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 600px;
}

.hero-text-box {
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(20px);
  padding: 30px 20px;
  border-radius: 30px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

h1 {
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 25px;
}

h1 span {
  color: var(--nyan-yellow);
  font-size: 1.8rem;
  display: block;
}

.stats-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.stat-card {
  background: var(--nyan-pink);
  padding: 10px 20px;
  border-radius: 20px;
  min-width: 120px;
  transform: rotate(-2deg);
}

.stat-card:nth-child(2) {
  background: var(--nyan-blue);
  transform: rotate(2deg);
}

.stat-num {
  font-size: 1.5rem;
  font-weight: 900;
}

.stat-label {
  font-size: 0.7rem;
  font-weight: 800;
}

/* Grid System - Full Mobile Support */
.grid-container {
  padding: 50px 5%;
}

h2 {
  font-family: 'Syncopate', sans-serif;
  font-size: 1.2rem;
  margin-bottom: 30px;
  letter-spacing: 5px;
  text-align: center;
}

.bento-grid {
  display: grid;
  grid-template-columns: 1fr; /* Default to 1 column for mobile */
  gap: 20px;
}

@media (min-width: 768px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  header {
    flex-direction: row;
    padding: 20px 5%;
  }
  h1 { font-size: 4rem; }
  h1 span { font-size: 2.5rem; }
}

.grid-item {
  position: relative;
  border-radius: 25px;
  padding: 30px;
  text-decoration: none;
  color: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 220px;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.grid-item:active {
  transform: scale(0.95);
}

.nyan-bird {
  background: linear-gradient(135deg, #ff66b2, #ffcc00);
}

.nyan-tetris {
  background: linear-gradient(135deg, #00f2ff, #bc00ff);
}

.placeholder {
  background: var(--glass-light);
  border: 2px dashed var(--glass-border);
  justify-content: center;
  align-items: center;
}

.day-tag {
  background: #fff;
  color: #000;
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 0.65rem;
  font-weight: 900;
  width: fit-content;
  margin-bottom: 10px;
}

h3 {
  font-size: 1.8rem;
  font-weight: 900;
}

/* New Sections for AdSense/SEO - Premium Mobile Optimization */
.philosophy-section {
  padding: 60px 20px;
  background: rgba(0, 0, 0, 0.7); /* Solid fallback */
  backdrop-filter: blur(15px);
  border-top: 1px solid rgba(0, 204, 255, 0.2);
  border-bottom: 1px solid rgba(0, 204, 255, 0.2);
  position: relative;
  z-index: 10;
}

.philosophy-section .section-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.philosophy-section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  background: linear-gradient(45deg, var(--nyan-gold), #fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (max-width: 600px) {
  .philosophy-section h2 { font-size: 1.5rem; }
  .philosophy-section p { font-size: 0.95rem; line-height: 1.6; }
}

.persona-section {
  padding: 42px 20px;
  background: rgba(4, 12, 20, 0.86);
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: relative;
  z-index: 10;
}

.persona-header {
  max-width: 900px;
  margin: 0 auto 22px;
  text-align: center;
}

.persona-header h2 {
  margin-bottom: 10px;
}

.persona-header p {
  color: rgba(255,255,255,0.72);
  font-weight: 700;
}

.persona-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.persona-card {
  padding: 20px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.055);
}

.persona-card span {
  color: var(--nyan-gold);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.persona-card h3 {
  margin: 8px 0;
  font-size: 1.36rem;
}

.persona-card p {
  min-height: 54px;
  color: rgba(255,255,255,0.72);
  font-size: 0.88rem;
  line-height: 1.55;
}

.persona-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.persona-links a {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(0,204,255,0.12);
  border: 1px solid rgba(0,204,255,0.28);
  color: #fff;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 900;
}

.detailed-guide {
  padding: 40px 20px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 10;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

.guide-item {
  background: rgba(255, 255, 255, 0.02);
  padding: 30px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: 0.3s;
}

.guide-item:hover {
  border-color: var(--nyan-blue);
  background: rgba(0, 204, 255, 0.05);
}

.guide-item h4 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--nyan-gold);
}

.guide-item p {
  font-size: 0.9rem;
  opacity: 0.7;
}

footer {
  padding: 60px 20px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-links {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.nyan-chat {
  background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
  border: 1px solid rgba(0, 242, 255, 0.2);
}

.bg-effect-chat {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at 70% 30%, rgba(0, 242, 255, 0.1), transparent 70%);
  pointer-events: none;
}

.nyan-drop {
  background: linear-gradient(135deg, #004d00 0%, #33cc33 50%, #00f2ff 100%);
  border: 1px solid rgba(51, 204, 51, 0.4);
}

.bg-effect-drop {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255, 255, 255, 0.05) 10px, rgba(255, 255, 255, 0.05) 20px);
  pointer-events: none;
}

/* Icon Images Fix - Premium Neon Style */
.bg-icon {
  position: absolute;
  top: 0;
  right: -10px;
  width: 160px;
  height: 160px;
  object-fit: contain;
  mix-blend-mode: screen; /* Remove black background and keep neon glow */
  opacity: 0.9;
  pointer-events: none;
  z-index: 1;
  animation: float-nyan 3s ease-in-out infinite;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.3s;
}

@keyframes float-nyan {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.grid-item:hover .bg-icon {
  transform: scale(1.1) rotate(-5deg);
  filter: brightness(1.2) drop-shadow(0 0 15px rgba(255,255,255,0.4));
}

.card-content {
  position: relative;
  z-index: 5;
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.nyan-clicker {
  background: linear-gradient(135deg, #000000 0%, #ffd700 100%);
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.nyan-2048 {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.nyan-sweeper {
  background: linear-gradient(135deg, #111111 0%, #004d00 100%);
  border: 1px solid rgba(0, 255, 0, 0.4);
}

.nyan-solitaire {
  background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.nyan-plinko {
  background: linear-gradient(135deg, #200535 0%, #bc00ff 100%);
  border: 1px solid rgba(255, 51, 102, 0.5);
}

.nyan-roulette {
  background: linear-gradient(135deg, #510a11 0%, #ff0033 100%);
  border: 1px solid rgba(255, 215, 0, 0.4);
}

.nyan-gacha {
  background: linear-gradient(135deg, #0a1930 0%, #00ffff 100%);
  border: 1px solid rgba(0, 255, 255, 0.5);
  box-shadow: inset 0 0 20px rgba(0, 255, 255, 0.2);
}

.nyan-bank {
  background: linear-gradient(135deg, #111111 0%, #8b6b15 100%);
  border: 1px solid rgba(255, 215, 0, 0.6);
  box-shadow: inset 0 0 40px rgba(255, 215, 0, 0.1);
}

.nyan-memory {
  background: linear-gradient(135deg, #12211c 0%, #2f6f59 58%, #e2a947 100%);
  border: 1px solid rgba(73, 212, 157, 0.5);
}

.nyan-merge {
  background: linear-gradient(135deg, #102034 0%, #0f766e 48%, #fbbf24 100%);
  border: 1px solid rgba(94, 234, 212, 0.55);
  box-shadow: inset 0 0 30px rgba(94, 234, 212, 0.14);
}

.nyan-cafe {
  background: linear-gradient(135deg, #101820 0%, #64d9bd 52%, #f7c948 100%);
  border: 1px solid rgba(255, 244, 214, 0.56);
  box-shadow: inset 0 0 30px rgba(247, 201, 72, 0.13);
}

.nyan-fishing {
  background: linear-gradient(135deg, #083344 0%, #0891b2 56%, #facc15 100%);
  border: 1px solid rgba(103, 232, 249, 0.55);
  box-shadow: inset 0 0 30px rgba(103, 232, 249, 0.14);
}

.nyan-dungeon {
  background: linear-gradient(135deg, #1a1028 0%, #5b21b6 52%, #facc15 100%);
  border: 1px solid rgba(167, 139, 250, 0.58);
  box-shadow: inset 0 0 30px rgba(167, 139, 250, 0.16);
}

.nyan-quiz {
  background: linear-gradient(135deg, #10251f 0%, #16a34a 52%, #67e8f9 100%);
  border: 1px solid rgba(134, 239, 172, 0.58);
  box-shadow: inset 0 0 30px rgba(74, 222, 128, 0.16);
}

.nyan-fortune {
  background: linear-gradient(135deg, #28152e 0%, #7e22ce 54%, #fde68a 100%);
  border: 1px solid rgba(240, 171, 252, 0.58);
  box-shadow: inset 0 0 30px rgba(240, 171, 252, 0.14);
}

.nyan-quest {
  background: linear-gradient(135deg, #182033 0%, #2563eb 50%, #86efac 100%);
  border: 1px solid rgba(103, 232, 249, 0.58);
  box-shadow: inset 0 0 30px rgba(103, 232, 249, 0.14);
}

.nyan-garden {
  background: linear-gradient(135deg, #14351f 0%, #3ddc84 52%, #f7c948 100%);
  border: 1px solid rgba(142, 244, 181, 0.58);
  box-shadow: inset 0 0 30px rgba(61, 220, 132, 0.16);
}

.nyan-museum {
  background: linear-gradient(135deg, #1f2937 0%, #67e8f9 52%, #f7c948 100%);
  border: 1px solid rgba(103, 232, 249, 0.58);
  box-shadow: inset 0 0 30px rgba(103, 232, 249, 0.16);
}

.nyan-snake {
  background: linear-gradient(135deg, #0f2a22 0%, #3ddc84 54%, #f7c948 100%);
  border: 1px solid rgba(61, 220, 132, 0.58);
  box-shadow: inset 0 0 30px rgba(61, 220, 132, 0.16);
}

.nyan-breakout {
  background: linear-gradient(135deg, #14213d 0%, #67e8f9 54%, #f7c948 100%);
  border: 1px solid rgba(103, 232, 249, 0.58);
  box-shadow: inset 0 0 30px rgba(103, 232, 249, 0.16);
}

.nyan-pong {
  background: linear-gradient(135deg, #102033 0%, #67e8f9 52%, #fb7185 100%);
  border: 1px solid rgba(103, 232, 249, 0.58);
  box-shadow: inset 0 0 30px rgba(251, 113, 133, 0.16);
}

.nyan-whack {
  background: linear-gradient(135deg, #17251f 0%, #86efac 52%, #f7c948 100%);
  border: 1px solid rgba(134, 239, 172, 0.58);
  box-shadow: inset 0 0 30px rgba(134, 239, 172, 0.16);
}

.nyan-maze {
  background: linear-gradient(135deg, #16213a 0%, #2563eb 52%, #67e8f9 100%);
  border: 1px solid rgba(103, 232, 249, 0.58);
  box-shadow: inset 0 0 30px rgba(37, 99, 235, 0.16);
}

.nyan-runner {
  background: linear-gradient(135deg, #101820 0%, #67e8f9 52%, #fb7185 100%);
  border: 1px solid rgba(103, 232, 249, 0.58);
  box-shadow: inset 0 0 30px rgba(251, 113, 133, 0.16);
}

.nyan-dodge {
  background: linear-gradient(135deg, #172033 0%, #334155 52%, #67e8f9 100%);
  border: 1px solid rgba(103, 232, 249, 0.58);
  box-shadow: inset 0 0 30px rgba(103, 232, 249, 0.16);
}

.nyan-stack {
  background: linear-gradient(135deg, #18312f 0%, #7dd3c7 54%, #f7c948 100%);
  border: 1px solid rgba(125, 211, 199, 0.58);
  box-shadow: inset 0 0 30px rgba(125, 211, 199, 0.16);
}

.nyan-catch {
  background: linear-gradient(135deg, #123044 0%, #0891b2 52%, #86efac 100%);
  border: 1px solid rgba(103, 232, 249, 0.58);
  box-shadow: inset 0 0 30px rgba(134, 239, 172, 0.16);
}

.nyan-simon {
  background: linear-gradient(135deg, #251936 0%, #67e8f9 52%, #fb7185 100%);
  border: 1px solid rgba(103, 232, 249, 0.58);
  box-shadow: inset 0 0 30px rgba(251, 113, 133, 0.16);
}

.nyan-reflex {
  background: linear-gradient(135deg, #182033 0%, #86efac 52%, #f7c948 100%);
  border: 1px solid rgba(134, 239, 172, 0.58);
  box-shadow: inset 0 0 30px rgba(247, 201, 72, 0.16);
}

.nyan-slide {
  background: linear-gradient(135deg, #123044 0%, #67e8f9 52%, #f7c948 100%);
  border: 1px solid rgba(103, 232, 249, 0.58);
  box-shadow: inset 0 0 30px rgba(247, 201, 72, 0.16);
}

.nyan-aim {
  background: linear-gradient(135deg, #101820 0%, #fb7185 52%, #67e8f9 100%);
  border: 1px solid rgba(251, 113, 133, 0.58);
  box-shadow: inset 0 0 30px rgba(103, 232, 249, 0.16);
}

/* --- FINAL MOBILE OVERRIDES --- */
@media (max-width: 600px) {
  .grid-container { padding: 30px 15px; }
  
  .bento-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
    height: auto !important;
  }

  .grid-item {
    width: 100% !important;
    min-height: 120px !important;
    height: auto !important;
    padding: 20px !important;
  }

  .grid-item.tall, .grid-item.wide {
    grid-row: auto !important;
    grid-column: auto !important;
  }

  .bg-icon {
    width: 120px !important;
    height: 120px !important;
    right: -20px !important;
    opacity: 0.6 !important;
  }

  h1 { font-size: 1.8rem !important; }
  h2 { font-size: 1.4rem !important; }

  .philosophy-section h2 { font-size: 1.3rem !important; }
  .philosophy-section p { font-size: 0.9rem !important; line-height: 1.5 !important; }
  
  .guide-grid {
    grid-template-columns: 1fr !important;
  }
}


/* --- GLOBAL NYANTREPRENEUR OVERRIDES --- */
.back-link, .hub-btn {
  position: absolute !important; top: 15px !important; left: 15px !important; z-index: 9999 !important;
  background: rgba(18, 18, 18, 0.8) !important; color: #ffd700 !important;
  padding: 8px 16px !important; border-radius: 20px !important; font-weight: 800 !important;
  text-decoration: none !important; font-size: 0.8rem !important;
  border: 1px solid rgba(255, 215, 0, 0.3) !important;
  backdrop-filter: blur(10px) !important;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3) !important;
  transition: all 0.2s ease !important;
}
