/* ============================================
   UBGBOnline — Pokii-style centered mobile layout
   Always shows narrow column layout (even on desktop)
   ============================================ */

:root {
  --bg: #fafafe;
  --surface: #ffffff;
  --text: #0f1729;
  --text-mute: #6b7280;
  --text-light: #9ca3af;
  --border: #e5e7eb;
  --primary: #8b5cf6;
  --primary-dark: #7c3aed;
  --primary-soft: #ede9fe;
  --accent: #ec4899;
  --accent-dark: #db2777;
  --accent-soft: #fce7f3;
  --gold: #fbbf24;
  --gold-dark: #d97706;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 24px rgba(139, 92, 246, 0.12);
  --shadow-lg: 0 20px 56px rgba(139, 92, 246, 0.18);
  --radius: 14px;
  --radius-lg: 22px;
}

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

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* === POKII-STYLE NARROW CENTERED CONTAINER === */
/* This is the key — always narrow even on desktop */
.container {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
}

/* ============= HEADER ============= */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.header-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
}

/* ===== STYLISH LOGO ===== */
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.logo-mark {
  position: relative;
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(139, 92, 246, 0.35);
  overflow: hidden;
}
.logo-mark::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
}
.logo-mark svg {
  position: relative;
  z-index: 1;
  width: 22px;
  height: 22px;
  fill: white;
}
.brand-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--text);
}
.brand-text .accent-text {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.search-icon-btn {
  margin-left: auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
  font-size: 16px;
}
.search-icon-btn:hover {
  background: var(--primary-soft);
  border-color: var(--primary);
}

.show-all-btn {
  padding: 8px 16px;
  background: white;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  border-radius: 18px;
  font-family: inherit;
  font-weight: 700;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.15s;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.show-all-btn:hover {
  background: var(--primary);
  color: white;
}

.search-box {
  margin: 12px 0 0;
  position: relative;
  display: none;
}
.search-box.active { display: block; }
.search-box input {
  width: 100%;
  padding: 11px 14px 11px 40px;
  border: 1px solid var(--border);
  border-radius: 22px;
  font-family: inherit;
  font-size: 14px;
  background: var(--bg);
  outline: none;
}
.search-box input:focus {
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}
.search-box::before {
  content: '🔍';
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
}
.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-top: 6px;
  max-height: 320px;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  z-index: 200;
  display: none;
}
.search-results.show { display: block; }
.search-result-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
}
.search-result-item:hover {
  background: var(--primary-soft);
}
.search-result-item img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--bg);
}
.search-result-info { flex: 1; }
.search-result-info .title { font-weight: 600; font-size: 13px; }
.search-result-info .cat { font-size: 11px; color: var(--text-light); text-transform: uppercase; }

/* ============= AD BANNER ============= */
.ad-banner {
  margin: 8px 0;
  text-align: center;
  color: var(--text-light);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 4px;
}

/* Real AdSense ad container - compact like Pokii */
.ad-banner-wrapper {
  margin: 8px auto;
  text-align: center;
  overflow: hidden;
  display: block;
  width: 100%;
  max-width: 728px;
  /* No min-height — let AdSense fill only when ad loads */
}
.ad-banner-wrapper ins {
  display: block !important;
  /* Only show when actually filled by Google */
  min-height: 0 !important;
}
.ad-banner-wrapper ins.adsbygoogle[data-ad-status="unfilled"] {
  display: none !important;
  height: 0 !important;
}
.ad-label {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 4px;
  font-weight: 500;
  text-align: center;
  display: block;
  width: 100%;
}

/* ============= COIN BAR ============= */
.coin-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 14px 0;
  gap: 10px;
}
.coin-display {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-radius: 18px;
  font-weight: 800;
  font-size: 14px;
  color: var(--gold-dark);
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.15);
}
.coin-icon {
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, #fcd34d, #d97706);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 10px;
  font-weight: 900;
  box-shadow: inset 0 -2px 4px rgba(0, 0, 0, 0.15);
}

