@view-transition {
  navigation: auto;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  min-height: 100%;
}

/* -----------------------------
   HEADER & NAV
----------------------------- */

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(135deg, #1f2933 0%, #111827 100%);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.55);
}

.nav-link {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.25s ease, transform 0.25s ease;
}

.nav-link:hover {
  color: #e5e7eb;
  transform: translateY(-1px);
}

.mobile-menu-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.6rem;
  cursor: pointer;
}

/* Desktop dropdown */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 220px;
  background: #ffffff;
  border-radius: 0.75rem;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.35);
  padding: 6px 0;
  display: none;
  z-index: 1010;
}

.dropdown-menu.open {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 10px 16px;
  font-size: 0.9rem;
  text-decoration: none;
  color: #4b5563;
  transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

.dropdown-menu a:hover {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  padding-left: 22px;
}

/* Mobile slide-down menu */

.mobile-menu {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease, opacity 0.25s ease;
  opacity: 0;
}

.mobile-menu.open {
  max-height: 360px;
  opacity: 1;
}

.mobile-menu-inner {
  padding: 10px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-menu-inner a {
  text-decoration: none;
  color: #ecfdf5;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 6px 0;
}

/* On mobile, hide desktop nav */
@media (max-width: 767px) {
  .nav-links {
    display: none !important;
  }
  
  

}

/* -----------------------------
   HERO
----------------------------- */

.page-header {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: #ffffff;
  padding: 80px 20px 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,0 Q300,60 600,30 T1200,0 L1200,120 L0,120 Z" fill="rgba(255,255,255,0.12)"/></svg>')
    repeat-x bottom;
  background-size: 1200px 120px;
  opacity: 0.7;
}

.page-header h1 {
  position: relative;
  z-index: 1;
  font-size: 2.9rem;
  font-weight: 900;
  margin: 0 0 10px;
  text-shadow: 2px 2px 4px rgba(15, 23, 42, 0.35);
  animation: slideInDown 0.6s ease;
}

.page-header p {
  position: relative;
  z-index: 1;
  font-size: 1.1rem;
  max-width: 720px;
  margin: 0 auto;
  animation: slideInUp 0.6s ease;
}

@media (max-width: 768px) {
  .page-header {
    padding: 70px 16px 56px;
  }
  .page-header h1 {
    font-size: 2rem;
  }
  .page-header p {
    font-size: 0.98rem;
  }
}

/* -----------------------------
   LAYOUT & CARDS
----------------------------- */

.game-container {
  max-width: 1400px;
  margin: -60px auto 60px;
  padding: 0 20px;
  position: relative;
  z-index: 10;
}

.game-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 24px;
}

.game-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.2);
  animation: slideUp 0.6s ease;
}

.card-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #f5576c;
  margin: 0 0 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

@media (max-width: 1024px) {
  .game-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .game-card {
    padding: 24px;
  }
}

/* -----------------------------
   COOKIE DISPLAY
----------------------------- */

.cookie-display {
  text-align: center;
  margin-bottom: 24px;
}

.cookie-count {
  font-size: 2.7rem;
  font-weight: 900;
  background: linear-gradient(135deg, #f97316 0%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}

.cookie-per-second {
  font-size: 1.2rem;
  color: #f5595f;
  font-weight: 700;
}

/* Real-image cookie button */
.cookie-button {
  width: 260px;
  height: 260px;
  margin: 0 auto 32px;
  cursor: pointer;
  position: relative;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.25);
  background-color: #f5d0a0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
  user-select: none;
}

/* slight hover on devices that support hover */
@media (hover: hover) {
  .cookie-button:hover {
    transform: scale(1.04);
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.28);
  }
}

/* break animation */
.cookie-button.cookie-break {
  animation: cookieBreak 0.24s ease-out;
}

@keyframes cookieBreak {
  0% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
  40% {
    transform: scale(1.12) rotate(5deg);
    opacity: 0.92;
  }
  80% {
    transform: scale(0.6) rotate(-10deg);
    opacity: 0.25;
  }
  100% {
    transform: scale(0.4) rotate(-18deg);
    opacity: 0;
  }
}

/* Cookie selector */

.cookie-selector {
  margin-bottom: 18px;
  text-align: center;
}

.cookie-selector-title {
  font-weight: 700;
  color: #f5576c;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 6px;
}

