/* Yaarwin Premium — valuable game feel */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

body.premium,
body.premium .app-shell {
  font-family: "Plus Jakarta Sans", Roboto, sans-serif;
}

body.premium {
  background: linear-gradient(180deg, #e8f5ef 0%, #f2f2f1 120px);
}

body.premium .app-shell {
  background: linear-gradient(180deg, #eef9f3 0%, #f5f6f8 180px, #f2f2f1 100%);
  box-shadow: 0 0 60px rgba(12, 215, 129, 0.12);
}

/* Header */
body.premium .site-header {
  background: linear-gradient(135deg, #0cd781 0%, #12d88a 40%, #00e989 100%);
  padding: 14px 16px 18px;
  box-shadow: 0 4px 24px rgba(12, 215, 129, 0.35);
  position: relative;
  overflow: hidden;
}

body.premium .site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.2), transparent 50%),
              radial-gradient(circle at 10% 80%, rgba(255,255,255,0.1), transparent 40%);
  pointer-events: none;
}

body.premium .header-row { position: relative; z-index: 1; }

body.premium .brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(145deg, #fff 0%, #e8fff4 100%);
  color: #0a9b5c;
  font-size: 13px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.5);
}

body.premium .brand-name {
  font-size: 19px;
  font-weight: 800;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

body.premium .coins-badge {
  background: linear-gradient(135deg, #fff9e6 0%, #ffe08a 45%, #ffc93d 100%);
  color: #8b5a00;
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 800;
  border: 1px solid rgba(255,200,60,0.6);
  box-shadow: 0 4px 14px rgba(255,180,0,0.35), inset 0 1px 0 rgba(255,255,255,0.6);
  animation: coin-shine 3s ease-in-out infinite;
}

@keyframes coin-shine {
  0%, 100% { box-shadow: 0 4px 14px rgba(255,180,0,0.35), inset 0 1px 0 rgba(255,255,255,0.6); }
  50% { box-shadow: 0 4px 20px rgba(255,200,0,0.55), inset 0 1px 0 rgba(255,255,255,0.8); }
}

body.premium .btn-gold {
  background: linear-gradient(180deg, #fff 0%, #e8fff4 100%);
  color: #0a9b5c;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

body.premium .btn-outline-light {
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255,255,255,0.7);
}

/* Hero */
body.premium .hero-banner {
  margin: 16px;
  aspect-ratio: 2.1 / 1;
  background: linear-gradient(125deg, #0a8f58 0%, #0cd781 35%, #00e989 70%, #5ff5b8 100%);
  box-shadow: 0 8px 32px rgba(12, 215, 129, 0.4);
  border: 1px solid rgba(255,255,255,0.25);
}

body.premium .hero-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: 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.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
  pointer-events: none;
}

body.premium .hero-banner h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

body.premium .hero-banner .badge {
  background: linear-gradient(135deg, #ffe566, #ffb800);
  color: #7a4e00;
  font-size: 11px;
  padding: 5px 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  border: 1px solid rgba(255,255,255,0.4);
}

/* Quick cards */
body.premium .quick-card {
  background: linear-gradient(145deg, #fff 0%, #f8fffb 100%);
  border: 1px solid rgba(12, 215, 129, 0.15);
  box-shadow: 0 4px 16px rgba(12, 215, 129, 0.08);
  padding: 16px;
  transition: transform 0.2s, box-shadow 0.2s;
}

body.premium .quick-card:hover {
  box-shadow: 0 8px 24px rgba(12, 215, 129, 0.15);
}

body.premium .quick-card-icon.gold {
  background: linear-gradient(135deg, #ffe566, #ffb800);
  box-shadow: 0 4px 10px rgba(255,184,0,0.3);
}

body.premium .quick-card-icon.pink {
  background: linear-gradient(135deg, #0cd781, #00e989);
  box-shadow: 0 4px 10px rgba(12,215,129,0.35);
}

body.premium .quick-card-text h3 {
  font-size: 14px;
  font-weight: 700;
}

/* Section */
body.premium .section-title h2 {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.2px;
}

body.premium .section-title .premium-tag {
  font-size: 11px;
  font-weight: 700;
  color: #0cd781;
  background: rgba(12,215,129,0.12);
  padding: 4px 10px;
  border-radius: 999px;
}

/* Game cards — premium */
body.premium .game-card {
  background: #fff;
  border: 1px solid rgba(12, 215, 129, 0.12);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(12, 215, 129, 0.08);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s;
  text-decoration: none;
  color: inherit;
  display: block;
}

body.premium .game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(12, 215, 129, 0.2);
}

body.premium .game-card-thumb {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  min-height: 0;
}

.game-icon-3d {
  width: 76px;
  height: 76px;
  object-fit: contain;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.28));
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

body.premium .game-card:hover .game-icon-3d {
  transform: translateY(-6px) scale(1.06);
}

.game-icon-3d.sm {
  width: 44px;
  height: 44px;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.22));
}

.game-icon-3d.xs {
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.18));
  vertical-align: middle;
  margin-right: 8px;
}

.game-header-icon {
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

body.premium .game-card-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.25) 100%);
  pointer-events: none;
}

