/* Cat Slap Machine — shared base tokens & topbar */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  min-height: 100vh;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background:
    radial-gradient(circle at 15% 20%, #ffe9a8 0%, transparent 45%),
    radial-gradient(circle at 85% 80%, #ffd1c2 0%, transparent 45%),
    #faf3e4;
  color: #1a1410;
  user-select: none;
  -webkit-user-select: none;
}

/* ---------- Top bar (shared between game + leaderboard) ---------- */
.d-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 48px;
  border-bottom: 2px solid rgba(26, 20, 16, 0.08);
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 50;
}
.d-topbar-brand { display: flex; align-items: center; gap: 12px; }
.d-logo-mark {
  width: 40px; height: 40px;
  background: #1a1410; color: #ffd93d;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  box-shadow: 3px 3px 0 #e8532b;
  flex-shrink: 0;
}
.d-logo-word { font-size: 14px; letter-spacing: 2px; font-weight: 900; }
.d-logo-word small {
  display: block; font-size: 10px; letter-spacing: 1.5px;
  color: #8a7a6a; font-weight: 700;
}
.d-topbar-nav { display: flex; align-items: center; gap: 24px; }
.d-topbar-link {
  font-size: 13px; font-weight: 800; letter-spacing: 1.2px;
  color: #1a1410; text-decoration: none;
  text-transform: uppercase;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s;
}
.d-topbar-link:hover { border-bottom-color: #e8532b; }
.d-topbar-link.active { border-bottom-color: #1a1410; }
.d-topbar-actions { display: flex; align-items: center; gap: 14px; }
.d-rank-entry-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px 8px 12px;
  background: #fff;
  border: 2px solid #e8532b; border-radius: 22px;
  cursor: pointer;
  box-shadow: 3px 3px 0 #ffd93d;
  font-weight: 900; font-size: 12px; color: #e8532b;
  letter-spacing: 1.2px;
  font-family: inherit;
  transition: transform 0.1s, box-shadow 0.1s;
  text-decoration: none;
}
.d-rank-entry-btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 #ffd93d; }
/* Bold, eye-catching language picker — globe icon + chunky pill that
   matches the rest of the play/leaderboard chip aesthetic. */
.d-lang-picker {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px 8px 14px;
  background: #ffd93d;
  border: 2.5px solid #1a1410;
  border-radius: 24px;
  box-shadow: 3px 3px 0 #e8532b;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s;
  font-family: inherit;
}
.d-lang-picker:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 #e8532b;
}
.d-lang-picker:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 #e8532b;
}
.d-lang-icon {
  font-size: 20px;
  line-height: 1;
  filter: drop-shadow(1px 1px 0 rgba(26, 20, 16, 0.25));
}
.d-lang-select {
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  font-weight: 900;
  color: #1a1410;
  letter-spacing: 0.3px;
  padding: 2px 22px 2px 0;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%231a1410' stroke-width='2.2' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 2px center;
}
.d-lang-select:focus { outline: none; }

/* shared pulse dot */
.pulse {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #e8532b;
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(232, 83, 43, 0.7); }
  70%  { box-shadow: 0 0 0 12px rgba(232, 83, 43, 0); }
  100% { box-shadow: 0 0 0 0 rgba(232, 83, 43, 0); }
}