.cookie-selector-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.cookie-option {
  border: none;
  outline: none;
  border-radius: 999px;
  padding: 6px 12px 6px 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  background: #fff5f7;
  font-size: 0.75rem;
  font-weight: 600;
  color: #f97316;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease,
    color 0.15s ease;
}

.cookie-option:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.cookie-option.active {
  background: linear-gradient(135deg, #f97316, #fb7185);
  color: #ffffff;
}

.cookie-thumb {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.9);
}

/* -----------------------------
   UPGRADES & STATS
----------------------------- */

.upgrade-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.upgrade-item {
  background: linear-gradient(135deg, #fff5f7 0%, #ffe5e9 100%);
  padding: 16px;
  border-radius: 12px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 16px;
}

.upgrade-item:hover {
  border-color: #f5576c;
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(245, 87, 108, 0.2);
}

.upgrade-item.disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
  border-color: transparent;
}

.upgrade-icon {
  font-size: 2.4rem;
  flex-shrink: 0;
}

.upgrade-info {
  flex: 1;
}

.upgrade-name {
  font-size: 1rem;
  font-weight: 700;
  color: #f5576c;
  margin-bottom: 2px;
}

.upgrade-desc {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 4px;
}

.upgrade-cost {
  font-size: 0.9rem;
  font-weight: 700;
  color: #f093fb;
}

.upgrade-count {
  font-size: 1.4rem;
  font-weight: 900;
  color: #f5576c;
  min-width: 40px;
  text-align: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.stat-card {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  padding: 18px;
  border-radius: 12px;
  color: #ffffff;
  text-align: center;
}

.stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.92;
  margin-bottom: 6px;
  font-weight: 600;
}

.stat-value {
  font-size: 1.3rem;
  font-weight: 900;
}

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

/* -----------------------------
   ACHIEVEMENTS
----------------------------- */

.achievement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.achievement-item {
  background: linear-gradient(135deg, #fff5f7 0%, #ffe5e9 100%);
  padding: 14px;
  border-radius: 12px;
  text-align: center;
  border: 2px solid transparent;
  transition: all 0.25s ease;
}

.achievement-item.unlocked {
  border-color: #f5576c;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: #ffffff;
}

.achievement-item.locked {
  opacity: 0.45;
}

.achievement-icon {
  font-size: 2.1rem;
  margin-bottom: 6px;
}

.achievement-name {
  font-size: 0.78rem;
  font-weight: 600;
}

/* -----------------------------
   FLOATING NUMBERS & PARTICLES
----------------------------- */

.floating-number {
  position: absolute;
  font-size: 1.4rem;
  font-weight: 900;
  color: #f5576c;
  pointer-events: none;
  animation: floatUp 1s ease-out forwards;
  text-shadow: 2px 2px 4px rgba(15, 23, 42, 0.3);
  z-index: 2000;
}

@keyframes floatUp {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-90px);
  }
}

.particle {
  position: absolute;
  pointer-events: none;
  font-size: 1.3rem;
  z-index: 1900;
}

/* -----------------------------
   PRESTIGE & BUTTONS
----------------------------- */

.prestige-button {
  width: 100%;
  margin-top: 22px;
  padding: 14px 18px;
  background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.prestige-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.45);
}

.prestige-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

/* Global action buttons */

.game-btn {
  margin-top: 10px;
  padding: 14px 32px;
  width: 100%;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: #ffffff;
  border-radius: 12px;
  border: none;
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.game-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(245, 87, 108, 0.4);
}

/* -----------------------------
   INPUTS & INFO BOX
----------------------------- */

.input-group {
  margin-top: 18px;
  margin-bottom: 16px;
}