.earn-coins-btn {
  flex: 1;
  padding: 10px 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: white;
  border: none;
  border-radius: 18px;
  font-family: inherit;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 5px 14px rgba(236, 72, 153, 0.3);
  transition: all 0.15s;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.earn-coins-btn:hover { transform: translateY(-2px); }
.earn-coins-btn:disabled { opacity: 0.6; }

/* ============= CATEGORY SECTION ============= */
.section-heading {
  text-align: center;
  margin: 28px 0 18px;
}
.section-heading h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.section-heading p {
  font-size: 12px;
  color: var(--text-mute);
}

/* ===== PILL CATEGORY BUTTONS (matching reference) ===== */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 18px 0 28px;
}
.cat-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  background: white;
  border: 1.5px solid #d1d5db;
  border-radius: 28px;
  transition: all 0.2s;
  cursor: pointer;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 12px;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.cat-pill .cat-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cat-pill .cat-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--text);
  fill: none;
  stroke-width: 1.8;
  transition: all 0.2s;
}
.cat-pill:hover, .cat-pill:active {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-color: transparent;
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.cat-pill:hover .cat-icon svg, .cat-pill:active .cat-icon svg { stroke: white; }

/* ============= GAME GRID ============= */
.game-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 18px 0;
}
.game-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
}
.game-card:hover, .game-card:active {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

/* Real game thumbnail */
.game-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.game-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Fallback gradient when no image */
.game-thumb-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}
.thumb-action  { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.thumb-puzzle  { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.thumb-racing  { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.thumb-sports  { background: linear-gradient(135deg, #f59e0b, #d97706); }
.thumb-casual  { background: linear-gradient(135deg, #ec4899, #be185d); }
.thumb-multiplayer { background: linear-gradient(135deg, #14b8a6, #0d9488); }

.game-info {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.game-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: var(--text);
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.game-users {
  font-size: 11px;
  color: var(--text-light);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 3px;
}
.game-users::before { content: '👥'; font-size: 10px; }

.entry-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.entry-cost {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-mute);
  font-weight: 600;
}
.coin-mini {
  width: 14px;
  height: 14px;
  background: linear-gradient(135deg, #fcd34d, #d97706);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 8px;
  font-weight: 900;
}
.play-btn {
  padding: 5px 12px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-weight: 700;
  font-size: 11px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: 0 3px 8px rgba(139, 92, 246, 0.3);
}

/* ============= MORE GAMES BUTTON ============= */
.more-games-row {
  text-align: center;
  margin: 24px 0;
}
.more-games-btn {
  padding: 13px 32px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  border: none;
  border-radius: 28px;
  font-family: inherit;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: transform 0.15s;
  display: inline-block;
}
.more-games-btn:hover { transform: translateY(-2px); }

/* ============= ABOUT SECTION ============= */
.about-section {
  background: white;
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  margin: 28px 0;
  border: 1px solid var(--border);
}
.about-section h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}
.about-section p {
  color: var(--text-mute);
  margin-bottom: 12px;
  font-size: 13px;
  line-height: 1.65;
}
.about-section a {
  color: var(--primary);
  font-weight: 600;
}

/* ============= FOOTER ============= */
.site-footer {
  background: white;
  border-top: 1px solid var(--border);
  padding: 28px 0 16px;
  margin-top: 40px;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 14px 18px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.footer-links a {
  font-size: 12px;
  color: var(--text-mute);
  font-weight: 500;
}
.footer-links a:hover { color: var(--primary); }
.footer-bottom {
  text-align: center;
  font-size: 11px;
  color: var(--text-light);
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.footer-brand {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ============= GAME PAGE ============= */
.breadcrumb {
  font-size: 11px;
  color: var(--text-mute);
  margin: 12px 0;
}
.breadcrumb a {
  color: var(--primary);
  font-weight: 600;
}
.breadcrumb .sep {
  margin: 0 6px;
  color: var(--text-light);
}

.game-stage {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 14px 0;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.game-stage-header {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.game-stage-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.game-stage-logo {
  font-size: 18px;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
}
.game-stage-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 14px;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.game-stage-actions {
  display: flex;
  gap: 6px;
}
.game-stage-btn {
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  border-radius: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  transition: background 0.15s;
}
.game-stage-btn:hover { background: rgba(255, 255, 255, 0.3); }

.game-iframe-wrap {
  position: relative;
  width: 100%;
  background: #000;
  aspect-ratio: 16 / 11;
  min-height: 320px;
}
.game-iframe-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  position: absolute;
  inset: 0;
}
.game-stage-footer {
  background: linear-gradient(90deg, #f9fafb, #ffffff, #f9fafb);
  border-top: 1px solid var(--border);
  padding: 8px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--text-mute);
}
.powered-by {
  font-weight: 500;
}
.powered-by strong {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}
.game-meta {
  font-weight: 600;
  color: var(--text-mute);
}
.iframe-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  padding: 20px;
  background: linear-gradient(135deg, #1e293b, #334155);
  position: absolute;
  inset: 0;
}
.iframe-placeholder h3 { font-size: 18px; margin-bottom: 8px; }
.iframe-placeholder p { font-size: 13px; color: #94a3b8; }

.game-stage-info {
  padding: 16px;
}
.game-stage-info h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}
.game-stage-info p {
  color: var(--text-mute);
  font-size: 13px;
  margin-bottom: 12px;
  line-height: 1.6;
}
.controls-list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}
.controls-list li {
  background: var(--bg);
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 11px;
}

.related-games {
  margin: 24px 0;
}
.related-games h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}

/* ============= PAGE HEADER (categories, all games, etc.) ============= */
.page-header {
  text-align: center;
  padding: 24px 16px;
  background: linear-gradient(135deg, var(--primary-soft), var(--accent-soft));
  border-radius: var(--radius-lg);
  margin: 14px 0 18px;
}
.page-header h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 6px;
}
.page-header p {
  color: var(--text-mute);
  font-size: 13px;
}

/* ============= LEGAL PAGES ============= */
.legal-content {
  background: white;
  border-radius: var(--radius);
  padding: 22px 18px;
  border: 1px solid var(--border);
}
.legal-content h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 22px;
  margin-bottom: 6px;
}
.legal-content h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  margin: 20px 0 8px;
}
.legal-content h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  margin: 14px 0 6px;
}
.legal-content p, .legal-content li {
  color: var(--text-mute);
  font-size: 13px;
  line-height: 1.65;
}
.legal-content ul { padding-left: 20px; margin: 8px 0; }
.legal-content a { color: var(--primary); font-weight: 500; }
.last-updated {
  display: inline-block;
  background: var(--primary-soft);
  color: var(--primary-dark);
  padding: 3px 10px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 14px;
}

.contact-form {
  margin-top: 18px;
}
.contact-form label {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
  font-size: 12px;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 13px;
  font-family: inherit;
  margin-bottom: 12px;
  outline: none;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
}

/* ============= COIN TOAST ============= */
.coin-toast {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: white;
  padding: 10px 20px;
  border-radius: 22px;
  font-weight: 700;
  font-size: 13px;
  box-shadow: var(--shadow-lg);
  display: none;
  align-items: center;
  gap: 6px;
  z-index: 1000;
}
.coin-toast.show {
  display: flex;
  animation: slideUp 0.3s ease;
}
@keyframes slideUp {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ============= LOADING IMAGE STATES ============= */
.game-thumb img.lazy {
  opacity: 0;
  transition: opacity 0.3s;
}
.game-thumb img.loaded {
  opacity: 1;
}

/* On larger screens, slightly bigger but still narrow */
@media (min-width: 768px) {
  .container {
    max-width: 520px;
  }
}

/* ============= POKII-STYLE GAME DETAIL PAGE ============= */
.game-detail {
  background: white;
  border-radius: var(--radius-lg);
  padding: 24px 16px;
  margin: 14px 0;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.game-detail-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 22px;
  font-weight: 900;
  margin: 0 0 16px 0;
  color: var(--text);
  letter-spacing: 0.5px;
  font-style: italic;
  text-align: center;
  word-wrap: break-word;
  line-height: 1.2;
}
.game-detail-cover {
  width: 240px;
  height: 240px;
  margin: 0 auto 8px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.25);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
}
.game-detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* BIG START GAME BUTTON - Pokii-style */
.start-game-btn,
a.start-game-btn,
a.start-game-btn:link,
a.start-game-btn:visited {
  display: block !important;
  width: calc(100% - 20px) !important;
  max-width: 280px !important;
  margin: 18px auto !important;
  background: linear-gradient(135deg, #8b5cf6, #ec4899) !important;
  color: #ffffff !important;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif !important;
  font-weight: 900 !important;
  font-size: 18px !important;
  letter-spacing: 1px !important;
  padding: 14px 24px !important;
  border-radius: 999px !important;
  text-decoration: none !important;
  box-shadow: 0 6px 18px rgba(139, 92, 246, 0.4), 0 2px 4px rgba(0,0,0,0.1) !important;
  transition: transform 0.15s, box-shadow 0.15s !important;
  border: none !important;
  cursor: pointer !important;
  text-align: center !important;
  text-transform: uppercase !important;
  box-sizing: border-box !important;
  position: relative !important;
  z-index: 1 !important;
}
.start-game-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 26px rgba(139, 92, 246, 0.5), 0 4px 8px rgba(0,0,0,0.15) !important;
}
.start-game-btn:active {
  transform: translateY(0) !important;
}
.game-detail-meta {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-mute);
}
.game-detail-meta a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}
.game-detail-about {
  background: white;
  padding: 16px;
  border-radius: var(--radius);
  margin: 14px 0;
  border: 1px solid var(--border);
}
.game-detail-about h2 {
  font-size: 16px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  margin-bottom: 8px;
}
.game-detail-about p {
  color: var(--text-mute);
  font-size: 13px;
  line-height: 1.6;
}

/* Mobile: smaller cover */
@media (max-width: 480px) {
  .game-detail {
    padding: 20px 12px;
  }
  .game-detail-cover {
    width: 200px;
    height: 200px;
  }
  .game-detail-title {
    font-size: 20px;
  }
  .start-game-btn,
  a.start-game-btn {
    font-size: 17px !important;
    padding: 13px 20px !important;
    max-width: 240px !important;
  }
}

/* ============= POKII-STYLE COIN WIDGET (COMPACT) ============= */
.coin-widget {
  background: white;
  border-radius: var(--radius-lg);
  padding: 14px;
  margin: 10px 0;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.coin-stack-display {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
}
.coin-stack-icon {
  width: 32px !important;
  height: 32px !important;
  flex-shrink: 0;
  display: block;
}
.coin-balance {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 22px;
  font-weight: 900;
  color: var(--text);
  letter-spacing: 0.5px;
  line-height: 1;
}
.coin-btn-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.earn-coins-btn-big {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  padding: 12px 18px;
  background: linear-gradient(135deg, #5b6cf7, #6a4cf0);
  color: white;
  border: none;
  border-radius: 999px;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.6px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(91, 108, 247, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
  text-transform: uppercase;
}
.earn-coins-btn-big:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(91, 108, 247, 0.45);
}
.earn-coins-btn-big:active {
  transform: translateY(0);
}
.earn-coins-btn-big:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
.btn-coin-icon {
  width: 20px !important;
  height: 20px !important;
  flex-shrink: 0;
  display: block;
}
.ad-tag-small {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  color: var(--text-light);
  background: rgba(255, 255, 255, 0.85);
  padding: 1px 5px;
  border-radius: 3px;
  font-weight: 600;
  letter-spacing: 0.05em;
  pointer-events: none;
}

@media (max-width: 380px) {
  .earn-coins-btn-big {
    font-size: 12px;
    padding: 11px 14px;
  }
}

/* ============= AD NOT AVAILABLE POPUP ============= */
.ad-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  transition: opacity 0.2s ease;
  padding: 20px;
}
.ad-modal-backdrop.show {
  opacity: 1;
}
.ad-modal {
  background: white;
  border-radius: 20px;
  padding: 28px 24px;
  max-width: 360px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  transition: transform 0.2s ease;
}
.ad-modal-backdrop.show .ad-modal {
  transform: scale(1);
}
.ad-modal-icon {
  font-size: 56px;
  margin-bottom: 12px;
  line-height: 1;
}
.ad-modal-title {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 20px;
  font-weight: 900;
  margin: 0 0 10px 0;
  color: var(--text);
}
.ad-modal-text {
  font-size: 14px;
  color: var(--text-mute);
  line-height: 1.5;
  margin: 0 0 20px 0;
}
.ad-modal-btn {
  background: linear-gradient(135deg, #5b6cf7, #6a4cf0);
  color: white;
  border: none;
  padding: 12px 32px;
  border-radius: 999px;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.5px;
  cursor: pointer;
  text-transform: uppercase;
  box-shadow: 0 6px 16px rgba(91, 108, 247, 0.4);
  transition: transform 0.15s, box-shadow 0.15s;
}
.ad-modal-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(91, 108, 247, 0.5);
}
.ad-modal-btn:active {
  transform: translateY(0);
}