body.premium .game-card-thumb.match {
  background: linear-gradient(145deg, #ff6b6b 0%, #ee5a24 50%, #c4451a 100%);
}

body.premium .game-card-thumb.memory {
  background: linear-gradient(145deg, #7c4dff 0%, #5f27cd 50%, #341f97 100%);
}

body.premium .game-card-thumb.sequence {
  background: linear-gradient(145deg, #00e5ff 0%, #00d2d3 50%, #0097a7 100%);
}

body.premium .game-card-thumb.spot {
  background: linear-gradient(145deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
}

body.premium .game-card-tag {
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  font-size: 10px;
  padding: 4px 10px;
  z-index: 2;
}

body.premium .game-card-reward {
  position: absolute;
  bottom: 8px;
  right: 8px;
  z-index: 2;
  background: linear-gradient(135deg, #ffe566, #ffb800);
  color: #7a4e00;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

body.premium .game-card-body {
  padding: 12px 14px 14px;
  background: linear-gradient(180deg, #fff 0%, #fafcfb 100%);
}

body.premium .game-card-body h3 {
  font-size: 14px;
  font-weight: 800;
}

body.premium .game-card-body p {
  font-size: 12px;
}

/* Ticker / leaderboard */
body.premium .win-ticker {
  background: linear-gradient(145deg, #fff 0%, #f8fffb 100%);
  border: 1px solid rgba(12, 215, 129, 0.15);
  box-shadow: 0 4px 16px rgba(12, 215, 129, 0.06);
  padding: 16px;
}

body.premium .win-ticker h3 {
  font-size: 14px;
  font-weight: 800;
  color: #0cd781;
  display: flex;
  align-items: center;
  gap: 6px;
}

body.premium .win-ticker h3::before {
  content: "🏆";
  font-size: 16px;
}

body.premium .ticker-row .amount {
  color: #0a9b5c;
  font-weight: 800;
}

/* Bottom nav */
body.premium .bottom-nav,
body.premium-game .bottom-nav {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(12, 215, 129, 0.12);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.08);
}

body.premium-game .nav-item.active {
  color: #0cd781;
}

body.premium-game .nav-item.promo .nav-icon-wrap {
  background: linear-gradient(135deg, #ffe566, #ffb800);
  box-shadow: 0 6px 20px rgba(255, 184, 0, 0.45);
  border: 3px solid #fff;
}

body.premium .nav-item.active {
  color: #0cd781;
}

body.premium .nav-item.promo .nav-icon-wrap {
  background: linear-gradient(135deg, #ffe566, #ffb800);
  box-shadow: 0 6px 20px rgba(255, 184, 0, 0.45);
  border: 3px solid #fff;
}

body.premium .nav-item.promo svg {
  color: #7a4e00;
}

/* Profile */
body.premium .avatar {
  width: 80px;
  height: 80px;
  border: 4px solid #fff;
  box-shadow: 0 8px 24px rgba(12, 215, 129, 0.35);
}

body.premium .menu-item {
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  font-weight: 600;
  transition: background 0.2s;
}

body.premium .activity-card {
  background: linear-gradient(145deg, #fff, #f8fffb);
  border: 1px solid rgba(12,215,129,0.12);
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

body.premium .promo-banner {
  background: linear-gradient(135deg, #0a8f58, #0cd781, #00e989);
  box-shadow: 0 8px 28px rgba(12,215,129,0.35);
}

/* VIP strip */
.premium-vip-strip {
  margin: 0 16px 14px;
  padding: 12px 16px;
  background: linear-gradient(90deg, #1a1a2e 0%, #2d2d44 50%, #1a1a2e 100%);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #ffe566;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  border: 1px solid rgba(255, 229, 102, 0.25);
}

.premium-vip-strip span {
  color: rgba(255,255,255,0.75);
  font-weight: 500;
  font-size: 12px;
}

/* ===== GAME SCREENS PREMIUM ===== */
body.premium-game {
  font-family: "Plus Jakarta Sans", Roboto, sans-serif;
  background: linear-gradient(180deg, #0a8f58 0%, #0cd781 80px, #eef9f3 80px, #f2f2f1 100%);
  min-height: 100dvh;
}

body.premium-game .app-shell {
  background: transparent;
  box-shadow: none;
}

body.premium-game .game-screen {
  padding: 0 0 12px;
}

body.premium-game.has-bottom-nav .game-screen,
body.premium-game .app-shell.has-bottom-nav .game-screen {
  padding-bottom: 8px;
}

body.premium-game .game-header-bar {
  background: linear-gradient(135deg, #0cd781, #00e989);
  padding: 14px 16px 20px;
  margin-bottom: 16px;
  box-shadow: 0 4px 20px rgba(12,215,129,0.3);
}

body.premium-game .game-topbar {
  margin-bottom: 14px;
}

body.premium-game .game-topbar h1 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

body.premium-game .back-btn {
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
  font-weight: 600;
  backdrop-filter: blur(8px);
}

body.premium-game .coins-badge {
  background: linear-gradient(135deg, #ffe566, #ffb800);
  color: #7a4e00;
  font-size: 13px;
  padding: 6px 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

body.premium-game .game-stats {
  padding: 0 16px;
  gap: 12px;
  margin-bottom: 16px;
}

body.premium-game .stat-pill {
  background: #fff;
  border: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  padding: 12px 8px;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
}

body.premium-game .stat-pill::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0cd781, #00e989);
}

body.premium-game .stat-pill .value {
  color: #0cd781;
  font-size: 20px;
}

body.premium-game .game-msg {
  padding: 0 16px;
  font-size: 15px;
  color: #4a5f57;
  font-weight: 600;
}

body.premium-game .game-canvas-wrap {
  margin: 12px 16px 16px;
  background: #fff;
  border: none;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  border-radius: 20px;
  padding: 20px;
}

body.premium-game .color-btn {
  border-radius: 14px;
  box-shadow: 0 6px 0 rgba(0,0,0,0.15), 0 8px 16px rgba(0,0,0,0.1);
}

body.premium-game .btn.btn-pink,
body.premium-game .btn.btn-gold {
  margin: 0 16px;
  width: calc(100% - 32px);
  padding: 16px;
  font-size: 16px;
  font-weight: 800;
  border-radius: 999px;
  background: linear-gradient(90deg, #0cd781, #18d48c, #00e989);
  color: #fff;
  box-shadow: 0 6px 24px rgba(12,215,129,0.4);
  border: none;
}

body.premium-game #target {
  border: 4px solid #fff !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15) !important;
  border-radius: 16px !important;
}

body.premium-game .memory-card {
  border-radius: 14px !important;
  box-shadow: 0 6px 16px rgba(0,0,0,0.12) !important;
}

.coin-pop {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  background: linear-gradient(135deg, #ffe566, #ffb800);
  color: #7a4e00;
  font-size: 24px;
  font-weight: 800;
  padding: 20px 32px;
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(255,184,0,0.5);
  z-index: 999;
  pointer-events: none;
  opacity: 0;
}

.coin-pop.show {
  animation: coin-pop-anim 1.2s ease forwards;
}

@keyframes coin-pop-anim {
  0% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
  20% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
  80% { transform: translate(-50%, -60%) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -80%) scale(0.9); opacity: 0; }
}

body.premium-game .game-header-bar .game-reward-line {
  color: rgba(255,255,255,0.92);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  margin: 0;
}

body.premium-game .memory-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

body.premium-game .memory-card {
  aspect-ratio: 1;
  border: none;
  cursor: pointer;
  background: linear-gradient(145deg, #0cd781, #00a86b);
  color: #fff;
  font-size: 0;
  transition: transform 0.2s;
}

body.premium-game .memory-card.flipped,
body.premium-game .memory-card.matched {
  font-size: 24px;
  color: transparent;
}

body.premium-game .memory-card.matched {
  opacity: 0.55;
  pointer-events: none;
}

body.premium-game .color-btn.lit {
  transform: scale(0.92);
  filter: brightness(1.35);
  box-shadow: 0 0 24px rgba(255,255,255,0.6);
}

body.premium-game .spot-grid {
  display: grid;
  gap: 10px;
  width: 100%;
}

body.premium-game .spot-grid.size-3 {
  grid-template-columns: repeat(3, 1fr);
}

body.premium-game .spot-grid.size-4 {
  grid-template-columns: repeat(4, 1fr);
}

body.premium-game .spot-tile {
  aspect-ratio: 1;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.12), 0 8px 16px rgba(0, 0, 0, 0.1);
  transition: transform 0.15s, filter 0.15s;
}

body.premium-game .spot-tile:active {
  transform: scale(0.95);
}

body.premium-game .spot-tile.correct {
  outline: 3px solid #0cd781;
  outline-offset: 2px;
  transform: scale(1.02);
}

body.premium-game .spot-tile.wrong {
  outline: 3px solid #ef4444;
  outline-offset: 2px;
  filter: brightness(0.85);
}

body.premium-game .spot-tile.reveal {
  outline: 3px dashed #0cd781;
  outline-offset: 2px;
}

body.premium .profile-header {
  background: linear-gradient(180deg, rgba(12,215,129,0.08) 0%, transparent 100%);
  padding-top: 24px;
  border-radius: 0 0 24px 24px;
  margin-bottom: 8px;
}

body.premium .disclaimer {
  background: linear-gradient(145deg, #fff, #f8fffb);
  border: 1px solid rgba(12,215,129,0.12);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

body.auth-body {
  font-family: "Plus Jakarta Sans", Roboto, sans-serif;
}

/* Professional games panel */
.games-panel-header {
  padding: 16px 16px 8px;
}

.games-panel-header h2 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 4px;
}

.games-panel-header p {
  font-size: 13px;
  color: var(--text-muted);
}

.pro-game-list {
  padding: 0 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pro-game-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: #fff;
  border: 1px solid rgba(12, 215, 129, 0.12);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s, box-shadow 0.2s;
}

.pro-game-row:active {
  transform: scale(0.99);
}

.pro-game-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.pro-game-icon.match { background: linear-gradient(145deg, #ff8a7a 0%, #c4451a 100%); }
.pro-game-icon.memory { background: linear-gradient(145deg, #a78bfa 0%, #5b21b6 100%); }
.pro-game-icon.sequence { background: linear-gradient(145deg, #22d3ee 0%, #0e7490 100%); }
.pro-game-icon.spot { background: linear-gradient(145deg, #fde68a 0%, #d97706 100%); }

.pro-game-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,0.35), transparent 55%);
  pointer-events: none;
}

.pro-game-icon .game-icon-3d {
  width: 42px;
  height: 42px;
}

.activity-card h3 {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pro-game-info {
  flex: 1;
  min-width: 0;
}

.pro-game-info h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 2px;
}

.pro-game-info > p {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.pro-game-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pro-game-meta span {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f0faf5;
  color: #0a9b5c;
}

.pro-game-play {
  font-size: 12px;
  font-weight: 700;
  color: #0cd781;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(12, 215, 129, 0.1);
  flex-shrink: 0;
}

/* Game instructions & timer */
.game-instructions {
  margin: 0 16px 12px;
  padding: 12px 14px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(12, 215, 129, 0.12);
  font-size: 12px;
  color: #4a5f57;
  line-height: 1.5;
}

.game-instructions strong {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #0a9b5c;
  margin-bottom: 4px;
}

.timer-track {
  margin: 0 16px 14px;
  height: 6px;
  background: rgba(12, 215, 129, 0.15);
  border-radius: 999px;
  overflow: hidden;
}

.timer-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #0cd781, #00e989);
  border-radius: 999px;
  transition: width 0.3s linear;
}

.target-block {
  margin-bottom: 14px;
}

.target-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.target-swatch {
  height: 72px;
  border-radius: 14px;
  border: 3px solid #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

body.premium-game .game-reward-line {
  font-size: 11px;
  opacity: 0.9;
}

body.premium .game-card-body p {
  font-size: 11px;
}

body.premium .premium-vip-strip {
  font-size: 12px;
}

