/* All Rummy Yono Games - Mobile First Exact Theme */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;900&family=Roboto+Condensed:wght@700&display=swap');

:root {
  color-scheme: light;
  --yono-bg: #f8fafc;
  --yono-crimson: #9b1111;
  --yono-red: #e03251;
  --yono-green: #61ce70;
  --yono-green-hover: #52bf61;
  --yono-bonus: #eb2800;
  --yono-withdraw: #009c18;
}

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

html {
  color-scheme: light;
  font-size: 100%;
  -webkit-text-size-adjust: 100% !important;
}

html, body {
  width: 100% !important;
  max-width: 100vw !important;
  overflow-x: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
  background-color: #f8fafc !important;
  color: #111827 !important;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* -------------------------------------------------------------
   TOP 5-ICON NAVIGATION ROW (Exact yonogamesstore.com Icon List)
   ------------------------------------------------------------- */
.yono-top-nav-strip {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 4px 0 8px 0 !important;
  margin: 0 !important;
}
.yono-nav-link {
  flex: 1 1 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 3px !important;
  text-decoration: none !important;
  color: #1f2937 !important;
  min-width: 0 !important;
  transition: transform 0.15s ease;
}
.yono-nav-link:active {
  transform: scale(0.92);
}
.yono-nav-link svg {
  width: 18px !important;
  height: 18px !important;
  fill: #1f2937 !important;
  transition: fill 0.2s;
  flex-shrink: 0 !important;
}
.yono-nav-link span {
  font-family: 'Roboto', sans-serif !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  color: #111827 !important;
  line-height: 1.1 !important;
  text-align: center !important;
  white-space: nowrap !important;
}
.yono-nav-link:hover span,
.yono-nav-link:hover svg {
  color: #e03251 !important;
  fill: #e03251 !important;
}
.yono-nav-link.tg-link svg {
  fill: #229ed9 !important;
}
.yono-nav-link.tg-link span {
  color: #229ed9 !important;
}

/* -------------------------------------------------------------
   INTRO BANNER (Mint Green Gradient from yonogamesstore.com)
   ------------------------------------------------------------- */
.yono-intro-banner {
  background-image: linear-gradient(180deg, #3ed3a3 0%, #79f166 100%) !important;
  border-radius: 8px !important;
  padding: 8px 12px !important;
  margin-bottom: 8px !important;
  text-align: center !important;
  box-shadow: 0 2px 4px rgba(62, 211, 163, 0.25) !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
.yono-intro-banner p {
  color: #064e3b !important;
  font-family: 'Roboto', sans-serif !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  margin: 0 !important;
}

/* -------------------------------------------------------------
   DUAL CATEGORY BUTTONS (New Games / Other Games)
   ------------------------------------------------------------- */
.yono-btn-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 8px !important;
  margin-bottom: 8px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
.yono-pill-btn {
  background: linear-gradient(180deg, #9b1111 0%, #e03251 100%) !important;
  color: #ffffff !important;
  font-family: 'Roboto', sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  border-radius: 6px !important;
  padding: 9px 8px !important;
  text-align: center !important;
  text-decoration: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  box-shadow: 0 2px 6px rgba(155, 17, 17, 0.3) !important;
  transition: transform 0.15s ease;
}
.yono-pill-btn:active {
  transform: scale(0.96);
}
.yono-pill-btn span {
  color: #ffffff !important;
  font-weight: 700 !important;
}

/* -------------------------------------------------------------
   COMPACT SEARCH & CATEGORY BAR (Strict 16px to prevent iOS auto-zoom)
   ------------------------------------------------------------- */
.yono-search-box {
  position: relative !important;
  width: 100% !important;
  margin-bottom: 8px !important;
  box-sizing: border-box !important;
}
.yono-search-box svg {
  position: absolute !important;
  left: 12px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 16px !important;
  height: 16px !important;
  color: #64748b !important;
  pointer-events: none !important;
}
.yono-search-input {
  width: 100% !important;
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 8px !important;
  padding: 8px 12px 8px 36px !important;
  font-size: 16px !important; /* CRITICAL: Must be >= 16px to prevent iOS/Android zoom */
  font-weight: 500 !important;
  box-sizing: border-box !important;
}
.yono-search-input:focus {
  outline: none !important;
  border-color: #61ce70 !important;
  box-shadow: 0 0 0 2px rgba(97, 206, 112, 0.2) !important;
}
.yono-search-input::placeholder {
  color: #64748b !important;
  font-size: 14px !important;
}

/* Sticky Category Filter Tabs */
.yono-sticky-tabs {
  position: sticky !important;
  top: 3rem !important;
  z-index: 30 !important;
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border-bottom: 1px solid #e2e8f0 !important;
  padding: 5px 0 !important;
  margin: 0 0 8px 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
.yono-tabs-scroll {
  display: flex !important;
  gap: 6px !important;
  overflow-x: auto !important;
  padding: 2px 0 !important;
  white-space: nowrap !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: none !important;
}
.yono-tabs-scroll::-webkit-scrollbar {
  display: none !important;
}
.yono-tab-pill {
  font-family: 'Roboto', sans-serif !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  border-radius: 6px !important;
  padding: 5px 12px !important;
  white-space: nowrap !important;
  text-decoration: none !important;
  flex-shrink: 0 !important;
  transition: all 0.15s ease;
}
.yono-tab-pill.active-cat {
  background: linear-gradient(180deg, #9b1111 0%, #e03251 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(155, 17, 17, 0.3) !important;
  border: 1px solid transparent !important;
}
.yono-tab-pill.inactive-cat {
  background: #ffffff !important;
  color: #334155 !important;
  border: 1px solid #cbd5e1 !important;
}
.yono-tab-pill.inactive-cat:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

/* -------------------------------------------------------------
   THE GAME CARD (Exact yonogamesstore.com Mobile Card)
   ------------------------------------------------------------- */
.yono-card-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-top: none !important;
  border-radius: 0px 0px 18px 18px !important;
  box-shadow: 0px 2px 2px rgba(36, 0, 0, 0.32) !important;
  padding: 6px 8px !important;
  margin-bottom: 8px !important;
  gap: 6px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  transition: all 0.18s ease-in-out;
  overflow: hidden !important;
}
.yono-card-row:hover {
  box-shadow: 0px 4px 10px rgba(97, 206, 112, 0.25) !important;
}

/* Left Group: Index + Logo + Info */
.yono-card-left {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
  overflow: hidden !important;
}

/* Serial Number */
.yono-card-num {
  font-family: 'Roboto', sans-serif !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  color: #5d5d5d !important;
  width: 16px !important;
  min-width: 16px !important;
  text-align: center !important;
  flex-shrink: 0 !important;
  line-height: 1 !important;
}

/* Game Logo with Shine (Uniform Square on Mobile & Desktop) */
.yono-card-logo-wrap,
.shine-wrapper {
  position: relative !important;
  overflow: hidden !important;
  border-radius: 12px !important;
  width: 56px !important;
  height: 56px !important;
  min-width: 56px !important;
  min-height: 56px !important;
  max-width: 56px !important;
  max-height: 56px !important;
  aspect-ratio: 1 / 1 !important;
  flex-shrink: 0 !important;
  display: block !important;
  background-color: #f1f5f9 !important;
}
@media (min-width: 640px) {
  .yono-card-logo-wrap,
  .shine-wrapper {
    width: 60px !important;
    height: 60px !important;
    min-width: 60px !important;
    min-height: 60px !important;
    max-width: 60px !important;
    max-height: 60px !important;
  }
}
.yono-card-logo-wrap img,
.shine-wrapper img,
.yono-card-left img {
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: 12px !important;
  display: block !important;
}
.yono-card-logo-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    to right, 
    rgba(255, 255, 255, 0) 0%, 
    rgba(255, 255, 255, 0.7) 50%, 
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  pointer-events: none;
  z-index: 2;
  animation: continuousShine 3s infinite ease-in-out;
}
@keyframes continuousShine {
  0% { left: -150%; }
  30% { left: 150%; }
  100% { left: 150%; }
}

/* Middle Details: Title + Bonus + Withdraw */
.yono-card-info {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
  overflow: hidden !important;
}
.yono-card-title {
  font-family: 'Roboto Condensed', 'Roboto', sans-serif !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #000000 !important;
  line-height: 1.2 !important;
  margin: 0 0 2px 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 100% !important;
}
@media (min-width: 640px) {
  .yono-card-title {
    font-size: 18px !important;
  }
}
.yono-card-title a {
  color: #000000 !important;
  text-decoration: none !important;
}
.yono-card-title a:hover {
  color: #e03251 !important;
}

/* Bonus Badge */
.yono-card-bonus {
  font-family: 'Roboto', sans-serif !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  color: #eb2800 !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
@media (min-width: 640px) {
  .yono-card-bonus {
    font-size: 13px !important;
  }
}
.yono-card-bonus svg {
  width: 11px !important;
  height: 11px !important;
  fill: #eb2800 !important;
  flex-shrink: 0 !important;
}

/* Withdraw Badge */
.yono-card-withdraw {
  font-family: 'Roboto', sans-serif !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  color: #009c18 !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  margin-top: 1px !important;
}
@media (min-width: 640px) {
  .yono-card-withdraw {
    font-size: 13px !important;
  }
}
.yono-card-withdraw svg {
  width: 11px !important;
  height: 11px !important;
  fill: #009c18 !important;
  flex-shrink: 0 !important;
}

/* -------------------------------------------------------------
   DOWNLOAD / JOIN BUTTON (Exact yonogamesstore.com Elementor Green)
   ------------------------------------------------------------- */
.yono-action-btn {
  background-color: #61ce70 !important;
  color: #ffffff !important;
  font-family: 'Roboto', sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  text-transform: none !important; /* Title Case: Download */
  border-radius: 4px !important;
  padding: 7px 12px !important;
  flex-shrink: 0 !important;
  box-shadow: 0 2px 4px rgba(97, 206, 112, 0.35) !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  white-space: nowrap !important;
  transition: all 0.15s ease !important;
  border: none !important;
  cursor: pointer !important;
  line-height: 1 !important;
}
@media (min-width: 640px) {
  .yono-action-btn {
    font-size: 14px !important;
    padding: 8px 16px !important;
    border-radius: 5px !important;
    gap: 6px !important;
  }
}
.yono-action-btn:hover {
  background-color: #52bf61 !important;
  box-shadow: 0 3px 8px rgba(97, 206, 112, 0.5) !important;
  color: #ffffff !important;
}
.yono-action-btn:active {
  transform: scale(0.95) !important;
  background-color: #46b255 !important;
}
.yono-action-btn svg {
  width: 12px !important;
  height: 12px !important;
  fill: #ffffff !important;
  flex-shrink: 0 !important;
}
.yono-action-btn span {
  color: #ffffff !important;
  font-weight: 700 !important;
  line-height: 1 !important;
}

/* Telegram / Join Now Button */
.yono-action-btn.tg-action-btn {
  background-color: #61ce70 !important;
}

/* -------------------------------------------------------------
   UTILITIES & ARTICLE BODY
   ------------------------------------------------------------- */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.niche-article-body {
  color: #1e293b !important;
  line-height: 1.7 !important;
  font-size: 0.95rem !important;
  overflow-wrap: break-word !important;
  word-break: break-word !important;
}
.niche-article-body h1,
.niche-article-body h2,
.niche-article-body h3,
.niche-article-body h4 {
  color: #000000 !important;
  font-weight: 700 !important;
  margin-top: 1.2rem;
  margin-bottom: 0.5rem;
}
.niche-article-body h2 {
  font-size: 1.25rem !important;
  border-left: 4px solid #e03251;
  padding-left: 0.5rem;
}
.niche-article-body p {
  color: #1f2937 !important;
  margin-bottom: 0.8rem;
}
.niche-article-body a {
  color: #2563eb !important;
  text-decoration: underline !important;
}

/* Mobile responsive table container to prevent ANY page blowout */
.niche-article-body table {
  display: block !important;
  width: 100% !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  border-collapse: collapse;
  margin: 1rem 0;
  border-radius: 6px;
}
.niche-article-body th,
.niche-article-body td {
  padding: 8px 10px;
  text-align: left;
  border: 1px solid #e2e8f0;
  font-size: 0.85rem;
  white-space: nowrap;
}
.niche-article-body th {
  background: #fee2e2 !important;
  color: #991b1b !important;
  font-weight: 700 !important;
}