.input-label {
  display: block;
  font-weight: 600;
  color: #f5576c;
  margin-bottom: 8px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.input-field {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 2px solid #f5576c;
  font-size: 0.98rem;
  font-weight: 500;
  color: #111827;
  background: #ffffff;
  transition: all 0.2s ease;
}

.input-field:focus {
  outline: none;
  border-color: #f093fb;
  box-shadow: 0 0 0 4px rgba(240, 147, 251, 0.18);
  transform: scale(1.02);
}

.info-box {
  background: linear-gradient(135deg, #fff5f7 0%, #ffe5e9 100%);
  padding: 20px;
  border-radius: 12px;
  border-left: 4px solid #f5576c;
  margin-top: 18px;
}

.info-title {
  font-weight: 700;
  color: #f5576c;
  margin-bottom: 6px;
  font-size: 0.98rem;
}

.info-text {
  color: #f97316;
  font-size: 0.9rem;
  line-height: 1.7;
}

/* -----------------------------
   ADSENSE PLACEHOLDER
----------------------------- */

.adsense-container {
  background: linear-gradient(135deg, #fff5f7 0%, #ffe5e9 100%);
  border-radius: 16px;
  padding: 20px;
  margin: 24px 0;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed #ffc0cb;
}

.adsense-placeholder {
  text-align: center;
  color: #f5576c;
  font-size: 0.88rem;
}

/* -----------------------------
   LEADERBOARD & DOWNLOAD BUTTONS
----------------------------- */

.leaderboard-table {
  width: 100%;
  margin-top: 24px;
  border-collapse: collapse;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
}

.leaderboard-table thead {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: #ffffff;
}

.leaderboard-table th {
  padding: 12px 14px;
  text-align: left;
  font-weight: 700;
  font-size: 0.9rem;
}

.leaderboard-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #e5e7eb;
  color: #4b5563;
  font-size: 0.9rem;
}

.leaderboard-table tr:hover {
  background: #fff5f7;
}

.rank-badge {
  display: inline-block;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: #ffffff;
  font-weight: 700;
  line-height: 32px;
  text-align: center;
}

.rank-badge.gold {
  background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
}

.rank-badge.silver {
  background: linear-gradient(135deg, #c0c0c0 0%, #808080 100%);
}

.rank-badge.bronze {
  background: linear-gradient(135deg, #cd7f32 0%, #8b4513 100%);
}

.download-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.download-btn {
  flex: 1 1 0;
  padding: 13px 10px;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: #ffffff;
  border-radius: 10px;
  border: none;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(245, 87, 108, 0.35);
}

/* make certificate button stack nicely on mobile */
.certificate-btn {
  flex-basis: 100%;
}

@media (min-width: 640px) {
  .certificate-btn {
    flex-basis: auto;
  }
}

/* -----------------------------
   BLOG CONTENT
----------------------------- */

.blog-section {
  max-width: 900px;
  margin: 70px auto 80px;
  padding: 0 20px;
}

.blog-content {
  background: #ffffff;
  border-radius: 24px;
  padding: 52px 48px;
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.18);
  line-height: 1.8;
}

.blog-content h2 {
  font-size: 2.1rem;
  font-weight: 900;
  margin-top: 0;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #f97316 0%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.blog-content h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1f2933;
  margin-top: 32px;
  margin-bottom: 14px;
}

.blog-content p {
  color: #4b5563;
  font-size: 0.98rem;
  margin-bottom: 18px;
}

.blog-content a {
  color: #f97316;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.blog-content a:hover {
  color: #ea580c;
}

/* FAQ styling */

.faq-section {
  margin-top: 40px;
}

.faq-section h3 {
  margin-bottom: 20px;
}

.faq-item {
  border-bottom: 1px dashed #e5e7eb;
  padding-bottom: 14px;
  margin-bottom: 14px;
}

.faq-question {
  font-weight: 700;
  color: #111827;
  margin-bottom: 6px;
  font-size: 0.96rem;
}

.faq-answer {
  font-size: 0.94rem;
  color: #4b5563;
}

@media (max-width: 768px) {
  .blog-content {
    padding: 32px 22px;
  }
  .blog-content h2 {
    font-size: 1.7rem;
  }
}

/* -----------------------------
   FOOTER
----------------------------- */

.footer {
  background: linear-gradient(135deg, #111827 0%, #020617 100%);
  color: #ffffff;
  padding: 55px 0 20px;
  margin-top: 40px;
}

.footer-column h3 {
  font-size: 0.96rem;
  font-weight: 700;
  margin-bottom: 18px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

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

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

.footer-column ul li a {
  color: #cbd5e0;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-column ul li a:hover {
  color: #f97316;
  transform: translateX(4px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 32px;
  padding-top: 18px;
  text-align: center;
  color: #94a3b8;
  font-size: 0.85rem;
}

/* -----------------------------
   NOTIFICATION TOAST
----------------------------- */

.notification {
  position: fixed;
  top: 90px;
  right: 20px;
  max-width: 320px;
  background: linear-gradient(135deg, #f97316 0%, #ec4899 100%);
  color: #ffffff;
  padding: 16px 18px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(248, 113, 113, 0.7);
  z-index: 5000;
  animation: slideInRight 0.5s ease;
  font-size: 0.95rem;
}

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

/* -----------------------------
   ANIMATIONS (GLOBAL)
----------------------------- */

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

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-26px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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